
          <!doctype html>
          <html>
            <head>
              <meta charSet="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="taler-support" content="uri" /><noscript><meta http-equiv="refresh" content="1" /></noscript><title>Status of your order for {{ order_summary }}</title><script>
      var contractTermsStr = '{{{contract_terms_json}}}';
    </script>
              <style>/* linaria:index_15ba2f5.linaria.css */
.q1ma0zxq {
  margin: auto;
  text-align: center;
  width: 340px;
}
.fef0x5t {
  text-align: center;
  background-color: #033;
  color: white;
  padding: 1em;
  overflow: auto;
}
.fef0x5t > p > a:link,
.fef0x5t > p > a:visited,
.fef0x5t > p > a:hover,
.fef0x5t > p > a:active {
  color: white;
}
.p1b3vqup {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  min-height: 100vh;
  -webkit-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.p1b3vqup a:link,
.p1b3vqup a:visited,
.p1b3vqup a:hover,
.p1b3vqup a:active {
  color: black;
}
.p1b3vqup section {
  text-align: center;
  width: 600px;
  margin-bottom: auto;
}
.p1b3vqup section:not(:first-of-type) {
  margin-top: 2em;
}
.p1b3vqup > header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  text-align: center;
}
.p1b3vqup > footer {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: space-around;
  -webkit-justify-content: space-around;
  -ms-flex-pack: space-around;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 0px;
}
.c1gnd3xp {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.wpwjmk {
  display: inline-block;
  zoom: 1;
  line-height: normal;
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  box-sizing: border-box;
  text-transform: var(--wpwjmk-0);
  font-family: inherit;
  font-size: 100%;
  padding: 0.5em 1em;
  color: #444;
  color: rgba(0, 0, 0, 0.8);
  border: 1px solid #999;
  border: none rgba(0, 0, 0, 0);
  background-color: "#e6e6e6";
  -webkit-text-decoration: none;
  text-decoration: none;
  border-radius: 2px;
  background-color: #e6e6e6;
  border-radius: 4px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 6px rgba(0, 0, 0, 0.2) inset;
  border-color: #000;
}
.wpwjmk:focus {
  outline: 0;
}
.wpwjmk:disabled {
  border: none;
  background-image: none;
  -webkit-filter: alpha(opacity=40);
  filter: alpha(opacity=40);
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}
.wpwjmk:hover {
  -webkit-filter: alpha(opacity=90);
  filter: alpha(opacity=90);
  background-image:
    linear-gradient(
      transparent,
      rgba(0, 0, 0, 0.05) 40%,
      rgba(0, 0, 0, 0.1));
}
.i1pkgksb {
  border-radius: 0.25em;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 1em;
  border: solid 1px #b8daff;
  background-color: #cce5ff;
  color: #004085;
}
.t2c81u8 {
  text-align: left;
}
.t2c81u8 dt {
  font-weight: bold;
  margin-top: 1em;
}
.t2c81u8 dd {
  margin-inline-start: 0px;
}
.t1mav7fx {
  text-align: left;
}
.t1mav7fx dt {
  font-weight: bold;
  display: inline-block;
  width: 30%;
}
.t1mav7fx dd {
  margin-inline-start: 0px;
  display: inline-block;
  width: 70%;
}

/* src/css/pure-min.css */
.talerbar {
  text-align: center;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
main {
  display: block;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
hr {
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}
a {
  background-color: transparent;
}
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}
b,
strong {
  font-weight: bolder;
}
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
img {
  border-style: none;
}
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
[type=button],
[type=reset],
[type=submit],
button {
  -webkit-appearance: button;
}
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner,
button::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring,
button:-moz-focusring {
  outline: 1px dotted ButtonText;
}
fieldset {
  padding: 0.35em 0.75em 0.625em;
}
legend {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
textarea {
  overflow: auto;
}
[type=checkbox],
[type=radio] {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
}
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}
[type=search] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
details {
  display: block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none;
}
html {
  font-family: sans-serif;
}
.hidden,
[hidden] {
  display: none !important;
}
.pure-img {
  max-width: 100%;
  height: auto;
  display: block;
}
.pure-g {
  letter-spacing: -0.31em;
  text-rendering: optimizespeed;
  font-family:
    FreeSans,
    Arimo,
    "Droid Sans",
    Helvetica,
    Arial,
    sans-serif;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  -ms-flex-line-pack: start;
  align-content: flex-start;
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  table .pure-g {
    display: block;
  }
}
.opera-only :-o-prefocus,
.pure-g {
  word-spacing: -0.43em;
}
.pure-u {
  display: inline-block;
  letter-spacing: normal;
  word-spacing: normal;
  vertical-align: top;
  text-rendering: auto;
}
.pure-g [class*=pure-u] {
  font-family: sans-serif;
}
.pure-u-1,
.pure-u-1-1,
.pure-u-1-12,
.pure-u-1-2,
.pure-u-1-24,
.pure-u-1-3,
.pure-u-1-4,
.pure-u-1-5,
.pure-u-1-6,
.pure-u-1-8,
.pure-u-10-24,
.pure-u-11-12,
.pure-u-11-24,
.pure-u-12-24,
.pure-u-13-24,
.pure-u-14-24,
.pure-u-15-24,
.pure-u-16-24,
.pure-u-17-24,
.pure-u-18-24,
.pure-u-19-24,
.pure-u-2-24,
.pure-u-2-3,
.pure-u-2-5,
.pure-u-20-24,
.pure-u-21-24,
.pure-u-22-24,
.pure-u-23-24,
.pure-u-24-24,
.pure-u-3-24,
.pure-u-3-4,
.pure-u-3-5,
.pure-u-3-8,
.pure-u-4-24,
.pure-u-4-5,
.pure-u-5-12,
.pure-u-5-24,
.pure-u-5-5,
.pure-u-5-6,
.pure-u-5-8,
.pure-u-6-24,
.pure-u-7-12,
.pure-u-7-24,
.pure-u-7-8,
.pure-u-8-24,
.pure-u-9-24 {
  display: inline-block;
  letter-spacing: normal;
  word-spacing: normal;
  vertical-align: top;
  text-rendering: auto;
}
.pure-u-1-24 {
  width: 4.1667%;
}
.pure-u-1-12,
.pure-u-2-24 {
  width: 8.3333%;
}
.pure-u-1-8,
.pure-u-3-24 {
  width: 12.5%;
}
.pure-u-1-6,
.pure-u-4-24 {
  width: 16.6667%;
}
.pure-u-1-5 {
  width: 20%;
}
.pure-u-5-24 {
  width: 20.8333%;
}
.pure-u-1-4,
.pure-u-6-24 {
  width: 25%;
}
.pure-u-7-24 {
  width: 29.1667%;
}
.pure-u-1-3,
.pure-u-8-24 {
  width: 33.3333%;
}
.pure-u-3-8,
.pure-u-9-24 {
  width: 37.5%;
}
.pure-u-2-5 {
  width: 40%;
}
.pure-u-10-24,
.pure-u-5-12 {
  width: 41.6667%;
}
.pure-u-11-24 {
  width: 45.8333%;
}
.pure-u-1-2,
.pure-u-12-24 {
  width: 50%;
}
.pure-u-13-24 {
  width: 54.1667%;
}
.pure-u-14-24,
.pure-u-7-12 {
  width: 58.3333%;
}
.pure-u-3-5 {
  width: 60%;
}
.pure-u-15-24,
.pure-u-5-8 {
  width: 62.5%;
}
.pure-u-16-24,
.pure-u-2-3 {
  width: 66.6667%;
}
.pure-u-17-24 {
  width: 70.8333%;
}
.pure-u-18-24,
.pure-u-3-4 {
  width: 75%;
}
.pure-u-19-24 {
  width: 79.1667%;
}
.pure-u-4-5 {
  width: 80%;
}
.pure-u-20-24,
.pure-u-5-6 {
  width: 83.3333%;
}
.pure-u-21-24,
.pure-u-7-8 {
  width: 87.5%;
}
.pure-u-11-12,
.pure-u-22-24 {
  width: 91.6667%;
}
.pure-u-23-24 {
  width: 95.8333%;
}
.pure-u-1,
.pure-u-1-1,
.pure-u-24-24,
.pure-u-5-5 {
  width: 100%;
}
.pure-button {
  display: inline-block;
  line-height: normal;
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
  cursor: pointer;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.pure-button::-moz-focus-inner {
  padding: 0;
  border: 0;
}
.pure-button-group {
  letter-spacing: -0.31em;
  text-rendering: optimizespeed;
}
.opera-only :-o-prefocus,
.pure-button-group {
  word-spacing: -0.43em;
}
.pure-button-group .pure-button {
  letter-spacing: normal;
  word-spacing: normal;
  vertical-align: top;
  text-rendering: auto;
}
.pure-button {
  font-family: inherit;
  font-size: 100%;
  padding: 0.5em 1em;
  color: rgba(0, 0, 0, 0.8);
  border: none transparent;
  background-color: #e6e6e6;
  text-decoration: none;
  border-radius: 2px;
}
.pure-button-hover,
.pure-button:focus,
.pure-button:hover {
  background-image: -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(40%, rgba(0, 0, 0, 0.05)), to(rgba(0, 0, 0, 0.1)));
  background-image:
    linear-gradient(
      transparent,
      rgba(0, 0, 0, 0.05) 40%,
      rgba(0, 0, 0, 0.1));
}
.pure-button:focus {
  outline: 0;
}
.pure-button-active,
.pure-button:active {
  -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 6px rgba(0, 0, 0, 0.2) inset;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 6px rgba(0, 0, 0, 0.2) inset;
  border-color: #000;
}
.pure-button-disabled,
.pure-button-disabled:active,
.pure-button-disabled:focus,
.pure-button-disabled:hover,
.pure-button[disabled] {
  border: none;
  background-image: none;
  opacity: 0.4;
  cursor: not-allowed;
  -webkit-box-shadow: none;
  box-shadow: none;
  pointer-events: none;
}
.pure-button-hidden {
  display: none;
}
.pure-button-primary,
.pure-button-selected,
a.pure-button-primary,
a.pure-button-selected {
  background-color: #0078e7;
  color: #fff;
}
.pure-button-group .pure-button {
  margin: 0;
  border-radius: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}
.pure-button-group .pure-button:first-child {
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
}
.pure-button-group .pure-button:last-child {
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  border-right: none;
}
.pure-form input[type=color],
.pure-form input[type=date],
.pure-form input[type=datetime-local],
.pure-form input[type=datetime],
.pure-form input[type=email],
.pure-form input[type=month],
.pure-form input[type=number],
.pure-form input[type=password],
.pure-form input[type=search],
.pure-form input[type=tel],
.pure-form input[type=text],
.pure-form input[type=time],
.pure-form input[type=url],
.pure-form input[type=week],
.pure-form select,
.pure-form textarea {
  padding: 0.5em 0.6em;
  display: inline-block;
  border: 1px solid #ccc;
  -webkit-box-shadow: inset 0 1px 3px #ddd;
  box-shadow: inset 0 1px 3px #ddd;
  border-radius: 4px;
  vertical-align: middle;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.pure-form input:not([type]) {
  padding: 0.5em 0.6em;
  display: inline-block;
  border: 1px solid #ccc;
  -webkit-box-shadow: inset 0 1px 3px #ddd;
  box-shadow: inset 0 1px 3px #ddd;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.pure-form input[type=color] {
  padding: 0.2em 0.5em;
}
.pure-form input[type=color]:focus,
.pure-form input[type=date]:focus,
.pure-form input[type=datetime-local]:focus,
.pure-form input[type=datetime]:focus,
.pure-form input[type=email]:focus,
.pure-form input[type=month]:focus,
.pure-form input[type=number]:focus,
.pure-form input[type=password]:focus,
.pure-form input[type=search]:focus,
.pure-form input[type=tel]:focus,
.pure-form input[type=text]:focus,
.pure-form input[type=time]:focus,
.pure-form input[type=url]:focus,
.pure-form input[type=week]:focus,
.pure-form select:focus,
.pure-form textarea:focus {
  outline: 0;
  border-color: #129fea;
}
.pure-form input:not([type]):focus {
  outline: 0;
  border-color: #129fea;
}
.pure-form input[type=checkbox]:focus,
.pure-form input[type=file]:focus,
.pure-form input[type=radio]:focus {
  outline: thin solid #129fea;
  outline: 1px auto #129fea;
}
.pure-form .pure-checkbox,
.pure-form .pure-radio {
  margin: 0.5em 0;
  display: block;
}
.pure-form input[type=color][disabled],
.pure-form input[type=date][disabled],
.pure-form input[type=datetime-local][disabled],
.pure-form input[type=datetime][disabled],
.pure-form input[type=email][disabled],
.pure-form input[type=month][disabled],
.pure-form input[type=number][disabled],
.pure-form input[type=password][disabled],
.pure-form input[type=search][disabled],
.pure-form input[type=tel][disabled],
.pure-form input[type=text][disabled],
.pure-form input[type=time][disabled],
.pure-form input[type=url][disabled],
.pure-form input[type=week][disabled],
.pure-form select[disabled],
.pure-form textarea[disabled] {
  cursor: not-allowed;
  background-color: #eaeded;
  color: #cad2d3;
}
.pure-form input:not([type])[disabled] {
  cursor: not-allowed;
  background-color: #eaeded;
  color: #cad2d3;
}
.pure-form input[readonly],
.pure-form select[readonly],
.pure-form textarea[readonly] {
  background-color: #eee;
  color: #777;
  border-color: #ccc;
}
.pure-form input:focus:invalid,
.pure-form select:focus:invalid,
.pure-form textarea:focus:invalid {
  color: #b94a48;
  border-color: #e9322d;
}
.pure-form input[type=checkbox]:focus:invalid:focus,
.pure-form input[type=file]:focus:invalid:focus,
.pure-form input[type=radio]:focus:invalid:focus {
  outline-color: #e9322d;
}
.pure-form select {
  height: 2.25em;
  border: 1px solid #ccc;
  background-color: #fff;
}
.pure-form select[multiple] {
  height: auto;
}
.pure-form label {
  margin: 0.5em 0 0.2em;
}
.pure-form fieldset {
  margin: 0;
  padding: 0.35em 0 0.75em;
  border: 0;
}
.pure-form legend {
  display: block;
  width: 100%;
  padding: 0.3em 0;
  margin-bottom: 0.3em;
  color: #333;
  border-bottom: 1px solid #e5e5e5;
}
.pure-form-stacked input[type=color],
.pure-form-stacked input[type=date],
.pure-form-stacked input[type=datetime-local],
.pure-form-stacked input[type=datetime],
.pure-form-stacked input[type=email],
.pure-form-stacked input[type=file],
.pure-form-stacked input[type=month],
.pure-form-stacked input[type=number],
.pure-form-stacked input[type=password],
.pure-form-stacked input[type=search],
.pure-form-stacked input[type=tel],
.pure-form-stacked input[type=text],
.pure-form-stacked input[type=time],
.pure-form-stacked input[type=url],
.pure-form-stacked input[type=week],
.pure-form-stacked label,
.pure-form-stacked select,
.pure-form-stacked textarea {
  display: block;
  margin: 0.25em 0;
}
.pure-form-stacked input:not([type]) {
  display: block;
  margin: 0.25em 0;
}
.pure-form-aligned input,
.pure-form-aligned select,
.pure-form-aligned textarea,
.pure-form-message-inline {
  display: inline-block;
  vertical-align: middle;
}
.pure-form-aligned textarea {
  vertical-align: top;
}
.pure-form-aligned .pure-control-group {
  margin-bottom: 0.5em;
}
.pure-form-aligned .pure-control-group label {
  text-align: right;
  display: inline-block;
  vertical-align: middle;
  width: 10em;
  margin: 0 1em 0 0;
}
.pure-form-aligned .pure-controls {
  margin: 1.5em 0 0 11em;
}
.pure-form .pure-input-rounded,
.pure-form input.pure-input-rounded {
  border-radius: 2em;
  padding: 0.5em 1em;
}
.pure-form .pure-group fieldset {
  margin-bottom: 10px;
}
.pure-form .pure-group input,
.pure-form .pure-group textarea {
  display: block;
  padding: 10px;
  margin: 0 0 -1px;
  border-radius: 0;
  position: relative;
  top: -1px;
}
.pure-form .pure-group input:focus,
.pure-form .pure-group textarea:focus {
  z-index: 3;
}
.pure-form .pure-group input:first-child,
.pure-form .pure-group textarea:first-child {
  top: 1px;
  border-radius: 4px 4px 0 0;
  margin: 0;
}
.pure-form .pure-group input:first-child:last-child,
.pure-form .pure-group textarea:first-child:last-child {
  top: 1px;
  border-radius: 4px;
  margin: 0;
}
.pure-form .pure-group input:last-child,
.pure-form .pure-group textarea:last-child {
  top: -2px;
  border-radius: 0 0 4px 4px;
  margin: 0;
}
.pure-form .pure-group button {
  margin: 0.35em 0;
}
.pure-form .pure-input-1 {
  width: 100%;
}
.pure-form .pure-input-3-4 {
  width: 75%;
}
.pure-form .pure-input-2-3 {
  width: 66%;
}
.pure-form .pure-input-1-2 {
  width: 50%;
}
.pure-form .pure-input-1-3 {
  width: 33%;
}
.pure-form .pure-input-1-4 {
  width: 25%;
}
.pure-form-message-inline {
  display: inline-block;
  padding-left: 0.3em;
  color: #666;
  vertical-align: middle;
  font-size: 0.875em;
}
.pure-form-message {
  display: block;
  color: #666;
  font-size: 0.875em;
}
@media only screen and (max-width: 480px) {
  .pure-form button[type=submit] {
    margin: 0.7em 0 0;
  }
  .pure-form input:not([type]),
  .pure-form input[type=color],
  .pure-form input[type=date],
  .pure-form input[type=datetime-local],
  .pure-form input[type=datetime],
  .pure-form input[type=email],
  .pure-form input[type=month],
  .pure-form input[type=number],
  .pure-form input[type=password],
  .pure-form input[type=search],
  .pure-form input[type=tel],
  .pure-form input[type=text],
  .pure-form input[type=time],
  .pure-form input[type=url],
  .pure-form input[type=week],
  .pure-form label {
    margin-bottom: 0.3em;
    display: block;
  }
  .pure-group input:not([type]),
  .pure-group input[type=color],
  .pure-group input[type=date],
  .pure-group input[type=datetime-local],
  .pure-group input[type=datetime],
  .pure-group input[type=email],
  .pure-group input[type=month],
  .pure-group input[type=number],
  .pure-group input[type=password],
  .pure-group input[type=search],
  .pure-group input[type=tel],
  .pure-group input[type=text],
  .pure-group input[type=time],
  .pure-group input[type=url],
  .pure-group input[type=week] {
    margin-bottom: 0;
  }
  .pure-form-aligned .pure-control-group label {
    margin-bottom: 0.3em;
    text-align: left;
    display: block;
    width: 100%;
  }
  .pure-form-aligned .pure-controls {
    margin: 1.5em 0 0 0;
  }
  .pure-form-message,
  .pure-form-message-inline {
    display: block;
    font-size: 0.75em;
    padding: 0.2em 0 0.8em;
  }
}
.pure-menu {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.pure-menu-fixed {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3;
}
.pure-menu-item,
.pure-menu-list {
  position: relative;
}
.pure-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pure-menu-item {
  padding: 0;
  margin: 0;
  height: 100%;
}
.pure-menu-heading,
.pure-menu-link {
  display: block;
  text-decoration: none;
  white-space: nowrap;
}
.pure-menu-horizontal {
  width: 100%;
  white-space: nowrap;
}
.pure-menu-horizontal .pure-menu-list {
  display: inline-block;
}
.pure-menu-horizontal .pure-menu-heading,
.pure-menu-horizontal .pure-menu-item,
.pure-menu-horizontal .pure-menu-separator {
  display: inline-block;
  vertical-align: middle;
}
.pure-menu-item .pure-menu-item {
  display: block;
}
.pure-menu-children {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  margin: 0;
  padding: 0;
  z-index: 3;
}
.pure-menu-horizontal .pure-menu-children {
  left: 0;
  top: auto;
  width: inherit;
}
.pure-menu-active > .pure-menu-children,
.pure-menu-allow-hover:hover > .pure-menu-children {
  display: block;
  position: absolute;
}
.pure-menu-has-children > .pure-menu-link:after {
  padding-left: 0.5em;
  content: "\25b8";
  font-size: small;
}
.pure-menu-horizontal .pure-menu-has-children > .pure-menu-link:after {
  content: "\25be";
}
.pure-menu-scrollable {
  overflow-y: scroll;
  overflow-x: hidden;
}
.pure-menu-scrollable .pure-menu-list {
  display: block;
}
.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list {
  display: inline-block;
}
.pure-menu-horizontal.pure-menu-scrollable {
  white-space: nowrap;
  overflow-y: hidden;
  overflow-x: auto;
  padding: 0.5em 0;
}
.pure-menu-horizontal .pure-menu-children .pure-menu-separator,
.pure-menu-separator {
  background-color: #ccc;
  height: 1px;
  margin: 0.3em 0;
}
.pure-menu-horizontal .pure-menu-separator {
  width: 1px;
  height: 1.3em;
  margin: 0 0.3em;
}
.pure-menu-horizontal .pure-menu-children .pure-menu-separator {
  display: block;
  width: auto;
}
.pure-menu-heading {
  text-transform: uppercase;
  color: #565d64;
}
.pure-menu-link {
  color: #777;
}
.pure-menu-children {
  background-color: #fff;
}
.pure-menu-disabled,
.pure-menu-heading,
.pure-menu-link {
  padding: 0.5em 1em;
}
.pure-menu-disabled {
  opacity: 0.5;
}
.pure-menu-disabled .pure-menu-link:hover {
  background-color: transparent;
}
.pure-menu-active > .pure-menu-link,
.pure-menu-link:focus,
.pure-menu-link:hover {
  background-color: #eee;
}
.pure-menu-selected > .pure-menu-link,
.pure-menu-selected > .pure-menu-link:visited {
  color: #000;
}
.pure-table {
  border-collapse: collapse;
  border-spacing: 0;
  empty-cells: show;
  border: 1px solid #cbcbcb;
}
.pure-table caption {
  color: #000;
  font: italic 85%/1 arial, sans-serif;
  padding: 1em 0;
  text-align: center;
}
.pure-table td,
.pure-table th {
  border-left: 1px solid #cbcbcb;
  border-width: 0 0 0 1px;
  font-size: inherit;
  margin: 0;
  overflow: visible;
  padding: 0.5em 1em;
}
.pure-table thead {
  background-color: #e0e0e0;
  color: #000;
  text-align: left;
  vertical-align: bottom;
}
.pure-table td {
  background-color: transparent;
}
.pure-table-odd td {
  background-color: #f2f2f2;
}
.pure-table-striped tr:nth-child(2n-1) td {
  background-color: #f2f2f2;
}
.pure-table-bordered td {
  border-bottom: 1px solid #cbcbcb;
}
.pure-table-bordered tbody > tr:last-child > td {
  border-bottom-width: 0;
}
.pure-table-horizontal td,
.pure-table-horizontal th {
  border-width: 0 0 1px 0;
  border-bottom: 1px solid #cbcbcb;
}
.pure-table-horizontal tbody > tr:last-child > td {
  border-bottom-width: 0;
}

/* src/css/style.css */
.talerbar {
  text-align: center;
}
.tt {
  font-family:
    "Lucida Console",
    Monaco,
    monospace;
}
.content {
  overflow-x: auto;
  padding-left: 15%;
  padding-right: 15%;
}
.qr {
  margin: auto;
  text-align: center;
}
.qrtext {
  width: max-content;
  margin: auto;
  transition: font-size 0.2s;
  font-family:
    "Lucida Console",
    Monaco,
    monospace;
  font-size: 0.5em;
}
.qrtext:hover {
  font-size: 1em;
}
.talerbar {
  margin: 0;
  bottom: 0;
  background-color: #033;
  color: white;
  width: 100%;
  padding: 1em;
  overflow: auto;
}
body {
  overflow-y: scroll;
}
@media (min-width: 500px) {
  .content {
    padding-bottom: 2em;
    overflow-y: auto;
  }
}
#main a:link,
#main a:visited,
#main a:hover,
#main a:active {
  color: black;
}
/*!
  Pure v2.0.3
  Copyright 2013 Yahoo!
  Licensed under the BSD License.
  https://github.com/pure-cs s/pure/blob/master/LICENSE.md
*/
/*!
  normalize.cs s v | MIT License | git.io/normalize
  Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
/*! normalize.cs s v8.0.1 | MIT License | github.com/necolas/normalize.cs s */
/*!
  Pure v2.0.3
  Copyright 2013 Yahoo!
  Licensed under the BSD License.
  https://github.com/pure-ss/pure/blob/master/LICENSE.md
*/
/*!
  normalize.cs v | MIT License | git.io/normalize
  Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
/*! normalize.ss v8.0.1 | MIT License | github.com/necolas/normalize.cs */
</style>
            </head>
            <script id="built_time_data">
            </script>
            <body>
              <div class="p1b3vqup"><header><h1>Details of order {{ contract_terms.order_id }}</h1></header><section>{{#refund_amount}}<section><div class="i1pkgksb"><b>Refunded:</b> The merchant refunded you <b>{{ refund_amount }}</b>.</div></section>{{/refund_amount}}{{#contract_terms.fulfillment_message}}<section><div class="i1pkgksb"><b>{{ contract_terms.fulfillment_message }}</b>.</div></section>{{/contract_terms.fulfillment_message}}<section><dl class="t2c81u8"><dt>Order summary:</dt><dd>{{ contract_terms.summary }}</dd>{{#contract_terms.fulfillment_url}}<dt>Fulfillment URL:</dt><dd><a href="{{ contract_terms.fulfillment_url }}">{{ contract_terms.fulfillment_url }}</a></dd>{{/contract_terms.fulfillment_url}}<dt>Amount paid:</dt><dd>{{ contract_terms.amount }}</dd><dt>Order date:</dt><dd>{{ contract_terms.timestamp_str }} </dd><dt>Merchant name:</dt><dd>{{ contract_terms.merchant.name }}</dd></dl></section>{{#contract_terms.hasProducts}}<section><h2>Products purchased</h2><dl class="t1mav7fx">{{#contract_terms.products}}<p>{{description}}</p><dl><dt>Quantity:</dt><dd>{{quantity}}</dd><dt>Price:</dt><dd>{{price}}</dd>{{#hasTaxes}}{{#taxes}}<dt>{{name}}</dt><dd>{{tax}}</dd>{{/taxes}}{{/hasTaxes}}{{#delivery_date}}<dt>Delivered on:</dt><dd>{{ delivery_date_str }} </dd>{{/delivery_date}}{{#unit}}<dt>Product unit:</dt><dd>{{.}}</dd>{{/unit}}{{#product_id}}<dt>Product ID:</dt><dd>{{.}}</dd>{{/product_id}}</dl>{{/contract_terms.products}}</dl></section>{{/contract_terms.hasProducts}}{{#contract_terms.has_delivery_info}}<section><h2>Delivery information</h2><dl class="t2c81u8">{{#contract_terms.delivery_date}}<dt>Delivery date:</dt><dd>{{ contract_terms.delivery_date_str }} </dd>{{/contract_terms.delivery_date}}{{#contract_terms.delivery_location}}<dt>Delivery address:</dt>{{#contract_terms.delivery_location.building_name}}<dd>{{ contract_terms.delivery_location.building_name }} {{ contract_terms.delivery_location.building_number }}</dd>{{/contract_terms.delivery_location.building_name}}{{#contract_terms.delivery_location.country}}<dd>{{ contract_terms.delivery_location.country }} {{ contract_terms.delivery_location.country_subdivision }}</dd>{{/contract_terms.delivery_location.country}}{{#contract_terms.delivery_location.district}}<dd>{{ contract_terms.delivery_location.district }}</dd>{{/contract_terms.delivery_location.district}}{{#contract_terms.delivery_location.post_code}}<dd>{{ contract_terms.delivery_location.post_code }}</dd>{{/contract_terms.delivery_location.post_code}}{{#contract_terms.delivery_location.street}}<dd>{{ contract_terms.delivery_location.street }}</dd>{{/contract_terms.delivery_location.street}}{{#contract_terms.delivery_location.town}}<dd>{{ contract_terms.delivery_location.town }}</dd>{{/contract_terms.delivery_location.town}}{{#contract_terms.delivery_location.town_location}}<dd>{{ contract_terms.delivery_location.town_location }}</dd>{{/contract_terms.delivery_location.town_location}}{{/contract_terms.delivery_location}}</dl></section>{{/contract_terms.has_delivery_info}}<section><h2>Full payment information</h2><dl class="t2c81u8"><dt>Exchange transfer deadline:</dt>{{#contract_terms.wire_transfer_deadline_str}}<dd>{{ contract_terms.wire_transfer_deadline_str }} </dd>{{/contract_terms.wire_transfer_deadline_str}}{{^contract_terms.wire_transfer_deadline_str}}<dd>Wire transfer settled.</dd>{{/contract_terms.wire_transfer_deadline_str}}{{#contract_terms.max_fee}}<dt>Maximum deposit fee:</dt><dd>{{ contract_terms.max_fee }}</dd>{{/contract_terms.max_fee}}{{#contract_terms.max_wire_fee}}<dt>Maximum wire fee:</dt><dd>{{ contract_terms.max_wire_fee }}</dd>{{/contract_terms.max_wire_fee}}{{#contract_terms.wire_fee_amortization}}<dt>Wire fee amortization:</dt><dd>{{ contract_terms.wire_fee_amortization }} transactions</dd>{{/contract_terms.wire_fee_amortization}}</dl></section><section><h2>Refund information</h2><dl class="t2c81u8"><dt>Refund deadline:</dt><dd>{{ contract_terms.refund_deadline_str }} </dd>{{#contract_terms.auto_refund}}<dt>Attempt autorefund for:</dt><dd>{{ contract_terms.auto_refund_str }} </dd>{{/contract_terms.auto_refund}}</dl></section><section><h2>Additional order details</h2><dl class="t2c81u8"><dt>Public reorder URL:</dt><dd> -- not defined yet -- </dd>{{#contract_terms.fulfillment_url}}<dt>Fulfillment URL:</dt><dd>{{ contract_terms.fulfillment_url }}</dd>{{/contract_terms.fulfillment_url}}</dl></section><section><h2>Full merchant information</h2><dl class="t2c81u8"><dt>Merchant name:</dt><dd>{{ contract_terms.merchant.name }}</dd><dt>Merchant address:</dt>{{#contract_terms.merchant.address.building_name}}<dd>{{ contract_terms.merchant.address.building_name }} {{ contract_terms.merchant.address.building_number }}</dd>{{/contract_terms.merchant.address.building_name}}{{#contract_terms.merchant.address.country}}<dd>{{ contract_terms.merchant.address.country }} {{ contract_terms.merchant.address.country_subdivision }}</dd>{{/contract_terms.merchant.address.country}}{{#contract_terms.merchant.address.district}}<dd>{{ contract_terms.merchant.address.district }}</dd>{{/contract_terms.merchant.address.district}}{{#contract_terms.merchant.address.post_code}}<dd>{{ contract_terms.merchant.address.post_code }}</dd>{{/contract_terms.merchant.address.post_code}}{{#contract_terms.merchant.address.street}}<dd>{{ contract_terms.merchant.address.street }}</dd>{{/contract_terms.merchant.address.street}}{{#contract_terms.merchant.address.town}}<dd>{{ contract_terms.merchant.address.town }}</dd>{{/contract_terms.merchant.address.town}}{{#contract_terms.merchant.address.town_location}}<dd>{{ contract_terms.merchant.address.town_location }}</dd>{{/contract_terms.merchant.address.town_location}}<dt>Merchant's jurisdiction:</dt>{{#contract_terms.merchant.jurisdiction.building_name}}<dd>{{ contract_terms.merchant.jurisdiction.building_name }} {{ contract_terms.merchant.jurisdiction.building_number }}</dd>{{/contract_terms.merchant.jurisdiction.building_name}}{{#contract_terms.merchant.jurisdiction.country}}<dd>{{ contract_terms.merchant.jurisdiction.country }} {{ contract_terms.merchant.jurisdiction.country_subdivision }}</dd>{{/contract_terms.merchant.jurisdiction.country}}{{#contract_terms.merchant.jurisdiction.district}}<dd>{{ contract_terms.merchant.jurisdiction.district }}</dd>{{/contract_terms.merchant.jurisdiction.district}}{{#contract_terms.merchant.jurisdiction.post_code}}<dd>{{ contract_terms.merchant.jurisdiction.post_code }}</dd>{{/contract_terms.merchant.jurisdiction.post_code}}{{#contract_terms.merchant.jurisdiction.street}}<dd>{{ contract_terms.merchant.jurisdiction.street }}</dd>{{/contract_terms.merchant.jurisdiction.street}}{{#contract_terms.merchant.jurisdiction.town}}<dd>{{ contract_terms.merchant.jurisdiction.town }}</dd>{{/contract_terms.merchant.jurisdiction.town}}{{#contract_terms.merchant.jurisdiction.town_location}}<dd>{{ contract_terms.merchant.jurisdiction.town_location }}</dd>{{/contract_terms.merchant.jurisdiction.town_location}}<dt>Merchant URI:</dt><dd>{{ contract_terms.merchant_base_url }}</dd><dt>Merchant's public key:</dt><dd>{{ contract_terms.merchant_pub }}</dd></dl></section>{{#contract_terms.hasAuditors}}<section><h2>Auditors accepted by the merchant</h2><dl class="t2c81u8">{{#contract_terms.auditors}}<p>{{name}}</p><dt>Auditor's public key:</dt><dd>{{auditor_pub}}</dd><dt>Auditor's URL:</dt><dd>{{url}}</dd>{{/contract_terms.auditors}}</dl></section>{{/contract_terms.hasAuditors}}{{#contract_terms.hasExchanges}}<section><h2>Exchanges accepted by the merchant</h2><dl class="t2c81u8">{{#contract_terms.exchanges}}<dt>Exchange's URL:</dt><dd>{{url}}</dd><dt>Public key:</dt><dd>{{master_pub}}</dd>{{/contract_terms.exchanges}}</dl></section>{{/contract_terms.hasExchanges}}</section><footer class="fef0x5t"><p><a href="https://taler.net/">Learn more about GNU Taler on our website.</a><p>Copyright © 2014—2021 Taler Systems SA</p></p></footer></div>
              <script>"use strict";
var page = (() => {
  var __defProp = Object.defineProperty;
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  var __getOwnPropNames = Object.getOwnPropertyNames;
  var __hasOwnProp = Object.prototype.hasOwnProperty;
  var __export = (target, all) => {
    for (var name in all)
      __defProp(target, name, { get: all[name], enumerable: true });
  };
  var __copyProps = (to, from, except, desc) => {
    if (from && typeof from === "object" || typeof from === "function") {
      for (let key of __getOwnPropNames(from))
        if (!__hasOwnProp.call(to, key) && key !== except)
          __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
    }
    return to;
  };
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

  // src/pages/ShowOrderDetails.tsx
  var ShowOrderDetails_exports = {};
  __export(ShowOrderDetails_exports, {
    ShowOrderDetails: () => ShowOrderDetails,
    buildTimeRendering: () => buildTimeRendering,
    mount: () => mount
  });

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/toInteger/index.js
  function toInteger(dirtyNumber) {
    if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
      return NaN;
    }
    var number = Number(dirtyNumber);
    if (isNaN(number)) {
      return number;
    }
    return number < 0 ? Math.ceil(number) : Math.floor(number);
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/requiredArgs/index.js
  function requiredArgs(required, args) {
    if (args.length < required) {
      throw new TypeError(required + " argument" + (required > 1 ? "s" : "") + " required, but only " + args.length + " present");
    }
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/toDate/index.js
  function _typeof(obj) {
    "@babel/helpers - typeof";
    if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
      _typeof = function _typeof4(obj2) {
        return typeof obj2;
      };
    } else {
      _typeof = function _typeof4(obj2) {
        return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
      };
    }
    return _typeof(obj);
  }
  function toDate(argument) {
    requiredArgs(1, arguments);
    var argStr = Object.prototype.toString.call(argument);
    if (argument instanceof Date || _typeof(argument) === "object" && argStr === "[object Date]") {
      return new Date(argument.getTime());
    } else if (typeof argument === "number" || argStr === "[object Number]") {
      return new Date(argument);
    } else {
      if ((typeof argument === "string" || argStr === "[object String]") && typeof console !== "undefined") {
        console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
        console.warn(new Error().stack);
      }
      return /* @__PURE__ */ new Date(NaN);
    }
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/addDays/index.js
  function addDays(dirtyDate, dirtyAmount) {
    requiredArgs(2, arguments);
    var date = toDate(dirtyDate);
    var amount = toInteger(dirtyAmount);
    if (isNaN(amount)) {
      return /* @__PURE__ */ new Date(NaN);
    }
    if (!amount) {
      return date;
    }
    date.setDate(date.getDate() + amount);
    return date;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/addMonths/index.js
  function addMonths(dirtyDate, dirtyAmount) {
    requiredArgs(2, arguments);
    var date = toDate(dirtyDate);
    var amount = toInteger(dirtyAmount);
    if (isNaN(amount)) {
      return /* @__PURE__ */ new Date(NaN);
    }
    if (!amount) {
      return date;
    }
    var dayOfMonth = date.getDate();
    var endOfDesiredMonth = new Date(date.getTime());
    endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0);
    var daysInMonth = endOfDesiredMonth.getDate();
    if (dayOfMonth >= daysInMonth) {
      return endOfDesiredMonth;
    } else {
      date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);
      return date;
    }
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/add/index.js
  function _typeof2(obj) {
    "@babel/helpers - typeof";
    if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
      _typeof2 = function _typeof4(obj2) {
        return typeof obj2;
      };
    } else {
      _typeof2 = function _typeof4(obj2) {
        return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
      };
    }
    return _typeof2(obj);
  }
  function add(dirtyDate, duration) {
    requiredArgs(2, arguments);
    if (!duration || _typeof2(duration) !== "object")
      return /* @__PURE__ */ new Date(NaN);
    var years = duration.years ? toInteger(duration.years) : 0;
    var months = duration.months ? toInteger(duration.months) : 0;
    var weeks = duration.weeks ? toInteger(duration.weeks) : 0;
    var days = duration.days ? toInteger(duration.days) : 0;
    var hours = duration.hours ? toInteger(duration.hours) : 0;
    var minutes = duration.minutes ? toInteger(duration.minutes) : 0;
    var seconds = duration.seconds ? toInteger(duration.seconds) : 0;
    var date = toDate(dirtyDate);
    var dateWithMonths = months || years ? addMonths(date, months + years * 12) : date;
    var dateWithDays = days || weeks ? addDays(dateWithMonths, days + weeks * 7) : dateWithMonths;
    var minutesToAdd = minutes + hours * 60;
    var secondsToAdd = seconds + minutesToAdd * 60;
    var msToAdd = secondsToAdd * 1e3;
    var finalDate = new Date(dateWithDays.getTime() + msToAdd);
    return finalDate;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/addMilliseconds/index.js
  function addMilliseconds(dirtyDate, dirtyAmount) {
    requiredArgs(2, arguments);
    var timestamp = toDate(dirtyDate).getTime();
    var amount = toInteger(dirtyAmount);
    return new Date(timestamp + amount);
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/defaultOptions/index.js
  var defaultOptions = {};
  function getDefaultOptions() {
    return defaultOptions;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js
  function getTimezoneOffsetInMilliseconds(date) {
    var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
    utcDate.setUTCFullYear(date.getFullYear());
    return date.getTime() - utcDate.getTime();
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/startOfDay/index.js
  function startOfDay(dirtyDate) {
    requiredArgs(1, arguments);
    var date = toDate(dirtyDate);
    date.setHours(0, 0, 0, 0);
    return date;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/differenceInCalendarDays/index.js
  var MILLISECONDS_IN_DAY = 864e5;
  function differenceInCalendarDays(dirtyDateLeft, dirtyDateRight) {
    requiredArgs(2, arguments);
    var startOfDayLeft = startOfDay(dirtyDateLeft);
    var startOfDayRight = startOfDay(dirtyDateRight);
    var timestampLeft = startOfDayLeft.getTime() - getTimezoneOffsetInMilliseconds(startOfDayLeft);
    var timestampRight = startOfDayRight.getTime() - getTimezoneOffsetInMilliseconds(startOfDayRight);
    return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_DAY);
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/compareAsc/index.js
  function compareAsc(dirtyDateLeft, dirtyDateRight) {
    requiredArgs(2, arguments);
    var dateLeft = toDate(dirtyDateLeft);
    var dateRight = toDate(dirtyDateRight);
    var diff = dateLeft.getTime() - dateRight.getTime();
    if (diff < 0) {
      return -1;
    } else if (diff > 0) {
      return 1;
    } else {
      return diff;
    }
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/constants/index.js
  var daysInYear = 365.2425;
  var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
  var millisecondsInMinute = 6e4;
  var millisecondsInHour = 36e5;
  var minTime = -maxTime;
  var secondsInHour = 3600;
  var secondsInDay = secondsInHour * 24;
  var secondsInWeek = secondsInDay * 7;
  var secondsInYear = secondsInDay * daysInYear;
  var secondsInMonth = secondsInYear / 12;
  var secondsInQuarter = secondsInMonth * 3;

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/isDate/index.js
  function _typeof3(obj) {
    "@babel/helpers - typeof";
    if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
      _typeof3 = function _typeof4(obj2) {
        return typeof obj2;
      };
    } else {
      _typeof3 = function _typeof4(obj2) {
        return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
      };
    }
    return _typeof3(obj);
  }
  function isDate(value) {
    requiredArgs(1, arguments);
    return value instanceof Date || _typeof3(value) === "object" && Object.prototype.toString.call(value) === "[object Date]";
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/isValid/index.js
  function isValid(dirtyDate) {
    requiredArgs(1, arguments);
    if (!isDate(dirtyDate) && typeof dirtyDate !== "number") {
      return false;
    }
    var date = toDate(dirtyDate);
    return !isNaN(Number(date));
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/differenceInCalendarMonths/index.js
  function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) {
    requiredArgs(2, arguments);
    var dateLeft = toDate(dirtyDateLeft);
    var dateRight = toDate(dirtyDateRight);
    var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear();
    var monthDiff = dateLeft.getMonth() - dateRight.getMonth();
    return yearDiff * 12 + monthDiff;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/differenceInCalendarYears/index.js
  function differenceInCalendarYears(dirtyDateLeft, dirtyDateRight) {
    requiredArgs(2, arguments);
    var dateLeft = toDate(dirtyDateLeft);
    var dateRight = toDate(dirtyDateRight);
    return dateLeft.getFullYear() - dateRight.getFullYear();
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/differenceInDays/index.js
  function compareLocalAsc(dateLeft, dateRight) {
    var diff = dateLeft.getFullYear() - dateRight.getFullYear() || dateLeft.getMonth() - dateRight.getMonth() || dateLeft.getDate() - dateRight.getDate() || dateLeft.getHours() - dateRight.getHours() || dateLeft.getMinutes() - dateRight.getMinutes() || dateLeft.getSeconds() - dateRight.getSeconds() || dateLeft.getMilliseconds() - dateRight.getMilliseconds();
    if (diff < 0) {
      return -1;
    } else if (diff > 0) {
      return 1;
    } else {
      return diff;
    }
  }
  function differenceInDays(dirtyDateLeft, dirtyDateRight) {
    requiredArgs(2, arguments);
    var dateLeft = toDate(dirtyDateLeft);
    var dateRight = toDate(dirtyDateRight);
    var sign = compareLocalAsc(dateLeft, dateRight);
    var difference = Math.abs(differenceInCalendarDays(dateLeft, dateRight));
    dateLeft.setDate(dateLeft.getDate() - sign * difference);
    var isLastDayNotFull = Number(compareLocalAsc(dateLeft, dateRight) === -sign);
    var result = sign * (difference - isLastDayNotFull);
    return result === 0 ? 0 : result;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/differenceInMilliseconds/index.js
  function differenceInMilliseconds(dateLeft, dateRight) {
    requiredArgs(2, arguments);
    return toDate(dateLeft).getTime() - toDate(dateRight).getTime();
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/roundingMethods/index.js
  var roundingMap = {
    ceil: Math.ceil,
    round: Math.round,
    floor: Math.floor,
    trunc: function trunc(value) {
      return value < 0 ? Math.ceil(value) : Math.floor(value);
    }
    // Math.trunc is not supported by IE
  };
  var defaultRoundingMethod = "trunc";
  function getRoundingMethod(method) {
    return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/differenceInHours/index.js
  function differenceInHours(dateLeft, dateRight, options) {
    requiredArgs(2, arguments);
    var diff = differenceInMilliseconds(dateLeft, dateRight) / millisecondsInHour;
    return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/differenceInMinutes/index.js
  function differenceInMinutes(dateLeft, dateRight, options) {
    requiredArgs(2, arguments);
    var diff = differenceInMilliseconds(dateLeft, dateRight) / millisecondsInMinute;
    return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/endOfDay/index.js
  function endOfDay(dirtyDate) {
    requiredArgs(1, arguments);
    var date = toDate(dirtyDate);
    date.setHours(23, 59, 59, 999);
    return date;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/endOfMonth/index.js
  function endOfMonth(dirtyDate) {
    requiredArgs(1, arguments);
    var date = toDate(dirtyDate);
    var month = date.getMonth();
    date.setFullYear(date.getFullYear(), month + 1, 0);
    date.setHours(23, 59, 59, 999);
    return date;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/isLastDayOfMonth/index.js
  function isLastDayOfMonth(dirtyDate) {
    requiredArgs(1, arguments);
    var date = toDate(dirtyDate);
    return endOfDay(date).getTime() === endOfMonth(date).getTime();
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/differenceInMonths/index.js
  function differenceInMonths(dirtyDateLeft, dirtyDateRight) {
    requiredArgs(2, arguments);
    var dateLeft = toDate(dirtyDateLeft);
    var dateRight = toDate(dirtyDateRight);
    var sign = compareAsc(dateLeft, dateRight);
    var difference = Math.abs(differenceInCalendarMonths(dateLeft, dateRight));
    var result;
    if (difference < 1) {
      result = 0;
    } else {
      if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) {
        dateLeft.setDate(30);
      }
      dateLeft.setMonth(dateLeft.getMonth() - sign * difference);
      var isLastMonthNotFull = compareAsc(dateLeft, dateRight) === -sign;
      if (isLastDayOfMonth(toDate(dirtyDateLeft)) && difference === 1 && compareAsc(dirtyDateLeft, dateRight) === 1) {
        isLastMonthNotFull = false;
      }
      result = sign * (difference - Number(isLastMonthNotFull));
    }
    return result === 0 ? 0 : result;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/differenceInSeconds/index.js
  function differenceInSeconds(dateLeft, dateRight, options) {
    requiredArgs(2, arguments);
    var diff = differenceInMilliseconds(dateLeft, dateRight) / 1e3;
    return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/differenceInYears/index.js
  function differenceInYears(dirtyDateLeft, dirtyDateRight) {
    requiredArgs(2, arguments);
    var dateLeft = toDate(dirtyDateLeft);
    var dateRight = toDate(dirtyDateRight);
    var sign = compareAsc(dateLeft, dateRight);
    var difference = Math.abs(differenceInCalendarYears(dateLeft, dateRight));
    dateLeft.setFullYear(1584);
    dateRight.setFullYear(1584);
    var isLastYearNotFull = compareAsc(dateLeft, dateRight) === -sign;
    var result = sign * (difference - Number(isLastYearNotFull));
    return result === 0 ? 0 : result;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/subMilliseconds/index.js
  function subMilliseconds(dirtyDate, dirtyAmount) {
    requiredArgs(2, arguments);
    var amount = toInteger(dirtyAmount);
    return addMilliseconds(dirtyDate, -amount);
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js
  var MILLISECONDS_IN_DAY2 = 864e5;
  function getUTCDayOfYear(dirtyDate) {
    requiredArgs(1, arguments);
    var date = toDate(dirtyDate);
    var timestamp = date.getTime();
    date.setUTCMonth(0, 1);
    date.setUTCHours(0, 0, 0, 0);
    var startOfYearTimestamp = date.getTime();
    var difference = timestamp - startOfYearTimestamp;
    return Math.floor(difference / MILLISECONDS_IN_DAY2) + 1;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js
  function startOfUTCISOWeek(dirtyDate) {
    requiredArgs(1, arguments);
    var weekStartsOn = 1;
    var date = toDate(dirtyDate);
    var day = date.getUTCDay();
    var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
    date.setUTCDate(date.getUTCDate() - diff);
    date.setUTCHours(0, 0, 0, 0);
    return date;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js
  function getUTCISOWeekYear(dirtyDate) {
    requiredArgs(1, arguments);
    var date = toDate(dirtyDate);
    var year = date.getUTCFullYear();
    var fourthOfJanuaryOfNextYear = /* @__PURE__ */ new Date(0);
    fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
    fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
    var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);
    var fourthOfJanuaryOfThisYear = /* @__PURE__ */ new Date(0);
    fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
    fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
    var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
    if (date.getTime() >= startOfNextYear.getTime()) {
      return year + 1;
    } else if (date.getTime() >= startOfThisYear.getTime()) {
      return year;
    } else {
      return year - 1;
    }
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js
  function startOfUTCISOWeekYear(dirtyDate) {
    requiredArgs(1, arguments);
    var year = getUTCISOWeekYear(dirtyDate);
    var fourthOfJanuary = /* @__PURE__ */ new Date(0);
    fourthOfJanuary.setUTCFullYear(year, 0, 4);
    fourthOfJanuary.setUTCHours(0, 0, 0, 0);
    var date = startOfUTCISOWeek(fourthOfJanuary);
    return date;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js
  var MILLISECONDS_IN_WEEK = 6048e5;
  function getUTCISOWeek(dirtyDate) {
    requiredArgs(1, arguments);
    var date = toDate(dirtyDate);
    var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime();
    return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js
  function startOfUTCWeek(dirtyDate, options) {
    var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
    requiredArgs(1, arguments);
    var defaultOptions2 = getDefaultOptions();
    var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions2.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);
    if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
      throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
    }
    var date = toDate(dirtyDate);
    var day = date.getUTCDay();
    var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
    date.setUTCDate(date.getUTCDate() - diff);
    date.setUTCHours(0, 0, 0, 0);
    return date;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js
  function getUTCWeekYear(dirtyDate, options) {
    var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
    requiredArgs(1, arguments);
    var date = toDate(dirtyDate);
    var year = date.getUTCFullYear();
    var defaultOptions2 = getDefaultOptions();
    var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
    if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
      throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
    }
    var firstWeekOfNextYear = /* @__PURE__ */ new Date(0);
    firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
    firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
    var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);
    var firstWeekOfThisYear = /* @__PURE__ */ new Date(0);
    firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
    firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
    var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
    if (date.getTime() >= startOfNextYear.getTime()) {
      return year + 1;
    } else if (date.getTime() >= startOfThisYear.getTime()) {
      return year;
    } else {
      return year - 1;
    }
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js
  function startOfUTCWeekYear(dirtyDate, options) {
    var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
    requiredArgs(1, arguments);
    var defaultOptions2 = getDefaultOptions();
    var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
    var year = getUTCWeekYear(dirtyDate, options);
    var firstWeek = /* @__PURE__ */ new Date(0);
    firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
    firstWeek.setUTCHours(0, 0, 0, 0);
    var date = startOfUTCWeek(firstWeek, options);
    return date;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/getUTCWeek/index.js
  var MILLISECONDS_IN_WEEK2 = 6048e5;
  function getUTCWeek(dirtyDate, options) {
    requiredArgs(1, arguments);
    var date = toDate(dirtyDate);
    var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime();
    return Math.round(diff / MILLISECONDS_IN_WEEK2) + 1;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/addLeadingZeros/index.js
  function addLeadingZeros(number, targetLength) {
    var sign = number < 0 ? "-" : "";
    var output = Math.abs(number).toString();
    while (output.length < targetLength) {
      output = "0" + output;
    }
    return sign + output;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/format/lightFormatters/index.js
  var formatters = {
    // Year
    y: function y(date, token) {
      var signedYear = date.getUTCFullYear();
      var year = signedYear > 0 ? signedYear : 1 - signedYear;
      return addLeadingZeros(token === "yy" ? year % 100 : year, token.length);
    },
    // Month
    M: function M(date, token) {
      var month = date.getUTCMonth();
      return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2);
    },
    // Day of the month
    d: function d(date, token) {
      return addLeadingZeros(date.getUTCDate(), token.length);
    },
    // AM or PM
    a: function a(date, token) {
      var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? "pm" : "am";
      switch (token) {
        case "a":
        case "aa":
          return dayPeriodEnumValue.toUpperCase();
        case "aaa":
          return dayPeriodEnumValue;
        case "aaaaa":
          return dayPeriodEnumValue[0];
        case "aaaa":
        default:
          return dayPeriodEnumValue === "am" ? "a.m." : "p.m.";
      }
    },
    // Hour [1-12]
    h: function h(date, token) {
      return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
    },
    // Hour [0-23]
    H: function H(date, token) {
      return addLeadingZeros(date.getUTCHours(), token.length);
    },
    // Minute
    m: function m(date, token) {
      return addLeadingZeros(date.getUTCMinutes(), token.length);
    },
    // Second
    s: function s(date, token) {
      return addLeadingZeros(date.getUTCSeconds(), token.length);
    },
    // Fraction of second
    S: function S(date, token) {
      var numberOfDigits = token.length;
      var milliseconds = date.getUTCMilliseconds();
      var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
      return addLeadingZeros(fractionalSeconds, token.length);
    }
  };
  var lightFormatters_default = formatters;

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/format/formatters/index.js
  var dayPeriodEnum = {
    am: "am",
    pm: "pm",
    midnight: "midnight",
    noon: "noon",
    morning: "morning",
    afternoon: "afternoon",
    evening: "evening",
    night: "night"
  };
  var formatters2 = {
    // Era
    G: function G(date, token, localize2) {
      var era = date.getUTCFullYear() > 0 ? 1 : 0;
      switch (token) {
        case "G":
        case "GG":
        case "GGG":
          return localize2.era(era, {
            width: "abbreviated"
          });
        case "GGGGG":
          return localize2.era(era, {
            width: "narrow"
          });
        case "GGGG":
        default:
          return localize2.era(era, {
            width: "wide"
          });
      }
    },
    // Year
    y: function y2(date, token, localize2) {
      if (token === "yo") {
        var signedYear = date.getUTCFullYear();
        var year = signedYear > 0 ? signedYear : 1 - signedYear;
        return localize2.ordinalNumber(year, {
          unit: "year"
        });
      }
      return lightFormatters_default.y(date, token);
    },
    // Local week-numbering year
    Y: function Y(date, token, localize2, options) {
      var signedWeekYear = getUTCWeekYear(date, options);
      var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
      if (token === "YY") {
        var twoDigitYear = weekYear % 100;
        return addLeadingZeros(twoDigitYear, 2);
      }
      if (token === "Yo") {
        return localize2.ordinalNumber(weekYear, {
          unit: "year"
        });
      }
      return addLeadingZeros(weekYear, token.length);
    },
    // ISO week-numbering year
    R: function R(date, token) {
      var isoWeekYear = getUTCISOWeekYear(date);
      return addLeadingZeros(isoWeekYear, token.length);
    },
    // Extended year. This is a single number designating the year of this calendar system.
    // The main difference between `y` and `u` localizers are B.C. years:
    // | Year | `y` | `u` |
    // |------|-----|-----|
    // | AC 1 |   1 |   1 |
    // | BC 1 |   1 |   0 |
    // | BC 2 |   2 |  -1 |
    // Also `yy` always returns the last two digits of a year,
    // while `uu` pads single digit years to 2 characters and returns other years unchanged.
    u: function u(date, token) {
      var year = date.getUTCFullYear();
      return addLeadingZeros(year, token.length);
    },
    // Quarter
    Q: function Q(date, token, localize2) {
      var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
      switch (token) {
        case "Q":
          return String(quarter);
        case "QQ":
          return addLeadingZeros(quarter, 2);
        case "Qo":
          return localize2.ordinalNumber(quarter, {
            unit: "quarter"
          });
        case "QQQ":
          return localize2.quarter(quarter, {
            width: "abbreviated",
            context: "formatting"
          });
        case "QQQQQ":
          return localize2.quarter(quarter, {
            width: "narrow",
            context: "formatting"
          });
        case "QQQQ":
        default:
          return localize2.quarter(quarter, {
            width: "wide",
            context: "formatting"
          });
      }
    },
    // Stand-alone quarter
    q: function q(date, token, localize2) {
      var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
      switch (token) {
        case "q":
          return String(quarter);
        case "qq":
          return addLeadingZeros(quarter, 2);
        case "qo":
          return localize2.ordinalNumber(quarter, {
            unit: "quarter"
          });
        case "qqq":
          return localize2.quarter(quarter, {
            width: "abbreviated",
            context: "standalone"
          });
        case "qqqqq":
          return localize2.quarter(quarter, {
            width: "narrow",
            context: "standalone"
          });
        case "qqqq":
        default:
          return localize2.quarter(quarter, {
            width: "wide",
            context: "standalone"
          });
      }
    },
    // Month
    M: function M2(date, token, localize2) {
      var month = date.getUTCMonth();
      switch (token) {
        case "M":
        case "MM":
          return lightFormatters_default.M(date, token);
        case "Mo":
          return localize2.ordinalNumber(month + 1, {
            unit: "month"
          });
        case "MMM":
          return localize2.month(month, {
            width: "abbreviated",
            context: "formatting"
          });
        case "MMMMM":
          return localize2.month(month, {
            width: "narrow",
            context: "formatting"
          });
        case "MMMM":
        default:
          return localize2.month(month, {
            width: "wide",
            context: "formatting"
          });
      }
    },
    // Stand-alone month
    L: function L(date, token, localize2) {
      var month = date.getUTCMonth();
      switch (token) {
        case "L":
          return String(month + 1);
        case "LL":
          return addLeadingZeros(month + 1, 2);
        case "Lo":
          return localize2.ordinalNumber(month + 1, {
            unit: "month"
          });
        case "LLL":
          return localize2.month(month, {
            width: "abbreviated",
            context: "standalone"
          });
        case "LLLLL":
          return localize2.month(month, {
            width: "narrow",
            context: "standalone"
          });
        case "LLLL":
        default:
          return localize2.month(month, {
            width: "wide",
            context: "standalone"
          });
      }
    },
    // Local week of year
    w: function w(date, token, localize2, options) {
      var week = getUTCWeek(date, options);
      if (token === "wo") {
        return localize2.ordinalNumber(week, {
          unit: "week"
        });
      }
      return addLeadingZeros(week, token.length);
    },
    // ISO week of year
    I: function I(date, token, localize2) {
      var isoWeek = getUTCISOWeek(date);
      if (token === "Io") {
        return localize2.ordinalNumber(isoWeek, {
          unit: "week"
        });
      }
      return addLeadingZeros(isoWeek, token.length);
    },
    // Day of the month
    d: function d2(date, token, localize2) {
      if (token === "do") {
        return localize2.ordinalNumber(date.getUTCDate(), {
          unit: "date"
        });
      }
      return lightFormatters_default.d(date, token);
    },
    // Day of year
    D: function D(date, token, localize2) {
      var dayOfYear = getUTCDayOfYear(date);
      if (token === "Do") {
        return localize2.ordinalNumber(dayOfYear, {
          unit: "dayOfYear"
        });
      }
      return addLeadingZeros(dayOfYear, token.length);
    },
    // Day of week
    E: function E(date, token, localize2) {
      var dayOfWeek = date.getUTCDay();
      switch (token) {
        case "E":
        case "EE":
        case "EEE":
          return localize2.day(dayOfWeek, {
            width: "abbreviated",
            context: "formatting"
          });
        case "EEEEE":
          return localize2.day(dayOfWeek, {
            width: "narrow",
            context: "formatting"
          });
        case "EEEEEE":
          return localize2.day(dayOfWeek, {
            width: "short",
            context: "formatting"
          });
        case "EEEE":
        default:
          return localize2.day(dayOfWeek, {
            width: "wide",
            context: "formatting"
          });
      }
    },
    // Local day of week
    e: function e(date, token, localize2, options) {
      var dayOfWeek = date.getUTCDay();
      var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
      switch (token) {
        case "e":
          return String(localDayOfWeek);
        case "ee":
          return addLeadingZeros(localDayOfWeek, 2);
        case "eo":
          return localize2.ordinalNumber(localDayOfWeek, {
            unit: "day"
          });
        case "eee":
          return localize2.day(dayOfWeek, {
            width: "abbreviated",
            context: "formatting"
          });
        case "eeeee":
          return localize2.day(dayOfWeek, {
            width: "narrow",
            context: "formatting"
          });
        case "eeeeee":
          return localize2.day(dayOfWeek, {
            width: "short",
            context: "formatting"
          });
        case "eeee":
        default:
          return localize2.day(dayOfWeek, {
            width: "wide",
            context: "formatting"
          });
      }
    },
    // Stand-alone local day of week
    c: function c(date, token, localize2, options) {
      var dayOfWeek = date.getUTCDay();
      var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
      switch (token) {
        case "c":
          return String(localDayOfWeek);
        case "cc":
          return addLeadingZeros(localDayOfWeek, token.length);
        case "co":
          return localize2.ordinalNumber(localDayOfWeek, {
            unit: "day"
          });
        case "ccc":
          return localize2.day(dayOfWeek, {
            width: "abbreviated",
            context: "standalone"
          });
        case "ccccc":
          return localize2.day(dayOfWeek, {
            width: "narrow",
            context: "standalone"
          });
        case "cccccc":
          return localize2.day(dayOfWeek, {
            width: "short",
            context: "standalone"
          });
        case "cccc":
        default:
          return localize2.day(dayOfWeek, {
            width: "wide",
            context: "standalone"
          });
      }
    },
    // ISO day of week
    i: function i(date, token, localize2) {
      var dayOfWeek = date.getUTCDay();
      var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
      switch (token) {
        case "i":
          return String(isoDayOfWeek);
        case "ii":
          return addLeadingZeros(isoDayOfWeek, token.length);
        case "io":
          return localize2.ordinalNumber(isoDayOfWeek, {
            unit: "day"
          });
        case "iii":
          return localize2.day(dayOfWeek, {
            width: "abbreviated",
            context: "formatting"
          });
        case "iiiii":
          return localize2.day(dayOfWeek, {
            width: "narrow",
            context: "formatting"
          });
        case "iiiiii":
          return localize2.day(dayOfWeek, {
            width: "short",
            context: "formatting"
          });
        case "iiii":
        default:
          return localize2.day(dayOfWeek, {
            width: "wide",
            context: "formatting"
          });
      }
    },
    // AM or PM
    a: function a2(date, token, localize2) {
      var hours = date.getUTCHours();
      var dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
      switch (token) {
        case "a":
        case "aa":
          return localize2.dayPeriod(dayPeriodEnumValue, {
            width: "abbreviated",
            context: "formatting"
          });
        case "aaa":
          return localize2.dayPeriod(dayPeriodEnumValue, {
            width: "abbreviated",
            context: "formatting"
          }).toLowerCase();
        case "aaaaa":
          return localize2.dayPeriod(dayPeriodEnumValue, {
            width: "narrow",
            context: "formatting"
          });
        case "aaaa":
        default:
          return localize2.dayPeriod(dayPeriodEnumValue, {
            width: "wide",
            context: "formatting"
          });
      }
    },
    // AM, PM, midnight, noon
    b: function b(date, token, localize2) {
      var hours = date.getUTCHours();
      var dayPeriodEnumValue;
      if (hours === 12) {
        dayPeriodEnumValue = dayPeriodEnum.noon;
      } else if (hours === 0) {
        dayPeriodEnumValue = dayPeriodEnum.midnight;
      } else {
        dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
      }
      switch (token) {
        case "b":
        case "bb":
          return localize2.dayPeriod(dayPeriodEnumValue, {
            width: "abbreviated",
            context: "formatting"
          });
        case "bbb":
          return localize2.dayPeriod(dayPeriodEnumValue, {
            width: "abbreviated",
            context: "formatting"
          }).toLowerCase();
        case "bbbbb":
          return localize2.dayPeriod(dayPeriodEnumValue, {
            width: "narrow",
            context: "formatting"
          });
        case "bbbb":
        default:
          return localize2.dayPeriod(dayPeriodEnumValue, {
            width: "wide",
            context: "formatting"
          });
      }
    },
    // in the morning, in the afternoon, in the evening, at night
    B: function B(date, token, localize2) {
      var hours = date.getUTCHours();
      var dayPeriodEnumValue;
      if (hours >= 17) {
        dayPeriodEnumValue = dayPeriodEnum.evening;
      } else if (hours >= 12) {
        dayPeriodEnumValue = dayPeriodEnum.afternoon;
      } else if (hours >= 4) {
        dayPeriodEnumValue = dayPeriodEnum.morning;
      } else {
        dayPeriodEnumValue = dayPeriodEnum.night;
      }
      switch (token) {
        case "B":
        case "BB":
        case "BBB":
          return localize2.dayPeriod(dayPeriodEnumValue, {
            width: "abbreviated",
            context: "formatting"
          });
        case "BBBBB":
          return localize2.dayPeriod(dayPeriodEnumValue, {
            width: "narrow",
            context: "formatting"
          });
        case "BBBB":
        default:
          return localize2.dayPeriod(dayPeriodEnumValue, {
            width: "wide",
            context: "formatting"
          });
      }
    },
    // Hour [1-12]
    h: function h2(date, token, localize2) {
      if (token === "ho") {
        var hours = date.getUTCHours() % 12;
        if (hours === 0)
          hours = 12;
        return localize2.ordinalNumber(hours, {
          unit: "hour"
        });
      }
      return lightFormatters_default.h(date, token);
    },
    // Hour [0-23]
    H: function H2(date, token, localize2) {
      if (token === "Ho") {
        return localize2.ordinalNumber(date.getUTCHours(), {
          unit: "hour"
        });
      }
      return lightFormatters_default.H(date, token);
    },
    // Hour [0-11]
    K: function K(date, token, localize2) {
      var hours = date.getUTCHours() % 12;
      if (token === "Ko") {
        return localize2.ordinalNumber(hours, {
          unit: "hour"
        });
      }
      return addLeadingZeros(hours, token.length);
    },
    // Hour [1-24]
    k: function k(date, token, localize2) {
      var hours = date.getUTCHours();
      if (hours === 0)
        hours = 24;
      if (token === "ko") {
        return localize2.ordinalNumber(hours, {
          unit: "hour"
        });
      }
      return addLeadingZeros(hours, token.length);
    },
    // Minute
    m: function m2(date, token, localize2) {
      if (token === "mo") {
        return localize2.ordinalNumber(date.getUTCMinutes(), {
          unit: "minute"
        });
      }
      return lightFormatters_default.m(date, token);
    },
    // Second
    s: function s2(date, token, localize2) {
      if (token === "so") {
        return localize2.ordinalNumber(date.getUTCSeconds(), {
          unit: "second"
        });
      }
      return lightFormatters_default.s(date, token);
    },
    // Fraction of second
    S: function S2(date, token) {
      return lightFormatters_default.S(date, token);
    },
    // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
    X: function X(date, token, _localize, options) {
      var originalDate = options._originalDate || date;
      var timezoneOffset = originalDate.getTimezoneOffset();
      if (timezoneOffset === 0) {
        return "Z";
      }
      switch (token) {
        case "X":
          return formatTimezoneWithOptionalMinutes(timezoneOffset);
        case "XXXX":
        case "XX":
          return formatTimezone(timezoneOffset);
        case "XXXXX":
        case "XXX":
        default:
          return formatTimezone(timezoneOffset, ":");
      }
    },
    // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
    x: function x(date, token, _localize, options) {
      var originalDate = options._originalDate || date;
      var timezoneOffset = originalDate.getTimezoneOffset();
      switch (token) {
        case "x":
          return formatTimezoneWithOptionalMinutes(timezoneOffset);
        case "xxxx":
        case "xx":
          return formatTimezone(timezoneOffset);
        case "xxxxx":
        case "xxx":
        default:
          return formatTimezone(timezoneOffset, ":");
      }
    },
    // Timezone (GMT)
    O: function O(date, token, _localize, options) {
      var originalDate = options._originalDate || date;
      var timezoneOffset = originalDate.getTimezoneOffset();
      switch (token) {
        case "O":
        case "OO":
        case "OOO":
          return "GMT" + formatTimezoneShort(timezoneOffset, ":");
        case "OOOO":
        default:
          return "GMT" + formatTimezone(timezoneOffset, ":");
      }
    },
    // Timezone (specific non-location)
    z: function z(date, token, _localize, options) {
      var originalDate = options._originalDate || date;
      var timezoneOffset = originalDate.getTimezoneOffset();
      switch (token) {
        case "z":
        case "zz":
        case "zzz":
          return "GMT" + formatTimezoneShort(timezoneOffset, ":");
        case "zzzz":
        default:
          return "GMT" + formatTimezone(timezoneOffset, ":");
      }
    },
    // Seconds timestamp
    t: function t(date, token, _localize, options) {
      var originalDate = options._originalDate || date;
      var timestamp = Math.floor(originalDate.getTime() / 1e3);
      return addLeadingZeros(timestamp, token.length);
    },
    // Milliseconds timestamp
    T: function T(date, token, _localize, options) {
      var originalDate = options._originalDate || date;
      var timestamp = originalDate.getTime();
      return addLeadingZeros(timestamp, token.length);
    }
  };
  function formatTimezoneShort(offset, dirtyDelimiter) {
    var sign = offset > 0 ? "-" : "+";
    var absOffset = Math.abs(offset);
    var hours = Math.floor(absOffset / 60);
    var minutes = absOffset % 60;
    if (minutes === 0) {
      return sign + String(hours);
    }
    var delimiter = dirtyDelimiter || "";
    return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
  }
  function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
    if (offset % 60 === 0) {
      var sign = offset > 0 ? "-" : "+";
      return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
    }
    return formatTimezone(offset, dirtyDelimiter);
  }
  function formatTimezone(offset, dirtyDelimiter) {
    var delimiter = dirtyDelimiter || "";
    var sign = offset > 0 ? "-" : "+";
    var absOffset = Math.abs(offset);
    var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);
    var minutes = addLeadingZeros(absOffset % 60, 2);
    return sign + hours + delimiter + minutes;
  }
  var formatters_default = formatters2;

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/format/longFormatters/index.js
  var dateLongFormatter = function dateLongFormatter2(pattern, formatLong2) {
    switch (pattern) {
      case "P":
        return formatLong2.date({
          width: "short"
        });
      case "PP":
        return formatLong2.date({
          width: "medium"
        });
      case "PPP":
        return formatLong2.date({
          width: "long"
        });
      case "PPPP":
      default:
        return formatLong2.date({
          width: "full"
        });
    }
  };
  var timeLongFormatter = function timeLongFormatter2(pattern, formatLong2) {
    switch (pattern) {
      case "p":
        return formatLong2.time({
          width: "short"
        });
      case "pp":
        return formatLong2.time({
          width: "medium"
        });
      case "ppp":
        return formatLong2.time({
          width: "long"
        });
      case "pppp":
      default:
        return formatLong2.time({
          width: "full"
        });
    }
  };
  var dateTimeLongFormatter = function dateTimeLongFormatter2(pattern, formatLong2) {
    var matchResult = pattern.match(/(P+)(p+)?/) || [];
    var datePattern = matchResult[1];
    var timePattern = matchResult[2];
    if (!timePattern) {
      return dateLongFormatter(pattern, formatLong2);
    }
    var dateTimeFormat;
    switch (datePattern) {
      case "P":
        dateTimeFormat = formatLong2.dateTime({
          width: "short"
        });
        break;
      case "PP":
        dateTimeFormat = formatLong2.dateTime({
          width: "medium"
        });
        break;
      case "PPP":
        dateTimeFormat = formatLong2.dateTime({
          width: "long"
        });
        break;
      case "PPPP":
      default:
        dateTimeFormat = formatLong2.dateTime({
          width: "full"
        });
        break;
    }
    return dateTimeFormat.replace("{{date}}", dateLongFormatter(datePattern, formatLong2)).replace("{{time}}", timeLongFormatter(timePattern, formatLong2));
  };
  var longFormatters = {
    p: timeLongFormatter,
    P: dateTimeLongFormatter
  };
  var longFormatters_default = longFormatters;

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/protectedTokens/index.js
  var protectedDayOfYearTokens = ["D", "DD"];
  var protectedWeekYearTokens = ["YY", "YYYY"];
  function isProtectedDayOfYearToken(token) {
    return protectedDayOfYearTokens.indexOf(token) !== -1;
  }
  function isProtectedWeekYearToken(token) {
    return protectedWeekYearTokens.indexOf(token) !== -1;
  }
  function throwProtectedError(token, format2, input) {
    if (token === "YYYY") {
      throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format2, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
    } else if (token === "YY") {
      throw new RangeError("Use `yy` instead of `YY` (in `".concat(format2, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
    } else if (token === "D") {
      throw new RangeError("Use `d` instead of `D` (in `".concat(format2, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
    } else if (token === "DD") {
      throw new RangeError("Use `dd` instead of `DD` (in `".concat(format2, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
    }
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js
  var formatDistanceLocale = {
    lessThanXSeconds: {
      one: "less than a second",
      other: "less than {{count}} seconds"
    },
    xSeconds: {
      one: "1 second",
      other: "{{count}} seconds"
    },
    halfAMinute: "half a minute",
    lessThanXMinutes: {
      one: "less than a minute",
      other: "less than {{count}} minutes"
    },
    xMinutes: {
      one: "1 minute",
      other: "{{count}} minutes"
    },
    aboutXHours: {
      one: "about 1 hour",
      other: "about {{count}} hours"
    },
    xHours: {
      one: "1 hour",
      other: "{{count}} hours"
    },
    xDays: {
      one: "1 day",
      other: "{{count}} days"
    },
    aboutXWeeks: {
      one: "about 1 week",
      other: "about {{count}} weeks"
    },
    xWeeks: {
      one: "1 week",
      other: "{{count}} weeks"
    },
    aboutXMonths: {
      one: "about 1 month",
      other: "about {{count}} months"
    },
    xMonths: {
      one: "1 month",
      other: "{{count}} months"
    },
    aboutXYears: {
      one: "about 1 year",
      other: "about {{count}} years"
    },
    xYears: {
      one: "1 year",
      other: "{{count}} years"
    },
    overXYears: {
      one: "over 1 year",
      other: "over {{count}} years"
    },
    almostXYears: {
      one: "almost 1 year",
      other: "almost {{count}} years"
    }
  };
  var formatDistance = function formatDistance2(token, count, options) {
    var result;
    var tokenValue = formatDistanceLocale[token];
    if (typeof tokenValue === "string") {
      result = tokenValue;
    } else if (count === 1) {
      result = tokenValue.one;
    } else {
      result = tokenValue.other.replace("{{count}}", count.toString());
    }
    if (options !== null && options !== void 0 && options.addSuffix) {
      if (options.comparison && options.comparison > 0) {
        return "in " + result;
      } else {
        return result + " ago";
      }
    }
    return result;
  };
  var formatDistance_default = formatDistance;

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js
  function buildFormatLongFn(args) {
    return function() {
      var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
      var width = options.width ? String(options.width) : args.defaultWidth;
      var format2 = args.formats[width] || args.formats[args.defaultWidth];
      return format2;
    };
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js
  var dateFormats = {
    full: "EEEE, MMMM do, y",
    long: "MMMM do, y",
    medium: "MMM d, y",
    short: "MM/dd/yyyy"
  };
  var timeFormats = {
    full: "h:mm:ss a zzzz",
    long: "h:mm:ss a z",
    medium: "h:mm:ss a",
    short: "h:mm a"
  };
  var dateTimeFormats = {
    full: "{{date}} 'at' {{time}}",
    long: "{{date}} 'at' {{time}}",
    medium: "{{date}}, {{time}}",
    short: "{{date}}, {{time}}"
  };
  var formatLong = {
    date: buildFormatLongFn({
      formats: dateFormats,
      defaultWidth: "full"
    }),
    time: buildFormatLongFn({
      formats: timeFormats,
      defaultWidth: "full"
    }),
    dateTime: buildFormatLongFn({
      formats: dateTimeFormats,
      defaultWidth: "full"
    })
  };
  var formatLong_default = formatLong;

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js
  var formatRelativeLocale = {
    lastWeek: "'last' eeee 'at' p",
    yesterday: "'yesterday at' p",
    today: "'today at' p",
    tomorrow: "'tomorrow at' p",
    nextWeek: "eeee 'at' p",
    other: "P"
  };
  var formatRelative = function formatRelative2(token, _date, _baseDate, _options) {
    return formatRelativeLocale[token];
  };
  var formatRelative_default = formatRelative;

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js
  function buildLocalizeFn(args) {
    return function(dirtyIndex, options) {
      var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
      var valuesArray;
      if (context === "formatting" && args.formattingValues) {
        var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
        var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
        valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
      } else {
        var _defaultWidth = args.defaultWidth;
        var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
        valuesArray = args.values[_width] || args.values[_defaultWidth];
      }
      var index2 = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
      return valuesArray[index2];
    };
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js
  var eraValues = {
    narrow: ["B", "A"],
    abbreviated: ["BC", "AD"],
    wide: ["Before Christ", "Anno Domini"]
  };
  var quarterValues = {
    narrow: ["1", "2", "3", "4"],
    abbreviated: ["Q1", "Q2", "Q3", "Q4"],
    wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
  };
  var monthValues = {
    narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
    abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
    wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
  };
  var dayValues = {
    narrow: ["S", "M", "T", "W", "T", "F", "S"],
    short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
    abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
    wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
  };
  var dayPeriodValues = {
    narrow: {
      am: "a",
      pm: "p",
      midnight: "mi",
      noon: "n",
      morning: "morning",
      afternoon: "afternoon",
      evening: "evening",
      night: "night"
    },
    abbreviated: {
      am: "AM",
      pm: "PM",
      midnight: "midnight",
      noon: "noon",
      morning: "morning",
      afternoon: "afternoon",
      evening: "evening",
      night: "night"
    },
    wide: {
      am: "a.m.",
      pm: "p.m.",
      midnight: "midnight",
      noon: "noon",
      morning: "morning",
      afternoon: "afternoon",
      evening: "evening",
      night: "night"
    }
  };
  var formattingDayPeriodValues = {
    narrow: {
      am: "a",
      pm: "p",
      midnight: "mi",
      noon: "n",
      morning: "in the morning",
      afternoon: "in the afternoon",
      evening: "in the evening",
      night: "at night"
    },
    abbreviated: {
      am: "AM",
      pm: "PM",
      midnight: "midnight",
      noon: "noon",
      morning: "in the morning",
      afternoon: "in the afternoon",
      evening: "in the evening",
      night: "at night"
    },
    wide: {
      am: "a.m.",
      pm: "p.m.",
      midnight: "midnight",
      noon: "noon",
      morning: "in the morning",
      afternoon: "in the afternoon",
      evening: "in the evening",
      night: "at night"
    }
  };
  var ordinalNumber = function ordinalNumber2(dirtyNumber, _options) {
    var number = Number(dirtyNumber);
    var rem100 = number % 100;
    if (rem100 > 20 || rem100 < 10) {
      switch (rem100 % 10) {
        case 1:
          return number + "st";
        case 2:
          return number + "nd";
        case 3:
          return number + "rd";
      }
    }
    return number + "th";
  };
  var localize = {
    ordinalNumber,
    era: buildLocalizeFn({
      values: eraValues,
      defaultWidth: "wide"
    }),
    quarter: buildLocalizeFn({
      values: quarterValues,
      defaultWidth: "wide",
      argumentCallback: function argumentCallback(quarter) {
        return quarter - 1;
      }
    }),
    month: buildLocalizeFn({
      values: monthValues,
      defaultWidth: "wide"
    }),
    day: buildLocalizeFn({
      values: dayValues,
      defaultWidth: "wide"
    }),
    dayPeriod: buildLocalizeFn({
      values: dayPeriodValues,
      defaultWidth: "wide",
      formattingValues: formattingDayPeriodValues,
      defaultFormattingWidth: "wide"
    })
  };
  var localize_default = localize;

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js
  function buildMatchFn(args) {
    return function(string) {
      var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
      var width = options.width;
      var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
      var matchResult = string.match(matchPattern);
      if (!matchResult) {
        return null;
      }
      var matchedString = matchResult[0];
      var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
      var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function(pattern) {
        return pattern.test(matchedString);
      }) : findKey(parsePatterns, function(pattern) {
        return pattern.test(matchedString);
      });
      var value;
      value = args.valueCallback ? args.valueCallback(key) : key;
      value = options.valueCallback ? options.valueCallback(value) : value;
      var rest = string.slice(matchedString.length);
      return {
        value,
        rest
      };
    };
  }
  function findKey(object, predicate) {
    for (var key in object) {
      if (object.hasOwnProperty(key) && predicate(object[key])) {
        return key;
      }
    }
    return void 0;
  }
  function findIndex(array, predicate) {
    for (var key = 0; key < array.length; key++) {
      if (predicate(array[key])) {
        return key;
      }
    }
    return void 0;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js
  function buildMatchPatternFn(args) {
    return function(string) {
      var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
      var matchResult = string.match(args.matchPattern);
      if (!matchResult)
        return null;
      var matchedString = matchResult[0];
      var parseResult = string.match(args.parsePattern);
      if (!parseResult)
        return null;
      var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
      value = options.valueCallback ? options.valueCallback(value) : value;
      var rest = string.slice(matchedString.length);
      return {
        value,
        rest
      };
    };
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js
  var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
  var parseOrdinalNumberPattern = /\d+/i;
  var matchEraPatterns = {
    narrow: /^(b|a)/i,
    abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
    wide: /^(before christ|before common era|anno domini|common era)/i
  };
  var parseEraPatterns = {
    any: [/^b/i, /^(a|c)/i]
  };
  var matchQuarterPatterns = {
    narrow: /^[1234]/i,
    abbreviated: /^q[1234]/i,
    wide: /^[1234](th|st|nd|rd)? quarter/i
  };
  var parseQuarterPatterns = {
    any: [/1/i, /2/i, /3/i, /4/i]
  };
  var matchMonthPatterns = {
    narrow: /^[jfmasond]/i,
    abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
    wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
  };
  var parseMonthPatterns = {
    narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
    any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
  };
  var matchDayPatterns = {
    narrow: /^[smtwf]/i,
    short: /^(su|mo|tu|we|th|fr|sa)/i,
    abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
    wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
  };
  var parseDayPatterns = {
    narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
    any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
  };
  var matchDayPeriodPatterns = {
    narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
    any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
  };
  var parseDayPeriodPatterns = {
    any: {
      am: /^a/i,
      pm: /^p/i,
      midnight: /^mi/i,
      noon: /^no/i,
      morning: /morning/i,
      afternoon: /afternoon/i,
      evening: /evening/i,
      night: /night/i
    }
  };
  var match = {
    ordinalNumber: buildMatchPatternFn({
      matchPattern: matchOrdinalNumberPattern,
      parsePattern: parseOrdinalNumberPattern,
      valueCallback: function valueCallback(value) {
        return parseInt(value, 10);
      }
    }),
    era: buildMatchFn({
      matchPatterns: matchEraPatterns,
      defaultMatchWidth: "wide",
      parsePatterns: parseEraPatterns,
      defaultParseWidth: "any"
    }),
    quarter: buildMatchFn({
      matchPatterns: matchQuarterPatterns,
      defaultMatchWidth: "wide",
      parsePatterns: parseQuarterPatterns,
      defaultParseWidth: "any",
      valueCallback: function valueCallback2(index2) {
        return index2 + 1;
      }
    }),
    month: buildMatchFn({
      matchPatterns: matchMonthPatterns,
      defaultMatchWidth: "wide",
      parsePatterns: parseMonthPatterns,
      defaultParseWidth: "any"
    }),
    day: buildMatchFn({
      matchPatterns: matchDayPatterns,
      defaultMatchWidth: "wide",
      parsePatterns: parseDayPatterns,
      defaultParseWidth: "any"
    }),
    dayPeriod: buildMatchFn({
      matchPatterns: matchDayPeriodPatterns,
      defaultMatchWidth: "any",
      parsePatterns: parseDayPeriodPatterns,
      defaultParseWidth: "any"
    })
  };
  var match_default = match;

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/locale/en-US/index.js
  var locale = {
    code: "en-US",
    formatDistance: formatDistance_default,
    formatLong: formatLong_default,
    formatRelative: formatRelative_default,
    localize: localize_default,
    match: match_default,
    options: {
      weekStartsOn: 0,
      firstWeekContainsDate: 1
    }
  };
  var en_US_default = locale;

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/_lib/defaultLocale/index.js
  var defaultLocale_default = en_US_default;

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/format/index.js
  var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
  var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
  var escapedStringRegExp = /^'([^]*?)'?$/;
  var doubleQuoteRegExp = /''/g;
  var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
  function format(dirtyDate, dirtyFormatStr, options) {
    var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
    requiredArgs(2, arguments);
    var formatStr = String(dirtyFormatStr);
    var defaultOptions2 = getDefaultOptions();
    var locale2 = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions2.locale) !== null && _ref !== void 0 ? _ref : defaultLocale_default;
    var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions2.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1);
    if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
      throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
    }
    var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions2.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions2.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0);
    if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
      throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
    }
    if (!locale2.localize) {
      throw new RangeError("locale must contain localize property");
    }
    if (!locale2.formatLong) {
      throw new RangeError("locale must contain formatLong property");
    }
    var originalDate = toDate(dirtyDate);
    if (!isValid(originalDate)) {
      throw new RangeError("Invalid time value");
    }
    var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
    var utcDate = subMilliseconds(originalDate, timezoneOffset);
    var formatterOptions = {
      firstWeekContainsDate,
      weekStartsOn,
      locale: locale2,
      _originalDate: originalDate
    };
    var result = formatStr.match(longFormattingTokensRegExp).map(function(substring) {
      var firstCharacter = substring[0];
      if (firstCharacter === "p" || firstCharacter === "P") {
        var longFormatter = longFormatters_default[firstCharacter];
        return longFormatter(substring, locale2.formatLong);
      }
      return substring;
    }).join("").match(formattingTokensRegExp).map(function(substring) {
      if (substring === "''") {
        return "'";
      }
      var firstCharacter = substring[0];
      if (firstCharacter === "'") {
        return cleanEscapedString(substring);
      }
      var formatter = formatters_default[firstCharacter];
      if (formatter) {
        if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
          throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
        }
        if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
          throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
        }
        return formatter(utcDate, substring, locale2.localize, formatterOptions);
      }
      if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
        throw new RangeError("Format string contains an unescaped latin alphabet character `" + firstCharacter + "`");
      }
      return substring;
    }).join("");
    return result;
  }
  function cleanEscapedString(input) {
    var matched = input.match(escapedStringRegExp);
    if (!matched) {
      return input;
    }
    return matched[1].replace(doubleQuoteRegExp, "'");
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/formatDuration/index.js
  var defaultFormat = ["years", "months", "weeks", "days", "hours", "minutes", "seconds"];
  function formatDuration(duration, options) {
    var _ref, _options$locale, _options$format, _options$zero, _options$delimiter;
    if (arguments.length < 1) {
      throw new TypeError("1 argument required, but only ".concat(arguments.length, " present"));
    }
    var defaultOptions2 = getDefaultOptions();
    var locale2 = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions2.locale) !== null && _ref !== void 0 ? _ref : defaultLocale_default;
    var format2 = (_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : defaultFormat;
    var zero = (_options$zero = options === null || options === void 0 ? void 0 : options.zero) !== null && _options$zero !== void 0 ? _options$zero : false;
    var delimiter = (_options$delimiter = options === null || options === void 0 ? void 0 : options.delimiter) !== null && _options$delimiter !== void 0 ? _options$delimiter : " ";
    if (!locale2.formatDistance) {
      return "";
    }
    var result = format2.reduce(function(acc, unit) {
      var token = "x".concat(unit.replace(/(^.)/, function(m6) {
        return m6.toUpperCase();
      }));
      var value = duration[unit];
      if (typeof value === "number" && (zero || duration[unit])) {
        return acc.concat(locale2.formatDistance(token, value));
      }
      return acc;
    }, []).join(delimiter);
    return result;
  }

  // ../../node_modules/.pnpm/date-fns@2.29.3/node_modules/date-fns/esm/intervalToDuration/index.js
  function intervalToDuration(interval) {
    requiredArgs(1, arguments);
    var start = toDate(interval.start);
    var end = toDate(interval.end);
    if (isNaN(start.getTime()))
      throw new RangeError("Start Date is invalid");
    if (isNaN(end.getTime()))
      throw new RangeError("End Date is invalid");
    var duration = {};
    duration.years = Math.abs(differenceInYears(end, start));
    var sign = compareAsc(end, start);
    var remainingMonths = add(start, {
      years: sign * duration.years
    });
    duration.months = Math.abs(differenceInMonths(end, remainingMonths));
    var remainingDays = add(remainingMonths, {
      months: sign * duration.months
    });
    duration.days = Math.abs(differenceInDays(end, remainingDays));
    var remainingHours = add(remainingDays, {
      days: sign * duration.days
    });
    duration.hours = Math.abs(differenceInHours(end, remainingHours));
    var remainingMinutes = add(remainingHours, {
      hours: sign * duration.hours
    });
    duration.minutes = Math.abs(differenceInMinutes(end, remainingMinutes));
    var remainingSeconds = add(remainingMinutes, {
      minutes: sign * duration.minutes
    });
    duration.seconds = Math.abs(differenceInSeconds(end, remainingSeconds));
    return duration;
  }

  // ../../node_modules/.pnpm/preact@10.11.3/node_modules/preact/dist/preact.module.js
  var n;
  var l;
  var u2;
  var i2;
  var t2;
  var o;
  var r;
  var f = {};
  var e2 = [];
  var c2 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
  function s3(n3, l4) {
    for (var u5 in l4)
      n3[u5] = l4[u5];
    return n3;
  }
  function a3(n3) {
    var l4 = n3.parentNode;
    l4 && l4.removeChild(n3);
  }
  function h3(l4, u5, i5) {
    var t4, o4, r3, f4 = {};
    for (r3 in u5)
      "key" == r3 ? t4 = u5[r3] : "ref" == r3 ? o4 = u5[r3] : f4[r3] = u5[r3];
    if (arguments.length > 2 && (f4.children = arguments.length > 3 ? n.call(arguments, 2) : i5), "function" == typeof l4 && null != l4.defaultProps)
      for (r3 in l4.defaultProps)
        void 0 === f4[r3] && (f4[r3] = l4.defaultProps[r3]);
    return v(l4, f4, t4, o4, null);
  }
  function v(n3, i5, t4, o4, r3) {
    var f4 = { type: n3, props: i5, key: t4, ref: o4, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: null == r3 ? ++u2 : r3 };
    return null == r3 && null != l.vnode && l.vnode(f4), f4;
  }
  function y3() {
    return { current: null };
  }
  function p(n3) {
    return n3.children;
  }
  function d3(n3, l4) {
    this.props = n3, this.context = l4;
  }
  function _(n3, l4) {
    if (null == l4)
      return n3.__ ? _(n3.__, n3.__.__k.indexOf(n3) + 1) : null;
    for (var u5; l4 < n3.__k.length; l4++)
      if (null != (u5 = n3.__k[l4]) && null != u5.__e)
        return u5.__e;
    return "function" == typeof n3.type ? _(n3) : null;
  }
  function k2(n3) {
    var l4, u5;
    if (null != (n3 = n3.__) && null != n3.__c) {
      for (n3.__e = n3.__c.base = null, l4 = 0; l4 < n3.__k.length; l4++)
        if (null != (u5 = n3.__k[l4]) && null != u5.__e) {
          n3.__e = n3.__c.base = u5.__e;
          break;
        }
      return k2(n3);
    }
  }
  function b2(n3) {
    (!n3.__d && (n3.__d = true) && t2.push(n3) && !g.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || setTimeout)(g);
  }
  function g() {
    for (var n3; g.__r = t2.length; )
      n3 = t2.sort(function(n4, l4) {
        return n4.__v.__b - l4.__v.__b;
      }), t2 = [], n3.some(function(n4) {
        var l4, u5, i5, t4, o4, r3;
        n4.__d && (o4 = (t4 = (l4 = n4).__v).__e, (r3 = l4.__P) && (u5 = [], (i5 = s3({}, t4)).__v = t4.__v + 1, j(r3, t4, i5, l4.__n, void 0 !== r3.ownerSVGElement, null != t4.__h ? [o4] : null, u5, null == o4 ? _(t4) : o4, t4.__h), z2(u5, t4), t4.__e != o4 && k2(t4)));
      });
  }
  function w2(n3, l4, u5, i5, t4, o4, r3, c5, s6, a6) {
    var h6, y6, d6, k6, b5, g5, w6, x6 = i5 && i5.__k || e2, C4 = x6.length;
    for (u5.__k = [], h6 = 0; h6 < l4.length; h6++)
      if (null != (k6 = u5.__k[h6] = null == (k6 = l4[h6]) || "boolean" == typeof k6 ? null : "string" == typeof k6 || "number" == typeof k6 || "bigint" == typeof k6 ? v(null, k6, null, null, k6) : Array.isArray(k6) ? v(p, { children: k6 }, null, null, null) : k6.__b > 0 ? v(k6.type, k6.props, k6.key, k6.ref ? k6.ref : null, k6.__v) : k6)) {
        if (k6.__ = u5, k6.__b = u5.__b + 1, null === (d6 = x6[h6]) || d6 && k6.key == d6.key && k6.type === d6.type)
          x6[h6] = void 0;
        else
          for (y6 = 0; y6 < C4; y6++) {
            if ((d6 = x6[y6]) && k6.key == d6.key && k6.type === d6.type) {
              x6[y6] = void 0;
              break;
            }
            d6 = null;
          }
        j(n3, k6, d6 = d6 || f, t4, o4, r3, c5, s6, a6), b5 = k6.__e, (y6 = k6.ref) && d6.ref != y6 && (w6 || (w6 = []), d6.ref && w6.push(d6.ref, null, k6), w6.push(y6, k6.__c || b5, k6)), null != b5 ? (null == g5 && (g5 = b5), "function" == typeof k6.type && k6.__k === d6.__k ? k6.__d = s6 = m3(k6, s6, n3) : s6 = A(n3, k6, d6, x6, b5, s6), "function" == typeof u5.type && (u5.__d = s6)) : s6 && d6.__e == s6 && s6.parentNode != n3 && (s6 = _(d6));
      }
    for (u5.__e = g5, h6 = C4; h6--; )
      null != x6[h6] && N(x6[h6], x6[h6]);
    if (w6)
      for (h6 = 0; h6 < w6.length; h6++)
        M3(w6[h6], w6[++h6], w6[++h6]);
  }
  function m3(n3, l4, u5) {
    for (var i5, t4 = n3.__k, o4 = 0; t4 && o4 < t4.length; o4++)
      (i5 = t4[o4]) && (i5.__ = n3, l4 = "function" == typeof i5.type ? m3(i5, l4, u5) : A(u5, i5, i5, t4, i5.__e, l4));
    return l4;
  }
  function x2(n3, l4) {
    return l4 = l4 || [], null == n3 || "boolean" == typeof n3 || (Array.isArray(n3) ? n3.some(function(n4) {
      x2(n4, l4);
    }) : l4.push(n3)), l4;
  }
  function A(n3, l4, u5, i5, t4, o4) {
    var r3, f4, e4;
    if (void 0 !== l4.__d)
      r3 = l4.__d, l4.__d = void 0;
    else if (null == u5 || t4 != o4 || null == t4.parentNode)
      n:
        if (null == o4 || o4.parentNode !== n3)
          n3.appendChild(t4), r3 = null;
        else {
          for (f4 = o4, e4 = 0; (f4 = f4.nextSibling) && e4 < i5.length; e4 += 1)
            if (f4 == t4)
              break n;
          n3.insertBefore(t4, o4), r3 = o4;
        }
    return void 0 !== r3 ? r3 : t4.nextSibling;
  }
  function C(n3, l4, u5, i5, t4) {
    var o4;
    for (o4 in u5)
      "children" === o4 || "key" === o4 || o4 in l4 || H3(n3, o4, null, u5[o4], i5);
    for (o4 in l4)
      t4 && "function" != typeof l4[o4] || "children" === o4 || "key" === o4 || "value" === o4 || "checked" === o4 || u5[o4] === l4[o4] || H3(n3, o4, l4[o4], u5[o4], i5);
  }
  function $(n3, l4, u5) {
    "-" === l4[0] ? n3.setProperty(l4, u5) : n3[l4] = null == u5 ? "" : "number" != typeof u5 || c2.test(l4) ? u5 : u5 + "px";
  }
  function H3(n3, l4, u5, i5, t4) {
    var o4;
    n:
      if ("style" === l4)
        if ("string" == typeof u5)
          n3.style.cssText = u5;
        else {
          if ("string" == typeof i5 && (n3.style.cssText = i5 = ""), i5)
            for (l4 in i5)
              u5 && l4 in u5 || $(n3.style, l4, "");
          if (u5)
            for (l4 in u5)
              i5 && u5[l4] === i5[l4] || $(n3.style, l4, u5[l4]);
        }
      else if ("o" === l4[0] && "n" === l4[1])
        o4 = l4 !== (l4 = l4.replace(/Capture$/, "")), l4 = l4.toLowerCase() in n3 ? l4.toLowerCase().slice(2) : l4.slice(2), n3.l || (n3.l = {}), n3.l[l4 + o4] = u5, u5 ? i5 || n3.addEventListener(l4, o4 ? T2 : I2, o4) : n3.removeEventListener(l4, o4 ? T2 : I2, o4);
      else if ("dangerouslySetInnerHTML" !== l4) {
        if (t4)
          l4 = l4.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
        else if ("href" !== l4 && "list" !== l4 && "form" !== l4 && "tabIndex" !== l4 && "download" !== l4 && l4 in n3)
          try {
            n3[l4] = null == u5 ? "" : u5;
            break n;
          } catch (n4) {
          }
        "function" == typeof u5 || (null == u5 || false === u5 && -1 == l4.indexOf("-") ? n3.removeAttribute(l4) : n3.setAttribute(l4, u5));
      }
  }
  function I2(n3) {
    this.l[n3.type + false](l.event ? l.event(n3) : n3);
  }
  function T2(n3) {
    this.l[n3.type + true](l.event ? l.event(n3) : n3);
  }
  function j(n3, u5, i5, t4, o4, r3, f4, e4, c5) {
    var a6, h6, v4, y6, _4, k6, b5, g5, m6, x6, A5, C4, $3, H5, I4, T5 = u5.type;
    if (void 0 !== u5.constructor)
      return null;
    null != i5.__h && (c5 = i5.__h, e4 = u5.__e = i5.__e, u5.__h = null, r3 = [e4]), (a6 = l.__b) && a6(u5);
    try {
      n:
        if ("function" == typeof T5) {
          if (g5 = u5.props, m6 = (a6 = T5.contextType) && t4[a6.__c], x6 = a6 ? m6 ? m6.props.value : a6.__ : t4, i5.__c ? b5 = (h6 = u5.__c = i5.__c).__ = h6.__E : ("prototype" in T5 && T5.prototype.render ? u5.__c = h6 = new T5(g5, x6) : (u5.__c = h6 = new d3(g5, x6), h6.constructor = T5, h6.render = O2), m6 && m6.sub(h6), h6.props = g5, h6.state || (h6.state = {}), h6.context = x6, h6.__n = t4, v4 = h6.__d = true, h6.__h = [], h6._sb = []), null == h6.__s && (h6.__s = h6.state), null != T5.getDerivedStateFromProps && (h6.__s == h6.state && (h6.__s = s3({}, h6.__s)), s3(h6.__s, T5.getDerivedStateFromProps(g5, h6.__s))), y6 = h6.props, _4 = h6.state, v4)
            null == T5.getDerivedStateFromProps && null != h6.componentWillMount && h6.componentWillMount(), null != h6.componentDidMount && h6.__h.push(h6.componentDidMount);
          else {
            if (null == T5.getDerivedStateFromProps && g5 !== y6 && null != h6.componentWillReceiveProps && h6.componentWillReceiveProps(g5, x6), !h6.__e && null != h6.shouldComponentUpdate && false === h6.shouldComponentUpdate(g5, h6.__s, x6) || u5.__v === i5.__v) {
              for (h6.props = g5, h6.state = h6.__s, u5.__v !== i5.__v && (h6.__d = false), h6.__v = u5, u5.__e = i5.__e, u5.__k = i5.__k, u5.__k.forEach(function(n4) {
                n4 && (n4.__ = u5);
              }), A5 = 0; A5 < h6._sb.length; A5++)
                h6.__h.push(h6._sb[A5]);
              h6._sb = [], h6.__h.length && f4.push(h6);
              break n;
            }
            null != h6.componentWillUpdate && h6.componentWillUpdate(g5, h6.__s, x6), null != h6.componentDidUpdate && h6.__h.push(function() {
              h6.componentDidUpdate(y6, _4, k6);
            });
          }
          if (h6.context = x6, h6.props = g5, h6.__v = u5, h6.__P = n3, C4 = l.__r, $3 = 0, "prototype" in T5 && T5.prototype.render) {
            for (h6.state = h6.__s, h6.__d = false, C4 && C4(u5), a6 = h6.render(h6.props, h6.state, h6.context), H5 = 0; H5 < h6._sb.length; H5++)
              h6.__h.push(h6._sb[H5]);
            h6._sb = [];
          } else
            do {
              h6.__d = false, C4 && C4(u5), a6 = h6.render(h6.props, h6.state, h6.context), h6.state = h6.__s;
            } while (h6.__d && ++$3 < 25);
          h6.state = h6.__s, null != h6.getChildContext && (t4 = s3(s3({}, t4), h6.getChildContext())), v4 || null == h6.getSnapshotBeforeUpdate || (k6 = h6.getSnapshotBeforeUpdate(y6, _4)), I4 = null != a6 && a6.type === p && null == a6.key ? a6.props.children : a6, w2(n3, Array.isArray(I4) ? I4 : [I4], u5, i5, t4, o4, r3, f4, e4, c5), h6.base = u5.__e, u5.__h = null, h6.__h.length && f4.push(h6), b5 && (h6.__E = h6.__ = null), h6.__e = false;
        } else
          null == r3 && u5.__v === i5.__v ? (u5.__k = i5.__k, u5.__e = i5.__e) : u5.__e = L2(i5.__e, u5, i5, t4, o4, r3, f4, c5);
      (a6 = l.diffed) && a6(u5);
    } catch (n4) {
      u5.__v = null, (c5 || null != r3) && (u5.__e = e4, u5.__h = !!c5, r3[r3.indexOf(e4)] = null), l.__e(n4, u5, i5);
    }
  }
  function z2(n3, u5) {
    l.__c && l.__c(u5, n3), n3.some(function(u6) {
      try {
        n3 = u6.__h, u6.__h = [], n3.some(function(n4) {
          n4.call(u6);
        });
      } catch (n4) {
        l.__e(n4, u6.__v);
      }
    });
  }
  function L2(l4, u5, i5, t4, o4, r3, e4, c5) {
    var s6, h6, v4, y6 = i5.props, p4 = u5.props, d6 = u5.type, k6 = 0;
    if ("svg" === d6 && (o4 = true), null != r3) {
      for (; k6 < r3.length; k6++)
        if ((s6 = r3[k6]) && "setAttribute" in s6 == !!d6 && (d6 ? s6.localName === d6 : 3 === s6.nodeType)) {
          l4 = s6, r3[k6] = null;
          break;
        }
    }
    if (null == l4) {
      if (null === d6)
        return document.createTextNode(p4);
      l4 = o4 ? document.createElementNS("http://www.w3.org/2000/svg", d6) : document.createElement(d6, p4.is && p4), r3 = null, c5 = false;
    }
    if (null === d6)
      y6 === p4 || c5 && l4.data === p4 || (l4.data = p4);
    else {
      if (r3 = r3 && n.call(l4.childNodes), h6 = (y6 = i5.props || f).dangerouslySetInnerHTML, v4 = p4.dangerouslySetInnerHTML, !c5) {
        if (null != r3)
          for (y6 = {}, k6 = 0; k6 < l4.attributes.length; k6++)
            y6[l4.attributes[k6].name] = l4.attributes[k6].value;
        (v4 || h6) && (v4 && (h6 && v4.__html == h6.__html || v4.__html === l4.innerHTML) || (l4.innerHTML = v4 && v4.__html || ""));
      }
      if (C(l4, p4, y6, o4, c5), v4)
        u5.__k = [];
      else if (k6 = u5.props.children, w2(l4, Array.isArray(k6) ? k6 : [k6], u5, i5, t4, o4 && "foreignObject" !== d6, r3, e4, r3 ? r3[0] : i5.__k && _(i5, 0), c5), null != r3)
        for (k6 = r3.length; k6--; )
          null != r3[k6] && a3(r3[k6]);
      c5 || ("value" in p4 && void 0 !== (k6 = p4.value) && (k6 !== l4.value || "progress" === d6 && !k6 || "option" === d6 && k6 !== y6.value) && H3(l4, "value", k6, y6.value, false), "checked" in p4 && void 0 !== (k6 = p4.checked) && k6 !== l4.checked && H3(l4, "checked", k6, y6.checked, false));
    }
    return l4;
  }
  function M3(n3, u5, i5) {
    try {
      "function" == typeof n3 ? n3(u5) : n3.current = u5;
    } catch (n4) {
      l.__e(n4, i5);
    }
  }
  function N(n3, u5, i5) {
    var t4, o4;
    if (l.unmount && l.unmount(n3), (t4 = n3.ref) && (t4.current && t4.current !== n3.__e || M3(t4, null, u5)), null != (t4 = n3.__c)) {
      if (t4.componentWillUnmount)
        try {
          t4.componentWillUnmount();
        } catch (n4) {
          l.__e(n4, u5);
        }
      t4.base = t4.__P = null, n3.__c = void 0;
    }
    if (t4 = n3.__k)
      for (o4 = 0; o4 < t4.length; o4++)
        t4[o4] && N(t4[o4], u5, i5 || "function" != typeof n3.type);
    i5 || null == n3.__e || a3(n3.__e), n3.__ = n3.__e = n3.__d = void 0;
  }
  function O2(n3, l4, u5) {
    return this.constructor(n3, u5);
  }
  function P(u5, i5, t4) {
    var o4, r3, e4;
    l.__ && l.__(u5, i5), r3 = (o4 = "function" == typeof t4) ? null : t4 && t4.__k || i5.__k, e4 = [], j(i5, u5 = (!o4 && t4 || i5).__k = h3(p, null, [u5]), r3 || f, f, void 0 !== i5.ownerSVGElement, !o4 && t4 ? [t4] : r3 ? null : i5.firstChild ? n.call(i5.childNodes) : null, e4, !o4 && t4 ? t4 : r3 ? r3.__e : i5.firstChild, o4), z2(e4, u5);
  }
  function S3(n3, l4) {
    P(n3, l4, S3);
  }
  function q2(l4, u5, i5) {
    var t4, o4, r3, f4 = s3({}, l4.props);
    for (r3 in u5)
      "key" == r3 ? t4 = u5[r3] : "ref" == r3 ? o4 = u5[r3] : f4[r3] = u5[r3];
    return arguments.length > 2 && (f4.children = arguments.length > 3 ? n.call(arguments, 2) : i5), v(l4.type, f4, t4 || l4.key, o4 || l4.ref, null);
  }
  function B2(n3, l4) {
    var u5 = { __c: l4 = "__cC" + r++, __: n3, Consumer: function(n4, l5) {
      return n4.children(l5);
    }, Provider: function(n4) {
      var u6, i5;
      return this.getChildContext || (u6 = [], (i5 = {})[l4] = this, this.getChildContext = function() {
        return i5;
      }, this.shouldComponentUpdate = function(n5) {
        this.props.value !== n5.value && u6.some(b2);
      }, this.sub = function(n5) {
        u6.push(n5);
        var l5 = n5.componentWillUnmount;
        n5.componentWillUnmount = function() {
          u6.splice(u6.indexOf(n5), 1), l5 && l5.call(n5);
        };
      }), n4.children;
    } };
    return u5.Provider.__ = u5.Consumer.contextType = u5;
  }
  n = e2.slice, l = { __e: function(n3, l4, u5, i5) {
    for (var t4, o4, r3; l4 = l4.__; )
      if ((t4 = l4.__c) && !t4.__)
        try {
          if ((o4 = t4.constructor) && null != o4.getDerivedStateFromError && (t4.setState(o4.getDerivedStateFromError(n3)), r3 = t4.__d), null != t4.componentDidCatch && (t4.componentDidCatch(n3, i5 || {}), r3 = t4.__d), r3)
            return t4.__E = t4;
        } catch (l5) {
          n3 = l5;
        }
    throw n3;
  } }, u2 = 0, i2 = function(n3) {
    return null != n3 && void 0 === n3.constructor;
  }, d3.prototype.setState = function(n3, l4) {
    var u5;
    u5 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = s3({}, this.state), "function" == typeof n3 && (n3 = n3(s3({}, u5), this.props)), n3 && s3(u5, n3), null != n3 && this.__v && (l4 && this._sb.push(l4), b2(this));
  }, d3.prototype.forceUpdate = function(n3) {
    this.__v && (this.__e = true, n3 && this.__h.push(n3), b2(this));
  }, d3.prototype.render = p, t2 = [], g.__r = 0, r = 0;

  // ../../node_modules/.pnpm/preact-render-to-string@5.2.6_preact@10.11.3/node_modules/preact-render-to-string/dist/index.mjs
  var n2 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;
  var o2 = /^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/;
  var i3 = /[\s\n\\/='"\0<>]/;
  var l2 = /^xlink:?./;
  var a4 = /["&<]/;
  function s4(e4) {
    if (false === a4.test(e4 += ""))
      return e4;
    for (var t4 = 0, r3 = 0, n3 = "", o4 = ""; r3 < e4.length; r3++) {
      switch (e4.charCodeAt(r3)) {
        case 34:
          o4 = "&quot;";
          break;
        case 38:
          o4 = "&amp;";
          break;
        case 60:
          o4 = "&lt;";
          break;
        default:
          continue;
      }
      r3 !== t4 && (n3 += e4.slice(t4, r3)), n3 += o4, t4 = r3 + 1;
    }
    return r3 !== t4 && (n3 += e4.slice(t4, r3)), n3;
  }
  var f2 = function(e4, t4) {
    return String(e4).replace(/(\n+)/g, "$1" + (t4 || "	"));
  };
  var u3 = function(e4, t4, r3) {
    return String(e4).length > (t4 || 40) || !r3 && -1 !== String(e4).indexOf("\n") || -1 !== String(e4).indexOf("<");
  };
  var c3 = {};
  var _2 = /([A-Z])/g;
  function p2(e4) {
    var t4 = "";
    for (var r3 in e4) {
      var o4 = e4[r3];
      null != o4 && "" !== o4 && (t4 && (t4 += " "), t4 += "-" == r3[0] ? r3 : c3[r3] || (c3[r3] = r3.replace(_2, "-$1").toLowerCase()), t4 = "number" == typeof o4 && false === n2.test(r3) ? t4 + ": " + o4 + "px;" : t4 + ": " + o4 + ";");
    }
    return t4 || void 0;
  }
  function d4(e4, t4) {
    return Array.isArray(t4) ? t4.reduce(d4, e4) : null != t4 && false !== t4 && e4.push(t4), e4;
  }
  function v2() {
    this.__d = true;
  }
  function h4(e4, t4) {
    return { __v: e4, context: t4, props: e4.props, setState: v2, forceUpdate: v2, __d: true, __h: [] };
  }
  function g2(e4, t4) {
    var r3 = e4.contextType, n3 = r3 && t4[r3.__c];
    return null != r3 ? n3 ? n3.props.value : r3.__ : t4;
  }
  var y4 = [];
  function m4(r3, n3, a6, c5, _4, v4) {
    if (null == r3 || "boolean" == typeof r3)
      return "";
    if ("object" != typeof r3)
      return "function" == typeof r3 ? "" : s4(r3);
    var b5 = a6.pretty, x6 = b5 && "string" == typeof b5 ? b5 : "	";
    if (Array.isArray(r3)) {
      for (var k6 = "", S5 = 0; S5 < r3.length; S5++)
        b5 && S5 > 0 && (k6 += "\n"), k6 += m4(r3[S5], n3, a6, c5, _4, v4);
      return k6;
    }
    if (void 0 !== r3.constructor)
      return "";
    var w6, C4 = r3.type, O5 = r3.props, j5 = false;
    if ("function" == typeof C4) {
      if (j5 = true, !a6.shallow || !c5 && false !== a6.renderRootComponent) {
        if (C4 === p) {
          var A5 = [];
          return d4(A5, r3.props.children), m4(A5, n3, a6, false !== a6.shallowHighOrder, _4, v4);
        }
        var F4, H5 = r3.__c = h4(r3, n3);
        l.__b && l.__b(r3);
        var M5 = l.__r;
        if (C4.prototype && "function" == typeof C4.prototype.render) {
          var L4 = g2(C4, n3);
          (H5 = r3.__c = new C4(O5, L4)).__v = r3, H5._dirty = H5.__d = true, H5.props = O5, null == H5.state && (H5.state = {}), null == H5._nextState && null == H5.__s && (H5._nextState = H5.__s = H5.state), H5.context = L4, C4.getDerivedStateFromProps ? H5.state = Object.assign({}, H5.state, C4.getDerivedStateFromProps(H5.props, H5.state)) : H5.componentWillMount && (H5.componentWillMount(), H5.state = H5._nextState !== H5.state ? H5._nextState : H5.__s !== H5.state ? H5.__s : H5.state), M5 && M5(r3), F4 = H5.render(H5.props, H5.state, H5.context);
        } else
          for (var T5 = g2(C4, n3), E3 = 0; H5.__d && E3++ < 25; )
            H5.__d = false, M5 && M5(r3), F4 = C4.call(r3.__c, O5, T5);
        return H5.getChildContext && (n3 = Object.assign({}, n3, H5.getChildContext())), l.diffed && l.diffed(r3), m4(F4, n3, a6, false !== a6.shallowHighOrder, _4, v4);
      }
      C4 = (w6 = C4).displayName || w6 !== Function && w6.name || function(e4) {
        var t4 = (Function.prototype.toString.call(e4).match(/^\s*function\s+([^( ]+)/) || "")[1];
        if (!t4) {
          for (var r4 = -1, n4 = y4.length; n4--; )
            if (y4[n4] === e4) {
              r4 = n4;
              break;
            }
          r4 < 0 && (r4 = y4.push(e4) - 1), t4 = "UnnamedComponent" + r4;
        }
        return t4;
      }(w6);
    }
    var $3, D3, N3 = "<" + C4;
    if (O5) {
      var P3 = Object.keys(O5);
      a6 && true === a6.sortAttributes && P3.sort();
      for (var W2 = 0; W2 < P3.length; W2++) {
        var I4 = P3[W2], R3 = O5[I4];
        if ("children" !== I4) {
          if (!i3.test(I4) && (a6 && a6.allAttributes || "key" !== I4 && "ref" !== I4 && "__self" !== I4 && "__source" !== I4)) {
            if ("defaultValue" === I4)
              I4 = "value";
            else if ("defaultChecked" === I4)
              I4 = "checked";
            else if ("defaultSelected" === I4)
              I4 = "selected";
            else if ("className" === I4) {
              if (void 0 !== O5.class)
                continue;
              I4 = "class";
            } else
              _4 && l2.test(I4) && (I4 = I4.toLowerCase().replace(/^xlink:?/, "xlink:"));
            if ("htmlFor" === I4) {
              if (O5.for)
                continue;
              I4 = "for";
            }
            "style" === I4 && R3 && "object" == typeof R3 && (R3 = p2(R3)), "a" === I4[0] && "r" === I4[1] && "boolean" == typeof R3 && (R3 = String(R3));
            var U2 = a6.attributeHook && a6.attributeHook(I4, R3, n3, a6, j5);
            if (U2 || "" === U2)
              N3 += U2;
            else if ("dangerouslySetInnerHTML" === I4)
              D3 = R3 && R3.__html;
            else if ("textarea" === C4 && "value" === I4)
              $3 = R3;
            else if ((R3 || 0 === R3 || "" === R3) && "function" != typeof R3) {
              if (!(true !== R3 && "" !== R3 || (R3 = I4, a6 && a6.xml))) {
                N3 = N3 + " " + I4;
                continue;
              }
              if ("value" === I4) {
                if ("select" === C4) {
                  v4 = R3;
                  continue;
                }
                "option" === C4 && v4 == R3 && void 0 === O5.selected && (N3 += " selected");
              }
              N3 = N3 + " " + I4 + '="' + s4(R3) + '"';
            }
          }
        } else
          $3 = R3;
      }
    }
    if (b5) {
      var V3 = N3.replace(/\n\s*/, " ");
      V3 === N3 || ~V3.indexOf("\n") ? b5 && ~N3.indexOf("\n") && (N3 += "\n") : N3 = V3;
    }
    if (N3 += ">", i3.test(C4))
      throw new Error(C4 + " is not a valid HTML tag name in " + N3);
    var q5, z5 = o2.test(C4) || a6.voidElements && a6.voidElements.test(C4), Z2 = [];
    if (D3)
      b5 && u3(D3) && (D3 = "\n" + x6 + f2(D3, x6)), N3 += D3;
    else if (null != $3 && d4(q5 = [], $3).length) {
      for (var B5 = b5 && ~N3.indexOf("\n"), G3 = false, J2 = 0; J2 < q5.length; J2++) {
        var K3 = q5[J2];
        if (null != K3 && false !== K3) {
          var Q3 = m4(K3, n3, a6, true, "svg" === C4 || "foreignObject" !== C4 && _4, v4);
          if (b5 && !B5 && u3(Q3) && (B5 = true), Q3)
            if (b5) {
              var X3 = Q3.length > 0 && "<" != Q3[0];
              G3 && X3 ? Z2[Z2.length - 1] += Q3 : Z2.push(Q3), G3 = X3;
            } else
              Z2.push(Q3);
        }
      }
      if (b5 && B5)
        for (var Y3 = Z2.length; Y3--; )
          Z2[Y3] = "\n" + x6 + f2(Z2[Y3], x6);
    }
    if (Z2.length || D3)
      N3 += Z2.join("");
    else if (a6 && a6.xml)
      return N3.substring(0, N3.length - 1) + " />";
    return !z5 || q5 || D3 ? (b5 && ~N3.indexOf("\n") && (N3 += "\n"), N3 = N3 + "</" + C4 + ">") : N3 = N3.replace(/>$/, " />"), N3;
  }
  var b3 = { shallow: true };
  S4.render = S4;
  var x3 = function(e4, t4) {
    return S4(e4, t4, b3);
  };
  var k3 = [];
  function S4(n3, o4, i5) {
    o4 = o4 || {};
    var l4 = l.__s;
    l.__s = true;
    var a6, s6 = h3(p, null);
    return s6.__k = [n3], a6 = i5 && (i5.pretty || i5.voidElements || i5.sortAttributes || i5.shallow || i5.allAttributes || i5.xml || i5.attributeHook) ? m4(n3, o4, i5) : F(n3, o4, false, void 0, s6), l.__c && l.__c(n3, k3), l.__s = l4, k3.length = 0, a6;
  }
  function w3(e4) {
    return null == e4 || "boolean" == typeof e4 ? null : "string" == typeof e4 || "number" == typeof e4 || "bigint" == typeof e4 ? h3(null, null, e4) : e4;
  }
  function C2(e4, t4) {
    return "className" === e4 ? "class" : "htmlFor" === e4 ? "for" : "defaultValue" === e4 ? "value" : "defaultChecked" === e4 ? "checked" : "defaultSelected" === e4 ? "selected" : t4 && l2.test(e4) ? e4.toLowerCase().replace(/^xlink:?/, "xlink:") : e4;
  }
  function O3(e4, t4) {
    return "style" === e4 && null != t4 && "object" == typeof t4 ? p2(t4) : "a" === e4[0] && "r" === e4[1] && "boolean" == typeof t4 ? String(t4) : t4;
  }
  var j2 = Array.isArray;
  var A2 = Object.assign;
  function F(r3, n3, l4, a6, f4) {
    if (null == r3 || true === r3 || false === r3 || "" === r3)
      return "";
    if ("object" != typeof r3)
      return "function" == typeof r3 ? "" : s4(r3);
    if (j2(r3)) {
      var u5 = "";
      f4.__k = r3;
      for (var c5 = 0; c5 < r3.length; c5++)
        u5 += F(r3[c5], n3, l4, a6, f4), r3[c5] = w3(r3[c5]);
      return u5;
    }
    if (void 0 !== r3.constructor)
      return "";
    r3.__ = f4, l.__b && l.__b(r3);
    var _4 = r3.type, p4 = r3.props;
    if ("function" == typeof _4) {
      var d6;
      if (_4 === p)
        d6 = p4.children;
      else {
        d6 = _4.prototype && "function" == typeof _4.prototype.render ? function(e4, r4) {
          var n4 = e4.type, o4 = g2(n4, r4), i5 = new n4(e4.props, o4);
          e4.__c = i5, i5.__v = e4, i5.__d = true, i5.props = e4.props, null == i5.state && (i5.state = {}), null == i5.__s && (i5.__s = i5.state), i5.context = o4, n4.getDerivedStateFromProps ? i5.state = A2({}, i5.state, n4.getDerivedStateFromProps(i5.props, i5.state)) : i5.componentWillMount && (i5.componentWillMount(), i5.state = i5.__s !== i5.state ? i5.__s : i5.state);
          var l5 = l.__r;
          return l5 && l5(e4), i5.render(i5.props, i5.state, i5.context);
        }(r3, n3) : function(e4, r4) {
          var n4, o4 = h4(e4, r4), i5 = g2(e4.type, r4);
          e4.__c = o4;
          for (var l5 = l.__r, a7 = 0; o4.__d && a7++ < 25; )
            o4.__d = false, l5 && l5(e4), n4 = e4.type.call(o4, e4.props, i5);
          return n4;
        }(r3, n3);
        var v4 = r3.__c;
        v4.getChildContext && (n3 = A2({}, n3, v4.getChildContext()));
      }
      var y6 = F(d6 = null != d6 && d6.type === p && null == d6.key ? d6.props.children : d6, n3, l4, a6, r3);
      return l.diffed && l.diffed(r3), r3.__ = void 0, l.unmount && l.unmount(r3), y6;
    }
    var m6, b5, x6 = "<";
    if (x6 += _4, p4)
      for (var k6 in m6 = p4.children, p4) {
        var S5 = p4[k6];
        if (!("key" === k6 || "ref" === k6 || "__self" === k6 || "__source" === k6 || "children" === k6 || "className" === k6 && "class" in p4 || "htmlFor" === k6 && "for" in p4 || i3.test(k6))) {
          if (S5 = O3(k6 = C2(k6, l4), S5), "dangerouslySetInnerHTML" === k6)
            b5 = S5 && S5.__html;
          else if ("textarea" === _4 && "value" === k6)
            m6 = S5;
          else if ((S5 || 0 === S5 || "" === S5) && "function" != typeof S5) {
            if (true === S5 || "" === S5) {
              S5 = k6, x6 = x6 + " " + k6;
              continue;
            }
            if ("value" === k6) {
              if ("select" === _4) {
                a6 = S5;
                continue;
              }
              "option" !== _4 || a6 != S5 || "selected" in p4 || (x6 += " selected");
            }
            x6 = x6 + " " + k6 + '="' + s4(S5) + '"';
          }
        }
      }
    var H5 = x6;
    if (x6 += ">", i3.test(_4))
      throw new Error(_4 + " is not a valid HTML tag name in " + x6);
    var M5 = "", L4 = false;
    if (b5)
      M5 += b5, L4 = true;
    else if ("string" == typeof m6)
      M5 += s4(m6), L4 = true;
    else if (j2(m6)) {
      r3.__k = m6;
      for (var T5 = 0; T5 < m6.length; T5++) {
        var E3 = m6[T5];
        if (m6[T5] = w3(E3), null != E3 && false !== E3) {
          var $3 = F(E3, n3, "svg" === _4 || "foreignObject" !== _4 && l4, a6, r3);
          $3 && (M5 += $3, L4 = true);
        }
      }
    } else if (null != m6 && false !== m6 && true !== m6) {
      r3.__k = [w3(m6)];
      var D3 = F(m6, n3, "svg" === _4 || "foreignObject" !== _4 && l4, a6, r3);
      D3 && (M5 += D3, L4 = true);
    }
    if (l.diffed && l.diffed(r3), r3.__ = void 0, l.unmount && l.unmount(r3), L4)
      x6 += M5;
    else if (o2.test(_4))
      return H5 + " />";
    return x6 + "</" + _4 + ">";
  }
  S4.shallowRender = x3;

  // ../../node_modules/.pnpm/@emotion+memoize@0.7.4/node_modules/@emotion/memoize/dist/memoize.browser.esm.js
  function memoize(fn2) {
    var cache = {};
    return function(arg) {
      if (cache[arg] === void 0)
        cache[arg] = fn2(arg);
      return cache[arg];
    };
  }
  var memoize_browser_esm_default = memoize;

  // ../../node_modules/.pnpm/@emotion+is-prop-valid@0.8.8/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js
  var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
  var index = memoize_browser_esm_default(
    function(prop) {
      return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
    }
    /* Z+1 */
  );
  var is_prop_valid_browser_esm_default = index;

  // ../../node_modules/.pnpm/preact@10.11.3/node_modules/preact/hooks/dist/hooks.module.js
  var t3;
  var r2;
  var u4;
  var i4;
  var o3 = 0;
  var f3 = [];
  var c4 = [];
  var e3 = l.__b;
  var a5 = l.__r;
  var v3 = l.diffed;
  var l3 = l.__c;
  var m5 = l.unmount;
  function d5(t4, u5) {
    l.__h && l.__h(r2, t4, o3 || u5), o3 = 0;
    var i5 = r2.__H || (r2.__H = { __: [], __h: [] });
    return t4 >= i5.__.length && i5.__.push({ __V: c4 }), i5.__[t4];
  }
  function p3(n3) {
    return o3 = 1, y5(B3, n3);
  }
  function y5(n3, u5, i5) {
    var o4 = d5(t3++, 2);
    if (o4.t = n3, !o4.__c && (o4.__ = [i5 ? i5(u5) : B3(void 0, u5), function(n4) {
      var t4 = o4.__N ? o4.__N[0] : o4.__[0], r3 = o4.t(t4, n4);
      t4 !== r3 && (o4.__N = [r3, o4.__[1]], o4.__c.setState({}));
    }], o4.__c = r2, !r2.u)) {
      r2.u = true;
      var f4 = r2.shouldComponentUpdate;
      r2.shouldComponentUpdate = function(n4, t4, r3) {
        if (!o4.__c.__H)
          return true;
        var u6 = o4.__c.__H.__.filter(function(n5) {
          return n5.__c;
        });
        if (u6.every(function(n5) {
          return !n5.__N;
        }))
          return !f4 || f4.call(this, n4, t4, r3);
        var i6 = false;
        return u6.forEach(function(n5) {
          if (n5.__N) {
            var t5 = n5.__[0];
            n5.__ = n5.__N, n5.__N = void 0, t5 !== n5.__[0] && (i6 = true);
          }
        }), !(!i6 && o4.__c.props === n4) && (!f4 || f4.call(this, n4, t4, r3));
      };
    }
    return o4.__N || o4.__;
  }
  function h5(u5, i5) {
    var o4 = d5(t3++, 3);
    !l.__s && z3(o4.__H, i5) && (o4.__ = u5, o4.i = i5, r2.__H.__h.push(o4));
  }
  function s5(u5, i5) {
    var o4 = d5(t3++, 4);
    !l.__s && z3(o4.__H, i5) && (o4.__ = u5, o4.i = i5, r2.__h.push(o4));
  }
  function _3(n3) {
    return o3 = 5, F2(function() {
      return { current: n3 };
    }, []);
  }
  function A3(n3, t4, r3) {
    o3 = 6, s5(function() {
      return "function" == typeof n3 ? (n3(t4()), function() {
        return n3(null);
      }) : n3 ? (n3.current = t4(), function() {
        return n3.current = null;
      }) : void 0;
    }, null == r3 ? r3 : r3.concat(n3));
  }
  function F2(n3, r3) {
    var u5 = d5(t3++, 7);
    return z3(u5.__H, r3) ? (u5.__V = n3(), u5.i = r3, u5.__h = n3, u5.__V) : u5.__;
  }
  function T3(n3, t4) {
    return o3 = 8, F2(function() {
      return n3;
    }, t4);
  }
  function q3(n3) {
    var u5 = r2.context[n3.__c], i5 = d5(t3++, 9);
    return i5.c = n3, u5 ? (null == i5.__ && (i5.__ = true, u5.sub(r2)), u5.props.value) : n3.__;
  }
  function x4(t4, r3) {
    l.useDebugValue && l.useDebugValue(r3 ? r3(t4) : t4);
  }
  function V() {
    var n3 = d5(t3++, 11);
    if (!n3.__) {
      for (var u5 = r2.__v; null !== u5 && !u5.__m && null !== u5.__; )
        u5 = u5.__;
      var i5 = u5.__m || (u5.__m = [0, 0]);
      n3.__ = "P" + i5[0] + "-" + i5[1]++;
    }
    return n3.__;
  }
  function b4() {
    for (var t4; t4 = f3.shift(); )
      if (t4.__P && t4.__H)
        try {
          t4.__H.__h.forEach(k4), t4.__H.__h.forEach(w4), t4.__H.__h = [];
        } catch (r3) {
          t4.__H.__h = [], l.__e(r3, t4.__v);
        }
  }
  l.__b = function(n3) {
    r2 = null, e3 && e3(n3);
  }, l.__r = function(n3) {
    a5 && a5(n3), t3 = 0;
    var i5 = (r2 = n3.__c).__H;
    i5 && (u4 === r2 ? (i5.__h = [], r2.__h = [], i5.__.forEach(function(n4) {
      n4.__N && (n4.__ = n4.__N), n4.__V = c4, n4.__N = n4.i = void 0;
    })) : (i5.__h.forEach(k4), i5.__h.forEach(w4), i5.__h = [])), u4 = r2;
  }, l.diffed = function(t4) {
    v3 && v3(t4);
    var o4 = t4.__c;
    o4 && o4.__H && (o4.__H.__h.length && (1 !== f3.push(o4) && i4 === l.requestAnimationFrame || ((i4 = l.requestAnimationFrame) || j3)(b4)), o4.__H.__.forEach(function(n3) {
      n3.i && (n3.__H = n3.i), n3.__V !== c4 && (n3.__ = n3.__V), n3.i = void 0, n3.__V = c4;
    })), u4 = r2 = null;
  }, l.__c = function(t4, r3) {
    r3.some(function(t5) {
      try {
        t5.__h.forEach(k4), t5.__h = t5.__h.filter(function(n3) {
          return !n3.__ || w4(n3);
        });
      } catch (u5) {
        r3.some(function(n3) {
          n3.__h && (n3.__h = []);
        }), r3 = [], l.__e(u5, t5.__v);
      }
    }), l3 && l3(t4, r3);
  }, l.unmount = function(t4) {
    m5 && m5(t4);
    var r3, u5 = t4.__c;
    u5 && u5.__H && (u5.__H.__.forEach(function(n3) {
      try {
        k4(n3);
      } catch (n4) {
        r3 = n4;
      }
    }), u5.__H = void 0, r3 && l.__e(r3, u5.__v));
  };
  var g3 = "function" == typeof requestAnimationFrame;
  function j3(n3) {
    var t4, r3 = function() {
      clearTimeout(u5), g3 && cancelAnimationFrame(t4), setTimeout(n3);
    }, u5 = setTimeout(r3, 100);
    g3 && (t4 = requestAnimationFrame(r3));
  }
  function k4(n3) {
    var t4 = r2, u5 = n3.__c;
    "function" == typeof u5 && (n3.__c = void 0, u5()), r2 = t4;
  }
  function w4(n3) {
    var t4 = r2;
    n3.__c = n3.__(), r2 = t4;
  }
  function z3(n3, t4) {
    return !n3 || n3.length !== t4.length || t4.some(function(t5, r3) {
      return t5 !== n3[r3];
    });
  }
  function B3(n3, t4) {
    return "function" == typeof t4 ? t4(n3) : t4;
  }

  // node_modules/preact/compat/dist/compat.module.js
  function g4(n3, t4) {
    for (var e4 in t4)
      n3[e4] = t4[e4];
    return n3;
  }
  function C3(n3, t4) {
    for (var e4 in n3)
      if ("__source" !== e4 && !(e4 in t4))
        return true;
    for (var r3 in t4)
      if ("__source" !== r3 && n3[r3] !== t4[r3])
        return true;
    return false;
  }
  function E2(n3, t4) {
    return n3 === t4 && (0 !== n3 || 1 / n3 == 1 / t4) || n3 != n3 && t4 != t4;
  }
  function w5(n3) {
    this.props = n3;
  }
  function R2(n3, e4) {
    function r3(n4) {
      var t4 = this.props.ref, r4 = t4 == n4.ref;
      return !r4 && t4 && (t4.call ? t4(null) : t4.current = null), e4 ? !e4(this.props, n4) || !r4 : C3(this.props, n4);
    }
    function u5(e5) {
      return this.shouldComponentUpdate = r3, h3(n3, e5);
    }
    return u5.displayName = "Memo(" + (n3.displayName || n3.name) + ")", u5.prototype.isReactComponent = true, u5.__f = true, u5;
  }
  (w5.prototype = new d3()).isPureReactComponent = true, w5.prototype.shouldComponentUpdate = function(n3, t4) {
    return C3(this.props, n3) || C3(this.state, t4);
  };
  var x5 = l.__b;
  l.__b = function(n3) {
    n3.type && n3.type.__f && n3.ref && (n3.props.ref = n3.ref, n3.ref = null), x5 && x5(n3);
  };
  var N2 = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.forward_ref") || 3911;
  function k5(n3) {
    function t4(t5) {
      var e4 = g4({}, t5);
      return delete e4.ref, n3(e4, t5.ref || null);
    }
    return t4.$$typeof = N2, t4.render = t4, t4.prototype.isReactComponent = t4.__f = true, t4.displayName = "ForwardRef(" + (n3.displayName || n3.name) + ")", t4;
  }
  var A4 = function(n3, t4) {
    return null == n3 ? null : x2(x2(n3).map(t4));
  };
  var O4 = { map: A4, forEach: A4, count: function(n3) {
    return n3 ? x2(n3).length : 0;
  }, only: function(n3) {
    var t4 = x2(n3);
    if (1 !== t4.length)
      throw "Children.only";
    return t4[0];
  }, toArray: x2 };
  var T4 = l.__e;
  l.__e = function(n3, t4, e4, r3) {
    if (n3.then) {
      for (var u5, o4 = t4; o4 = o4.__; )
        if ((u5 = o4.__c) && u5.__c)
          return null == t4.__e && (t4.__e = e4.__e, t4.__k = e4.__k), u5.__c(n3, t4);
    }
    T4(n3, t4, e4, r3);
  };
  var I3 = l.unmount;
  function L3(n3, t4, e4) {
    return n3 && (n3.__c && n3.__c.__H && (n3.__c.__H.__.forEach(function(n4) {
      "function" == typeof n4.__c && n4.__c();
    }), n3.__c.__H = null), null != (n3 = g4({}, n3)).__c && (n3.__c.__P === e4 && (n3.__c.__P = t4), n3.__c = null), n3.__k = n3.__k && n3.__k.map(function(n4) {
      return L3(n4, t4, e4);
    })), n3;
  }
  function U(n3, t4, e4) {
    return n3 && (n3.__v = null, n3.__k = n3.__k && n3.__k.map(function(n4) {
      return U(n4, t4, e4);
    }), n3.__c && n3.__c.__P === t4 && (n3.__e && e4.insertBefore(n3.__e, n3.__d), n3.__c.__e = true, n3.__c.__P = e4)), n3;
  }
  function D2() {
    this.__u = 0, this.t = null, this.__b = null;
  }
  function F3(n3) {
    var t4 = n3.__.__c;
    return t4 && t4.__a && t4.__a(n3);
  }
  function M4(n3) {
    var e4, r3, u5;
    function o4(o5) {
      if (e4 || (e4 = n3()).then(function(n4) {
        r3 = n4.default || n4;
      }, function(n4) {
        u5 = n4;
      }), u5)
        throw u5;
      if (!r3)
        throw e4;
      return h3(r3, o5);
    }
    return o4.displayName = "Lazy", o4.__f = true, o4;
  }
  function V2() {
    this.u = null, this.o = null;
  }
  l.unmount = function(n3) {
    var t4 = n3.__c;
    t4 && t4.__R && t4.__R(), t4 && true === n3.__h && (n3.type = null), I3 && I3(n3);
  }, (D2.prototype = new d3()).__c = function(n3, t4) {
    var e4 = t4.__c, r3 = this;
    null == r3.t && (r3.t = []), r3.t.push(e4);
    var u5 = F3(r3.__v), o4 = false, i5 = function() {
      o4 || (o4 = true, e4.__R = null, u5 ? u5(l4) : l4());
    };
    e4.__R = i5;
    var l4 = function() {
      if (!--r3.__u) {
        if (r3.state.__a) {
          var n4 = r3.state.__a;
          r3.__v.__k[0] = U(n4, n4.__c.__P, n4.__c.__O);
        }
        var t5;
        for (r3.setState({ __a: r3.__b = null }); t5 = r3.t.pop(); )
          t5.forceUpdate();
      }
    }, c5 = true === t4.__h;
    r3.__u++ || c5 || r3.setState({ __a: r3.__b = r3.__v.__k[0] }), n3.then(i5, i5);
  }, D2.prototype.componentWillUnmount = function() {
    this.t = [];
  }, D2.prototype.render = function(n3, e4) {
    if (this.__b) {
      if (this.__v.__k) {
        var r3 = document.createElement("div"), o4 = this.__v.__k[0].__c;
        this.__v.__k[0] = L3(this.__b, r3, o4.__O = o4.__P);
      }
      this.__b = null;
    }
    var i5 = e4.__a && h3(p, null, n3.fallback);
    return i5 && (i5.__h = null), [h3(p, null, e4.__a ? null : n3.children), i5];
  };
  var W = function(n3, t4, e4) {
    if (++e4[1] === e4[0] && n3.o.delete(t4), n3.props.revealOrder && ("t" !== n3.props.revealOrder[0] || !n3.o.size))
      for (e4 = n3.u; e4; ) {
        for (; e4.length > 3; )
          e4.pop()();
        if (e4[1] < e4[0])
          break;
        n3.u = e4 = e4[2];
      }
  };
  function P2(n3) {
    return this.getChildContext = function() {
      return n3.context;
    }, n3.children;
  }
  function $2(n3) {
    var e4 = this, r3 = n3.i;
    e4.componentWillUnmount = function() {
      P(null, e4.l), e4.l = null, e4.i = null;
    }, e4.i && e4.i !== r3 && e4.componentWillUnmount(), n3.__v ? (e4.l || (e4.i = r3, e4.l = { nodeType: 1, parentNode: r3, childNodes: [], appendChild: function(n4) {
      this.childNodes.push(n4), e4.i.appendChild(n4);
    }, insertBefore: function(n4, t4) {
      this.childNodes.push(n4), e4.i.appendChild(n4);
    }, removeChild: function(n4) {
      this.childNodes.splice(this.childNodes.indexOf(n4) >>> 1, 1), e4.i.removeChild(n4);
    } }), P(h3(P2, { context: e4.context }, n3.__v), e4.l)) : e4.l && e4.componentWillUnmount();
  }
  function j4(n3, e4) {
    var r3 = h3($2, { __v: n3, i: e4 });
    return r3.containerInfo = e4, r3;
  }
  (V2.prototype = new d3()).__a = function(n3) {
    var t4 = this, e4 = F3(t4.__v), r3 = t4.o.get(n3);
    return r3[0]++, function(u5) {
      var o4 = function() {
        t4.props.revealOrder ? (r3.push(u5), W(t4, n3, r3)) : u5();
      };
      e4 ? e4(o4) : o4();
    };
  }, V2.prototype.render = function(n3) {
    this.u = null, this.o = /* @__PURE__ */ new Map();
    var t4 = x2(n3.children);
    n3.revealOrder && "b" === n3.revealOrder[0] && t4.reverse();
    for (var e4 = t4.length; e4--; )
      this.o.set(t4[e4], this.u = [1, 0, this.u]);
    return n3.children;
  }, V2.prototype.componentDidUpdate = V2.prototype.componentDidMount = function() {
    var n3 = this;
    this.o.forEach(function(t4, e4) {
      W(n3, e4, t4);
    });
  };
  var z4 = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103;
  var B4 = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;
  var H4 = "undefined" != typeof document;
  var Z = function(n3) {
    return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/i : /fil|che|ra/i).test(n3);
  };
  function Y2(n3, t4, e4) {
    return null == t4.__k && (t4.textContent = ""), P(n3, t4), "function" == typeof e4 && e4(), n3 ? n3.__c : null;
  }
  function q4(n3, t4, e4) {
    return S3(n3, t4), "function" == typeof e4 && e4(), n3 ? n3.__c : null;
  }
  d3.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t4) {
    Object.defineProperty(d3.prototype, t4, { configurable: true, get: function() {
      return this["UNSAFE_" + t4];
    }, set: function(n3) {
      Object.defineProperty(this, t4, { configurable: true, writable: true, value: n3 });
    } });
  });
  var G2 = l.event;
  function J() {
  }
  function K2() {
    return this.cancelBubble;
  }
  function Q2() {
    return this.defaultPrevented;
  }
  l.event = function(n3) {
    return G2 && (n3 = G2(n3)), n3.persist = J, n3.isPropagationStopped = K2, n3.isDefaultPrevented = Q2, n3.nativeEvent = n3;
  };
  var X2;
  var nn = { configurable: true, get: function() {
    return this.class;
  } };
  var tn = l.vnode;
  l.vnode = function(n3) {
    var t4 = n3.type, e4 = n3.props, u5 = e4;
    if ("string" == typeof t4) {
      var o4 = -1 === t4.indexOf("-");
      for (var i5 in u5 = {}, e4) {
        var l4 = e4[i5];
        H4 && "children" === i5 && "noscript" === t4 || "value" === i5 && "defaultValue" in e4 && null == l4 || ("defaultValue" === i5 && "value" in e4 && null == e4.value ? i5 = "value" : "download" === i5 && true === l4 ? l4 = "" : /ondoubleclick/i.test(i5) ? i5 = "ondblclick" : /^onchange(textarea|input)/i.test(i5 + t4) && !Z(e4.type) ? i5 = "oninput" : /^onfocus$/i.test(i5) ? i5 = "onfocusin" : /^onblur$/i.test(i5) ? i5 = "onfocusout" : /^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i5) ? i5 = i5.toLowerCase() : o4 && B4.test(i5) ? i5 = i5.replace(/[A-Z0-9]/g, "-$&").toLowerCase() : null === l4 && (l4 = void 0), /^oninput$/i.test(i5) && (i5 = i5.toLowerCase(), u5[i5] && (i5 = "oninputCapture")), u5[i5] = l4);
      }
      "select" == t4 && u5.multiple && Array.isArray(u5.value) && (u5.value = x2(e4.children).forEach(function(n4) {
        n4.props.selected = -1 != u5.value.indexOf(n4.props.value);
      })), "select" == t4 && null != u5.defaultValue && (u5.value = x2(e4.children).forEach(function(n4) {
        n4.props.selected = u5.multiple ? -1 != u5.defaultValue.indexOf(n4.props.value) : u5.defaultValue == n4.props.value;
      })), n3.props = u5, e4.class != e4.className && (nn.enumerable = "className" in e4, null != e4.className && (u5.class = e4.className), Object.defineProperty(u5, "className", nn));
    }
    n3.$$typeof = z4, tn && tn(n3);
  };
  var en = l.__r;
  l.__r = function(n3) {
    en && en(n3), X2 = n3.__c;
  };
  var rn = { ReactCurrentDispatcher: { current: { readContext: function(n3) {
    return X2.__n[n3.__c].props.value;
  } } } };
  function on(n3) {
    return h3.bind(null, n3);
  }
  function ln(n3) {
    return !!n3 && n3.$$typeof === z4;
  }
  function cn(n3) {
    return ln(n3) ? q2.apply(null, arguments) : n3;
  }
  function fn(n3) {
    return !!n3.__k && (P(null, n3), true);
  }
  function an(n3) {
    return n3 && (n3.base || 1 === n3.nodeType && n3) || null;
  }
  var sn = function(n3, t4) {
    return n3(t4);
  };
  var hn = function(n3, t4) {
    return n3(t4);
  };
  var vn = p;
  function dn(n3) {
    n3();
  }
  function pn(n3) {
    return n3;
  }
  function mn() {
    return [false, dn];
  }
  var yn = s5;
  function _n(n3, t4) {
    var e4 = t4(), r3 = p3({ h: { __: e4, v: t4 } }), u5 = r3[0].h, o4 = r3[1];
    return s5(function() {
      u5.__ = e4, u5.v = t4, E2(u5.__, t4()) || o4({ h: u5 });
    }, [n3, e4, t4]), h5(function() {
      return E2(u5.__, u5.v()) || o4({ h: u5 }), n3(function() {
        E2(u5.__, u5.v()) || o4({ h: u5 });
      });
    }, [n3]), e4;
  }
  var bn = { useState: p3, useId: V, useReducer: y5, useEffect: h5, useLayoutEffect: s5, useInsertionEffect: yn, useTransition: mn, useDeferredValue: pn, useSyncExternalStore: _n, startTransition: dn, useRef: _3, useImperativeHandle: A3, useMemo: F2, useCallback: T3, useContext: q3, useDebugValue: x4, version: "17.0.2", Children: O4, render: Y2, hydrate: q4, unmountComponentAtNode: fn, createPortal: j4, createElement: h3, createContext: B2, createFactory: on, cloneElement: cn, createRef: y3, Fragment: p, isValidElement: ln, findDOMNode: an, Component: d3, PureComponent: w5, memo: R2, forwardRef: k5, flushSync: hn, unstable_batchedUpdates: sn, StrictMode: vn, Suspense: D2, SuspenseList: V2, lazy: M4, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: rn };

  // ../../node_modules/.pnpm/@linaria+core@3.0.0-beta.22/node_modules/@linaria/core/esm/cx.js
  var cx = function cx2() {
    const presentClassNames = Array.prototype.slice.call(arguments).filter(Boolean);
    const atomicClasses = {};
    const nonAtomicClasses = [];
    presentClassNames.forEach((arg) => {
      const individualClassNames = arg ? arg.split(" ") : [];
      individualClassNames.forEach((className) => {
        if (className.startsWith("atm_")) {
          const [, keyHash] = className.split("_");
          atomicClasses[keyHash] = className;
        } else {
          nonAtomicClasses.push(className);
        }
      });
    });
    const result = [];
    for (const keyHash in atomicClasses) {
      if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
        result.push(atomicClasses[keyHash]);
      }
    }
    result.push(...nonAtomicClasses);
    return result.join(" ");
  };
  var cx_default = cx;

  // ../../node_modules/.pnpm/@linaria+react@3.0.0-beta.22_react@18.3.1/node_modules/@linaria/react/esm/styled.js
  var isCapital = (ch) => ch.toUpperCase() === ch;
  var filterKey = (keys) => (key) => keys.indexOf(key) === -1;
  var omit = (obj, keys) => {
    const res = {};
    Object.keys(obj).filter(filterKey(keys)).forEach((key) => {
      res[key] = obj[key];
    });
    return res;
  };
  function filterProps(component, props, omitKeys) {
    const filteredProps = omit(props, omitKeys);
    if (typeof component === "string" && component.indexOf("-") === -1 && !isCapital(component[0])) {
      Object.keys(filteredProps).forEach((key) => {
        if (!is_prop_valid_browser_esm_default(key)) {
          delete filteredProps[key];
        }
      });
    }
    return filteredProps;
  }
  var warnIfInvalid = (value, componentName) => {
    if (true) {
      if (typeof value === "string" || // eslint-disable-next-line no-self-compare,no-restricted-globals
      typeof value === "number" && isFinite(value)) {
        return;
      }
      const stringified = typeof value === "object" ? JSON.stringify(value) : String(value);
      console.warn(`An interpolation evaluated to '${stringified}' in the component '${componentName}', which is probably a mistake. You should explicitly cast or transform the value to a string.`);
    }
  };
  function styled(tag) {
    return (options) => {
      if (true) {
        if (Array.isArray(options)) {
          throw new Error('Using the "styled" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. See https://github.com/callstack/linaria#setup');
        }
      }
      const render = (props, ref) => {
        const {
          as: component = tag,
          class: className
        } = props;
        const filteredProps = filterProps(component, props, ["as", "class"]);
        filteredProps.ref = ref;
        filteredProps.className = options.atomic ? cx_default(options.class, filteredProps.className || className) : cx_default(filteredProps.className || className, options.class);
        const {
          vars
        } = options;
        if (vars) {
          const style = {};
          for (const name in vars) {
            const variable = vars[name];
            const result = variable[0];
            const unit = variable[1] || "";
            const value = typeof result === "function" ? result(props) : result;
            warnIfInvalid(value, options.name);
            style[`--${name}`] = `${value}${unit}`;
          }
          const ownStyle = filteredProps.style || {};
          const keys = Object.keys(ownStyle);
          if (keys.length > 0) {
            keys.forEach((key) => {
              style[key] = ownStyle[key];
            });
          }
          filteredProps.style = style;
        }
        if (tag.__linaria && tag !== component) {
          filteredProps.as = component;
          return /* @__PURE__ */ bn.createElement(tag, filteredProps);
        }
        return /* @__PURE__ */ bn.createElement(component, filteredProps);
      };
      const Result = bn.forwardRef ? /* @__PURE__ */ bn.forwardRef(render) : (
        // React.forwardRef won't available on older React versions and in Preact
        // Fallback to a innerRef prop in that case
        (props) => {
          const rest = omit(props, ["innerRef"]);
          return render(rest, props.innerRef);
        }
      );
      Result.displayName = options.name;
      Result.__linaria = {
        className: options.class,
        extends: tag
      };
      return Result;
    };
  }
  var styled_default = true ? new Proxy(styled, {
    get(o4, prop) {
      return o4(prop);
    }
  }) : styled;

  // src/styled/index.tsx
  var FooterBar = /* @__PURE__ */ styled_default("footer")({
    name: "FooterBar",
    class: "fef0x5t"
  });
  var Page = /* @__PURE__ */ styled_default("div")({
    name: "Page",
    class: "p1b3vqup"
  });
  var InfoBox = /* @__PURE__ */ styled_default("div")({
    name: "InfoBox",
    class: "i1pkgksb"
  });
  var TableExpanded = /* @__PURE__ */ styled_default("dl")({
    name: "TableExpanded",
    class: "t2c81u8"
  });
  var TableSimple = /* @__PURE__ */ styled_default("dl")({
    name: "TableSimple",
    class: "t1mav7fx"
  });

  // src/components/Footer.tsx
  function Footer() {
    return /* @__PURE__ */ h3(FooterBar, null, /* @__PURE__ */ h3("p", null, /* @__PURE__ */ h3("a", {
      href: "https://taler.net/"
    }, "Learn more about GNU Taler on our website."), /* @__PURE__ */ h3("p", null, "Copyright \xA9 2014\u20142021 Taler Systems SA")));
  }

  // src/utils.ts
  var TIME_DATE_FORMAT = "dd MMM yyyy HH:mm:ss";

  // src/pages/ShowOrderDetails.tsx
  function Head({ order_summary }) {
    return /* @__PURE__ */ h3(p, null, /* @__PURE__ */ h3("meta", {
      charSet: "UTF-8"
    }), /* @__PURE__ */ h3("meta", {
      name: "viewport",
      content: "width=device-width, initial-scale=1.0"
    }), /* @__PURE__ */ h3("meta", {
      name: "taler-support",
      content: "uri"
    }), /* @__PURE__ */ h3("noscript", null, /* @__PURE__ */ h3("meta", {
      "http-equiv": "refresh",
      content: "1"
    })), /* @__PURE__ */ h3("title", null, "Status of your order for", " ", order_summary ? order_summary : `{{ order_summary }}`), /* @__PURE__ */ h3("script", null, `
      var contractTermsStr = '{{{contract_terms_json}}}';
    `));
  }
  function Location({
    templateName,
    location,
    btr
  }) {
    return /* @__PURE__ */ h3(p, null, btr && `{{#${templateName}.building_name}}`, /* @__PURE__ */ h3("dd", null, location?.building_name || btr && `{{ ${templateName}.building_name }}`, " ", location?.building_number || btr && `{{ ${templateName}.building_number }}`), btr && `{{/${templateName}.building_name}}`, btr && `{{#${templateName}.country}}`, /* @__PURE__ */ h3("dd", null, location?.country || btr && `{{ ${templateName}.country }}`, " ", location?.country_subdivision || btr && `{{ ${templateName}.country_subdivision }}`), btr && `{{/${templateName}.country}}`, btr && `{{#${templateName}.district}}`, /* @__PURE__ */ h3("dd", null, location?.district || btr && `{{ ${templateName}.district }}`), btr && `{{/${templateName}.district}}`, btr && `{{#${templateName}.post_code}}`, /* @__PURE__ */ h3("dd", null, location?.post_code || btr && `{{ ${templateName}.post_code }}`), btr && `{{/${templateName}.post_code}}`, btr && `{{#${templateName}.street}}`, /* @__PURE__ */ h3("dd", null, location?.street || btr && `{{ ${templateName}.street }}`), btr && `{{/${templateName}.street}}`, btr && `{{#${templateName}.town}}`, /* @__PURE__ */ h3("dd", null, location?.town || btr && `{{ ${templateName}.town }}`), btr && `{{/${templateName}.town}}`, btr && `{{#${templateName}.town_location}}`, /* @__PURE__ */ h3("dd", null, location?.town_location || btr && `{{ ${templateName}.town_location }}`), btr && `{{/${templateName}.town_location}}`);
  }
  function ShowOrderDetails({
    order_summary,
    refund_amount,
    contract_terms,
    btr
  }) {
    const productList = btr ? [{}] : contract_terms?.products || [];
    const auditorsList = btr ? [{}] : contract_terms?.auditors || [];
    const exchangesList = btr ? [{}] : contract_terms?.exchanges || [];
    const hasDeliveryInfo = btr || !!contract_terms?.delivery_date || !!contract_terms?.delivery_location;
    return /* @__PURE__ */ h3(Page, null, /* @__PURE__ */ h3("header", null, /* @__PURE__ */ h3("h1", null, "Details of order", " ", contract_terms?.order_id || `{{ contract_terms.order_id }}`)), /* @__PURE__ */ h3("section", null, btr && `{{#refund_amount}}`, (btr || refund_amount) && /* @__PURE__ */ h3("section", null, /* @__PURE__ */ h3(InfoBox, null, /* @__PURE__ */ h3("b", null, "Refunded:"), " The merchant refunded you", " ", /* @__PURE__ */ h3("b", null, refund_amount || `{{ refund_amount }}`), ".")), btr && `{{/refund_amount}}`, btr && `{{#contract_terms.fulfillment_message}}`, (btr || contract_terms?.fulfillment_message) && /* @__PURE__ */ h3("section", null, /* @__PURE__ */ h3(InfoBox, null, /* @__PURE__ */ h3("b", null, contract_terms?.fulfillment_message || `{{ contract_terms.fulfillment_message }}`), ".")), btr && `{{/contract_terms.fulfillment_message}}`, /* @__PURE__ */ h3("section", null, /* @__PURE__ */ h3(TableExpanded, null, /* @__PURE__ */ h3("dt", null, "Order summary:"), /* @__PURE__ */ h3("dd", null, contract_terms?.summary || `{{ contract_terms.summary }}`), btr && `{{#contract_terms.fulfillment_url}}`, /* @__PURE__ */ h3("dt", null, "Fulfillment URL:"), /* @__PURE__ */ h3("dd", null, /* @__PURE__ */ h3("a", {
      href: contract_terms?.fulfillment_url || `{{ contract_terms.fulfillment_url }}`
    }, contract_terms?.fulfillment_url || `{{ contract_terms.fulfillment_url }}`)), btr && `{{/contract_terms.fulfillment_url}}`, /* @__PURE__ */ h3("dt", null, "Amount paid:"), /* @__PURE__ */ h3("dd", null, contract_terms?.amount || `{{ contract_terms.amount }}`), /* @__PURE__ */ h3("dt", null, "Order date:"), /* @__PURE__ */ h3("dd", null, contract_terms?.timestamp ? contract_terms?.timestamp.t_s != "never" ? format(contract_terms?.timestamp.t_s * 1e3, TIME_DATE_FORMAT) : "never" : `{{ contract_terms.timestamp_str }}`, " "), /* @__PURE__ */ h3("dt", null, "Merchant name:"), /* @__PURE__ */ h3("dd", null, contract_terms?.merchant.name || `{{ contract_terms.merchant.name }}`))), btr && `{{#contract_terms.hasProducts}}`, !productList.length ? null : /* @__PURE__ */ h3("section", null, /* @__PURE__ */ h3("h2", null, "Products purchased"), /* @__PURE__ */ h3(TableSimple, null, btr && "{{#contract_terms.products}}", productList.map((p4, i5) => {
      const taxList = btr ? [{}] : p4.taxes || [];
      return /* @__PURE__ */ h3(p, {
        key: i5
      }, /* @__PURE__ */ h3("p", null, p4.description || `{{description}}`), /* @__PURE__ */ h3("dl", null, /* @__PURE__ */ h3("dt", null, "Quantity:"), /* @__PURE__ */ h3("dd", null, p4.quantity || `{{quantity}}`), /* @__PURE__ */ h3("dt", null, "Price:"), /* @__PURE__ */ h3("dd", null, p4.price || `{{price}}`), btr && `{{#hasTaxes}}`, !taxList.length ? null : /* @__PURE__ */ h3(p, null, btr && "{{#taxes}}", taxList.map((t4, i22) => {
        return /* @__PURE__ */ h3(p, {
          key: i22
        }, /* @__PURE__ */ h3("dt", null, t4.name || `{{name}}`), /* @__PURE__ */ h3("dd", null, t4.tax || `{{tax}}`));
      }), btr && "{{/taxes}}"), btr && `{{/hasTaxes}}`, btr && `{{#delivery_date}}`, (btr || p4.delivery_date) && /* @__PURE__ */ h3(p, null, /* @__PURE__ */ h3("dt", null, "Delivered on:"), /* @__PURE__ */ h3("dd", null, p4.delivery_date ? p4.delivery_date.t_s != "never" ? format(p4.delivery_date.t_s, TIME_DATE_FORMAT) : "never" : `{{ delivery_date_str }}`, " ")), btr && `{{/delivery_date}}`, btr && `{{#unit}}`, (btr || p4.unit) && /* @__PURE__ */ h3(p, null, /* @__PURE__ */ h3("dt", null, "Product unit:"), /* @__PURE__ */ h3("dd", null, p4.unit || `{{.}}`)), btr && `{{/unit}}`, btr && `{{#product_id}}`, (btr || p4.product_id) && /* @__PURE__ */ h3(p, null, /* @__PURE__ */ h3("dt", null, "Product ID:"), /* @__PURE__ */ h3("dd", null, p4.product_id || `{{.}}`)), btr && `{{/product_id}}`));
    }), btr && "{{/contract_terms.products}}")), btr && `{{/contract_terms.hasProducts}}`, btr && `{{#contract_terms.has_delivery_info}}`, !hasDeliveryInfo ? null : /* @__PURE__ */ h3("section", null, /* @__PURE__ */ h3("h2", null, "Delivery information"), /* @__PURE__ */ h3(TableExpanded, null, btr && `{{#contract_terms.delivery_date}}`, (btr || contract_terms?.delivery_date) && /* @__PURE__ */ h3(p, null, /* @__PURE__ */ h3("dt", null, "Delivery date:"), /* @__PURE__ */ h3("dd", null, contract_terms?.delivery_date ? contract_terms?.delivery_date.t_s != "never" ? format(contract_terms?.delivery_date.t_s, TIME_DATE_FORMAT) : "never" : `{{ contract_terms.delivery_date_str }}`, " ")), btr && `{{/contract_terms.delivery_date}}`, btr && `{{#contract_terms.delivery_location}}`, (btr || contract_terms?.delivery_location) && /* @__PURE__ */ h3(p, null, /* @__PURE__ */ h3("dt", null, "Delivery address:"), /* @__PURE__ */ h3(Location, {
      btr,
      location: contract_terms?.delivery_location,
      templateName: "contract_terms.delivery_location"
    })), btr && `{{/contract_terms.delivery_location}}`)), btr && `{{/contract_terms.has_delivery_info}}`, /* @__PURE__ */ h3("section", null, /* @__PURE__ */ h3("h2", null, "Full payment information"), /* @__PURE__ */ h3(TableExpanded, null, /* @__PURE__ */ h3("dt", null, "Exchange transfer deadline:"), btr && `{{#contract_terms.wire_transfer_deadline_str}}`, /* @__PURE__ */ h3("dd", null, contract_terms?.wire_transfer_deadline ? contract_terms?.wire_transfer_deadline.t_s != "never" ? format(contract_terms?.wire_transfer_deadline.t_s * 1e3, TIME_DATE_FORMAT) : "never" : `{{ contract_terms.wire_transfer_deadline_str }}`, " "), btr && `{{/contract_terms.wire_transfer_deadline_str}}`, btr && `{{^contract_terms.wire_transfer_deadline_str}}`, /* @__PURE__ */ h3("dd", null, "Wire transfer settled."), btr && `{{/contract_terms.wire_transfer_deadline_str}}`, btr && `{{#contract_terms.max_fee}}`, /* @__PURE__ */ h3("dt", null, "Maximum deposit fee:"), /* @__PURE__ */ h3("dd", null, contract_terms?.max_fee || `{{ contract_terms.max_fee }}`), btr && `{{/contract_terms.max_fee}}`, btr && `{{#contract_terms.max_wire_fee}}`, /* @__PURE__ */ h3("dt", null, "Maximum wire fee:"), /* @__PURE__ */ h3("dd", null, contract_terms?.max_wire_fee || `{{ contract_terms.max_wire_fee }}`), btr && `{{/contract_terms.max_wire_fee}}`, btr && `{{#contract_terms.wire_fee_amortization}}`, /* @__PURE__ */ h3("dt", null, "Wire fee amortization:"), /* @__PURE__ */ h3("dd", null, contract_terms?.wire_fee_amortization || `{{ contract_terms.wire_fee_amortization }}`, " ", "transactions"), btr && `{{/contract_terms.wire_fee_amortization}}`)), /* @__PURE__ */ h3("section", null, /* @__PURE__ */ h3("h2", null, "Refund information"), /* @__PURE__ */ h3(TableExpanded, null, /* @__PURE__ */ h3("dt", null, "Refund deadline:"), /* @__PURE__ */ h3("dd", null, contract_terms?.refund_deadline ? contract_terms?.refund_deadline.t_s != "never" ? format(contract_terms?.refund_deadline.t_s * 1e3, TIME_DATE_FORMAT) : "never" : `{{ contract_terms.refund_deadline_str }}`, " "), btr && `{{#contract_terms.auto_refund}}`, (btr || contract_terms?.auto_refund) && /* @__PURE__ */ h3(p, null, /* @__PURE__ */ h3("dt", null, "Attempt autorefund for:"), /* @__PURE__ */ h3("dd", null, contract_terms?.auto_refund ? contract_terms?.auto_refund.d_us != "forever" ? formatDuration(intervalToDuration({
      start: 0,
      end: contract_terms?.auto_refund.d_us
    })) : "forever" : `{{ contract_terms.auto_refund_str }}`, " ")), btr && `{{/contract_terms.auto_refund}}`)), /* @__PURE__ */ h3("section", null, /* @__PURE__ */ h3("h2", null, "Additional order details"), /* @__PURE__ */ h3(TableExpanded, null, /* @__PURE__ */ h3("dt", null, "Public reorder URL:"), /* @__PURE__ */ h3("dd", null, " -- not defined yet -- "), btr && `{{#contract_terms.fulfillment_url}}`, (btr || contract_terms?.fulfillment_url) && /* @__PURE__ */ h3(p, null, /* @__PURE__ */ h3("dt", null, "Fulfillment URL:"), /* @__PURE__ */ h3("dd", null, contract_terms?.fulfillment_url || btr && `{{ contract_terms.fulfillment_url }}`)), btr && `{{/contract_terms.fulfillment_url}}`)), /* @__PURE__ */ h3("section", null, /* @__PURE__ */ h3("h2", null, "Full merchant information"), /* @__PURE__ */ h3(TableExpanded, null, /* @__PURE__ */ h3("dt", null, "Merchant name:"), /* @__PURE__ */ h3("dd", null, contract_terms?.merchant.name || `{{ contract_terms.merchant.name }}`), /* @__PURE__ */ h3("dt", null, "Merchant address:"), /* @__PURE__ */ h3(Location, {
      btr,
      location: contract_terms?.merchant.address,
      templateName: "contract_terms.merchant.address"
    }), /* @__PURE__ */ h3("dt", null, "Merchant's jurisdiction:"), /* @__PURE__ */ h3(Location, {
      btr,
      location: contract_terms?.merchant.jurisdiction,
      templateName: "contract_terms.merchant.jurisdiction"
    }), /* @__PURE__ */ h3("dt", null, "Merchant URI:"), /* @__PURE__ */ h3("dd", null, contract_terms?.merchant_base_url || `{{ contract_terms.merchant_base_url }}`), /* @__PURE__ */ h3("dt", null, "Merchant's public key:"), /* @__PURE__ */ h3("dd", null, contract_terms?.merchant_pub || `{{ contract_terms.merchant_pub }}`))), btr && `{{#contract_terms.hasAuditors}}`, !auditorsList.length ? null : /* @__PURE__ */ h3("section", null, /* @__PURE__ */ h3("h2", null, "Auditors accepted by the merchant"), /* @__PURE__ */ h3(TableExpanded, null, btr && "{{#contract_terms.auditors}}", auditorsList.map((p4, i5) => {
      return /* @__PURE__ */ h3(p, {
        key: i5
      }, /* @__PURE__ */ h3("p", null, p4.name || `{{name}}`), /* @__PURE__ */ h3("dt", null, "Auditor's public key:"), /* @__PURE__ */ h3("dd", null, p4.auditor_pub || `{{auditor_pub}}`), /* @__PURE__ */ h3("dt", null, "Auditor's URL:"), /* @__PURE__ */ h3("dd", null, p4.url || `{{url}}`));
    }), btr && "{{/contract_terms.auditors}}")), btr && `{{/contract_terms.hasAuditors}}`, btr && `{{#contract_terms.hasExchanges}}`, !exchangesList.length ? null : /* @__PURE__ */ h3("section", null, /* @__PURE__ */ h3("h2", null, "Exchanges accepted by the merchant"), /* @__PURE__ */ h3(TableExpanded, null, btr && "{{#contract_terms.exchanges}}", exchangesList.map((p4, i5) => {
      return /* @__PURE__ */ h3(p, {
        key: i5
      }, /* @__PURE__ */ h3("dt", null, "Exchange's URL:"), /* @__PURE__ */ h3("dd", null, p4.url || `{{url}}`), /* @__PURE__ */ h3("dt", null, "Public key:"), /* @__PURE__ */ h3("dd", null, p4.master_pub || `{{master_pub}}`));
    }), btr && "{{/contract_terms.exchanges}}")), btr && `{{/contract_terms.hasExchanges}}`), /* @__PURE__ */ h3(Footer, null));
  }
  function mount() {
    try {
      const fromLocation = new URL(window.location.href).searchParams;
      const os = fromLocation.get("order_summary") || void 0;
      if (os) {
        P(/* @__PURE__ */ h3(Head, {
          order_summary: os
        }), document.head);
      }
      const ra = fromLocation.get("refund_amount") || void 0;
      const ct = fromLocation.get("contract_terms") || void 0;
      let contractTerms;
      try {
        contractTerms = JSON.parse(window.contractTermsStr);
      } catch {
      }
      P(/* @__PURE__ */ h3(ShowOrderDetails, {
        contract_terms: contractTerms,
        order_summary: os,
        refund_amount: ra
      }), document.body);
    } catch (e4) {
      console.error("got error", e4);
      if (e4 instanceof Error) {
        document.body.innerText = `Fatal error: "${e4.message}".  Please report this bug at https://bugs.gnunet.org/.`;
      }
    }
  }
  function buildTimeRendering() {
    return {
      head: S4(/* @__PURE__ */ h3(Head, null)),
      body: S4(/* @__PURE__ */ h3(ShowOrderDetails, {
        btr: true
      }))
    };
  }
  return __toCommonJS(ShowOrderDetails_exports);
})();
</script>
              <script>page.mount()</script>
            </body>
          </html>