@moonbase.sh/storefront 0.2.78 → 0.2.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,24 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('#moonbase .moonbase\\:toolbar{position:fixed;bottom:32px;border-radius:16px;background-color:#1a1a1a;color:#f9f9f9;display:flex;transition-duration:.1s;transition-property:all;transition-timing-function:ease-out;transform:translateY(8px);opacity:0}#moonbase .moonbase\\:toolbar[data-contain]{position:absolute}#moonbase .moonbase\\:toolbar[data-location=bottom-right]{right:32px}#moonbase .moonbase\\:toolbar[data-location=bottom-left]{left:32px}#moonbase .moonbase\\:toolbar[data-visible]{transform:translateY(0);opacity:1;transition-duration:.5s}#moonbase .moonbase\\:toolbar-action{padding:12px 16px;transition:background-color .25s ease-out;cursor:pointer;display:flex;align-items:center}#moonbase .moonbase\\:toolbar-action:nth-child(1){border-top-left-radius:16px;border-bottom-left-radius:16px}#moonbase .moonbase\\:toolbar-action:last-child{border-top-right-radius:16px;border-bottom-right-radius:16px}#moonbase .moonbase\\:toolbar-action:hover{background-color:#ffffff1a}#moonbase .moonbase\\:toolbar-action[data-action-width=narrow]{padding:12px}#moonbase .moonbase\\:input label{display:block;font-size:14px;font-weight:500;line-height:20px;color:hsl(from var(--moonbase-input-text-color, var(--moonbase-text-color)) h s calc(l + 15))}#moonbase .moonbase\\:input input{display:block;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:calc(var(--moonbase-input-border-radius, var(--moonbase-border-radius)) * .5);border-width:1px;border-color:#d1d5db;color:var(--moonbase-input-text-color, var(--moonbase-text-color));background-color:var(--moonbase-input-background-color);font-size:14px;line-height:20px;padding:var(--moonbase-input-padding);margin-top:4px;box-shadow:#fff 0 0 0 2px,transparent 0 0 0 4px,0 1px 2px 0 var(--moonbase-input-shadow-color);transition:all .25s ease-in-out}#moonbase .moonbase\\:input input:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0 0 2px,var(--moonbase-input-active-color, var(--moonbase-primary-color)) 0 0 0 4px,0 1px 2px 0 var(--moonbase-input-shadow-color)}#moonbase .moonbase\\:input input:disabled{opacity:.75}#moonbase .moonbase\\:input .moonbase\\:input-hint{margin-top:8px;font-size:14px;line-height:20px}#moonbase .moonbase\\:input .moonbase\\:input-hint[data-type=error]{color:var(--moonbase-input-error-color)}@keyframes moonbase\\:spin-687bcaf0{to{transform:rotate(360deg)}}#moonbase svg[data-v-687bcaf0]{animation:moonbase\\:spin-687bcaf0 1s linear infinite}#moonbase .moonbase\\:submit-button[data-v-91242842]{position:relative;display:flex;justify-content:center;overflow:hidden;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:ease-in-out;transition-duration:.2s;box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}#moonbase .moonbase\\:submit-button[data-v-91242842][data-v-91242842],#moonbase .moonbase\\:submit-button[data-v-91242842][data-v-91242842]:hover,#moonbase .moonbase\\:submit-button[data-v-91242842][data-v-91242842]:focus,#moonbase .moonbase\\:submit-button[data-v-91242842][data-v-91242842]:active{font-size:14px;font-weight:500;line-height:20px;border-radius:var(--moonbase-button-border-radius, var(--moonbase-border-radius));border-width:1px;border-color:transparent;border-style:solid;color:var(--moonbase-button-text-color);background-color:var(--moonbase-button-background-color, var(--moonbase-primary-color));padding:var(--moonbase-button-padding);height:unset;width:unset}#moonbase .moonbase\\:submit-button[data-v-91242842][data-v-91242842]:hover{background-color:hsl(from var(--moonbase-button-background-color, var(--moonbase-primary-color)) h s calc(l - 5))}#moonbase .moonbase\\:submit-button[data-v-91242842][data-v-91242842]:focus{transition-duration:.1s;outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0 0 2px,var(--moonbase-button-background-color, var(--moonbase-primary-color)) 0 0 0 4px,0 1px 2px 0 var(--moonbase-button-shadow-color)}#moonbase .moonbase\\:submit-button[data-v-91242842][data-success][data-v-91242842]{background-color:var(--moonbase-button-success-color)}#moonbase .moonbase\\:submit-button[data-v-91242842][data-error][data-v-91242842]{background-color:var(--moonbase-button-error-color)}#moonbase .moonbase\\:submit-button[data-v-91242842] div[data-v-91242842]{margin-left:-12px;margin-right:12px;height:20px;width:0px;opacity:0;transition-property:opacity,width;transition-duration:.2s;transition-timing-function:ease-in-out}#moonbase .moonbase\\:submit-button[data-v-91242842] div[data-v-91242842][data-visible][data-v-91242842]{width:20px;opacity:1}#moonbase .moonbase\\:submit-button[data-v-91242842] div[data-v-91242842] svg[data-v-91242842]{height:20px;width:20px}#moonbase .moonbase\\:checkbox{display:flex;align-items:flex-start}#moonbase .moonbase\\:checkbox label{font-size:14px;font-weight:500;line-height:20px;color:hsl(from var(--moonbase-input-text-color, var(--moonbase-text-color)) h s calc(l + 15))}#moonbase .moonbase\\:checkbox .moonbase\\:checkbox-container{display:flex;height:24px;align-items:center}#moonbase .moonbase\\:checkbox input{height:16px;width:16px;border-width:1px;border-radius:var(--moonbase-input-border-radius, var(--moonbase-border-radius));border-color:var(--moonbase-input-background-color, var(--moonbase-background-color));background-color:var(--moonbase-input-background-color, var(--moonbase-background-color));font-size:14px;line-height:20px;padding:8px 12px;margin-top:4px;box-shadow:0 1px 2px 0 var(--moonbase-input-shadow-color)}#moonbase .moonbase\\:checkbox input:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0 0 2px,var(--moonbase-input-active-color, var(--moonbase-primary-color)) 0 0 0 4px,0 1px 2px 0 var(--moonbase-input-shadow-color)}#moonbase .moonbase\\:checkbox .moonbase\\:checkbox-description{margin-left:12px}#moonbase .moonbase\\:checkbox .moonbase\\:checkbox-description label{font-size:14px;line-height:24px;font-weight:500;color:hsl(from var(--moonbase-text-color) h s calc(l + 5))}#moonbase .moonbase\\:checkbox .moonbase\\:checkbox-description p{font-size:14px;line-height:24px;color:hsl(from var(--moonbase-text-color) h s calc(l + 15))}#moonbase .moonbase\\:checkbox .moonbase\\:checkbox-description p[data-type=error]{color:var(--moonbase-input-error-color)}#moonbase .moonbase\\:sign-up{display:flex;flex-direction:column}#moonbase .moonbase\\:sign-up>*:not(:first-child){margin-top:16px}#moonbase .moonbase\\:sign-up .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}#moonbase .moonbase\\:sign-up .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}#moonbase .moonbase\\:confirm-account{display:flex;flex-direction:column}#moonbase .moonbase\\:confirm-account>*:not(:first-child){margin-top:16px}#moonbase .moonbase\\:confirm-account>.moonbase\\:loader{display:flex;justify-content:center;padding:36px 16px}#moonbase .moonbase\\:confirm-account>.moonbase\\:loader svg{height:24px;width:24px}#moonbase .moonbase\\:confirm-account .moonbase\\:error{text-align:center;color:var(--moonbase-error-color);font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}#moonbase .moonbase\\:confirm-account .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}#moonbase .moonbase\\:reset-password{display:flex;flex-direction:column}#moonbase .moonbase\\:reset-password>*:not(:first-child){margin-top:16px}#moonbase .moonbase\\:reset-password .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}#moonbase .moonbase\\:reset-password .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}#moonbase .moonbase\\:confirm-email-change{display:flex;flex-direction:column}#moonbase .moonbase\\:confirm-email-change>*:not(:first-child){margin-top:16px}#moonbase .moonbase\\:confirm-email-change>.moonbase\\:loader{display:flex;justify-content:center;padding:36px 16px}#moonbase .moonbase\\:confirm-email-change>.moonbase\\:loader svg{height:24px;width:24px}#moonbase .moonbase\\:confirm-email-change .moonbase\\:error{text-align:center;color:var(--moonbase-error-color);font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}#moonbase .moonbase\\:confirm-email-change .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}#moonbase .moonbase\\:modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;overflow-y:auto}#moonbase .moonbase\\:modal[data-contain]{position:absolute}#moonbase .moonbase\\:modal-container{display:flex;min-height:100svh;align-items:flex-end;justify-content:center;padding:16px 16px 90px;text-align:center}#moonbase .moonbase\\:modal-container[data-contain]{min-height:100%}@media (min-width: 640px){#moonbase .moonbase\\:modal-container{display:block;padding:0}}#moonbase .moonbase\\:modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;transition-property:opacity;opacity:0}#moonbase .moonbase\\:modal-overlay[data-contain]{position:absolute}#moonbase .moonbase\\:modal-overlay[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}#moonbase .moonbase\\:modal-overlay[data-transition~=entered],#moonbase .moonbase\\:modal-overlay[data-transition~=enter-to],#moonbase .moonbase\\:modal-overlay[data-transition~=leave-from]{opacity:1}#moonbase .moonbase\\:modal-overlay[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.2s}#moonbase .moonbase\\:modal-content{position:relative;display:inline-block;margin:80px auto 16px;color:var(--moonbase-modal-text-color, var(--moonbase-text-color));background-color:var(--moonbase-modal-background-color, var(--moonbase-background-color));box-shadow:var(--moonbase-modal-shadow-color) 0 8px 32px 0;border-radius:calc(var(--moonbase-modal-border-radius, var(--moonbase-border-radius)) * 2);vertical-align:bottom;transition-property:all;text-align:left;opacity:0;transform:translateY(16px)}@media (min-width: 640px){#moonbase .moonbase\\:modal-content{transform:scale(.95)}}@media (min-width: 640px){#moonbase .moonbase\\:modal-content{vertical-align:middle}}#moonbase .moonbase\\:modal-content[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}#moonbase .moonbase\\:modal-content[data-transition~=entered],#moonbase .moonbase\\:modal-content[data-transition~=enter-to]{opacity:1;transform:translateY(0)}@media (min-width: 640px){#moonbase .moonbase\\:modal-content[data-transition~=entered],#moonbase .moonbase\\:modal-content[data-transition~=enter-to]{transform:scale(1)}}#moonbase .moonbase\\:modal-content[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.2s}#moonbase .moonbase\\:modal-content[data-transition~=leave-from]{opacity:1;transform:translateY(0)}@media (min-width: 640px){#moonbase .moonbase\\:modal-content[data-transition~=leave-from]{transform:scale(1)}}#moonbase .moonbase\\:sign-in{display:flex;flex-direction:column}#moonbase .moonbase\\:sign-in>*:not(:first-child){margin-top:16px}#moonbase .moonbase\\:sign-in .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}#moonbase .moonbase\\:sign-in .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}#moonbase .moonbase\\:authentication{display:inline-block;color:var(--moonbase-text-color, black);padding:32px 64px}@media (min-width: 640px){#moonbase .moonbase\\:authentication{width:100vw;max-width:416px}}#moonbase .moonbase\\:authentication>h3{font-size:18px;line-height:24px;font-weight:500;text-align:center;margin-bottom:24px}#moonbase .moonbase\\:authentication>.moonbase\\:loader{display:flex;justify-content:center;padding:36px 16px}#moonbase .moonbase\\:authentication>.moonbase\\:loader svg{height:24px;width:24px}#moonbase .moonbase\\:product-cart-item{display:flex;align-items:center}#moonbase .moonbase\\:product-cart-item>:not(:first-child){margin-left:24px}#moonbase .moonbase\\:product-cart-item>img{height:80px;width:80px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:product-cart-item>.moonbase\\:image-placeholder{height:80px;width:80px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}#moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content{display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start}#moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content>:not(:first-child){margin-top:4px}#moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content h3{font-weight:600}#moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content .moonbase\\:cart-item-discount{color:hsl(from var(--moonbase-success-color, rgb(22 163 74)) h s calc(l - 10))}#moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-total{flex:none;text-align:right;font-weight:500;font-size:16px;line-height:21px}#moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-total>span{display:block;font-size:14px;line-height:20px;opacity:.75}#moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-total>span.moonbase\\:discount{text-decoration:line-through}#moonbase .moonbase\\:bundle-cart-item{display:flex;align-items:center}#moonbase .moonbase\\:bundle-cart-item>:not(:first-child){margin-left:24px}#moonbase .moonbase\\:bundle-cart-item>img{height:80px;width:80px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:image-placeholder{height:80px;width:80px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content{display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content>:not(:first-child){margin-top:4px}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content h3{font-weight:600}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:cart-item-discount{color:hsl(from var(--moonbase-success-color, rgb(22 163 74)) h s calc(l - 10))}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary{display:flex;align-items:flex-start;flex-direction:column}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary>:not(:first-child){margin-top:2px}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary button{display:flex;align-items:center}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary button svg{margin-left:4px;margin-top:4px;height:16px;width:16px;transition:transform .2s ease-in-out;transform:rotate(0)}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary button svg[data-open]{transform:rotate(180deg)}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:product-cart-item-total{flex:none;text-align:right;font-weight:500;font-size:16px;line-height:21px}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:product-cart-item-total>span{display:block;font-size:14px;line-height:20px;opacity:.75}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:product-cart-item-total>span.moonbase\\:discount{text-decoration:line-through}#moonbase .moonbase\\:bundle-cart-item-product-list{overflow:hidden;padding-left:24px;transition-property:height;transition-duration:.3s;transition-timing-function:ease-in-out}#moonbase .moonbase\\:bundle-cart-item-product-list>:not(:first-child){border-top-width:1px;border-color:#0000001a}#moonbase .moonbase\\:bundle-cart-item-product-list>div{display:flex;align-items:center;padding:8px 0}#moonbase .moonbase\\:bundle-cart-item-product-list>div>:not(:first-child){margin-left:16px}#moonbase .moonbase\\:bundle-cart-item-product-list>div>img{height:64px;width:64px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:bundle-cart-item-product-list>div>.moonbase\\:image-placeholder{height:64px;width:64px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}#moonbase .moonbase\\:bundle-cart-item-product-list>div>div{display:flex;flex:auto;flex-direction:column;align-items:flex-start}#moonbase .moonbase\\:bundle-cart-item-product-list>div>div>:not(:first-child){margin-top:4px}#moonbase .moonbase\\:bundle-cart-item-product-list>div>div h3{display:flex;align-items:center}#moonbase .moonbase\\:bundle-cart-item-product-list>div>div h3:not([data-included]){text-decoration:line-through;opacity:.75}#moonbase .moonbase\\:bundle-cart-item-product-list>div>div h3 svg{margin-right:4px;height:16px;width:16px}#moonbase .moonbase\\:cart-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;overflow-y:auto}#moonbase .moonbase\\:cart-modal[data-contain]{position:absolute}#moonbase .moonbase\\:cart-modal-container{display:flex;height:100svh;align-items:flex-end;justify-content:center;padding:16px 16px 90px}#moonbase .moonbase\\:cart-modal-container[data-contain]{height:100%}@media (min-width: 640px){#moonbase .moonbase\\:cart-modal-container{display:block;padding:0}}#moonbase .moonbase\\:cart-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;transition-property:opacity;opacity:0}#moonbase .moonbase\\:cart-modal-overlay[data-contain]{position:absolute}#moonbase .moonbase\\:cart-modal-overlay[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}#moonbase .moonbase\\:cart-modal-overlay[data-transition~=entered],#moonbase .moonbase\\:cart-modal-overlay[data-transition~=enter-to],#moonbase .moonbase\\:cart-modal-overlay[data-transition~=leave-from]{opacity:1}#moonbase .moonbase\\:cart-modal-overlay[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.2s}#moonbase .moonbase\\:cart-modal-content{position:fixed;top:0;right:0;bottom:0;display:inline-block;color:var(--moonbase-modal-text-color, var(--moonbase-text-color));background-color:var(--moonbase-modal-background-color, var(--moonbase-background-color));box-shadow:var(--moonbase-modal-shadow-color) 0 8px 32px 0;transition-property:opacity transform;opacity:0;transform:translateY(16px)}#moonbase .moonbase\\:cart-modal-content[data-contain]{position:absolute}@media (min-width: 640px){#moonbase .moonbase\\:cart-modal-content{transform:translate(48px)}}#moonbase .moonbase\\:cart-modal-content[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}#moonbase .moonbase\\:cart-modal-content[data-transition~=entered],#moonbase .moonbase\\:cart-modal-content[data-transition~=enter-to]{opacity:1;transform:translateY(0)}@media (min-width: 640px){#moonbase .moonbase\\:cart-modal-content[data-transition~=entered],#moonbase .moonbase\\:cart-modal-content[data-transition~=enter-to]{transform:translate(0)}}#moonbase .moonbase\\:cart-modal-content[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.2s}#moonbase .moonbase\\:cart-modal-content[data-transition~=leave-from]{opacity:1;transform:translateY(0)}@media (min-width: 640px){#moonbase .moonbase\\:cart-modal-content[data-transition~=leave-from]{transform:translate(0)}}#moonbase .moonbase\\:button{position:relative;display:flex;justify-content:center;overflow:hidden;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:ease-in-out;transition-duration:.2s;box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}#moonbase .moonbase\\:button[data-variant=secondary]{--moonbase-button-background-color: rgb(107 114 128);--moonbase-button-text-color: white}#moonbase .moonbase\\:button,#moonbase .moonbase\\:button:hover,#moonbase .moonbase\\:button:focus,#moonbase .moonbase\\:button:active{font-size:14px;font-weight:500;line-height:20px;border-radius:var(--moonbase-button-border-radius, var(--moonbase-border-radius));border-width:1px;border-color:transparent;border-style:solid;color:var(--moonbase-button-text-color);background-color:var(--moonbase-button-background-color, var(--moonbase-primary-color));padding:var(--moonbase-button-padding);height:unset;width:unset}#moonbase .moonbase\\:button:hover{background-color:hsl(from var(--moonbase-button-background-color, var(--moonbase-primary-color)) h s calc(l - 5))}#moonbase .moonbase\\:button:focus{transition-duration:.1s;outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0 0 2px,var(--moonbase-button-background-color, var(--moonbase-primary-color)) 0 0 0 4px,0 1px 2px 0 var(--moonbase-button-shadow-color)}#moonbase .moonbase\\:button[data-success]{background-color:var(--moonbase-button-success-color)}#moonbase .moonbase\\:button[data-error]{background-color:var(--moonbase-button-error-color)}#moonbase .moonbase\\:button div{margin-left:-12px;margin-right:12px;height:20px;width:0px;opacity:0;transition-property:opacity,width;transition-duration:.2s;transition-timing-function:ease-in-out}#moonbase .moonbase\\:button div[data-visible]{width:20px;opacity:1}#moonbase .moonbase\\:button div svg{height:20px;width:20px}#moonbase .moonbase\\:cart{display:inline-block;color:var(--moonbase-text-color, black);padding:32px}@media (min-width: 640px){#moonbase .moonbase\\:cart{width:100vw;max-width:416px}}#moonbase .moonbase\\:cart>h3{font-size:18px;line-height:24px;font-weight:500;text-align:center;margin-bottom:24px}#moonbase .moonbase\\:cart>.moonbase\\:cart-items{font-size:14px;line-height:20px;font-weight:500}#moonbase .moonbase\\:cart>.moonbase\\:cart-items>:not(:first-child){border-top-width:1px;border-color:#00000026}#moonbase .moonbase\\:cart>.moonbase\\:cart-items>li{padding:24px 0}#moonbase .moonbase\\:cart>.moonbase\\:cart-items>li>:not(:first-child){margin-left:16px}#moonbase .moonbase\\:cart>.moonbase\\:cart-empty{padding:32px 0;font-size:18px;line-height:22px;font-weight:500}#moonbase .moonbase\\:cart>.moonbase\\:cart-total{width:100%;margin-top:16px;padding:8px;border-radius:4px;background:#0000001a;display:grid;grid-template-columns:repeat(2,1fr);justify-content:space-between}#moonbase .moonbase\\:cart>.moonbase\\:cart-total>label{font-weight:500}#moonbase .moonbase\\:cart>.moonbase\\:cart-total>span{font-weight:600;text-align:right}#moonbase .moonbase\\:cart>.moonbase\\:cart-total>p{grid-column:-1 / 1;padding-top:8px;text-align:center}#moonbase .moonbase\\:cart>button{--moonbase-button-padding: 12px 32px;margin:32px auto 16px;min-width:164px}#moonbase .moonbase\\:account{padding-bottom:32px}#moonbase .moonbase\\:account>*:not(:last-child){margin-bottom:16px}#moonbase .moonbase\\:account form{margin:auto;max-width:420px}#moonbase .moonbase\\:account form>*:not(:first-child){margin-top:8px}#moonbase .moonbase\\:account form .moonbase\\:error{font-size:14px;line-height:20px;font-weight:600;color:var(--moonbase-error-color)}#moonbase .moonbase\\:account form .moonbase\\:notification{font-size:14px;line-height:20px;font-weight:600}#moonbase .moonbase\\:account>button{margin:32px auto 0}#moonbase .moonbase\\:product-downloads{display:flex;border-radius:var(--moonbase-border-radius);box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}#moonbase .moonbase\\:product-downloads button{position:relative;display:inline-flex;align-items:center;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:ease-in-out;transition-duration:.2s;box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}#moonbase .moonbase\\:product-downloads button,#moonbase .moonbase\\:product-downloads button:hover,#moonbase .moonbase\\:product-downloads button:focus,#moonbase .moonbase\\:product-downloads button:active{font-size:14px;font-weight:500;line-height:20px;border-radius:0;border-width:1px;border-color:transparent;border-style:solid;color:var(--moonbase-button-text-color);background-color:var(--moonbase-button-background-color, var(--moonbase-primary-color));margin:0 -1px;padding:8px;height:unset;width:unset}#moonbase .moonbase\\:product-downloads button:hover{background-color:hsl(from var(--moonbase-button-background-color, var(--moonbase-primary-color)) h s calc(l - 5))}#moonbase .moonbase\\:product-downloads button:focus{transition-duration:.1s;outline:2px solid transparent;outline-offset:2px;box-shadow:inset #fff 0 0 0 2px,inset var(--moonbase-button-background-color, var(--moonbase-primary-color)) 0 0 0 4px,0 1px 2px 0 var(--moonbase-button-shadow-color)}#moonbase .moonbase\\:product-downloads>button{border-radius:0}#moonbase .moonbase\\:product-downloads>button:first-child{border-top-left-radius:var(--moonbase-border-radius);border-bottom-left-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-downloads>button[data-last]{border-top-right-radius:var(--moonbase-border-radius);border-bottom-right-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group{position:relative;margin:0 -1px;display:block}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group:first-child>button{border-top-left-radius:var(--moonbase-border-radius);border-bottom-left-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group[data-last]>button{border-top-right-radius:var(--moonbase-border-radius);border-bottom-right-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group button>:last-child{margin-left:8px}#moonbase .moonbase\\:product-downloads svg{height:20px;width:20px;color:#fff}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list{position:absolute;display:flex;flex-direction:column;right:0;margin-right:-4px;margin-top:8px;max-width:256px;transform-origin:top right;background-color:var(--moonbase-background-color);box-shadow:#0000001a 0 10px 15px -3px,#0000001a 0 4px 6px -4px,#00000040 0 0 0 1px;z-index:999999;border-radius:var(--moonbase-border-radius);overflow:hidden}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list:focus{outline:none}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button{border-radius:0}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button>span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;display:block;margin:0!important}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:first-child{border-top-right-radius:var(--moonbase-border-radius);border-top-left-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:last-child{border-bottom-right-radius:var(--moonbase-border-radius);border-bottom-left-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button,#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:hover,#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:focus,#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:active{color:var(--moonbase-text-color);background-color:transparent;margin:0;padding:8px;height:unset;width:unset}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:hover,#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:focus,#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button[data-active]{background-color:hsl(from var(--moonbase-background-color) h s calc(l - 5))}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:focus,#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button[data-active]{box-shadow:none}#moonbase .moonbase\\:product-activations{position:absolute;right:8px;margin-top:8px;transform-origin:top right;background-color:var(--moonbase-background-color);box-shadow:#0000001a 0 10px 15px -3px,#0000001a 0 4px 6px -4px,#00000040 0 0 0 1px;z-index:999999;border-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-activations>thead{border-bottom:1px solid rgb(from var(--moonbase-text-color) r g b / .25)}#moonbase .moonbase\\:product-activations>thead>tr>th{white-space:nowrap;font-size:14px;font-weight:600;line-height:20px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10))}#moonbase .moonbase\\:product-activations>thead>tr>th:first-child{width:100%;padding:8px 12px 8px 16px;border-top-left-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-activations>thead>tr>th:not(:first-child,:last-child){text-align:center;padding:8px 12px}#moonbase .moonbase\\:product-activations>thead>tr>th:last-child{text-align:right;padding:8px 16px 8px 12px;border-top-right-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-activations>tbody>:not(:first-child){border-top-width:1px;border-color:#0000001a}#moonbase .moonbase\\:product-activations>tbody>tr>td{white-space:nowrap;text-overflow:ellipsis;position:relative;font-size:14px;font-weight:600;line-height:20px}#moonbase .moonbase\\:product-activations>tbody>tr>td:first-child{width:100%;padding:8px 12px 8px 16px;border-top-left-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>svg{height:16px;width:16px;display:inline;margin-right:8px}#moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div{display:flex;align-items:center}#moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}#moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div>span{margin-left:8px;font-size:14px;font-weight:500;line-height:20px}#moonbase .moonbase\\:product-activations>tbody>tr>td:not(:first-child,:last-child){text-align:center;padding:14px 12px}#moonbase .moonbase\\:product-activations>tbody>tr>td:last-child{text-align:right;padding:14px 16px 14px 12px;border-top-right-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-activations>tbody>tr>td:last-child>div{display:flex;align-items:center;justify-content:flex-end}#moonbase .moonbase\\:product-activations>tbody>tr>td:last-child>div>:not(:first-child){margin-left:8px}#moonbase .moonbase\\:product-activations>tbody>tr>td>button{margin:auto}#moonbase .moonbase\\:product-activations>tbody>tr>td>button,#moonbase .moonbase\\:product-activations>tbody>tr>td>button:hover,#moonbase .moonbase\\:product-activations>tbody>tr>td>button:focus,#moonbase .moonbase\\:product-activations>tbody>tr>td>button:active{width:100%}#moonbase .moonbase\\:products{min-width:calc(100% + 128px);margin:0 -64px}#moonbase .moonbase\\:products>thead{border-bottom:1px solid rgb(from var(--moonbase-text-color) r g b / .25)}#moonbase .moonbase\\:products>thead>tr>th{white-space:nowrap;font-size:14px;font-weight:600;line-height:20px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10))}#moonbase .moonbase\\:products>thead>tr>th:last-child{text-align:right;padding:14px 16px 14px 12px}#moonbase .moonbase\\:products>thead>tr>th:first-child{text-align:left;width:100%;padding:14px 12px 14px 16px}#moonbase .moonbase\\:products>thead>tr>th:not(:first-child,:last-child){text-align:center;padding:14px 12px}#moonbase .moonbase\\:products>tbody>:not(:first-child){border-top-width:1px;border-color:#0000001a}#moonbase .moonbase\\:products>tbody>tr>td{white-space:nowrap;text-overflow:ellipsis;position:relative}#moonbase .moonbase\\:products>tbody>tr>td:first-child{width:100%;padding:14px 12px 14px 16px}#moonbase .moonbase\\:products>tbody>tr>td:first-child>svg{height:16px;width:16px;display:inline;margin-right:8px}#moonbase .moonbase\\:products>tbody>tr>td:first-child>div{display:flex;align-items:center}#moonbase .moonbase\\:products>tbody>tr>td:first-child>div>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:products>tbody>tr>td:first-child>div>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}#moonbase .moonbase\\:products>tbody>tr>td:first-child>div>span{margin-left:8px;font-size:14px;font-weight:500;line-height:20px}#moonbase .moonbase\\:products>tbody>tr>td:not(:first-child,:last-child){text-align:center;padding:14px 12px}#moonbase .moonbase\\:products>tbody>tr>td:last-child{text-align:right;padding:14px 16px 14px 12px}#moonbase .moonbase\\:products>tbody>tr>td:last-child>div{display:flex;align-items:center;justify-content:flex-end}#moonbase .moonbase\\:products>tbody>tr>td:last-child>div>:not(:first-child){margin-left:8px}#moonbase .moonbase\\:products>tbody>tr>td>button{margin:auto}#moonbase .moonbase\\:products>tbody>tr>td>button,#moonbase .moonbase\\:products>tbody>tr>td>button:hover,#moonbase .moonbase\\:products>tbody>tr>td>button:focus,#moonbase .moonbase\\:products>tbody>tr>td>button:active{width:100%}#moonbase .moonbase\\:redeem>form{display:flex;flex-direction:column;max-width:240px;margin:64px auto 32px}#moonbase .moonbase\\:redeem>form>*:not(:first-child){margin-top:16px}#moonbase .moonbase\\:redeem>form>button{margin:auto}#moonbase .moonbase\\:redeem>form .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}#moonbase .moonbase\\:redeem>form .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher{max-width:320px;margin:16px auto;padding:16px;box-shadow:0 0 0 2px var(--moonbase-button-shadow-color);border-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-products>*:not(:first-child){border-top:1px solid rgb(from var(--moonbase-text-color) r g b / .3)}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product,#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle{display:flex;align-items:center;padding:8px 0}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>*:not(:first-child),#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>*:not(:first-child){margin-left:12px}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:first-child,#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:first-child{flex-shrink:0}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:first-child>img,#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:first-child>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:first-child>.moonbase\\:image-placeholder,#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:first-child>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:last-child,#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:last-child{flex:1;min-width:0}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:last-child>:first-child,#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:last-child>:first-child{font-size:14px;font-weight:500;line-height:20px}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:last-child>:last-child,#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:last-child>:last-child{font-size:14px;line-height:20px;text-overflow:ellipsis}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle-products{padding-left:32px}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle-products>*:not(:first-child){border-top:1px solid rgb(from var(--moonbase-text-color) r g b / .3)}#moonbase .moonbase\\:customer{display:inline-block;color:var(--moonbase-text-color);padding:32px 64px 16px}@media (min-width: 640px){#moonbase .moonbase\\:customer{width:100vw;max-width:512px}}#moonbase .moonbase\\:customer>[role=tablist]{margin:0 -32px 16px;padding:0 32px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(from var(--moonbase-button-background-color, var(--moonbase-primary-color)) r g b / .25);display:flex}#moonbase .moonbase\\:customer>[role=tablist]>[role=tab]{margin-bottom:-1px;width:33%;padding:8px 4px;text-align:center;font-size:14px;font-weight:500;line-height:20px;border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:transparent;color:hsl(from var(--moonbase-text-color) h s calc(l + 15));transition-property:border-bottom-color,color;transition-duration:.25s;transition-timing-function:ease-out}#moonbase .moonbase\\:customer>[role=tablist]>[role=tab]:hover{color:hsl(from var(--moonbase-text-color) h s calc(l + 5));border-bottom-color:hsl(from var(--moonbase-text-color) h s calc(l + 15))}#moonbase .moonbase\\:customer>[role=tablist]>[role=tab][aria-selected=true]{color:hsl(from var(--moonbase-primary-color) h s calc(l - 15));border-bottom-color:hsl(from var(--moonbase-primary-color) h s calc(l - 10))}#moonbase .moonbase\\:auto-activate .moonbase\\:loader{display:flex;align-items:center;flex-direction:column;padding:36px 16px;text-align:center}#moonbase .moonbase\\:auto-activate .moonbase\\:loader svg{height:24px;width:24px}#moonbase .moonbase\\:auto-activate .moonbase\\:loader h3{color:var(--moonbase-text-color);font-size:18px;font-weight:500;line-height:24px}#moonbase .moonbase\\:auto-activate .moonbase\\:loader p{margin-top:4px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10));font-size:14px;font-weight:500;line-height:18px}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product{display:flex;align-items:center}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product div{margin-left:8px}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product div h2{color:var(--moonbase-text-color);font-size:16px;font-weight:500;line-height:20px}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product div h3{margin-top:2px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10));font-size:14px;font-weight:500;line-height:18px}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content{margin-top:16px;text-align:center;color:hsl(from var(--moonbase-text-color) h s calc(l + 10));font-size:16px;font-weight:500;line-height:20px}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content .moonbase\\:auto-activate-cta{margin:16px auto 0;display:flex;justify-content:center;text-align:center}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content .moonbase\\:auto-activate-cta>:not(:first-child){margin-left:8px}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content .moonbase\\:auto-activate-trial{margin-top:16px;padding-top:16px;border-top-width:1px;border-color:rgb(from var(--moonbase-text-color) r g b / .2);border-style:solid}#moonbase .moonbase\\:activation{display:inline-block;color:var(--moonbase-text-color, black);padding:32px 64px}@media (min-width: 640px){#moonbase .moonbase\\:activation{width:100vw;max-width:416px}}#moonbase .moonbase\\:activation>h3{font-size:18px;line-height:24px;font-weight:500;text-align:center;margin-bottom:24px}#moonbase .moonbase\\:download-product .moonbase\\:loader{display:flex;align-items:center;flex-direction:column;padding:36px 16px;text-align:center}#moonbase .moonbase\\:download-product .moonbase\\:loader svg{height:24px;width:24px}#moonbase .moonbase\\:download-product .moonbase\\:loader h3{color:var(--moonbase-text-color);font-size:18px;font-weight:500;line-height:24px}#moonbase .moonbase\\:download-product .moonbase\\:loader p{margin-top:4px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10));font-size:14px;font-weight:500;line-height:18px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product{display:flex;align-items:center}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product div{margin-left:8px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product div h2{color:var(--moonbase-text-color);font-size:16px;font-weight:500;line-height:20px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product div h2 span{opacity:.75;font-size:14px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product div h3{margin-top:2px;color:hsl(from var(--moonbase-text-color) h s calc(l + 10));font-size:14px;font-weight:500;line-height:18px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product div:last-of-type{flex-grow:1}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product>button{padding:8px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product>button>svg{height:16px;width:16px;display:block;margin:auto;color:var(--moonbase-text-color);transition:transform .25s ease-in-out;transform:rotate(90deg)}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product>button>span{display:block;font-size:12px;font-weight:500;line-height:14px;color:hsl(from var(--moonbase-text-color) h calc(s - 25) calc(l + 25))}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product>button[data-open]>svg{transform:rotate(90deg) rotateY(180deg)}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content{margin-top:16px;text-align:left;color:hsl(from var(--moonbase-text-color) h calc(s - 25) calc(l + 10));font-size:16px;font-weight:500;line-height:20px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content>:not(:last-child){margin-bottom:16px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-cta{margin:16px auto 0;display:flex;justify-content:center;text-align:center}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-cta>:not(:first-child){margin-left:8px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul{border-radius:6px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul>:not(:first-child){border-top:1px solid rgb(from var(--moonbase-text-color) r g b / .25)}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li{position:relative;display:flex;justify-content:space-between;transition:background-color .25s ease-in-out;padding:12px 16px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li:hover{background-color:#0000001a}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li:first-child{border-top-left-radius:6px;border-top-right-radius:6px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>:not(:first-child){margin-left:20px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child{min-width:0}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child .moonbase\\:download-product-download-name{font-weight:600;line-height:24px;font-size:14px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child .moonbase\\:download-product-download-description{display:flex;align-items:center;line-height:24px;font-size:14px;color:hsl(from var(--moonbase-text-color) h calc(s - 25) calc(l + 20))}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child .moonbase\\:download-product-download-description svg{height:16px;width:16px;margin-right:6px;color:hsl(from var(--moonbase-text-color) h calc(s - 25) calc(l + 20))}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child .moonbase\\:download-product-download-description span{opacity:.5;margin:0 6px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:last-child{display:flex;align-items:center;flex-shrink:0}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:last-child svg{flex:none;height:20px;width:20px;color:hsl(from var(--moonbase-text-color) h calc(s - 25) calc(l + 20))}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-release-description{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s ease-in-out}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-release-description>div{min-height:0;overflow:hidden;visibility:hidden;transition:visibility .5s ease-in-out}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-release-description[data-open]{grid-template-rows:1fr}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-release-description[data-open]>div{visibility:visible}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-release-description h3{color:hsl(from var(--moonbase-text-color) h s calc(l + 10));font-size:14px;font-weight:600;line-height:18px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-release-description p{margin-top:4px;font-size:14px;line-height:18px;padding:4px;border:1px rgb(from var(--moonbase-text-color) r g b / .25) solid;border-radius:var(--moonbase-border-radius);white-space:pre-line;max-height:128px;overflow-y:auto}#moonbase .moonbase\\:download-product .moonbase\\:download-product-clicker{position:absolute;top:0;right:0;left:0;padding:-1px 0;bottom:0}#moonbase .moonbase\\:download{display:inline-block;color:var(--moonbase-text-color, black);padding:32px 64px}@media (min-width: 640px){#moonbase .moonbase\\:download{width:100vw;max-width:440px}}#moonbase .moonbase\\:download>h3{font-size:18px;line-height:24px;font-weight:500;text-align:center;margin-bottom:24px}#moonbase,#moonbase *:not(svg,path),#moonbase :before,#moonbase :after{all:revert;box-sizing:border-box;border-width:0;border-style:solid}#moonbase *:not(svg,path){margin:0;padding:0;font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}:root{--moonbase-text-color: rgb(17 24 39);--moonbase-primary-color: rgb(79 70 229);--moonbase-error-color: rgb(167, 33, 33);--moonbase-background-color: white;--moonbase-border-radius: 6px;--moonbase-button-padding: 8px 32px;--moonbase-button-text-color: rgb(255 255 255);--moonbase-button-shadow-color: rgb(0 0 0 / .05);--moonbase-button-success-color: rgb(22 163 74);--moonbase-button-error-color: rgb(167, 33, 33);--moonbase-input-padding: 8px 12px;--moonbase-input-shadow-color: rgb(0 0 0 / .05);--moonbase-input-error-color: rgb(167, 33, 33);--moonbase-input-background-color: transparent;--moonbase-modal-padding: 8px 32px;--moonbase-modal-background-color: rgb(255 255 255);--moonbase-modal-shadow-color: rgb(0 0 0 / .05)}#moonbase .moonbase\\:scale-enter-active{transition-property:transform,opacity;transition-timing-function:ease-out;transition-duration:.2s}#moonbase .moonbase\\:scale-enter-from{opacity:0;transform:scale(.95)}#moonbase .moonbase\\:scale-enter-to{opacity:1;transform:scale(1)}#moonbase .moonbase\\:scale-leave-active{transition-property:transform,opacity;transition-timing-function:ease-in;transition-duration:.15s}#moonbase .moonbase\\:scale-leave-from{opacity:1;transform:scale(1)}#moonbase .moonbase\\:scale-leave-to{opacity:0;transform:scale(.95)}#moonbase .moonbase\\:slide-left-enter-active{transition-property:transform,opacity;transition-timing-function:ease-out;transition-duration:.2s}#moonbase .moonbase\\:slide-left-enter-from{opacity:0;transform:translate(16px)}#moonbase .moonbase\\:slide-left-enter-to{opacity:1;transform:translate(0)}#moonbase .moonbase\\:slide-left-leave-active{transition-property:transform,opacity;transition-timing-function:ease-in;transition-duration:.15s}#moonbase .moonbase\\:slide-left-leave-from{opacity:1;transform:translate(0)}#moonbase .moonbase\\:slide-left-leave-to{opacity:0;transform:translate(-16px)}#moonbase .moonbase\\:sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}#moonbase a{color:inherit;text-decoration:inherit}#moonbase input,#moonbase button,#moonbase textarea,#moonbase select{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;background:none;font-size:100%;line-height:1.15;margin:0;padding:0;color:inherit}#moonbase button,#moonbase select{text-transform:none}#moonbase button,#moonbase [role=button]{cursor:pointer}#moonbase button,#moonbase [type=button],#moonbase [type=reset],#moonbase [type=submit]{-webkit-appearance:button}#moonbase h1,#moonbase h2,#moonbase h3,#moonbase h4,#moonbase h5,#moonbase h6{font-size:inherit;font-weight:inherit}#moonbase b,#moonbase strong{font-weight:bolder}#moonbase svg,.moonbase svg *{color:inherit}#moonbase table{text-indent:0;border-color:inherit;border-collapse:collapse}#moonbase img,#moonbase svg,#moonbase video,#moonbase canvas,#moonbase audio,#moonbase iframe,#moonbase embed,#moonbase object{display:block;vertical-align:middle}#moonbase ol,#moonbase ul,#moonbase menu{list-style:none;margin:0;padding:0}#moonbase img,#moonbase video{max-width:100%;height:auto}#moonbase :disabled{cursor:default}#moonbase [hidden]{display:none}#moonbase ::-moz-focus-inner{border-style:none;padding:0}#moonbase :-moz-focusring{outline:none}#moonbase :-moz-ui-invalid{box-shadow:none}')),document.head.appendChild(o)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- (function(kt,_e){typeof exports=="object"&&typeof module<"u"?_e(exports):typeof define=="function"&&define.amd?define(["exports"],_e):(kt=typeof globalThis<"u"?globalThis:kt||self,_e(kt.Moonbase={}))})(this,function(kt){"use strict";var Pw=Object.defineProperty;var $w=(kt,_e,Tn)=>_e in kt?Pw(kt,_e,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):kt[_e]=Tn;var Tr=(kt,_e,Tn)=>$w(kt,typeof _e!="symbol"?_e+"":_e,Tn);var _e;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const s={};for(const i of o)s[i]=i;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(const a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(const i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(_e||(_e={}));var Tn;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Tn||(Tn={}));const se=_e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Pn=e=>{switch(typeof e){case"undefined":return se.undefined;case"string":return se.string;case"number":return isNaN(e)?se.nan:se.number;case"boolean":return se.boolean;case"function":return se.function;case"bigint":return se.bigint;case"symbol":return se.symbol;case"object":return Array.isArray(e)?se.array:e===null?se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?se.promise:typeof Map<"u"&&e instanceof Map?se.map:typeof Set<"u"&&e instanceof Set?se.set:typeof Date<"u"&&e instanceof Date?se.date:se.object;default:return se.unknown}},q=_e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),If=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ct extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,l=0;for(;l<i.path.length;){const u=i.path[l];l===i.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(i))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return o(this),r}static assert(t){if(!(t instanceof Ct))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,_e.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Ct.create=e=>new Ct(e);const Pr=(e,t)=>{let n;switch(e.code){case q.invalid_type:e.received===se.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case q.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,_e.jsonStringifyReplacer)}`;break;case q.unrecognized_keys:n=`Unrecognized key(s) in object: ${_e.joinValues(e.keys,", ")}`;break;case q.invalid_union:n="Invalid input";break;case q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${_e.joinValues(e.options)}`;break;case q.invalid_enum_value:n=`Invalid enum value. Expected ${_e.joinValues(e.options)}, received '${e.received}'`;break;case q.invalid_arguments:n="Invalid function arguments";break;case q.invalid_return_type:n="Invalid function return type";break;case q.invalid_date:n="Invalid date";break;case q.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:_e.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case q.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case q.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case q.custom:n="Invalid input";break;case q.invalid_intersection_types:n="Intersection results could not be merged";break;case q.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case q.not_finite:n="Number must be finite";break;default:n=t.defaultError,_e.assertNever(e)}return{message:n}};let ml=Pr;function Af(e){ml=e}function os(){return ml}const ss=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,s=[...n,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}},Vf=[];function oe(e,t){const n=os(),r=ss({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Pr?void 0:Pr].filter(o=>!!o)});e.common.issues.push(r)}class ut{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return ye;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const s=await o.key,i=await o.value;r.push({key:s,value:i})}return ut.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return ye;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(r[s.value]=i.value)}return{status:t.value,value:r}}}const ye=Object.freeze({status:"aborted"}),$r=e=>({status:"dirty",value:e}),gt=e=>({status:"valid",value:e}),Ei=e=>e.status==="aborted",Oi=e=>e.status==="dirty",Xr=e=>e.status==="valid",Qr=e=>typeof Promise<"u"&&e instanceof Promise;function is(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function vl(e,t,n,r,o){if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}typeof SuppressedError=="function"&&SuppressedError;var le;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(le||(le={}));var eo,to;class Jt{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const gl=(e,t)=>{if(Xr(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Ct(e.common.issues);return this._error=n,this._error}}};function Oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(i,a)=>{var l,u;const{message:c}=e;return i.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:(l=c??r)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(u=c??n)!==null&&u!==void 0?u:a.defaultError}},description:o}}class xe{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Pn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Pn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ut,ctx:{common:t.parent.common,data:t.data,parsedType:Pn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Qr(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Pn(t)},s=this._parseSync({data:t,path:o.path,parent:o});return gl(o,s)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Pn(t)},o=this._parse({data:t,path:r.path,parent:r}),s=await(Qr(o)?o:Promise.resolve(o));return gl(r,s)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:q.custom,...r(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new Bt({schema:this,typeName:me.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Xt.create(this,this._def)}nullable(){return An.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ft.create(this,this._def)}promise(){return Vr.create(this,this._def)}or(t){return so.create([this,t],this._def)}and(t){return io.create(this,t,this._def)}transform(t){return new Bt({...Oe(this._def),schema:this,typeName:me.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new fo({...Oe(this._def),innerType:this,defaultValue:n,typeName:me.ZodDefault})}brand(){return new Si({typeName:me.ZodBranded,type:this,...Oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new po({...Oe(this._def),innerType:this,catchValue:n,typeName:me.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ho.create(this,t)}readonly(){return mo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Rf=/^c[^\s-]{8,}$/i,jf=/^[0-9a-z]+$/,Mf=/^[0-9A-HJKMNP-TV-Z]{26}$/,Lf=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Uf=/^[a-z0-9_-]{21}$/i,Ff=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Bf=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Hf="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ni;const Zf=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,qf=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Wf=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,yl="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",zf=new RegExp(`^${yl}$`);function bl(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function Kf(e){return new RegExp(`^${bl(e)}$`)}function _l(e){let t=`${yl}T${bl(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Gf(e,t){return!!((t==="v4"||!t)&&Zf.test(e)||(t==="v6"||!t)&&qf.test(e))}class Ut extends xe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==se.string){const s=this._getOrReturnCtx(t);return oe(s,{code:q.invalid_type,expected:se.string,received:s.parsedType}),ye}const r=new ut;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(o=this._getOrReturnCtx(t,o),oe(o,{code:q.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")t.data.length>s.value&&(o=this._getOrReturnCtx(t,o),oe(o,{code:q.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.length<s.value;(i||a)&&(o=this._getOrReturnCtx(t,o),i?oe(o,{code:q.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&oe(o,{code:q.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")Bf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"email",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")Ni||(Ni=new RegExp(Hf,"u")),Ni.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"emoji",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")Lf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"uuid",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")Uf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"nanoid",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")Rf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"cuid",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")jf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"cuid2",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")Mf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"ulid",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),oe(o,{validation:"url",code:q.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"regex",code:q.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(t,o),oe(o,{code:q.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(o=this._getOrReturnCtx(t,o),oe(o,{code:q.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(o=this._getOrReturnCtx(t,o),oe(o,{code:q.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?_l(s).test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{code:q.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?zf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{code:q.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?Kf(s).test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{code:q.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?Ff.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"duration",code:q.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?Gf(t.data,s.version)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"ip",code:q.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?Wf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"base64",code:q.invalid_string,message:s.message}),r.dirty()):_e.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:q.invalid_string,...le.errToObj(r)})}_addCheck(t){return new Ut({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...le.errToObj(t)})}url(t){return this._addCheck({kind:"url",...le.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...le.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...le.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...le.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...le.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...le.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...le.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...le.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...le.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...le.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...le.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...le.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...le.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...le.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...le.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...le.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...le.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...le.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...le.errToObj(n)})}nonempty(t){return this.min(1,le.errToObj(t))}trim(){return new Ut({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ut({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ut({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ut.create=e=>{var t;return new Ut({checks:[],typeName:me.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Oe(e)})};function Jf(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,s=parseInt(e.toFixed(o).replace(".","")),i=parseInt(t.toFixed(o).replace(".",""));return s%i/Math.pow(10,o)}class $n extends xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==se.number){const s=this._getOrReturnCtx(t);return oe(s,{code:q.invalid_type,expected:se.number,received:s.parsedType}),ye}let r;const o=new ut;for(const s of this._def.checks)s.kind==="int"?_e.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),oe(r,{code:q.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:q.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:q.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?Jf(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),oe(r,{code:q.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),oe(r,{code:q.not_finite,message:s.message}),o.dirty()):_e.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,le.toString(n))}setLimit(t,n,r,o){return new $n({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:le.toString(o)}]})}_addCheck(t){return new $n({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:le.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:le.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:le.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:le.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:le.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&_e.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}$n.create=e=>new $n({checks:[],typeName:me.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class Dn extends xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==se.bigint){const s=this._getOrReturnCtx(t);return oe(s,{code:q.invalid_type,expected:se.bigint,received:s.parsedType}),ye}let r;const o=new ut;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:q.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:q.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:q.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):_e.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,le.toString(n))}setLimit(t,n,r,o){return new Dn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:le.toString(o)}]})}_addCheck(t){return new Dn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:le.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Dn.create=e=>{var t;return new Dn({checks:[],typeName:me.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Oe(e)})};class no extends xe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==se.boolean){const r=this._getOrReturnCtx(t);return oe(r,{code:q.invalid_type,expected:se.boolean,received:r.parsedType}),ye}return gt(t.data)}}no.create=e=>new no({typeName:me.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class rr extends xe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==se.date){const s=this._getOrReturnCtx(t);return oe(s,{code:q.invalid_type,expected:se.date,received:s.parsedType}),ye}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return oe(s,{code:q.invalid_date}),ye}const r=new ut;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(o=this._getOrReturnCtx(t,o),oe(o,{code:q.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(o=this._getOrReturnCtx(t,o),oe(o,{code:q.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):_e.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new rr({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:le.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:le.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}rr.create=e=>new rr({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:me.ZodDate,...Oe(e)});class as extends xe{_parse(t){if(this._getType(t)!==se.symbol){const r=this._getOrReturnCtx(t);return oe(r,{code:q.invalid_type,expected:se.symbol,received:r.parsedType}),ye}return gt(t.data)}}as.create=e=>new as({typeName:me.ZodSymbol,...Oe(e)});class ro extends xe{_parse(t){if(this._getType(t)!==se.undefined){const r=this._getOrReturnCtx(t);return oe(r,{code:q.invalid_type,expected:se.undefined,received:r.parsedType}),ye}return gt(t.data)}}ro.create=e=>new ro({typeName:me.ZodUndefined,...Oe(e)});class oo extends xe{_parse(t){if(this._getType(t)!==se.null){const r=this._getOrReturnCtx(t);return oe(r,{code:q.invalid_type,expected:se.null,received:r.parsedType}),ye}return gt(t.data)}}oo.create=e=>new oo({typeName:me.ZodNull,...Oe(e)});class Dr extends xe{constructor(){super(...arguments),this._any=!0}_parse(t){return gt(t.data)}}Dr.create=e=>new Dr({typeName:me.ZodAny,...Oe(e)});class or extends xe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return gt(t.data)}}or.create=e=>new or({typeName:me.ZodUnknown,...Oe(e)});class pn extends xe{_parse(t){const n=this._getOrReturnCtx(t);return oe(n,{code:q.invalid_type,expected:se.never,received:n.parsedType}),ye}}pn.create=e=>new pn({typeName:me.ZodNever,...Oe(e)});class ls extends xe{_parse(t){if(this._getType(t)!==se.undefined){const r=this._getOrReturnCtx(t);return oe(r,{code:q.invalid_type,expected:se.void,received:r.parsedType}),ye}return gt(t.data)}}ls.create=e=>new ls({typeName:me.ZodVoid,...Oe(e)});class Ft extends xe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==se.array)return oe(n,{code:q.invalid_type,expected:se.array,received:n.parsedType}),ye;if(o.exactLength!==null){const i=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(i||a)&&(oe(n,{code:i?q.too_big:q.too_small,minimum:a?o.exactLength.value:void 0,maximum:i?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(oe(n,{code:q.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(oe(n,{code:q.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>o.type._parseAsync(new Jt(n,i,n.path,a)))).then(i=>ut.mergeArray(r,i));const s=[...n.data].map((i,a)=>o.type._parseSync(new Jt(n,i,n.path,a)));return ut.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new Ft({...this._def,minLength:{value:t,message:le.toString(n)}})}max(t,n){return new Ft({...this._def,maxLength:{value:t,message:le.toString(n)}})}length(t,n){return new Ft({...this._def,exactLength:{value:t,message:le.toString(n)}})}nonempty(t){return this.min(1,t)}}Ft.create=(e,t)=>new Ft({type:e,minLength:null,maxLength:null,exactLength:null,typeName:me.ZodArray,...Oe(t)});function Ir(e){if(e instanceof Ke){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Xt.create(Ir(r))}return new Ke({...e._def,shape:()=>t})}else return e instanceof Ft?new Ft({...e._def,type:Ir(e.element)}):e instanceof Xt?Xt.create(Ir(e.unwrap())):e instanceof An?An.create(Ir(e.unwrap())):e instanceof Yt?Yt.create(e.items.map(t=>Ir(t))):e}class Ke extends xe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=_e.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==se.object){const u=this._getOrReturnCtx(t);return oe(u,{code:q.invalid_type,expected:se.object,received:u.parsedType}),ye}const{status:r,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof pn&&this._def.unknownKeys==="strip"))for(const u in o.data)i.includes(u)||a.push(u);const l=[];for(const u of i){const c=s[u],d=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Jt(o,d,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof pn){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(u==="strict")a.length>0&&(oe(o,{code:q.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of a){const d=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Jt(o,d,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key,f=await c.value;u.push({key:d,value:f,alwaysSet:c.alwaysSet})}return u}).then(u=>ut.mergeObjectSync(r,u)):ut.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return le.errToObj,new Ke({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,s,i,a;const l=(i=(s=(o=this._def).errorMap)===null||s===void 0?void 0:s.call(o,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=le.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Ke({...this._def,unknownKeys:"strip"})}passthrough(){return new Ke({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ke({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ke({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:me.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ke({...this._def,catchall:t})}pick(t){const n={};return _e.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Ke({...this._def,shape:()=>n})}omit(t){const n={};return _e.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Ke({...this._def,shape:()=>n})}deepPartial(){return Ir(this)}partial(t){const n={};return _e.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new Ke({...this._def,shape:()=>n})}required(t){const n={};return _e.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Xt;)s=s._def.innerType;n[r]=s}}),new Ke({...this._def,shape:()=>n})}keyof(){return wl(_e.objectKeys(this.shape))}}Ke.create=(e,t)=>new Ke({shape:()=>e,unknownKeys:"strip",catchall:pn.create(),typeName:me.ZodObject,...Oe(t)}),Ke.strictCreate=(e,t)=>new Ke({shape:()=>e,unknownKeys:"strict",catchall:pn.create(),typeName:me.ZodObject,...Oe(t)}),Ke.lazycreate=(e,t)=>new Ke({shape:e,unknownKeys:"strip",catchall:pn.create(),typeName:me.ZodObject,...Oe(t)});class so extends xe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(s){for(const a of s)if(a.result.status==="valid")return a.result;for(const a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new Ct(a.ctx.common.issues));return oe(n,{code:q.invalid_union,unionErrors:i}),ye}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(l=>new Ct(l));return oe(n,{code:q.invalid_union,unionErrors:a}),ye}}get options(){return this._def.options}}so.create=(e,t)=>new so({options:e,typeName:me.ZodUnion,...Oe(t)});const hn=e=>e instanceof lo?hn(e.schema):e instanceof Bt?hn(e.innerType()):e instanceof uo?[e.value]:e instanceof In?e.options:e instanceof co?_e.objectValues(e.enum):e instanceof fo?hn(e._def.innerType):e instanceof ro?[void 0]:e instanceof oo?[null]:e instanceof Xt?[void 0,...hn(e.unwrap())]:e instanceof An?[null,...hn(e.unwrap())]:e instanceof Si||e instanceof mo?hn(e.unwrap()):e instanceof po?hn(e._def.innerType):[];class us extends xe{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.object)return oe(n,{code:q.invalid_type,expected:se.object,received:n.parsedType}),ye;const r=this.discriminator,o=n.data[r],s=this.optionsMap.get(o);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(oe(n,{code:q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ye)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const s of n){const i=hn(s.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of i){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,s)}}return new us({typeName:me.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Oe(r)})}}function xi(e,t){const n=Pn(e),r=Pn(t);if(e===t)return{valid:!0,data:e};if(n===se.object&&r===se.object){const o=_e.objectKeys(t),s=_e.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(const a of s){const l=xi(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===se.array&&r===se.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s<e.length;s++){const i=e[s],a=t[s],l=xi(i,a);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===se.date&&r===se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class io extends xe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=(s,i)=>{if(Ei(s)||Ei(i))return ye;const a=xi(s.value,i.value);return a.valid?((Oi(s)||Oi(i))&&n.dirty(),{status:n.value,value:a.data}):(oe(r,{code:q.invalid_intersection_types}),ye)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}io.create=(e,t,n)=>new io({left:e,right:t,typeName:me.ZodIntersection,...Oe(n)});class Yt extends xe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.array)return oe(r,{code:q.invalid_type,expected:se.array,received:r.parsedType}),ye;if(r.data.length<this._def.items.length)return oe(r,{code:q.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&r.data.length>this._def.items.length&&(oe(r,{code:q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Jt(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>ut.mergeArray(n,i)):ut.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new Yt({...this._def,rest:t})}}Yt.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Yt({items:e,typeName:me.ZodTuple,rest:null,...Oe(t)})};class ao extends xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.object)return oe(r,{code:q.invalid_type,expected:se.object,received:r.parsedType}),ye;const o=[],s=this._def.keyType,i=this._def.valueType;for(const a in r.data)o.push({key:s._parse(new Jt(r,a,r.path,a)),value:i._parse(new Jt(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?ut.mergeObjectAsync(n,o):ut.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof xe?new ao({keyType:t,valueType:n,typeName:me.ZodRecord,...Oe(r)}):new ao({keyType:Ut.create(),valueType:t,typeName:me.ZodRecord,...Oe(n)})}}class cs extends xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.map)return oe(r,{code:q.invalid_type,expected:se.map,received:r.parsedType}),ye;const o=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([a,l],u)=>({key:o._parse(new Jt(r,a,r.path,[u,"key"])),value:s._parse(new Jt(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return ye;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return ye;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}}cs.create=(e,t,n)=>new cs({valueType:t,keyType:e,typeName:me.ZodMap,...Oe(n)});class sr extends xe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.set)return oe(r,{code:q.invalid_type,expected:se.set,received:r.parsedType}),ye;const o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(oe(r,{code:q.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(oe(r,{code:q.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const s=this._def.valueType;function i(l){const u=new Set;for(const c of l){if(c.status==="aborted")return ye;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>s._parse(new Jt(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new sr({...this._def,minSize:{value:t,message:le.toString(n)}})}max(t,n){return new sr({...this._def,maxSize:{value:t,message:le.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}sr.create=(e,t)=>new sr({valueType:e,minSize:null,maxSize:null,typeName:me.ZodSet,...Oe(t)});class Ar extends xe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.function)return oe(n,{code:q.invalid_type,expected:se.function,received:n.parsedType}),ye;function r(a,l){return ss({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,os(),Pr].filter(u=>!!u),issueData:{code:q.invalid_arguments,argumentsError:l}})}function o(a,l){return ss({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,os(),Pr].filter(u=>!!u),issueData:{code:q.invalid_return_type,returnTypeError:l}})}const s={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof Vr){const a=this;return gt(async function(...l){const u=new Ct([]),c=await a._def.args.parseAsync(l,s).catch(m=>{throw u.addIssue(r(l,m)),u}),d=await Reflect.apply(i,this,c);return await a._def.returns._def.type.parseAsync(d,s).catch(m=>{throw u.addIssue(o(d,m)),u})})}else{const a=this;return gt(function(...l){const u=a._def.args.safeParse(l,s);if(!u.success)throw new Ct([r(l,u.error)]);const c=Reflect.apply(i,this,u.data),d=a._def.returns.safeParse(c,s);if(!d.success)throw new Ct([o(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ar({...this._def,args:Yt.create(t).rest(or.create())})}returns(t){return new Ar({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ar({args:t||Yt.create([]).rest(or.create()),returns:n||or.create(),typeName:me.ZodFunction,...Oe(r)})}}class lo extends xe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}lo.create=(e,t)=>new lo({getter:e,typeName:me.ZodLazy,...Oe(t)});class uo extends xe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return oe(n,{received:n.data,code:q.invalid_literal,expected:this._def.value}),ye}return{status:"valid",value:t.data}}get value(){return this._def.value}}uo.create=(e,t)=>new uo({value:e,typeName:me.ZodLiteral,...Oe(t)});function wl(e,t){return new In({values:e,typeName:me.ZodEnum,...Oe(t)})}class In extends xe{constructor(){super(...arguments),eo.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return oe(n,{expected:_e.joinValues(r),received:n.parsedType,code:q.invalid_type}),ye}if(is(this,eo)||vl(this,eo,new Set(this._def.values)),!is(this,eo).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return oe(n,{received:n.data,code:q.invalid_enum_value,options:r}),ye}return gt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return In.create(t,{...this._def,...n})}exclude(t,n=this._def){return In.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}eo=new WeakMap,In.create=wl;class co extends xe{constructor(){super(...arguments),to.set(this,void 0)}_parse(t){const n=_e.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==se.string&&r.parsedType!==se.number){const o=_e.objectValues(n);return oe(r,{expected:_e.joinValues(o),received:r.parsedType,code:q.invalid_type}),ye}if(is(this,to)||vl(this,to,new Set(_e.getValidEnumValues(this._def.values))),!is(this,to).has(t.data)){const o=_e.objectValues(n);return oe(r,{received:r.data,code:q.invalid_enum_value,options:o}),ye}return gt(t.data)}get enum(){return this._def.values}}to=new WeakMap,co.create=(e,t)=>new co({values:e,typeName:me.ZodNativeEnum,...Oe(t)});class Vr extends xe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.promise&&n.common.async===!1)return oe(n,{code:q.invalid_type,expected:se.promise,received:n.parsedType}),ye;const r=n.parsedType===se.promise?n.data:Promise.resolve(n.data);return gt(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Vr.create=(e,t)=>new Vr({type:e,typeName:me.ZodPromise,...Oe(t)});class Bt extends xe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===me.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{oe(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return ye;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?ye:l.status==="dirty"||n.value==="dirty"?$r(l.value):l});{if(n.value==="aborted")return ye;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?ye:a.status==="dirty"||n.value==="dirty"?$r(a.value):a}}if(o.type==="refinement"){const i=a=>{const l=o.refinement(a,s);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ye:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ye:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Xr(i))return i;const a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>Xr(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:n.value,value:a})):i);_e.assertNever(o)}}Bt.create=(e,t,n)=>new Bt({schema:e,typeName:me.ZodEffects,effect:t,...Oe(n)}),Bt.createWithPreprocess=(e,t,n)=>new Bt({schema:t,effect:{type:"preprocess",transform:e},typeName:me.ZodEffects,...Oe(n)});class Xt extends xe{_parse(t){return this._getType(t)===se.undefined?gt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Xt.create=(e,t)=>new Xt({innerType:e,typeName:me.ZodOptional,...Oe(t)});class An extends xe{_parse(t){return this._getType(t)===se.null?gt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}An.create=(e,t)=>new An({innerType:e,typeName:me.ZodNullable,...Oe(t)});class fo extends xe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===se.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}fo.create=(e,t)=>new fo({innerType:e,typeName:me.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Oe(t)});class po extends xe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Qr(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Ct(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ct(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}po.create=(e,t)=>new po({innerType:e,typeName:me.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Oe(t)});class ds extends xe{_parse(t){if(this._getType(t)!==se.nan){const r=this._getOrReturnCtx(t);return oe(r,{code:q.invalid_type,expected:se.nan,received:r.parsedType}),ye}return{status:"valid",value:t.data}}}ds.create=e=>new ds({typeName:me.ZodNaN,...Oe(e)});const Yf=Symbol("zod_brand");class Si extends xe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class ho extends xe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?ye:s.status==="dirty"?(n.dirty(),$r(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ye:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new ho({in:t,out:n,typeName:me.ZodPipeline})}}class mo extends xe{_parse(t){const n=this._def.innerType._parse(t),r=o=>(Xr(o)&&(o.value=Object.freeze(o.value)),o);return Qr(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}mo.create=(e,t)=>new mo({innerType:e,typeName:me.ZodReadonly,...Oe(t)});function El(e,t={},n){return e?Dr.create().superRefine((r,o)=>{var s,i;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(i=(s=a.fatal)!==null&&s!==void 0?s:n)!==null&&i!==void 0?i:!0,u=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...u,fatal:l})}}):Dr.create()}const Xf={object:Ke.lazycreate};var me;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(me||(me={}));const Qf=(e,t={message:`Input not instance of ${e.name}`})=>El(n=>n instanceof e,t),Ol=Ut.create,Nl=$n.create,ep=ds.create,tp=Dn.create,xl=no.create,np=rr.create,rp=as.create,op=ro.create,sp=oo.create,ip=Dr.create,ap=or.create,lp=pn.create,up=ls.create,cp=Ft.create,dp=Ke.create,fp=Ke.strictCreate,pp=so.create,hp=us.create,mp=io.create,vp=Yt.create,gp=ao.create,yp=cs.create,bp=sr.create,_p=Ar.create,wp=lo.create,Ep=uo.create,Op=In.create,Np=co.create,xp=Vr.create,Sl=Bt.create,Sp=Xt.create,kp=An.create,Cp=Bt.createWithPreprocess,Tp=ho.create;var g=Object.freeze({__proto__:null,defaultErrorMap:Pr,setErrorMap:Af,getErrorMap:os,makeIssue:ss,EMPTY_PATH:Vf,addIssueToContext:oe,ParseStatus:ut,INVALID:ye,DIRTY:$r,OK:gt,isAborted:Ei,isDirty:Oi,isValid:Xr,isAsync:Qr,get util(){return _e},get objectUtil(){return Tn},ZodParsedType:se,getParsedType:Pn,ZodType:xe,datetimeRegex:_l,ZodString:Ut,ZodNumber:$n,ZodBigInt:Dn,ZodBoolean:no,ZodDate:rr,ZodSymbol:as,ZodUndefined:ro,ZodNull:oo,ZodAny:Dr,ZodUnknown:or,ZodNever:pn,ZodVoid:ls,ZodArray:Ft,ZodObject:Ke,ZodUnion:so,ZodDiscriminatedUnion:us,ZodIntersection:io,ZodTuple:Yt,ZodRecord:ao,ZodMap:cs,ZodSet:sr,ZodFunction:Ar,ZodLazy:lo,ZodLiteral:uo,ZodEnum:In,ZodNativeEnum:co,ZodPromise:Vr,ZodEffects:Bt,ZodTransformer:Bt,ZodOptional:Xt,ZodNullable:An,ZodDefault:fo,ZodCatch:po,ZodNaN:ds,BRAND:Yf,ZodBranded:Si,ZodPipeline:ho,ZodReadonly:mo,custom:El,Schema:xe,ZodSchema:xe,late:Xf,get ZodFirstPartyTypeKind(){return me},coerce:{string:e=>Ut.create({...e,coerce:!0}),number:e=>$n.create({...e,coerce:!0}),boolean:e=>no.create({...e,coerce:!0}),bigint:e=>Dn.create({...e,coerce:!0}),date:e=>rr.create({...e,coerce:!0})},any:ip,array:cp,bigint:tp,boolean:xl,date:np,discriminatedUnion:hp,effect:Sl,enum:Op,function:_p,instanceof:Qf,intersection:mp,lazy:wp,literal:Ep,map:yp,nan:ep,nativeEnum:Np,never:lp,null:sp,nullable:kp,number:Nl,object:dp,oboolean:()=>xl().optional(),onumber:()=>Nl().optional(),optional:Sp,ostring:()=>Ol().optional(),pipeline:Tp,preprocess:Cp,promise:xp,record:gp,set:bp,strictObject:fp,string:Ol,symbol:rp,transformer:Sl,tuple:vp,undefined:op,union:pp,unknown:ap,void:up,NEVER:ye,ZodIssueCode:q,quotelessJson:If,ZodError:Ct}),kl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ki={exports:{}};(function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof kl<"u"&&kl,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(i){var a=typeof s<"u"&&s||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function u(h){return h&&DataView.prototype.isPrototypeOf(h)}if(l.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(h){return h&&c.indexOf(Object.prototype.toString.call(h))>-1};function f(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(h)||h==="")throw new TypeError('Invalid character in header field name: "'+h+'"');return h.toLowerCase()}function m(h){return typeof h!="string"&&(h=String(h)),h}function E(h){var V={next:function(){var ee=h.shift();return{done:ee===void 0,value:ee}}};return l.iterable&&(V[Symbol.iterator]=function(){return V}),V}function N(h){this.map={},h instanceof N?h.forEach(function(V,ee){this.append(ee,V)},this):Array.isArray(h)?h.forEach(function(V){this.append(V[0],V[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(V){this.append(V,h[V])},this)}N.prototype.append=function(h,V){h=f(h),V=m(V);var ee=this.map[h];this.map[h]=ee?ee+", "+V:V},N.prototype.delete=function(h){delete this.map[f(h)]},N.prototype.get=function(h){return h=f(h),this.has(h)?this.map[h]:null},N.prototype.has=function(h){return this.map.hasOwnProperty(f(h))},N.prototype.set=function(h,V){this.map[f(h)]=m(V)},N.prototype.forEach=function(h,V){for(var ee in this.map)this.map.hasOwnProperty(ee)&&h.call(V,this.map[ee],ee,this)},N.prototype.keys=function(){var h=[];return this.forEach(function(V,ee){h.push(ee)}),E(h)},N.prototype.values=function(){var h=[];return this.forEach(function(V){h.push(V)}),E(h)},N.prototype.entries=function(){var h=[];return this.forEach(function(V,ee){h.push([ee,V])}),E(h)},l.iterable&&(N.prototype[Symbol.iterator]=N.prototype.entries);function O(h){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}function I(h){return new Promise(function(V,ee){h.onload=function(){V(h.result)},h.onerror=function(){ee(h.error)}})}function j(h){var V=new FileReader,ee=I(V);return V.readAsArrayBuffer(h),ee}function $(h){var V=new FileReader,ee=I(V);return V.readAsText(h),ee}function W(h){for(var V=new Uint8Array(h),ee=new Array(V.length),ie=0;ie<V.length;ie++)ee[ie]=String.fromCharCode(V[ie]);return ee.join("")}function y(h){if(h.slice)return h.slice(0);var V=new Uint8Array(h.byteLength);return V.set(new Uint8Array(h)),V.buffer}function M(){return this.bodyUsed=!1,this._initBody=function(h){this.bodyUsed=this.bodyUsed,this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:l.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:l.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():l.arrayBuffer&&l.blob&&u(h)?(this._bodyArrayBuffer=y(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||d(h))?this._bodyArrayBuffer=y(h):this._bodyText=h=Object.prototype.toString.call(h):this._bodyText="",this.headers.get("content-type")||(typeof h=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var h=O(this);if(h)return h;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var h=O(this);return h||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(j)}),this.text=function(){var h=O(this);if(h)return h;if(this._bodyBlob)return $(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(W(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(A)}),this.json=function(){return this.text().then(JSON.parse)},this}var P=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function re(h){var V=h.toUpperCase();return P.indexOf(V)>-1?V:h}function S(h,V){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');V=V||{};var ee=V.body;if(h instanceof S){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,V.headers||(this.headers=new N(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!ee&&h._bodyInit!=null&&(ee=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=V.credentials||this.credentials||"same-origin",(V.headers||!this.headers)&&(this.headers=new N(V.headers)),this.method=re(V.method||this.method||"GET"),this.mode=V.mode||this.mode||null,this.signal=V.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ee)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(ee),(this.method==="GET"||this.method==="HEAD")&&(V.cache==="no-store"||V.cache==="no-cache")){var ie=/([?&])_=[^&]*/;if(ie.test(this.url))this.url=this.url.replace(ie,"$1_="+new Date().getTime());else{var ve=/\?/;this.url+=(ve.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})};function A(h){var V=new FormData;return h.trim().split("&").forEach(function(ee){if(ee){var ie=ee.split("="),ve=ie.shift().replace(/\+/g," "),ae=ie.join("=").replace(/\+/g," ");V.append(decodeURIComponent(ve),decodeURIComponent(ae))}}),V}function D(h){var V=new N,ee=h.replace(/\r?\n[\t ]+/g," ");return ee.split("\r").map(function(ie){return ie.indexOf(`
3
- `)===0?ie.substr(1,ie.length):ie}).forEach(function(ie){var ve=ie.split(":"),ae=ve.shift().trim();if(ae){var Fe=ve.join(":").trim();V.append(ae,Fe)}}),V}M.call(S.prototype);function k(h,V){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');V||(V={}),this.type="default",this.status=V.status===void 0?200:V.status,this.ok=this.status>=200&&this.status<300,this.statusText=V.statusText===void 0?"":""+V.statusText,this.headers=new N(V.headers),this.url=V.url||"",this._initBody(h)}M.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new N(this.headers),url:this.url})},k.error=function(){var h=new k(null,{status:0,statusText:""});return h.type="error",h};var L=[301,302,303,307,308];k.redirect=function(h,V){if(L.indexOf(V)===-1)throw new RangeError("Invalid status code");return new k(null,{status:V,headers:{location:h}})},i.DOMException=a.DOMException;try{new i.DOMException}catch{i.DOMException=function(V,ee){this.message=V,this.name=ee;var ie=Error(V);this.stack=ie.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function ne(h,V){return new Promise(function(ee,ie){var ve=new S(h,V);if(ve.signal&&ve.signal.aborted)return ie(new i.DOMException("Aborted","AbortError"));var ae=new XMLHttpRequest;function Fe(){ae.abort()}ae.onload=function(){var Be={status:ae.status,statusText:ae.statusText,headers:D(ae.getAllResponseHeaders()||"")};Be.url="responseURL"in ae?ae.responseURL:Be.headers.get("X-Request-URL");var St="response"in ae?ae.response:ae.responseText;setTimeout(function(){ee(new k(St,Be))},0)},ae.onerror=function(){setTimeout(function(){ie(new TypeError("Network request failed"))},0)},ae.ontimeout=function(){setTimeout(function(){ie(new TypeError("Network request failed"))},0)},ae.onabort=function(){setTimeout(function(){ie(new i.DOMException("Aborted","AbortError"))},0)};function mt(Be){try{return Be===""&&a.location.href?a.location.href:Be}catch{return Be}}ae.open(ve.method,mt(ve.url),!0),ve.credentials==="include"?ae.withCredentials=!0:ve.credentials==="omit"&&(ae.withCredentials=!1),"responseType"in ae&&(l.blob?ae.responseType="blob":l.arrayBuffer&&ve.headers.get("Content-Type")&&ve.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(ae.responseType="arraybuffer")),V&&typeof V.headers=="object"&&!(V.headers instanceof N)?Object.getOwnPropertyNames(V.headers).forEach(function(Be){ae.setRequestHeader(Be,m(V.headers[Be]))}):ve.headers.forEach(function(Be,St){ae.setRequestHeader(St,Be)}),ve.signal&&(ve.signal.addEventListener("abort",Fe),ae.onreadystatechange=function(){ae.readyState===4&&ve.signal.removeEventListener("abort",Fe)}),ae.send(typeof ve._bodyInit>"u"?null:ve._bodyInit)})}return ne.polyfill=!0,a.fetch||(a.fetch=ne,a.Headers=N,a.Request=S,a.Response=k),i.Headers=N,i.Request=S,i.Response=k,i.fetch=ne,i})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=n.fetch?n:r;t=o.fetch,t.default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t})(ki,ki.exports);var $p=ki.exports;const fs=Pp($p);var Dp=Object.defineProperty,Cl=(e,t)=>{for(var n in t)Dp(e,n,{get:t[n],enumerable:!0})},Rr=g.record(g.number()),Ip=g.object({type:g.literal("PercentageOffDiscount"),name:g.string(),description:g.string().optional(),percentage:g.number(),total:Rr.optional(),isExclusive:g.boolean()}),Ap=g.object({type:g.literal("FlatAmountOffDiscount"),name:g.string(),description:g.string().optional(),total:Rr.optional(),isExclusive:g.boolean()}),Ci=g.discriminatedUnion("type",[Ip,Ap]),jr=g.object({id:g.string(),name:g.string(),originalPrice:Rr,price:Rr,hasDiscount:g.boolean(),discount:Ci.optional()});function vo(e){return g.object({items:g.array(e),hasMore:g.boolean(),next:g.string().nullable()})}function Tl(e){return g.object({value:e,quantity:g.number()})}var Qt=(e=>(e.Universal="Universal",e.Windows="Windows",e.Linux="Linux",e.Mac="Mac",e))(Qt||{}),Pl=g.object({name:g.string(),key:g.string(),platform:g.nativeEnum(Qt),size:g.number(),path:g.string().nullable()}),Ti=g.object({id:g.string(),name:g.string(),tagline:g.string(),website:g.string().optional(),iconUrl:g.string().optional(),numberOfLicenses:g.number().optional(),numberOfTrials:g.number().optional(),currentActivations:g.number().optional(),maxActivations:g.number().optional(),currentVersion:g.string().nullable(),version:g.string().optional(),prerelease:g.boolean().optional(),releaseDescription:g.string().optional(),downloadsNeedsUser:g.boolean(),downloadsNeedsOwnership:g.boolean(),downloads:g.array(Pl).optional()}),ps=g.object({id:g.string(),name:g.string(),tagline:g.string(),iconUrl:g.string().nullable(),website:g.string().nullish(),owned:g.boolean(),currentVersion:g.string().optional(),downloads:Pl.array().optional(),defaultVariation:jr.optional(),variations:jr.array().optional(),type:g.void().transform(()=>"product").pipe(g.literal("product"))}),$l=g.object({id:g.string(),name:g.string(),tagline:g.string(),iconUrl:g.string().nullable(),owned:g.boolean(),partial:g.boolean(),products:ps.and(g.object({included:g.boolean().optional()})).array(),defaultVariation:jr.optional(),variations:jr.array().optional(),type:g.void().transform(()=>"bundle").pipe(g.literal("bundle"))}),Vp=g.object({suggestedCurrency:g.string(),products:ps.array(),bundles:$l.array()}),en=(e=>(e.Requested="Requested",e.Fulfilled="Fulfilled",e.Completed="Completed",e.Cancelled="Cancelled",e))(en||{}),hs=g.object({id:g.string(),status:g.nativeEnum(en),product:ps,trialEligibility:g.object({eligible:g.boolean(),existing:g.boolean(),requiresAccount:g.boolean(),numberOfDaysPerProduct:g.number(),numberOfDaysRemaining:g.number()}).optional(),licenseEligibility:g.object({eligible:g.boolean()}).optional()}),Rp=class{constructor(e){this.api=e}async get(e){return(await this.api.fetch(`/api/customer/activations/${e}`,hs)).data}async isCompleted(e){const t=await this.api.fetch(`/api/customer/activations/${e}/completed`,g.boolean());return g.boolean().parse(t.data)}async fulfillLicense(e){return(await this.api.authenticatedFetch(`/api/customer/activations/${e}/license`,hs,{method:"POST"})).data}async fulfillTrial(e){return(await this.api.fetch(`/api/customer/activations/${e}/trial`,hs,{method:"POST"})).data}async cancel(e){return(await this.api.fetch(`/api/customer/activations/${e}/cancel`,hs,{method:"POST"})).data}},jp=class extends Error{constructor(){super(),this.name="NotAuthorizedError",this.message="Not allowed"}},Pi=class extends Error{constructor(){super(),this.name="NotAuthenticatedError",this.message="Not authenticated"}},Vn=class extends Error{constructor(e){super(),this.name="NotFoundError",this.message=e??"Not found"}},Mr=class extends Error{constructor(e,t,n,r){super(),this.title=e,this.detail=t,this.status=n,this.errors=r,this.name="MoonbaseError",r&&Object.values(r).length===1?this.message=Object.values(r)[0]:this.message=t??e}},Mp=g.object({type:g.string(),title:g.string(),detail:g.string().optional(),status:g.number(),errors:g.record(g.string(),g.string().array()).optional()});function Lp(e){return e.split(".").map((t,n)=>{let[r,...o]=t;return r=n!==0?r.toUpperCase():r.toLowerCase(),o=[o.join("").toLowerCase()],r+o[0]}).join("")}async function $i(e){if(e.status===404)throw new Vn;if(e.status===401)throw new Pi;if(e.status===403)throw new jp;let t;try{const n=await e.json();t=Mp.parse(n)}catch(n){throw console.warn("Could not handle response",{response:e,err:n,content:await e.text()}),new Error("An unknown problem occurred")}throw new Mr(t.title,t.detail,t.status,t.errors?Object.fromEntries(Object.entries(t.errors).map(([n,r])=>[Lp(n),r.join(", ")])):void 0)}var Dl=g.object({countryCode:g.string(),streetAddress1:g.string(),streetAddress2:g.string().nullable(),locality:g.string().nullable(),region:g.string().nullable(),postCode:g.string()}),Up=g.object({newsletterOptIn:g.boolean()}),Il=g.object({id:g.string(),email:g.string(),name:g.string(),tenantId:g.string(),address:Dl.optional(),communicationPreferences:Up,ownedProducts:g.string().array().optional()}),Di=Il.and(g.object({accessToken:g.string(),refreshToken:g.string()})),Al=g.object({id:g.string(),name:g.string(),email:g.string(),resetPasswordToken:g.string().nullable()}),Fp=class{constructor(e,t){this.api=e,this.tokenStore=t}async get(){return(await this.api.authenticatedFetch("/api/customer/meta/user",Il)).data}async signIn(e,t){const n=await fs(`${this.api.baseUrl}/api/customer/identity/sign-in?email=${encodeURIComponent(e)}&scheme=JWT`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:t});if(n.status===404)throw new Vn("User not found");n.status>=400&&await $i(n);try{const r=await n.json(),o=Di.parse(r);return this.tokenStore.setUser(o),o}catch(r){throw console.warn("Could not sign in user",{email:e,response:n,err:r}),new Mr("Bad response","Could not sign in user",n.status)}}async signUp(e,t,n,r,o,s,i){const a=await this.api.fetch(`/api/customer/identity/sign-up?scheme=JWT&communicationOptIn=${i?"true":"false"}`,Di,{method:"POST",body:{name:e,email:t,password:n,address:r,acceptedPrivacyPolicy:o,acceptedTermsAndConditions:s}});return this.tokenStore.setUser(a.data),a.data}async update(e,t,n,r){return{needsEmailConfirmationToken:(await this.api.authenticatedFetch("/api/customer/identity",null,{method:"PATCH",body:{name:e,email:t,emailConfirmationToken:n,communicationPreferences:r}})).status===201}}async setPassword(e,t){await this.api.authenticatedFetch("/api/customer/identity/set-password",null,{method:"POST",body:{currentPassword:e,newPassword:t}})}async forgotPassword(e){await this.api.fetch(`/api/customer/identity/forgot-password?email=${encodeURIComponent(e)}`,null,{method:"POST"})}async resetPassword(e,t,n){const r=await fs(`${this.api.baseUrl}/api/customer/identity/reset-password?email=${encodeURIComponent(e)}&code=${encodeURIComponent(n.replaceAll(" ","+"))}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:t});r.status>=400&&await $i(r)}async confirmAccount(e,t){const n=await this.api.fetch(`/api/customer/identity/confirm-account?email=${encodeURIComponent(e)}&code=${encodeURIComponent(t.replaceAll(" ","+"))}`,Al,{method:"POST"});try{return Al.parse(n.data)}catch(r){throw console.warn("Could not confirm user account",{email:e,code:t,response:n,err:r}),new Mr("Bad response","Could not confirm user account",n.status)}}async confirmEmail(e,t){await this.api.fetch(`/api/customer/identity/confirm-email?email=${encodeURIComponent(e)}&code=${encodeURIComponent(t.replaceAll(" ","+"))}`,null,{method:"POST"})}async confirmEmailChange(e,t){await this.api.authenticatedFetch(`/api/customer/identity/confirm-email-change?email=${encodeURIComponent(e)}&code=${encodeURIComponent(t.replaceAll(" ","+"))}`,null,{method:"POST"})}},Vl={};Cl(Vl,{completedOrderSchema:()=>Ul,openBundleLineItem:()=>Ll,openOrderLineItem:()=>Ii,openOrderSchema:()=>ms,openProductLineItem:()=>Ml,orderSchema:()=>Fl});var Lr=(e=>(e.Open="Open",e.PaymentProcessing="PaymentProcessing",e.Completed="Completed",e.Failed="Failed",e))(Lr||{}),Rl=g.object({code:g.string(),name:g.string(),description:g.string()}),jl=g.object({id:g.string(),name:g.string(),tagline:g.string(),iconUrl:g.string().nullable()}),Ml=g.object({id:g.string(),type:g.literal("Product"),productId:g.string(),quantity:g.number(),variationId:g.string(),price:Rr.optional(),variation:jr.optional(),product:jl.optional(),appliedDiscount:Ci.optional()}),Bp=g.object({id:g.string(),name:g.string(),tagline:g.string(),iconUrl:g.string().nullable(),products:jl.and(g.object({included:g.boolean().optional()})).array()}),Ll=g.object({id:g.string(),type:g.literal("Bundle"),bundleId:g.string(),quantity:g.number(),variationId:g.string(),partial:g.boolean().optional(),price:Rr.optional(),variation:jr.optional(),bundle:Bp.optional(),appliedDiscount:Ci.optional()}),Ii=g.discriminatedUnion("type",[Ml,Ll]),ms=g.object({id:g.string(),status:g.literal("Open"),currency:g.string(),items:Ii.array(),couponsApplied:Rl.array(),checkoutUrl:g.string().optional(),embeddedCheckoutUrl:g.string().optional()}),go=g.object({currency:g.string(),amount:g.number()}),Hp=g.object({original:go,discount:go,subtotal:go,taxes:go,due:go}),Zp=g.object({name:g.string().nullable(),businessName:g.string().nullable(),taxId:g.string().nullable(),email:g.string().nullable(),address:Dl.nullable()}),Ul=g.object({id:g.string(),status:g.literal("Completed"),currency:g.string(),customer:Zp,total:Hp,items:Ii.array(),couponsApplied:Rl.array()}),Fl=g.discriminatedUnion("status",[ms,Ul]),qp=class{constructor(e){this.api=e}async get(e){return(await this.api.fetch(`/api/customer/orders/${e}`,Fl)).data}async pushContent(e,t,n){const r={...Bl(n)};return t&&(r.checkout="true",r.returnUrl=t.returnUrl),(await this.api.fetch(`/api/customer/orders/${e.id}?${new URLSearchParams(r).toString()}`,ms,{method:"PATCH",body:{currency:e.currency||void 0,items:e.items}})).data}async removeBillingDetails(e){return(await this.api.fetch(`/api/customer/orders/${e}/billing-details`,ms,{method:"DELETE"})).data}};function Bl(e){return Object.entries({utm_source:e==null?void 0:e.source,utm_medium:e==null?void 0:e.medium,utm_campaign:e==null?void 0:e.campaign,utm_term:e==null?void 0:e.term,utm_content:e==null?void 0:e.content,utm_referrer:e==null?void 0:e.referrer}).filter(([t,n])=>n!==void 0).reduce((t,[n,r])=>({...t,[n]:r}),{})}var Wp=class{constructor(e){this.api=e}async get(e){const t=new URLSearchParams(Bl(e));return(await this.api.fetch(`/api/customer/storefront?${t.toString()}`,Vp)).data}},zp=class{constructor(e,t){this.baseUrl=e,this.tokenStore=t}async authenticatedFetch(e,t,n){if(!this.tokenStore.hasAccessToken)throw new Pi;return await this.fetch(e,t,n)}async fetch(e,t,n){var r;const o=await this.tokenStore.getAccessToken(),s=(r=n==null?void 0:n.contentType)!=null?r:"application/json",i=await fs(this.baseUrl+e,{method:(n==null?void 0:n.method)||"GET",mode:"cors",headers:{Accept:"application/json","Content-Type":s,...o?{Authorization:`Bearer ${o}`}:{},"x-mb-cors":"1"},body:n!=null&&n.body?s!=="application/json"?n.body:JSON.stringify(n.body):void 0});i.status>=400&&await $i(i);let a;try{return a=t?await i.json():null,{data:t?t.parse(a):null,headers:Object.fromEntries(i.headers.entries()),status:i.status}}catch(l){throw console.warn("Could not parse response",{status:i.status,path:e,content:a||(i.bodyUsed?"unknown":await i.text()),headers:Object.fromEntries(i.headers.entries()),userAgent:window&&window.navigator&&window.navigator.userAgent,err:l}),new Mr("Bad response","Could not parse server response",i.status)}}},Hl=class rs{constructor(t){if(this.configuration=t,this.tokens=null,this.refreshTimeoutId=null,this.refreshPromise=null,typeof window<"u"){window.addEventListener("storage",r=>this.handleStorageUpdate(r));const n=localStorage.getItem(rs.storageKey);n&&(this.tokens=JSON.parse(n),this.tokens.expiresAt=new Date(this.tokens.expiresAt))}}get user(){return this.tokens?this.tokens:null}get hasAccessToken(){return!!this.tokens}async getAccessToken(){var t,n,r;if(this.isExpired){if(this.refreshPromise){const s=await this.refreshPromise;return(t=s==null?void 0:s.accessToken)!=null?t:null}this.refreshPromise=this.refreshTokens();const o=await this.refreshPromise;return(n=o==null?void 0:o.accessToken)!=null?n:null}return((r=this.tokens)==null?void 0:r.accessToken)||null}setUser(t){return t===null?(this.tokens=null,typeof window<"u"&&localStorage&&localStorage.removeItem(rs.storageKey),this.refreshTimeoutId!=null&&window.clearTimeout(this.refreshTimeoutId),null):(this.tokens={...t,expiresAt:new Date(new Date().getTime()+15*60*1e3)},typeof window<"u"&&localStorage&&localStorage.setItem(rs.storageKey,JSON.stringify(this.tokens)),this.refreshTimeoutId!=null&&window.clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=window.setTimeout(()=>{this.refreshPromise=this.refreshTokens()},10*60*1e3),this.tokens)}get isExpired(){return this.tokens!=null&&this.tokens.expiresAt<new Date}async refreshTokens(){if(!this.tokens)throw new Error("No tokens found to refresh");const t=await fs(`${this.configuration.endpoint}/api/customer/identity/refresh?token=${this.tokens.refreshToken}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:this.tokens.accessToken});if(t.status!==200){if(t.status===403||t.status===404)return this.setUser(null),null;throw new Mr("Unexpected result",`Could not refresh access token, status code ${t.status}`,t.status)}const n=Di.parse(await t.json());return this.setUser(n)}handleStorageUpdate(t){switch(t.key){case rs.storageKey:this.tokens=t.newValue?JSON.parse(t.newValue):null,this.refreshTimeoutId!=null&&window.clearTimeout(this.refreshTimeoutId),this.tokens&&(this.tokens.expiresAt=new Date(this.tokens.expiresAt));break}}};Hl.storageKey="moonbase_auth";var Kp=Hl,Zl=g.object({id:g.string(),name:g.string(),description:g.string(),code:g.string(),redeemed:g.boolean(),redeemsProducts:Tl(ps).array(),redeemsBundles:Tl($l).array()}),Gp=class{constructor(e){this.api=e}async peek(e){return(await this.api.fetch(`/api/customer/vouchers?code=${encodeURIComponent(e)}`,Zl)).data}async redeem(e){return(await this.api.authenticatedFetch(`/api/customer/vouchers/redeem?code=${encodeURIComponent(e)}`,Zl,{method:"POST"})).data}},ql=(e=>(e.Active="Active",e.Revoked="Revoked",e))(ql||{}),Wl=(e=>(e.Active="Active",e.Revoked="Revoked",e))(Wl||{}),Ai=(e=>(e.Online="Online",e.Offline="Offline",e))(Ai||{}),Vi=g.object({id:g.string(),status:g.nativeEnum(ql),product:Ti,activeNumberOfActivations:g.number(),maxNumberOfActivations:g.number(),createdAt:g.coerce.date()}),zl=g.object({id:g.string(),licenseId:g.string(),name:g.string(),status:g.nativeEnum(Wl),activationMethod:g.nativeEnum(Ai),lastValidatedAt:g.coerce.date().nullable()}),Jp=class{constructor(e){this.api=e}async activate(e,t){const n=await this.api.authenticatedFetch(`/api/customer/inventory/activate?method=${t}`,Vi,{method:"POST",body:e,contentType:"text/plain"});return{license:n.data,url:g.string().parse(n.headers.location)}}},Yp=class{constructor(e){this.api=e}async get(e){return(await this.api.authenticatedFetch(e||"/api/customer/inventory/licenses",vo(Vi))).data}async getActivations(e,t){return(await this.api.authenticatedFetch(t||`/api/customer/inventory/licenses/${e}/activations`,vo(zl))).data}async revokeActivation(e,t){await this.api.authenticatedFetch(`/api/customer/inventory/licenses/${e}/activations/${t}/revoke`,null,{method:"POST"})}},Xp=class{constructor(e){this.api=e}async get(e,t){return(await this.api.fetch(`/api/customer/inventory/products/${e}${t?`?version=${t}`:""}`,Ti)).data}async getOwned(e){return(await this.api.authenticatedFetch(e||"/api/customer/inventory/products",vo(Ti))).data}async getLicenses(e,t){return(await this.api.authenticatedFetch(t||`/api/customer/inventory/products/${e}/licenses`,vo(Vi))).data}async getActivations(e,t){return(await this.api.authenticatedFetch(t||`/api/customer/inventory/products/${e}/licenses/activations`,vo(zl))).data}async getDownloadUrl(e){const t=new URL(e);return t.searchParams.append("redirect","false"),(await this.api.fetch(t.pathname+t.search,g.object({location:g.string()}))).data.location}},Qp=class{constructor(e){this.licenses=new Yp(e),this.products=new Xp(e),this.activation=new Jp(e)}},Kl={};Cl(Kl,{orders:()=>Vl});var eh=class{constructor(e){this.configuration=e,this.configuration.endpoint=this.configuration.endpoint.replace(/\/$/,""),this.tokenStore=new Kp(e);const t=new zp(this.configuration.endpoint,this.tokenStore);this.storefront=new Wp(t),this.identity=new Fp(t,this.tokenStore),this.vouchers=new Gp(t),this.orders=new qp(t),this.inventory=new Qp(t),this.activationRequests=new Rp(t)}},Gl={};/**
1
+ (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('#moonbase .moonbase\\:toolbar{position:fixed;bottom:32px;border-radius:16px;background-color:#1a1a1a;color:#f9f9f9;display:flex;transition-duration:.1s;transition-property:all;transition-timing-function:ease-out;transform:translateY(8px);opacity:0}#moonbase .moonbase\\:toolbar[data-contain]{position:absolute}#moonbase .moonbase\\:toolbar[data-location=bottom-right]{right:32px}#moonbase .moonbase\\:toolbar[data-location=bottom-left]{left:32px}#moonbase .moonbase\\:toolbar[data-visible]{transform:translateY(0);opacity:1;transition-duration:.5s}#moonbase .moonbase\\:toolbar-action{padding:12px 16px;transition:background-color .25s ease-out;cursor:pointer;display:flex;align-items:center}#moonbase .moonbase\\:toolbar-action:nth-child(1){border-top-left-radius:16px;border-bottom-left-radius:16px}#moonbase .moonbase\\:toolbar-action:last-child{border-top-right-radius:16px;border-bottom-right-radius:16px}#moonbase .moonbase\\:toolbar-action:hover{background-color:#ffffff1a}#moonbase .moonbase\\:toolbar-action[data-action-width=narrow]{padding:12px}#moonbase .moonbase\\:input label{display:block;font-size:14px;font-weight:500;line-height:20px;color:hsl(from var(--moonbase-input-text-color, var(--moonbase-text-color)) h s calc(l - calc(15 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:input input{display:block;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:calc(var(--moonbase-input-border-radius, var(--moonbase-border-radius)) * .5);border-width:1px;border-color:hsl(from var(--moonbase-input-text-color, var(--moonbase-text-color)) h s calc(l - calc(25 * var(--moonbase-dark-mode, -1))));color:var(--moonbase-input-text-color, var(--moonbase-text-color));background-color:var(--moonbase-input-background-color);font-size:14px;line-height:20px;padding:var(--moonbase-input-padding);margin-top:4px;box-shadow:var(--moonbase-background-color) 0 0 0 2px,transparent 0 0 0 4px,0 1px 2px 0 var(--moonbase-input-shadow-color);transition:all .25s ease-in-out}#moonbase .moonbase\\:input input:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:var(--moonbase-background-color) 0 0 0 2px,var(--moonbase-input-active-color, var(--moonbase-primary-color)) 0 0 0 4px,0 1px 2px 0 var(--moonbase-input-shadow-color)}#moonbase .moonbase\\:input input:disabled{opacity:.75}#moonbase .moonbase\\:input .moonbase\\:input-hint{margin-top:8px;font-size:14px;line-height:20px}#moonbase .moonbase\\:input .moonbase\\:input-hint[data-type=error]{color:var(--moonbase-input-error-color)}@keyframes moonbase\\:spin-687bcaf0{to{transform:rotate(360deg)}}#moonbase svg[data-v-687bcaf0]{animation:moonbase\\:spin-687bcaf0 1s linear infinite}#moonbase .moonbase\\:submit-button[data-v-35651614]{position:relative;display:flex;justify-content:center;overflow:hidden;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:ease-in-out;transition-duration:.2s;box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}#moonbase .moonbase\\:submit-button[data-v-35651614][data-v-35651614],#moonbase .moonbase\\:submit-button[data-v-35651614][data-v-35651614]:hover,#moonbase .moonbase\\:submit-button[data-v-35651614][data-v-35651614]:focus,#moonbase .moonbase\\:submit-button[data-v-35651614][data-v-35651614]:active{font-size:14px;font-weight:500;line-height:20px;border-radius:var(--moonbase-button-border-radius, var(--moonbase-border-radius));border-width:1px;border-color:transparent;border-style:solid;color:var(--moonbase-button-text-color);background-color:var(--moonbase-button-background-color, var(--moonbase-primary-color));padding:var(--moonbase-button-padding);height:unset;width:unset}#moonbase .moonbase\\:submit-button[data-v-35651614][data-v-35651614]:hover{background-color:hsl(from var(--moonbase-button-background-color, var(--moonbase-primary-color)) h s calc(l + calc(5 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:submit-button[data-v-35651614][data-v-35651614]:focus{transition-duration:.1s;outline:2px solid transparent;outline-offset:2px;box-shadow:var(--moonbase-background-color) 0 0 0 2px,var(--moonbase-button-background-color, var(--moonbase-primary-color)) 0 0 0 4px,0 1px 2px 0 var(--moonbase-button-shadow-color)}#moonbase .moonbase\\:submit-button[data-v-35651614][data-success][data-v-35651614]{background-color:var(--moonbase-button-success-color)}#moonbase .moonbase\\:submit-button[data-v-35651614][data-error][data-v-35651614]{background-color:var(--moonbase-button-error-color)}#moonbase .moonbase\\:submit-button[data-v-35651614] div[data-v-35651614]{margin-left:-12px;margin-right:12px;height:20px;width:0px;opacity:0;transition-property:opacity,width;transition-duration:.2s;transition-timing-function:ease-in-out}#moonbase .moonbase\\:submit-button[data-v-35651614] div[data-v-35651614][data-visible][data-v-35651614]{width:20px;opacity:1}#moonbase .moonbase\\:submit-button[data-v-35651614] div[data-v-35651614] svg[data-v-35651614]{height:20px;width:20px}#moonbase .moonbase\\:checkbox{display:flex;align-items:flex-start}#moonbase .moonbase\\:checkbox label{font-size:14px;font-weight:500;line-height:20px;color:hsl(from var(--moonbase-input-text-color, var(--moonbase-text-color)) h s calc(l - calc(15 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:checkbox .moonbase\\:checkbox-container{display:flex;height:24px;align-items:center}#moonbase .moonbase\\:checkbox input{height:16px;width:16px;border-width:1px;border-radius:var(--moonbase-input-border-radius, var(--moonbase-border-radius));border-color:var(--moonbase-input-background-color, var(--moonbase-background-color));background-color:var(--moonbase-input-background-color, var(--moonbase-background-color));font-size:14px;line-height:20px;padding:8px 12px;margin-top:4px;box-shadow:0 1px 2px 0 var(--moonbase-input-shadow-color)}#moonbase .moonbase\\:checkbox input:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:var(--moonbase-background-color) 0 0 0 2px,var(--moonbase-input-active-color, var(--moonbase-primary-color)) 0 0 0 4px,0 1px 2px 0 var(--moonbase-input-shadow-color)}#moonbase .moonbase\\:checkbox .moonbase\\:checkbox-description{margin-left:12px}#moonbase .moonbase\\:checkbox .moonbase\\:checkbox-description label{font-size:14px;line-height:24px;font-weight:500;color:hsl(from var(--moonbase-text-color) h s calc(l - calc(15 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:checkbox .moonbase\\:checkbox-description p{font-size:14px;line-height:24px;color:hsl(from var(--moonbase-text-color) h s calc(l - calc(15 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:checkbox .moonbase\\:checkbox-description p[data-type=error]{color:var(--moonbase-input-error-color)}#moonbase .moonbase\\:sign-up{display:flex;flex-direction:column}#moonbase .moonbase\\:sign-up>*:not(:first-child){margin-top:16px}#moonbase .moonbase\\:sign-up .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}#moonbase .moonbase\\:sign-up .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}#moonbase .moonbase\\:confirm-account{display:flex;flex-direction:column}#moonbase .moonbase\\:confirm-account>*:not(:first-child){margin-top:16px}#moonbase .moonbase\\:confirm-account>.moonbase\\:loader{display:flex;justify-content:center;padding:36px 16px}#moonbase .moonbase\\:confirm-account>.moonbase\\:loader svg{height:24px;width:24px}#moonbase .moonbase\\:confirm-account .moonbase\\:error{text-align:center;color:var(--moonbase-error-color);font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}#moonbase .moonbase\\:confirm-account .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}#moonbase .moonbase\\:reset-password{display:flex;flex-direction:column}#moonbase .moonbase\\:reset-password>*:not(:first-child){margin-top:16px}#moonbase .moonbase\\:reset-password .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}#moonbase .moonbase\\:reset-password .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}#moonbase .moonbase\\:confirm-email-change{display:flex;flex-direction:column}#moonbase .moonbase\\:confirm-email-change>*:not(:first-child){margin-top:16px}#moonbase .moonbase\\:confirm-email-change>.moonbase\\:loader{display:flex;justify-content:center;padding:36px 16px}#moonbase .moonbase\\:confirm-email-change>.moonbase\\:loader svg{height:24px;width:24px}#moonbase .moonbase\\:confirm-email-change .moonbase\\:error{text-align:center;color:var(--moonbase-error-color);font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}#moonbase .moonbase\\:confirm-email-change .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}#moonbase .moonbase\\:modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;overflow-y:auto}#moonbase .moonbase\\:modal[data-contain]{position:absolute}#moonbase .moonbase\\:modal-container{display:flex;min-height:100svh;align-items:flex-end;justify-content:center;padding:16px 16px 90px;text-align:center}#moonbase .moonbase\\:modal-container[data-contain]{min-height:100%}@media (min-width: 640px){#moonbase .moonbase\\:modal-container{display:block;padding:0}}#moonbase .moonbase\\:modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;transition-property:opacity;opacity:0}#moonbase .moonbase\\:modal-overlay[data-contain]{position:absolute}#moonbase .moonbase\\:modal-overlay[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}#moonbase .moonbase\\:modal-overlay[data-transition~=entered],#moonbase .moonbase\\:modal-overlay[data-transition~=enter-to],#moonbase .moonbase\\:modal-overlay[data-transition~=leave-from]{opacity:1}#moonbase .moonbase\\:modal-overlay[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.2s}#moonbase .moonbase\\:modal-content{position:relative;display:inline-block;margin:80px auto 16px;color:var(--moonbase-modal-text-color, var(--moonbase-text-color));background-color:var(--moonbase-modal-background-color, var(--moonbase-background-color));box-shadow:var(--moonbase-modal-shadow-color) 0 8px 32px 0;border-radius:calc(var(--moonbase-modal-border-radius, var(--moonbase-border-radius)) * 2);vertical-align:bottom;transition-property:all;text-align:left;opacity:0;transform:translateY(16px)}@media (min-width: 640px){#moonbase .moonbase\\:modal-content{transform:scale(.95)}}@media (min-width: 640px){#moonbase .moonbase\\:modal-content{vertical-align:middle}}#moonbase .moonbase\\:modal-content[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}#moonbase .moonbase\\:modal-content[data-transition~=entered],#moonbase .moonbase\\:modal-content[data-transition~=enter-to]{opacity:1;transform:translateY(0)}@media (min-width: 640px){#moonbase .moonbase\\:modal-content[data-transition~=entered],#moonbase .moonbase\\:modal-content[data-transition~=enter-to]{transform:scale(1)}}#moonbase .moonbase\\:modal-content[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.2s}#moonbase .moonbase\\:modal-content[data-transition~=leave-from]{opacity:1;transform:translateY(0)}@media (min-width: 640px){#moonbase .moonbase\\:modal-content[data-transition~=leave-from]{transform:scale(1)}}#moonbase .moonbase\\:sign-in{display:flex;flex-direction:column}#moonbase .moonbase\\:sign-in>*:not(:first-child){margin-top:16px}#moonbase .moonbase\\:sign-in .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}#moonbase .moonbase\\:sign-in .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}#moonbase .moonbase\\:authentication{display:inline-block;color:var(--moonbase-text-color, black);padding:32px 64px}@media (min-width: 640px){#moonbase .moonbase\\:authentication{width:100vw;max-width:416px}}#moonbase .moonbase\\:authentication>h3{font-size:18px;line-height:24px;font-weight:500;text-align:center;margin-bottom:24px}#moonbase .moonbase\\:authentication>.moonbase\\:loader{display:flex;justify-content:center;padding:36px 16px}#moonbase .moonbase\\:authentication>.moonbase\\:loader svg{height:24px;width:24px}#moonbase .moonbase\\:product-cart-item{display:flex;align-items:center}#moonbase .moonbase\\:product-cart-item>:not(:first-child){margin-left:24px}#moonbase .moonbase\\:product-cart-item>img{height:80px;width:80px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:product-cart-item>.moonbase\\:image-placeholder{height:80px;width:80px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}#moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content{display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start}#moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content>:not(:first-child){margin-top:4px}#moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content h3{font-weight:600}#moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-content .moonbase\\:cart-item-discount{color:hsl(from var(--moonbase-success-color, rgb(22 163 74)) h s calc(l + calc(10 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-total{flex:none;text-align:right;font-weight:500;font-size:16px;line-height:21px}#moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-total>span{display:block;font-size:14px;line-height:20px;opacity:.75}#moonbase .moonbase\\:product-cart-item>.moonbase\\:product-cart-item-total>span.moonbase\\:discount{text-decoration:line-through}#moonbase .moonbase\\:bundle-cart-item{display:flex;align-items:center}#moonbase .moonbase\\:bundle-cart-item>:not(:first-child){margin-left:24px}#moonbase .moonbase\\:bundle-cart-item>img{height:80px;width:80px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:image-placeholder{height:80px;width:80px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content{display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content>:not(:first-child){margin-top:4px}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content h3{font-weight:600}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:cart-item-discount{color:hsl(from var(--moonbase-success-color, rgb(22 163 74)) h s calc(l + calc(10 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary{display:flex;align-items:flex-start;flex-direction:column}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary>:not(:first-child){margin-top:2px}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary button{display:flex;align-items:center}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary button svg{margin-left:4px;margin-top:4px;height:16px;width:16px;transition:transform .2s ease-in-out;transform:rotate(0)}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:bundle-cart-item-content .moonbase\\:bundle-cart-item-summary button svg[data-open]{transform:rotate(180deg)}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:product-cart-item-total{flex:none;text-align:right;font-weight:500;font-size:16px;line-height:21px}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:product-cart-item-total>span{display:block;font-size:14px;line-height:20px;opacity:.75}#moonbase .moonbase\\:bundle-cart-item>.moonbase\\:product-cart-item-total>span.moonbase\\:discount{text-decoration:line-through}#moonbase .moonbase\\:bundle-cart-item-product-list{overflow:hidden;padding-left:24px;transition-property:height;transition-duration:.3s;transition-timing-function:ease-in-out}#moonbase .moonbase\\:bundle-cart-item-product-list>:not(:first-child){border-top-width:1px;border-color:#0000001a}#moonbase .moonbase\\:bundle-cart-item-product-list>div{display:flex;align-items:center;padding:8px 0}#moonbase .moonbase\\:bundle-cart-item-product-list>div>:not(:first-child){margin-left:16px}#moonbase .moonbase\\:bundle-cart-item-product-list>div>img{height:64px;width:64px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:bundle-cart-item-product-list>div>.moonbase\\:image-placeholder{height:64px;width:64px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}#moonbase .moonbase\\:bundle-cart-item-product-list>div>div{display:flex;flex:auto;flex-direction:column;align-items:flex-start}#moonbase .moonbase\\:bundle-cart-item-product-list>div>div>:not(:first-child){margin-top:4px}#moonbase .moonbase\\:bundle-cart-item-product-list>div>div h3{display:flex;align-items:center}#moonbase .moonbase\\:bundle-cart-item-product-list>div>div h3:not([data-included]){text-decoration:line-through;opacity:.75}#moonbase .moonbase\\:bundle-cart-item-product-list>div>div h3 svg{margin-right:4px;height:16px;width:16px}#moonbase .moonbase\\:cart-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;overflow-y:auto}#moonbase .moonbase\\:cart-modal[data-contain]{position:absolute}#moonbase .moonbase\\:cart-modal-container{display:flex;height:100svh;align-items:flex-end;justify-content:center;padding:16px 16px 90px}#moonbase .moonbase\\:cart-modal-container[data-contain]{height:100%}@media (min-width: 640px){#moonbase .moonbase\\:cart-modal-container{display:block;padding:0}}#moonbase .moonbase\\:cart-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;transition-property:opacity;opacity:0}#moonbase .moonbase\\:cart-modal-overlay[data-contain]{position:absolute}#moonbase .moonbase\\:cart-modal-overlay[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}#moonbase .moonbase\\:cart-modal-overlay[data-transition~=entered],#moonbase .moonbase\\:cart-modal-overlay[data-transition~=enter-to],#moonbase .moonbase\\:cart-modal-overlay[data-transition~=leave-from]{opacity:1}#moonbase .moonbase\\:cart-modal-overlay[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.2s}#moonbase .moonbase\\:cart-modal-content{position:fixed;top:0;right:0;bottom:0;display:inline-block;color:var(--moonbase-modal-text-color, var(--moonbase-text-color));background-color:var(--moonbase-modal-background-color, var(--moonbase-background-color));box-shadow:var(--moonbase-modal-shadow-color) 0 8px 32px 0;transition-property:opacity transform;opacity:0;transform:translateY(16px)}#moonbase .moonbase\\:cart-modal-content[data-contain]{position:absolute}@media (min-width: 640px){#moonbase .moonbase\\:cart-modal-content{transform:translate(48px)}}#moonbase .moonbase\\:cart-modal-content[data-transition~=enter]{transition-timing-function:ease-out;transition-duration:.3s}#moonbase .moonbase\\:cart-modal-content[data-transition~=entered],#moonbase .moonbase\\:cart-modal-content[data-transition~=enter-to]{opacity:1;transform:translateY(0)}@media (min-width: 640px){#moonbase .moonbase\\:cart-modal-content[data-transition~=entered],#moonbase .moonbase\\:cart-modal-content[data-transition~=enter-to]{transform:translate(0)}}#moonbase .moonbase\\:cart-modal-content[data-transition~=leave]{transition-timing-function:ease-in;transition-duration:.2s}#moonbase .moonbase\\:cart-modal-content[data-transition~=leave-from]{opacity:1;transform:translateY(0)}@media (min-width: 640px){#moonbase .moonbase\\:cart-modal-content[data-transition~=leave-from]{transform:translate(0)}}#moonbase .moonbase\\:button{position:relative;display:flex;justify-content:center;overflow:hidden;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:ease-in-out;transition-duration:.2s;box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}#moonbase .moonbase\\:button[data-variant=secondary]{--moonbase-button-background-color: rgb(107 114 128);--moonbase-button-text-color: white}#moonbase .moonbase\\:button,#moonbase .moonbase\\:button:hover,#moonbase .moonbase\\:button:focus,#moonbase .moonbase\\:button:active{font-size:14px;font-weight:500;line-height:20px;border-radius:var(--moonbase-button-border-radius, var(--moonbase-border-radius));border-width:1px;border-color:transparent;border-style:solid;color:var(--moonbase-button-text-color);background-color:var(--moonbase-button-background-color, var(--moonbase-primary-color));padding:var(--moonbase-button-padding);height:unset;width:unset}#moonbase .moonbase\\:button:hover{background-color:hsl(from var(--moonbase-button-background-color, var(--moonbase-primary-color)) h s calc(l + calc(5 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:button:focus{transition-duration:.1s;outline:2px solid transparent;outline-offset:2px;box-shadow:var(--moonbase-background-color) 0 0 0 2px,var(--moonbase-button-background-color, var(--moonbase-primary-color)) 0 0 0 4px,0 1px 2px 0 var(--moonbase-button-shadow-color)}#moonbase .moonbase\\:button[data-success]{background-color:var(--moonbase-button-success-color)}#moonbase .moonbase\\:button[data-error]{background-color:var(--moonbase-button-error-color)}#moonbase .moonbase\\:button div{margin-left:-12px;margin-right:12px;height:20px;width:0px;opacity:0;transition-property:opacity,width;transition-duration:.2s;transition-timing-function:ease-in-out}#moonbase .moonbase\\:button div[data-visible]{width:20px;opacity:1}#moonbase .moonbase\\:button div svg{height:20px;width:20px}#moonbase .moonbase\\:cart{display:inline-block;color:var(--moonbase-text-color, black);padding:32px}@media (min-width: 640px){#moonbase .moonbase\\:cart{width:100vw;max-width:416px}}#moonbase .moonbase\\:cart>h3{font-size:18px;line-height:24px;font-weight:500;text-align:center;margin-bottom:24px}#moonbase .moonbase\\:cart>.moonbase\\:cart-items{font-size:14px;line-height:20px;font-weight:500}#moonbase .moonbase\\:cart>.moonbase\\:cart-items>:not(:first-child){border-top-width:1px;border-color:#00000026}#moonbase .moonbase\\:cart>.moonbase\\:cart-items>li{padding:24px 0}#moonbase .moonbase\\:cart>.moonbase\\:cart-items>li>:not(:first-child){margin-left:16px}#moonbase .moonbase\\:cart>.moonbase\\:cart-empty{padding:32px 0;font-size:18px;line-height:22px;font-weight:500}#moonbase .moonbase\\:cart>.moonbase\\:cart-total{width:100%;margin-top:16px;padding:8px;border-radius:4px;background:#0000001a;display:grid;grid-template-columns:repeat(2,1fr);justify-content:space-between}#moonbase .moonbase\\:cart>.moonbase\\:cart-total>label{font-weight:500}#moonbase .moonbase\\:cart>.moonbase\\:cart-total>span{font-weight:600;text-align:right}#moonbase .moonbase\\:cart>.moonbase\\:cart-total>p{grid-column:-1 / 1;padding-top:8px;text-align:center}#moonbase .moonbase\\:cart>button{--moonbase-button-padding: 12px 32px;margin:32px auto 16px;min-width:164px}#moonbase .moonbase\\:account{padding-bottom:32px}#moonbase .moonbase\\:account>*:not(:last-child){margin-bottom:16px}#moonbase .moonbase\\:account form{margin:auto;max-width:420px}#moonbase .moonbase\\:account form>*:not(:first-child){margin-top:8px}#moonbase .moonbase\\:account form .moonbase\\:error{font-size:14px;line-height:20px;font-weight:600;color:var(--moonbase-error-color)}#moonbase .moonbase\\:account form .moonbase\\:notification{font-size:14px;line-height:20px;font-weight:600}#moonbase .moonbase\\:account>button{margin:32px auto 0}#moonbase .moonbase\\:product-downloads{display:flex;border-radius:var(--moonbase-border-radius);box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}#moonbase .moonbase\\:product-downloads button{position:relative;display:inline-flex;align-items:center;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:ease-in-out;transition-duration:.2s;box-shadow:0 1px 2px 0 var(--moonbase-button-shadow-color)}#moonbase .moonbase\\:product-downloads button,#moonbase .moonbase\\:product-downloads button:hover,#moonbase .moonbase\\:product-downloads button:focus,#moonbase .moonbase\\:product-downloads button:active{font-size:14px;font-weight:500;line-height:20px;border-radius:0;border-width:1px;border-color:transparent;border-style:solid;color:var(--moonbase-button-text-color);background-color:var(--moonbase-button-background-color, var(--moonbase-primary-color));margin:0 -1px;padding:8px;height:unset;width:unset}#moonbase .moonbase\\:product-downloads button:hover{background-color:hsl(from var(--moonbase-button-background-color, var(--moonbase-primary-color)) h s calc(l + calc(5 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:product-downloads button:focus{transition-duration:.1s;outline:2px solid transparent;outline-offset:2px;box-shadow:inset var(--moonbase-background-color) 0 0 0 2px,inset var(--moonbase-button-background-color, var(--moonbase-primary-color)) 0 0 0 4px,0 1px 2px 0 var(--moonbase-button-shadow-color)}#moonbase .moonbase\\:product-downloads>button{border-radius:0}#moonbase .moonbase\\:product-downloads>button:first-child{border-top-left-radius:var(--moonbase-border-radius);border-bottom-left-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-downloads>button[data-last]{border-top-right-radius:var(--moonbase-border-radius);border-bottom-right-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group{position:relative;margin:0 -1px;display:block}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group:first-child>button{border-top-left-radius:var(--moonbase-border-radius);border-bottom-left-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group[data-last]>button{border-top-right-radius:var(--moonbase-border-radius);border-bottom-right-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-group button>:last-child{margin-left:8px}#moonbase .moonbase\\:product-downloads svg{height:20px;width:20px;color:#fff}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list{position:absolute;display:flex;flex-direction:column;right:0;margin-right:-4px;margin-top:8px;max-width:256px;transform-origin:top right;background-color:var(--moonbase-background-color);box-shadow:#0000001a 0 10px 15px -3px,#0000001a 0 4px 6px -4px,#00000040 0 0 0 1px;z-index:999999;border-radius:var(--moonbase-border-radius);overflow:hidden}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list:focus{outline:none}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button{border-radius:0}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button>span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;display:block;margin:0!important}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:first-child{border-top-right-radius:var(--moonbase-border-radius);border-top-left-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:last-child{border-bottom-right-radius:var(--moonbase-border-radius);border-bottom-left-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button,#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:hover,#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:focus,#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:active{color:var(--moonbase-text-color);background-color:transparent;margin:0;padding:8px;height:unset;width:unset}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:hover,#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:focus,#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button[data-active]{background-color:hsl(from var(--moonbase-background-color) h s calc(l + calc(5 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button:focus,#moonbase .moonbase\\:product-downloads .moonbase\\:product-downloads-list button[data-active]{box-shadow:none}#moonbase .moonbase\\:product-activations{position:absolute;right:8px;margin-top:8px;transform-origin:top right;background-color:var(--moonbase-background-color);box-shadow:#0000001a 0 10px 15px -3px,#0000001a 0 4px 6px -4px,#00000040 0 0 0 1px;z-index:999999;border-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-activations>thead{border-bottom:1px solid rgb(from var(--moonbase-text-color) r g b / .25)}#moonbase .moonbase\\:product-activations>thead>tr>th{white-space:nowrap;font-size:14px;font-weight:600;line-height:20px;color:hsl(from var(--moonbase-text-color) h s calc(l - calc(10 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:product-activations>thead>tr>th:first-child{width:100%;padding:8px 12px 8px 16px;border-top-left-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-activations>thead>tr>th:not(:first-child,:last-child){text-align:center;padding:8px 12px}#moonbase .moonbase\\:product-activations>thead>tr>th:last-child{text-align:right;padding:8px 16px 8px 12px;border-top-right-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-activations>tbody>:not(:first-child){border-top-width:1px;border-color:#0000001a}#moonbase .moonbase\\:product-activations>tbody>tr>td{white-space:nowrap;text-overflow:ellipsis;position:relative;font-size:14px;font-weight:600;line-height:20px}#moonbase .moonbase\\:product-activations>tbody>tr>td:first-child{width:100%;padding:8px 12px 8px 16px;border-top-left-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>svg{height:16px;width:16px;display:inline;margin-right:8px}#moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div{display:flex;align-items:center}#moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color, rgb(30 64 175))}#moonbase .moonbase\\:product-activations>tbody>tr>td:first-child>div>span{margin-left:8px;font-size:14px;font-weight:500;line-height:20px}#moonbase .moonbase\\:product-activations>tbody>tr>td:not(:first-child,:last-child){text-align:center;padding:14px 12px}#moonbase .moonbase\\:product-activations>tbody>tr>td:last-child{text-align:right;padding:14px 16px 14px 12px;border-top-right-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:product-activations>tbody>tr>td:last-child>div{display:flex;align-items:center;justify-content:flex-end}#moonbase .moonbase\\:product-activations>tbody>tr>td:last-child>div>:not(:first-child){margin-left:8px}#moonbase .moonbase\\:product-activations>tbody>tr>td>button{margin:auto}#moonbase .moonbase\\:product-activations>tbody>tr>td>button,#moonbase .moonbase\\:product-activations>tbody>tr>td>button:hover,#moonbase .moonbase\\:product-activations>tbody>tr>td>button:focus,#moonbase .moonbase\\:product-activations>tbody>tr>td>button:active{width:100%}#moonbase .moonbase\\:products{min-width:calc(100% + 128px);margin:0 -64px}#moonbase .moonbase\\:products>thead{border-bottom:1px solid rgb(from var(--moonbase-text-color) r g b / .25)}#moonbase .moonbase\\:products>thead>tr>th{white-space:nowrap;font-size:14px;font-weight:600;line-height:20px;color:hsl(from var(--moonbase-text-color) h s calc(l - calc(10 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:products>thead>tr>th:last-child{text-align:right;padding:14px 16px 14px 12px}#moonbase .moonbase\\:products>thead>tr>th:first-child{text-align:left;width:100%;padding:14px 12px 14px 16px}#moonbase .moonbase\\:products>thead>tr>th:not(:first-child,:last-child){text-align:center;padding:14px 12px}#moonbase .moonbase\\:products>tbody>:not(:first-child){border-top-width:1px;border-color:#0000001a}#moonbase .moonbase\\:products>tbody>tr>td{white-space:nowrap;text-overflow:ellipsis;position:relative}#moonbase .moonbase\\:products>tbody>tr>td:first-child{width:100%;padding:14px 12px 14px 16px}#moonbase .moonbase\\:products>tbody>tr>td:first-child>svg{height:16px;width:16px;display:inline;margin-right:8px}#moonbase .moonbase\\:products>tbody>tr>td:first-child>div{display:flex;align-items:center}#moonbase .moonbase\\:products>tbody>tr>td:first-child>div>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:products>tbody>tr>td:first-child>div>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}#moonbase .moonbase\\:products>tbody>tr>td:first-child>div>span{margin-left:8px;font-size:14px;font-weight:500;line-height:20px}#moonbase .moonbase\\:products>tbody>tr>td:not(:first-child,:last-child){text-align:center;padding:14px 12px}#moonbase .moonbase\\:products>tbody>tr>td:last-child{text-align:right;padding:14px 16px 14px 12px}#moonbase .moonbase\\:products>tbody>tr>td:last-child>div{display:flex;align-items:center;justify-content:flex-end}#moonbase .moonbase\\:products>tbody>tr>td:last-child>div>:not(:first-child){margin-left:8px}#moonbase .moonbase\\:products>tbody>tr>td>button{margin:auto}#moonbase .moonbase\\:products>tbody>tr>td>button,#moonbase .moonbase\\:products>tbody>tr>td>button:hover,#moonbase .moonbase\\:products>tbody>tr>td>button:focus,#moonbase .moonbase\\:products>tbody>tr>td>button:active{width:100%}#moonbase .moonbase\\:redeem>form{display:flex;flex-direction:column;max-width:240px;margin:64px auto 32px}#moonbase .moonbase\\:redeem>form>*:not(:first-child){margin-top:16px}#moonbase .moonbase\\:redeem>form>button{margin:auto}#moonbase .moonbase\\:redeem>form .moonbase\\:error{text-align:center;color:var(--moonbase-error-color, rgb(167, 33, 33));font-weight:600;font-size:14px;line-height:16px;min-height:16px;opacity:0;transition:opacity .2s ease-in}#moonbase .moonbase\\:redeem>form .moonbase\\:error[data-visible]{transition:opacity .3s ease-in;opacity:1}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher{max-width:320px;margin:16px auto;padding:16px;box-shadow:0 0 0 2px var(--moonbase-button-shadow-color);border-radius:var(--moonbase-border-radius)}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-products>*:not(:first-child){border-top:1px solid rgb(from var(--moonbase-text-color) r g b / .3)}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product,#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle{display:flex;align-items:center;padding:8px 0}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>*:not(:first-child),#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>*:not(:first-child){margin-left:12px}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:first-child,#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:first-child{flex-shrink:0}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:first-child>img,#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:first-child>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:first-child>.moonbase\\:image-placeholder,#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:first-child>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:last-child,#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:last-child{flex:1;min-width:0}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:last-child>:first-child,#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:last-child>:first-child{font-size:14px;font-weight:500;line-height:20px}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-product>:last-child>:last-child,#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle>:last-child>:last-child{font-size:14px;line-height:20px;text-overflow:ellipsis}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle-products{padding-left:32px}#moonbase .moonbase\\:redeem .moonbase\\:redeem-voucher-bundle-products>*:not(:first-child){border-top:1px solid rgb(from var(--moonbase-text-color) r g b / .3)}#moonbase .moonbase\\:customer{display:inline-block;color:var(--moonbase-text-color);padding:32px 64px 16px}@media (min-width: 640px){#moonbase .moonbase\\:customer{width:100vw;max-width:512px}}#moonbase .moonbase\\:customer>[role=tablist]{margin:0 -32px 16px;padding:0 32px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(from var(--moonbase-button-background-color, var(--moonbase-primary-color)) r g b / .25);display:flex}#moonbase .moonbase\\:customer>[role=tablist]>[role=tab]{margin-bottom:-1px;width:33%;padding:8px 4px;text-align:center;font-size:14px;font-weight:500;line-height:20px;border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:transparent;color:hsl(from var(--moonbase-text-color) h s calc(l - calc(15 * var(--moonbase-dark-mode, -1))));transition-property:border-bottom-color,color;transition-duration:.25s;transition-timing-function:ease-out}#moonbase .moonbase\\:customer>[role=tablist]>[role=tab]:hover{color:hsl(from var(--moonbase-text-color) h s calc(l - calc(5 * var(--moonbase-dark-mode, -1))));border-bottom-color:hsl(from var(--moonbase-text-color) h s calc(l - calc(15 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:customer>[role=tablist]>[role=tab][aria-selected=true]{color:hsl(from var(--moonbase-primary-color) h s calc(l + calc(15 * var(--moonbase-dark-mode, -1))));border-bottom-color:hsl(from var(--moonbase-primary-color) h s calc(l + calc(10 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:auto-activate .moonbase\\:loader{display:flex;align-items:center;flex-direction:column;padding:36px 16px;text-align:center}#moonbase .moonbase\\:auto-activate .moonbase\\:loader svg{height:24px;width:24px}#moonbase .moonbase\\:auto-activate .moonbase\\:loader h3{color:var(--moonbase-text-color);font-size:18px;font-weight:500;line-height:24px}#moonbase .moonbase\\:auto-activate .moonbase\\:loader p{margin-top:4px;color:hsl(from var(--moonbase-text-color) h s calc(l - calc(10 * var(--moonbase-dark-mode, -1))));font-size:14px;font-weight:500;line-height:18px}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product{display:flex;align-items:center}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product div{margin-left:8px}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product div h2{color:var(--moonbase-text-color);font-size:16px;font-weight:500;line-height:20px}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-product div h3{margin-top:2px;color:hsl(from var(--moonbase-text-color) h s calc(l - calc(10 * var(--moonbase-dark-mode, -1))));font-size:14px;font-weight:500;line-height:18px}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content{margin-top:16px;text-align:center;color:hsl(from var(--moonbase-text-color) h s calc(l - calc(10 * var(--moonbase-dark-mode, -1))));font-size:16px;font-weight:500;line-height:20px}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content .moonbase\\:auto-activate-cta{margin:16px auto 0;display:flex;justify-content:center;text-align:center}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content .moonbase\\:auto-activate-cta>:not(:first-child){margin-left:8px}#moonbase .moonbase\\:auto-activate .moonbase\\:auto-activate-content .moonbase\\:auto-activate-trial{margin-top:16px;padding-top:16px;border-top-width:1px;border-color:rgb(from var(--moonbase-text-color) r g b / .2);border-style:solid}#moonbase .moonbase\\:activation{display:inline-block;color:var(--moonbase-text-color, black);padding:32px 64px}@media (min-width: 640px){#moonbase .moonbase\\:activation{width:100vw;max-width:416px}}#moonbase .moonbase\\:activation>h3{font-size:18px;line-height:24px;font-weight:500;text-align:center;margin-bottom:24px}#moonbase .moonbase\\:download-product .moonbase\\:loader{display:flex;align-items:center;flex-direction:column;padding:36px 16px;text-align:center}#moonbase .moonbase\\:download-product .moonbase\\:loader svg{height:24px;width:24px}#moonbase .moonbase\\:download-product .moonbase\\:loader h3{color:var(--moonbase-text-color);font-size:18px;font-weight:500;line-height:24px}#moonbase .moonbase\\:download-product .moonbase\\:loader p{margin-top:4px;color:hsl(from var(--moonbase-text-color) h s calc(l - calc(10 * var(--moonbase-dark-mode, -1))));font-size:14px;font-weight:500;line-height:18px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product{display:flex;align-items:center}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product>img{height:42px;width:42px;flex:none;border-radius:6px;object-fit:cover;object-position:center}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product>.moonbase\\:image-placeholder{height:42px;width:42px;flex:none;border-radius:6px;background:var(--moonbase-primary-color)}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product div{margin-left:8px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product div h2{color:var(--moonbase-text-color);font-size:16px;font-weight:500;line-height:20px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product div h2 span{opacity:.75;font-size:14px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product div h3{margin-top:2px;color:hsl(from var(--moonbase-text-color) h s calc(l - calc(10 * var(--moonbase-dark-mode, -1))));font-size:14px;font-weight:500;line-height:18px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product div:last-of-type{flex-grow:1}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product>button{padding:8px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product>button>svg{height:16px;width:16px;display:block;margin:auto;color:var(--moonbase-text-color);transition:transform .25s ease-in-out;transform:rotate(90deg)}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product>button>span{display:block;font-size:12px;font-weight:500;line-height:14px;color:hsl(from var(--moonbase-text-color) h calc(s - 25) calc(l - calc(25 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:download-product .moonbase\\:download-product-product>button[data-open]>svg{transform:rotate(90deg) rotateY(180deg)}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content{margin-top:16px;text-align:left;color:hsl(from var(--moonbase-text-color) h calc(s - 25) calc(l - calc(10 * var(--moonbase-dark-mode, -1))));font-size:16px;font-weight:500;line-height:20px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content>:not(:last-child){margin-bottom:16px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-cta{margin:16px auto 0;display:flex;justify-content:center;text-align:center}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-cta>:not(:first-child){margin-left:8px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul{border-radius:6px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul>:not(:first-child){border-top:1px solid rgb(from var(--moonbase-text-color) r g b / .25)}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li{position:relative;display:flex;justify-content:space-between;transition:background-color .25s ease-in-out;padding:12px 16px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li:hover{background-color:#0000001a}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li:first-child{border-top-left-radius:6px;border-top-right-radius:6px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>:not(:first-child){margin-left:20px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child{min-width:0}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child .moonbase\\:download-product-download-name{font-weight:600;line-height:24px;font-size:14px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child .moonbase\\:download-product-download-description{display:flex;align-items:center;line-height:24px;font-size:14px;color:hsl(from var(--moonbase-text-color) h calc(s - 25) calc(l - calc(20 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child .moonbase\\:download-product-download-description svg{height:16px;width:16px;margin-right:6px;color:hsl(from var(--moonbase-text-color) h calc(s - 25) calc(l - calc(20 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:first-child .moonbase\\:download-product-download-description span{opacity:.5;margin:0 6px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:last-child{display:flex;align-items:center;flex-shrink:0}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content ul li>div:last-child svg{flex:none;height:20px;width:20px;color:hsl(from var(--moonbase-text-color) h calc(s - 25) calc(l - calc(20 * var(--moonbase-dark-mode, -1))))}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-release-description{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s ease-in-out}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-release-description>div{min-height:0;overflow:hidden;visibility:hidden;transition:visibility .5s ease-in-out}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-release-description[data-open]{grid-template-rows:1fr}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-release-description[data-open]>div{visibility:visible}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-release-description h3{color:hsl(from var(--moonbase-text-color) h s calc(l - calc(10 * var(--moonbase-dark-mode, -1))));font-size:14px;font-weight:600;line-height:18px}#moonbase .moonbase\\:download-product .moonbase\\:download-product-content .moonbase\\:download-product-release-description p{margin-top:4px;font-size:14px;line-height:18px;padding:4px;border:1px rgb(from var(--moonbase-text-color) r g b / .25) solid;border-radius:var(--moonbase-border-radius);white-space:pre-line;max-height:128px;overflow-y:auto}#moonbase .moonbase\\:download-product .moonbase\\:download-product-clicker{position:absolute;top:0;right:0;left:0;padding:-1px 0;bottom:0}#moonbase .moonbase\\:download{display:inline-block;color:var(--moonbase-text-color, black);padding:32px 64px}@media (min-width: 640px){#moonbase .moonbase\\:download{width:100vw;max-width:440px}}#moonbase .moonbase\\:download>h3{font-size:18px;line-height:24px;font-weight:500;text-align:center;margin-bottom:24px}#moonbase .moonbase\\:about{display:inline-flex;color:var(--moonbase-text-color, black);padding:32px 64px;flex-direction:column;justify-content:center;align-items:center;text-align:center}@media (min-width: 640px){#moonbase .moonbase\\:about{width:100vw;max-width:440px}}#moonbase .moonbase\\:about>h3{font-size:18px;line-height:24px;font-weight:500;margin-top:16px}#moonbase .moonbase\\:about>h4{font-size:14px;line-height:18px;font-weight:300;margin-top:4px}#moonbase .moonbase\\:about>p{font-size:16px;line-height:20px;font-weight:300;color:hsl(from var(--moonbase-text-color) h s calc(l - 15));margin-top:16px}#moonbase .moonbase\\:about>p>a{text-decoration:underline}#moonbase,#moonbase *:not(svg,path),#moonbase :before,#moonbase :after{all:revert;box-sizing:border-box;border-width:0;border-style:solid}#moonbase *:not(svg,path){margin:0;padding:0;font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}:root{--moonbase-dark-mode: -1;--moonbase-text-color: rgb(17 24 39);--moonbase-primary-color: rgb(79 70 229);--moonbase-error-color: rgb(167, 33, 33);--moonbase-success-color: rgb(22 163 74);--moonbase-background-color: white;--moonbase-border-radius: 6px;--moonbase-button-padding: 8px 32px;--moonbase-button-text-color: rgb(255 255 255);--moonbase-button-shadow-color: rgb(0 0 0 / .05);--moonbase-button-success-color: rgb(22 163 74);--moonbase-button-error-color: rgb(167, 33, 33);--moonbase-input-padding: 8px 12px;--moonbase-input-shadow-color: rgb(0 0 0 / .05);--moonbase-input-error-color: rgb(167, 33, 33);--moonbase-input-background-color: transparent;--moonbase-modal-padding: 8px 32px;--moonbase-modal-shadow-color: rgb(0 0 0 / .05)}#moonbase .moonbase\\:scale-enter-active{transition-property:transform,opacity;transition-timing-function:ease-out;transition-duration:.2s}#moonbase .moonbase\\:scale-enter-from{opacity:0;transform:scale(.95)}#moonbase .moonbase\\:scale-enter-to{opacity:1;transform:scale(1)}#moonbase .moonbase\\:scale-leave-active{transition-property:transform,opacity;transition-timing-function:ease-in;transition-duration:.15s}#moonbase .moonbase\\:scale-leave-from{opacity:1;transform:scale(1)}#moonbase .moonbase\\:scale-leave-to{opacity:0;transform:scale(.95)}#moonbase .moonbase\\:slide-left-enter-active{transition-property:transform,opacity;transition-timing-function:ease-out;transition-duration:.2s}#moonbase .moonbase\\:slide-left-enter-from{opacity:0;transform:translate(16px)}#moonbase .moonbase\\:slide-left-enter-to{opacity:1;transform:translate(0)}#moonbase .moonbase\\:slide-left-leave-active{transition-property:transform,opacity;transition-timing-function:ease-in;transition-duration:.15s}#moonbase .moonbase\\:slide-left-leave-from{opacity:1;transform:translate(0)}#moonbase .moonbase\\:slide-left-leave-to{opacity:0;transform:translate(-16px)}#moonbase .moonbase\\:sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}#moonbase a{color:inherit;text-decoration:inherit}#moonbase input,#moonbase button,#moonbase textarea,#moonbase select{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;background:none;font-size:100%;line-height:1.15;margin:0;padding:0;color:inherit}#moonbase button,#moonbase select{text-transform:none}#moonbase button,#moonbase [role=button]{cursor:pointer}#moonbase button,#moonbase [type=button],#moonbase [type=reset],#moonbase [type=submit]{-webkit-appearance:button}#moonbase h1,#moonbase h2,#moonbase h3,#moonbase h4,#moonbase h5,#moonbase h6{font-size:inherit;font-weight:inherit}#moonbase b,#moonbase strong{font-weight:bolder}#moonbase svg,.moonbase svg *{color:inherit}#moonbase table{text-indent:0;border-color:inherit;border-collapse:collapse}#moonbase img,#moonbase svg,#moonbase video,#moonbase canvas,#moonbase audio,#moonbase iframe,#moonbase embed,#moonbase object{display:block;vertical-align:middle}#moonbase ol,#moonbase ul,#moonbase menu{list-style:none;margin:0;padding:0}#moonbase img,#moonbase video{max-width:100%;height:auto}#moonbase :disabled{cursor:default}#moonbase [hidden]{display:none}#moonbase ::-moz-focus-inner{border-style:none;padding:0}#moonbase :-moz-focusring{outline:none}#moonbase :-moz-ui-invalid{box-shadow:none}')),document.head.appendChild(o)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
+ (function(kt,we){typeof exports=="object"&&typeof module<"u"?we(exports):typeof define=="function"&&define.amd?define(["exports"],we):(kt=typeof globalThis<"u"?globalThis:kt||self,we(kt.Moonbase={}))})(this,function(kt){"use strict";var D0=Object.defineProperty;var I0=(kt,we,Tn)=>we in kt?D0(kt,we,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):kt[we]=Tn;var Tr=(kt,we,Tn)=>I0(kt,typeof we!="symbol"?we+"":we,Tn);var we;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const s={};for(const i of o)s[i]=i;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(const a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(const i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(we||(we={}));var Tn;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Tn||(Tn={}));const se=we.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Pn=e=>{switch(typeof e){case"undefined":return se.undefined;case"string":return se.string;case"number":return isNaN(e)?se.nan:se.number;case"boolean":return se.boolean;case"function":return se.function;case"bigint":return se.bigint;case"symbol":return se.symbol;case"object":return Array.isArray(e)?se.array:e===null?se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?se.promise:typeof Map<"u"&&e instanceof Map?se.map:typeof Set<"u"&&e instanceof Set?se.set:typeof Date<"u"&&e instanceof Date?se.date:se.object;default:return se.unknown}},q=we.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),If=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ct extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,l=0;for(;l<i.path.length;){const u=i.path[l];l===i.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(i))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return o(this),r}static assert(t){if(!(t instanceof Ct))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,we.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Ct.create=e=>new Ct(e);const Pr=(e,t)=>{let n;switch(e.code){case q.invalid_type:e.received===se.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case q.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,we.jsonStringifyReplacer)}`;break;case q.unrecognized_keys:n=`Unrecognized key(s) in object: ${we.joinValues(e.keys,", ")}`;break;case q.invalid_union:n="Invalid input";break;case q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${we.joinValues(e.options)}`;break;case q.invalid_enum_value:n=`Invalid enum value. Expected ${we.joinValues(e.options)}, received '${e.received}'`;break;case q.invalid_arguments:n="Invalid function arguments";break;case q.invalid_return_type:n="Invalid function return type";break;case q.invalid_date:n="Invalid date";break;case q.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:we.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case q.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case q.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case q.custom:n="Invalid input";break;case q.invalid_intersection_types:n="Intersection results could not be merged";break;case q.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case q.not_finite:n="Number must be finite";break;default:n=t.defaultError,we.assertNever(e)}return{message:n}};let ml=Pr;function Af(e){ml=e}function is(){return ml}const as=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,s=[...n,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}},Vf=[];function oe(e,t){const n=is(),r=as({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Pr?void 0:Pr].filter(o=>!!o)});e.common.issues.push(r)}class ut{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return ye;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const s=await o.key,i=await o.value;r.push({key:s,value:i})}return ut.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return ye;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(r[s.value]=i.value)}return{status:t.value,value:r}}}const ye=Object.freeze({status:"aborted"}),$r=e=>({status:"dirty",value:e}),gt=e=>({status:"valid",value:e}),Ei=e=>e.status==="aborted",Oi=e=>e.status==="dirty",Xr=e=>e.status==="valid",Qr=e=>typeof Promise<"u"&&e instanceof Promise;function ls(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function vl(e,t,n,r,o){if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}typeof SuppressedError=="function"&&SuppressedError;var ue;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ue||(ue={}));var eo,to;class Jt{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const gl=(e,t)=>{if(Xr(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Ct(e.common.issues);return this._error=n,this._error}}};function Ne(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(i,a)=>{var l,u;const{message:c}=e;return i.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:(l=c??r)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(u=c??n)!==null&&u!==void 0?u:a.defaultError}},description:o}}class xe{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Pn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Pn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ut,ctx:{common:t.parent.common,data:t.data,parsedType:Pn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Qr(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Pn(t)},s=this._parseSync({data:t,path:o.path,parent:o});return gl(o,s)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Pn(t)},o=this._parse({data:t,path:r.path,parent:r}),s=await(Qr(o)?o:Promise.resolve(o));return gl(r,s)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:q.custom,...r(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new Bt({schema:this,typeName:me.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Xt.create(this,this._def)}nullable(){return An.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ft.create(this,this._def)}promise(){return Vr.create(this,this._def)}or(t){return so.create([this,t],this._def)}and(t){return io.create(this,t,this._def)}transform(t){return new Bt({...Ne(this._def),schema:this,typeName:me.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new fo({...Ne(this._def),innerType:this,defaultValue:n,typeName:me.ZodDefault})}brand(){return new Si({typeName:me.ZodBranded,type:this,...Ne(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new po({...Ne(this._def),innerType:this,catchValue:n,typeName:me.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ho.create(this,t)}readonly(){return mo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Rf=/^c[^\s-]{8,}$/i,jf=/^[0-9a-z]+$/,Mf=/^[0-9A-HJKMNP-TV-Z]{26}$/,Lf=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Uf=/^[a-z0-9_-]{21}$/i,Ff=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Bf=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Hf="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ni;const Zf=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,qf=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Wf=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,yl="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",zf=new RegExp(`^${yl}$`);function bl(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function Kf(e){return new RegExp(`^${bl(e)}$`)}function _l(e){let t=`${yl}T${bl(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Gf(e,t){return!!((t==="v4"||!t)&&Zf.test(e)||(t==="v6"||!t)&&qf.test(e))}class Ut extends xe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==se.string){const s=this._getOrReturnCtx(t);return oe(s,{code:q.invalid_type,expected:se.string,received:s.parsedType}),ye}const r=new ut;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(o=this._getOrReturnCtx(t,o),oe(o,{code:q.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")t.data.length>s.value&&(o=this._getOrReturnCtx(t,o),oe(o,{code:q.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.length<s.value;(i||a)&&(o=this._getOrReturnCtx(t,o),i?oe(o,{code:q.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&oe(o,{code:q.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")Bf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"email",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")Ni||(Ni=new RegExp(Hf,"u")),Ni.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"emoji",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")Lf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"uuid",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")Uf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"nanoid",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")Rf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"cuid",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")jf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"cuid2",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")Mf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"ulid",code:q.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),oe(o,{validation:"url",code:q.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"regex",code:q.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(t,o),oe(o,{code:q.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(o=this._getOrReturnCtx(t,o),oe(o,{code:q.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(o=this._getOrReturnCtx(t,o),oe(o,{code:q.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?_l(s).test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{code:q.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?zf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{code:q.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?Kf(s).test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{code:q.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?Ff.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"duration",code:q.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?Gf(t.data,s.version)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"ip",code:q.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?Wf.test(t.data)||(o=this._getOrReturnCtx(t,o),oe(o,{validation:"base64",code:q.invalid_string,message:s.message}),r.dirty()):we.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:q.invalid_string,...ue.errToObj(r)})}_addCheck(t){return new Ut({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ue.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ue.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ue.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ue.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ue.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ue.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ue.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ue.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ue.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ue.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...ue.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ue.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ue.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ue.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ue.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ue.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ue.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ue.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ue.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ue.errToObj(n)})}nonempty(t){return this.min(1,ue.errToObj(t))}trim(){return new Ut({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ut({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ut({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ut.create=e=>{var t;return new Ut({checks:[],typeName:me.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ne(e)})};function Jf(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,s=parseInt(e.toFixed(o).replace(".","")),i=parseInt(t.toFixed(o).replace(".",""));return s%i/Math.pow(10,o)}class $n extends xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==se.number){const s=this._getOrReturnCtx(t);return oe(s,{code:q.invalid_type,expected:se.number,received:s.parsedType}),ye}let r;const o=new ut;for(const s of this._def.checks)s.kind==="int"?we.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),oe(r,{code:q.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:q.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:q.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?Jf(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),oe(r,{code:q.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),oe(r,{code:q.not_finite,message:s.message}),o.dirty()):we.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ue.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ue.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ue.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ue.toString(n))}setLimit(t,n,r,o){return new $n({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ue.toString(o)}]})}_addCheck(t){return new $n({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ue.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ue.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ue.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ue.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ue.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ue.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&we.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}$n.create=e=>new $n({checks:[],typeName:me.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ne(e)});class Dn extends xe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==se.bigint){const s=this._getOrReturnCtx(t);return oe(s,{code:q.invalid_type,expected:se.bigint,received:s.parsedType}),ye}let r;const o=new ut;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:q.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:q.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),oe(r,{code:q.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):we.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ue.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ue.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ue.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ue.toString(n))}setLimit(t,n,r,o){return new Dn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ue.toString(o)}]})}_addCheck(t){return new Dn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ue.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ue.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Dn.create=e=>{var t;return new Dn({checks:[],typeName:me.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ne(e)})};class no extends xe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==se.boolean){const r=this._getOrReturnCtx(t);return oe(r,{code:q.invalid_type,expected:se.boolean,received:r.parsedType}),ye}return gt(t.data)}}no.create=e=>new no({typeName:me.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ne(e)});class rr extends xe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==se.date){const s=this._getOrReturnCtx(t);return oe(s,{code:q.invalid_type,expected:se.date,received:s.parsedType}),ye}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return oe(s,{code:q.invalid_date}),ye}const r=new ut;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(o=this._getOrReturnCtx(t,o),oe(o,{code:q.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(o=this._getOrReturnCtx(t,o),oe(o,{code:q.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):we.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new rr({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ue.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ue.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}rr.create=e=>new rr({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:me.ZodDate,...Ne(e)});class us extends xe{_parse(t){if(this._getType(t)!==se.symbol){const r=this._getOrReturnCtx(t);return oe(r,{code:q.invalid_type,expected:se.symbol,received:r.parsedType}),ye}return gt(t.data)}}us.create=e=>new us({typeName:me.ZodSymbol,...Ne(e)});class ro extends xe{_parse(t){if(this._getType(t)!==se.undefined){const r=this._getOrReturnCtx(t);return oe(r,{code:q.invalid_type,expected:se.undefined,received:r.parsedType}),ye}return gt(t.data)}}ro.create=e=>new ro({typeName:me.ZodUndefined,...Ne(e)});class oo extends xe{_parse(t){if(this._getType(t)!==se.null){const r=this._getOrReturnCtx(t);return oe(r,{code:q.invalid_type,expected:se.null,received:r.parsedType}),ye}return gt(t.data)}}oo.create=e=>new oo({typeName:me.ZodNull,...Ne(e)});class Dr extends xe{constructor(){super(...arguments),this._any=!0}_parse(t){return gt(t.data)}}Dr.create=e=>new Dr({typeName:me.ZodAny,...Ne(e)});class or extends xe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return gt(t.data)}}or.create=e=>new or({typeName:me.ZodUnknown,...Ne(e)});class pn extends xe{_parse(t){const n=this._getOrReturnCtx(t);return oe(n,{code:q.invalid_type,expected:se.never,received:n.parsedType}),ye}}pn.create=e=>new pn({typeName:me.ZodNever,...Ne(e)});class cs extends xe{_parse(t){if(this._getType(t)!==se.undefined){const r=this._getOrReturnCtx(t);return oe(r,{code:q.invalid_type,expected:se.void,received:r.parsedType}),ye}return gt(t.data)}}cs.create=e=>new cs({typeName:me.ZodVoid,...Ne(e)});class Ft extends xe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==se.array)return oe(n,{code:q.invalid_type,expected:se.array,received:n.parsedType}),ye;if(o.exactLength!==null){const i=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(i||a)&&(oe(n,{code:i?q.too_big:q.too_small,minimum:a?o.exactLength.value:void 0,maximum:i?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(oe(n,{code:q.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(oe(n,{code:q.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>o.type._parseAsync(new Jt(n,i,n.path,a)))).then(i=>ut.mergeArray(r,i));const s=[...n.data].map((i,a)=>o.type._parseSync(new Jt(n,i,n.path,a)));return ut.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new Ft({...this._def,minLength:{value:t,message:ue.toString(n)}})}max(t,n){return new Ft({...this._def,maxLength:{value:t,message:ue.toString(n)}})}length(t,n){return new Ft({...this._def,exactLength:{value:t,message:ue.toString(n)}})}nonempty(t){return this.min(1,t)}}Ft.create=(e,t)=>new Ft({type:e,minLength:null,maxLength:null,exactLength:null,typeName:me.ZodArray,...Ne(t)});function Ir(e){if(e instanceof Ke){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Xt.create(Ir(r))}return new Ke({...e._def,shape:()=>t})}else return e instanceof Ft?new Ft({...e._def,type:Ir(e.element)}):e instanceof Xt?Xt.create(Ir(e.unwrap())):e instanceof An?An.create(Ir(e.unwrap())):e instanceof Yt?Yt.create(e.items.map(t=>Ir(t))):e}class Ke extends xe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=we.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==se.object){const u=this._getOrReturnCtx(t);return oe(u,{code:q.invalid_type,expected:se.object,received:u.parsedType}),ye}const{status:r,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof pn&&this._def.unknownKeys==="strip"))for(const u in o.data)i.includes(u)||a.push(u);const l=[];for(const u of i){const c=s[u],d=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Jt(o,d,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof pn){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(u==="strict")a.length>0&&(oe(o,{code:q.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of a){const d=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Jt(o,d,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key,f=await c.value;u.push({key:d,value:f,alwaysSet:c.alwaysSet})}return u}).then(u=>ut.mergeObjectSync(r,u)):ut.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ue.errToObj,new Ke({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,s,i,a;const l=(i=(s=(o=this._def).errorMap)===null||s===void 0?void 0:s.call(o,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=ue.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Ke({...this._def,unknownKeys:"strip"})}passthrough(){return new Ke({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ke({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ke({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:me.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ke({...this._def,catchall:t})}pick(t){const n={};return we.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Ke({...this._def,shape:()=>n})}omit(t){const n={};return we.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Ke({...this._def,shape:()=>n})}deepPartial(){return Ir(this)}partial(t){const n={};return we.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new Ke({...this._def,shape:()=>n})}required(t){const n={};return we.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Xt;)s=s._def.innerType;n[r]=s}}),new Ke({...this._def,shape:()=>n})}keyof(){return wl(we.objectKeys(this.shape))}}Ke.create=(e,t)=>new Ke({shape:()=>e,unknownKeys:"strip",catchall:pn.create(),typeName:me.ZodObject,...Ne(t)}),Ke.strictCreate=(e,t)=>new Ke({shape:()=>e,unknownKeys:"strict",catchall:pn.create(),typeName:me.ZodObject,...Ne(t)}),Ke.lazycreate=(e,t)=>new Ke({shape:e,unknownKeys:"strip",catchall:pn.create(),typeName:me.ZodObject,...Ne(t)});class so extends xe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(s){for(const a of s)if(a.result.status==="valid")return a.result;for(const a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new Ct(a.ctx.common.issues));return oe(n,{code:q.invalid_union,unionErrors:i}),ye}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(l=>new Ct(l));return oe(n,{code:q.invalid_union,unionErrors:a}),ye}}get options(){return this._def.options}}so.create=(e,t)=>new so({options:e,typeName:me.ZodUnion,...Ne(t)});const hn=e=>e instanceof lo?hn(e.schema):e instanceof Bt?hn(e.innerType()):e instanceof uo?[e.value]:e instanceof In?e.options:e instanceof co?we.objectValues(e.enum):e instanceof fo?hn(e._def.innerType):e instanceof ro?[void 0]:e instanceof oo?[null]:e instanceof Xt?[void 0,...hn(e.unwrap())]:e instanceof An?[null,...hn(e.unwrap())]:e instanceof Si||e instanceof mo?hn(e.unwrap()):e instanceof po?hn(e._def.innerType):[];class ds extends xe{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.object)return oe(n,{code:q.invalid_type,expected:se.object,received:n.parsedType}),ye;const r=this.discriminator,o=n.data[r],s=this.optionsMap.get(o);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(oe(n,{code:q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ye)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const s of n){const i=hn(s.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of i){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,s)}}return new ds({typeName:me.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Ne(r)})}}function xi(e,t){const n=Pn(e),r=Pn(t);if(e===t)return{valid:!0,data:e};if(n===se.object&&r===se.object){const o=we.objectKeys(t),s=we.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(const a of s){const l=xi(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===se.array&&r===se.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s<e.length;s++){const i=e[s],a=t[s],l=xi(i,a);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===se.date&&r===se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class io extends xe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=(s,i)=>{if(Ei(s)||Ei(i))return ye;const a=xi(s.value,i.value);return a.valid?((Oi(s)||Oi(i))&&n.dirty(),{status:n.value,value:a.data}):(oe(r,{code:q.invalid_intersection_types}),ye)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}io.create=(e,t,n)=>new io({left:e,right:t,typeName:me.ZodIntersection,...Ne(n)});class Yt extends xe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.array)return oe(r,{code:q.invalid_type,expected:se.array,received:r.parsedType}),ye;if(r.data.length<this._def.items.length)return oe(r,{code:q.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&r.data.length>this._def.items.length&&(oe(r,{code:q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Jt(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>ut.mergeArray(n,i)):ut.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new Yt({...this._def,rest:t})}}Yt.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Yt({items:e,typeName:me.ZodTuple,rest:null,...Ne(t)})};class ao extends xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.object)return oe(r,{code:q.invalid_type,expected:se.object,received:r.parsedType}),ye;const o=[],s=this._def.keyType,i=this._def.valueType;for(const a in r.data)o.push({key:s._parse(new Jt(r,a,r.path,a)),value:i._parse(new Jt(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?ut.mergeObjectAsync(n,o):ut.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof xe?new ao({keyType:t,valueType:n,typeName:me.ZodRecord,...Ne(r)}):new ao({keyType:Ut.create(),valueType:t,typeName:me.ZodRecord,...Ne(n)})}}class fs extends xe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.map)return oe(r,{code:q.invalid_type,expected:se.map,received:r.parsedType}),ye;const o=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([a,l],u)=>({key:o._parse(new Jt(r,a,r.path,[u,"key"])),value:s._parse(new Jt(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return ye;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return ye;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}}fs.create=(e,t,n)=>new fs({valueType:t,keyType:e,typeName:me.ZodMap,...Ne(n)});class sr extends xe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==se.set)return oe(r,{code:q.invalid_type,expected:se.set,received:r.parsedType}),ye;const o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(oe(r,{code:q.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(oe(r,{code:q.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const s=this._def.valueType;function i(l){const u=new Set;for(const c of l){if(c.status==="aborted")return ye;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>s._parse(new Jt(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new sr({...this._def,minSize:{value:t,message:ue.toString(n)}})}max(t,n){return new sr({...this._def,maxSize:{value:t,message:ue.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}sr.create=(e,t)=>new sr({valueType:e,minSize:null,maxSize:null,typeName:me.ZodSet,...Ne(t)});class Ar extends xe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.function)return oe(n,{code:q.invalid_type,expected:se.function,received:n.parsedType}),ye;function r(a,l){return as({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,is(),Pr].filter(u=>!!u),issueData:{code:q.invalid_arguments,argumentsError:l}})}function o(a,l){return as({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,is(),Pr].filter(u=>!!u),issueData:{code:q.invalid_return_type,returnTypeError:l}})}const s={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof Vr){const a=this;return gt(async function(...l){const u=new Ct([]),c=await a._def.args.parseAsync(l,s).catch(m=>{throw u.addIssue(r(l,m)),u}),d=await Reflect.apply(i,this,c);return await a._def.returns._def.type.parseAsync(d,s).catch(m=>{throw u.addIssue(o(d,m)),u})})}else{const a=this;return gt(function(...l){const u=a._def.args.safeParse(l,s);if(!u.success)throw new Ct([r(l,u.error)]);const c=Reflect.apply(i,this,u.data),d=a._def.returns.safeParse(c,s);if(!d.success)throw new Ct([o(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ar({...this._def,args:Yt.create(t).rest(or.create())})}returns(t){return new Ar({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ar({args:t||Yt.create([]).rest(or.create()),returns:n||or.create(),typeName:me.ZodFunction,...Ne(r)})}}class lo extends xe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}lo.create=(e,t)=>new lo({getter:e,typeName:me.ZodLazy,...Ne(t)});class uo extends xe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return oe(n,{received:n.data,code:q.invalid_literal,expected:this._def.value}),ye}return{status:"valid",value:t.data}}get value(){return this._def.value}}uo.create=(e,t)=>new uo({value:e,typeName:me.ZodLiteral,...Ne(t)});function wl(e,t){return new In({values:e,typeName:me.ZodEnum,...Ne(t)})}class In extends xe{constructor(){super(...arguments),eo.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return oe(n,{expected:we.joinValues(r),received:n.parsedType,code:q.invalid_type}),ye}if(ls(this,eo)||vl(this,eo,new Set(this._def.values)),!ls(this,eo).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return oe(n,{received:n.data,code:q.invalid_enum_value,options:r}),ye}return gt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return In.create(t,{...this._def,...n})}exclude(t,n=this._def){return In.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}eo=new WeakMap,In.create=wl;class co extends xe{constructor(){super(...arguments),to.set(this,void 0)}_parse(t){const n=we.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==se.string&&r.parsedType!==se.number){const o=we.objectValues(n);return oe(r,{expected:we.joinValues(o),received:r.parsedType,code:q.invalid_type}),ye}if(ls(this,to)||vl(this,to,new Set(we.getValidEnumValues(this._def.values))),!ls(this,to).has(t.data)){const o=we.objectValues(n);return oe(r,{received:r.data,code:q.invalid_enum_value,options:o}),ye}return gt(t.data)}get enum(){return this._def.values}}to=new WeakMap,co.create=(e,t)=>new co({values:e,typeName:me.ZodNativeEnum,...Ne(t)});class Vr extends xe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==se.promise&&n.common.async===!1)return oe(n,{code:q.invalid_type,expected:se.promise,received:n.parsedType}),ye;const r=n.parsedType===se.promise?n.data:Promise.resolve(n.data);return gt(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Vr.create=(e,t)=>new Vr({type:e,typeName:me.ZodPromise,...Ne(t)});class Bt extends xe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===me.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{oe(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return ye;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?ye:l.status==="dirty"||n.value==="dirty"?$r(l.value):l});{if(n.value==="aborted")return ye;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?ye:a.status==="dirty"||n.value==="dirty"?$r(a.value):a}}if(o.type==="refinement"){const i=a=>{const l=o.refinement(a,s);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ye:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ye:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Xr(i))return i;const a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>Xr(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:n.value,value:a})):i);we.assertNever(o)}}Bt.create=(e,t,n)=>new Bt({schema:e,typeName:me.ZodEffects,effect:t,...Ne(n)}),Bt.createWithPreprocess=(e,t,n)=>new Bt({schema:t,effect:{type:"preprocess",transform:e},typeName:me.ZodEffects,...Ne(n)});class Xt extends xe{_parse(t){return this._getType(t)===se.undefined?gt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Xt.create=(e,t)=>new Xt({innerType:e,typeName:me.ZodOptional,...Ne(t)});class An extends xe{_parse(t){return this._getType(t)===se.null?gt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}An.create=(e,t)=>new An({innerType:e,typeName:me.ZodNullable,...Ne(t)});class fo extends xe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===se.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}fo.create=(e,t)=>new fo({innerType:e,typeName:me.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ne(t)});class po extends xe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Qr(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Ct(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ct(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}po.create=(e,t)=>new po({innerType:e,typeName:me.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ne(t)});class ps extends xe{_parse(t){if(this._getType(t)!==se.nan){const r=this._getOrReturnCtx(t);return oe(r,{code:q.invalid_type,expected:se.nan,received:r.parsedType}),ye}return{status:"valid",value:t.data}}}ps.create=e=>new ps({typeName:me.ZodNaN,...Ne(e)});const Yf=Symbol("zod_brand");class Si extends xe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class ho extends xe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?ye:s.status==="dirty"?(n.dirty(),$r(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ye:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new ho({in:t,out:n,typeName:me.ZodPipeline})}}class mo extends xe{_parse(t){const n=this._def.innerType._parse(t),r=o=>(Xr(o)&&(o.value=Object.freeze(o.value)),o);return Qr(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}mo.create=(e,t)=>new mo({innerType:e,typeName:me.ZodReadonly,...Ne(t)});function El(e,t={},n){return e?Dr.create().superRefine((r,o)=>{var s,i;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(i=(s=a.fatal)!==null&&s!==void 0?s:n)!==null&&i!==void 0?i:!0,u=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...u,fatal:l})}}):Dr.create()}const Xf={object:Ke.lazycreate};var me;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(me||(me={}));const Qf=(e,t={message:`Input not instance of ${e.name}`})=>El(n=>n instanceof e,t),Ol=Ut.create,Nl=$n.create,ep=ps.create,tp=Dn.create,xl=no.create,np=rr.create,rp=us.create,op=ro.create,sp=oo.create,ip=Dr.create,ap=or.create,lp=pn.create,up=cs.create,cp=Ft.create,dp=Ke.create,fp=Ke.strictCreate,pp=so.create,hp=ds.create,mp=io.create,vp=Yt.create,gp=ao.create,yp=fs.create,bp=sr.create,_p=Ar.create,wp=lo.create,Ep=uo.create,Op=In.create,Np=co.create,xp=Vr.create,Sl=Bt.create,Sp=Xt.create,kp=An.create,Cp=Bt.createWithPreprocess,Tp=ho.create;var g=Object.freeze({__proto__:null,defaultErrorMap:Pr,setErrorMap:Af,getErrorMap:is,makeIssue:as,EMPTY_PATH:Vf,addIssueToContext:oe,ParseStatus:ut,INVALID:ye,DIRTY:$r,OK:gt,isAborted:Ei,isDirty:Oi,isValid:Xr,isAsync:Qr,get util(){return we},get objectUtil(){return Tn},ZodParsedType:se,getParsedType:Pn,ZodType:xe,datetimeRegex:_l,ZodString:Ut,ZodNumber:$n,ZodBigInt:Dn,ZodBoolean:no,ZodDate:rr,ZodSymbol:us,ZodUndefined:ro,ZodNull:oo,ZodAny:Dr,ZodUnknown:or,ZodNever:pn,ZodVoid:cs,ZodArray:Ft,ZodObject:Ke,ZodUnion:so,ZodDiscriminatedUnion:ds,ZodIntersection:io,ZodTuple:Yt,ZodRecord:ao,ZodMap:fs,ZodSet:sr,ZodFunction:Ar,ZodLazy:lo,ZodLiteral:uo,ZodEnum:In,ZodNativeEnum:co,ZodPromise:Vr,ZodEffects:Bt,ZodTransformer:Bt,ZodOptional:Xt,ZodNullable:An,ZodDefault:fo,ZodCatch:po,ZodNaN:ps,BRAND:Yf,ZodBranded:Si,ZodPipeline:ho,ZodReadonly:mo,custom:El,Schema:xe,ZodSchema:xe,late:Xf,get ZodFirstPartyTypeKind(){return me},coerce:{string:e=>Ut.create({...e,coerce:!0}),number:e=>$n.create({...e,coerce:!0}),boolean:e=>no.create({...e,coerce:!0}),bigint:e=>Dn.create({...e,coerce:!0}),date:e=>rr.create({...e,coerce:!0})},any:ip,array:cp,bigint:tp,boolean:xl,date:np,discriminatedUnion:hp,effect:Sl,enum:Op,function:_p,instanceof:Qf,intersection:mp,lazy:wp,literal:Ep,map:yp,nan:ep,nativeEnum:Np,never:lp,null:sp,nullable:kp,number:Nl,object:dp,oboolean:()=>xl().optional(),onumber:()=>Nl().optional(),optional:Sp,ostring:()=>Ol().optional(),pipeline:Tp,preprocess:Cp,promise:xp,record:gp,set:bp,strictObject:fp,string:Ol,symbol:rp,transformer:Sl,tuple:vp,undefined:op,union:pp,unknown:ap,void:up,NEVER:ye,ZodIssueCode:q,quotelessJson:If,ZodError:Ct}),kl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ki={exports:{}};(function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof kl<"u"&&kl,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(i){var a=typeof s<"u"&&s||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function u(h){return h&&DataView.prototype.isPrototypeOf(h)}if(l.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(h){return h&&c.indexOf(Object.prototype.toString.call(h))>-1};function f(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(h)||h==="")throw new TypeError('Invalid character in header field name: "'+h+'"');return h.toLowerCase()}function m(h){return typeof h!="string"&&(h=String(h)),h}function E(h){var V={next:function(){var ee=h.shift();return{done:ee===void 0,value:ee}}};return l.iterable&&(V[Symbol.iterator]=function(){return V}),V}function x(h){this.map={},h instanceof x?h.forEach(function(V,ee){this.append(ee,V)},this):Array.isArray(h)?h.forEach(function(V){this.append(V[0],V[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(V){this.append(V,h[V])},this)}x.prototype.append=function(h,V){h=f(h),V=m(V);var ee=this.map[h];this.map[h]=ee?ee+", "+V:V},x.prototype.delete=function(h){delete this.map[f(h)]},x.prototype.get=function(h){return h=f(h),this.has(h)?this.map[h]:null},x.prototype.has=function(h){return this.map.hasOwnProperty(f(h))},x.prototype.set=function(h,V){this.map[f(h)]=m(V)},x.prototype.forEach=function(h,V){for(var ee in this.map)this.map.hasOwnProperty(ee)&&h.call(V,this.map[ee],ee,this)},x.prototype.keys=function(){var h=[];return this.forEach(function(V,ee){h.push(ee)}),E(h)},x.prototype.values=function(){var h=[];return this.forEach(function(V){h.push(V)}),E(h)},x.prototype.entries=function(){var h=[];return this.forEach(function(V,ee){h.push([ee,V])}),E(h)},l.iterable&&(x.prototype[Symbol.iterator]=x.prototype.entries);function O(h){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}function I(h){return new Promise(function(V,ee){h.onload=function(){V(h.result)},h.onerror=function(){ee(h.error)}})}function j(h){var V=new FileReader,ee=I(V);return V.readAsArrayBuffer(h),ee}function $(h){var V=new FileReader,ee=I(V);return V.readAsText(h),ee}function z(h){for(var V=new Uint8Array(h),ee=new Array(V.length),ie=0;ie<V.length;ie++)ee[ie]=String.fromCharCode(V[ie]);return ee.join("")}function y(h){if(h.slice)return h.slice(0);var V=new Uint8Array(h.byteLength);return V.set(new Uint8Array(h)),V.buffer}function M(){return this.bodyUsed=!1,this._initBody=function(h){this.bodyUsed=this.bodyUsed,this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:l.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:l.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():l.arrayBuffer&&l.blob&&u(h)?(this._bodyArrayBuffer=y(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||d(h))?this._bodyArrayBuffer=y(h):this._bodyText=h=Object.prototype.toString.call(h):this._bodyText="",this.headers.get("content-type")||(typeof h=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var h=O(this);if(h)return h;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var h=O(this);return h||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(j)}),this.text=function(){var h=O(this);if(h)return h;if(this._bodyBlob)return $(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(z(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(A)}),this.json=function(){return this.text().then(JSON.parse)},this}var P=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function re(h){var V=h.toUpperCase();return P.indexOf(V)>-1?V:h}function S(h,V){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');V=V||{};var ee=V.body;if(h instanceof S){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,V.headers||(this.headers=new x(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!ee&&h._bodyInit!=null&&(ee=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=V.credentials||this.credentials||"same-origin",(V.headers||!this.headers)&&(this.headers=new x(V.headers)),this.method=re(V.method||this.method||"GET"),this.mode=V.mode||this.mode||null,this.signal=V.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ee)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(ee),(this.method==="GET"||this.method==="HEAD")&&(V.cache==="no-store"||V.cache==="no-cache")){var ie=/([?&])_=[^&]*/;if(ie.test(this.url))this.url=this.url.replace(ie,"$1_="+new Date().getTime());else{var ve=/\?/;this.url+=(ve.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})};function A(h){var V=new FormData;return h.trim().split("&").forEach(function(ee){if(ee){var ie=ee.split("="),ve=ie.shift().replace(/\+/g," "),le=ie.join("=").replace(/\+/g," ");V.append(decodeURIComponent(ve),decodeURIComponent(le))}}),V}function D(h){var V=new x,ee=h.replace(/\r?\n[\t ]+/g," ");return ee.split("\r").map(function(ie){return ie.indexOf(`
3
+ `)===0?ie.substr(1,ie.length):ie}).forEach(function(ie){var ve=ie.split(":"),le=ve.shift().trim();if(le){var Fe=ve.join(":").trim();V.append(le,Fe)}}),V}M.call(S.prototype);function k(h,V){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');V||(V={}),this.type="default",this.status=V.status===void 0?200:V.status,this.ok=this.status>=200&&this.status<300,this.statusText=V.statusText===void 0?"":""+V.statusText,this.headers=new x(V.headers),this.url=V.url||"",this._initBody(h)}M.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new x(this.headers),url:this.url})},k.error=function(){var h=new k(null,{status:0,statusText:""});return h.type="error",h};var L=[301,302,303,307,308];k.redirect=function(h,V){if(L.indexOf(V)===-1)throw new RangeError("Invalid status code");return new k(null,{status:V,headers:{location:h}})},i.DOMException=a.DOMException;try{new i.DOMException}catch{i.DOMException=function(V,ee){this.message=V,this.name=ee;var ie=Error(V);this.stack=ie.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function ne(h,V){return new Promise(function(ee,ie){var ve=new S(h,V);if(ve.signal&&ve.signal.aborted)return ie(new i.DOMException("Aborted","AbortError"));var le=new XMLHttpRequest;function Fe(){le.abort()}le.onload=function(){var Be={status:le.status,statusText:le.statusText,headers:D(le.getAllResponseHeaders()||"")};Be.url="responseURL"in le?le.responseURL:Be.headers.get("X-Request-URL");var St="response"in le?le.response:le.responseText;setTimeout(function(){ee(new k(St,Be))},0)},le.onerror=function(){setTimeout(function(){ie(new TypeError("Network request failed"))},0)},le.ontimeout=function(){setTimeout(function(){ie(new TypeError("Network request failed"))},0)},le.onabort=function(){setTimeout(function(){ie(new i.DOMException("Aborted","AbortError"))},0)};function mt(Be){try{return Be===""&&a.location.href?a.location.href:Be}catch{return Be}}le.open(ve.method,mt(ve.url),!0),ve.credentials==="include"?le.withCredentials=!0:ve.credentials==="omit"&&(le.withCredentials=!1),"responseType"in le&&(l.blob?le.responseType="blob":l.arrayBuffer&&ve.headers.get("Content-Type")&&ve.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(le.responseType="arraybuffer")),V&&typeof V.headers=="object"&&!(V.headers instanceof x)?Object.getOwnPropertyNames(V.headers).forEach(function(Be){le.setRequestHeader(Be,m(V.headers[Be]))}):ve.headers.forEach(function(Be,St){le.setRequestHeader(St,Be)}),ve.signal&&(ve.signal.addEventListener("abort",Fe),le.onreadystatechange=function(){le.readyState===4&&ve.signal.removeEventListener("abort",Fe)}),le.send(typeof ve._bodyInit>"u"?null:ve._bodyInit)})}return ne.polyfill=!0,a.fetch||(a.fetch=ne,a.Headers=x,a.Request=S,a.Response=k),i.Headers=x,i.Request=S,i.Response=k,i.fetch=ne,i})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=n.fetch?n:r;t=o.fetch,t.default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t})(ki,ki.exports);var $p=ki.exports;const hs=Pp($p);var Dp=Object.defineProperty,Cl=(e,t)=>{for(var n in t)Dp(e,n,{get:t[n],enumerable:!0})},Rr=g.record(g.number()),Ip=g.object({type:g.literal("PercentageOffDiscount"),name:g.string(),description:g.string().optional(),percentage:g.number(),total:Rr.optional(),isExclusive:g.boolean()}),Ap=g.object({type:g.literal("FlatAmountOffDiscount"),name:g.string(),description:g.string().optional(),total:Rr.optional(),isExclusive:g.boolean()}),Ci=g.discriminatedUnion("type",[Ip,Ap]),jr=g.object({id:g.string(),name:g.string(),originalPrice:Rr,price:Rr,hasDiscount:g.boolean(),discount:Ci.optional()});function vo(e){return g.object({items:g.array(e),hasMore:g.boolean(),next:g.string().nullable()})}function Tl(e){return g.object({value:e,quantity:g.number()})}var Qt=(e=>(e.Universal="Universal",e.Windows="Windows",e.Linux="Linux",e.Mac="Mac",e))(Qt||{}),Pl=g.object({name:g.string(),key:g.string(),platform:g.nativeEnum(Qt),size:g.number(),path:g.string().nullable()}),Ti=g.object({id:g.string(),name:g.string(),tagline:g.string(),website:g.string().optional(),iconUrl:g.string().optional(),numberOfLicenses:g.number().optional(),numberOfTrials:g.number().optional(),currentActivations:g.number().optional(),maxActivations:g.number().optional(),currentVersion:g.string().nullable(),version:g.string().optional(),prerelease:g.boolean().optional(),releaseDescription:g.string().optional(),downloadsNeedsUser:g.boolean(),downloadsNeedsOwnership:g.boolean(),downloads:g.array(Pl).optional()}),ms=g.object({id:g.string(),name:g.string(),tagline:g.string(),iconUrl:g.string().nullable(),website:g.string().nullish(),owned:g.boolean(),currentVersion:g.string().optional(),downloads:Pl.array().optional(),defaultVariation:jr.optional(),variations:jr.array().optional(),type:g.void().transform(()=>"product").pipe(g.literal("product"))}),$l=g.object({id:g.string(),name:g.string(),tagline:g.string(),iconUrl:g.string().nullable(),owned:g.boolean(),partial:g.boolean(),products:ms.and(g.object({included:g.boolean().optional()})).array(),defaultVariation:jr.optional(),variations:jr.array().optional(),type:g.void().transform(()=>"bundle").pipe(g.literal("bundle"))}),Vp=g.object({suggestedCurrency:g.string(),products:ms.array(),bundles:$l.array()}),en=(e=>(e.Requested="Requested",e.Fulfilled="Fulfilled",e.Completed="Completed",e.Cancelled="Cancelled",e))(en||{}),vs=g.object({id:g.string(),status:g.nativeEnum(en),product:ms,trialEligibility:g.object({eligible:g.boolean(),existing:g.boolean(),requiresAccount:g.boolean(),numberOfDaysPerProduct:g.number(),numberOfDaysRemaining:g.number()}).optional(),licenseEligibility:g.object({eligible:g.boolean()}).optional()}),Rp=class{constructor(e){this.api=e}async get(e){return(await this.api.fetch(`/api/customer/activations/${e}`,vs)).data}async isCompleted(e){const t=await this.api.fetch(`/api/customer/activations/${e}/completed`,g.boolean());return g.boolean().parse(t.data)}async fulfillLicense(e){return(await this.api.authenticatedFetch(`/api/customer/activations/${e}/license`,vs,{method:"POST"})).data}async fulfillTrial(e){return(await this.api.fetch(`/api/customer/activations/${e}/trial`,vs,{method:"POST"})).data}async cancel(e){return(await this.api.fetch(`/api/customer/activations/${e}/cancel`,vs,{method:"POST"})).data}},jp=class extends Error{constructor(){super(),this.name="NotAuthorizedError",this.message="Not allowed"}},Pi=class extends Error{constructor(){super(),this.name="NotAuthenticatedError",this.message="Not authenticated"}},Vn=class extends Error{constructor(e){super(),this.name="NotFoundError",this.message=e??"Not found"}},Mr=class extends Error{constructor(e,t,n,r){super(),this.title=e,this.detail=t,this.status=n,this.errors=r,this.name="MoonbaseError",r&&Object.values(r).length===1?this.message=Object.values(r)[0]:this.message=t??e}},Mp=g.object({type:g.string(),title:g.string(),detail:g.string().optional(),status:g.number(),errors:g.record(g.string(),g.string().array()).optional()});function Lp(e){return e.split(".").map((t,n)=>{let[r,...o]=t;return r=n!==0?r.toUpperCase():r.toLowerCase(),o=[o.join("").toLowerCase()],r+o[0]}).join("")}async function $i(e){if(e.status===404)throw new Vn;if(e.status===401)throw new Pi;if(e.status===403)throw new jp;let t;try{const n=await e.json();t=Mp.parse(n)}catch(n){throw console.warn("Could not handle response",{response:e,err:n,content:await e.text()}),new Error("An unknown problem occurred")}throw new Mr(t.title,t.detail,t.status,t.errors?Object.fromEntries(Object.entries(t.errors).map(([n,r])=>[Lp(n),r.join(", ")])):void 0)}var Dl=g.object({countryCode:g.string(),streetAddress1:g.string(),streetAddress2:g.string().nullable(),locality:g.string().nullable(),region:g.string().nullable(),postCode:g.string()}),Up=g.object({newsletterOptIn:g.boolean()}),Il=g.object({id:g.string(),email:g.string(),name:g.string(),tenantId:g.string(),address:Dl.optional(),communicationPreferences:Up,ownedProducts:g.string().array().optional()}),Di=Il.and(g.object({accessToken:g.string(),refreshToken:g.string()})),Al=g.object({id:g.string(),name:g.string(),email:g.string(),resetPasswordToken:g.string().nullable()}),Fp=class{constructor(e,t){this.api=e,this.tokenStore=t}async get(){return(await this.api.authenticatedFetch("/api/customer/meta/user",Il)).data}async signIn(e,t){const n=await hs(`${this.api.baseUrl}/api/customer/identity/sign-in?email=${encodeURIComponent(e)}&scheme=JWT`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:t});if(n.status===404)throw new Vn("User not found");n.status>=400&&await $i(n);try{const r=await n.json(),o=Di.parse(r);return this.tokenStore.setUser(o),o}catch(r){throw console.warn("Could not sign in user",{email:e,response:n,err:r}),new Mr("Bad response","Could not sign in user",n.status)}}async signUp(e,t,n,r,o,s,i){const a=await this.api.fetch(`/api/customer/identity/sign-up?scheme=JWT&communicationOptIn=${i?"true":"false"}`,Di,{method:"POST",body:{name:e,email:t,password:n,address:r,acceptedPrivacyPolicy:o,acceptedTermsAndConditions:s}});return this.tokenStore.setUser(a.data),a.data}async update(e,t,n,r){return{needsEmailConfirmationToken:(await this.api.authenticatedFetch("/api/customer/identity",null,{method:"PATCH",body:{name:e,email:t,emailConfirmationToken:n,communicationPreferences:r}})).status===201}}async setPassword(e,t){await this.api.authenticatedFetch("/api/customer/identity/set-password",null,{method:"POST",body:{currentPassword:e,newPassword:t}})}async forgotPassword(e){await this.api.fetch(`/api/customer/identity/forgot-password?email=${encodeURIComponent(e)}`,null,{method:"POST"})}async resetPassword(e,t,n){const r=await hs(`${this.api.baseUrl}/api/customer/identity/reset-password?email=${encodeURIComponent(e)}&code=${encodeURIComponent(n.replaceAll(" ","+"))}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:t});r.status>=400&&await $i(r)}async confirmAccount(e,t){const n=await this.api.fetch(`/api/customer/identity/confirm-account?email=${encodeURIComponent(e)}&code=${encodeURIComponent(t.replaceAll(" ","+"))}`,Al,{method:"POST"});try{return Al.parse(n.data)}catch(r){throw console.warn("Could not confirm user account",{email:e,code:t,response:n,err:r}),new Mr("Bad response","Could not confirm user account",n.status)}}async confirmEmail(e,t){await this.api.fetch(`/api/customer/identity/confirm-email?email=${encodeURIComponent(e)}&code=${encodeURIComponent(t.replaceAll(" ","+"))}`,null,{method:"POST"})}async confirmEmailChange(e,t){await this.api.authenticatedFetch(`/api/customer/identity/confirm-email-change?email=${encodeURIComponent(e)}&code=${encodeURIComponent(t.replaceAll(" ","+"))}`,null,{method:"POST"})}},Vl={};Cl(Vl,{completedOrderSchema:()=>Ul,openBundleLineItem:()=>Ll,openOrderLineItem:()=>Ii,openOrderSchema:()=>gs,openProductLineItem:()=>Ml,orderSchema:()=>Fl});var Lr=(e=>(e.Open="Open",e.PaymentProcessing="PaymentProcessing",e.Completed="Completed",e.Failed="Failed",e))(Lr||{}),Rl=g.object({code:g.string(),name:g.string(),description:g.string()}),jl=g.object({id:g.string(),name:g.string(),tagline:g.string(),iconUrl:g.string().nullable()}),Ml=g.object({id:g.string(),type:g.literal("Product"),productId:g.string(),quantity:g.number(),variationId:g.string(),price:Rr.optional(),variation:jr.optional(),product:jl.optional(),appliedDiscount:Ci.optional()}),Bp=g.object({id:g.string(),name:g.string(),tagline:g.string(),iconUrl:g.string().nullable(),products:jl.and(g.object({included:g.boolean().optional()})).array()}),Ll=g.object({id:g.string(),type:g.literal("Bundle"),bundleId:g.string(),quantity:g.number(),variationId:g.string(),partial:g.boolean().optional(),price:Rr.optional(),variation:jr.optional(),bundle:Bp.optional(),appliedDiscount:Ci.optional()}),Ii=g.discriminatedUnion("type",[Ml,Ll]),gs=g.object({id:g.string(),status:g.literal("Open"),currency:g.string(),items:Ii.array(),couponsApplied:Rl.array(),checkoutUrl:g.string().optional(),embeddedCheckoutUrl:g.string().optional()}),go=g.object({currency:g.string(),amount:g.number()}),Hp=g.object({original:go,discount:go,subtotal:go,taxes:go,due:go}),Zp=g.object({name:g.string().nullable(),businessName:g.string().nullable(),taxId:g.string().nullable(),email:g.string().nullable(),address:Dl.nullable()}),Ul=g.object({id:g.string(),status:g.literal("Completed"),currency:g.string(),customer:Zp,total:Hp,items:Ii.array(),couponsApplied:Rl.array()}),Fl=g.discriminatedUnion("status",[gs,Ul]),qp=class{constructor(e){this.api=e}async get(e){return(await this.api.fetch(`/api/customer/orders/${e}`,Fl)).data}async pushContent(e,t,n){const r={...Bl(n)};return t&&(r.checkout="true",r.returnUrl=t.returnUrl),(await this.api.fetch(`/api/customer/orders/${e.id}?${new URLSearchParams(r).toString()}`,gs,{method:"PATCH",body:{currency:e.currency||void 0,items:e.items}})).data}async removeBillingDetails(e){return(await this.api.fetch(`/api/customer/orders/${e}/billing-details`,gs,{method:"DELETE"})).data}};function Bl(e){return Object.entries({utm_source:e==null?void 0:e.source,utm_medium:e==null?void 0:e.medium,utm_campaign:e==null?void 0:e.campaign,utm_term:e==null?void 0:e.term,utm_content:e==null?void 0:e.content,utm_referrer:e==null?void 0:e.referrer}).filter(([t,n])=>n!==void 0).reduce((t,[n,r])=>({...t,[n]:r}),{})}var Wp=class{constructor(e){this.api=e}async get(e){const t=new URLSearchParams(Bl(e));return(await this.api.fetch(`/api/customer/storefront?${t.toString()}`,Vp)).data}},zp=class{constructor(e,t){this.baseUrl=e,this.tokenStore=t}async authenticatedFetch(e,t,n){if(!this.tokenStore.hasAccessToken)throw new Pi;return await this.fetch(e,t,n)}async fetch(e,t,n){var r;const o=await this.tokenStore.getAccessToken(),s=(r=n==null?void 0:n.contentType)!=null?r:"application/json",i=await hs(this.baseUrl+e,{method:(n==null?void 0:n.method)||"GET",mode:"cors",headers:{Accept:"application/json","Content-Type":s,...o?{Authorization:`Bearer ${o}`}:{},"x-mb-cors":"1"},body:n!=null&&n.body?s!=="application/json"?n.body:JSON.stringify(n.body):void 0});i.status>=400&&await $i(i);let a;try{return a=t?await i.json():null,{data:t?t.parse(a):null,headers:Object.fromEntries(i.headers.entries()),status:i.status}}catch(l){throw console.warn("Could not parse response",{status:i.status,path:e,content:a||(i.bodyUsed?"unknown":await i.text()),headers:Object.fromEntries(i.headers.entries()),userAgent:window&&window.navigator&&window.navigator.userAgent,err:l}),new Mr("Bad response","Could not parse server response",i.status)}}},Hl=class ss{constructor(t){if(this.configuration=t,this.tokens=null,this.refreshTimeoutId=null,this.refreshPromise=null,typeof window<"u"){window.addEventListener("storage",r=>this.handleStorageUpdate(r));const n=localStorage.getItem(ss.storageKey);n&&(this.tokens=JSON.parse(n),this.tokens.expiresAt=new Date(this.tokens.expiresAt))}}get user(){return this.tokens?this.tokens:null}get hasAccessToken(){return!!this.tokens}async getAccessToken(){var t,n,r;if(this.isExpired){if(this.refreshPromise){const s=await this.refreshPromise;return(t=s==null?void 0:s.accessToken)!=null?t:null}this.refreshPromise=this.refreshTokens();const o=await this.refreshPromise;return(n=o==null?void 0:o.accessToken)!=null?n:null}return((r=this.tokens)==null?void 0:r.accessToken)||null}setUser(t){return t===null?(this.tokens=null,typeof window<"u"&&localStorage&&localStorage.removeItem(ss.storageKey),this.refreshTimeoutId!=null&&window.clearTimeout(this.refreshTimeoutId),null):(this.tokens={...t,expiresAt:new Date(new Date().getTime()+15*60*1e3)},typeof window<"u"&&localStorage&&localStorage.setItem(ss.storageKey,JSON.stringify(this.tokens)),this.refreshTimeoutId!=null&&window.clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=window.setTimeout(()=>{this.refreshPromise=this.refreshTokens()},10*60*1e3),this.tokens)}get isExpired(){return this.tokens!=null&&this.tokens.expiresAt<new Date}async refreshTokens(){if(!this.tokens)throw new Error("No tokens found to refresh");const t=await hs(`${this.configuration.endpoint}/api/customer/identity/refresh?token=${this.tokens.refreshToken}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:this.tokens.accessToken});if(t.status!==200){if(t.status===403||t.status===404)return this.setUser(null),null;throw new Mr("Unexpected result",`Could not refresh access token, status code ${t.status}`,t.status)}const n=Di.parse(await t.json());return this.setUser(n)}handleStorageUpdate(t){switch(t.key){case ss.storageKey:this.tokens=t.newValue?JSON.parse(t.newValue):null,this.refreshTimeoutId!=null&&window.clearTimeout(this.refreshTimeoutId),this.tokens&&(this.tokens.expiresAt=new Date(this.tokens.expiresAt));break}}};Hl.storageKey="moonbase_auth";var Kp=Hl,Zl=g.object({id:g.string(),name:g.string(),description:g.string(),code:g.string(),redeemed:g.boolean(),redeemsProducts:Tl(ms).array(),redeemsBundles:Tl($l).array()}),Gp=class{constructor(e){this.api=e}async peek(e){return(await this.api.fetch(`/api/customer/vouchers?code=${encodeURIComponent(e)}`,Zl)).data}async redeem(e){return(await this.api.authenticatedFetch(`/api/customer/vouchers/redeem?code=${encodeURIComponent(e)}`,Zl,{method:"POST"})).data}},ql=(e=>(e.Active="Active",e.Revoked="Revoked",e))(ql||{}),Wl=(e=>(e.Active="Active",e.Revoked="Revoked",e))(Wl||{}),Ai=(e=>(e.Online="Online",e.Offline="Offline",e))(Ai||{}),Vi=g.object({id:g.string(),status:g.nativeEnum(ql),product:Ti,activeNumberOfActivations:g.number(),maxNumberOfActivations:g.number(),createdAt:g.coerce.date()}),zl=g.object({id:g.string(),licenseId:g.string(),name:g.string(),status:g.nativeEnum(Wl),activationMethod:g.nativeEnum(Ai),lastValidatedAt:g.coerce.date().nullable()}),Jp=class{constructor(e){this.api=e}async activate(e,t){const n=await this.api.authenticatedFetch(`/api/customer/inventory/activate?method=${t}`,Vi,{method:"POST",body:e,contentType:"text/plain"});return{license:n.data,url:g.string().parse(n.headers.location)}}},Yp=class{constructor(e){this.api=e}async get(e){return(await this.api.authenticatedFetch(e||"/api/customer/inventory/licenses",vo(Vi))).data}async getActivations(e,t){return(await this.api.authenticatedFetch(t||`/api/customer/inventory/licenses/${e}/activations`,vo(zl))).data}async revokeActivation(e,t){await this.api.authenticatedFetch(`/api/customer/inventory/licenses/${e}/activations/${t}/revoke`,null,{method:"POST"})}},Xp=class{constructor(e){this.api=e}async get(e,t){return(await this.api.fetch(`/api/customer/inventory/products/${e}${t?`?version=${t}`:""}`,Ti)).data}async getOwned(e){return(await this.api.authenticatedFetch(e||"/api/customer/inventory/products",vo(Ti))).data}async getLicenses(e,t){return(await this.api.authenticatedFetch(t||`/api/customer/inventory/products/${e}/licenses`,vo(Vi))).data}async getActivations(e,t){return(await this.api.authenticatedFetch(t||`/api/customer/inventory/products/${e}/licenses/activations`,vo(zl))).data}async getDownloadUrl(e){const t=new URL(e);return t.searchParams.append("redirect","false"),(await this.api.fetch(t.pathname+t.search,g.object({location:g.string()}))).data.location}},Qp=class{constructor(e){this.licenses=new Yp(e),this.products=new Xp(e),this.activation=new Jp(e)}},Kl={};Cl(Kl,{orders:()=>Vl});var eh=class{constructor(e){this.configuration=e,this.configuration.endpoint=this.configuration.endpoint.replace(/\/$/,""),this.tokenStore=new Kp(e);const t=new zp(this.configuration.endpoint,this.tokenStore);this.storefront=new Wp(t),this.identity=new Fp(t,this.tokenStore),this.vouchers=new Gp(t),this.orders=new qp(t),this.inventory=new Qp(t),this.activationRequests=new Rp(t)}},Gl={};/**
4
4
  * @vue/shared v3.5.3
5
5
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
6
6
  * @license MIT
7
- **//*! #__NO_SIDE_EFFECTS__ */function mn(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const Me=Gl.NODE_ENV!=="production"?Object.freeze({}):{},Ur=Gl.NODE_ENV!=="production"?Object.freeze([]):[],Qe=()=>{},th=()=>!1,yo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vs=e=>e.startsWith("onUpdate:"),Ge=Object.assign,Ri=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},nh=Object.prototype.hasOwnProperty,De=(e,t)=>nh.call(e,t),de=Array.isArray,ir=e=>gs(e)==="[object Map]",Jl=e=>gs(e)==="[object Set]",pe=e=>typeof e=="function",Ze=e=>typeof e=="string",Rn=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",ji=e=>(Ie(e)||pe(e))&&pe(e.then)&&pe(e.catch),Yl=Object.prototype.toString,gs=e=>Yl.call(e),Mi=e=>gs(e).slice(8,-1),Xl=e=>gs(e)==="[object Object]",Li=e=>Ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bo=mn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),rh=mn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),ys=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oh=/-(\w)/g,Tt=ys(e=>e.replace(oh,(t,n)=>n?n.toUpperCase():"")),sh=/\B([A-Z])/g,vn=ys(e=>e.replace(sh,"-$1").toLowerCase()),ar=ys(e=>e.charAt(0).toUpperCase()+e.slice(1)),lr=ys(e=>e?`on${ar(e)}`:""),jn=(e,t)=>!Object.is(e,t),_o=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},bs=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ih=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ah=e=>{const t=Ze(e)?Number(e):NaN;return isNaN(t)?e:t};let Ql;const Ui=()=>Ql||(Ql=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fi(e){if(de(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Ze(r)?dh(r):Fi(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(Ze(e)||Ie(e))return e}const lh=/;(?![^(]*\))/g,uh=/:([^]+)/,ch=/\/\*[^]*?\*\//g;function dh(e){const t={};return e.replace(ch,"").split(lh).forEach(n=>{if(n){const r=n.split(uh);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function _s(e){let t="";if(Ze(e))t=e;else if(de(e))for(let n=0;n<e.length;n++){const r=_s(e[n]);r&&(t+=r+" ")}else if(Ie(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const fh="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",ph="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",hh="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",mh=mn(fh),vh=mn(ph),gh=mn(hh),yh=mn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function eu(e){return!!e||e===""}const tu=e=>!!(e&&e.__v_isRef===!0),J=e=>Ze(e)?e:e==null?"":de(e)||Ie(e)&&(e.toString===Yl||!pe(e.toString))?tu(e)?J(e.value):JSON.stringify(e,nu,2):String(e),nu=(e,t)=>tu(t)?nu(e,t.value):ir(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[Bi(r,s)+" =>"]=o,n),{})}:Jl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Bi(n))}:Rn(t)?Bi(t):Ie(t)&&!de(t)&&!Xl(t)?String(t):t,Bi=(e,t="")=>{var n;return Rn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};var Ve={};function Vt(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let yt;class ru{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=yt,!t&&yt&&(this.index=(yt.scopes||(yt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=yt;try{return yt=this,t()}finally{yt=n}}else Ve.NODE_ENV!=="production"&&Vt("cannot run an inactive effect scope.")}on(){yt=this}off(){yt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function ou(e){return new ru(e)}function su(){return yt}function bh(e,t=!1){yt?yt.cleanups.push(e):Ve.NODE_ENV!=="production"&&!t&&Vt("onScopeDispose() is called when there is no active effect scope to be associated with.")}let Ae;const Hi=new WeakSet;class iu{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,yt&&yt.active&&yt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Hi.has(this)&&(Hi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||(this.flags|=8,this.nextEffect=wo,wo=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,fu(this),lu(this);const t=Ae,n=Ht;Ae=this,Ht=!0;try{return this.fn()}finally{Ve.NODE_ENV!=="production"&&Ae!==this&&Vt("Active effect was not restored correctly - this is likely a Vue internal bug."),uu(this),Ae=t,Ht=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)zi(t);this.deps=this.depsTail=void 0,fu(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Hi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Wi(this)&&this.run()}get dirty(){return Wi(this)}}let au=0,wo;function Zi(){au++}function qi(){if(--au>0)return;let e;for(;wo;){let t=wo;for(wo=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function lu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function uu(e){let t,n=e.depsTail;for(let r=n;r;r=r.prevDep)r.version===-1?(r===n&&(n=r.prevDep),zi(r),_h(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function Wi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&cu(t.dep.computed)===!1||t.dep.version!==t.version)return!0;return!!e._dirty}function cu(e){if(e.flags&2)return!1;if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Eo))return;e.globalVersion=Eo;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!Wi(e)){e.flags&=-3;return}const n=Ae,r=Ht;Ae=e,Ht=!0;try{lu(e);const o=e.fn(e._value);(t.version===0||jn(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ae=n,Ht=r,uu(e),e.flags&=-3}}function zi(e){const{dep:t,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let o=t.computed.deps;o;o=o.nextDep)zi(o)}}function _h(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ht=!0;const du=[];function gn(){du.push(Ht),Ht=!1}function yn(){const e=du.pop();Ht=e===void 0?!0:e}function fu(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ae;Ae=void 0;try{t()}finally{Ae=n}}}let Eo=0;class Ki{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,Ve.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!Ae||!Ht||Ae===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ae)n=this.activeLink={dep:this,sub:Ae,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},Ae.deps?(n.prevDep=Ae.depsTail,Ae.depsTail.nextDep=n,Ae.depsTail=n):Ae.deps=Ae.depsTail=n,Ae.flags&4&&pu(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ae.depsTail,n.nextDep=void 0,Ae.depsTail.nextDep=n,Ae.depsTail=n,Ae.deps===n&&(Ae.deps=r)}return Ve.NODE_ENV!=="production"&&Ae.onTrack&&Ae.onTrack(Ge({effect:Ae},t)),n}trigger(t){this.version++,Eo++,this.notify(t)}notify(t){Zi();try{if(Ve.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)Ve.NODE_ENV!=="production"&&n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(Ge({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{qi()}}}function pu(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)pu(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),Ve.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}const ws=new WeakMap,ur=Symbol(Ve.NODE_ENV!=="production"?"Object iterate":""),Gi=Symbol(Ve.NODE_ENV!=="production"?"Map keys iterate":""),Oo=Symbol(Ve.NODE_ENV!=="production"?"Array iterate":"");function et(e,t,n){if(Ht&&Ae){let r=ws.get(e);r||ws.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=new Ki),Ve.NODE_ENV!=="production"?o.track({target:e,type:t,key:n}):o.track()}}function tn(e,t,n,r,o,s){const i=ws.get(e);if(!i){Eo++;return}let a=[];if(t==="clear")a=[...i.values()];else{const l=de(e),u=l&&Li(n);if(l&&n==="length"){const c=Number(r);i.forEach((d,f)=>{(f==="length"||f===Oo||!Rn(f)&&f>=c)&&a.push(d)})}else{const c=d=>d&&a.push(d);switch(n!==void 0&&c(i.get(n)),u&&c(i.get(Oo)),t){case"add":l?u&&c(i.get("length")):(c(i.get(ur)),ir(e)&&c(i.get(Gi)));break;case"delete":l||(c(i.get(ur)),ir(e)&&c(i.get(Gi)));break;case"set":ir(e)&&c(i.get(ur));break}}}Zi();for(const l of a)Ve.NODE_ENV!=="production"?l.trigger({target:e,type:t,key:n,newValue:r,oldValue:o,oldTarget:s}):l.trigger();qi()}function wh(e,t){var n;return(n=ws.get(e))==null?void 0:n.get(t)}function Fr(e){const t=be(e);return t===e?t:(et(t,"iterate",Oo),Nt(e)?t:t.map(ct))}function Es(e){return et(e=be(e),"iterate",Oo),e}const Eh={__proto__:null,[Symbol.iterator](){return Ji(this,Symbol.iterator,ct)},concat(...e){return Fr(this).concat(...e.map(t=>de(t)?Fr(t):t))},entries(){return Ji(this,"entries",e=>(e[1]=ct(e[1]),e))},every(e,t){return bn(this,"every",e,t,void 0,arguments)},filter(e,t){return bn(this,"filter",e,t,n=>n.map(ct),arguments)},find(e,t){return bn(this,"find",e,t,ct,arguments)},findIndex(e,t){return bn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return bn(this,"findLast",e,t,ct,arguments)},findLastIndex(e,t){return bn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return bn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Yi(this,"includes",e)},indexOf(...e){return Yi(this,"indexOf",e)},join(e){return Fr(this).join(e)},lastIndexOf(...e){return Yi(this,"lastIndexOf",e)},map(e,t){return bn(this,"map",e,t,void 0,arguments)},pop(){return No(this,"pop")},push(...e){return No(this,"push",e)},reduce(e,...t){return hu(this,"reduce",e,t)},reduceRight(e,...t){return hu(this,"reduceRight",e,t)},shift(){return No(this,"shift")},some(e,t){return bn(this,"some",e,t,void 0,arguments)},splice(...e){return No(this,"splice",e)},toReversed(){return Fr(this).toReversed()},toSorted(e){return Fr(this).toSorted(e)},toSpliced(...e){return Fr(this).toSpliced(...e)},unshift(...e){return No(this,"unshift",e)},values(){return Ji(this,"values",ct)}};function Ji(e,t,n){const r=Es(e),o=r[t]();return r!==e&&!Nt(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.value&&(s.value=n(s.value)),s}),o}const Oh=Array.prototype;function bn(e,t,n,r,o,s){const i=Es(e),a=i!==e&&!Nt(e),l=i[t];if(l!==Oh[t]){const d=l.apply(e,s);return a?ct(d):d}let u=n;i!==e&&(a?u=function(d,f){return n.call(this,ct(d),f,e)}:n.length>2&&(u=function(d,f){return n.call(this,d,f,e)}));const c=l.call(i,u,r);return a&&o?o(c):c}function hu(e,t,n,r){const o=Es(e);let s=n;return o!==e&&(Nt(e)?n.length>3&&(s=function(i,a,l){return n.call(this,i,a,l,e)}):s=function(i,a,l){return n.call(this,i,ct(a),l,e)}),o[t](s,...r)}function Yi(e,t,n){const r=be(e);et(r,"iterate",Oo);const o=r[t](...n);return(o===-1||o===!1)&&So(n[0])?(n[0]=be(n[0]),r[t](...n)):o}function No(e,t,n=[]){gn(),Zi();const r=be(e)[t].apply(e,n);return qi(),yn(),r}const Nh=mn("__proto__,__v_isRef,__isVue"),mu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rn));function xh(e){Rn(e)||(e=String(e));const t=be(this);return et(t,"has",e),t.hasOwnProperty(e)}class vu{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?ku:Su:s?xu:Nu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=de(t);if(!o){let l;if(i&&(l=Eh[n]))return l;if(n==="hasOwnProperty")return xh}const a=Reflect.get(t,n,qe(t)?t:r);return(Rn(n)?mu.has(n):Nh(n))||(o||et(t,"get",n),s)?a:qe(a)?i&&Li(n)?a:a.value:Ie(a)?o?Cu(a):xo(a):a}}class gu extends vu{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];if(!this._isShallow){const l=_n(s);if(!Nt(r)&&!_n(r)&&(s=be(s),r=be(r)),!de(t)&&qe(s)&&!qe(r))return l?!1:(s.value=r,!0)}const i=de(t)&&Li(n)?Number(n)<t.length:De(t,n),a=Reflect.set(t,n,r,qe(t)?t:o);return t===be(o)&&(i?jn(r,s)&&tn(t,"set",n,r,s):tn(t,"add",n,r)),a}deleteProperty(t,n){const r=De(t,n),o=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&tn(t,"delete",n,void 0,o),s}has(t,n){const r=Reflect.has(t,n);return(!Rn(n)||!mu.has(n))&&et(t,"has",n),r}ownKeys(t){return et(t,"iterate",de(t)?"length":ur),Reflect.ownKeys(t)}}class yu extends vu{constructor(t=!1){super(!0,t)}set(t,n){return Ve.NODE_ENV!=="production"&&Vt(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return Ve.NODE_ENV!=="production"&&Vt(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const Sh=new gu,kh=new yu,Ch=new gu(!0),Th=new yu(!0),Xi=e=>e,Os=e=>Reflect.getPrototypeOf(e);function Ns(e,t,n=!1,r=!1){e=e.__v_raw;const o=be(e),s=be(t);n||(jn(t,s)&&et(o,"get",t),et(o,"get",s));const{has:i}=Os(o),a=r?Xi:n?Qi:ct;if(i.call(o,t))return a(e.get(t));if(i.call(o,s))return a(e.get(s));e!==o&&e.get(t)}function xs(e,t=!1){const n=this.__v_raw,r=be(n),o=be(e);return t||(jn(e,o)&&et(r,"has",e),et(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Ss(e,t=!1){return e=e.__v_raw,!t&&et(be(e),"iterate",ur),Reflect.get(e,"size",e)}function bu(e,t=!1){!t&&!Nt(e)&&!_n(e)&&(e=be(e));const n=be(this);return Os(n).has.call(n,e)||(n.add(e),tn(n,"add",e,e)),this}function _u(e,t,n=!1){!n&&!Nt(t)&&!_n(t)&&(t=be(t));const r=be(this),{has:o,get:s}=Os(r);let i=o.call(r,e);i?Ve.NODE_ENV!=="production"&&Ou(r,o,e):(e=be(e),i=o.call(r,e));const a=s.call(r,e);return r.set(e,t),i?jn(t,a)&&tn(r,"set",e,t,a):tn(r,"add",e,t),this}function wu(e){const t=be(this),{has:n,get:r}=Os(t);let o=n.call(t,e);o?Ve.NODE_ENV!=="production"&&Ou(t,n,e):(e=be(e),o=n.call(t,e));const s=r?r.call(t,e):void 0,i=t.delete(e);return o&&tn(t,"delete",e,void 0,s),i}function Eu(){const e=be(this),t=e.size!==0,n=Ve.NODE_ENV!=="production"?ir(e)?new Map(e):new Set(e):void 0,r=e.clear();return t&&tn(e,"clear",void 0,void 0,n),r}function ks(e,t){return function(r,o){const s=this,i=s.__v_raw,a=be(i),l=t?Xi:e?Qi:ct;return!e&&et(a,"iterate",ur),i.forEach((u,c)=>r.call(o,l(u),l(c),s))}}function Cs(e,t,n){return function(...r){const o=this.__v_raw,s=be(o),i=ir(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=o[e](...r),c=n?Xi:t?Qi:ct;return!t&&et(s,"iterate",l?Gi:ur),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function Mn(e){return function(...t){if(Ve.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";Vt(`${ar(e)} operation ${n}failed: target is readonly.`,be(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Ph(){const e={get(s){return Ns(this,s)},get size(){return Ss(this)},has:xs,add:bu,set:_u,delete:wu,clear:Eu,forEach:ks(!1,!1)},t={get(s){return Ns(this,s,!1,!0)},get size(){return Ss(this)},has:xs,add(s){return bu.call(this,s,!0)},set(s,i){return _u.call(this,s,i,!0)},delete:wu,clear:Eu,forEach:ks(!1,!0)},n={get(s){return Ns(this,s,!0)},get size(){return Ss(this,!0)},has(s){return xs.call(this,s,!0)},add:Mn("add"),set:Mn("set"),delete:Mn("delete"),clear:Mn("clear"),forEach:ks(!0,!1)},r={get(s){return Ns(this,s,!0,!0)},get size(){return Ss(this,!0)},has(s){return xs.call(this,s,!0)},add:Mn("add"),set:Mn("set"),delete:Mn("delete"),clear:Mn("clear"),forEach:ks(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Cs(s,!1,!1),n[s]=Cs(s,!0,!1),t[s]=Cs(s,!1,!0),r[s]=Cs(s,!0,!0)}),[e,n,t,r]}const[$h,Dh,Ih,Ah]=Ph();function Ts(e,t){const n=t?e?Ah:Ih:e?Dh:$h;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(De(n,o)&&o in r?n:r,o,s)}const Vh={get:Ts(!1,!1)},Rh={get:Ts(!1,!0)},jh={get:Ts(!0,!1)},Mh={get:Ts(!0,!0)};function Ou(e,t,n){const r=be(n);if(r!==n&&t.call(e,r)){const o=Mi(e);Vt(`Reactive ${o} contains both the raw and reactive versions of the same object${o==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Nu=new WeakMap,xu=new WeakMap,Su=new WeakMap,ku=new WeakMap;function Lh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Uh(e){return e.__v_skip||!Object.isExtensible(e)?0:Lh(Mi(e))}function xo(e){return _n(e)?e:Ps(e,!1,Sh,Vh,Nu)}function Fh(e){return Ps(e,!1,Ch,Rh,xu)}function Cu(e){return Ps(e,!0,kh,jh,Su)}function nn(e){return Ps(e,!0,Th,Mh,ku)}function Ps(e,t,n,r,o){if(!Ie(e))return Ve.NODE_ENV!=="production"&&Vt(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=Uh(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function rn(e){return _n(e)?rn(e.__v_raw):!!(e&&e.__v_isReactive)}function _n(e){return!!(e&&e.__v_isReadonly)}function Nt(e){return!!(e&&e.__v_isShallow)}function So(e){return e?!!e.__v_raw:!1}function be(e){const t=e&&e.__v_raw;return t?be(t):e}function Ln(e){return Object.isExtensible(e)&&bs(e,"__v_skip",!0),e}const ct=e=>Ie(e)?xo(e):e,Qi=e=>Ie(e)?Cu(e):e;function qe(e){return e?e.__v_isRef===!0:!1}function R(e){return Tu(e,!1)}function Bh(e){return Tu(e,!0)}function Tu(e,t){return qe(e)?e:new Hh(e,t)}class Hh{constructor(t,n){this.dep=new Ki,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:be(t),this._value=n?t:ct(t),this.__v_isShallow=n}get value(){return Ve.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Nt(t)||_n(t);t=r?t:be(t),jn(t,n)&&(this._rawValue=t,this._value=r?t:ct(t),Ve.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}function _(e){return qe(e)?e.value:e}function Un(e){return pe(e)?e():_(e)}const Zh={get:(e,t,n)=>t==="__v_raw"?e:_(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return qe(o)&&!qe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Pu(e){return rn(e)?e:new Proxy(e,Zh)}function $u(e){Ve.NODE_ENV!=="production"&&!So(e)&&Vt("toRefs() expects a reactive object but received a plain one.");const t=de(e)?new Array(e.length):{};for(const n in e)t[n]=Du(e,n);return t}class qh{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return wh(be(this._object),this._key)}}class Wh{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ea(e,t,n){return qe(e)?e:pe(e)?new Wh(e):Ie(e)&&arguments.length>1?Du(e,t,n):R(e)}function Du(e,t,n){const r=e[t];return qe(r)?r:new qh(e,t,n)}class zh{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ki(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Eo-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){Ae!==this&&(this.flags|=16,this.dep.notify())}get value(){const t=Ve.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return cu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):Ve.NODE_ENV!=="production"&&Vt("Write operation failed: computed value is readonly")}}function Kh(e,t,n=!1){let r,o;pe(e)?r=e:(r=e.get,o=e.set);const s=new zh(r,o,n);return Ve.NODE_ENV!=="production"&&t&&!n&&(s.onTrack=t.onTrack,s.onTrigger=t.onTrigger),s}const $s={},Ds=new WeakMap;let cr;function Gh(e,t=!1,n=cr){if(n){let r=Ds.get(n);r||Ds.set(n,r=[]),r.push(e)}else Ve.NODE_ENV!=="production"&&!t&&Vt("onWatcherCleanup() was called when there was no active watcher to associate with.")}function Jh(e,t,n=Me){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:a,call:l}=n,u=y=>{(n.onWarn||Vt)("Invalid watch source: ",y,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=y=>o?y:Nt(y)||o===!1||o===0?Fn(y,1):Fn(y);let d,f,m,E,N=!1,O=!1;if(qe(e)?(f=()=>e.value,N=Nt(e)):rn(e)?(f=()=>c(e),N=!0):de(e)?(O=!0,N=e.some(y=>rn(y)||Nt(y)),f=()=>e.map(y=>{if(qe(y))return y.value;if(rn(y))return c(y);if(pe(y))return l?l(y,2):y();Ve.NODE_ENV!=="production"&&u(y)})):pe(e)?t?f=l?()=>l(e,2):e:f=()=>{if(m){gn();try{m()}finally{yn()}}const y=cr;cr=d;try{return l?l(e,3,[E]):e(E)}finally{cr=y}}:(f=Qe,Ve.NODE_ENV!=="production"&&u(e)),t&&o){const y=f,M=o===!0?1/0:o;f=()=>Fn(y(),M)}const I=su(),j=()=>{d.stop(),I&&Ri(I.effects,d)};if(s)if(t){const y=t;t=(...M)=>{y(...M),j()}}else{const y=f;f=()=>{y(),j()}}let $=O?new Array(e.length).fill($s):$s;const W=y=>{if(!(!(d.flags&1)||!d.dirty&&!y))if(t){const M=d.run();if(o||N||(O?M.some((P,re)=>jn(P,$[re])):jn(M,$))){m&&m();const P=cr;cr=d;try{const re=[M,$===$s?void 0:O&&$[0]===$s?[]:$,E];l?l(t,3,re):t(...re),$=M}finally{cr=P}}}else d.run()};return a&&a(W),d=new iu(f),d.scheduler=i?()=>i(W,!1):W,E=y=>Gh(y,!1,d),m=d.onStop=()=>{const y=Ds.get(d);if(y){if(l)l(y,4);else for(const M of y)M();Ds.delete(d)}},Ve.NODE_ENV!=="production"&&(d.onTrack=n.onTrack,d.onTrigger=n.onTrigger),t?r?W(!0):$=d.run():i?i(W.bind(null,!0),!0):d.run(),j.pause=d.pause.bind(d),j.resume=d.resume.bind(d),j.stop=j,j}function Fn(e,t=1/0,n){if(t<=0||!Ie(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,qe(e))Fn(e.value,t,n);else if(de(e))for(let r=0;r<e.length;r++)Fn(e[r],t,n);else if(Jl(e)||ir(e))e.forEach(r=>{Fn(r,t,n)});else if(Xl(e)){for(const r in e)Fn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Fn(e[r],t,n)}return e}var b={};const dr=[];function Is(e){dr.push(e)}function As(){dr.pop()}let ta=!1;function Z(e,...t){if(ta)return;ta=!0,gn();const n=dr.length?dr[dr.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=Yh();if(r)Br(r,n,11,[e+t.map(s=>{var i,a;return(a=(i=s.toString)==null?void 0:i.call(s))!=null?a:JSON.stringify(s)}).join(""),n&&n.proxy,o.map(({vnode:s})=>`at <${Ys(n,s.type)}>`).join(`
7
+ **//*! #__NO_SIDE_EFFECTS__ */function mn(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const Me=Gl.NODE_ENV!=="production"?Object.freeze({}):{},Ur=Gl.NODE_ENV!=="production"?Object.freeze([]):[],Qe=()=>{},th=()=>!1,yo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ys=e=>e.startsWith("onUpdate:"),Ge=Object.assign,Ri=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},nh=Object.prototype.hasOwnProperty,De=(e,t)=>nh.call(e,t),de=Array.isArray,ir=e=>bs(e)==="[object Map]",Jl=e=>bs(e)==="[object Set]",pe=e=>typeof e=="function",Ze=e=>typeof e=="string",Rn=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",ji=e=>(Ae(e)||pe(e))&&pe(e.then)&&pe(e.catch),Yl=Object.prototype.toString,bs=e=>Yl.call(e),Mi=e=>bs(e).slice(8,-1),Xl=e=>bs(e)==="[object Object]",Li=e=>Ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bo=mn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),rh=mn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),_s=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oh=/-(\w)/g,Tt=_s(e=>e.replace(oh,(t,n)=>n?n.toUpperCase():"")),sh=/\B([A-Z])/g,vn=_s(e=>e.replace(sh,"-$1").toLowerCase()),ar=_s(e=>e.charAt(0).toUpperCase()+e.slice(1)),lr=_s(e=>e?`on${ar(e)}`:""),jn=(e,t)=>!Object.is(e,t),_o=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ws=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ih=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ah=e=>{const t=Ze(e)?Number(e):NaN;return isNaN(t)?e:t};let Ql;const Ui=()=>Ql||(Ql=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fi(e){if(de(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Ze(r)?dh(r):Fi(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(Ze(e)||Ae(e))return e}const lh=/;(?![^(]*\))/g,uh=/:([^]+)/,ch=/\/\*[^]*?\*\//g;function dh(e){const t={};return e.replace(ch,"").split(lh).forEach(n=>{if(n){const r=n.split(uh);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Es(e){let t="";if(Ze(e))t=e;else if(de(e))for(let n=0;n<e.length;n++){const r=Es(e[n]);r&&(t+=r+" ")}else if(Ae(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const fh="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",ph="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",hh="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",mh=mn(fh),vh=mn(ph),gh=mn(hh),yh=mn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function eu(e){return!!e||e===""}const tu=e=>!!(e&&e.__v_isRef===!0),J=e=>Ze(e)?e:e==null?"":de(e)||Ae(e)&&(e.toString===Yl||!pe(e.toString))?tu(e)?J(e.value):JSON.stringify(e,nu,2):String(e),nu=(e,t)=>tu(t)?nu(e,t.value):ir(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[Bi(r,s)+" =>"]=o,n),{})}:Jl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Bi(n))}:Rn(t)?Bi(t):Ae(t)&&!de(t)&&!Xl(t)?String(t):t,Bi=(e,t="")=>{var n;return Rn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};var Re={};function Vt(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let yt;class ru{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=yt,!t&&yt&&(this.index=(yt.scopes||(yt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=yt;try{return yt=this,t()}finally{yt=n}}else Re.NODE_ENV!=="production"&&Vt("cannot run an inactive effect scope.")}on(){yt=this}off(){yt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function ou(e){return new ru(e)}function su(){return yt}function bh(e,t=!1){yt?yt.cleanups.push(e):Re.NODE_ENV!=="production"&&!t&&Vt("onScopeDispose() is called when there is no active effect scope to be associated with.")}let Ve;const Hi=new WeakSet;class iu{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,yt&&yt.active&&yt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Hi.has(this)&&(Hi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||(this.flags|=8,this.nextEffect=wo,wo=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,fu(this),lu(this);const t=Ve,n=Ht;Ve=this,Ht=!0;try{return this.fn()}finally{Re.NODE_ENV!=="production"&&Ve!==this&&Vt("Active effect was not restored correctly - this is likely a Vue internal bug."),uu(this),Ve=t,Ht=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)zi(t);this.deps=this.depsTail=void 0,fu(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Hi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Wi(this)&&this.run()}get dirty(){return Wi(this)}}let au=0,wo;function Zi(){au++}function qi(){if(--au>0)return;let e;for(;wo;){let t=wo;for(wo=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function lu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function uu(e){let t,n=e.depsTail;for(let r=n;r;r=r.prevDep)r.version===-1?(r===n&&(n=r.prevDep),zi(r),_h(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function Wi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&cu(t.dep.computed)===!1||t.dep.version!==t.version)return!0;return!!e._dirty}function cu(e){if(e.flags&2)return!1;if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Eo))return;e.globalVersion=Eo;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!Wi(e)){e.flags&=-3;return}const n=Ve,r=Ht;Ve=e,Ht=!0;try{lu(e);const o=e.fn(e._value);(t.version===0||jn(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ve=n,Ht=r,uu(e),e.flags&=-3}}function zi(e){const{dep:t,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let o=t.computed.deps;o;o=o.nextDep)zi(o)}}function _h(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ht=!0;const du=[];function gn(){du.push(Ht),Ht=!1}function yn(){const e=du.pop();Ht=e===void 0?!0:e}function fu(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ve;Ve=void 0;try{t()}finally{Ve=n}}}let Eo=0;class Ki{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,Re.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!Ve||!Ht||Ve===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ve)n=this.activeLink={dep:this,sub:Ve,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},Ve.deps?(n.prevDep=Ve.depsTail,Ve.depsTail.nextDep=n,Ve.depsTail=n):Ve.deps=Ve.depsTail=n,Ve.flags&4&&pu(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ve.depsTail,n.nextDep=void 0,Ve.depsTail.nextDep=n,Ve.depsTail=n,Ve.deps===n&&(Ve.deps=r)}return Re.NODE_ENV!=="production"&&Ve.onTrack&&Ve.onTrack(Ge({effect:Ve},t)),n}trigger(t){this.version++,Eo++,this.notify(t)}notify(t){Zi();try{if(Re.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)Re.NODE_ENV!=="production"&&n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(Ge({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{qi()}}}function pu(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)pu(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),Re.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}const Os=new WeakMap,ur=Symbol(Re.NODE_ENV!=="production"?"Object iterate":""),Gi=Symbol(Re.NODE_ENV!=="production"?"Map keys iterate":""),Oo=Symbol(Re.NODE_ENV!=="production"?"Array iterate":"");function et(e,t,n){if(Ht&&Ve){let r=Os.get(e);r||Os.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=new Ki),Re.NODE_ENV!=="production"?o.track({target:e,type:t,key:n}):o.track()}}function tn(e,t,n,r,o,s){const i=Os.get(e);if(!i){Eo++;return}let a=[];if(t==="clear")a=[...i.values()];else{const l=de(e),u=l&&Li(n);if(l&&n==="length"){const c=Number(r);i.forEach((d,f)=>{(f==="length"||f===Oo||!Rn(f)&&f>=c)&&a.push(d)})}else{const c=d=>d&&a.push(d);switch(n!==void 0&&c(i.get(n)),u&&c(i.get(Oo)),t){case"add":l?u&&c(i.get("length")):(c(i.get(ur)),ir(e)&&c(i.get(Gi)));break;case"delete":l||(c(i.get(ur)),ir(e)&&c(i.get(Gi)));break;case"set":ir(e)&&c(i.get(ur));break}}}Zi();for(const l of a)Re.NODE_ENV!=="production"?l.trigger({target:e,type:t,key:n,newValue:r,oldValue:o,oldTarget:s}):l.trigger();qi()}function wh(e,t){var n;return(n=Os.get(e))==null?void 0:n.get(t)}function Fr(e){const t=_e(e);return t===e?t:(et(t,"iterate",Oo),Nt(e)?t:t.map(ct))}function Ns(e){return et(e=_e(e),"iterate",Oo),e}const Eh={__proto__:null,[Symbol.iterator](){return Ji(this,Symbol.iterator,ct)},concat(...e){return Fr(this).concat(...e.map(t=>de(t)?Fr(t):t))},entries(){return Ji(this,"entries",e=>(e[1]=ct(e[1]),e))},every(e,t){return bn(this,"every",e,t,void 0,arguments)},filter(e,t){return bn(this,"filter",e,t,n=>n.map(ct),arguments)},find(e,t){return bn(this,"find",e,t,ct,arguments)},findIndex(e,t){return bn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return bn(this,"findLast",e,t,ct,arguments)},findLastIndex(e,t){return bn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return bn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Yi(this,"includes",e)},indexOf(...e){return Yi(this,"indexOf",e)},join(e){return Fr(this).join(e)},lastIndexOf(...e){return Yi(this,"lastIndexOf",e)},map(e,t){return bn(this,"map",e,t,void 0,arguments)},pop(){return No(this,"pop")},push(...e){return No(this,"push",e)},reduce(e,...t){return hu(this,"reduce",e,t)},reduceRight(e,...t){return hu(this,"reduceRight",e,t)},shift(){return No(this,"shift")},some(e,t){return bn(this,"some",e,t,void 0,arguments)},splice(...e){return No(this,"splice",e)},toReversed(){return Fr(this).toReversed()},toSorted(e){return Fr(this).toSorted(e)},toSpliced(...e){return Fr(this).toSpliced(...e)},unshift(...e){return No(this,"unshift",e)},values(){return Ji(this,"values",ct)}};function Ji(e,t,n){const r=Ns(e),o=r[t]();return r!==e&&!Nt(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.value&&(s.value=n(s.value)),s}),o}const Oh=Array.prototype;function bn(e,t,n,r,o,s){const i=Ns(e),a=i!==e&&!Nt(e),l=i[t];if(l!==Oh[t]){const d=l.apply(e,s);return a?ct(d):d}let u=n;i!==e&&(a?u=function(d,f){return n.call(this,ct(d),f,e)}:n.length>2&&(u=function(d,f){return n.call(this,d,f,e)}));const c=l.call(i,u,r);return a&&o?o(c):c}function hu(e,t,n,r){const o=Ns(e);let s=n;return o!==e&&(Nt(e)?n.length>3&&(s=function(i,a,l){return n.call(this,i,a,l,e)}):s=function(i,a,l){return n.call(this,i,ct(a),l,e)}),o[t](s,...r)}function Yi(e,t,n){const r=_e(e);et(r,"iterate",Oo);const o=r[t](...n);return(o===-1||o===!1)&&So(n[0])?(n[0]=_e(n[0]),r[t](...n)):o}function No(e,t,n=[]){gn(),Zi();const r=_e(e)[t].apply(e,n);return qi(),yn(),r}const Nh=mn("__proto__,__v_isRef,__isVue"),mu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rn));function xh(e){Rn(e)||(e=String(e));const t=_e(this);return et(t,"has",e),t.hasOwnProperty(e)}class vu{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?ku:Su:s?xu:Nu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=de(t);if(!o){let l;if(i&&(l=Eh[n]))return l;if(n==="hasOwnProperty")return xh}const a=Reflect.get(t,n,qe(t)?t:r);return(Rn(n)?mu.has(n):Nh(n))||(o||et(t,"get",n),s)?a:qe(a)?i&&Li(n)?a:a.value:Ae(a)?o?Cu(a):xo(a):a}}class gu extends vu{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];if(!this._isShallow){const l=_n(s);if(!Nt(r)&&!_n(r)&&(s=_e(s),r=_e(r)),!de(t)&&qe(s)&&!qe(r))return l?!1:(s.value=r,!0)}const i=de(t)&&Li(n)?Number(n)<t.length:De(t,n),a=Reflect.set(t,n,r,qe(t)?t:o);return t===_e(o)&&(i?jn(r,s)&&tn(t,"set",n,r,s):tn(t,"add",n,r)),a}deleteProperty(t,n){const r=De(t,n),o=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&tn(t,"delete",n,void 0,o),s}has(t,n){const r=Reflect.has(t,n);return(!Rn(n)||!mu.has(n))&&et(t,"has",n),r}ownKeys(t){return et(t,"iterate",de(t)?"length":ur),Reflect.ownKeys(t)}}class yu extends vu{constructor(t=!1){super(!0,t)}set(t,n){return Re.NODE_ENV!=="production"&&Vt(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return Re.NODE_ENV!=="production"&&Vt(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const Sh=new gu,kh=new yu,Ch=new gu(!0),Th=new yu(!0),Xi=e=>e,xs=e=>Reflect.getPrototypeOf(e);function Ss(e,t,n=!1,r=!1){e=e.__v_raw;const o=_e(e),s=_e(t);n||(jn(t,s)&&et(o,"get",t),et(o,"get",s));const{has:i}=xs(o),a=r?Xi:n?Qi:ct;if(i.call(o,t))return a(e.get(t));if(i.call(o,s))return a(e.get(s));e!==o&&e.get(t)}function ks(e,t=!1){const n=this.__v_raw,r=_e(n),o=_e(e);return t||(jn(e,o)&&et(r,"has",e),et(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Cs(e,t=!1){return e=e.__v_raw,!t&&et(_e(e),"iterate",ur),Reflect.get(e,"size",e)}function bu(e,t=!1){!t&&!Nt(e)&&!_n(e)&&(e=_e(e));const n=_e(this);return xs(n).has.call(n,e)||(n.add(e),tn(n,"add",e,e)),this}function _u(e,t,n=!1){!n&&!Nt(t)&&!_n(t)&&(t=_e(t));const r=_e(this),{has:o,get:s}=xs(r);let i=o.call(r,e);i?Re.NODE_ENV!=="production"&&Ou(r,o,e):(e=_e(e),i=o.call(r,e));const a=s.call(r,e);return r.set(e,t),i?jn(t,a)&&tn(r,"set",e,t,a):tn(r,"add",e,t),this}function wu(e){const t=_e(this),{has:n,get:r}=xs(t);let o=n.call(t,e);o?Re.NODE_ENV!=="production"&&Ou(t,n,e):(e=_e(e),o=n.call(t,e));const s=r?r.call(t,e):void 0,i=t.delete(e);return o&&tn(t,"delete",e,void 0,s),i}function Eu(){const e=_e(this),t=e.size!==0,n=Re.NODE_ENV!=="production"?ir(e)?new Map(e):new Set(e):void 0,r=e.clear();return t&&tn(e,"clear",void 0,void 0,n),r}function Ts(e,t){return function(r,o){const s=this,i=s.__v_raw,a=_e(i),l=t?Xi:e?Qi:ct;return!e&&et(a,"iterate",ur),i.forEach((u,c)=>r.call(o,l(u),l(c),s))}}function Ps(e,t,n){return function(...r){const o=this.__v_raw,s=_e(o),i=ir(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=o[e](...r),c=n?Xi:t?Qi:ct;return!t&&et(s,"iterate",l?Gi:ur),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function Mn(e){return function(...t){if(Re.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";Vt(`${ar(e)} operation ${n}failed: target is readonly.`,_e(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Ph(){const e={get(s){return Ss(this,s)},get size(){return Cs(this)},has:ks,add:bu,set:_u,delete:wu,clear:Eu,forEach:Ts(!1,!1)},t={get(s){return Ss(this,s,!1,!0)},get size(){return Cs(this)},has:ks,add(s){return bu.call(this,s,!0)},set(s,i){return _u.call(this,s,i,!0)},delete:wu,clear:Eu,forEach:Ts(!1,!0)},n={get(s){return Ss(this,s,!0)},get size(){return Cs(this,!0)},has(s){return ks.call(this,s,!0)},add:Mn("add"),set:Mn("set"),delete:Mn("delete"),clear:Mn("clear"),forEach:Ts(!0,!1)},r={get(s){return Ss(this,s,!0,!0)},get size(){return Cs(this,!0)},has(s){return ks.call(this,s,!0)},add:Mn("add"),set:Mn("set"),delete:Mn("delete"),clear:Mn("clear"),forEach:Ts(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Ps(s,!1,!1),n[s]=Ps(s,!0,!1),t[s]=Ps(s,!1,!0),r[s]=Ps(s,!0,!0)}),[e,n,t,r]}const[$h,Dh,Ih,Ah]=Ph();function $s(e,t){const n=t?e?Ah:Ih:e?Dh:$h;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(De(n,o)&&o in r?n:r,o,s)}const Vh={get:$s(!1,!1)},Rh={get:$s(!1,!0)},jh={get:$s(!0,!1)},Mh={get:$s(!0,!0)};function Ou(e,t,n){const r=_e(n);if(r!==n&&t.call(e,r)){const o=Mi(e);Vt(`Reactive ${o} contains both the raw and reactive versions of the same object${o==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Nu=new WeakMap,xu=new WeakMap,Su=new WeakMap,ku=new WeakMap;function Lh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Uh(e){return e.__v_skip||!Object.isExtensible(e)?0:Lh(Mi(e))}function xo(e){return _n(e)?e:Ds(e,!1,Sh,Vh,Nu)}function Fh(e){return Ds(e,!1,Ch,Rh,xu)}function Cu(e){return Ds(e,!0,kh,jh,Su)}function nn(e){return Ds(e,!0,Th,Mh,ku)}function Ds(e,t,n,r,o){if(!Ae(e))return Re.NODE_ENV!=="production"&&Vt(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=Uh(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function rn(e){return _n(e)?rn(e.__v_raw):!!(e&&e.__v_isReactive)}function _n(e){return!!(e&&e.__v_isReadonly)}function Nt(e){return!!(e&&e.__v_isShallow)}function So(e){return e?!!e.__v_raw:!1}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}function Ln(e){return Object.isExtensible(e)&&ws(e,"__v_skip",!0),e}const ct=e=>Ae(e)?xo(e):e,Qi=e=>Ae(e)?Cu(e):e;function qe(e){return e?e.__v_isRef===!0:!1}function R(e){return Tu(e,!1)}function Bh(e){return Tu(e,!0)}function Tu(e,t){return qe(e)?e:new Hh(e,t)}class Hh{constructor(t,n){this.dep=new Ki,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:_e(t),this._value=n?t:ct(t),this.__v_isShallow=n}get value(){return Re.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Nt(t)||_n(t);t=r?t:_e(t),jn(t,n)&&(this._rawValue=t,this._value=r?t:ct(t),Re.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}function b(e){return qe(e)?e.value:e}function Un(e){return pe(e)?e():b(e)}const Zh={get:(e,t,n)=>t==="__v_raw"?e:b(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return qe(o)&&!qe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Pu(e){return rn(e)?e:new Proxy(e,Zh)}function $u(e){Re.NODE_ENV!=="production"&&!So(e)&&Vt("toRefs() expects a reactive object but received a plain one.");const t=de(e)?new Array(e.length):{};for(const n in e)t[n]=Du(e,n);return t}class qh{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return wh(_e(this._object),this._key)}}class Wh{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ea(e,t,n){return qe(e)?e:pe(e)?new Wh(e):Ae(e)&&arguments.length>1?Du(e,t,n):R(e)}function Du(e,t,n){const r=e[t];return qe(r)?r:new qh(e,t,n)}class zh{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ki(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Eo-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){Ve!==this&&(this.flags|=16,this.dep.notify())}get value(){const t=Re.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return cu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):Re.NODE_ENV!=="production"&&Vt("Write operation failed: computed value is readonly")}}function Kh(e,t,n=!1){let r,o;pe(e)?r=e:(r=e.get,o=e.set);const s=new zh(r,o,n);return Re.NODE_ENV!=="production"&&t&&!n&&(s.onTrack=t.onTrack,s.onTrigger=t.onTrigger),s}const Is={},As=new WeakMap;let cr;function Gh(e,t=!1,n=cr){if(n){let r=As.get(n);r||As.set(n,r=[]),r.push(e)}else Re.NODE_ENV!=="production"&&!t&&Vt("onWatcherCleanup() was called when there was no active watcher to associate with.")}function Jh(e,t,n=Me){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:a,call:l}=n,u=y=>{(n.onWarn||Vt)("Invalid watch source: ",y,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=y=>o?y:Nt(y)||o===!1||o===0?Fn(y,1):Fn(y);let d,f,m,E,x=!1,O=!1;if(qe(e)?(f=()=>e.value,x=Nt(e)):rn(e)?(f=()=>c(e),x=!0):de(e)?(O=!0,x=e.some(y=>rn(y)||Nt(y)),f=()=>e.map(y=>{if(qe(y))return y.value;if(rn(y))return c(y);if(pe(y))return l?l(y,2):y();Re.NODE_ENV!=="production"&&u(y)})):pe(e)?t?f=l?()=>l(e,2):e:f=()=>{if(m){gn();try{m()}finally{yn()}}const y=cr;cr=d;try{return l?l(e,3,[E]):e(E)}finally{cr=y}}:(f=Qe,Re.NODE_ENV!=="production"&&u(e)),t&&o){const y=f,M=o===!0?1/0:o;f=()=>Fn(y(),M)}const I=su(),j=()=>{d.stop(),I&&Ri(I.effects,d)};if(s)if(t){const y=t;t=(...M)=>{y(...M),j()}}else{const y=f;f=()=>{y(),j()}}let $=O?new Array(e.length).fill(Is):Is;const z=y=>{if(!(!(d.flags&1)||!d.dirty&&!y))if(t){const M=d.run();if(o||x||(O?M.some((P,re)=>jn(P,$[re])):jn(M,$))){m&&m();const P=cr;cr=d;try{const re=[M,$===Is?void 0:O&&$[0]===Is?[]:$,E];l?l(t,3,re):t(...re),$=M}finally{cr=P}}}else d.run()};return a&&a(z),d=new iu(f),d.scheduler=i?()=>i(z,!1):z,E=y=>Gh(y,!1,d),m=d.onStop=()=>{const y=As.get(d);if(y){if(l)l(y,4);else for(const M of y)M();As.delete(d)}},Re.NODE_ENV!=="production"&&(d.onTrack=n.onTrack,d.onTrigger=n.onTrigger),t?r?z(!0):$=d.run():i?i(z.bind(null,!0),!0):d.run(),j.pause=d.pause.bind(d),j.resume=d.resume.bind(d),j.stop=j,j}function Fn(e,t=1/0,n){if(t<=0||!Ae(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,qe(e))Fn(e.value,t,n);else if(de(e))for(let r=0;r<e.length;r++)Fn(e[r],t,n);else if(Jl(e)||ir(e))e.forEach(r=>{Fn(r,t,n)});else if(Xl(e)){for(const r in e)Fn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Fn(e[r],t,n)}return e}var _={};const dr=[];function Vs(e){dr.push(e)}function Rs(){dr.pop()}let ta=!1;function Z(e,...t){if(ta)return;ta=!0,gn();const n=dr.length?dr[dr.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=Yh();if(r)Br(r,n,11,[e+t.map(s=>{var i,a;return(a=(i=s.toString)==null?void 0:i.call(s))!=null?a:JSON.stringify(s)}).join(""),n&&n.proxy,o.map(({vnode:s})=>`at <${Qs(n,s.type)}>`).join(`
8
8
  `),o]);else{const s=[`[Vue warn]: ${e}`,...t];o.length&&s.push(`
9
9
  `,...Xh(o)),console.warn(...s)}yn(),ta=!1}function Yh(){let e=dr[dr.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Xh(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
10
- `],...Qh(n))}),t}function Qh({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,o=` at <${Ys(e.component,e.type,r)}`,s=">"+n;return e.props?[o,...em(e.props),s]:[o+s]}function em(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Iu(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Iu(e,t,n){return Ze(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:qe(t)?(t=Iu(e,be(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):pe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=be(t),n?t:[`${e}=`,t])}function tm(e,t){b.NODE_ENV!=="production"&&e!==void 0&&(typeof e!="number"?Z(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&Z(`${t} is NaN - the duration expression might be incorrect.`))}const na={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Br(e,t,n,r){try{return r?e(...r):e()}catch(o){ko(o,t,n)}}function Zt(e,t,n,r){if(pe(e)){const o=Br(e,t,n,r);return o&&ji(o)&&o.catch(s=>{ko(s,t,n)}),o}if(de(e)){const o=[];for(let s=0;s<e.length;s++)o.push(Zt(e[s],t,n,r));return o}else b.NODE_ENV!=="production"&&Z(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function ko(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Me;if(t){let a=t.parent;const l=t.proxy,u=b.NODE_ENV!=="production"?na[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}a=a.parent}if(s){gn(),Br(s,null,10,[e,l,u]),yn();return}}nm(e,n,o,r,i)}function nm(e,t,n,r=!0,o=!1){if(b.NODE_ENV!=="production"){const s=na[t];if(n&&Is(n),Z(`Unhandled error${s?` during execution of ${s}`:""}`),n&&As(),r)throw e;console.error(e)}else{if(o)throw e;console.error(e)}}let Co=!1,ra=!1;const bt=[];let on=0;const Hr=[];let Bn=null,Zr=0;const Au=Promise.resolve();let oa=null;const rm=100;function To(e){const t=oa||Au;return e?t.then(this?e.bind(this):e):t}function om(e){let t=Co?on+1:0,n=bt.length;for(;t<n;){const r=t+n>>>1,o=bt[r],s=Po(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function Vs(e){if(!(e.flags&1)){const t=Po(e),n=bt[bt.length-1];!n||!(e.flags&2)&&t>=Po(n)?bt.push(e):bt.splice(om(t),0,e),e.flags|=1,Vu()}}function Vu(){!Co&&!ra&&(ra=!0,oa=Au.then(Lu))}function Ru(e){de(e)?Hr.push(...e):Bn&&e.id===-1?Bn.splice(Zr+1,0,e):e.flags&1||(Hr.push(e),e.flags|=1),Vu()}function ju(e,t,n=Co?on+1:0){for(b.NODE_ENV!=="production"&&(t=t||new Map);n<bt.length;n++){const r=bt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid||b.NODE_ENV!=="production"&&sa(t,r))continue;bt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&=-2}}}function Mu(e){if(Hr.length){const t=[...new Set(Hr)].sort((n,r)=>Po(n)-Po(r));if(Hr.length=0,Bn){Bn.push(...t);return}for(Bn=t,b.NODE_ENV!=="production"&&(e=e||new Map),Zr=0;Zr<Bn.length;Zr++){const n=Bn[Zr];b.NODE_ENV!=="production"&&sa(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}Bn=null,Zr=0}}const Po=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Lu(e){ra=!1,Co=!0,b.NODE_ENV!=="production"&&(e=e||new Map);const t=b.NODE_ENV!=="production"?n=>sa(e,n):Qe;try{for(on=0;on<bt.length;on++){const n=bt[on];if(n&&!(n.flags&8)){if(b.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),Br(n,n.i,n.i?15:14),n.flags&=-2}}}finally{for(;on<bt.length;on++){const n=bt[on];n&&(n.flags&=-2)}on=0,bt.length=0,Mu(e),Co=!1,oa=null,(bt.length||Hr.length)&&Lu(e)}}function sa(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>rm){const r=t.i,o=r&&Ra(r.type);return ko(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}let Hn=!1;const Rs=new Map;b.NODE_ENV!=="production"&&(Ui().__VUE_HMR_RUNTIME__={createRecord:ia(Uu),rerender:ia(am),reload:ia(lm)});const fr=new Map;function sm(e){const t=e.type.__hmrId;let n=fr.get(t);n||(Uu(t,e.type),n=fr.get(t)),n.instances.add(e)}function im(e){fr.get(e.type.__hmrId).instances.delete(e)}function Uu(e,t){return fr.has(e)?!1:(fr.set(e,{initialDef:js(t),instances:new Set}),!0)}function js(e){return Wc(e)?e.__vccOpts:e}function am(e,t){const n=fr.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,js(r.type).render=t),r.renderCache=[],Hn=!0,r.update(),Hn=!1}))}function lm(e,t){const n=fr.get(e);if(!n)return;t=js(t),Fu(n.initialDef,t);const r=[...n.instances];for(let o=0;o<r.length;o++){const s=r[o],i=js(s.type);let a=Rs.get(i);a||(i!==n.initialDef&&Fu(i,t),Rs.set(i,a=new Set)),a.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(a.add(s),s.ceReload(t.styles),a.delete(s)):s.parent?Vs(()=>{s.parent.update(),a.delete(s)}):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),s.root.ce&&s!==s.root&&s.root.ce._removeChildStyle(i)}Ru(()=>{Rs.clear()})}function Fu(e,t){Ge(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function ia(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let sn,$o=[],aa=!1;function Do(e,...t){sn?sn.emit(e,...t):aa||$o.push({event:e,args:t})}function Bu(e,t){var n,r;sn=e,sn?(sn.enabled=!0,$o.forEach(({event:o,args:s})=>sn.emit(o,...s)),$o=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{Bu(s,t)}),setTimeout(()=>{sn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,aa=!0,$o=[])},3e3)):(aa=!0,$o=[])}function um(e,t){Do("app:init",e,t,{Fragment:Ce,Text:Mo,Comment:Je,Static:Lo})}function cm(e){Do("app:unmount",e)}const dm=la("component:added"),Hu=la("component:updated"),fm=la("component:removed"),pm=e=>{sn&&typeof sn.cleanupBuffer=="function"&&!sn.cleanupBuffer(e)&&fm(e)};/*! #__NO_SIDE_EFFECTS__ */function la(e){return t=>{Do(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const hm=Zu("perf:start"),mm=Zu("perf:end");function Zu(e){return(t,n,r)=>{Do(e,t.appContext.app,t.uid,t,n,r)}}function vm(e,t,n){Do("component:emit",e.appContext.app,e,t,n)}let tt=null,qu=null;function Ms(e){const t=tt;return tt=e,qu=e&&e.type.__scopeId||null,t}function we(e,t=tt,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Rc(-1);const s=Ms(t);let i;try{i=e(...o)}finally{Ms(s),r._d&&Rc(1)}return b.NODE_ENV!=="production"&&Hu(t),i};return r._n=!0,r._c=!0,r._d=!0,r}function Wu(e){rh(e)&&Z("Do not use built-in directive ids as custom directive id: "+e)}function pr(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];s&&(a.oldValue=s[i].value);let l=a.dir[r];l&&(gn(),Zt(l,n,8,[e.el,a,e,t]),yn())}}const zu=Symbol("_vte"),Ku=e=>e.__isTeleport,hr=e=>e&&(e.disabled||e.disabled===""),gm=e=>e&&(e.defer||e.defer===""),Gu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ju=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ua=(e,t)=>{const n=e&&e.to;if(Ze(n))if(t){const r=t(n);return b.NODE_ENV!=="production"&&!r&&!hr(e)&&Z(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),r}else return b.NODE_ENV!=="production"&&Z("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return b.NODE_ENV!=="production"&&!n&&!hr(e)&&Z(`Invalid Teleport target: ${n}`),n},ym={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,u){const{mc:c,pc:d,pbc:f,o:{insert:m,querySelector:E,createText:N,createComment:O}}=u,I=hr(t.props);let{shapeFlag:j,children:$,dynamicChildren:W}=t;if(b.NODE_ENV!=="production"&&Hn&&(l=!1,W=null),e==null){const y=t.el=b.NODE_ENV!=="production"?O("teleport start"):N(""),M=t.anchor=b.NODE_ENV!=="production"?O("teleport end"):N("");m(y,n,r),m(M,n,r);const P=(S,A)=>{j&16&&c($,S,A,o,s,i,a,l)},re=()=>{const S=t.target=ua(t.props,E),A=Yu(S,t,N,m);S?(i!=="svg"&&Gu(S)?i="svg":i!=="mathml"&&Ju(S)&&(i="mathml"),I||(P(S,A),Us(t))):b.NODE_ENV!=="production"&&!I&&Z("Invalid Teleport target on mount:",S,`(${typeof S})`)};I&&(P(n,M),Us(t)),gm(t.props)?xt(re,s):re()}else{t.el=e.el,t.targetStart=e.targetStart;const y=t.anchor=e.anchor,M=t.target=e.target,P=t.targetAnchor=e.targetAnchor,re=hr(e.props),S=re?n:M,A=re?y:P;if(i==="svg"||Gu(M)?i="svg":(i==="mathml"||Ju(M))&&(i="mathml"),W?(f(e.dynamicChildren,W,S,o,s,i,a),jo(e,t,!0)):l||d(e,t,S,A,o,s,i,a,!1),I)re?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ls(t,n,y,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=ua(t.props,E);D?Ls(t,D,null,u,0):b.NODE_ENV!=="production"&&Z("Invalid Teleport target on update:",M,`(${typeof M})`)}else re&&Ls(t,M,P,u,1);Us(t)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:f}=e;if(d&&(o(u),o(c)),s&&o(l),i&16){const m=s||!hr(f);for(let E=0;E<a.length;E++){const N=a[E];r(N,t,n,m,!!N.dynamicChildren)}}},move:Ls,hydrate:bm};function Ls(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:u,props:c}=e,d=s===2;if(d&&r(i,t,n),(!d||hr(c))&&l&16)for(let f=0;f<u.length;f++)o(u[f],t,n,2);d&&r(a,t,n)}function bm(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:u,createText:c}},d){const f=t.target=ua(t.props,l);if(f){const m=f._lpa||f.firstChild;if(t.shapeFlag&16)if(hr(t.props))t.anchor=d(i(e),t,a(e),n,r,o,s),t.targetStart=m,t.targetAnchor=m&&i(m);else{t.anchor=i(e);let E=m;for(;E;){if(E&&E.nodeType===8){if(E.data==="teleport start anchor")t.targetStart=E;else if(E.data==="teleport anchor"){t.targetAnchor=E,f._lpa=t.targetAnchor&&i(t.targetAnchor);break}}E=i(E)}t.targetAnchor||Yu(f,t,c,u),d(m&&i(m),t,f,n,r,o,s)}Us(t)}return t.anchor&&i(t.anchor)}const _m=ym;function Us(e){const t=e.ctx;if(t&&t.ut){let n=e.targetStart;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}function Yu(e,t,n,r){const o=t.targetStart=n(""),s=t.targetAnchor=n("");return o[zu]=s,e&&(r(o,e),r(s,e)),s}const Zn=Symbol("_leaveCb"),Fs=Symbol("_enterCb");function wm(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Re(()=>{e.isMounted=!0}),pa(()=>{e.isUnmounting=!0}),e}const Rt=[Function,Array],Xu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rt,onEnter:Rt,onAfterEnter:Rt,onEnterCancelled:Rt,onBeforeLeave:Rt,onLeave:Rt,onAfterLeave:Rt,onLeaveCancelled:Rt,onBeforeAppear:Rt,onAppear:Rt,onAfterAppear:Rt,onAppearCancelled:Rt},Qu=e=>{const t=e.subTree;return t.component?Qu(t.component):t},Em={name:"BaseTransition",props:Xu,setup(e,{slots:t}){const n=Ks(),r=wm();return()=>{const o=t.default&&rc(t.default(),!0);if(!o||!o.length)return;const s=ec(o),i=be(e),{mode:a}=i;if(b.NODE_ENV!=="production"&&a&&a!=="in-out"&&a!=="out-in"&&a!=="default"&&Z(`invalid <transition> mode: ${a}`),r.isLeaving)return da(s);const l=nc(s);if(!l)return da(s);let u=ca(l,i,r,n,f=>u=f);l.type!==Je&&Io(l,u);const c=n.subTree,d=c&&nc(c);if(d&&d.type!==Je&&!yr(l,d)&&Qu(n).type!==Je){const f=ca(d,i,r,n);if(Io(d,f),a==="out-in"&&l.type!==Je)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave},da(s);a==="in-out"&&l.type!==Je&&(f.delayLeave=(m,E,N)=>{const O=tc(r,d);O[String(d.key)]=d,m[Zn]=()=>{E(),m[Zn]=void 0,delete u.delayedLeave},u.delayedLeave=N})}return s}}};function ec(e){let t=e[0];if(e.length>1){let n=!1;for(const r of e)if(r.type!==Je){if(b.NODE_ENV!=="production"&&n){Z("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}if(t=r,n=!0,b.NODE_ENV==="production")break}}return t}const Om=Em;function tc(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ca(e,t,n,r,o){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:m,onAfterLeave:E,onLeaveCancelled:N,onBeforeAppear:O,onAppear:I,onAfterAppear:j,onAppearCancelled:$}=t,W=String(e.key),y=tc(n,e),M=(S,A)=>{S&&Zt(S,r,9,A)},P=(S,A)=>{const D=A[1];M(S,A),de(S)?S.every(k=>k.length<=1)&&D():S.length<=1&&D()},re={mode:i,persisted:a,beforeEnter(S){let A=l;if(!n.isMounted)if(s)A=O||l;else return;S[Zn]&&S[Zn](!0);const D=y[W];D&&yr(e,D)&&D.el[Zn]&&D.el[Zn](),M(A,[S])},enter(S){let A=u,D=c,k=d;if(!n.isMounted)if(s)A=I||u,D=j||c,k=$||d;else return;let L=!1;const ne=S[Fs]=h=>{L||(L=!0,h?M(k,[S]):M(D,[S]),re.delayedLeave&&re.delayedLeave(),S[Fs]=void 0)};A?P(A,[S,ne]):ne()},leave(S,A){const D=String(e.key);if(S[Fs]&&S[Fs](!0),n.isUnmounting)return A();M(f,[S]);let k=!1;const L=S[Zn]=ne=>{k||(k=!0,A(),ne?M(N,[S]):M(E,[S]),S[Zn]=void 0,y[D]===e&&delete y[D])};y[D]=e,m?P(m,[S,L]):L()},clone(S){const A=ca(S,t,n,r,o);return o&&o(A),A}};return re}function da(e){if(Ao(e))return e=qt(e),e.children=null,e}function nc(e){if(!Ao(e))return Ku(e.type)&&e.children?ec(e.children):e;if(b.NODE_ENV!=="production"&&e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&pe(n.default))return n.default()}}function Io(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Io(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function rc(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===Ce?(i.patchFlag&128&&o++,r=r.concat(rc(i.children,t,a))):(t||i.type!==Je)&&r.push(a!=null?qt(i,{key:a}):i)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function he(e,t){return pe(e)?Ge({name:e.name},t,{setup:e}):e}function oc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Nm=new WeakSet;function fa(e,t,n,r,o=!1){if(de(e)){e.forEach((E,N)=>fa(E,t&&(de(t)?t[N]:t),n,r,o));return}if(qr(r)&&!o)return;const s=r.shapeFlag&4?Va(r.component):r.el,i=o?null:s,{i:a,r:l}=e;if(b.NODE_ENV!=="production"&&!a){Z("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const u=t&&t.r,c=a.refs===Me?a.refs={}:a.refs,d=a.setupState,f=be(d),m=d===Me?()=>!1:E=>b.NODE_ENV!=="production"&&Nm.has(f[E])?!1:De(f,E);if(u!=null&&u!==l&&(Ze(u)?(c[u]=null,m(u)&&(d[u]=null)):qe(u)&&(u.value=null)),pe(l))Br(l,a,12,[i,c]);else{const E=Ze(l),N=qe(l);if(E||N){const O=()=>{if(e.f){const I=E?m(l)?d[l]:c[l]:l.value;o?de(I)&&Ri(I,s):de(I)?I.includes(s)||I.push(s):E?(c[l]=[s],m(l)&&(d[l]=c[l])):(l.value=[s],e.k&&(c[e.k]=l.value))}else E?(c[l]=i,m(l)&&(d[l]=i)):N?(l.value=i,e.k&&(c[e.k]=i)):b.NODE_ENV!=="production"&&Z("Invalid template ref type:",l,`(${typeof l})`)};i?(O.id=-1,xt(O,n)):O()}else b.NODE_ENV!=="production"&&Z("Invalid template ref type:",l,`(${typeof l})`)}}const qr=e=>!!e.type.__asyncLoader,Ao=e=>e.type.__isKeepAlive;function xm(e,t){sc(e,"a",t)}function Sm(e,t){sc(e,"da",t)}function sc(e,t,n=Xe){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Bs(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Ao(o.parent.vnode)&&km(r,t,n,o),o=o.parent}}function km(e,t,n,r){const o=Bs(t,e,r,!0);dt(()=>{Ri(r[t],o)},n)}function Bs(e,t,n=Xe,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{gn();const a=Bo(n),l=Zt(t,n,e,i);return a(),yn(),l});return r?o.unshift(s):o.push(s),s}else if(b.NODE_ENV!=="production"){const o=lr(na[e].replace(/ hook$/,""));Z(`${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const wn=e=>(t,n=Xe)=>{(!Js||e==="sp")&&Bs(e,(...r)=>t(...r),n)},Cm=wn("bm"),Re=wn("m"),Tm=wn("bu"),Pm=wn("u"),pa=wn("bum"),dt=wn("um"),$m=wn("sp"),Dm=wn("rtg"),Im=wn("rtc");function Am(e,t=Xe){Bs("ec",e,t)}const Vm="components",ic=Symbol.for("v-ndc");function ha(e){return Ze(e)?Rm(Vm,e,!1)||e:e||ic}function Rm(e,t,n=!0,r=!1){const o=tt||Xe;if(o){const s=o.type;{const a=Ra(s,!1);if(a&&(a===t||a===Tt(t)||a===ar(Tt(t))))return s}const i=ac(o[e]||s[e],t)||ac(o.appContext[e],t);return!i&&r?s:(b.NODE_ENV!=="production"&&n&&!i&&Z(`Failed to resolve ${e.slice(0,-1)}: ${t}
11
- If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`),i)}else b.NODE_ENV!=="production"&&Z(`resolve${ar(e.slice(0,-1))} can only be used in render() or setup().`)}function ac(e,t){return e&&(e[t]||e[Tt(t)]||e[ar(Tt(t))])}function an(e,t,n,r){let o;const s=n,i=de(e);if(i||Ze(e)){const a=i&&rn(e);a&&(e=Es(e)),o=new Array(e.length);for(let l=0,u=e.length;l<u;l++)o[l]=t(a?ct(e[l]):e[l],l,void 0,s)}else if(typeof e=="number"){b.NODE_ENV!=="production"&&!Number.isInteger(e)&&Z(`The v-for range expect an integer value but got ${e}.`),o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,s)}else if(Ie(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,s));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];o[l]=t(e[c],c,l,s)}}else o=[];return o}function ma(e,t,n={},r,o){if(tt.ce||tt.parent&&qr(tt.parent)&&tt.parent.ce)return w(),ke(Ce,null,[z("slot",n,r)],64);let s=e[t];b.NODE_ENV!=="production"&&s&&s.length>1&&(Z("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),s=()=>[]),s&&s._c&&(s._d=!1),w();const i=s&&lc(s(n)),a=ke(Ce,{key:(n.key||i&&i.key||`_${t}`)+(!i&&r?"_fb":"")},i||[],i&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function lc(e){return e.some(t=>Wr(t)?!(t.type===Je||t.type===Ce&&!lc(t.children)):!0)?e:null}const va=e=>e?Bc(e)?Va(e):va(e.parent):null,mr=Ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>b.NODE_ENV!=="production"?nn(e.props):e.props,$attrs:e=>b.NODE_ENV!=="production"?nn(e.attrs):e.attrs,$slots:e=>b.NODE_ENV!=="production"?nn(e.slots):e.slots,$refs:e=>b.NODE_ENV!=="production"?nn(e.refs):e.refs,$parent:e=>va(e.parent),$root:e=>va(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>_a(e),$forceUpdate:e=>e.f||(e.f=()=>{Vs(e.update)}),$nextTick:e=>e.n||(e.n=To.bind(e.proxy)),$watch:e=>mv.bind(e)}),ga=e=>e==="_"||e==="$",ya=(e,t)=>e!==Me&&!e.__isScriptSetup&&De(e,t),uc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;if(b.NODE_ENV!=="production"&&t==="__isVue")return!0;let u;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(ya(r,t))return i[t]=1,r[t];if(o!==Me&&De(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&De(u,t))return i[t]=3,s[t];if(n!==Me&&De(n,t))return i[t]=4,n[t];ba&&(i[t]=0)}}const c=mr[t];let d,f;if(c)return t==="$attrs"?(et(e.attrs,"get",""),b.NODE_ENV!=="production"&&Ws()):b.NODE_ENV!=="production"&&t==="$slots"&&et(e,"get",t),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Me&&De(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,De(f,t))return f[t];b.NODE_ENV!=="production"&&tt&&(!Ze(t)||t.indexOf("__v")!==0)&&(o!==Me&&ga(t[0])&&De(o,t)?Z(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===tt&&Z(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return ya(o,t)?(o[t]=n,!0):b.NODE_ENV!=="production"&&o.__isScriptSetup&&De(o,t)?(Z(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==Me&&De(r,t)?(r[t]=n,!0):De(e.props,t)?(b.NODE_ENV!=="production"&&Z(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(b.NODE_ENV!=="production"&&Z(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(b.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},i){let a;return!!n[i]||e!==Me&&De(e,i)||ya(t,i)||(a=s[0])&&De(a,i)||De(r,i)||De(mr,i)||De(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:De(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};b.NODE_ENV!=="production"&&(uc.ownKeys=e=>(Z("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function jm(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(mr).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>mr[n](e),set:Qe})}),t}function Mm(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(r=>{Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>e.props[r],set:Qe})})}function Lm(e){const{ctx:t,setupState:n}=e;Object.keys(be(n)).forEach(r=>{if(!n.__isScriptSetup){if(ga(r[0])){Z(`setup() return property ${JSON.stringify(r)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>n[r],set:Qe})}})}function cc(e){return de(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Um(){const e=Object.create(null);return(t,n)=>{e[n]?Z(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let ba=!0;function Fm(e){const t=_a(e),n=e.proxy,r=e.ctx;ba=!1,t.beforeCreate&&dc(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:m,updated:E,activated:N,deactivated:O,beforeDestroy:I,beforeUnmount:j,destroyed:$,unmounted:W,render:y,renderTracked:M,renderTriggered:P,errorCaptured:re,serverPrefetch:S,expose:A,inheritAttrs:D,components:k,directives:L,filters:ne}=t,h=b.NODE_ENV!=="production"?Um():null;if(b.NODE_ENV!=="production"){const[ee]=e.propsOptions;if(ee)for(const ie in ee)h("Props",ie)}if(u&&Bm(u,r,h),i)for(const ee in i){const ie=i[ee];pe(ie)?(b.NODE_ENV!=="production"?Object.defineProperty(r,ee,{value:ie.bind(n),configurable:!0,enumerable:!0,writable:!0}):r[ee]=ie.bind(n),b.NODE_ENV!=="production"&&h("Methods",ee)):b.NODE_ENV!=="production"&&Z(`Method "${ee}" has type "${typeof ie}" in the component definition. Did you reference the function correctly?`)}if(o){b.NODE_ENV!=="production"&&!pe(o)&&Z("The data option must be a function. Plain object usage is no longer supported.");const ee=o.call(n,n);if(b.NODE_ENV!=="production"&&ji(ee)&&Z("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Ie(ee))b.NODE_ENV!=="production"&&Z("data() should return an object.");else if(e.data=xo(ee),b.NODE_ENV!=="production")for(const ie in ee)h("Data",ie),ga(ie[0])||Object.defineProperty(r,ie,{configurable:!0,enumerable:!0,get:()=>ee[ie],set:Qe})}if(ba=!0,s)for(const ee in s){const ie=s[ee],ve=pe(ie)?ie.bind(n,n):pe(ie.get)?ie.get.bind(n,n):Qe;b.NODE_ENV!=="production"&&ve===Qe&&Z(`Computed property "${ee}" has no getter.`);const ae=!pe(ie)&&pe(ie.set)?ie.set.bind(n):b.NODE_ENV!=="production"?()=>{Z(`Write operation failed: computed property "${ee}" is readonly.`)}:Qe,Fe=Y({get:ve,set:ae});Object.defineProperty(r,ee,{enumerable:!0,configurable:!0,get:()=>Fe.value,set:mt=>Fe.value=mt}),b.NODE_ENV!=="production"&&h("Computed",ee)}if(a)for(const ee in a)fc(a[ee],r,n,ee);if(l){const ee=pe(l)?l.call(n):l;Reflect.ownKeys(ee).forEach(ie=>{ft(ie,ee[ie])})}c&&dc(c,e,"c");function V(ee,ie){de(ie)?ie.forEach(ve=>ee(ve.bind(n))):ie&&ee(ie.bind(n))}if(V(Cm,d),V(Re,f),V(Tm,m),V(Pm,E),V(xm,N),V(Sm,O),V(Am,re),V(Im,M),V(Dm,P),V(pa,j),V(dt,W),V($m,S),de(A))if(A.length){const ee=e.exposed||(e.exposed={});A.forEach(ie=>{Object.defineProperty(ee,ie,{get:()=>n[ie],set:ve=>n[ie]=ve})})}else e.exposed||(e.exposed={});y&&e.render===Qe&&(e.render=y),D!=null&&(e.inheritAttrs=D),k&&(e.components=k),L&&(e.directives=L),S&&oc(e)}function Bm(e,t,n=Qe){de(e)&&(e=wa(e));for(const r in e){const o=e[r];let s;Ie(o)?"default"in o?s=Se(o.from||r,o.default,!0):s=Se(o.from||r):s=Se(o),qe(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s,b.NODE_ENV!=="production"&&n("Inject",r)}}function dc(e,t,n){Zt(de(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function fc(e,t,n,r){let o=r.includes(".")?Pc(n,r):()=>n[r];if(Ze(e)){const s=t[e];pe(s)?ze(o,s):b.NODE_ENV!=="production"&&Z(`Invalid watch handler specified by key "${e}"`,s)}else if(pe(e))ze(o,e.bind(n));else if(Ie(e))if(de(e))e.forEach(s=>fc(s,t,n,r));else{const s=pe(e.handler)?e.handler.bind(n):t[e.handler];pe(s)?ze(o,s,e):b.NODE_ENV!=="production"&&Z(`Invalid watch handler specified by key "${e.handler}"`,s)}else b.NODE_ENV!=="production"&&Z(`Invalid watch option: "${r}"`,e)}function _a(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(u=>Hs(l,u,i,!0)),Hs(l,t,i)),Ie(t)&&s.set(t,l),l}function Hs(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&Hs(e,s,n,!0),o&&o.forEach(i=>Hs(e,i,n,!0));for(const i in t)if(r&&i==="expose")b.NODE_ENV!=="production"&&Z('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Hm[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Hm={data:pc,props:hc,emits:hc,methods:Vo,computed:Vo,beforeCreate:_t,created:_t,beforeMount:_t,mounted:_t,beforeUpdate:_t,updated:_t,beforeDestroy:_t,beforeUnmount:_t,destroyed:_t,unmounted:_t,activated:_t,deactivated:_t,errorCaptured:_t,serverPrefetch:_t,components:Vo,directives:Vo,watch:qm,provide:pc,inject:Zm};function pc(e,t){return t?e?function(){return Ge(pe(e)?e.call(this,this):e,pe(t)?t.call(this,this):t)}:t:e}function Zm(e,t){return Vo(wa(e),wa(t))}function wa(e){if(de(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _t(e,t){return e?[...new Set([].concat(e,t))]:t}function Vo(e,t){return e?Ge(Object.create(null),e,t):t}function hc(e,t){return e?de(e)&&de(t)?[...new Set([...e,...t])]:Ge(Object.create(null),cc(e),cc(t??{})):t}function qm(e,t){if(!e)return t;if(!t)return e;const n=Ge(Object.create(null),e);for(const r in t)n[r]=_t(e[r],t[r]);return n}function mc(){return{app:null,config:{isNativeTag:th,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Wm=0;function zm(e,t){return function(r,o=null){pe(r)||(r=Ge({},r)),o!=null&&!Ie(o)&&(b.NODE_ENV!=="production"&&Z("root props passed to app.mount() must be an object."),o=null);const s=mc(),i=new WeakSet,a=[];let l=!1;const u=s.app={_uid:Wm++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:zc,get config(){return s.config},set config(c){b.NODE_ENV!=="production"&&Z("app.config cannot be replaced. Modify individual options instead.")},use(c,...d){return i.has(c)?b.NODE_ENV!=="production"&&Z("Plugin has already been applied to target app."):c&&pe(c.install)?(i.add(c),c.install(u,...d)):pe(c)?(i.add(c),c(u,...d)):b.NODE_ENV!=="production"&&Z('A plugin must either be a function or an object with an "install" function.'),u},mixin(c){return s.mixins.includes(c)?b.NODE_ENV!=="production"&&Z("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):s.mixins.push(c),u},component(c,d){return b.NODE_ENV!=="production"&&Ia(c,s.config),d?(b.NODE_ENV!=="production"&&s.components[c]&&Z(`Component "${c}" has already been registered in target app.`),s.components[c]=d,u):s.components[c]},directive(c,d){return b.NODE_ENV!=="production"&&Wu(c),d?(b.NODE_ENV!=="production"&&s.directives[c]&&Z(`Directive "${c}" has already been registered in target app.`),s.directives[c]=d,u):s.directives[c]},mount(c,d,f){if(l)b.NODE_ENV!=="production"&&Z("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{b.NODE_ENV!=="production"&&c.__vue_app__&&Z("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const m=u._ceVNode||z(r,o);return m.appContext=s,f===!0?f="svg":f===!1&&(f=void 0),b.NODE_ENV!=="production"&&(s.reload=()=>{e(qt(m),c,f)}),d&&t?t(m,c):e(m,c,f),l=!0,u._container=c,c.__vue_app__=u,b.NODE_ENV!=="production"&&(u._instance=m.component,um(u,zc)),Va(m.component)}},onUnmount(c){b.NODE_ENV!=="production"&&typeof c!="function"&&Z(`Expected function as first argument to app.onUnmount(), but got ${typeof c}`),a.push(c)},unmount(){l?(Zt(a,u._instance,16),e(null,u._container),b.NODE_ENV!=="production"&&(u._instance=null,cm(u)),delete u._container.__vue_app__):b.NODE_ENV!=="production"&&Z("Cannot unmount an app that is not mounted.")},provide(c,d){return b.NODE_ENV!=="production"&&c in s.provides&&Z(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),s.provides[c]=d,u},runWithContext(c){const d=vr;vr=u;try{return c()}finally{vr=d}}};return u}}let vr=null;function ft(e,t){if(!Xe)b.NODE_ENV!=="production"&&Z("provide() can only be used inside setup().");else{let n=Xe.provides;const r=Xe.parent&&Xe.parent.provides;r===n&&(n=Xe.provides=Object.create(r)),n[e]=t}}function Se(e,t,n=!1){const r=Xe||tt;if(r||vr){const o=vr?vr._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&pe(t)?t.call(r&&r.proxy):t;b.NODE_ENV!=="production"&&Z(`injection "${String(e)}" not found.`)}else b.NODE_ENV!=="production"&&Z("inject() can only be used inside setup() or functional components.")}function Km(){return!!(Xe||tt||vr)}const vc={},gc=()=>Object.create(vc),yc=e=>Object.getPrototypeOf(e)===vc;function Gm(e,t,n,r=!1){const o={},s=gc();e.propsDefaults=Object.create(null),bc(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);b.NODE_ENV!=="production"&&Ec(t||{},o,e),n?e.props=r?o:Fh(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function Jm(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function Ym(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=be(o),[l]=e.propsOptions;let u=!1;if(!(b.NODE_ENV!=="production"&&Jm(e))&&(r||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let f=c[d];if(qs(e.emitsOptions,f))continue;const m=t[f];if(l)if(De(s,f))m!==s[f]&&(s[f]=m,u=!0);else{const E=Tt(f);o[E]=Ea(l,a,E,m,e,!1)}else m!==s[f]&&(s[f]=m,u=!0)}}}else{bc(e,t,o,s)&&(u=!0);let c;for(const d in a)(!t||!De(t,d)&&((c=vn(d))===d||!De(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(o[d]=Ea(l,a,d,void 0,e,!0)):delete o[d]);if(s!==a)for(const d in s)(!t||!De(t,d))&&(delete s[d],u=!0)}u&&tn(e.attrs,"set",""),b.NODE_ENV!=="production"&&Ec(t||{},o,e)}function bc(e,t,n,r){const[o,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(bo(l))continue;const u=t[l];let c;o&&De(o,c=Tt(l))?!s||!s.includes(c)?n[c]=u:(a||(a={}))[c]=u:qs(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(s){const l=be(n),u=a||Me;for(let c=0;c<s.length;c++){const d=s[c];n[d]=Ea(o,l,d,u[d],e,!De(u,d))}}return i}function Ea(e,t,n,r,o,s){const i=e[n];if(i!=null){const a=De(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&pe(l)){const{propsDefaults:u}=o;if(n in u)r=u[n];else{const c=Bo(o);r=u[n]=l.call(null,t),c()}}else r=l;o.ce&&o.ce._setProp(n,r)}i[0]&&(s&&!a?r=!1:i[1]&&(r===""||r===vn(n))&&(r=!0))}return r}const Xm=new WeakMap;function _c(e,t,n=!1){const r=n?Xm:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,i={},a=[];let l=!1;if(!pe(e)){const c=d=>{l=!0;const[f,m]=_c(d,t,!0);Ge(i,f),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return Ie(e)&&r.set(e,Ur),Ur;if(de(s))for(let c=0;c<s.length;c++){b.NODE_ENV!=="production"&&!Ze(s[c])&&Z("props must be strings when using array syntax.",s[c]);const d=Tt(s[c]);wc(d)&&(i[d]=Me)}else if(s){b.NODE_ENV!=="production"&&!Ie(s)&&Z("invalid props options",s);for(const c in s){const d=Tt(c);if(wc(d)){const f=s[c],m=i[d]=de(f)||pe(f)?{type:f}:Ge({},f),E=m.type;let N=!1,O=!0;if(de(E))for(let I=0;I<E.length;++I){const j=E[I],$=pe(j)&&j.name;if($==="Boolean"){N=!0;break}else $==="String"&&(O=!1)}else N=pe(E)&&E.name==="Boolean";m[0]=N,m[1]=O,(N||De(m,"default"))&&a.push(d)}}}const u=[i,a];return Ie(e)&&r.set(e,u),u}function wc(e){return e[0]!=="$"&&!bo(e)?!0:(b.NODE_ENV!=="production"&&Z(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Qm(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ec(e,t,n){const r=be(t),o=n.propsOptions[0];for(const s in o){let i=o[s];i!=null&&ev(s,r[s],i,b.NODE_ENV!=="production"?nn(r):r,!De(e,s)&&!De(e,vn(s)))}}function ev(e,t,n,r,o){const{type:s,required:i,validator:a,skipCheck:l}=n;if(i&&o){Z('Missing required prop: "'+e+'"');return}if(!(t==null&&!i)){if(s!=null&&s!==!0&&!l){let u=!1;const c=de(s)?s:[s],d=[];for(let f=0;f<c.length&&!u;f++){const{valid:m,expectedType:E}=nv(t,c[f]);d.push(E||""),u=m}if(!u){Z(rv(e,t,d));return}}a&&!a(t,r)&&Z('Invalid prop: custom validator check failed for prop "'+e+'".')}}const tv=mn("String,Number,Boolean,Function,Symbol,BigInt");function nv(e,t){let n;const r=Qm(t);if(r==="null")n=e===null;else if(tv(r)){const o=typeof e;n=o===r.toLowerCase(),!n&&o==="object"&&(n=e instanceof t)}else r==="Object"?n=Ie(e):r==="Array"?n=de(e):n=e instanceof t;return{valid:n,expectedType:r}}function rv(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let r=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(ar).join(" | ")}`;const o=n[0],s=Mi(t),i=Oc(t,o),a=Oc(t,s);return n.length===1&&Nc(o)&&!ov(o,s)&&(r+=` with value ${i}`),r+=`, got ${s} `,Nc(s)&&(r+=`with value ${a}.`),r}function Oc(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function Nc(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function ov(...e){return e.some(t=>t.toLowerCase()==="boolean")}const xc=e=>e[0]==="_"||e==="$stable",Oa=e=>de(e)?e.map(Wt):[Wt(e)],sv=(e,t,n)=>{if(t._n)return t;const r=we((...o)=>(b.NODE_ENV!=="production"&&Xe&&(!n||n.root===Xe.root)&&Z(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Oa(t(...o))),n);return r._c=!1,r},Sc=(e,t,n)=>{const r=e._ctx;for(const o in e){if(xc(o))continue;const s=e[o];if(pe(s))t[o]=sv(o,s,r);else if(s!=null){b.NODE_ENV!=="production"&&Z(`Non-function value encountered for slot "${o}". Prefer function slots for better performance.`);const i=Oa(s);t[o]=()=>i}}},kc=(e,t)=>{b.NODE_ENV!=="production"&&!Ao(e.vnode)&&Z("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Oa(t);e.slots.default=()=>n},Na=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},iv=(e,t,n)=>{const r=e.slots=gc();if(e.vnode.shapeFlag&32){const o=t._;o?(Na(r,t,n),n&&bs(r,"_",o,!0)):Sc(t,r)}else t&&kc(e,t)},av=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=Me;if(r.shapeFlag&32){const a=t._;a?b.NODE_ENV!=="production"&&Hn?(Na(o,t,n),tn(e,"set","$slots")):n&&a===1?s=!1:Na(o,t,n):(s=!t.$stable,Sc(t,o)),i=t}else t&&(kc(e,t),i={default:1});if(s)for(const a in o)!xc(a)&&i[a]==null&&delete o[a]};let Ro,qn;function En(e,t){e.appContext.config.performance&&Zs()&&qn.mark(`vue-${t}-${e.uid}`),b.NODE_ENV!=="production"&&hm(e,t,Zs()?qn.now():Date.now())}function On(e,t){if(e.appContext.config.performance&&Zs()){const n=`vue-${t}-${e.uid}`,r=n+":end";qn.mark(r),qn.measure(`<${Ys(e,e.type)}> ${t}`,n,r),qn.clearMarks(n),qn.clearMarks(r)}b.NODE_ENV!=="production"&&mm(e,t,Zs()?qn.now():Date.now())}function Zs(){return Ro!==void 0||(typeof window<"u"&&window.performance?(Ro=!0,qn=window.performance):Ro=!1),Ro}function lv(){const e=[];if(b.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
10
+ `],...Qh(n))}),t}function Qh({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,o=` at <${Qs(e.component,e.type,r)}`,s=">"+n;return e.props?[o,...em(e.props),s]:[o+s]}function em(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Iu(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Iu(e,t,n){return Ze(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:qe(t)?(t=Iu(e,_e(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):pe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=_e(t),n?t:[`${e}=`,t])}function tm(e,t){_.NODE_ENV!=="production"&&e!==void 0&&(typeof e!="number"?Z(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&Z(`${t} is NaN - the duration expression might be incorrect.`))}const na={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Br(e,t,n,r){try{return r?e(...r):e()}catch(o){ko(o,t,n)}}function Zt(e,t,n,r){if(pe(e)){const o=Br(e,t,n,r);return o&&ji(o)&&o.catch(s=>{ko(s,t,n)}),o}if(de(e)){const o=[];for(let s=0;s<e.length;s++)o.push(Zt(e[s],t,n,r));return o}else _.NODE_ENV!=="production"&&Z(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function ko(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Me;if(t){let a=t.parent;const l=t.proxy,u=_.NODE_ENV!=="production"?na[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}a=a.parent}if(s){gn(),Br(s,null,10,[e,l,u]),yn();return}}nm(e,n,o,r,i)}function nm(e,t,n,r=!0,o=!1){if(_.NODE_ENV!=="production"){const s=na[t];if(n&&Vs(n),Z(`Unhandled error${s?` during execution of ${s}`:""}`),n&&Rs(),r)throw e;console.error(e)}else{if(o)throw e;console.error(e)}}let Co=!1,ra=!1;const bt=[];let on=0;const Hr=[];let Bn=null,Zr=0;const Au=Promise.resolve();let oa=null;const rm=100;function To(e){const t=oa||Au;return e?t.then(this?e.bind(this):e):t}function om(e){let t=Co?on+1:0,n=bt.length;for(;t<n;){const r=t+n>>>1,o=bt[r],s=Po(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function js(e){if(!(e.flags&1)){const t=Po(e),n=bt[bt.length-1];!n||!(e.flags&2)&&t>=Po(n)?bt.push(e):bt.splice(om(t),0,e),e.flags|=1,Vu()}}function Vu(){!Co&&!ra&&(ra=!0,oa=Au.then(Lu))}function Ru(e){de(e)?Hr.push(...e):Bn&&e.id===-1?Bn.splice(Zr+1,0,e):e.flags&1||(Hr.push(e),e.flags|=1),Vu()}function ju(e,t,n=Co?on+1:0){for(_.NODE_ENV!=="production"&&(t=t||new Map);n<bt.length;n++){const r=bt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid||_.NODE_ENV!=="production"&&sa(t,r))continue;bt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&=-2}}}function Mu(e){if(Hr.length){const t=[...new Set(Hr)].sort((n,r)=>Po(n)-Po(r));if(Hr.length=0,Bn){Bn.push(...t);return}for(Bn=t,_.NODE_ENV!=="production"&&(e=e||new Map),Zr=0;Zr<Bn.length;Zr++){const n=Bn[Zr];_.NODE_ENV!=="production"&&sa(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}Bn=null,Zr=0}}const Po=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Lu(e){ra=!1,Co=!0,_.NODE_ENV!=="production"&&(e=e||new Map);const t=_.NODE_ENV!=="production"?n=>sa(e,n):Qe;try{for(on=0;on<bt.length;on++){const n=bt[on];if(n&&!(n.flags&8)){if(_.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),Br(n,n.i,n.i?15:14),n.flags&=-2}}}finally{for(;on<bt.length;on++){const n=bt[on];n&&(n.flags&=-2)}on=0,bt.length=0,Mu(e),Co=!1,oa=null,(bt.length||Hr.length)&&Lu(e)}}function sa(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>rm){const r=t.i,o=r&&Ra(r.type);return ko(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}let Hn=!1;const Ms=new Map;_.NODE_ENV!=="production"&&(Ui().__VUE_HMR_RUNTIME__={createRecord:ia(Uu),rerender:ia(am),reload:ia(lm)});const fr=new Map;function sm(e){const t=e.type.__hmrId;let n=fr.get(t);n||(Uu(t,e.type),n=fr.get(t)),n.instances.add(e)}function im(e){fr.get(e.type.__hmrId).instances.delete(e)}function Uu(e,t){return fr.has(e)?!1:(fr.set(e,{initialDef:Ls(t),instances:new Set}),!0)}function Ls(e){return Wc(e)?e.__vccOpts:e}function am(e,t){const n=fr.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,Ls(r.type).render=t),r.renderCache=[],Hn=!0,r.update(),Hn=!1}))}function lm(e,t){const n=fr.get(e);if(!n)return;t=Ls(t),Fu(n.initialDef,t);const r=[...n.instances];for(let o=0;o<r.length;o++){const s=r[o],i=Ls(s.type);let a=Ms.get(i);a||(i!==n.initialDef&&Fu(i,t),Ms.set(i,a=new Set)),a.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(a.add(s),s.ceReload(t.styles),a.delete(s)):s.parent?js(()=>{s.parent.update(),a.delete(s)}):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),s.root.ce&&s!==s.root&&s.root.ce._removeChildStyle(i)}Ru(()=>{Ms.clear()})}function Fu(e,t){Ge(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function ia(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let sn,$o=[],aa=!1;function Do(e,...t){sn?sn.emit(e,...t):aa||$o.push({event:e,args:t})}function Bu(e,t){var n,r;sn=e,sn?(sn.enabled=!0,$o.forEach(({event:o,args:s})=>sn.emit(o,...s)),$o=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{Bu(s,t)}),setTimeout(()=>{sn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,aa=!0,$o=[])},3e3)):(aa=!0,$o=[])}function um(e,t){Do("app:init",e,t,{Fragment:Te,Text:Mo,Comment:Je,Static:Lo})}function cm(e){Do("app:unmount",e)}const dm=la("component:added"),Hu=la("component:updated"),fm=la("component:removed"),pm=e=>{sn&&typeof sn.cleanupBuffer=="function"&&!sn.cleanupBuffer(e)&&fm(e)};/*! #__NO_SIDE_EFFECTS__ */function la(e){return t=>{Do(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const hm=Zu("perf:start"),mm=Zu("perf:end");function Zu(e){return(t,n,r)=>{Do(e,t.appContext.app,t.uid,t,n,r)}}function vm(e,t,n){Do("component:emit",e.appContext.app,e,t,n)}let tt=null,qu=null;function Us(e){const t=tt;return tt=e,qu=e&&e.type.__scopeId||null,t}function be(e,t=tt,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Rc(-1);const s=Us(t);let i;try{i=e(...o)}finally{Us(s),r._d&&Rc(1)}return _.NODE_ENV!=="production"&&Hu(t),i};return r._n=!0,r._c=!0,r._d=!0,r}function Wu(e){rh(e)&&Z("Do not use built-in directive ids as custom directive id: "+e)}function pr(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];s&&(a.oldValue=s[i].value);let l=a.dir[r];l&&(gn(),Zt(l,n,8,[e.el,a,e,t]),yn())}}const zu=Symbol("_vte"),Ku=e=>e.__isTeleport,hr=e=>e&&(e.disabled||e.disabled===""),gm=e=>e&&(e.defer||e.defer===""),Gu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ju=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ua=(e,t)=>{const n=e&&e.to;if(Ze(n))if(t){const r=t(n);return _.NODE_ENV!=="production"&&!r&&!hr(e)&&Z(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),r}else return _.NODE_ENV!=="production"&&Z("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return _.NODE_ENV!=="production"&&!n&&!hr(e)&&Z(`Invalid Teleport target: ${n}`),n},ym={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,u){const{mc:c,pc:d,pbc:f,o:{insert:m,querySelector:E,createText:x,createComment:O}}=u,I=hr(t.props);let{shapeFlag:j,children:$,dynamicChildren:z}=t;if(_.NODE_ENV!=="production"&&Hn&&(l=!1,z=null),e==null){const y=t.el=_.NODE_ENV!=="production"?O("teleport start"):x(""),M=t.anchor=_.NODE_ENV!=="production"?O("teleport end"):x("");m(y,n,r),m(M,n,r);const P=(S,A)=>{j&16&&c($,S,A,o,s,i,a,l)},re=()=>{const S=t.target=ua(t.props,E),A=Yu(S,t,x,m);S?(i!=="svg"&&Gu(S)?i="svg":i!=="mathml"&&Ju(S)&&(i="mathml"),I||(P(S,A),Bs(t))):_.NODE_ENV!=="production"&&!I&&Z("Invalid Teleport target on mount:",S,`(${typeof S})`)};I&&(P(n,M),Bs(t)),gm(t.props)?xt(re,s):re()}else{t.el=e.el,t.targetStart=e.targetStart;const y=t.anchor=e.anchor,M=t.target=e.target,P=t.targetAnchor=e.targetAnchor,re=hr(e.props),S=re?n:M,A=re?y:P;if(i==="svg"||Gu(M)?i="svg":(i==="mathml"||Ju(M))&&(i="mathml"),z?(f(e.dynamicChildren,z,S,o,s,i,a),jo(e,t,!0)):l||d(e,t,S,A,o,s,i,a,!1),I)re?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Fs(t,n,y,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=ua(t.props,E);D?Fs(t,D,null,u,0):_.NODE_ENV!=="production"&&Z("Invalid Teleport target on update:",M,`(${typeof M})`)}else re&&Fs(t,M,P,u,1);Bs(t)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:f}=e;if(d&&(o(u),o(c)),s&&o(l),i&16){const m=s||!hr(f);for(let E=0;E<a.length;E++){const x=a[E];r(x,t,n,m,!!x.dynamicChildren)}}},move:Fs,hydrate:bm};function Fs(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:u,props:c}=e,d=s===2;if(d&&r(i,t,n),(!d||hr(c))&&l&16)for(let f=0;f<u.length;f++)o(u[f],t,n,2);d&&r(a,t,n)}function bm(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:u,createText:c}},d){const f=t.target=ua(t.props,l);if(f){const m=f._lpa||f.firstChild;if(t.shapeFlag&16)if(hr(t.props))t.anchor=d(i(e),t,a(e),n,r,o,s),t.targetStart=m,t.targetAnchor=m&&i(m);else{t.anchor=i(e);let E=m;for(;E;){if(E&&E.nodeType===8){if(E.data==="teleport start anchor")t.targetStart=E;else if(E.data==="teleport anchor"){t.targetAnchor=E,f._lpa=t.targetAnchor&&i(t.targetAnchor);break}}E=i(E)}t.targetAnchor||Yu(f,t,c,u),d(m&&i(m),t,f,n,r,o,s)}Bs(t)}return t.anchor&&i(t.anchor)}const _m=ym;function Bs(e){const t=e.ctx;if(t&&t.ut){let n=e.targetStart;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}function Yu(e,t,n,r){const o=t.targetStart=n(""),s=t.targetAnchor=n("");return o[zu]=s,e&&(r(o,e),r(s,e)),s}const Zn=Symbol("_leaveCb"),Hs=Symbol("_enterCb");function wm(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return je(()=>{e.isMounted=!0}),pa(()=>{e.isUnmounting=!0}),e}const Rt=[Function,Array],Xu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rt,onEnter:Rt,onAfterEnter:Rt,onEnterCancelled:Rt,onBeforeLeave:Rt,onLeave:Rt,onAfterLeave:Rt,onLeaveCancelled:Rt,onBeforeAppear:Rt,onAppear:Rt,onAfterAppear:Rt,onAppearCancelled:Rt},Qu=e=>{const t=e.subTree;return t.component?Qu(t.component):t},Em={name:"BaseTransition",props:Xu,setup(e,{slots:t}){const n=Js(),r=wm();return()=>{const o=t.default&&rc(t.default(),!0);if(!o||!o.length)return;const s=ec(o),i=_e(e),{mode:a}=i;if(_.NODE_ENV!=="production"&&a&&a!=="in-out"&&a!=="out-in"&&a!=="default"&&Z(`invalid <transition> mode: ${a}`),r.isLeaving)return da(s);const l=nc(s);if(!l)return da(s);let u=ca(l,i,r,n,f=>u=f);l.type!==Je&&Io(l,u);const c=n.subTree,d=c&&nc(c);if(d&&d.type!==Je&&!yr(l,d)&&Qu(n).type!==Je){const f=ca(d,i,r,n);if(Io(d,f),a==="out-in"&&l.type!==Je)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave},da(s);a==="in-out"&&l.type!==Je&&(f.delayLeave=(m,E,x)=>{const O=tc(r,d);O[String(d.key)]=d,m[Zn]=()=>{E(),m[Zn]=void 0,delete u.delayedLeave},u.delayedLeave=x})}return s}}};function ec(e){let t=e[0];if(e.length>1){let n=!1;for(const r of e)if(r.type!==Je){if(_.NODE_ENV!=="production"&&n){Z("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}if(t=r,n=!0,_.NODE_ENV==="production")break}}return t}const Om=Em;function tc(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ca(e,t,n,r,o){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:m,onAfterLeave:E,onLeaveCancelled:x,onBeforeAppear:O,onAppear:I,onAfterAppear:j,onAppearCancelled:$}=t,z=String(e.key),y=tc(n,e),M=(S,A)=>{S&&Zt(S,r,9,A)},P=(S,A)=>{const D=A[1];M(S,A),de(S)?S.every(k=>k.length<=1)&&D():S.length<=1&&D()},re={mode:i,persisted:a,beforeEnter(S){let A=l;if(!n.isMounted)if(s)A=O||l;else return;S[Zn]&&S[Zn](!0);const D=y[z];D&&yr(e,D)&&D.el[Zn]&&D.el[Zn](),M(A,[S])},enter(S){let A=u,D=c,k=d;if(!n.isMounted)if(s)A=I||u,D=j||c,k=$||d;else return;let L=!1;const ne=S[Hs]=h=>{L||(L=!0,h?M(k,[S]):M(D,[S]),re.delayedLeave&&re.delayedLeave(),S[Hs]=void 0)};A?P(A,[S,ne]):ne()},leave(S,A){const D=String(e.key);if(S[Hs]&&S[Hs](!0),n.isUnmounting)return A();M(f,[S]);let k=!1;const L=S[Zn]=ne=>{k||(k=!0,A(),ne?M(x,[S]):M(E,[S]),S[Zn]=void 0,y[D]===e&&delete y[D])};y[D]=e,m?P(m,[S,L]):L()},clone(S){const A=ca(S,t,n,r,o);return o&&o(A),A}};return re}function da(e){if(Ao(e))return e=qt(e),e.children=null,e}function nc(e){if(!Ao(e))return Ku(e.type)&&e.children?ec(e.children):e;if(_.NODE_ENV!=="production"&&e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&pe(n.default))return n.default()}}function Io(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Io(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function rc(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===Te?(i.patchFlag&128&&o++,r=r.concat(rc(i.children,t,a))):(t||i.type!==Je)&&r.push(a!=null?qt(i,{key:a}):i)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function he(e,t){return pe(e)?Ge({name:e.name},t,{setup:e}):e}function oc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Nm=new WeakSet;function fa(e,t,n,r,o=!1){if(de(e)){e.forEach((E,x)=>fa(E,t&&(de(t)?t[x]:t),n,r,o));return}if(qr(r)&&!o)return;const s=r.shapeFlag&4?Va(r.component):r.el,i=o?null:s,{i:a,r:l}=e;if(_.NODE_ENV!=="production"&&!a){Z("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const u=t&&t.r,c=a.refs===Me?a.refs={}:a.refs,d=a.setupState,f=_e(d),m=d===Me?()=>!1:E=>_.NODE_ENV!=="production"&&Nm.has(f[E])?!1:De(f,E);if(u!=null&&u!==l&&(Ze(u)?(c[u]=null,m(u)&&(d[u]=null)):qe(u)&&(u.value=null)),pe(l))Br(l,a,12,[i,c]);else{const E=Ze(l),x=qe(l);if(E||x){const O=()=>{if(e.f){const I=E?m(l)?d[l]:c[l]:l.value;o?de(I)&&Ri(I,s):de(I)?I.includes(s)||I.push(s):E?(c[l]=[s],m(l)&&(d[l]=c[l])):(l.value=[s],e.k&&(c[e.k]=l.value))}else E?(c[l]=i,m(l)&&(d[l]=i)):x?(l.value=i,e.k&&(c[e.k]=i)):_.NODE_ENV!=="production"&&Z("Invalid template ref type:",l,`(${typeof l})`)};i?(O.id=-1,xt(O,n)):O()}else _.NODE_ENV!=="production"&&Z("Invalid template ref type:",l,`(${typeof l})`)}}const qr=e=>!!e.type.__asyncLoader,Ao=e=>e.type.__isKeepAlive;function xm(e,t){sc(e,"a",t)}function Sm(e,t){sc(e,"da",t)}function sc(e,t,n=Xe){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Zs(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Ao(o.parent.vnode)&&km(r,t,n,o),o=o.parent}}function km(e,t,n,r){const o=Zs(t,e,r,!0);dt(()=>{Ri(r[t],o)},n)}function Zs(e,t,n=Xe,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{gn();const a=Bo(n),l=Zt(t,n,e,i);return a(),yn(),l});return r?o.unshift(s):o.push(s),s}else if(_.NODE_ENV!=="production"){const o=lr(na[e].replace(/ hook$/,""));Z(`${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const wn=e=>(t,n=Xe)=>{(!Xs||e==="sp")&&Zs(e,(...r)=>t(...r),n)},Cm=wn("bm"),je=wn("m"),Tm=wn("bu"),Pm=wn("u"),pa=wn("bum"),dt=wn("um"),$m=wn("sp"),Dm=wn("rtg"),Im=wn("rtc");function Am(e,t=Xe){Zs("ec",e,t)}const Vm="components",ic=Symbol.for("v-ndc");function ha(e){return Ze(e)?Rm(Vm,e,!1)||e:e||ic}function Rm(e,t,n=!0,r=!1){const o=tt||Xe;if(o){const s=o.type;{const a=Ra(s,!1);if(a&&(a===t||a===Tt(t)||a===ar(Tt(t))))return s}const i=ac(o[e]||s[e],t)||ac(o.appContext[e],t);return!i&&r?s:(_.NODE_ENV!=="production"&&n&&!i&&Z(`Failed to resolve ${e.slice(0,-1)}: ${t}
11
+ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`),i)}else _.NODE_ENV!=="production"&&Z(`resolve${ar(e.slice(0,-1))} can only be used in render() or setup().`)}function ac(e,t){return e&&(e[t]||e[Tt(t)]||e[ar(Tt(t))])}function an(e,t,n,r){let o;const s=n,i=de(e);if(i||Ze(e)){const a=i&&rn(e);a&&(e=Ns(e)),o=new Array(e.length);for(let l=0,u=e.length;l<u;l++)o[l]=t(a?ct(e[l]):e[l],l,void 0,s)}else if(typeof e=="number"){_.NODE_ENV!=="production"&&!Number.isInteger(e)&&Z(`The v-for range expect an integer value but got ${e}.`),o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,s)}else if(Ae(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,s));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];o[l]=t(e[c],c,l,s)}}else o=[];return o}function ma(e,t,n={},r,o){if(tt.ce||tt.parent&&qr(tt.parent)&&tt.parent.ce)return w(),Se(Te,null,[W("slot",n,r)],64);let s=e[t];_.NODE_ENV!=="production"&&s&&s.length>1&&(Z("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),s=()=>[]),s&&s._c&&(s._d=!1),w();const i=s&&lc(s(n)),a=Se(Te,{key:(n.key||i&&i.key||`_${t}`)+(!i&&r?"_fb":"")},i||[],i&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function lc(e){return e.some(t=>Wr(t)?!(t.type===Je||t.type===Te&&!lc(t.children)):!0)?e:null}const va=e=>e?Bc(e)?Va(e):va(e.parent):null,mr=Ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>_.NODE_ENV!=="production"?nn(e.props):e.props,$attrs:e=>_.NODE_ENV!=="production"?nn(e.attrs):e.attrs,$slots:e=>_.NODE_ENV!=="production"?nn(e.slots):e.slots,$refs:e=>_.NODE_ENV!=="production"?nn(e.refs):e.refs,$parent:e=>va(e.parent),$root:e=>va(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>_a(e),$forceUpdate:e=>e.f||(e.f=()=>{js(e.update)}),$nextTick:e=>e.n||(e.n=To.bind(e.proxy)),$watch:e=>mv.bind(e)}),ga=e=>e==="_"||e==="$",ya=(e,t)=>e!==Me&&!e.__isScriptSetup&&De(e,t),uc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;if(_.NODE_ENV!=="production"&&t==="__isVue")return!0;let u;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(ya(r,t))return i[t]=1,r[t];if(o!==Me&&De(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&De(u,t))return i[t]=3,s[t];if(n!==Me&&De(n,t))return i[t]=4,n[t];ba&&(i[t]=0)}}const c=mr[t];let d,f;if(c)return t==="$attrs"?(et(e.attrs,"get",""),_.NODE_ENV!=="production"&&Ks()):_.NODE_ENV!=="production"&&t==="$slots"&&et(e,"get",t),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Me&&De(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,De(f,t))return f[t];_.NODE_ENV!=="production"&&tt&&(!Ze(t)||t.indexOf("__v")!==0)&&(o!==Me&&ga(t[0])&&De(o,t)?Z(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===tt&&Z(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return ya(o,t)?(o[t]=n,!0):_.NODE_ENV!=="production"&&o.__isScriptSetup&&De(o,t)?(Z(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==Me&&De(r,t)?(r[t]=n,!0):De(e.props,t)?(_.NODE_ENV!=="production"&&Z(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(_.NODE_ENV!=="production"&&Z(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(_.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},i){let a;return!!n[i]||e!==Me&&De(e,i)||ya(t,i)||(a=s[0])&&De(a,i)||De(r,i)||De(mr,i)||De(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:De(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};_.NODE_ENV!=="production"&&(uc.ownKeys=e=>(Z("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function jm(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(mr).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>mr[n](e),set:Qe})}),t}function Mm(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(r=>{Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>e.props[r],set:Qe})})}function Lm(e){const{ctx:t,setupState:n}=e;Object.keys(_e(n)).forEach(r=>{if(!n.__isScriptSetup){if(ga(r[0])){Z(`setup() return property ${JSON.stringify(r)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>n[r],set:Qe})}})}function cc(e){return de(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Um(){const e=Object.create(null);return(t,n)=>{e[n]?Z(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let ba=!0;function Fm(e){const t=_a(e),n=e.proxy,r=e.ctx;ba=!1,t.beforeCreate&&dc(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:m,updated:E,activated:x,deactivated:O,beforeDestroy:I,beforeUnmount:j,destroyed:$,unmounted:z,render:y,renderTracked:M,renderTriggered:P,errorCaptured:re,serverPrefetch:S,expose:A,inheritAttrs:D,components:k,directives:L,filters:ne}=t,h=_.NODE_ENV!=="production"?Um():null;if(_.NODE_ENV!=="production"){const[ee]=e.propsOptions;if(ee)for(const ie in ee)h("Props",ie)}if(u&&Bm(u,r,h),i)for(const ee in i){const ie=i[ee];pe(ie)?(_.NODE_ENV!=="production"?Object.defineProperty(r,ee,{value:ie.bind(n),configurable:!0,enumerable:!0,writable:!0}):r[ee]=ie.bind(n),_.NODE_ENV!=="production"&&h("Methods",ee)):_.NODE_ENV!=="production"&&Z(`Method "${ee}" has type "${typeof ie}" in the component definition. Did you reference the function correctly?`)}if(o){_.NODE_ENV!=="production"&&!pe(o)&&Z("The data option must be a function. Plain object usage is no longer supported.");const ee=o.call(n,n);if(_.NODE_ENV!=="production"&&ji(ee)&&Z("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Ae(ee))_.NODE_ENV!=="production"&&Z("data() should return an object.");else if(e.data=xo(ee),_.NODE_ENV!=="production")for(const ie in ee)h("Data",ie),ga(ie[0])||Object.defineProperty(r,ie,{configurable:!0,enumerable:!0,get:()=>ee[ie],set:Qe})}if(ba=!0,s)for(const ee in s){const ie=s[ee],ve=pe(ie)?ie.bind(n,n):pe(ie.get)?ie.get.bind(n,n):Qe;_.NODE_ENV!=="production"&&ve===Qe&&Z(`Computed property "${ee}" has no getter.`);const le=!pe(ie)&&pe(ie.set)?ie.set.bind(n):_.NODE_ENV!=="production"?()=>{Z(`Write operation failed: computed property "${ee}" is readonly.`)}:Qe,Fe=Y({get:ve,set:le});Object.defineProperty(r,ee,{enumerable:!0,configurable:!0,get:()=>Fe.value,set:mt=>Fe.value=mt}),_.NODE_ENV!=="production"&&h("Computed",ee)}if(a)for(const ee in a)fc(a[ee],r,n,ee);if(l){const ee=pe(l)?l.call(n):l;Reflect.ownKeys(ee).forEach(ie=>{ft(ie,ee[ie])})}c&&dc(c,e,"c");function V(ee,ie){de(ie)?ie.forEach(ve=>ee(ve.bind(n))):ie&&ee(ie.bind(n))}if(V(Cm,d),V(je,f),V(Tm,m),V(Pm,E),V(xm,x),V(Sm,O),V(Am,re),V(Im,M),V(Dm,P),V(pa,j),V(dt,z),V($m,S),de(A))if(A.length){const ee=e.exposed||(e.exposed={});A.forEach(ie=>{Object.defineProperty(ee,ie,{get:()=>n[ie],set:ve=>n[ie]=ve})})}else e.exposed||(e.exposed={});y&&e.render===Qe&&(e.render=y),D!=null&&(e.inheritAttrs=D),k&&(e.components=k),L&&(e.directives=L),S&&oc(e)}function Bm(e,t,n=Qe){de(e)&&(e=wa(e));for(const r in e){const o=e[r];let s;Ae(o)?"default"in o?s=ke(o.from||r,o.default,!0):s=ke(o.from||r):s=ke(o),qe(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s,_.NODE_ENV!=="production"&&n("Inject",r)}}function dc(e,t,n){Zt(de(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function fc(e,t,n,r){let o=r.includes(".")?Pc(n,r):()=>n[r];if(Ze(e)){const s=t[e];pe(s)?ze(o,s):_.NODE_ENV!=="production"&&Z(`Invalid watch handler specified by key "${e}"`,s)}else if(pe(e))ze(o,e.bind(n));else if(Ae(e))if(de(e))e.forEach(s=>fc(s,t,n,r));else{const s=pe(e.handler)?e.handler.bind(n):t[e.handler];pe(s)?ze(o,s,e):_.NODE_ENV!=="production"&&Z(`Invalid watch handler specified by key "${e.handler}"`,s)}else _.NODE_ENV!=="production"&&Z(`Invalid watch option: "${r}"`,e)}function _a(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(u=>qs(l,u,i,!0)),qs(l,t,i)),Ae(t)&&s.set(t,l),l}function qs(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&qs(e,s,n,!0),o&&o.forEach(i=>qs(e,i,n,!0));for(const i in t)if(r&&i==="expose")_.NODE_ENV!=="production"&&Z('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Hm[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Hm={data:pc,props:hc,emits:hc,methods:Vo,computed:Vo,beforeCreate:_t,created:_t,beforeMount:_t,mounted:_t,beforeUpdate:_t,updated:_t,beforeDestroy:_t,beforeUnmount:_t,destroyed:_t,unmounted:_t,activated:_t,deactivated:_t,errorCaptured:_t,serverPrefetch:_t,components:Vo,directives:Vo,watch:qm,provide:pc,inject:Zm};function pc(e,t){return t?e?function(){return Ge(pe(e)?e.call(this,this):e,pe(t)?t.call(this,this):t)}:t:e}function Zm(e,t){return Vo(wa(e),wa(t))}function wa(e){if(de(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _t(e,t){return e?[...new Set([].concat(e,t))]:t}function Vo(e,t){return e?Ge(Object.create(null),e,t):t}function hc(e,t){return e?de(e)&&de(t)?[...new Set([...e,...t])]:Ge(Object.create(null),cc(e),cc(t??{})):t}function qm(e,t){if(!e)return t;if(!t)return e;const n=Ge(Object.create(null),e);for(const r in t)n[r]=_t(e[r],t[r]);return n}function mc(){return{app:null,config:{isNativeTag:th,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Wm=0;function zm(e,t){return function(r,o=null){pe(r)||(r=Ge({},r)),o!=null&&!Ae(o)&&(_.NODE_ENV!=="production"&&Z("root props passed to app.mount() must be an object."),o=null);const s=mc(),i=new WeakSet,a=[];let l=!1;const u=s.app={_uid:Wm++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:zc,get config(){return s.config},set config(c){_.NODE_ENV!=="production"&&Z("app.config cannot be replaced. Modify individual options instead.")},use(c,...d){return i.has(c)?_.NODE_ENV!=="production"&&Z("Plugin has already been applied to target app."):c&&pe(c.install)?(i.add(c),c.install(u,...d)):pe(c)?(i.add(c),c(u,...d)):_.NODE_ENV!=="production"&&Z('A plugin must either be a function or an object with an "install" function.'),u},mixin(c){return s.mixins.includes(c)?_.NODE_ENV!=="production"&&Z("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):s.mixins.push(c),u},component(c,d){return _.NODE_ENV!=="production"&&Ia(c,s.config),d?(_.NODE_ENV!=="production"&&s.components[c]&&Z(`Component "${c}" has already been registered in target app.`),s.components[c]=d,u):s.components[c]},directive(c,d){return _.NODE_ENV!=="production"&&Wu(c),d?(_.NODE_ENV!=="production"&&s.directives[c]&&Z(`Directive "${c}" has already been registered in target app.`),s.directives[c]=d,u):s.directives[c]},mount(c,d,f){if(l)_.NODE_ENV!=="production"&&Z("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{_.NODE_ENV!=="production"&&c.__vue_app__&&Z("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const m=u._ceVNode||W(r,o);return m.appContext=s,f===!0?f="svg":f===!1&&(f=void 0),_.NODE_ENV!=="production"&&(s.reload=()=>{e(qt(m),c,f)}),d&&t?t(m,c):e(m,c,f),l=!0,u._container=c,c.__vue_app__=u,_.NODE_ENV!=="production"&&(u._instance=m.component,um(u,zc)),Va(m.component)}},onUnmount(c){_.NODE_ENV!=="production"&&typeof c!="function"&&Z(`Expected function as first argument to app.onUnmount(), but got ${typeof c}`),a.push(c)},unmount(){l?(Zt(a,u._instance,16),e(null,u._container),_.NODE_ENV!=="production"&&(u._instance=null,cm(u)),delete u._container.__vue_app__):_.NODE_ENV!=="production"&&Z("Cannot unmount an app that is not mounted.")},provide(c,d){return _.NODE_ENV!=="production"&&c in s.provides&&Z(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),s.provides[c]=d,u},runWithContext(c){const d=vr;vr=u;try{return c()}finally{vr=d}}};return u}}let vr=null;function ft(e,t){if(!Xe)_.NODE_ENV!=="production"&&Z("provide() can only be used inside setup().");else{let n=Xe.provides;const r=Xe.parent&&Xe.parent.provides;r===n&&(n=Xe.provides=Object.create(r)),n[e]=t}}function ke(e,t,n=!1){const r=Xe||tt;if(r||vr){const o=vr?vr._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&pe(t)?t.call(r&&r.proxy):t;_.NODE_ENV!=="production"&&Z(`injection "${String(e)}" not found.`)}else _.NODE_ENV!=="production"&&Z("inject() can only be used inside setup() or functional components.")}function Km(){return!!(Xe||tt||vr)}const vc={},gc=()=>Object.create(vc),yc=e=>Object.getPrototypeOf(e)===vc;function Gm(e,t,n,r=!1){const o={},s=gc();e.propsDefaults=Object.create(null),bc(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);_.NODE_ENV!=="production"&&Ec(t||{},o,e),n?e.props=r?o:Fh(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function Jm(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function Ym(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=_e(o),[l]=e.propsOptions;let u=!1;if(!(_.NODE_ENV!=="production"&&Jm(e))&&(r||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let f=c[d];if(zs(e.emitsOptions,f))continue;const m=t[f];if(l)if(De(s,f))m!==s[f]&&(s[f]=m,u=!0);else{const E=Tt(f);o[E]=Ea(l,a,E,m,e,!1)}else m!==s[f]&&(s[f]=m,u=!0)}}}else{bc(e,t,o,s)&&(u=!0);let c;for(const d in a)(!t||!De(t,d)&&((c=vn(d))===d||!De(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(o[d]=Ea(l,a,d,void 0,e,!0)):delete o[d]);if(s!==a)for(const d in s)(!t||!De(t,d))&&(delete s[d],u=!0)}u&&tn(e.attrs,"set",""),_.NODE_ENV!=="production"&&Ec(t||{},o,e)}function bc(e,t,n,r){const[o,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(bo(l))continue;const u=t[l];let c;o&&De(o,c=Tt(l))?!s||!s.includes(c)?n[c]=u:(a||(a={}))[c]=u:zs(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(s){const l=_e(n),u=a||Me;for(let c=0;c<s.length;c++){const d=s[c];n[d]=Ea(o,l,d,u[d],e,!De(u,d))}}return i}function Ea(e,t,n,r,o,s){const i=e[n];if(i!=null){const a=De(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&pe(l)){const{propsDefaults:u}=o;if(n in u)r=u[n];else{const c=Bo(o);r=u[n]=l.call(null,t),c()}}else r=l;o.ce&&o.ce._setProp(n,r)}i[0]&&(s&&!a?r=!1:i[1]&&(r===""||r===vn(n))&&(r=!0))}return r}const Xm=new WeakMap;function _c(e,t,n=!1){const r=n?Xm:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,i={},a=[];let l=!1;if(!pe(e)){const c=d=>{l=!0;const[f,m]=_c(d,t,!0);Ge(i,f),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return Ae(e)&&r.set(e,Ur),Ur;if(de(s))for(let c=0;c<s.length;c++){_.NODE_ENV!=="production"&&!Ze(s[c])&&Z("props must be strings when using array syntax.",s[c]);const d=Tt(s[c]);wc(d)&&(i[d]=Me)}else if(s){_.NODE_ENV!=="production"&&!Ae(s)&&Z("invalid props options",s);for(const c in s){const d=Tt(c);if(wc(d)){const f=s[c],m=i[d]=de(f)||pe(f)?{type:f}:Ge({},f),E=m.type;let x=!1,O=!0;if(de(E))for(let I=0;I<E.length;++I){const j=E[I],$=pe(j)&&j.name;if($==="Boolean"){x=!0;break}else $==="String"&&(O=!1)}else x=pe(E)&&E.name==="Boolean";m[0]=x,m[1]=O,(x||De(m,"default"))&&a.push(d)}}}const u=[i,a];return Ae(e)&&r.set(e,u),u}function wc(e){return e[0]!=="$"&&!bo(e)?!0:(_.NODE_ENV!=="production"&&Z(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Qm(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ec(e,t,n){const r=_e(t),o=n.propsOptions[0];for(const s in o){let i=o[s];i!=null&&ev(s,r[s],i,_.NODE_ENV!=="production"?nn(r):r,!De(e,s)&&!De(e,vn(s)))}}function ev(e,t,n,r,o){const{type:s,required:i,validator:a,skipCheck:l}=n;if(i&&o){Z('Missing required prop: "'+e+'"');return}if(!(t==null&&!i)){if(s!=null&&s!==!0&&!l){let u=!1;const c=de(s)?s:[s],d=[];for(let f=0;f<c.length&&!u;f++){const{valid:m,expectedType:E}=nv(t,c[f]);d.push(E||""),u=m}if(!u){Z(rv(e,t,d));return}}a&&!a(t,r)&&Z('Invalid prop: custom validator check failed for prop "'+e+'".')}}const tv=mn("String,Number,Boolean,Function,Symbol,BigInt");function nv(e,t){let n;const r=Qm(t);if(r==="null")n=e===null;else if(tv(r)){const o=typeof e;n=o===r.toLowerCase(),!n&&o==="object"&&(n=e instanceof t)}else r==="Object"?n=Ae(e):r==="Array"?n=de(e):n=e instanceof t;return{valid:n,expectedType:r}}function rv(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let r=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(ar).join(" | ")}`;const o=n[0],s=Mi(t),i=Oc(t,o),a=Oc(t,s);return n.length===1&&Nc(o)&&!ov(o,s)&&(r+=` with value ${i}`),r+=`, got ${s} `,Nc(s)&&(r+=`with value ${a}.`),r}function Oc(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function Nc(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function ov(...e){return e.some(t=>t.toLowerCase()==="boolean")}const xc=e=>e[0]==="_"||e==="$stable",Oa=e=>de(e)?e.map(Wt):[Wt(e)],sv=(e,t,n)=>{if(t._n)return t;const r=be((...o)=>(_.NODE_ENV!=="production"&&Xe&&(!n||n.root===Xe.root)&&Z(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Oa(t(...o))),n);return r._c=!1,r},Sc=(e,t,n)=>{const r=e._ctx;for(const o in e){if(xc(o))continue;const s=e[o];if(pe(s))t[o]=sv(o,s,r);else if(s!=null){_.NODE_ENV!=="production"&&Z(`Non-function value encountered for slot "${o}". Prefer function slots for better performance.`);const i=Oa(s);t[o]=()=>i}}},kc=(e,t)=>{_.NODE_ENV!=="production"&&!Ao(e.vnode)&&Z("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Oa(t);e.slots.default=()=>n},Na=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},iv=(e,t,n)=>{const r=e.slots=gc();if(e.vnode.shapeFlag&32){const o=t._;o?(Na(r,t,n),n&&ws(r,"_",o,!0)):Sc(t,r)}else t&&kc(e,t)},av=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=Me;if(r.shapeFlag&32){const a=t._;a?_.NODE_ENV!=="production"&&Hn?(Na(o,t,n),tn(e,"set","$slots")):n&&a===1?s=!1:Na(o,t,n):(s=!t.$stable,Sc(t,o)),i=t}else t&&(kc(e,t),i={default:1});if(s)for(const a in o)!xc(a)&&i[a]==null&&delete o[a]};let Ro,qn;function En(e,t){e.appContext.config.performance&&Ws()&&qn.mark(`vue-${t}-${e.uid}`),_.NODE_ENV!=="production"&&hm(e,t,Ws()?qn.now():Date.now())}function On(e,t){if(e.appContext.config.performance&&Ws()){const n=`vue-${t}-${e.uid}`,r=n+":end";qn.mark(r),qn.measure(`<${Qs(e,e.type)}> ${t}`,n,r),qn.clearMarks(n),qn.clearMarks(r)}_.NODE_ENV!=="production"&&mm(e,t,Ws()?qn.now():Date.now())}function Ws(){return Ro!==void 0||(typeof window<"u"&&window.performance?(Ro=!0,qn=window.performance):Ro=!1),Ro}function lv(){const e=[];if(_.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
12
12
 
13
- For more details, see https://link.vuejs.org/feature-flags.`)}}const xt=Ev;function uv(e){return cv(e)}function cv(e,t){lv();const n=Ui();n.__VUE__=!0,b.NODE_ENV!=="production"&&Bu(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:m=Qe,insertStaticContent:E}=e,N=(p,v,T,B=null,U=null,F=null,Q=void 0,G=null,K=b.NODE_ENV!=="production"&&Hn?!1:!!v.dynamicChildren)=>{if(p===v)return;p&&!yr(p,v)&&(B=wi(p),Be(p,U,F,!0),p=null),v.patchFlag===-2&&(K=!1,v.dynamicChildren=null);const{type:H,ref:ge,shapeFlag:te}=v;switch(H){case Mo:O(p,v,T,B);break;case Je:I(p,v,T,B);break;case Lo:p==null?j(v,T,B,Q):b.NODE_ENV!=="production"&&$(p,v,T,Q);break;case Ce:L(p,v,T,B,U,F,Q,G,K);break;default:te&1?M(p,v,T,B,U,F,Q,G,K):te&6?ne(p,v,T,B,U,F,Q,G,K):te&64||te&128?H.process(p,v,T,B,U,F,Q,G,K,ts):b.NODE_ENV!=="production"&&Z("Invalid VNode type:",H,`(${typeof H})`)}ge!=null&&U&&fa(ge,p&&p.ref,F,v||p,!v)},O=(p,v,T,B)=>{if(p==null)r(v.el=a(v.children),T,B);else{const U=v.el=p.el;v.children!==p.children&&u(U,v.children)}},I=(p,v,T,B)=>{p==null?r(v.el=l(v.children||""),T,B):v.el=p.el},j=(p,v,T,B)=>{[p.el,p.anchor]=E(p.children,v,T,B,p.el,p.anchor)},$=(p,v,T,B)=>{if(v.children!==p.children){const U=f(p.anchor);y(p),[v.el,v.anchor]=E(v.children,T,U,B)}else v.el=p.el,v.anchor=p.anchor},W=({el:p,anchor:v},T,B)=>{let U;for(;p&&p!==v;)U=f(p),r(p,T,B),p=U;r(v,T,B)},y=({el:p,anchor:v})=>{let T;for(;p&&p!==v;)T=f(p),o(p),p=T;o(v)},M=(p,v,T,B,U,F,Q,G,K)=>{v.type==="svg"?Q="svg":v.type==="math"&&(Q="mathml"),p==null?P(v,T,B,U,F,Q,G,K):A(p,v,U,F,Q,G,K)},P=(p,v,T,B,U,F,Q,G)=>{let K,H;const{props:ge,shapeFlag:te,transition:ce,dirs:Ee}=p;if(K=p.el=i(p.type,F,ge&&ge.is,ge),te&8?c(K,p.children):te&16&&S(p.children,K,null,B,U,xa(p,F),Q,G),Ee&&pr(p,null,B,"created"),re(K,p,p.scopeId,Q,B),ge){for(const He in ge)He!=="value"&&!bo(He)&&s(K,He,null,ge[He],F,B);"value"in ge&&s(K,"value",null,ge.value,F),(H=ge.onVnodeBeforeMount)&&ln(H,B,p)}b.NODE_ENV!=="production"&&(bs(K,"__vnode",p,!0),bs(K,"__vueParentComponent",B,!0)),Ee&&pr(p,null,B,"beforeMount");const $e=dv(U,ce);$e&&ce.beforeEnter(K),r(K,v,T),((H=ge&&ge.onVnodeMounted)||$e||Ee)&&xt(()=>{H&&ln(H,B,p),$e&&ce.enter(K),Ee&&pr(p,null,B,"mounted")},U)},re=(p,v,T,B,U)=>{if(T&&m(p,T),B)for(let F=0;F<B.length;F++)m(p,B[F]);if(U){let F=U.subTree;if(b.NODE_ENV!=="production"&&F.patchFlag>0&&F.patchFlag&2048&&(F=Ta(F.children)||F),v===F||Vc(F.type)&&(F.ssContent===v||F.ssFallback===v)){const Q=U.vnode;re(p,Q,Q.scopeId,Q.slotScopeIds,U.parent)}}},S=(p,v,T,B,U,F,Q,G,K=0)=>{for(let H=K;H<p.length;H++){const ge=p[H]=G?Wn(p[H]):Wt(p[H]);N(null,ge,v,T,B,U,F,Q,G)}},A=(p,v,T,B,U,F,Q)=>{const G=v.el=p.el;b.NODE_ENV!=="production"&&(G.__vnode=v);let{patchFlag:K,dynamicChildren:H,dirs:ge}=v;K|=p.patchFlag&16;const te=p.props||Me,ce=v.props||Me;let Ee;if(T&&gr(T,!1),(Ee=ce.onVnodeBeforeUpdate)&&ln(Ee,T,v,p),ge&&pr(v,p,T,"beforeUpdate"),T&&gr(T,!0),b.NODE_ENV!=="production"&&Hn&&(K=0,Q=!1,H=null),(te.innerHTML&&ce.innerHTML==null||te.textContent&&ce.textContent==null)&&c(G,""),H?(D(p.dynamicChildren,H,G,T,B,xa(v,U),F),b.NODE_ENV!=="production"&&jo(p,v)):Q||ve(p,v,G,null,T,B,xa(v,U),F,!1),K>0){if(K&16)k(G,te,ce,T,U);else if(K&2&&te.class!==ce.class&&s(G,"class",null,ce.class,U),K&4&&s(G,"style",te.style,ce.style,U),K&8){const $e=v.dynamicProps;for(let He=0;He<$e.length;He++){const Le=$e[He],It=te[Le],vt=ce[Le];(vt!==It||Le==="value")&&s(G,Le,It,vt,U,T)}}K&1&&p.children!==v.children&&c(G,v.children)}else!Q&&H==null&&k(G,te,ce,T,U);((Ee=ce.onVnodeUpdated)||ge)&&xt(()=>{Ee&&ln(Ee,T,v,p),ge&&pr(v,p,T,"updated")},B)},D=(p,v,T,B,U,F,Q)=>{for(let G=0;G<v.length;G++){const K=p[G],H=v[G],ge=K.el&&(K.type===Ce||!yr(K,H)||K.shapeFlag&70)?d(K.el):T;N(K,H,ge,null,B,U,F,Q,!0)}},k=(p,v,T,B,U)=>{if(v!==T){if(v!==Me)for(const F in v)!bo(F)&&!(F in T)&&s(p,F,v[F],null,U,B);for(const F in T){if(bo(F))continue;const Q=T[F],G=v[F];Q!==G&&F!=="value"&&s(p,F,G,Q,U,B)}"value"in T&&s(p,"value",v.value,T.value,U)}},L=(p,v,T,B,U,F,Q,G,K)=>{const H=v.el=p?p.el:a(""),ge=v.anchor=p?p.anchor:a("");let{patchFlag:te,dynamicChildren:ce,slotScopeIds:Ee}=v;b.NODE_ENV!=="production"&&(Hn||te&2048)&&(te=0,K=!1,ce=null),Ee&&(G=G?G.concat(Ee):Ee),p==null?(r(H,T,B),r(ge,T,B),S(v.children||[],T,ge,U,F,Q,G,K)):te>0&&te&64&&ce&&p.dynamicChildren?(D(p.dynamicChildren,ce,T,U,F,Q,G),b.NODE_ENV!=="production"?jo(p,v):(v.key!=null||U&&v===U.subTree)&&jo(p,v,!0)):ve(p,v,T,ge,U,F,Q,G,K)},ne=(p,v,T,B,U,F,Q,G,K)=>{v.slotScopeIds=G,p==null?v.shapeFlag&512?U.ctx.activate(v,T,B,Q,K):h(v,T,B,U,F,Q,K):V(p,v,K)},h=(p,v,T,B,U,F,Q)=>{const G=p.component=Tv(p,B,U);if(b.NODE_ENV!=="production"&&G.type.__hmrId&&sm(G),b.NODE_ENV!=="production"&&(Is(p),En(G,"mount")),Ao(p)&&(G.ctx.renderer=ts),b.NODE_ENV!=="production"&&En(G,"init"),$v(G,!1,Q),b.NODE_ENV!=="production"&&On(G,"init"),G.asyncDep){if(U&&U.registerDep(G,ee,Q),!p.el){const K=G.subTree=z(Je);I(null,K,v,T)}}else ee(G,p,v,T,U,F,Q);b.NODE_ENV!=="production"&&(As(),On(G,"mount"))},V=(p,v,T)=>{const B=v.component=p.component;if(_v(p,v,T))if(B.asyncDep&&!B.asyncResolved){b.NODE_ENV!=="production"&&Is(v),ie(B,v,T),b.NODE_ENV!=="production"&&As();return}else B.next=v,B.update();else v.el=p.el,B.vnode=v},ee=(p,v,T,B,U,F,Q)=>{const G=()=>{if(p.isMounted){let{next:te,bu:ce,u:Ee,parent:$e,vnode:He}=p;{const At=Cc(p);if(At){te&&(te.el=He.el,ie(p,te,Q)),At.asyncDep.then(()=>{p.isUnmounted||G()});return}}let Le=te,It;b.NODE_ENV!=="production"&&Is(te||p.vnode),gr(p,!1),te?(te.el=He.el,ie(p,te,Q)):te=He,ce&&_o(ce),(It=te.props&&te.props.onVnodeBeforeUpdate)&&ln(It,$e,te,He),gr(p,!0),b.NODE_ENV!=="production"&&En(p,"render");const vt=Ca(p);b.NODE_ENV!=="production"&&On(p,"render");const Gt=p.subTree;p.subTree=vt,b.NODE_ENV!=="production"&&En(p,"patch"),N(Gt,vt,d(Gt.el),wi(Gt),p,U,F),b.NODE_ENV!=="production"&&On(p,"patch"),te.el=vt.el,Le===null&&wv(p,vt.el),Ee&&xt(Ee,U),(It=te.props&&te.props.onVnodeUpdated)&&xt(()=>ln(It,$e,te,He),U),b.NODE_ENV!=="production"&&Hu(p),b.NODE_ENV!=="production"&&As()}else{let te;const{el:ce,props:Ee}=v,{bm:$e,m:He,parent:Le,root:It,type:vt}=p,Gt=qr(v);if(gr(p,!1),$e&&_o($e),!Gt&&(te=Ee&&Ee.onVnodeBeforeMount)&&ln(te,Le,v),gr(p,!0),ce&&Pf){const At=()=>{b.NODE_ENV!=="production"&&En(p,"render"),p.subTree=Ca(p),b.NODE_ENV!=="production"&&On(p,"render"),b.NODE_ENV!=="production"&&En(p,"hydrate"),Pf(ce,p.subTree,p,U,null),b.NODE_ENV!=="production"&&On(p,"hydrate")};Gt&&vt.__asyncHydrate?vt.__asyncHydrate(ce,p,At):At()}else{It.ce&&It.ce._injectChildStyle(vt),b.NODE_ENV!=="production"&&En(p,"render");const At=p.subTree=Ca(p);b.NODE_ENV!=="production"&&On(p,"render"),b.NODE_ENV!=="production"&&En(p,"patch"),N(null,At,T,B,p,U,F),b.NODE_ENV!=="production"&&On(p,"patch"),v.el=At.el}if(He&&xt(He,U),!Gt&&(te=Ee&&Ee.onVnodeMounted)){const At=v;xt(()=>ln(te,Le,At),U)}(v.shapeFlag&256||Le&&qr(Le.vnode)&&Le.vnode.shapeFlag&256)&&p.a&&xt(p.a,U),p.isMounted=!0,b.NODE_ENV!=="production"&&dm(p),v=T=B=null}};p.scope.on();const K=p.effect=new iu(G);p.scope.off();const H=p.update=K.run.bind(K),ge=p.job=K.runIfDirty.bind(K);ge.i=p,ge.id=p.uid,K.scheduler=()=>Vs(ge),gr(p,!0),b.NODE_ENV!=="production"&&(K.onTrack=p.rtc?te=>_o(p.rtc,te):void 0,K.onTrigger=p.rtg?te=>_o(p.rtg,te):void 0),H()},ie=(p,v,T)=>{v.component=p;const B=p.vnode.props;p.vnode=v,p.next=null,Ym(p,v.props,B,T),av(p,v.children,T),gn(),ju(p),yn()},ve=(p,v,T,B,U,F,Q,G,K=!1)=>{const H=p&&p.children,ge=p?p.shapeFlag:0,te=v.children,{patchFlag:ce,shapeFlag:Ee}=v;if(ce>0){if(ce&128){Fe(H,te,T,B,U,F,Q,G,K);return}else if(ce&256){ae(H,te,T,B,U,F,Q,G,K);return}}Ee&8?(ge&16&&es(H,U,F),te!==H&&c(T,te)):ge&16?Ee&16?Fe(H,te,T,B,U,F,Q,G,K):es(H,U,F,!0):(ge&8&&c(T,""),Ee&16&&S(te,T,B,U,F,Q,G,K))},ae=(p,v,T,B,U,F,Q,G,K)=>{p=p||Ur,v=v||Ur;const H=p.length,ge=v.length,te=Math.min(H,ge);let ce;for(ce=0;ce<te;ce++){const Ee=v[ce]=K?Wn(v[ce]):Wt(v[ce]);N(p[ce],Ee,T,null,U,F,Q,G,K)}H>ge?es(p,U,F,!0,!1,te):S(v,T,B,U,F,Q,G,K,te)},Fe=(p,v,T,B,U,F,Q,G,K)=>{let H=0;const ge=v.length;let te=p.length-1,ce=ge-1;for(;H<=te&&H<=ce;){const Ee=p[H],$e=v[H]=K?Wn(v[H]):Wt(v[H]);if(yr(Ee,$e))N(Ee,$e,T,null,U,F,Q,G,K);else break;H++}for(;H<=te&&H<=ce;){const Ee=p[te],$e=v[ce]=K?Wn(v[ce]):Wt(v[ce]);if(yr(Ee,$e))N(Ee,$e,T,null,U,F,Q,G,K);else break;te--,ce--}if(H>te){if(H<=ce){const Ee=ce+1,$e=Ee<ge?v[Ee].el:B;for(;H<=ce;)N(null,v[H]=K?Wn(v[H]):Wt(v[H]),T,$e,U,F,Q,G,K),H++}}else if(H>ce)for(;H<=te;)Be(p[H],U,F,!0),H++;else{const Ee=H,$e=H,He=new Map;for(H=$e;H<=ce;H++){const Ot=v[H]=K?Wn(v[H]):Wt(v[H]);Ot.key!=null&&(b.NODE_ENV!=="production"&&He.has(Ot.key)&&Z("Duplicate keys found during update:",JSON.stringify(Ot.key),"Make sure keys are unique."),He.set(Ot.key,H))}let Le,It=0;const vt=ce-$e+1;let Gt=!1,At=0;const ns=new Array(vt);for(H=0;H<vt;H++)ns[H]=0;for(H=Ee;H<=te;H++){const Ot=p[H];if(It>=vt){Be(Ot,U,F,!0);continue}let fn;if(Ot.key!=null)fn=He.get(Ot.key);else for(Le=$e;Le<=ce;Le++)if(ns[Le-$e]===0&&yr(Ot,v[Le])){fn=Le;break}fn===void 0?Be(Ot,U,F,!0):(ns[fn-$e]=H+1,fn>=At?At=fn:Gt=!0,N(Ot,v[fn],T,null,U,F,Q,G,K),It++)}const $f=Gt?fv(ns):Ur;for(Le=$f.length-1,H=vt-1;H>=0;H--){const Ot=$e+H,fn=v[Ot],Df=Ot+1<ge?v[Ot+1].el:B;ns[H]===0?N(null,fn,T,Df,U,F,Q,G,K):Gt&&(Le<0||H!==$f[Le]?mt(fn,T,Df,2):Le--)}}},mt=(p,v,T,B,U=null)=>{const{el:F,type:Q,transition:G,children:K,shapeFlag:H}=p;if(H&6){mt(p.component.subTree,v,T,B);return}if(H&128){p.suspense.move(v,T,B);return}if(H&64){Q.move(p,v,T,ts);return}if(Q===Ce){r(F,v,T);for(let te=0;te<K.length;te++)mt(K[te],v,T,B);r(p.anchor,v,T);return}if(Q===Lo){W(p,v,T);return}if(B!==2&&H&1&&G)if(B===0)G.beforeEnter(F),r(F,v,T),xt(()=>G.enter(F),U);else{const{leave:te,delayLeave:ce,afterLeave:Ee}=G,$e=()=>r(F,v,T),He=()=>{te(F,()=>{$e(),Ee&&Ee()})};ce?ce(F,$e,He):He()}else r(F,v,T)},Be=(p,v,T,B=!1,U=!1)=>{const{type:F,props:Q,ref:G,children:K,dynamicChildren:H,shapeFlag:ge,patchFlag:te,dirs:ce,cacheIndex:Ee}=p;if(te===-2&&(U=!1),G!=null&&fa(G,null,T,p,!0),Ee!=null&&(v.renderCache[Ee]=void 0),ge&256){v.ctx.deactivate(p);return}const $e=ge&1&&ce,He=!qr(p);let Le;if(He&&(Le=Q&&Q.onVnodeBeforeUnmount)&&ln(Le,v,p),ge&6)Tw(p.component,T,B);else{if(ge&128){p.suspense.unmount(T,B);return}$e&&pr(p,null,v,"beforeUnmount"),ge&64?p.type.remove(p,v,T,ts,B):H&&!H.hasOnce&&(F!==Ce||te>0&&te&64)?es(H,v,T,!1,!0):(F===Ce&&te&384||!U&&ge&16)&&es(K,v,T),B&&St(p)}(He&&(Le=Q&&Q.onVnodeUnmounted)||$e)&&xt(()=>{Le&&ln(Le,v,p),$e&&pr(p,null,v,"unmounted")},T)},St=p=>{const{type:v,el:T,anchor:B,transition:U}=p;if(v===Ce){b.NODE_ENV!=="production"&&p.patchFlag>0&&p.patchFlag&2048&&U&&!U.persisted?p.children.forEach(Q=>{Q.type===Je?o(Q.el):St(Q)}):nr(T,B);return}if(v===Lo){y(p);return}const F=()=>{o(T),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(p.shapeFlag&1&&U&&!U.persisted){const{leave:Q,delayLeave:G}=U,K=()=>Q(T,F);G?G(p.el,F,K):K()}else F()},nr=(p,v)=>{let T;for(;p!==v;)T=f(p),o(p),p=T;o(v)},Tw=(p,v,T)=>{b.NODE_ENV!=="production"&&p.type.__hmrId&&im(p);const{bum:B,scope:U,job:F,subTree:Q,um:G,m:K,a:H}=p;Tc(K),Tc(H),B&&_o(B),U.stop(),F&&(F.flags|=8,Be(Q,p,v,T)),G&&xt(G,v),xt(()=>{p.isUnmounted=!0},v),v&&v.pendingBranch&&!v.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===v.pendingId&&(v.deps--,v.deps===0&&v.resolve()),b.NODE_ENV!=="production"&&pm(p)},es=(p,v,T,B=!1,U=!1,F=0)=>{for(let Q=F;Q<p.length;Q++)Be(p[Q],v,T,B,U)},wi=p=>{if(p.shapeFlag&6)return wi(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const v=f(p.anchor||p.el),T=v&&v[zu];return T?f(T):v};let hl=!1;const Cf=(p,v,T)=>{p==null?v._vnode&&Be(v._vnode,null,null,!0):N(v._vnode||null,p,v,null,null,null,T),v._vnode=p,hl||(hl=!0,ju(),Mu(),hl=!1)},ts={p:N,um:Be,m:mt,r:St,mt:h,mc:S,pc:ve,pbc:D,n:wi,o:e};let Tf,Pf;return{render:Cf,hydrate:Tf,createApp:zm(Cf,Tf)}}function xa({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function gr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function dv(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function jo(e,t,n=!1){const r=e.children,o=t.children;if(de(r)&&de(o))for(let s=0;s<r.length;s++){const i=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=Wn(o[s]),a.el=i.el),!n&&a.patchFlag!==-2&&jo(i,a)),a.type===Mo&&(a.el=i.el),b.NODE_ENV!=="production"&&a.type===Je&&!a.el&&(a.el=i.el)}}function fv(e){const t=e.slice(),n=[0];let r,o,s,i,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<u?s=a+1:i=a;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function Cc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Cc(t)}function Tc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const pv=Symbol.for("v-scx"),hv=()=>{{const e=Se(pv);return e||b.NODE_ENV!=="production"&&Z("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function pt(e,t){return Sa(e,null,t)}function ze(e,t,n){return b.NODE_ENV!=="production"&&!pe(t)&&Z("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Sa(e,t,n)}function Sa(e,t,n=Me){const{immediate:r,deep:o,flush:s,once:i}=n;b.NODE_ENV!=="production"&&!t&&(r!==void 0&&Z('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&Z('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&Z('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=Ge({},n);b.NODE_ENV!=="production"&&(a.onWarn=Z);let l;if(Js)if(s==="sync"){const f=hv();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!t||r)a.once=!0;else return{stop:Qe,resume:Qe,pause:Qe};const u=Xe;a.call=(f,m,E)=>Zt(f,u,m,E);let c=!1;s==="post"?a.scheduler=f=>{xt(f,u&&u.suspense)}:s!=="sync"&&(c=!0,a.scheduler=(f,m)=>{m?f():Vs(f)}),a.augmentJob=f=>{t&&(f.flags|=4),c&&(f.flags|=2,u&&(f.id=u.uid,f.i=u))};const d=Jh(e,t,a);return l&&l.push(d),d}function mv(e,t,n){const r=this.proxy,o=Ze(e)?e.includes(".")?Pc(r,e):()=>r[e]:e.bind(r,r);let s;pe(t)?s=t:(s=t.handler,n=t);const i=Bo(this),a=Sa(o,s.bind(r),n);return i(),a}function Pc(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const vv=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Tt(t)}Modifiers`]||e[`${vn(t)}Modifiers`];function gv(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Me;if(b.NODE_ENV!=="production"){const{emitsOptions:c,propsOptions:[d]}=e;if(c)if(!(t in c))(!d||!(lr(Tt(t))in d))&&Z(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${lr(Tt(t))}" prop.`);else{const f=c[t];pe(f)&&(f(...n)||Z(`Invalid event arguments: event validation failed for event "${t}".`))}}let o=n;const s=t.startsWith("update:"),i=s&&vv(r,t.slice(7));if(i&&(i.trim&&(o=n.map(c=>Ze(c)?c.trim():c)),i.number&&(o=n.map(ih))),b.NODE_ENV!=="production"&&vm(e,t,o),b.NODE_ENV!=="production"){const c=t.toLowerCase();c!==t&&r[lr(c)]&&Z(`Event "${c}" is emitted in component ${Ys(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${vn(t)}" instead of "${t}".`)}let a,l=r[a=lr(t)]||r[a=lr(Tt(t))];!l&&s&&(l=r[a=lr(vn(t))]),l&&Zt(l,e,6,o);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Zt(u,e,6,o)}}function $c(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!pe(e)){const l=u=>{const c=$c(u,t,!0);c&&(a=!0,Ge(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(Ie(e)&&r.set(e,null),null):(de(s)?s.forEach(l=>i[l]=null):Ge(i,s),Ie(e)&&r.set(e,i),i)}function qs(e,t){return!e||!yo(t)?!1:(t=t.slice(2).replace(/Once$/,""),De(e,t[0].toLowerCase()+t.slice(1))||De(e,vn(t))||De(e,t))}let ka=!1;function Ws(){ka=!0}function Ca(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:a,emit:l,render:u,renderCache:c,props:d,data:f,setupState:m,ctx:E,inheritAttrs:N}=e,O=Ms(e);let I,j;b.NODE_ENV!=="production"&&(ka=!1);try{if(n.shapeFlag&4){const y=o||r,M=b.NODE_ENV!=="production"&&m.__isScriptSetup?new Proxy(y,{get(P,re,S){return Z(`Property '${String(re)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(P,re,S)}}):y;I=Wt(u.call(M,y,c,b.NODE_ENV!=="production"?nn(d):d,m,f,E)),j=a}else{const y=t;b.NODE_ENV!=="production"&&a===d&&Ws(),I=Wt(y.length>1?y(b.NODE_ENV!=="production"?nn(d):d,b.NODE_ENV!=="production"?{get attrs(){return Ws(),nn(a)},slots:i,emit:l}:{attrs:a,slots:i,emit:l}):y(b.NODE_ENV!=="production"?nn(d):d,null)),j=t.props?a:yv(a)}}catch(y){Uo.length=0,ko(y,e,1),I=z(Je)}let $=I,W;if(b.NODE_ENV!=="production"&&I.patchFlag>0&&I.patchFlag&2048&&([$,W]=Dc(I)),j&&N!==!1){const y=Object.keys(j),{shapeFlag:M}=$;if(y.length){if(M&7)s&&y.some(vs)&&(j=bv(j,s)),$=qt($,j,!1,!0);else if(b.NODE_ENV!=="production"&&!ka&&$.type!==Je){const P=Object.keys(a),re=[],S=[];for(let A=0,D=P.length;A<D;A++){const k=P[A];yo(k)?vs(k)||re.push(k[2].toLowerCase()+k.slice(3)):S.push(k)}S.length&&Z(`Extraneous non-props attributes (${S.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),re.length&&Z(`Extraneous non-emits event listeners (${re.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(b.NODE_ENV!=="production"&&!Ic($)&&Z("Runtime directive used on component with non-element root node. The directives will not function as intended."),$=qt($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&(b.NODE_ENV!=="production"&&!Ic($)&&Z("Component inside <Transition> renders non-element root node that cannot be animated."),Io($,n.transition)),b.NODE_ENV!=="production"&&W?W($):I=$,Ms(O),I}const Dc=e=>{const t=e.children,n=e.dynamicChildren,r=Ta(t,!1);if(r){if(b.NODE_ENV!=="production"&&r.patchFlag>0&&r.patchFlag&2048)return Dc(r)}else return[e,void 0];const o=t.indexOf(r),s=n?n.indexOf(r):-1,i=a=>{t[o]=a,n&&(s>-1?n[s]=a:a.patchFlag>0&&(e.dynamicChildren=[...n,a]))};return[Wt(r),i]};function Ta(e,t=!0){let n;for(let r=0;r<e.length;r++){const o=e[r];if(Wr(o)){if(o.type!==Je||o.children==="v-if"){if(n)return;if(n=o,b.NODE_ENV!=="production"&&t&&n.patchFlag>0&&n.patchFlag&2048)return Ta(n.children)}}else return}return n}const yv=e=>{let t;for(const n in e)(n==="class"||n==="style"||yo(n))&&((t||(t={}))[n]=e[n]);return t},bv=(e,t)=>{const n={};for(const r in e)(!vs(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n},Ic=e=>e.shapeFlag&7||e.type===Je;function _v(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,u=s.emitsOptions;if(b.NODE_ENV!=="production"&&(o||a)&&Hn||t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ac(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(i[f]!==r[f]&&!qs(u,f))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Ac(r,i,u):!0:!!i;return!1}function Ac(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(t[s]!==e[s]&&!qs(n,s))return!0}return!1}function wv({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Vc=e=>e.__isSuspense;function Ev(e,t){t&&t.pendingBranch?de(e)?t.effects.push(...e):t.effects.push(e):Ru(e)}const Ce=Symbol.for("v-fgt"),Mo=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),Lo=Symbol.for("v-stc"),Uo=[];let Pt=null;function w(e=!1){Uo.push(Pt=e?null:[])}function Ov(){Uo.pop(),Pt=Uo[Uo.length-1]||null}let Fo=1;function Rc(e){Fo+=e,e<0&&Pt&&(Pt.hasOnce=!0)}function jc(e){return e.dynamicChildren=Fo>0?Pt||Ur:null,Ov(),Fo>0&&Pt&&Pt.push(e),e}function C(e,t,n,r,o,s){return jc(x(e,t,n,r,o,s,!0))}function ke(e,t,n,r,o){return jc(z(e,t,n,r,o,!0))}function Wr(e){return e?e.__v_isVNode===!0:!1}function yr(e,t){if(b.NODE_ENV!=="production"&&t.shapeFlag&6&&e.component){const n=Rs.get(t.type);if(n&&n.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}const Nv=(...e)=>Lc(...e),Mc=({key:e})=>e??null,zs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ze(e)||qe(e)||pe(e)?{i:tt,r:e,k:t,f:!!n}:e:null);function x(e,t=null,n=null,r=0,o=null,s=e===Ce?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mc(t),ref:t&&zs(t),scopeId:qu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:tt};return a?(Pa(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Ze(n)?8:16),b.NODE_ENV!=="production"&&l.key!==l.key&&Z("VNode created with invalid key (NaN). VNode type:",l.type),Fo>0&&!i&&Pt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Pt.push(l),l}const z=b.NODE_ENV!=="production"?Nv:Lc;function Lc(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===ic)&&(b.NODE_ENV!=="production"&&!e&&Z(`Invalid vnode type when creating vnode: ${e}.`),e=Je),Wr(e)){const a=qt(e,t,!0);return n&&Pa(a,n),Fo>0&&!s&&Pt&&(a.shapeFlag&6?Pt[Pt.indexOf(e)]=a:Pt.push(a)),a.patchFlag=-2,a}if(Wc(e)&&(e=e.__vccOpts),t){t=xv(t);let{class:a,style:l}=t;a&&!Ze(a)&&(t.class=_s(a)),Ie(l)&&(So(l)&&!de(l)&&(l=Ge({},l)),t.style=Fi(l))}const i=Ze(e)?1:Vc(e)?128:Ku(e)?64:Ie(e)?4:pe(e)?2:0;return b.NODE_ENV!=="production"&&i&4&&So(e)&&(e=be(e),Z("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
14
- Component that was made reactive: `,e)),x(e,t,n,r,o,i,s,!0)}function xv(e){return e?So(e)||yc(e)?Ge({},e):e:null}function qt(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,u=t?$a(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Mc(u),ref:t&&t.ref?n&&s?de(s)?s.concat(zs(t)):[s,zs(t)]:zs(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:b.NODE_ENV!=="production"&&i===-1&&de(a)?a.map(Uc):a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qt(e.ssContent),ssFallback:e.ssFallback&&qt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Io(c,l.clone(c)),c}function Uc(e){const t=qt(e);return de(e.children)&&(t.children=e.children.map(Uc)),t}function Te(e=" ",t=0){return z(Mo,null,e,t)}function Sv(e,t){const n=z(Lo,null,e);return n.staticCount=t,n}function fe(e="",t=!1){return t?(w(),ke(Je,null,e)):z(Je,null,e)}function Wt(e){return e==null||typeof e=="boolean"?z(Je):de(e)?z(Ce,null,e.slice()):typeof e=="object"?Wn(e):z(Mo,null,String(e))}function Wn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qt(e)}function Pa(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(de(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Pa(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!yc(t)?t._ctx=tt:o===3&&tt&&(tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pe(t)?(t={default:t,_ctx:tt},n=32):(t=String(t),r&64?(n=16,t=[Te(t)]):n=8);e.children=t,e.shapeFlag|=n}function $a(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=_s([t.class,r.class]));else if(o==="style")t.style=Fi([t.style,r.style]);else if(yo(o)){const s=t[o],i=r[o];i&&s!==i&&!(de(s)&&s.includes(i))&&(t[o]=s?[].concat(s,i):i)}else o!==""&&(t[o]=r[o])}return t}function ln(e,t,n,r=null){Zt(e,t,7,[n,r])}const kv=mc();let Cv=0;function Tv(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||kv,s={uid:Cv++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ru(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_c(r,o),emitsOptions:$c(r,o),emit:null,emitted:null,propsDefaults:Me,inheritAttrs:r.inheritAttrs,ctx:Me,data:Me,props:Me,attrs:Me,slots:Me,refs:Me,setupState:Me,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return b.NODE_ENV!=="production"?s.ctx=jm(s):s.ctx={_:s},s.root=t?t.root:s,s.emit=gv.bind(null,s),e.ce&&e.ce(s),s}let Xe=null;const Ks=()=>Xe||tt;let Gs,Da;{const e=Ui(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};Gs=t("__VUE_INSTANCE_SETTERS__",n=>Xe=n),Da=t("__VUE_SSR_SETTERS__",n=>Js=n)}const Bo=e=>{const t=Xe;return Gs(e),e.scope.on(),()=>{e.scope.off(),Gs(t)}},Fc=()=>{Xe&&Xe.scope.off(),Gs(null)},Pv=mn("slot,component");function Ia(e,{isNativeTag:t}){(Pv(e)||t(e))&&Z("Do not use built-in or reserved HTML elements as component id: "+e)}function Bc(e){return e.vnode.shapeFlag&4}let Js=!1;function $v(e,t=!1,n=!1){t&&Da(t);const{props:r,children:o}=e.vnode,s=Bc(e);Gm(e,r,s,t),iv(e,o,n);const i=s?Dv(e,t):void 0;return t&&Da(!1),i}function Dv(e,t){var n;const r=e.type;if(b.NODE_ENV!=="production"){if(r.name&&Ia(r.name,e.appContext.config),r.components){const s=Object.keys(r.components);for(let i=0;i<s.length;i++)Ia(s[i],e.appContext.config)}if(r.directives){const s=Object.keys(r.directives);for(let i=0;i<s.length;i++)Wu(s[i])}r.compilerOptions&&Iv()&&Z('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,uc),b.NODE_ENV!=="production"&&Mm(e);const{setup:o}=r;if(o){const s=e.setupContext=o.length>1?Vv(e):null,i=Bo(e);gn();const a=Br(o,e,0,[b.NODE_ENV!=="production"?nn(e.props):e.props,s]);if(yn(),i(),ji(a)){if(qr(e)||oc(e),a.then(Fc,Fc),t)return a.then(l=>{Hc(e,l,t)}).catch(l=>{ko(l,e,0)});if(e.asyncDep=a,b.NODE_ENV!=="production"&&!e.suspense){const l=(n=r.name)!=null?n:"Anonymous";Z(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Hc(e,a,t)}else Zc(e,t)}function Hc(e,t,n){pe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ie(t)?(b.NODE_ENV!=="production"&&Wr(t)&&Z("setup() should not return VNodes directly - return a render function instead."),b.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=Pu(t),b.NODE_ENV!=="production"&&Lm(e)):b.NODE_ENV!=="production"&&t!==void 0&&Z(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Zc(e,n)}let Aa;const Iv=()=>!Aa;function Zc(e,t,n){const r=e.type;if(!e.render){if(!t&&Aa&&!r.render){const o=r.template||_a(e).template;if(o){b.NODE_ENV!=="production"&&En(e,"compile");const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Ge(Ge({isCustomElement:s,delimiters:a},i),l);r.render=Aa(o,u),b.NODE_ENV!=="production"&&On(e,"compile")}}e.render=r.render||Qe}{const o=Bo(e);gn();try{Fm(e)}finally{yn(),o()}}b.NODE_ENV!=="production"&&!r.render&&e.render===Qe&&!t&&(r.template?Z('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):Z("Component is missing template or render function: ",r))}const qc=b.NODE_ENV!=="production"?{get(e,t){return Ws(),et(e,"get",""),e[t]},set(){return Z("setupContext.attrs is readonly."),!1},deleteProperty(){return Z("setupContext.attrs is readonly."),!1}}:{get(e,t){return et(e,"get",""),e[t]}};function Av(e){return new Proxy(e.slots,{get(t,n){return et(e,"get","$slots"),t[n]}})}function Vv(e){const t=n=>{if(b.NODE_ENV!=="production"&&(e.exposed&&Z("expose() should be called only once per setup()."),n!=null)){let r=typeof n;r==="object"&&(de(n)?r="array":qe(n)&&(r="ref")),r!=="object"&&Z(`expose() should be passed a plain object, received ${r}.`)}e.exposed=n||{}};if(b.NODE_ENV!=="production"){let n,r;return Object.freeze({get attrs(){return n||(n=new Proxy(e.attrs,qc))},get slots(){return r||(r=Av(e))},get emit(){return(o,...s)=>e.emit(o,...s)},expose:t})}else return{attrs:new Proxy(e.attrs,qc),slots:e.slots,emit:e.emit,expose:t}}function Va(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Pu(Ln(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mr)return mr[n](e)},has(t,n){return n in t||n in mr}})):e.proxy}const Rv=/(?:^|[-_])(\w)/g,jv=e=>e.replace(Rv,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ra(e,t=!0){return pe(e)?e.displayName||e.name:e.name||t&&e.__name}function Ys(e,t,n=!1){let r=Ra(t);if(!r&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(r=o[1])}if(!r&&e&&e.parent){const o=s=>{for(const i in s)if(s[i]===t)return i};r=o(e.components||e.parent.type.components)||o(e.appContext.components)}return r?jv(r):n?"App":"Anonymous"}function Wc(e){return pe(e)&&"__vccOpts"in e}const Y=(e,t)=>{const n=Kh(e,t,Js);if(b.NODE_ENV!=="production"){const r=Ks();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function Ue(e,t,n){const r=arguments.length;return r===2?Ie(t)&&!de(t)?Wr(t)?z(e,null,[t]):z(e,t):z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Wr(n)&&(n=[n]),z(e,t,n))}function Mv(){if(b.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},o={__vue_custom_formatter:!0,header(d){return Ie(d)?d.__isVue?["div",e,"VueInstance"]:qe(d)?["div",{},["span",e,c(d)],"<",a("_value"in d?d._value:d),">"]:rn(d)?["div",{},["span",e,Nt(d)?"ShallowReactive":"Reactive"],"<",a(d),`>${_n(d)?" (readonly)":""}`]:_n(d)?["div",{},["span",e,Nt(d)?"ShallowReadonly":"Readonly"],"<",a(d),">"]:null:null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...s(d.$)]}};function s(d){const f=[];d.type.props&&d.props&&f.push(i("props",be(d.props))),d.setupState!==Me&&f.push(i("setup",d.setupState)),d.data!==Me&&f.push(i("data",be(d.data)));const m=l(d,"computed");m&&f.push(i("computed",m));const E=l(d,"inject");return E&&f.push(i("injected",E)),f.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),f}function i(d,f){return f=Ge({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},d],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(m=>["div",{},["span",r,m+": "],a(f[m],!1)])]]:["span",{}]}function a(d,f=!0){return typeof d=="number"?["span",t,d]:typeof d=="string"?["span",n,JSON.stringify(d)]:typeof d=="boolean"?["span",r,d]:Ie(d)?["object",{object:f?be(d):d}]:["span",n,String(d)]}function l(d,f){const m=d.type;if(pe(m))return;const E={};for(const N in d.ctx)u(m,N,f)&&(E[N]=d.ctx[N]);return E}function u(d,f,m){const E=d[m];if(de(E)&&E.includes(f)||Ie(E)&&f in E||d.extends&&u(d.extends,f,m)||d.mixins&&d.mixins.some(N=>u(N,f,m)))return!0}function c(d){return Nt(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(o):window.devtoolsFormatters=[o]}const zc="3.5.3",Nn=b.NODE_ENV!=="production"?Z:Qe;var un={};let ja;const Kc=typeof window<"u"&&window.trustedTypes;if(Kc)try{ja=Kc.createPolicy("vue",{createHTML:e=>e})}catch(e){un.NODE_ENV!=="production"&&Nn(`Error creating trusted types policy: ${e}`)}const Gc=ja?e=>ja.createHTML(e):e=>e,Lv="http://www.w3.org/2000/svg",Uv="http://www.w3.org/1998/Math/MathML",xn=typeof document<"u"?document:null,Jc=xn&&xn.createElement("template"),Fv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?xn.createElementNS(Lv,e):t==="mathml"?xn.createElementNS(Uv,e):n?xn.createElement(e,{is:n}):xn.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>xn.createTextNode(e),createComment:e=>xn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{Jc.innerHTML=Gc(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Jc.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},zn="transition",Ho="animation",Zo=Symbol("_vtc"),Yc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Bv=Ge({},Xu,Yc),Ma=(e=>(e.displayName="Transition",e.props=Bv,e))((e,{slots:t})=>Ue(Om,Hv(e),t)),br=(e,t=[])=>{de(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xc=e=>e?de(e)?e.some(t=>t.length>1):e.length>1:!1;function Hv(e){const t={};for(const k in e)k in Yc||(t[k]=e[k]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,E=Zv(o),N=E&&E[0],O=E&&E[1],{onBeforeEnter:I,onEnter:j,onEnterCancelled:$,onLeave:W,onLeaveCancelled:y,onBeforeAppear:M=I,onAppear:P=j,onAppearCancelled:re=$}=t,S=(k,L,ne)=>{_r(k,L?c:a),_r(k,L?u:i),ne&&ne()},A=(k,L)=>{k._isLeaving=!1,_r(k,d),_r(k,m),_r(k,f),L&&L()},D=k=>(L,ne)=>{const h=k?P:j,V=()=>S(L,k,ne);br(h,[L,V]),Qc(()=>{_r(L,k?l:s),Kn(L,k?c:a),Xc(h)||ed(L,r,N,V)})};return Ge(t,{onBeforeEnter(k){br(I,[k]),Kn(k,s),Kn(k,i)},onBeforeAppear(k){br(M,[k]),Kn(k,l),Kn(k,u)},onEnter:D(!1),onAppear:D(!0),onLeave(k,L){k._isLeaving=!0;const ne=()=>A(k,L);Kn(k,d),Kn(k,f),zv(),Qc(()=>{k._isLeaving&&(_r(k,d),Kn(k,m),Xc(W)||ed(k,r,O,ne))}),br(W,[k,ne])},onEnterCancelled(k){S(k,!1),br($,[k])},onAppearCancelled(k){S(k,!0),br(re,[k])},onLeaveCancelled(k){A(k),br(y,[k])}})}function Zv(e){if(e==null)return null;if(Ie(e))return[La(e.enter),La(e.leave)];{const t=La(e);return[t,t]}}function La(e){const t=ah(e);return un.NODE_ENV!=="production"&&tm(t,"<transition> explicit duration"),t}function Kn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Zo]||(e[Zo]=new Set)).add(t)}function _r(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Zo];n&&(n.delete(t),n.size||(e[Zo]=void 0))}function Qc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let qv=0;function ed(e,t,n,r){const o=e._endId=++qv,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=Wv(e,t);if(!i)return r();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,f),s()},f=m=>{m.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),e.addEventListener(u,f)}function Wv(e,t){const n=window.getComputedStyle(e),r=E=>(n[E]||"").split(", "),o=r(`${zn}Delay`),s=r(`${zn}Duration`),i=td(o,s),a=r(`${Ho}Delay`),l=r(`${Ho}Duration`),u=td(a,l);let c=null,d=0,f=0;t===zn?i>0&&(c=zn,d=i,f=s.length):t===Ho?u>0&&(c=Ho,d=u,f=l.length):(d=Math.max(i,u),c=d>0?i>u?zn:Ho:null,f=c?c===zn?s.length:l.length:0);const m=c===zn&&/\b(transform|all)(,|$)/.test(r(`${zn}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:m}}function td(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>nd(n)+nd(e[r])))}function nd(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function zv(){return document.body.offsetHeight}function Kv(e,t,n){const r=e[Zo];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const rd=Symbol("_vod"),Gv=Symbol("_vsh"),Jv=Symbol(un.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),Yv=/(^|;)\s*display\s*:/;function Xv(e,t,n){const r=e.style,o=Ze(n);let s=!1;if(n&&!o){if(t)if(Ze(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Xs(r,a,"")}else for(const i in t)n[i]==null&&Xs(r,i,"");for(const i in n)i==="display"&&(s=!0),Xs(r,i,n[i])}else if(o){if(t!==n){const i=r[Jv];i&&(n+=";"+i),r.cssText=n,s=Yv.test(n)}}else t&&e.removeAttribute("style");rd in e&&(e[rd]=s?r.display:"",e[Gv]&&(r.display="none"))}const Qv=/[^\\];\s*$/,od=/\s*!important$/;function Xs(e,t,n){if(de(n))n.forEach(r=>Xs(e,t,r));else if(n==null&&(n=""),un.NODE_ENV!=="production"&&Qv.test(n)&&Nn(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const r=eg(e,t);od.test(n)?e.setProperty(vn(r),n.replace(od,""),"important"):e[r]=n}}const sd=["Webkit","Moz","ms"],Ua={};function eg(e,t){const n=Ua[t];if(n)return n;let r=Tt(t);if(r!=="filter"&&r in e)return Ua[t]=r;r=ar(r);for(let o=0;o<sd.length;o++){const s=sd[o]+r;if(s in e)return Ua[t]=s}return t}const id="http://www.w3.org/1999/xlink";function ad(e,t,n,r,o,s=yh(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(id,t.slice(6,t.length)):e.setAttributeNS(id,t,n):n==null||s&&!eu(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Rn(n)?String(n):n)}function tg(e,t,n,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Gc(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(i!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=eu(n):n==null&&i==="string"?(n="",s=!0):i==="number"&&(n=0,s=!0)}try{e[t]=n}catch(i){un.NODE_ENV!=="production"&&!s&&Nn(`Failed setting prop "${t}" on <${o.toLowerCase()}>: value ${n} is invalid.`,i)}s&&e.removeAttribute(t)}function ng(e,t,n,r){e.addEventListener(t,n,r)}function rg(e,t,n,r){e.removeEventListener(t,n,r)}const ld=Symbol("_vei");function og(e,t,n,r,o=null){const s=e[ld]||(e[ld]={}),i=s[t];if(r&&i)i.value=un.NODE_ENV!=="production"?cd(r,t):r;else{const[a,l]=sg(t);if(r){const u=s[t]=lg(un.NODE_ENV!=="production"?cd(r,t):r,o);ng(e,a,u,l)}else i&&(rg(e,a,i,l),s[t]=void 0)}}const ud=/(?:Once|Passive|Capture)$/;function sg(e){let t;if(ud.test(e)){t={};let r;for(;r=e.match(ud);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):vn(e.slice(2)),t]}let Fa=0;const ig=Promise.resolve(),ag=()=>Fa||(ig.then(()=>Fa=0),Fa=Date.now());function lg(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Zt(ug(r,n.value),t,5,[r])};return n.value=e,n.attached=ag(),n}function cd(e,t){return pe(e)||de(e)?e:(Nn(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
15
- Expected function or array of functions, received type ${typeof e}.`),Qe)}function ug(e,t){if(de(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const dd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cg=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?Kv(e,r,i):t==="style"?Xv(e,n,r):yo(t)?vs(t)||og(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dg(e,t,r,i))?(tg(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ad(e,t,r,i,s,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ad(e,t,r,i))};function dg(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&dd(t)&&pe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return dd(t)&&Ze(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Ze(n)))}const fg=["ctrl","shift","alt","meta"],pg={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>fg.some(n=>e[`${n}Key`]&&!t.includes(n))},hg=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...s)=>{for(let i=0;i<t.length;i++){const a=pg[t[i]];if(a&&a(o,t))return}return e(o,...s)})},mg=Ge({patchProp:cg},Fv);let fd;function vg(){return fd||(fd=uv(mg))}const gg=(...e)=>{const t=vg().createApp(...e);un.NODE_ENV!=="production"&&(bg(t),_g(t));const{mount:n}=t;return t.mount=r=>{const o=wg(r);if(!o)return;const s=t._component;!pe(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,yg(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function yg(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function bg(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>mh(t)||vh(t)||gh(t),writable:!1})}function _g(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){Nn("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,r='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return Nn(r),n},set(){Nn(r)}})}}function wg(e){if(Ze(e)){const t=document.querySelector(e);return un.NODE_ENV!=="production"&&!t&&Nn(`Failed to mount app: mount target selector "${e}" returned null.`),t}return un.NODE_ENV!=="production"&&window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&Nn('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}var Eg={};function Og(){Mv()}Eg.NODE_ENV!=="production"&&Og();let Qs;const Ng=new Uint8Array(16);function xg(){if(!Qs&&(Qs=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Qs))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qs(Ng)}const it=[];for(let e=0;e<256;++e)it.push((e+256).toString(16).slice(1));function Sg(e,t=0){return it[e[t+0]]+it[e[t+1]]+it[e[t+2]]+it[e[t+3]]+"-"+it[e[t+4]]+it[e[t+5]]+"-"+it[e[t+6]]+it[e[t+7]]+"-"+it[e[t+8]]+it[e[t+9]]+"-"+it[e[t+10]]+it[e[t+11]]+it[e[t+12]]+it[e[t+13]]+it[e[t+14]]+it[e[t+15]]}const pd={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ei(e,t,n){if(pd.randomUUID&&!t&&!e)return pd.randomUUID();e=e||{};const r=e.random||(e.rng||xg)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Sg(r)}var cn=Symbol("storefront");function kg(e,t=100){let n=0;return async(...o)=>{clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}var Cg=g.object({source:g.literal("moonbase-checkout"),event:g.literal("close"),intent:g.string().optional()}),Tg=g.object({source:g.literal("moonbase-checkout"),event:g.literal("completed"),order:Kl.orders.completedOrderSchema}),Pg=g.discriminatedUnion("event",[Cg,Tg]);function $g(){var e;const t=document.getElementById("moonbase-checkout");!t||!(t instanceof HTMLIFrameElement)||(e=t.contentWindow)==null||e.postMessage("close","*")}function hd(e){if(typeof window>"u"){console.warn("Can not mount checkout server side");return}const t=document.createElement("iframe");t.id="moonbase-checkout",t.src=e,t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.right="0px",t.style.border="none",t.style.colorScheme="normal",t.style.backgroundColor="transparent",t.style.zIndex=Number.MAX_SAFE_INTEGER.toString(),t.setAttribute("background","transparent"),t.setAttribute("frameborder","0"),t.setAttribute("allowtransparency","true"),t.setAttribute("allow","payment"),t.height="100%",t.width="100%",document.body.append(t),document.documentElement.style.overflow="hidden",window.onmessage=function(n){var r;try{const o=Pg.parse(n.data);o.event==="close"&&(document.body.contains(t)&&(document.documentElement.style.removeProperty("overflow"),document.body.removeChild(t)),window.dispatchEvent(new CustomEvent("moonbase-checkout-closed",{detail:o}))),o.event==="completed"&&window.dispatchEvent(new CustomEvent("moonbase-checkout-completed",{detail:o}))}catch(o){((r=n.data)==null?void 0:r.source)==="moonbase-checkout"&&console.error("Could not parse event:",n.data,o)}}}var qo=class Ye{constructor(t,n,r){this.configuration=t,this.client=n,this.stateFactory=r,this.currentUser=R(null),this.loadedUser=R(!1),this.debouncedPushOrderContent=kg(l=>this.client.orders.pushContent(l,void 0,this.hasUtm?this.utm.value:void 0),500);var o;if(typeof window>"u"){this.currentOrder=R({id:ei(),status:Lr.Open,currency:"",items:[],couponsApplied:[]}),this.storefront=r(Ye.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${Ye.storefrontKey}_loaded`,!1),this.utm=r(Ye.utmKey,void 0);return}window.addEventListener("storage",l=>this.handleStorageUpdate(l));const s=new URLSearchParams(window.location.search);if(this.utm=r(Ye.utmKey,{referrer:((o=window.document.referrer)==null?void 0:o.replace(/https?:\/\//g,"").split("/")[0])||void 0,source:s.get("utm_source")||void 0,medium:s.get("utm_medium")||void 0,campaign:s.get("utm_campaign")||void 0,term:s.get("utm_term")||void 0,content:s.get("utm_content")||void 0}),this.hasUtm&&t.persistUtm)localStorage.setItem(Ye.utmKey,JSON.stringify(this.utm.value));else if(t.persistUtm){const l=localStorage.getItem(Ye.utmKey);if(l)try{this.utm=r(Ye.utmKey,JSON.parse(l))}catch{}}const i=localStorage.getItem(Ye.sessionKey);i?(this.currentOrder=R(JSON.parse(i)),this.refreshOrder()):(this.currentOrder=R({id:ei(),status:Lr.Open,currency:"",items:[],couponsApplied:[]}),this.hasUtm&&this.pushOrderContent());const a=localStorage.getItem(Ye.storefrontKey);if(a?(this.storefront=r(Ye.storefrontKey,JSON.parse(a)),this.loadedStorefront=r(`${Ye.storefrontKey}_loaded`,!0)):(this.storefront=r(Ye.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${Ye.storefrontKey}_loaded`,!1)),this.client.tokenStore.hasAccessToken&&(this.currentUser.value=this.client.tokenStore.user),this.updateStorefront(),this.updateUser(),window.location){const l=new URLSearchParams(window.location.search),u=l.get("mb_intent"),c=l.get("mb_endpoint");if(u==="checkout"&&l.get("mb_complete")&&c){const d=Object.fromEntries([...l.entries()].filter(([m])=>!m.startsWith("mb_"))),f=new URL(decodeURIComponent(c));for(const m of Object.keys(d))f.searchParams.append(m,d[m]);hd(f.toString()),window.history.replaceState(null,"",window.location.href.split("?")[0])}}window.addEventListener("moonbase-checkout-completed",()=>this.resetOrder())}get loadedStorefrontPromise(){return new Promise(t=>{ze(this.loadedStorefront,n=>{n&&t()},{immediate:!0})})}get hasUtm(){return!!this.utm.value&&Object.values(this.utm.value).some(t=>!!t)}get loadedUserPromise(){return new Promise(t=>{ze(this.loadedUser,n=>{n&&t()},{immediate:!0})})}closeCheckout(){$g()}onCheckoutCompleted(t){window.addEventListener("moonbase-checkout-completed",n=>t(n.detail.order))}onCheckoutClosed(t){window.addEventListener("moonbase-checkout-closed",n=>t(n.detail.intent))}install(t){t.provide(cn,this),console.log("Moonbase.sh storefront installed, learn more at https://moonbase.sh/docs")}async updateUser(){try{this.currentUser.value=await this.client.identity.get()}catch(t){t instanceof Pi||console.error("Could not load user",t)}finally{this.loadedUser.value=!0}return this.currentUser.value}async updateStorefront(){const t=await this.client.storefront.get(this.hasUtm?this.utm.value:void 0);return t&&(typeof window<"u"&&localStorage.setItem(Ye.storefrontKey,JSON.stringify(t)),this.storefront.value=t,this.loadedStorefront.value=!0,this.currentOrder.value.currency||(this.currentOrder.value.currency=t.suggestedCurrency)),t}async pushOrderContent(){typeof window<"u"&&localStorage.setItem(Ye.sessionKey,JSON.stringify(this.currentOrder.value)),this.debouncedPushOrderContent(this.currentOrder.value)}handleStorageUpdate(t){var n;switch(t.key){case Ye.sessionKey:this.currentOrder.value=t.newValue?JSON.parse(t.newValue):{id:ei(),currency:((n=this.storefront.value)==null?void 0:n.suggestedCurrency)||"",status:Lr.Open,items:[],couponsApplied:[]};break;case Ye.storefrontKey:this.storefront.value=JSON.parse(t.newValue);break;case Ye.utmKey:this.utm.value=JSON.parse(t.newValue);break}}async refreshOrder(){try{const t=await this.client.orders.get(this.currentOrder.value.id);t&&(t.status!==Lr.Open?this.resetOrder():(typeof window<"u"&&localStorage.setItem(Ye.sessionKey,JSON.stringify(t)),this.currentOrder.value=t))}catch(t){t!=null&&this.resetOrder()}}resetOrder(){var t;this.currentOrder.value={id:ei(),currency:((t=this.storefront.value)==null?void 0:t.suggestedCurrency)||"",status:Lr.Open,items:[],couponsApplied:[]},typeof window<"u"&&localStorage.removeItem(Ye.sessionKey)}async surrenderOrder(){try{await this.client.orders.removeBillingDetails(this.currentOrder.value.id)}catch(t){if(t instanceof Vn)return;console.warn("Could not surrender order:",t)}}};qo.userKey="moonbase_user",qo.sessionKey="moonbase_session",qo.storefrontKey="moonbase_storefront",qo.utmKey="moonbase_utm";var Dg=qo;function md(e,t){const n=t??Se(cn);if(!n)throw new Error("No storefront configured");return Y(()=>n.storefront.value.bundles.find(r=>r.id===e)||null)}function Ig(e){const t=Se(cn);if(!t)throw new Error("No storefront configured");return Y(()=>t.storefront.value.bundles)}function vd(e,t){const n=t??Se(cn);if(!n)throw new Error("No storefront configured");return Y(()=>n.storefront.value.products.find(r=>r.id===e)||null)}function Ag(e){const t=Se(cn);if(!t)throw new Error("No storefront configured");return Y(()=>t.storefront.value.products)}function ti(e){const t=Se(cn);if(!t)throw new Error("No storefront configured");return{getLicenses:async n=>t.client.inventory.licenses.get(n),getLicenseActivations:async(n,r)=>t.client.inventory.licenses.getActivations(n,r),getProduct:async(n,r)=>t.client.inventory.products.get(n,r),getProducts:async n=>t.client.inventory.products.getOwned(n),getProductLicenses:async(n,r)=>t.client.inventory.products.getLicenses(n,r),getProductActivations:async(n,r)=>t.client.inventory.products.getActivations(n,r),revokeActivation:async n=>t.client.inventory.licenses.revokeActivation(n.licenseId,n.id),activateProduct:async(n,r)=>t.client.inventory.activation.activate(n,r),downloadProduct:async n=>{if(!n.path)throw new Error("Product is not downloadable");window.location.href=await t.client.inventory.products.getDownloadUrl(n.path)}}}function Vg(e,t){const n=Se(cn);if(!n)throw new Error("No storefront configured");const r=n.stateFactory(`activation-request-${Un(e)}`,null),o=n.stateFactory(`activation-request-${Un(e)}-error`,null),s=n.stateFactory(`activation-request-${Un(e)}-loading`,!0),i=n.stateFactory(`activation-request-${Un(e)}-fulfilling`,!1),a=n.stateFactory(`activation-request-${Un(e)}-completing`,!1),l=n.stateFactory(`activation-request-${Un(e)}-completion-timeout`,null),u=async()=>{if(!r.value)return;await n.client.activationRequests.isCompleted(r.value.id)&&r.value?(r.value.status=en.Completed,a.value=!1):l.value=setTimeout(u,1500)};return ze(()=>Un(e),async c=>{try{c&&c.length>0?(r.value=await n.client.activationRequests.get(c),r.value.status===en.Fulfilled&&(a.value=!0,u()),s.value=!1):console.warn("No token given to `useActivationRequest`")}catch(d){o.value=d,s.value=!1}},{immediate:!0}),pa(()=>{l.value&&clearTimeout(l.value)}),ze(n.currentUser,async()=>{var c,d;const f=Un(e);if(!(!f||(d=(c=r.value)==null?void 0:c.licenseEligibility)!=null&&d.eligible)){s.value=!0;try{r.value=await n.client.activationRequests.get(f),r.value.status===en.Fulfilled&&(a.value=!0,u())}catch(m){o.value=m}s.value=!1}}),{activationRequest:r,loading:s,fulfilling:i,completing:a,error:o,isInstalled:Y(()=>{var c;return r&&((c=r.value)==null?void 0:c.status)===en.Completed}),fulfillLicense:async()=>{i.value=!0,r.value=await n.client.activationRequests.fulfillLicense(r.value.id),i.value=!1,a.value=!0,u()},fulfillTrial:async()=>{i.value=!0,r.value=await n.client.activationRequests.fulfillTrial(r.value.id),i.value=!1,a.value=!0,u()},cancel:async()=>{!r.value||r.value.status===en.Cancelled||(r.value=await n.client.activationRequests.cancel(r.value.id))}}}function Rg(e){const t=Se(cn);if(!t)throw new Error("No storefront configured");return{peek:async n=>{try{return await t.client.vouchers.peek(n)}catch(r){throw r instanceof Vn?new Error("Voucher code invalid"):r}},redeem:async n=>{try{return await t.client.vouchers.redeem(n)}catch(r){throw r instanceof Vn?new Error("Voucher code invalid"):r}}}}function ni(e){const t=e??Se(cn);if(!t)throw new Error("No storefront configured");return{items:Y(()=>t.currentOrder.value.items.map(n=>{var r,o;if(n.type==="Product"){const s=t.storefront.value.products.find(l=>l.id===n.productId),a=((s==null?void 0:s.variations)||[]).find(l=>l.id===n.variationId);return{...n,product:s,variation:a,price:a==null?void 0:a.price,appliedDiscount:(r=a==null?void 0:a.discount)!=null?r:n.appliedDiscount}}else{const s=t.storefront.value.bundles.find(l=>l.id===n.bundleId),a=((s==null?void 0:s.variations)||[]).find(l=>l.id===n.variationId);return{...n,bundle:s,variation:a,price:a==null?void 0:a.price,appliedDiscount:(o=a==null?void 0:a.discount)!=null?o:n.appliedDiscount}}})),currency:Y(()=>t.currentOrder.value.currency||t.storefront.value.suggestedCurrency),total:Y(()=>{const n=t.currentOrder.value.currency||t.storefront.value.suggestedCurrency;return{amount:t.currentOrder.value.items.reduce((o,s)=>{var i,a,l,u,c,d;let f;if(s.type==="Product"){const m=t.storefront.value.products.find(O=>O.id===s.productId),N=((m==null?void 0:m.variations)||[]).find(O=>O.id===s.variationId);f=(l=(a=N==null?void 0:N.price[n])!=null?a:(i=m==null?void 0:m.defaultVariation)==null?void 0:i.price[n])!=null?l:0}else{const m=t.storefront.value.bundles.find(O=>O.id===s.bundleId),N=((m==null?void 0:m.variations)||[]).find(O=>O.id===s.variationId);f=(d=(c=N==null?void 0:N.price[n])!=null?c:(u=m==null?void 0:m.defaultVariation)==null?void 0:u.price[n])!=null?d:0}return o+f*s.quantity},0),currency:n}}),addToCart:(n,r)=>{if(n=_(n),r??(r=n.defaultVariation),!r)throw new Error("Added item does not have a default variation, and none have been specified");const o=`${n.type==="bundle"?"b":"p"}/${n.id}/${r.id}`;let s=t.currentOrder.value.items.find(i=>i.id===o);if(s)s.quantity+=1;else if(n.type==="bundle")s={id:o,type:"Bundle",bundleId:n.id,bundle:n,quantity:1,variation:r,variationId:r.id,price:r.price,appliedDiscount:r.discount},t.currentOrder.value.items.push(s);else if(n.type==="product")s={id:o,type:"Product",productId:n.id,product:n,quantity:1,variation:r,variationId:r.id,price:r.price,appliedDiscount:r.discount},t.currentOrder.value.items.push(s);else throw new Mr("Invalid input",`Could not handle item of type '${n.type}'`);return t.pushOrderContent(),s},setQuantity:(n,r)=>{const o=t.currentOrder.value.items.find(s=>s.id===n.id);if(!o)throw new Error("Cart item not found");if(o.quantity=r,o.quantity<=0){const s=t.currentOrder.value.items.findIndex(i=>i.id===o.id);t.currentOrder.value.items.splice(s,1)}return t.pushOrderContent(),n},removeFromCart:n=>{const r=t.currentOrder.value.items.findIndex(o=>o.id===n.id);t.currentOrder.value.items.splice(r,1),t.pushOrderContent()},checkout:async n=>{var r;const o=typeof window<"u"?window.location.pathname:"",s=new URL((r=n.returnUrl)!=null?r:o,document.baseURI).href,i=await t.client.orders.pushContent(t.currentOrder.value,{returnUrl:s},t.hasUtm?t.utm.value:void 0);if(!n.redirect&&i.embeddedCheckoutUrl&&typeof window<"u"){const a=i.embeddedCheckoutUrl;return new Promise(l=>{hd(a.replace("acme-co.beta.moonbase.sh","localhost:3002")),window.addEventListener("moonbase-checkout-closed",u=>{l({next:u.detail.next})})})}else{if(n.redirect&&i.checkoutUrl&&typeof window<"u")return window.location.href=i.checkoutUrl,{next:void 0};throw new Error("No checkout URL found")}}}}function wt(e){const t=e??Se(cn);if(!t)throw new Error("No storefront configured");return{user:t.currentUser,loaded:t.loadedUser,loadedPromise:t.loadedUserPromise,signIn:async(n,r)=>{const o=await t.client.identity.signIn(n,r);return t.currentUser.value=o,t.updateStorefront(),o},signUp:async(n,r,o,s,i,a,l)=>{const u=await t.client.identity.signUp(n,r,o,s,i,a,l);return t.currentUser.value=u,t.updateStorefront(),u},signOut:async()=>{t.client.tokenStore.setUser(null),await Promise.all([t.updateStorefront(),t.surrenderOrder()]),t.currentUser.value=null},update:async(n,r,o,s)=>{const i=await t.client.identity.update(n,r,o,s);return t.currentUser.value&&(t.currentUser.value.name=n,s&&(t.currentUser.value.communicationPreferences=s)),i},setPassword:async(n,r)=>{await t.client.identity.setPassword(n,r)},forgotPassword:async n=>{await t.client.identity.forgotPassword(n)},resetPassword:async(n,r,o)=>{await t.client.identity.resetPassword(n,r,o)},confirmAccount:async(n,r)=>await t.client.identity.confirmAccount(n,r),confirmEmail:async(n,r)=>await t.client.identity.confirmEmail(n,r),confirmEmailChange:async(n,r)=>(await t.client.identity.confirmEmailChange(n,r),await t.updateUser())}}function jg(e,t,n){const r={endpoint:e};return new Dg(r,new eh(r),(o,s)=>R(s))}var gd=!1;function ri(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Ba(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Mg(){return yd().__VUE_DEVTOOLS_GLOBAL_HOOK__}function yd(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Lg=typeof Proxy=="function",Ug="devtools-plugin:setup",Fg="plugin:settings:set";let zr,Ha;function Bg(){var e;return zr!==void 0||(typeof window<"u"&&window.performance?(zr=!0,Ha=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(zr=!0,Ha=globalThis.perf_hooks.performance):zr=!1),zr}function Hg(){return Bg()?Ha.now():Date.now()}class Zg{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const i in t.settings){const a=t.settings[i];r[i]=a.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const i=localStorage.getItem(o),a=JSON.parse(i);Object.assign(s,a)}catch{}this.fallbacks={getSettings(){return s},setSettings(i){try{localStorage.setItem(o,JSON.stringify(i))}catch{}s=i},now(){return Hg()}},n&&n.on(Fg,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:a,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function bd(e,t){const n=e,r=yd(),o=Mg(),s=Lg&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))o.emit(Ug,e,t);else{const i=s?new Zg(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}var Pe={};let Wo;const zo=e=>Wo=e,_d=Pe.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function wr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var dn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(dn||(dn={}));const Er=typeof window<"u",wd=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function qg(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function Za(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Nd(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function Ed(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function oi(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const si=typeof navigator=="object"?navigator:{userAgent:""},Od=/Macintosh/.test(si.userAgent)&&/AppleWebKit/.test(si.userAgent)&&!/Safari/.test(si.userAgent),Nd=Er?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Od?Wg:"msSaveOrOpenBlob"in si?zg:Kg:()=>{};function Wg(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?Ed(r.href)?Za(e,t,n):(r.target="_blank",oi(r)):oi(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){oi(r)},0))}function zg(e,t="download",n){if(typeof e=="string")if(Ed(e))Za(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){oi(r)})}else navigator.msSaveOrOpenBlob(qg(e,n),t)}function Kg(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Za(e,t,n);const o=e.type==="application/octet-stream",s=/constructor/i.test(String(wd.HTMLElement))||"safari"in wd,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||o&&s||Od)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw r=null,new Error("Wrong reader.result type");l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location.assign(l),r=null},a.readAsDataURL(e)}else{const a=URL.createObjectURL(e);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function st(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function qa(e){return"_a"in e&&"install"in e}function xd(){if(!("clipboard"in navigator))return st("Your browser doesn't support the Clipboard API","error"),!0}function Sd(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(st('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Gg(e){if(!xd())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),st("Global state copied to clipboard.")}catch(t){if(Sd(t))return;st("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Jg(e){if(!xd())try{kd(e,JSON.parse(await navigator.clipboard.readText())),st("Global state pasted from clipboard.")}catch(t){if(Sd(t))return;st("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Yg(e){try{Nd(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){st("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Sn;function Xg(){Sn||(Sn=document.createElement("input"),Sn.type="file",Sn.accept=".json");function e(){return new Promise((t,n)=>{Sn.onchange=async()=>{const r=Sn.files;if(!r)return t(null);const o=r.item(0);return t(o?{text:await o.text(),file:o}:null)},Sn.oncancel=()=>t(null),Sn.onerror=n,Sn.click()})}return e}async function Qg(e){try{const n=await Xg()();if(!n)return;const{text:r,file:o}=n;kd(e,JSON.parse(r)),st(`Global state imported from "${o.name}".`)}catch(t){st("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function kd(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function zt(e){return{_custom:{display:e}}}const Cd="🍍 Pinia (root)",ii="_root";function ey(e){return qa(e)?{id:ii,label:Cd}:{id:e.$id,label:e.$id}}function ty(e){if(qa(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>r.get(s)._getters).map(s=>{const i=r.get(s);return{editable:!1,key:s,value:i._getters.reduce((a,l)=>(a[l]=i[l],a),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function ny(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:zt(e.type),key:zt(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function ry(e){switch(e){case dn.direct:return"mutation";case dn.patchFunction:return"$patch";case dn.patchObject:return"$patch";default:return"unknown"}}let Kr=!0;const ai=[],Or="pinia:mutations",ht="pinia",{assign:oy}=Object,li=e=>"🍍 "+e;function sy(e,t){bd({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ai,app:e},n=>{typeof n.now!="function"&&st("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:Or,label:"Pinia 🍍",color:15064968}),n.addInspector({id:ht,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Gg(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Jg(t),n.sendInspectorTree(ht),n.sendInspectorState(ht)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Yg(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Qg(t),n.sendInspectorTree(ht),n.sendInspectorState(ht)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=t._s.get(r);o?typeof o.$reset!="function"?st(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),st(`Store "${r}" reset.`)):st(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,o)=>{const s=r.componentInstance&&r.componentInstance.proxy;if(s&&s._pStores){const i=r.componentInstance.proxy._pStores;Object.values(i).forEach(a=>{r.instanceData.state.push({type:li(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:be(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((l,u)=>(l[u]=a.$state[u],l),{})}),a._getters&&a._getters.length&&r.instanceData.state.push({type:li(a.$id),key:"getters",editable:!1,value:a._getters.reduce((l,u)=>{try{l[u]=a[u]}catch(c){l[u]=c}return l},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===ht){let o=[t];o=o.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?o.filter(s=>"$id"in s?s.$id.toLowerCase().includes(r.filter.toLowerCase()):Cd.toLowerCase().includes(r.filter.toLowerCase())):o).map(ey)}}),globalThis.$pinia=t,n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===ht){const o=r.nodeId===ii?t:t._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==ii&&(globalThis.$store=be(o)),r.state=ty(o))}}),n.on.editInspectorState((r,o)=>{if(r.app===e&&r.inspectorId===ht){const s=r.nodeId===ii?t:t._s.get(r.nodeId);if(!s)return st(`store "${r.nodeId}" not found`,"error");const{path:i}=r;qa(s)?i.unshift("state"):(i.length!==1||!s._customProperties.has(i[0])||i[0]in s.$state)&&i.unshift("$state"),Kr=!1,r.set(s,i,r.state.value),Kr=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),s=t._s.get(o);if(!s)return st(`store "${o}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return st(`Invalid path for store "${o}":
13
+ For more details, see https://link.vuejs.org/feature-flags.`)}}const xt=Ev;function uv(e){return cv(e)}function cv(e,t){lv();const n=Ui();n.__VUE__=!0,_.NODE_ENV!=="production"&&Bu(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:m=Qe,insertStaticContent:E}=e,x=(p,v,T,B=null,U=null,F=null,Q=void 0,G=null,K=_.NODE_ENV!=="production"&&Hn?!1:!!v.dynamicChildren)=>{if(p===v)return;p&&!yr(p,v)&&(B=wi(p),Be(p,U,F,!0),p=null),v.patchFlag===-2&&(K=!1,v.dynamicChildren=null);const{type:H,ref:ge,shapeFlag:te}=v;switch(H){case Mo:O(p,v,T,B);break;case Je:I(p,v,T,B);break;case Lo:p==null?j(v,T,B,Q):_.NODE_ENV!=="production"&&$(p,v,T,Q);break;case Te:L(p,v,T,B,U,F,Q,G,K);break;default:te&1?M(p,v,T,B,U,F,Q,G,K):te&6?ne(p,v,T,B,U,F,Q,G,K):te&64||te&128?H.process(p,v,T,B,U,F,Q,G,K,rs):_.NODE_ENV!=="production"&&Z("Invalid VNode type:",H,`(${typeof H})`)}ge!=null&&U&&fa(ge,p&&p.ref,F,v||p,!v)},O=(p,v,T,B)=>{if(p==null)r(v.el=a(v.children),T,B);else{const U=v.el=p.el;v.children!==p.children&&u(U,v.children)}},I=(p,v,T,B)=>{p==null?r(v.el=l(v.children||""),T,B):v.el=p.el},j=(p,v,T,B)=>{[p.el,p.anchor]=E(p.children,v,T,B,p.el,p.anchor)},$=(p,v,T,B)=>{if(v.children!==p.children){const U=f(p.anchor);y(p),[v.el,v.anchor]=E(v.children,T,U,B)}else v.el=p.el,v.anchor=p.anchor},z=({el:p,anchor:v},T,B)=>{let U;for(;p&&p!==v;)U=f(p),r(p,T,B),p=U;r(v,T,B)},y=({el:p,anchor:v})=>{let T;for(;p&&p!==v;)T=f(p),o(p),p=T;o(v)},M=(p,v,T,B,U,F,Q,G,K)=>{v.type==="svg"?Q="svg":v.type==="math"&&(Q="mathml"),p==null?P(v,T,B,U,F,Q,G,K):A(p,v,U,F,Q,G,K)},P=(p,v,T,B,U,F,Q,G)=>{let K,H;const{props:ge,shapeFlag:te,transition:ce,dirs:Ee}=p;if(K=p.el=i(p.type,F,ge&&ge.is,ge),te&8?c(K,p.children):te&16&&S(p.children,K,null,B,U,xa(p,F),Q,G),Ee&&pr(p,null,B,"created"),re(K,p,p.scopeId,Q,B),ge){for(const He in ge)He!=="value"&&!bo(He)&&s(K,He,null,ge[He],F,B);"value"in ge&&s(K,"value",null,ge.value,F),(H=ge.onVnodeBeforeMount)&&ln(H,B,p)}_.NODE_ENV!=="production"&&(ws(K,"__vnode",p,!0),ws(K,"__vueParentComponent",B,!0)),Ee&&pr(p,null,B,"beforeMount");const $e=dv(U,ce);$e&&ce.beforeEnter(K),r(K,v,T),((H=ge&&ge.onVnodeMounted)||$e||Ee)&&xt(()=>{H&&ln(H,B,p),$e&&ce.enter(K),Ee&&pr(p,null,B,"mounted")},U)},re=(p,v,T,B,U)=>{if(T&&m(p,T),B)for(let F=0;F<B.length;F++)m(p,B[F]);if(U){let F=U.subTree;if(_.NODE_ENV!=="production"&&F.patchFlag>0&&F.patchFlag&2048&&(F=Ta(F.children)||F),v===F||Vc(F.type)&&(F.ssContent===v||F.ssFallback===v)){const Q=U.vnode;re(p,Q,Q.scopeId,Q.slotScopeIds,U.parent)}}},S=(p,v,T,B,U,F,Q,G,K=0)=>{for(let H=K;H<p.length;H++){const ge=p[H]=G?Wn(p[H]):Wt(p[H]);x(null,ge,v,T,B,U,F,Q,G)}},A=(p,v,T,B,U,F,Q)=>{const G=v.el=p.el;_.NODE_ENV!=="production"&&(G.__vnode=v);let{patchFlag:K,dynamicChildren:H,dirs:ge}=v;K|=p.patchFlag&16;const te=p.props||Me,ce=v.props||Me;let Ee;if(T&&gr(T,!1),(Ee=ce.onVnodeBeforeUpdate)&&ln(Ee,T,v,p),ge&&pr(v,p,T,"beforeUpdate"),T&&gr(T,!0),_.NODE_ENV!=="production"&&Hn&&(K=0,Q=!1,H=null),(te.innerHTML&&ce.innerHTML==null||te.textContent&&ce.textContent==null)&&c(G,""),H?(D(p.dynamicChildren,H,G,T,B,xa(v,U),F),_.NODE_ENV!=="production"&&jo(p,v)):Q||ve(p,v,G,null,T,B,xa(v,U),F,!1),K>0){if(K&16)k(G,te,ce,T,U);else if(K&2&&te.class!==ce.class&&s(G,"class",null,ce.class,U),K&4&&s(G,"style",te.style,ce.style,U),K&8){const $e=v.dynamicProps;for(let He=0;He<$e.length;He++){const Le=$e[He],It=te[Le],vt=ce[Le];(vt!==It||Le==="value")&&s(G,Le,It,vt,U,T)}}K&1&&p.children!==v.children&&c(G,v.children)}else!Q&&H==null&&k(G,te,ce,T,U);((Ee=ce.onVnodeUpdated)||ge)&&xt(()=>{Ee&&ln(Ee,T,v,p),ge&&pr(v,p,T,"updated")},B)},D=(p,v,T,B,U,F,Q)=>{for(let G=0;G<v.length;G++){const K=p[G],H=v[G],ge=K.el&&(K.type===Te||!yr(K,H)||K.shapeFlag&70)?d(K.el):T;x(K,H,ge,null,B,U,F,Q,!0)}},k=(p,v,T,B,U)=>{if(v!==T){if(v!==Me)for(const F in v)!bo(F)&&!(F in T)&&s(p,F,v[F],null,U,B);for(const F in T){if(bo(F))continue;const Q=T[F],G=v[F];Q!==G&&F!=="value"&&s(p,F,G,Q,U,B)}"value"in T&&s(p,"value",v.value,T.value,U)}},L=(p,v,T,B,U,F,Q,G,K)=>{const H=v.el=p?p.el:a(""),ge=v.anchor=p?p.anchor:a("");let{patchFlag:te,dynamicChildren:ce,slotScopeIds:Ee}=v;_.NODE_ENV!=="production"&&(Hn||te&2048)&&(te=0,K=!1,ce=null),Ee&&(G=G?G.concat(Ee):Ee),p==null?(r(H,T,B),r(ge,T,B),S(v.children||[],T,ge,U,F,Q,G,K)):te>0&&te&64&&ce&&p.dynamicChildren?(D(p.dynamicChildren,ce,T,U,F,Q,G),_.NODE_ENV!=="production"?jo(p,v):(v.key!=null||U&&v===U.subTree)&&jo(p,v,!0)):ve(p,v,T,ge,U,F,Q,G,K)},ne=(p,v,T,B,U,F,Q,G,K)=>{v.slotScopeIds=G,p==null?v.shapeFlag&512?U.ctx.activate(v,T,B,Q,K):h(v,T,B,U,F,Q,K):V(p,v,K)},h=(p,v,T,B,U,F,Q)=>{const G=p.component=Tv(p,B,U);if(_.NODE_ENV!=="production"&&G.type.__hmrId&&sm(G),_.NODE_ENV!=="production"&&(Vs(p),En(G,"mount")),Ao(p)&&(G.ctx.renderer=rs),_.NODE_ENV!=="production"&&En(G,"init"),$v(G,!1,Q),_.NODE_ENV!=="production"&&On(G,"init"),G.asyncDep){if(U&&U.registerDep(G,ee,Q),!p.el){const K=G.subTree=W(Je);I(null,K,v,T)}}else ee(G,p,v,T,U,F,Q);_.NODE_ENV!=="production"&&(Rs(),On(G,"mount"))},V=(p,v,T)=>{const B=v.component=p.component;if(_v(p,v,T))if(B.asyncDep&&!B.asyncResolved){_.NODE_ENV!=="production"&&Vs(v),ie(B,v,T),_.NODE_ENV!=="production"&&Rs();return}else B.next=v,B.update();else v.el=p.el,B.vnode=v},ee=(p,v,T,B,U,F,Q)=>{const G=()=>{if(p.isMounted){let{next:te,bu:ce,u:Ee,parent:$e,vnode:He}=p;{const At=Cc(p);if(At){te&&(te.el=He.el,ie(p,te,Q)),At.asyncDep.then(()=>{p.isUnmounted||G()});return}}let Le=te,It;_.NODE_ENV!=="production"&&Vs(te||p.vnode),gr(p,!1),te?(te.el=He.el,ie(p,te,Q)):te=He,ce&&_o(ce),(It=te.props&&te.props.onVnodeBeforeUpdate)&&ln(It,$e,te,He),gr(p,!0),_.NODE_ENV!=="production"&&En(p,"render");const vt=Ca(p);_.NODE_ENV!=="production"&&On(p,"render");const Gt=p.subTree;p.subTree=vt,_.NODE_ENV!=="production"&&En(p,"patch"),x(Gt,vt,d(Gt.el),wi(Gt),p,U,F),_.NODE_ENV!=="production"&&On(p,"patch"),te.el=vt.el,Le===null&&wv(p,vt.el),Ee&&xt(Ee,U),(It=te.props&&te.props.onVnodeUpdated)&&xt(()=>ln(It,$e,te,He),U),_.NODE_ENV!=="production"&&Hu(p),_.NODE_ENV!=="production"&&Rs()}else{let te;const{el:ce,props:Ee}=v,{bm:$e,m:He,parent:Le,root:It,type:vt}=p,Gt=qr(v);if(gr(p,!1),$e&&_o($e),!Gt&&(te=Ee&&Ee.onVnodeBeforeMount)&&ln(te,Le,v),gr(p,!0),ce&&Pf){const At=()=>{_.NODE_ENV!=="production"&&En(p,"render"),p.subTree=Ca(p),_.NODE_ENV!=="production"&&On(p,"render"),_.NODE_ENV!=="production"&&En(p,"hydrate"),Pf(ce,p.subTree,p,U,null),_.NODE_ENV!=="production"&&On(p,"hydrate")};Gt&&vt.__asyncHydrate?vt.__asyncHydrate(ce,p,At):At()}else{It.ce&&It.ce._injectChildStyle(vt),_.NODE_ENV!=="production"&&En(p,"render");const At=p.subTree=Ca(p);_.NODE_ENV!=="production"&&On(p,"render"),_.NODE_ENV!=="production"&&En(p,"patch"),x(null,At,T,B,p,U,F),_.NODE_ENV!=="production"&&On(p,"patch"),v.el=At.el}if(He&&xt(He,U),!Gt&&(te=Ee&&Ee.onVnodeMounted)){const At=v;xt(()=>ln(te,Le,At),U)}(v.shapeFlag&256||Le&&qr(Le.vnode)&&Le.vnode.shapeFlag&256)&&p.a&&xt(p.a,U),p.isMounted=!0,_.NODE_ENV!=="production"&&dm(p),v=T=B=null}};p.scope.on();const K=p.effect=new iu(G);p.scope.off();const H=p.update=K.run.bind(K),ge=p.job=K.runIfDirty.bind(K);ge.i=p,ge.id=p.uid,K.scheduler=()=>js(ge),gr(p,!0),_.NODE_ENV!=="production"&&(K.onTrack=p.rtc?te=>_o(p.rtc,te):void 0,K.onTrigger=p.rtg?te=>_o(p.rtg,te):void 0),H()},ie=(p,v,T)=>{v.component=p;const B=p.vnode.props;p.vnode=v,p.next=null,Ym(p,v.props,B,T),av(p,v.children,T),gn(),ju(p),yn()},ve=(p,v,T,B,U,F,Q,G,K=!1)=>{const H=p&&p.children,ge=p?p.shapeFlag:0,te=v.children,{patchFlag:ce,shapeFlag:Ee}=v;if(ce>0){if(ce&128){Fe(H,te,T,B,U,F,Q,G,K);return}else if(ce&256){le(H,te,T,B,U,F,Q,G,K);return}}Ee&8?(ge&16&&ns(H,U,F),te!==H&&c(T,te)):ge&16?Ee&16?Fe(H,te,T,B,U,F,Q,G,K):ns(H,U,F,!0):(ge&8&&c(T,""),Ee&16&&S(te,T,B,U,F,Q,G,K))},le=(p,v,T,B,U,F,Q,G,K)=>{p=p||Ur,v=v||Ur;const H=p.length,ge=v.length,te=Math.min(H,ge);let ce;for(ce=0;ce<te;ce++){const Ee=v[ce]=K?Wn(v[ce]):Wt(v[ce]);x(p[ce],Ee,T,null,U,F,Q,G,K)}H>ge?ns(p,U,F,!0,!1,te):S(v,T,B,U,F,Q,G,K,te)},Fe=(p,v,T,B,U,F,Q,G,K)=>{let H=0;const ge=v.length;let te=p.length-1,ce=ge-1;for(;H<=te&&H<=ce;){const Ee=p[H],$e=v[H]=K?Wn(v[H]):Wt(v[H]);if(yr(Ee,$e))x(Ee,$e,T,null,U,F,Q,G,K);else break;H++}for(;H<=te&&H<=ce;){const Ee=p[te],$e=v[ce]=K?Wn(v[ce]):Wt(v[ce]);if(yr(Ee,$e))x(Ee,$e,T,null,U,F,Q,G,K);else break;te--,ce--}if(H>te){if(H<=ce){const Ee=ce+1,$e=Ee<ge?v[Ee].el:B;for(;H<=ce;)x(null,v[H]=K?Wn(v[H]):Wt(v[H]),T,$e,U,F,Q,G,K),H++}}else if(H>ce)for(;H<=te;)Be(p[H],U,F,!0),H++;else{const Ee=H,$e=H,He=new Map;for(H=$e;H<=ce;H++){const Ot=v[H]=K?Wn(v[H]):Wt(v[H]);Ot.key!=null&&(_.NODE_ENV!=="production"&&He.has(Ot.key)&&Z("Duplicate keys found during update:",JSON.stringify(Ot.key),"Make sure keys are unique."),He.set(Ot.key,H))}let Le,It=0;const vt=ce-$e+1;let Gt=!1,At=0;const os=new Array(vt);for(H=0;H<vt;H++)os[H]=0;for(H=Ee;H<=te;H++){const Ot=p[H];if(It>=vt){Be(Ot,U,F,!0);continue}let fn;if(Ot.key!=null)fn=He.get(Ot.key);else for(Le=$e;Le<=ce;Le++)if(os[Le-$e]===0&&yr(Ot,v[Le])){fn=Le;break}fn===void 0?Be(Ot,U,F,!0):(os[fn-$e]=H+1,fn>=At?At=fn:Gt=!0,x(Ot,v[fn],T,null,U,F,Q,G,K),It++)}const $f=Gt?fv(os):Ur;for(Le=$f.length-1,H=vt-1;H>=0;H--){const Ot=$e+H,fn=v[Ot],Df=Ot+1<ge?v[Ot+1].el:B;os[H]===0?x(null,fn,T,Df,U,F,Q,G,K):Gt&&(Le<0||H!==$f[Le]?mt(fn,T,Df,2):Le--)}}},mt=(p,v,T,B,U=null)=>{const{el:F,type:Q,transition:G,children:K,shapeFlag:H}=p;if(H&6){mt(p.component.subTree,v,T,B);return}if(H&128){p.suspense.move(v,T,B);return}if(H&64){Q.move(p,v,T,rs);return}if(Q===Te){r(F,v,T);for(let te=0;te<K.length;te++)mt(K[te],v,T,B);r(p.anchor,v,T);return}if(Q===Lo){z(p,v,T);return}if(B!==2&&H&1&&G)if(B===0)G.beforeEnter(F),r(F,v,T),xt(()=>G.enter(F),U);else{const{leave:te,delayLeave:ce,afterLeave:Ee}=G,$e=()=>r(F,v,T),He=()=>{te(F,()=>{$e(),Ee&&Ee()})};ce?ce(F,$e,He):He()}else r(F,v,T)},Be=(p,v,T,B=!1,U=!1)=>{const{type:F,props:Q,ref:G,children:K,dynamicChildren:H,shapeFlag:ge,patchFlag:te,dirs:ce,cacheIndex:Ee}=p;if(te===-2&&(U=!1),G!=null&&fa(G,null,T,p,!0),Ee!=null&&(v.renderCache[Ee]=void 0),ge&256){v.ctx.deactivate(p);return}const $e=ge&1&&ce,He=!qr(p);let Le;if(He&&(Le=Q&&Q.onVnodeBeforeUnmount)&&ln(Le,v,p),ge&6)$0(p.component,T,B);else{if(ge&128){p.suspense.unmount(T,B);return}$e&&pr(p,null,v,"beforeUnmount"),ge&64?p.type.remove(p,v,T,rs,B):H&&!H.hasOnce&&(F!==Te||te>0&&te&64)?ns(H,v,T,!1,!0):(F===Te&&te&384||!U&&ge&16)&&ns(K,v,T),B&&St(p)}(He&&(Le=Q&&Q.onVnodeUnmounted)||$e)&&xt(()=>{Le&&ln(Le,v,p),$e&&pr(p,null,v,"unmounted")},T)},St=p=>{const{type:v,el:T,anchor:B,transition:U}=p;if(v===Te){_.NODE_ENV!=="production"&&p.patchFlag>0&&p.patchFlag&2048&&U&&!U.persisted?p.children.forEach(Q=>{Q.type===Je?o(Q.el):St(Q)}):nr(T,B);return}if(v===Lo){y(p);return}const F=()=>{o(T),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(p.shapeFlag&1&&U&&!U.persisted){const{leave:Q,delayLeave:G}=U,K=()=>Q(T,F);G?G(p.el,F,K):K()}else F()},nr=(p,v)=>{let T;for(;p!==v;)T=f(p),o(p),p=T;o(v)},$0=(p,v,T)=>{_.NODE_ENV!=="production"&&p.type.__hmrId&&im(p);const{bum:B,scope:U,job:F,subTree:Q,um:G,m:K,a:H}=p;Tc(K),Tc(H),B&&_o(B),U.stop(),F&&(F.flags|=8,Be(Q,p,v,T)),G&&xt(G,v),xt(()=>{p.isUnmounted=!0},v),v&&v.pendingBranch&&!v.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===v.pendingId&&(v.deps--,v.deps===0&&v.resolve()),_.NODE_ENV!=="production"&&pm(p)},ns=(p,v,T,B=!1,U=!1,F=0)=>{for(let Q=F;Q<p.length;Q++)Be(p[Q],v,T,B,U)},wi=p=>{if(p.shapeFlag&6)return wi(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const v=f(p.anchor||p.el),T=v&&v[zu];return T?f(T):v};let hl=!1;const Cf=(p,v,T)=>{p==null?v._vnode&&Be(v._vnode,null,null,!0):x(v._vnode||null,p,v,null,null,null,T),v._vnode=p,hl||(hl=!0,ju(),Mu(),hl=!1)},rs={p:x,um:Be,m:mt,r:St,mt:h,mc:S,pc:ve,pbc:D,n:wi,o:e};let Tf,Pf;return{render:Cf,hydrate:Tf,createApp:zm(Cf,Tf)}}function xa({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function gr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function dv(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function jo(e,t,n=!1){const r=e.children,o=t.children;if(de(r)&&de(o))for(let s=0;s<r.length;s++){const i=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=Wn(o[s]),a.el=i.el),!n&&a.patchFlag!==-2&&jo(i,a)),a.type===Mo&&(a.el=i.el),_.NODE_ENV!=="production"&&a.type===Je&&!a.el&&(a.el=i.el)}}function fv(e){const t=e.slice(),n=[0];let r,o,s,i,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<u?s=a+1:i=a;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function Cc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Cc(t)}function Tc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const pv=Symbol.for("v-scx"),hv=()=>{{const e=ke(pv);return e||_.NODE_ENV!=="production"&&Z("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function pt(e,t){return Sa(e,null,t)}function ze(e,t,n){return _.NODE_ENV!=="production"&&!pe(t)&&Z("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Sa(e,t,n)}function Sa(e,t,n=Me){const{immediate:r,deep:o,flush:s,once:i}=n;_.NODE_ENV!=="production"&&!t&&(r!==void 0&&Z('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&Z('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&Z('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=Ge({},n);_.NODE_ENV!=="production"&&(a.onWarn=Z);let l;if(Xs)if(s==="sync"){const f=hv();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!t||r)a.once=!0;else return{stop:Qe,resume:Qe,pause:Qe};const u=Xe;a.call=(f,m,E)=>Zt(f,u,m,E);let c=!1;s==="post"?a.scheduler=f=>{xt(f,u&&u.suspense)}:s!=="sync"&&(c=!0,a.scheduler=(f,m)=>{m?f():js(f)}),a.augmentJob=f=>{t&&(f.flags|=4),c&&(f.flags|=2,u&&(f.id=u.uid,f.i=u))};const d=Jh(e,t,a);return l&&l.push(d),d}function mv(e,t,n){const r=this.proxy,o=Ze(e)?e.includes(".")?Pc(r,e):()=>r[e]:e.bind(r,r);let s;pe(t)?s=t:(s=t.handler,n=t);const i=Bo(this),a=Sa(o,s.bind(r),n);return i(),a}function Pc(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const vv=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Tt(t)}Modifiers`]||e[`${vn(t)}Modifiers`];function gv(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Me;if(_.NODE_ENV!=="production"){const{emitsOptions:c,propsOptions:[d]}=e;if(c)if(!(t in c))(!d||!(lr(Tt(t))in d))&&Z(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${lr(Tt(t))}" prop.`);else{const f=c[t];pe(f)&&(f(...n)||Z(`Invalid event arguments: event validation failed for event "${t}".`))}}let o=n;const s=t.startsWith("update:"),i=s&&vv(r,t.slice(7));if(i&&(i.trim&&(o=n.map(c=>Ze(c)?c.trim():c)),i.number&&(o=n.map(ih))),_.NODE_ENV!=="production"&&vm(e,t,o),_.NODE_ENV!=="production"){const c=t.toLowerCase();c!==t&&r[lr(c)]&&Z(`Event "${c}" is emitted in component ${Qs(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${vn(t)}" instead of "${t}".`)}let a,l=r[a=lr(t)]||r[a=lr(Tt(t))];!l&&s&&(l=r[a=lr(vn(t))]),l&&Zt(l,e,6,o);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Zt(u,e,6,o)}}function $c(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!pe(e)){const l=u=>{const c=$c(u,t,!0);c&&(a=!0,Ge(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(Ae(e)&&r.set(e,null),null):(de(s)?s.forEach(l=>i[l]=null):Ge(i,s),Ae(e)&&r.set(e,i),i)}function zs(e,t){return!e||!yo(t)?!1:(t=t.slice(2).replace(/Once$/,""),De(e,t[0].toLowerCase()+t.slice(1))||De(e,vn(t))||De(e,t))}let ka=!1;function Ks(){ka=!0}function Ca(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:a,emit:l,render:u,renderCache:c,props:d,data:f,setupState:m,ctx:E,inheritAttrs:x}=e,O=Us(e);let I,j;_.NODE_ENV!=="production"&&(ka=!1);try{if(n.shapeFlag&4){const y=o||r,M=_.NODE_ENV!=="production"&&m.__isScriptSetup?new Proxy(y,{get(P,re,S){return Z(`Property '${String(re)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(P,re,S)}}):y;I=Wt(u.call(M,y,c,_.NODE_ENV!=="production"?nn(d):d,m,f,E)),j=a}else{const y=t;_.NODE_ENV!=="production"&&a===d&&Ks(),I=Wt(y.length>1?y(_.NODE_ENV!=="production"?nn(d):d,_.NODE_ENV!=="production"?{get attrs(){return Ks(),nn(a)},slots:i,emit:l}:{attrs:a,slots:i,emit:l}):y(_.NODE_ENV!=="production"?nn(d):d,null)),j=t.props?a:yv(a)}}catch(y){Uo.length=0,ko(y,e,1),I=W(Je)}let $=I,z;if(_.NODE_ENV!=="production"&&I.patchFlag>0&&I.patchFlag&2048&&([$,z]=Dc(I)),j&&x!==!1){const y=Object.keys(j),{shapeFlag:M}=$;if(y.length){if(M&7)s&&y.some(ys)&&(j=bv(j,s)),$=qt($,j,!1,!0);else if(_.NODE_ENV!=="production"&&!ka&&$.type!==Je){const P=Object.keys(a),re=[],S=[];for(let A=0,D=P.length;A<D;A++){const k=P[A];yo(k)?ys(k)||re.push(k[2].toLowerCase()+k.slice(3)):S.push(k)}S.length&&Z(`Extraneous non-props attributes (${S.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),re.length&&Z(`Extraneous non-emits event listeners (${re.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(_.NODE_ENV!=="production"&&!Ic($)&&Z("Runtime directive used on component with non-element root node. The directives will not function as intended."),$=qt($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&(_.NODE_ENV!=="production"&&!Ic($)&&Z("Component inside <Transition> renders non-element root node that cannot be animated."),Io($,n.transition)),_.NODE_ENV!=="production"&&z?z($):I=$,Us(O),I}const Dc=e=>{const t=e.children,n=e.dynamicChildren,r=Ta(t,!1);if(r){if(_.NODE_ENV!=="production"&&r.patchFlag>0&&r.patchFlag&2048)return Dc(r)}else return[e,void 0];const o=t.indexOf(r),s=n?n.indexOf(r):-1,i=a=>{t[o]=a,n&&(s>-1?n[s]=a:a.patchFlag>0&&(e.dynamicChildren=[...n,a]))};return[Wt(r),i]};function Ta(e,t=!0){let n;for(let r=0;r<e.length;r++){const o=e[r];if(Wr(o)){if(o.type!==Je||o.children==="v-if"){if(n)return;if(n=o,_.NODE_ENV!=="production"&&t&&n.patchFlag>0&&n.patchFlag&2048)return Ta(n.children)}}else return}return n}const yv=e=>{let t;for(const n in e)(n==="class"||n==="style"||yo(n))&&((t||(t={}))[n]=e[n]);return t},bv=(e,t)=>{const n={};for(const r in e)(!ys(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n},Ic=e=>e.shapeFlag&7||e.type===Je;function _v(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,u=s.emitsOptions;if(_.NODE_ENV!=="production"&&(o||a)&&Hn||t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ac(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(i[f]!==r[f]&&!zs(u,f))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Ac(r,i,u):!0:!!i;return!1}function Ac(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(t[s]!==e[s]&&!zs(n,s))return!0}return!1}function wv({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Vc=e=>e.__isSuspense;function Ev(e,t){t&&t.pendingBranch?de(e)?t.effects.push(...e):t.effects.push(e):Ru(e)}const Te=Symbol.for("v-fgt"),Mo=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),Lo=Symbol.for("v-stc"),Uo=[];let Pt=null;function w(e=!1){Uo.push(Pt=e?null:[])}function Ov(){Uo.pop(),Pt=Uo[Uo.length-1]||null}let Fo=1;function Rc(e){Fo+=e,e<0&&Pt&&(Pt.hasOnce=!0)}function jc(e){return e.dynamicChildren=Fo>0?Pt||Ur:null,Ov(),Fo>0&&Pt&&Pt.push(e),e}function C(e,t,n,r,o,s){return jc(N(e,t,n,r,o,s,!0))}function Se(e,t,n,r,o){return jc(W(e,t,n,r,o,!0))}function Wr(e){return e?e.__v_isVNode===!0:!1}function yr(e,t){if(_.NODE_ENV!=="production"&&t.shapeFlag&6&&e.component){const n=Ms.get(t.type);if(n&&n.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}const Nv=(...e)=>Lc(...e),Mc=({key:e})=>e??null,Gs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ze(e)||qe(e)||pe(e)?{i:tt,r:e,k:t,f:!!n}:e:null);function N(e,t=null,n=null,r=0,o=null,s=e===Te?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mc(t),ref:t&&Gs(t),scopeId:qu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:tt};return a?(Pa(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Ze(n)?8:16),_.NODE_ENV!=="production"&&l.key!==l.key&&Z("VNode created with invalid key (NaN). VNode type:",l.type),Fo>0&&!i&&Pt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Pt.push(l),l}const W=_.NODE_ENV!=="production"?Nv:Lc;function Lc(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===ic)&&(_.NODE_ENV!=="production"&&!e&&Z(`Invalid vnode type when creating vnode: ${e}.`),e=Je),Wr(e)){const a=qt(e,t,!0);return n&&Pa(a,n),Fo>0&&!s&&Pt&&(a.shapeFlag&6?Pt[Pt.indexOf(e)]=a:Pt.push(a)),a.patchFlag=-2,a}if(Wc(e)&&(e=e.__vccOpts),t){t=xv(t);let{class:a,style:l}=t;a&&!Ze(a)&&(t.class=Es(a)),Ae(l)&&(So(l)&&!de(l)&&(l=Ge({},l)),t.style=Fi(l))}const i=Ze(e)?1:Vc(e)?128:Ku(e)?64:Ae(e)?4:pe(e)?2:0;return _.NODE_ENV!=="production"&&i&4&&So(e)&&(e=_e(e),Z("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
14
+ Component that was made reactive: `,e)),N(e,t,n,r,o,i,s,!0)}function xv(e){return e?So(e)||yc(e)?Ge({},e):e:null}function qt(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,u=t?$a(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Mc(u),ref:t&&t.ref?n&&s?de(s)?s.concat(Gs(t)):[s,Gs(t)]:Gs(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:_.NODE_ENV!=="production"&&i===-1&&de(a)?a.map(Uc):a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Te?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qt(e.ssContent),ssFallback:e.ssFallback&&qt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Io(c,l.clone(c)),c}function Uc(e){const t=qt(e);return de(e.children)&&(t.children=e.children.map(Uc)),t}function Ce(e=" ",t=0){return W(Mo,null,e,t)}function Sv(e,t){const n=W(Lo,null,e);return n.staticCount=t,n}function fe(e="",t=!1){return t?(w(),Se(Je,null,e)):W(Je,null,e)}function Wt(e){return e==null||typeof e=="boolean"?W(Je):de(e)?W(Te,null,e.slice()):typeof e=="object"?Wn(e):W(Mo,null,String(e))}function Wn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qt(e)}function Pa(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(de(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Pa(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!yc(t)?t._ctx=tt:o===3&&tt&&(tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pe(t)?(t={default:t,_ctx:tt},n=32):(t=String(t),r&64?(n=16,t=[Ce(t)]):n=8);e.children=t,e.shapeFlag|=n}function $a(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=Es([t.class,r.class]));else if(o==="style")t.style=Fi([t.style,r.style]);else if(yo(o)){const s=t[o],i=r[o];i&&s!==i&&!(de(s)&&s.includes(i))&&(t[o]=s?[].concat(s,i):i)}else o!==""&&(t[o]=r[o])}return t}function ln(e,t,n,r=null){Zt(e,t,7,[n,r])}const kv=mc();let Cv=0;function Tv(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||kv,s={uid:Cv++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ru(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_c(r,o),emitsOptions:$c(r,o),emit:null,emitted:null,propsDefaults:Me,inheritAttrs:r.inheritAttrs,ctx:Me,data:Me,props:Me,attrs:Me,slots:Me,refs:Me,setupState:Me,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return _.NODE_ENV!=="production"?s.ctx=jm(s):s.ctx={_:s},s.root=t?t.root:s,s.emit=gv.bind(null,s),e.ce&&e.ce(s),s}let Xe=null;const Js=()=>Xe||tt;let Ys,Da;{const e=Ui(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};Ys=t("__VUE_INSTANCE_SETTERS__",n=>Xe=n),Da=t("__VUE_SSR_SETTERS__",n=>Xs=n)}const Bo=e=>{const t=Xe;return Ys(e),e.scope.on(),()=>{e.scope.off(),Ys(t)}},Fc=()=>{Xe&&Xe.scope.off(),Ys(null)},Pv=mn("slot,component");function Ia(e,{isNativeTag:t}){(Pv(e)||t(e))&&Z("Do not use built-in or reserved HTML elements as component id: "+e)}function Bc(e){return e.vnode.shapeFlag&4}let Xs=!1;function $v(e,t=!1,n=!1){t&&Da(t);const{props:r,children:o}=e.vnode,s=Bc(e);Gm(e,r,s,t),iv(e,o,n);const i=s?Dv(e,t):void 0;return t&&Da(!1),i}function Dv(e,t){var n;const r=e.type;if(_.NODE_ENV!=="production"){if(r.name&&Ia(r.name,e.appContext.config),r.components){const s=Object.keys(r.components);for(let i=0;i<s.length;i++)Ia(s[i],e.appContext.config)}if(r.directives){const s=Object.keys(r.directives);for(let i=0;i<s.length;i++)Wu(s[i])}r.compilerOptions&&Iv()&&Z('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,uc),_.NODE_ENV!=="production"&&Mm(e);const{setup:o}=r;if(o){const s=e.setupContext=o.length>1?Vv(e):null,i=Bo(e);gn();const a=Br(o,e,0,[_.NODE_ENV!=="production"?nn(e.props):e.props,s]);if(yn(),i(),ji(a)){if(qr(e)||oc(e),a.then(Fc,Fc),t)return a.then(l=>{Hc(e,l,t)}).catch(l=>{ko(l,e,0)});if(e.asyncDep=a,_.NODE_ENV!=="production"&&!e.suspense){const l=(n=r.name)!=null?n:"Anonymous";Z(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Hc(e,a,t)}else Zc(e,t)}function Hc(e,t,n){pe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ae(t)?(_.NODE_ENV!=="production"&&Wr(t)&&Z("setup() should not return VNodes directly - return a render function instead."),_.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=Pu(t),_.NODE_ENV!=="production"&&Lm(e)):_.NODE_ENV!=="production"&&t!==void 0&&Z(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Zc(e,n)}let Aa;const Iv=()=>!Aa;function Zc(e,t,n){const r=e.type;if(!e.render){if(!t&&Aa&&!r.render){const o=r.template||_a(e).template;if(o){_.NODE_ENV!=="production"&&En(e,"compile");const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Ge(Ge({isCustomElement:s,delimiters:a},i),l);r.render=Aa(o,u),_.NODE_ENV!=="production"&&On(e,"compile")}}e.render=r.render||Qe}{const o=Bo(e);gn();try{Fm(e)}finally{yn(),o()}}_.NODE_ENV!=="production"&&!r.render&&e.render===Qe&&!t&&(r.template?Z('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):Z("Component is missing template or render function: ",r))}const qc=_.NODE_ENV!=="production"?{get(e,t){return Ks(),et(e,"get",""),e[t]},set(){return Z("setupContext.attrs is readonly."),!1},deleteProperty(){return Z("setupContext.attrs is readonly."),!1}}:{get(e,t){return et(e,"get",""),e[t]}};function Av(e){return new Proxy(e.slots,{get(t,n){return et(e,"get","$slots"),t[n]}})}function Vv(e){const t=n=>{if(_.NODE_ENV!=="production"&&(e.exposed&&Z("expose() should be called only once per setup()."),n!=null)){let r=typeof n;r==="object"&&(de(n)?r="array":qe(n)&&(r="ref")),r!=="object"&&Z(`expose() should be passed a plain object, received ${r}.`)}e.exposed=n||{}};if(_.NODE_ENV!=="production"){let n,r;return Object.freeze({get attrs(){return n||(n=new Proxy(e.attrs,qc))},get slots(){return r||(r=Av(e))},get emit(){return(o,...s)=>e.emit(o,...s)},expose:t})}else return{attrs:new Proxy(e.attrs,qc),slots:e.slots,emit:e.emit,expose:t}}function Va(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Pu(Ln(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mr)return mr[n](e)},has(t,n){return n in t||n in mr}})):e.proxy}const Rv=/(?:^|[-_])(\w)/g,jv=e=>e.replace(Rv,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ra(e,t=!0){return pe(e)?e.displayName||e.name:e.name||t&&e.__name}function Qs(e,t,n=!1){let r=Ra(t);if(!r&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(r=o[1])}if(!r&&e&&e.parent){const o=s=>{for(const i in s)if(s[i]===t)return i};r=o(e.components||e.parent.type.components)||o(e.appContext.components)}return r?jv(r):n?"App":"Anonymous"}function Wc(e){return pe(e)&&"__vccOpts"in e}const Y=(e,t)=>{const n=Kh(e,t,Xs);if(_.NODE_ENV!=="production"){const r=Js();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function Ue(e,t,n){const r=arguments.length;return r===2?Ae(t)&&!de(t)?Wr(t)?W(e,null,[t]):W(e,t):W(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Wr(n)&&(n=[n]),W(e,t,n))}function Mv(){if(_.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},o={__vue_custom_formatter:!0,header(d){return Ae(d)?d.__isVue?["div",e,"VueInstance"]:qe(d)?["div",{},["span",e,c(d)],"<",a("_value"in d?d._value:d),">"]:rn(d)?["div",{},["span",e,Nt(d)?"ShallowReactive":"Reactive"],"<",a(d),`>${_n(d)?" (readonly)":""}`]:_n(d)?["div",{},["span",e,Nt(d)?"ShallowReadonly":"Readonly"],"<",a(d),">"]:null:null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...s(d.$)]}};function s(d){const f=[];d.type.props&&d.props&&f.push(i("props",_e(d.props))),d.setupState!==Me&&f.push(i("setup",d.setupState)),d.data!==Me&&f.push(i("data",_e(d.data)));const m=l(d,"computed");m&&f.push(i("computed",m));const E=l(d,"inject");return E&&f.push(i("injected",E)),f.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),f}function i(d,f){return f=Ge({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},d],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(m=>["div",{},["span",r,m+": "],a(f[m],!1)])]]:["span",{}]}function a(d,f=!0){return typeof d=="number"?["span",t,d]:typeof d=="string"?["span",n,JSON.stringify(d)]:typeof d=="boolean"?["span",r,d]:Ae(d)?["object",{object:f?_e(d):d}]:["span",n,String(d)]}function l(d,f){const m=d.type;if(pe(m))return;const E={};for(const x in d.ctx)u(m,x,f)&&(E[x]=d.ctx[x]);return E}function u(d,f,m){const E=d[m];if(de(E)&&E.includes(f)||Ae(E)&&f in E||d.extends&&u(d.extends,f,m)||d.mixins&&d.mixins.some(x=>u(x,f,m)))return!0}function c(d){return Nt(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(o):window.devtoolsFormatters=[o]}const zc="3.5.3",Nn=_.NODE_ENV!=="production"?Z:Qe;var un={};let ja;const Kc=typeof window<"u"&&window.trustedTypes;if(Kc)try{ja=Kc.createPolicy("vue",{createHTML:e=>e})}catch(e){un.NODE_ENV!=="production"&&Nn(`Error creating trusted types policy: ${e}`)}const Gc=ja?e=>ja.createHTML(e):e=>e,Lv="http://www.w3.org/2000/svg",Uv="http://www.w3.org/1998/Math/MathML",xn=typeof document<"u"?document:null,Jc=xn&&xn.createElement("template"),Fv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?xn.createElementNS(Lv,e):t==="mathml"?xn.createElementNS(Uv,e):n?xn.createElement(e,{is:n}):xn.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>xn.createTextNode(e),createComment:e=>xn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{Jc.innerHTML=Gc(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Jc.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},zn="transition",Ho="animation",Zo=Symbol("_vtc"),Yc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Bv=Ge({},Xu,Yc),Ma=(e=>(e.displayName="Transition",e.props=Bv,e))((e,{slots:t})=>Ue(Om,Hv(e),t)),br=(e,t=[])=>{de(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xc=e=>e?de(e)?e.some(t=>t.length>1):e.length>1:!1;function Hv(e){const t={};for(const k in e)k in Yc||(t[k]=e[k]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,E=Zv(o),x=E&&E[0],O=E&&E[1],{onBeforeEnter:I,onEnter:j,onEnterCancelled:$,onLeave:z,onLeaveCancelled:y,onBeforeAppear:M=I,onAppear:P=j,onAppearCancelled:re=$}=t,S=(k,L,ne)=>{_r(k,L?c:a),_r(k,L?u:i),ne&&ne()},A=(k,L)=>{k._isLeaving=!1,_r(k,d),_r(k,m),_r(k,f),L&&L()},D=k=>(L,ne)=>{const h=k?P:j,V=()=>S(L,k,ne);br(h,[L,V]),Qc(()=>{_r(L,k?l:s),Kn(L,k?c:a),Xc(h)||ed(L,r,x,V)})};return Ge(t,{onBeforeEnter(k){br(I,[k]),Kn(k,s),Kn(k,i)},onBeforeAppear(k){br(M,[k]),Kn(k,l),Kn(k,u)},onEnter:D(!1),onAppear:D(!0),onLeave(k,L){k._isLeaving=!0;const ne=()=>A(k,L);Kn(k,d),Kn(k,f),zv(),Qc(()=>{k._isLeaving&&(_r(k,d),Kn(k,m),Xc(z)||ed(k,r,O,ne))}),br(z,[k,ne])},onEnterCancelled(k){S(k,!1),br($,[k])},onAppearCancelled(k){S(k,!0),br(re,[k])},onLeaveCancelled(k){A(k),br(y,[k])}})}function Zv(e){if(e==null)return null;if(Ae(e))return[La(e.enter),La(e.leave)];{const t=La(e);return[t,t]}}function La(e){const t=ah(e);return un.NODE_ENV!=="production"&&tm(t,"<transition> explicit duration"),t}function Kn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Zo]||(e[Zo]=new Set)).add(t)}function _r(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Zo];n&&(n.delete(t),n.size||(e[Zo]=void 0))}function Qc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let qv=0;function ed(e,t,n,r){const o=e._endId=++qv,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=Wv(e,t);if(!i)return r();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,f),s()},f=m=>{m.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),e.addEventListener(u,f)}function Wv(e,t){const n=window.getComputedStyle(e),r=E=>(n[E]||"").split(", "),o=r(`${zn}Delay`),s=r(`${zn}Duration`),i=td(o,s),a=r(`${Ho}Delay`),l=r(`${Ho}Duration`),u=td(a,l);let c=null,d=0,f=0;t===zn?i>0&&(c=zn,d=i,f=s.length):t===Ho?u>0&&(c=Ho,d=u,f=l.length):(d=Math.max(i,u),c=d>0?i>u?zn:Ho:null,f=c?c===zn?s.length:l.length:0);const m=c===zn&&/\b(transform|all)(,|$)/.test(r(`${zn}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:m}}function td(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>nd(n)+nd(e[r])))}function nd(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function zv(){return document.body.offsetHeight}function Kv(e,t,n){const r=e[Zo];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const rd=Symbol("_vod"),Gv=Symbol("_vsh"),Jv=Symbol(un.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),Yv=/(^|;)\s*display\s*:/;function Xv(e,t,n){const r=e.style,o=Ze(n);let s=!1;if(n&&!o){if(t)if(Ze(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&ei(r,a,"")}else for(const i in t)n[i]==null&&ei(r,i,"");for(const i in n)i==="display"&&(s=!0),ei(r,i,n[i])}else if(o){if(t!==n){const i=r[Jv];i&&(n+=";"+i),r.cssText=n,s=Yv.test(n)}}else t&&e.removeAttribute("style");rd in e&&(e[rd]=s?r.display:"",e[Gv]&&(r.display="none"))}const Qv=/[^\\];\s*$/,od=/\s*!important$/;function ei(e,t,n){if(de(n))n.forEach(r=>ei(e,t,r));else if(n==null&&(n=""),un.NODE_ENV!=="production"&&Qv.test(n)&&Nn(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const r=eg(e,t);od.test(n)?e.setProperty(vn(r),n.replace(od,""),"important"):e[r]=n}}const sd=["Webkit","Moz","ms"],Ua={};function eg(e,t){const n=Ua[t];if(n)return n;let r=Tt(t);if(r!=="filter"&&r in e)return Ua[t]=r;r=ar(r);for(let o=0;o<sd.length;o++){const s=sd[o]+r;if(s in e)return Ua[t]=s}return t}const id="http://www.w3.org/1999/xlink";function ad(e,t,n,r,o,s=yh(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(id,t.slice(6,t.length)):e.setAttributeNS(id,t,n):n==null||s&&!eu(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Rn(n)?String(n):n)}function tg(e,t,n,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Gc(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(i!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=eu(n):n==null&&i==="string"?(n="",s=!0):i==="number"&&(n=0,s=!0)}try{e[t]=n}catch(i){un.NODE_ENV!=="production"&&!s&&Nn(`Failed setting prop "${t}" on <${o.toLowerCase()}>: value ${n} is invalid.`,i)}s&&e.removeAttribute(t)}function ng(e,t,n,r){e.addEventListener(t,n,r)}function rg(e,t,n,r){e.removeEventListener(t,n,r)}const ld=Symbol("_vei");function og(e,t,n,r,o=null){const s=e[ld]||(e[ld]={}),i=s[t];if(r&&i)i.value=un.NODE_ENV!=="production"?cd(r,t):r;else{const[a,l]=sg(t);if(r){const u=s[t]=lg(un.NODE_ENV!=="production"?cd(r,t):r,o);ng(e,a,u,l)}else i&&(rg(e,a,i,l),s[t]=void 0)}}const ud=/(?:Once|Passive|Capture)$/;function sg(e){let t;if(ud.test(e)){t={};let r;for(;r=e.match(ud);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):vn(e.slice(2)),t]}let Fa=0;const ig=Promise.resolve(),ag=()=>Fa||(ig.then(()=>Fa=0),Fa=Date.now());function lg(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Zt(ug(r,n.value),t,5,[r])};return n.value=e,n.attached=ag(),n}function cd(e,t){return pe(e)||de(e)?e:(Nn(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
15
+ Expected function or array of functions, received type ${typeof e}.`),Qe)}function ug(e,t){if(de(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const dd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cg=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?Kv(e,r,i):t==="style"?Xv(e,n,r):yo(t)?ys(t)||og(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dg(e,t,r,i))?(tg(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ad(e,t,r,i,s,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ad(e,t,r,i))};function dg(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&dd(t)&&pe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return dd(t)&&Ze(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Ze(n)))}const fg=["ctrl","shift","alt","meta"],pg={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>fg.some(n=>e[`${n}Key`]&&!t.includes(n))},hg=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...s)=>{for(let i=0;i<t.length;i++){const a=pg[t[i]];if(a&&a(o,t))return}return e(o,...s)})},mg=Ge({patchProp:cg},Fv);let fd;function vg(){return fd||(fd=uv(mg))}const gg=(...e)=>{const t=vg().createApp(...e);un.NODE_ENV!=="production"&&(bg(t),_g(t));const{mount:n}=t;return t.mount=r=>{const o=wg(r);if(!o)return;const s=t._component;!pe(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,yg(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function yg(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function bg(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>mh(t)||vh(t)||gh(t),writable:!1})}function _g(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){Nn("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,r='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return Nn(r),n},set(){Nn(r)}})}}function wg(e){if(Ze(e)){const t=document.querySelector(e);return un.NODE_ENV!=="production"&&!t&&Nn(`Failed to mount app: mount target selector "${e}" returned null.`),t}return un.NODE_ENV!=="production"&&window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&Nn('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}var Eg={};function Og(){Mv()}Eg.NODE_ENV!=="production"&&Og();let ti;const Ng=new Uint8Array(16);function xg(){if(!ti&&(ti=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ti))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ti(Ng)}const it=[];for(let e=0;e<256;++e)it.push((e+256).toString(16).slice(1));function Sg(e,t=0){return it[e[t+0]]+it[e[t+1]]+it[e[t+2]]+it[e[t+3]]+"-"+it[e[t+4]]+it[e[t+5]]+"-"+it[e[t+6]]+it[e[t+7]]+"-"+it[e[t+8]]+it[e[t+9]]+"-"+it[e[t+10]]+it[e[t+11]]+it[e[t+12]]+it[e[t+13]]+it[e[t+14]]+it[e[t+15]]}const pd={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ni(e,t,n){if(pd.randomUUID&&!t&&!e)return pd.randomUUID();e=e||{};const r=e.random||(e.rng||xg)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Sg(r)}var cn=Symbol("storefront");function kg(e,t=100){let n=0;return async(...o)=>{clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}var Cg=g.object({source:g.literal("moonbase-checkout"),event:g.literal("close"),intent:g.string().optional()}),Tg=g.object({source:g.literal("moonbase-checkout"),event:g.literal("completed"),order:Kl.orders.completedOrderSchema}),Pg=g.discriminatedUnion("event",[Cg,Tg]);function $g(){var e;const t=document.getElementById("moonbase-checkout");!t||!(t instanceof HTMLIFrameElement)||(e=t.contentWindow)==null||e.postMessage("close","*")}function hd(e){if(typeof window>"u"){console.warn("Can not mount checkout server side");return}const t=document.createElement("iframe");t.id="moonbase-checkout",t.src=e,t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.right="0px",t.style.border="none",t.style.colorScheme="normal",t.style.backgroundColor="transparent",t.style.zIndex=Number.MAX_SAFE_INTEGER.toString(),t.setAttribute("background","transparent"),t.setAttribute("frameborder","0"),t.setAttribute("allowtransparency","true"),t.setAttribute("allow","payment"),t.height="100%",t.width="100%",document.body.append(t),document.documentElement.style.overflow="hidden",window.onmessage=function(n){var r;try{const o=Pg.parse(n.data);o.event==="close"&&(document.body.contains(t)&&(document.documentElement.style.removeProperty("overflow"),document.body.removeChild(t)),window.dispatchEvent(new CustomEvent("moonbase-checkout-closed",{detail:o}))),o.event==="completed"&&window.dispatchEvent(new CustomEvent("moonbase-checkout-completed",{detail:o}))}catch(o){((r=n.data)==null?void 0:r.source)==="moonbase-checkout"&&console.error("Could not parse event:",n.data,o)}}}var qo=class Ye{constructor(t,n,r){this.configuration=t,this.client=n,this.stateFactory=r,this.currentUser=R(null),this.loadedUser=R(!1),this.debouncedPushOrderContent=kg(l=>this.client.orders.pushContent(l,void 0,this.hasUtm?this.utm.value:void 0),500);var o;if(typeof window>"u"){this.currentOrder=R({id:ni(),status:Lr.Open,currency:"",items:[],couponsApplied:[]}),this.storefront=r(Ye.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${Ye.storefrontKey}_loaded`,!1),this.utm=r(Ye.utmKey,void 0);return}window.addEventListener("storage",l=>this.handleStorageUpdate(l));const s=new URLSearchParams(window.location.search);if(this.utm=r(Ye.utmKey,{referrer:((o=window.document.referrer)==null?void 0:o.replace(/https?:\/\//g,"").split("/")[0])||void 0,source:s.get("utm_source")||void 0,medium:s.get("utm_medium")||void 0,campaign:s.get("utm_campaign")||void 0,term:s.get("utm_term")||void 0,content:s.get("utm_content")||void 0}),this.hasUtm&&t.persistUtm)localStorage.setItem(Ye.utmKey,JSON.stringify(this.utm.value));else if(t.persistUtm){const l=localStorage.getItem(Ye.utmKey);if(l)try{this.utm=r(Ye.utmKey,JSON.parse(l))}catch{}}const i=localStorage.getItem(Ye.sessionKey);i?(this.currentOrder=R(JSON.parse(i)),this.refreshOrder()):(this.currentOrder=R({id:ni(),status:Lr.Open,currency:"",items:[],couponsApplied:[]}),this.hasUtm&&this.pushOrderContent());const a=localStorage.getItem(Ye.storefrontKey);if(a?(this.storefront=r(Ye.storefrontKey,JSON.parse(a)),this.loadedStorefront=r(`${Ye.storefrontKey}_loaded`,!0)):(this.storefront=r(Ye.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${Ye.storefrontKey}_loaded`,!1)),this.client.tokenStore.hasAccessToken&&(this.currentUser.value=this.client.tokenStore.user),this.updateStorefront(),this.updateUser(),window.location){const l=new URLSearchParams(window.location.search),u=l.get("mb_intent"),c=l.get("mb_endpoint");if(u==="checkout"&&l.get("mb_complete")&&c){const d=Object.fromEntries([...l.entries()].filter(([m])=>!m.startsWith("mb_"))),f=new URL(decodeURIComponent(c));for(const m of Object.keys(d))f.searchParams.append(m,d[m]);hd(f.toString()),window.history.replaceState(null,"",window.location.href.split("?")[0])}}window.addEventListener("moonbase-checkout-completed",()=>this.resetOrder())}get loadedStorefrontPromise(){return new Promise(t=>{ze(this.loadedStorefront,n=>{n&&t()},{immediate:!0})})}get hasUtm(){return!!this.utm.value&&Object.values(this.utm.value).some(t=>!!t)}get loadedUserPromise(){return new Promise(t=>{ze(this.loadedUser,n=>{n&&t()},{immediate:!0})})}closeCheckout(){$g()}onCheckoutCompleted(t){window.addEventListener("moonbase-checkout-completed",n=>t(n.detail.order))}onCheckoutClosed(t){window.addEventListener("moonbase-checkout-closed",n=>t(n.detail.intent))}install(t){t.provide(cn,this),console.log("Moonbase.sh storefront installed, learn more at https://moonbase.sh/docs")}async updateUser(){try{this.currentUser.value=await this.client.identity.get()}catch(t){t instanceof Pi||console.error("Could not load user",t)}finally{this.loadedUser.value=!0}return this.currentUser.value}async updateStorefront(){const t=await this.client.storefront.get(this.hasUtm?this.utm.value:void 0);return t&&(typeof window<"u"&&localStorage.setItem(Ye.storefrontKey,JSON.stringify(t)),this.storefront.value=t,this.loadedStorefront.value=!0,this.currentOrder.value.currency||(this.currentOrder.value.currency=t.suggestedCurrency)),t}async pushOrderContent(){typeof window<"u"&&localStorage.setItem(Ye.sessionKey,JSON.stringify(this.currentOrder.value)),this.debouncedPushOrderContent(this.currentOrder.value)}handleStorageUpdate(t){var n;switch(t.key){case Ye.sessionKey:this.currentOrder.value=t.newValue?JSON.parse(t.newValue):{id:ni(),currency:((n=this.storefront.value)==null?void 0:n.suggestedCurrency)||"",status:Lr.Open,items:[],couponsApplied:[]};break;case Ye.storefrontKey:this.storefront.value=JSON.parse(t.newValue);break;case Ye.utmKey:this.utm.value=JSON.parse(t.newValue);break}}async refreshOrder(){try{const t=await this.client.orders.get(this.currentOrder.value.id);t&&(t.status!==Lr.Open?this.resetOrder():(typeof window<"u"&&localStorage.setItem(Ye.sessionKey,JSON.stringify(t)),this.currentOrder.value=t))}catch(t){t!=null&&this.resetOrder()}}resetOrder(){var t;this.currentOrder.value={id:ni(),currency:((t=this.storefront.value)==null?void 0:t.suggestedCurrency)||"",status:Lr.Open,items:[],couponsApplied:[]},typeof window<"u"&&localStorage.removeItem(Ye.sessionKey)}async surrenderOrder(){try{await this.client.orders.removeBillingDetails(this.currentOrder.value.id)}catch(t){if(t instanceof Vn)return;console.warn("Could not surrender order:",t)}}};qo.userKey="moonbase_user",qo.sessionKey="moonbase_session",qo.storefrontKey="moonbase_storefront",qo.utmKey="moonbase_utm";var Dg=qo;function md(e,t){const n=t??ke(cn);if(!n)throw new Error("No storefront configured");return Y(()=>n.storefront.value.bundles.find(r=>r.id===e)||null)}function Ig(e){const t=ke(cn);if(!t)throw new Error("No storefront configured");return Y(()=>t.storefront.value.bundles)}function vd(e,t){const n=t??ke(cn);if(!n)throw new Error("No storefront configured");return Y(()=>n.storefront.value.products.find(r=>r.id===e)||null)}function Ag(e){const t=ke(cn);if(!t)throw new Error("No storefront configured");return Y(()=>t.storefront.value.products)}function ri(e){const t=ke(cn);if(!t)throw new Error("No storefront configured");return{getLicenses:async n=>t.client.inventory.licenses.get(n),getLicenseActivations:async(n,r)=>t.client.inventory.licenses.getActivations(n,r),getProduct:async(n,r)=>t.client.inventory.products.get(n,r),getProducts:async n=>t.client.inventory.products.getOwned(n),getProductLicenses:async(n,r)=>t.client.inventory.products.getLicenses(n,r),getProductActivations:async(n,r)=>t.client.inventory.products.getActivations(n,r),revokeActivation:async n=>t.client.inventory.licenses.revokeActivation(n.licenseId,n.id),activateProduct:async(n,r)=>t.client.inventory.activation.activate(n,r),downloadProduct:async n=>{if(!n.path)throw new Error("Product is not downloadable");window.location.href=await t.client.inventory.products.getDownloadUrl(n.path)}}}function Vg(e,t){const n=ke(cn);if(!n)throw new Error("No storefront configured");const r=n.stateFactory(`activation-request-${Un(e)}`,null),o=n.stateFactory(`activation-request-${Un(e)}-error`,null),s=n.stateFactory(`activation-request-${Un(e)}-loading`,!0),i=n.stateFactory(`activation-request-${Un(e)}-fulfilling`,!1),a=n.stateFactory(`activation-request-${Un(e)}-completing`,!1),l=n.stateFactory(`activation-request-${Un(e)}-completion-timeout`,null),u=async()=>{if(!r.value)return;await n.client.activationRequests.isCompleted(r.value.id)&&r.value?(r.value.status=en.Completed,a.value=!1):l.value=setTimeout(u,1500)};return ze(()=>Un(e),async c=>{try{c&&c.length>0?(r.value=await n.client.activationRequests.get(c),r.value.status===en.Fulfilled&&(a.value=!0,u()),s.value=!1):console.warn("No token given to `useActivationRequest`")}catch(d){o.value=d,s.value=!1}},{immediate:!0}),pa(()=>{l.value&&clearTimeout(l.value)}),ze(n.currentUser,async()=>{var c,d;const f=Un(e);if(!(!f||(d=(c=r.value)==null?void 0:c.licenseEligibility)!=null&&d.eligible)){s.value=!0;try{r.value=await n.client.activationRequests.get(f),r.value.status===en.Fulfilled&&(a.value=!0,u())}catch(m){o.value=m}s.value=!1}}),{activationRequest:r,loading:s,fulfilling:i,completing:a,error:o,isInstalled:Y(()=>{var c;return r&&((c=r.value)==null?void 0:c.status)===en.Completed}),fulfillLicense:async()=>{i.value=!0,r.value=await n.client.activationRequests.fulfillLicense(r.value.id),i.value=!1,a.value=!0,u()},fulfillTrial:async()=>{i.value=!0,r.value=await n.client.activationRequests.fulfillTrial(r.value.id),i.value=!1,a.value=!0,u()},cancel:async()=>{!r.value||r.value.status===en.Cancelled||(r.value=await n.client.activationRequests.cancel(r.value.id))}}}function Rg(e){const t=ke(cn);if(!t)throw new Error("No storefront configured");return{peek:async n=>{try{return await t.client.vouchers.peek(n)}catch(r){throw r instanceof Vn?new Error("Voucher code invalid"):r}},redeem:async n=>{try{return await t.client.vouchers.redeem(n)}catch(r){throw r instanceof Vn?new Error("Voucher code invalid"):r}}}}function oi(e){const t=e??ke(cn);if(!t)throw new Error("No storefront configured");return{items:Y(()=>t.currentOrder.value.items.map(n=>{var r,o;if(n.type==="Product"){const s=t.storefront.value.products.find(l=>l.id===n.productId),a=((s==null?void 0:s.variations)||[]).find(l=>l.id===n.variationId);return{...n,product:s,variation:a,price:a==null?void 0:a.price,appliedDiscount:(r=a==null?void 0:a.discount)!=null?r:n.appliedDiscount}}else{const s=t.storefront.value.bundles.find(l=>l.id===n.bundleId),a=((s==null?void 0:s.variations)||[]).find(l=>l.id===n.variationId);return{...n,bundle:s,variation:a,price:a==null?void 0:a.price,appliedDiscount:(o=a==null?void 0:a.discount)!=null?o:n.appliedDiscount}}})),currency:Y(()=>t.currentOrder.value.currency||t.storefront.value.suggestedCurrency),total:Y(()=>{const n=t.currentOrder.value.currency||t.storefront.value.suggestedCurrency;return{amount:t.currentOrder.value.items.reduce((o,s)=>{var i,a,l,u,c,d;let f;if(s.type==="Product"){const m=t.storefront.value.products.find(O=>O.id===s.productId),x=((m==null?void 0:m.variations)||[]).find(O=>O.id===s.variationId);f=(l=(a=x==null?void 0:x.price[n])!=null?a:(i=m==null?void 0:m.defaultVariation)==null?void 0:i.price[n])!=null?l:0}else{const m=t.storefront.value.bundles.find(O=>O.id===s.bundleId),x=((m==null?void 0:m.variations)||[]).find(O=>O.id===s.variationId);f=(d=(c=x==null?void 0:x.price[n])!=null?c:(u=m==null?void 0:m.defaultVariation)==null?void 0:u.price[n])!=null?d:0}return o+f*s.quantity},0),currency:n}}),addToCart:(n,r)=>{if(n=b(n),r??(r=n.defaultVariation),!r)throw new Error("Added item does not have a default variation, and none have been specified");const o=`${n.type==="bundle"?"b":"p"}/${n.id}/${r.id}`;let s=t.currentOrder.value.items.find(i=>i.id===o);if(s)s.quantity+=1;else if(n.type==="bundle")s={id:o,type:"Bundle",bundleId:n.id,bundle:n,quantity:1,variation:r,variationId:r.id,price:r.price,appliedDiscount:r.discount},t.currentOrder.value.items.push(s);else if(n.type==="product")s={id:o,type:"Product",productId:n.id,product:n,quantity:1,variation:r,variationId:r.id,price:r.price,appliedDiscount:r.discount},t.currentOrder.value.items.push(s);else throw new Mr("Invalid input",`Could not handle item of type '${n.type}'`);return t.pushOrderContent(),s},setQuantity:(n,r)=>{const o=t.currentOrder.value.items.find(s=>s.id===n.id);if(!o)throw new Error("Cart item not found");if(o.quantity=r,o.quantity<=0){const s=t.currentOrder.value.items.findIndex(i=>i.id===o.id);t.currentOrder.value.items.splice(s,1)}return t.pushOrderContent(),n},removeFromCart:n=>{const r=t.currentOrder.value.items.findIndex(o=>o.id===n.id);t.currentOrder.value.items.splice(r,1),t.pushOrderContent()},checkout:async n=>{var r;const o=typeof window<"u"?window.location.pathname:"",s=new URL((r=n.returnUrl)!=null?r:o,document.baseURI).href,i=await t.client.orders.pushContent(t.currentOrder.value,{returnUrl:s},t.hasUtm?t.utm.value:void 0);if(!n.redirect&&i.embeddedCheckoutUrl&&typeof window<"u"){const a=i.embeddedCheckoutUrl;return new Promise(l=>{hd(a.replace("acme-co.beta.moonbase.sh","localhost:3002")),window.addEventListener("moonbase-checkout-closed",u=>{l({next:u.detail.next})})})}else{if(n.redirect&&i.checkoutUrl&&typeof window<"u")return window.location.href=i.checkoutUrl,{next:void 0};throw new Error("No checkout URL found")}}}}function wt(e){const t=e??ke(cn);if(!t)throw new Error("No storefront configured");return{user:t.currentUser,loaded:t.loadedUser,loadedPromise:t.loadedUserPromise,signIn:async(n,r)=>{const o=await t.client.identity.signIn(n,r);return t.currentUser.value=o,t.updateStorefront(),o},signUp:async(n,r,o,s,i,a,l)=>{const u=await t.client.identity.signUp(n,r,o,s,i,a,l);return t.currentUser.value=u,t.updateStorefront(),u},signOut:async()=>{t.client.tokenStore.setUser(null),await Promise.all([t.updateStorefront(),t.surrenderOrder()]),t.currentUser.value=null},update:async(n,r,o,s)=>{const i=await t.client.identity.update(n,r,o,s);return t.currentUser.value&&(t.currentUser.value.name=n,s&&(t.currentUser.value.communicationPreferences=s)),i},setPassword:async(n,r)=>{await t.client.identity.setPassword(n,r)},forgotPassword:async n=>{await t.client.identity.forgotPassword(n)},resetPassword:async(n,r,o)=>{await t.client.identity.resetPassword(n,r,o)},confirmAccount:async(n,r)=>await t.client.identity.confirmAccount(n,r),confirmEmail:async(n,r)=>await t.client.identity.confirmEmail(n,r),confirmEmailChange:async(n,r)=>(await t.client.identity.confirmEmailChange(n,r),await t.updateUser())}}function jg(e,t,n){const r={endpoint:e};return new Dg(r,new eh(r),(o,s)=>R(s))}var gd=!1;function si(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Ba(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Mg(){return yd().__VUE_DEVTOOLS_GLOBAL_HOOK__}function yd(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Lg=typeof Proxy=="function",Ug="devtools-plugin:setup",Fg="plugin:settings:set";let zr,Ha;function Bg(){var e;return zr!==void 0||(typeof window<"u"&&window.performance?(zr=!0,Ha=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(zr=!0,Ha=globalThis.perf_hooks.performance):zr=!1),zr}function Hg(){return Bg()?Ha.now():Date.now()}class Zg{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const i in t.settings){const a=t.settings[i];r[i]=a.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const i=localStorage.getItem(o),a=JSON.parse(i);Object.assign(s,a)}catch{}this.fallbacks={getSettings(){return s},setSettings(i){try{localStorage.setItem(o,JSON.stringify(i))}catch{}s=i},now(){return Hg()}},n&&n.on(Fg,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:a,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function bd(e,t){const n=e,r=yd(),o=Mg(),s=Lg&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))o.emit(Ug,e,t);else{const i=s?new Zg(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}var Pe={};let Wo;const zo=e=>Wo=e,_d=Pe.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function wr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var dn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(dn||(dn={}));const Er=typeof window<"u",wd=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function qg(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function Za(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Nd(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function Ed(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function ii(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const ai=typeof navigator=="object"?navigator:{userAgent:""},Od=/Macintosh/.test(ai.userAgent)&&/AppleWebKit/.test(ai.userAgent)&&!/Safari/.test(ai.userAgent),Nd=Er?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Od?Wg:"msSaveOrOpenBlob"in ai?zg:Kg:()=>{};function Wg(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?Ed(r.href)?Za(e,t,n):(r.target="_blank",ii(r)):ii(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){ii(r)},0))}function zg(e,t="download",n){if(typeof e=="string")if(Ed(e))Za(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){ii(r)})}else navigator.msSaveOrOpenBlob(qg(e,n),t)}function Kg(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Za(e,t,n);const o=e.type==="application/octet-stream",s=/constructor/i.test(String(wd.HTMLElement))||"safari"in wd,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||o&&s||Od)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw r=null,new Error("Wrong reader.result type");l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location.assign(l),r=null},a.readAsDataURL(e)}else{const a=URL.createObjectURL(e);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function st(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function qa(e){return"_a"in e&&"install"in e}function xd(){if(!("clipboard"in navigator))return st("Your browser doesn't support the Clipboard API","error"),!0}function Sd(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(st('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Gg(e){if(!xd())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),st("Global state copied to clipboard.")}catch(t){if(Sd(t))return;st("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Jg(e){if(!xd())try{kd(e,JSON.parse(await navigator.clipboard.readText())),st("Global state pasted from clipboard.")}catch(t){if(Sd(t))return;st("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Yg(e){try{Nd(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){st("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Sn;function Xg(){Sn||(Sn=document.createElement("input"),Sn.type="file",Sn.accept=".json");function e(){return new Promise((t,n)=>{Sn.onchange=async()=>{const r=Sn.files;if(!r)return t(null);const o=r.item(0);return t(o?{text:await o.text(),file:o}:null)},Sn.oncancel=()=>t(null),Sn.onerror=n,Sn.click()})}return e}async function Qg(e){try{const n=await Xg()();if(!n)return;const{text:r,file:o}=n;kd(e,JSON.parse(r)),st(`Global state imported from "${o.name}".`)}catch(t){st("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function kd(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function zt(e){return{_custom:{display:e}}}const Cd="🍍 Pinia (root)",li="_root";function ey(e){return qa(e)?{id:li,label:Cd}:{id:e.$id,label:e.$id}}function ty(e){if(qa(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>r.get(s)._getters).map(s=>{const i=r.get(s);return{editable:!1,key:s,value:i._getters.reduce((a,l)=>(a[l]=i[l],a),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function ny(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:zt(e.type),key:zt(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function ry(e){switch(e){case dn.direct:return"mutation";case dn.patchFunction:return"$patch";case dn.patchObject:return"$patch";default:return"unknown"}}let Kr=!0;const ui=[],Or="pinia:mutations",ht="pinia",{assign:oy}=Object,ci=e=>"🍍 "+e;function sy(e,t){bd({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ui,app:e},n=>{typeof n.now!="function"&&st("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:Or,label:"Pinia 🍍",color:15064968}),n.addInspector({id:ht,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Gg(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Jg(t),n.sendInspectorTree(ht),n.sendInspectorState(ht)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Yg(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Qg(t),n.sendInspectorTree(ht),n.sendInspectorState(ht)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=t._s.get(r);o?typeof o.$reset!="function"?st(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),st(`Store "${r}" reset.`)):st(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,o)=>{const s=r.componentInstance&&r.componentInstance.proxy;if(s&&s._pStores){const i=r.componentInstance.proxy._pStores;Object.values(i).forEach(a=>{r.instanceData.state.push({type:ci(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:_e(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((l,u)=>(l[u]=a.$state[u],l),{})}),a._getters&&a._getters.length&&r.instanceData.state.push({type:ci(a.$id),key:"getters",editable:!1,value:a._getters.reduce((l,u)=>{try{l[u]=a[u]}catch(c){l[u]=c}return l},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===ht){let o=[t];o=o.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?o.filter(s=>"$id"in s?s.$id.toLowerCase().includes(r.filter.toLowerCase()):Cd.toLowerCase().includes(r.filter.toLowerCase())):o).map(ey)}}),globalThis.$pinia=t,n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===ht){const o=r.nodeId===li?t:t._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==li&&(globalThis.$store=_e(o)),r.state=ty(o))}}),n.on.editInspectorState((r,o)=>{if(r.app===e&&r.inspectorId===ht){const s=r.nodeId===li?t:t._s.get(r.nodeId);if(!s)return st(`store "${r.nodeId}" not found`,"error");const{path:i}=r;qa(s)?i.unshift("state"):(i.length!==1||!s._customProperties.has(i[0])||i[0]in s.$state)&&i.unshift("$state"),Kr=!1,r.set(s,i,r.state.value),Kr=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),s=t._s.get(o);if(!s)return st(`store "${o}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return st(`Invalid path for store "${o}":
16
16
  ${i}
17
- Only state can be modified.`);i[0]="$state",Kr=!1,r.set(s,i,r.state.value),Kr=!0}})})}function iy(e,t){ai.includes(li(t.$id))||ai.push(li(t.$id)),bd({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ai,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:a,name:l,args:u})=>{const c=Td++;n.addTimelineEvent({layerId:Or,event:{time:r(),title:"🛫 "+l,subtitle:"start",data:{store:zt(t.$id),action:zt(l),args:u},groupId:c}}),i(d=>{Gn=void 0,n.addTimelineEvent({layerId:Or,event:{time:r(),title:"🛬 "+l,subtitle:"end",data:{store:zt(t.$id),action:zt(l),args:u,result:d},groupId:c}})}),a(d=>{Gn=void 0,n.addTimelineEvent({layerId:Or,event:{time:r(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:zt(t.$id),action:zt(l),args:u,error:d},groupId:c}})})},!0),t._customProperties.forEach(i=>{ze(()=>_(t[i]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(ht),Kr&&n.addTimelineEvent({layerId:Or,event:{time:r(),title:"Change",subtitle:i,data:{newValue:a,oldValue:l},groupId:Gn}})},{deep:!0})}),t.$subscribe(({events:i,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(ht),!Kr)return;const u={time:r(),title:ry(a),data:oy({store:zt(t.$id)},ny(i)),groupId:Gn};a===dn.patchFunction?u.subtitle="⤵️":a===dn.patchObject?u.subtitle="🧩":i&&!Array.isArray(i)&&(u.subtitle=i.type),i&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:Or,event:u})},{detached:!0,flush:"sync"});const o=t._hotUpdate;t._hotUpdate=Ln(i=>{o(i),n.addTimelineEvent({layerId:Or,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:zt(t.$id),info:zt("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(ht),n.sendInspectorState(ht)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(ht),n.sendInspectorState(ht),n.getSettings().logStoreChanges&&st(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(ht),n.sendInspectorState(ht),n.getSettings().logStoreChanges&&st(`"${t.$id}" store installed 🆕`)})}let Td=0,Gn;function Pd(e,t,n){const r=t.reduce((o,s)=>(o[s]=be(e)[s],o),{});for(const o in r)e[o]=function(){const s=Td,i=n?new Proxy(e,{get(...l){return Gn=s,Reflect.get(...l)},set(...l){return Gn=s,Reflect.set(...l)}}):e;Gn=s;const a=r[o].apply(i,arguments);return Gn=void 0,a}}function ay({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){Pd(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;be(t)._hotUpdate=function(o){r.apply(this,arguments),Pd(t,Object.keys(o._hmrPayload.actions),!!t._isOptionsAPI)}}iy(e,t)}}function ly(){const e=ou(!0),t=e.run(()=>R({}));let n=[],r=[];const o=Ln({install(s){zo(o),o._a=s,s.provide(_d,o),s.config.globalProperties.$pinia=o,Pe.NODE_ENV!=="production"&&Pe.NODE_ENV!=="test"&&Er&&sy(s,o),r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!gd?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return Pe.NODE_ENV!=="production"&&Pe.NODE_ENV!=="test"&&typeof Proxy<"u"&&o.use(ay),o}function $d(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const o=e[n];wr(o)&&wr(r)&&!qe(r)&&!rn(r)?e[n]=$d(o,r):e[n]=r}return e}const Dd=()=>{};function Id(e,t,n,r=Dd){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&su()&&bh(o),o}function Gr(e,...t){e.slice().forEach(n=>{n(...t)})}const uy=e=>e(),Ad=Symbol(),Wa=Symbol();function za(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];wr(o)&&wr(r)&&e.hasOwnProperty(n)&&!qe(r)&&!rn(r)?e[n]=za(o,r):e[n]=r}return e}const cy=Pe.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function dy(e){return!wr(e)||!e.hasOwnProperty(cy)}const{assign:jt}=Object;function Vd(e){return!!(qe(e)&&e.effect)}function Rd(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){!a&&(Pe.NODE_ENV==="production"||!r)&&(n.state.value[e]=o?o():{});const c=Pe.NODE_ENV!=="production"&&r?$u(R(o?o():{}).value):$u(n.state.value[e]);return jt(c,s,Object.keys(i||{}).reduce((d,f)=>(Pe.NODE_ENV!=="production"&&f in c&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),d[f]=Ln(Y(()=>{zo(n);const m=n._s.get(e);return i[f].call(m,m)})),d),{}))}return l=Ka(e,u,t,n,r,!0),l}function Ka(e,t,n={},r,o,s){let i;const a=jt({actions:{}},n);if(Pe.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const l={deep:!0};Pe.NODE_ENV!=="production"&&!gd&&(l.onTrigger=A=>{u?m=A:u==!1&&!P._hotUpdating&&(Array.isArray(m)?m.push(A):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,c,d=[],f=[],m;const E=r.state.value[e];!s&&!E&&(Pe.NODE_ENV==="production"||!o)&&(r.state.value[e]={});const N=R({});let O;function I(A){let D;u=c=!1,Pe.NODE_ENV!=="production"&&(m=[]),typeof A=="function"?(A(r.state.value[e]),D={type:dn.patchFunction,storeId:e,events:m}):(za(r.state.value[e],A),D={type:dn.patchObject,payload:A,storeId:e,events:m});const k=O=Symbol();To().then(()=>{O===k&&(u=!0)}),c=!0,Gr(d,D,r.state.value[e])}const j=s?function(){const{state:D}=n,k=D?D():{};this.$patch(L=>{jt(L,k)})}:Pe.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Dd;function $(){i.stop(),d=[],f=[],r._s.delete(e)}const W=(A,D="")=>{if(Ad in A)return A[Wa]=D,A;const k=function(){zo(r);const L=Array.from(arguments),ne=[],h=[];function V(ve){ne.push(ve)}function ee(ve){h.push(ve)}Gr(f,{args:L,name:k[Wa],store:P,after:V,onError:ee});let ie;try{ie=A.apply(this&&this.$id===e?this:P,L)}catch(ve){throw Gr(h,ve),ve}return ie instanceof Promise?ie.then(ve=>(Gr(ne,ve),ve)).catch(ve=>(Gr(h,ve),Promise.reject(ve))):(Gr(ne,ie),ie)};return k[Ad]=!0,k[Wa]=D,k},y=Ln({actions:{},getters:{},state:[],hotState:N}),M={_p:r,$id:e,$onAction:Id.bind(null,f),$patch:I,$reset:j,$subscribe(A,D={}){const k=Id(d,A,D.detached,()=>L()),L=i.run(()=>ze(()=>r.state.value[e],ne=>{(D.flush==="sync"?c:u)&&A({storeId:e,type:dn.direct,events:m},ne)},jt({},l,D)));return k},$dispose:$},P=xo(Pe.NODE_ENV!=="production"||Pe.NODE_ENV!=="production"&&Pe.NODE_ENV!=="test"&&Er?jt({_hmrPayload:y,_customProperties:Ln(new Set)},M):M);r._s.set(e,P);const S=(r._a&&r._a.runWithContext||uy)(()=>r._e.run(()=>(i=ou()).run(()=>t({action:W}))));for(const A in S){const D=S[A];if(qe(D)&&!Vd(D)||rn(D))Pe.NODE_ENV!=="production"&&o?ri(N.value,A,ea(S,A)):s||(E&&dy(D)&&(qe(D)?D.value=E[A]:za(D,E[A])),r.state.value[e][A]=D),Pe.NODE_ENV!=="production"&&y.state.push(A);else if(typeof D=="function"){const k=Pe.NODE_ENV!=="production"&&o?D:W(D,A);S[A]=k,Pe.NODE_ENV!=="production"&&(y.actions[A]=D),a.actions[A]=D}else Pe.NODE_ENV!=="production"&&Vd(D)&&(y.getters[A]=s?n.getters[A]:D,Er&&(S._getters||(S._getters=Ln([]))).push(A))}if(jt(P,S),jt(be(P),S),Object.defineProperty(P,"$state",{get:()=>Pe.NODE_ENV!=="production"&&o?N.value:r.state.value[e],set:A=>{if(Pe.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");I(D=>{jt(D,A)})}}),Pe.NODE_ENV!=="production"&&(P._hotUpdate=Ln(A=>{P._hotUpdating=!0,A._hmrPayload.state.forEach(D=>{if(D in P.$state){const k=A.$state[D],L=P.$state[D];typeof k=="object"&&wr(k)&&wr(L)?$d(k,L):A.$state[D]=L}ri(P,D,ea(A.$state,D))}),Object.keys(P.$state).forEach(D=>{D in A.$state||Ba(P,D)}),u=!1,c=!1,r.state.value[e]=ea(A._hmrPayload,"hotState"),c=!0,To().then(()=>{u=!0});for(const D in A._hmrPayload.actions){const k=A[D];ri(P,D,W(k,D))}for(const D in A._hmrPayload.getters){const k=A._hmrPayload.getters[D],L=s?Y(()=>(zo(r),k.call(P,P))):k;ri(P,D,L)}Object.keys(P._hmrPayload.getters).forEach(D=>{D in A._hmrPayload.getters||Ba(P,D)}),Object.keys(P._hmrPayload.actions).forEach(D=>{D in A._hmrPayload.actions||Ba(P,D)}),P._hmrPayload=A._hmrPayload,P._getters=A._getters,P._hotUpdating=!1})),Pe.NODE_ENV!=="production"&&Pe.NODE_ENV!=="test"&&Er){const A={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(D=>{Object.defineProperty(P,D,jt({value:P[D]},A))})}return r._p.forEach(A=>{if(Pe.NODE_ENV!=="production"&&Pe.NODE_ENV!=="test"&&Er){const D=i.run(()=>A({store:P,app:r._a,pinia:r,options:a}));Object.keys(D||{}).forEach(k=>P._customProperties.add(k)),jt(P,D)}else jt(P,i.run(()=>A({store:P,app:r._a,pinia:r,options:a})))}),Pe.NODE_ENV!=="production"&&P.$state&&typeof P.$state=="object"&&typeof P.$state.constructor=="function"&&!P.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
17
+ Only state can be modified.`);i[0]="$state",Kr=!1,r.set(s,i,r.state.value),Kr=!0}})})}function iy(e,t){ui.includes(ci(t.$id))||ui.push(ci(t.$id)),bd({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ui,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:a,name:l,args:u})=>{const c=Td++;n.addTimelineEvent({layerId:Or,event:{time:r(),title:"🛫 "+l,subtitle:"start",data:{store:zt(t.$id),action:zt(l),args:u},groupId:c}}),i(d=>{Gn=void 0,n.addTimelineEvent({layerId:Or,event:{time:r(),title:"🛬 "+l,subtitle:"end",data:{store:zt(t.$id),action:zt(l),args:u,result:d},groupId:c}})}),a(d=>{Gn=void 0,n.addTimelineEvent({layerId:Or,event:{time:r(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:zt(t.$id),action:zt(l),args:u,error:d},groupId:c}})})},!0),t._customProperties.forEach(i=>{ze(()=>b(t[i]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(ht),Kr&&n.addTimelineEvent({layerId:Or,event:{time:r(),title:"Change",subtitle:i,data:{newValue:a,oldValue:l},groupId:Gn}})},{deep:!0})}),t.$subscribe(({events:i,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(ht),!Kr)return;const u={time:r(),title:ry(a),data:oy({store:zt(t.$id)},ny(i)),groupId:Gn};a===dn.patchFunction?u.subtitle="⤵️":a===dn.patchObject?u.subtitle="🧩":i&&!Array.isArray(i)&&(u.subtitle=i.type),i&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:Or,event:u})},{detached:!0,flush:"sync"});const o=t._hotUpdate;t._hotUpdate=Ln(i=>{o(i),n.addTimelineEvent({layerId:Or,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:zt(t.$id),info:zt("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(ht),n.sendInspectorState(ht)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(ht),n.sendInspectorState(ht),n.getSettings().logStoreChanges&&st(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(ht),n.sendInspectorState(ht),n.getSettings().logStoreChanges&&st(`"${t.$id}" store installed 🆕`)})}let Td=0,Gn;function Pd(e,t,n){const r=t.reduce((o,s)=>(o[s]=_e(e)[s],o),{});for(const o in r)e[o]=function(){const s=Td,i=n?new Proxy(e,{get(...l){return Gn=s,Reflect.get(...l)},set(...l){return Gn=s,Reflect.set(...l)}}):e;Gn=s;const a=r[o].apply(i,arguments);return Gn=void 0,a}}function ay({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){Pd(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;_e(t)._hotUpdate=function(o){r.apply(this,arguments),Pd(t,Object.keys(o._hmrPayload.actions),!!t._isOptionsAPI)}}iy(e,t)}}function ly(){const e=ou(!0),t=e.run(()=>R({}));let n=[],r=[];const o=Ln({install(s){zo(o),o._a=s,s.provide(_d,o),s.config.globalProperties.$pinia=o,Pe.NODE_ENV!=="production"&&Pe.NODE_ENV!=="test"&&Er&&sy(s,o),r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!gd?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return Pe.NODE_ENV!=="production"&&Pe.NODE_ENV!=="test"&&typeof Proxy<"u"&&o.use(ay),o}function $d(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const o=e[n];wr(o)&&wr(r)&&!qe(r)&&!rn(r)?e[n]=$d(o,r):e[n]=r}return e}const Dd=()=>{};function Id(e,t,n,r=Dd){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&su()&&bh(o),o}function Gr(e,...t){e.slice().forEach(n=>{n(...t)})}const uy=e=>e(),Ad=Symbol(),Wa=Symbol();function za(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];wr(o)&&wr(r)&&e.hasOwnProperty(n)&&!qe(r)&&!rn(r)?e[n]=za(o,r):e[n]=r}return e}const cy=Pe.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function dy(e){return!wr(e)||!e.hasOwnProperty(cy)}const{assign:jt}=Object;function Vd(e){return!!(qe(e)&&e.effect)}function Rd(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){!a&&(Pe.NODE_ENV==="production"||!r)&&(n.state.value[e]=o?o():{});const c=Pe.NODE_ENV!=="production"&&r?$u(R(o?o():{}).value):$u(n.state.value[e]);return jt(c,s,Object.keys(i||{}).reduce((d,f)=>(Pe.NODE_ENV!=="production"&&f in c&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),d[f]=Ln(Y(()=>{zo(n);const m=n._s.get(e);return i[f].call(m,m)})),d),{}))}return l=Ka(e,u,t,n,r,!0),l}function Ka(e,t,n={},r,o,s){let i;const a=jt({actions:{}},n);if(Pe.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const l={deep:!0};Pe.NODE_ENV!=="production"&&!gd&&(l.onTrigger=A=>{u?m=A:u==!1&&!P._hotUpdating&&(Array.isArray(m)?m.push(A):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,c,d=[],f=[],m;const E=r.state.value[e];!s&&!E&&(Pe.NODE_ENV==="production"||!o)&&(r.state.value[e]={});const x=R({});let O;function I(A){let D;u=c=!1,Pe.NODE_ENV!=="production"&&(m=[]),typeof A=="function"?(A(r.state.value[e]),D={type:dn.patchFunction,storeId:e,events:m}):(za(r.state.value[e],A),D={type:dn.patchObject,payload:A,storeId:e,events:m});const k=O=Symbol();To().then(()=>{O===k&&(u=!0)}),c=!0,Gr(d,D,r.state.value[e])}const j=s?function(){const{state:D}=n,k=D?D():{};this.$patch(L=>{jt(L,k)})}:Pe.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Dd;function $(){i.stop(),d=[],f=[],r._s.delete(e)}const z=(A,D="")=>{if(Ad in A)return A[Wa]=D,A;const k=function(){zo(r);const L=Array.from(arguments),ne=[],h=[];function V(ve){ne.push(ve)}function ee(ve){h.push(ve)}Gr(f,{args:L,name:k[Wa],store:P,after:V,onError:ee});let ie;try{ie=A.apply(this&&this.$id===e?this:P,L)}catch(ve){throw Gr(h,ve),ve}return ie instanceof Promise?ie.then(ve=>(Gr(ne,ve),ve)).catch(ve=>(Gr(h,ve),Promise.reject(ve))):(Gr(ne,ie),ie)};return k[Ad]=!0,k[Wa]=D,k},y=Ln({actions:{},getters:{},state:[],hotState:x}),M={_p:r,$id:e,$onAction:Id.bind(null,f),$patch:I,$reset:j,$subscribe(A,D={}){const k=Id(d,A,D.detached,()=>L()),L=i.run(()=>ze(()=>r.state.value[e],ne=>{(D.flush==="sync"?c:u)&&A({storeId:e,type:dn.direct,events:m},ne)},jt({},l,D)));return k},$dispose:$},P=xo(Pe.NODE_ENV!=="production"||Pe.NODE_ENV!=="production"&&Pe.NODE_ENV!=="test"&&Er?jt({_hmrPayload:y,_customProperties:Ln(new Set)},M):M);r._s.set(e,P);const S=(r._a&&r._a.runWithContext||uy)(()=>r._e.run(()=>(i=ou()).run(()=>t({action:z}))));for(const A in S){const D=S[A];if(qe(D)&&!Vd(D)||rn(D))Pe.NODE_ENV!=="production"&&o?si(x.value,A,ea(S,A)):s||(E&&dy(D)&&(qe(D)?D.value=E[A]:za(D,E[A])),r.state.value[e][A]=D),Pe.NODE_ENV!=="production"&&y.state.push(A);else if(typeof D=="function"){const k=Pe.NODE_ENV!=="production"&&o?D:z(D,A);S[A]=k,Pe.NODE_ENV!=="production"&&(y.actions[A]=D),a.actions[A]=D}else Pe.NODE_ENV!=="production"&&Vd(D)&&(y.getters[A]=s?n.getters[A]:D,Er&&(S._getters||(S._getters=Ln([]))).push(A))}if(jt(P,S),jt(_e(P),S),Object.defineProperty(P,"$state",{get:()=>Pe.NODE_ENV!=="production"&&o?x.value:r.state.value[e],set:A=>{if(Pe.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");I(D=>{jt(D,A)})}}),Pe.NODE_ENV!=="production"&&(P._hotUpdate=Ln(A=>{P._hotUpdating=!0,A._hmrPayload.state.forEach(D=>{if(D in P.$state){const k=A.$state[D],L=P.$state[D];typeof k=="object"&&wr(k)&&wr(L)?$d(k,L):A.$state[D]=L}si(P,D,ea(A.$state,D))}),Object.keys(P.$state).forEach(D=>{D in A.$state||Ba(P,D)}),u=!1,c=!1,r.state.value[e]=ea(A._hmrPayload,"hotState"),c=!0,To().then(()=>{u=!0});for(const D in A._hmrPayload.actions){const k=A[D];si(P,D,z(k,D))}for(const D in A._hmrPayload.getters){const k=A._hmrPayload.getters[D],L=s?Y(()=>(zo(r),k.call(P,P))):k;si(P,D,L)}Object.keys(P._hmrPayload.getters).forEach(D=>{D in A._hmrPayload.getters||Ba(P,D)}),Object.keys(P._hmrPayload.actions).forEach(D=>{D in A._hmrPayload.actions||Ba(P,D)}),P._hmrPayload=A._hmrPayload,P._getters=A._getters,P._hotUpdating=!1})),Pe.NODE_ENV!=="production"&&Pe.NODE_ENV!=="test"&&Er){const A={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(D=>{Object.defineProperty(P,D,jt({value:P[D]},A))})}return r._p.forEach(A=>{if(Pe.NODE_ENV!=="production"&&Pe.NODE_ENV!=="test"&&Er){const D=i.run(()=>A({store:P,app:r._a,pinia:r,options:a}));Object.keys(D||{}).forEach(k=>P._customProperties.add(k)),jt(P,D)}else jt(P,i.run(()=>A({store:P,app:r._a,pinia:r,options:a})))}),Pe.NODE_ENV!=="production"&&P.$state&&typeof P.$state=="object"&&typeof P.$state.constructor=="function"&&!P.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
18
18
  state: () => new MyClass()
19
- Found in store "${P.$id}".`),E&&s&&n.hydrate&&n.hydrate(P.$state,E),u=!0,c=!0,P}function fy(e,t,n){let r,o;const s=typeof t=="function";r=e,o=s?n:t;function i(a,l){const u=Km();if(a=(Pe.NODE_ENV==="test"&&Wo&&Wo._testing?null:a)||(u?Se(_d,null):null),a&&zo(a),Pe.NODE_ENV!=="production"&&!Wo)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
19
+ Found in store "${P.$id}".`),E&&s&&n.hydrate&&n.hydrate(P.$state,E),u=!0,c=!0,P}function fy(e,t,n){let r,o;const s=typeof t=="function";r=e,o=s?n:t;function i(a,l){const u=Km();if(a=(Pe.NODE_ENV==="test"&&Wo&&Wo._testing?null:a)||(u?ke(_d,null):null),a&&zo(a),Pe.NODE_ENV!=="production"&&!Wo)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
20
20
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
21
- This will fail in production.`);a=Wo,a._s.has(r)||(s?Ka(r,t,o,a):Rd(r,o,a),Pe.NODE_ENV!=="production"&&(i._pinia=a));const c=a._s.get(r);if(Pe.NODE_ENV!=="production"&&l){const d="__hot:"+r,f=s?Ka(d,t,o,a,!0):Rd(d,jt({},o),a,!0);l._hotUpdate(f),delete a.state.value[d],a._s.delete(d)}if(Pe.NODE_ENV!=="production"&&Er){const d=Ks();if(d&&d.proxy&&!l){const f=d.proxy,m="_pStores"in f?f._pStores:f._pStores={};m[r]=c}}return c}return i.$id=r,i}var ue=(e=>(e.SignIn="sign_in",e.SignUp="sign_up",e.ForgotPassword="forgot_password",e.ResetPassword="reset_password",e.ConfirmAccount="confirm_account",e.ConfirmEmail="confirm_email",e.ConfirmEmailChange="confirm_email_change",e.ViewAccount="view_account",e.ViewProducts="view_products",e.RedeemVoucher="redeem_voucher",e.DownloadProduct="download_product",e.ActivateProduct="activate_product",e.ViewCart="view_cart",e.AddToCart="add_to_cart",e.Checkout="checkout",e.CloseCheckout="close_checkout",e))(ue||{});const py={toolbar:{enabled:!0,location:"bottom-right",show:{cart:!0,account:!0,moonbase:!0}},auth:{signUp:{enabled:!0}},checkout:{redirect:!1},target:void 0},Nr=Symbol("options");var Ne=(e=>(e.None="None",e.Authentication="Authentication",e.Customer="Customer",e.Cart="Cart",e.Activation="Activation",e.Download="Download",e))(Ne||{});const je=fy("ui",()=>{const e=R("None"),t=R(null),n=R(null),r=R(null);function o(u,c,d){n.value=d??null,t.value=c,e.value=u}function s(u,c,d){r.value=[u,c,d]}function i(){e.value="None",n.value=null,r.value=null}function a(){const u=r.value;i(),To(()=>{if(u){const[c,d,f]=u;n.value=f??null,t.value=d,e.value=c}})}function l(u){return n.value===null||!n.value[u]?null:n.value[u]}return{active:e,intent:t,parameters:n,next:r,show:o,reset:i,enqueue:s,dequeue:a,getParameter:l}}),Kt=e=>new Promise(t=>setTimeout(t,e)),hy=["data-visible","data-contain","data-location"],my={key:0,href:"https://moonbase.sh",target:"_blank",class:"moonbase:toolbar-action","data-action-width":"narrow"},vy=["disabled"],gy=he({__name:"Toolbar",setup(e){const t=R(!1),n=je(),r=wt(),o=Se(Nr);return Re(()=>{Kt(100).then(()=>t.value=!0)}),(s,i)=>{var a,l,u,c,d,f;return w(),C("div",{class:"moonbase:toolbar","data-visible":t.value&&_(n).active===_(Ne).None?"true":void 0,"data-contain":!!((a=_(o))!=null&&a.target)||void 0,"data-location":_(o).toolbar.location},[(l=_(o))!=null&&l.toolbar.show.moonbase?(w(),C("a",my,i[3]||(i[3]=[Sv('<svg viewBox="0 0 512 512" height="18px" width="18px"><g><path fill="currentColor" d="m493.17795,174.6135c6.257,75.3 -30.577,150.948 -100.579,190.758c-66.292,37.697 -145.001,33.405 -205.402,-4.415c0.409,-1.248 0.638,-2.577 0.638,-3.96c0,-7.026 -5.717,-12.743 -12.743,-12.743c-2.876,0 -5.524,0.969 -7.659,2.582c-18.813,-15.259 -35.159,-34.207 -47.856,-56.534c-54.663,-96.122 -21.054,-218.358 75.069,-273.021a201.218,201.218 0 0 1 33.302,-15.124c-32.428,3.667 -64.663,13.809 -94.827,30.962c-104.526,59.443 -149.511,183.241 -113.473,293.249c-3.376,3.057 -5.513,7.459 -5.513,12.362c0,9.207 7.491,16.698 16.698,16.698c0.136,0 0.267,-0.017 0.401,-0.02a252.205,252.205 0 0 0 8.683,16.691c67.869,119.344 219.635,161.073 338.98,93.204a250.416,250.416 0 0 0 32.893,-22.333c1.045,0.331 2.157,0.513 3.311,0.513c6.047,0 10.968,-4.921 10.968,-10.968c0,-0.605 -0.063,-1.196 -0.157,-1.775c69.545,-64.988 96.008,-165.054 67.266,-256.126m-446.526,25.112a5.071,5.071 0 0 1 -5.066,-5.066a5.072,5.072 0 0 1 5.066,-5.067a5.073,5.073 0 0 1 5.066,5.067a5.072,5.072 0 0 1 -5.066,5.066m-15.819,153.944c-8.238,0 -14.94,-6.702 -14.94,-14.94c0,-8.239 6.702,-14.941 14.94,-14.941c8.239,0 14.941,6.702 14.941,14.941c-0.001,8.238 -6.703,14.94 -14.941,14.94m144.258,-7.659c6.057,0 10.985,4.928 10.985,10.986c0,6.058 -4.928,10.985 -10.985,10.985c-6.058,0 -10.986,-4.928 -10.986,-10.985c0.001,-6.059 4.928,-10.986 10.986,-10.986m70.829,133.004c-5.079,0 -9.21,-4.132 -9.21,-9.21c0,-5.079 4.131,-9.21 9.21,-9.21c5.078,0 9.209,4.131 9.209,9.21c0,5.078 -4.13,9.21 -9.209,9.21m169.18,-37.289c-5.078,0 -9.209,-4.132 -9.209,-9.21s4.131,-9.209 9.209,-9.209s9.21,4.131 9.21,9.209s-4.132,9.21 -9.21,9.21"></path><path fill="currentColor" d="m144.78195,275.9675c46.746,82.201 151.278,110.943 233.48,64.197c59.864,-34.044 91.363,-98.736 86.013,-163.13a170.094,170.094 0 0 0 -5.515,-31.052c-23.045,0.567 -63.864,10.137 -104.194,61.671c-52.045,66.5 -186.285,49.153 -228.855,17.372c3.503,17.443 9.796,34.632 19.071,50.942m233.513,-65.677a8.663,8.663 0 1 1 -8.663,8.663a8.662,8.662 0 0 1 8.663,-8.663m-37.006,62.618c7.02,0 12.712,5.691 12.712,12.712s-5.692,12.712 -12.712,12.712c-7.021,0 -12.712,-5.691 -12.712,-12.712s5.691,-12.712 12.712,-12.712m-102.544,12.712a6.78,6.78 0 1 1 0,13.56a6.78,6.78 0 0 1 0,-13.56"></path><ellipse fill="currentColor" ry="7.3075" rx="7.3075" cy="152.05851" cx="251.33138"></ellipse><ellipse fill="currentColor" ry="5.35076" rx="5.35076" cy="210.31151" cx="204.89499"></ellipse><ellipse fill="currentColor" ry="12.09273" rx="12.09273" cy="200.15625" cx="302.28597"></ellipse></g></svg>',1)]))):fe("",!0),(u=_(o))!=null&&u.toolbar.show.cart?(w(),C("button",{key:1,class:"moonbase:toolbar-action",type:"button",onClick:i[0]||(i[0]=m=>_(n).show(_(Ne).Cart,_(ue).AddToCart))}," Cart ")):fe("",!0),(c=_(o))!=null&&c.toolbar.show.account&&!_(r).user.value?(w(),C("button",{key:2,class:"moonbase:toolbar-action",type:"button",disabled:!_(r).loaded,onClick:i[1]||(i[1]=m=>_(n).show(_(Ne).Authentication,_(ue).SignIn))}," Log in ",8,vy)):(d=_(o))!=null&&d.toolbar.show.account?(w(),C("button",{key:3,class:"moonbase:toolbar-action",type:"button",onClick:i[2]||(i[2]=m=>_(n).show(_(Ne).Customer,_(ue).ViewAccount))},J((f=_(r).user.value)==null?void 0:f.name),1)):fe("",!0)],8,hy)}}}),yy=["hidden"],by=["for"],_y=["id","type","name","placeholder","value","disabled","aria-invalid","aria-describedby"],wy=["id"],Ey=["id"],Et=he({inheritAttrs:!1,__name:"MoonInput",props:{name:{},label:{},placeholder:{},type:{},error:{},hint:{},disabled:{type:Boolean},modelValue:{},hidden:{type:Boolean}},emits:["update:modelValue"],setup(e){return(t,n)=>(w(),C("div",{class:"moonbase:input",hidden:t.hidden||void 0},[x("label",{for:`mb-${t.name}`},J(t.label),9,by),x("input",$a({id:`mb-${t.name}`,type:t.type??"text",name:`mb-${t.name}`,placeholder:t.placeholder,value:t.modelValue,disabled:t.disabled,"aria-invalid":!!t.error,"aria-describedby":t.error?`mb-${t.name}-error`:t.hint?`mb-${t.name}-hint`:void 0},t.$attrs,{onInput:n[0]||(n[0]=r=>{var o;return t.$emit("update:modelValue",(o=r.target)==null?void 0:o.value)})}),null,16,_y),t.error?(w(),C("p",{key:0,id:`mb-${t.name}-error`,class:"moonbase:input-hint","data-type":"error"},J(t.error),9,wy)):t.hint?(w(),C("p",{key:1,id:`mb-${t.name}-hint`,class:"moonbase:input-hint"},J(t.hint),9,Ey)):fe("",!0)],8,yy))}}),Jr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Oy={},Ny={fill:"none",viewBox:"0 0 24 24"};function xy(e,t){return w(),C("svg",Ny,t[0]||(t[0]=[x("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),x("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)]))}const Mt=Jr(Oy,[["render",xy],["__scopeId","data-v-687bcaf0"]]),Sy=["disabled"],jd=Symbol("form-state"),Jn=he({__name:"MoonForm",props:{handler:{type:Function},noReset:{type:Boolean}},setup(e){const t=e,n=R(!1),r=R(!1),o=R(!1);ft(jd,{working:n,isSuccess:r,isError:o});async function s(){n.value=!0;try{await t.handler(),n.value=!1,r.value=!0,await Kt(2500),t.noReset||(r.value=!1)}catch{n.value=!1,o.value=!0,await Kt(2500),o.value=!1}}return(i,a)=>(w(),C("form",{disabled:n.value||r.value,onSubmit:hg(s,["prevent"])},[ma(i.$slots,"default",{working:n.value,isSuccess:r.value,isError:o.value,disabled:n.value||r.value})],40,Sy))}}),ky=["disabled","data-success","data-error","data-working"],Cy=["data-visible"],Yn=Jr(he({__name:"MoonSubmitButton",props:{label:{},success:{},error:{}},setup(e){const t=e,{working:n,isSuccess:r,isError:o}=Se(jd),s=Y(()=>r.value?t.success:o.value?t.error:t.label);return(i,a)=>(w(),C("button",{class:"moonbase:submit-button",type:"submit",disabled:_(r)||_(o)||_(n),"data-success":_(r)||void 0,"data-error":_(o)||void 0,"data-working":_(n)||void 0},[x("div",{"data-visible":_(n)||void 0,"aria-hidden":"true"},[_(n)?(w(),ke(Mt,{key:0})):fe("",!0)],8,Cy),Te(" "+J(s.value),1)],8,ky))}}),[["__scopeId","data-v-91242842"]]),Ty={class:"moonbase:checkbox"},Py={class:"moonbase:checkbox-container"},$y=["id","name","value","disabled","aria-invalid","aria-describedby"],Dy={class:"moonbase:checkbox-description"},Iy=["for"],Ay=["id"],Vy=["id"],Md=he({inheritAttrs:!1,__name:"MoonCheckbox",props:{name:{},label:{},error:{},hint:{},disabled:{type:Boolean},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e){return(t,n)=>(w(),C("div",Ty,[x("div",Py,[x("input",$a({id:`mb-${t.name}`,type:"checkbox",name:`mb-${t.name}`,value:t.modelValue,disabled:t.disabled,"aria-invalid":!!t.error,"aria-describedby":t.error?`mb-${t.name}-error`:t.hint?`mb-${t.name}-hint`:void 0},t.$attrs,{onChecked:n[0]||(n[0]=r=>{var o;return t.$emit("update:modelValue",(o=r.target)==null?void 0:o.checked)})}),null,16,$y)]),x("div",Dy,[x("label",{for:`mb-${t.name}`},J(t.label),9,Iy),t.error?(w(),C("p",{key:0,id:`mb-${t.name}-error`,"data-type":"error"},J(t.error),9,Ay)):t.hint?(w(),C("p",{key:1,id:`mb-${t.name}-hint`},J(t.hint),9,Vy)):fe("",!0)])]))}}),Ry=["data-visible"],jy=he({__name:"SignUp",emits:["signedUp"],setup(e,{emit:t}){const n=t,r=je(),o=wt(),s=R(""),i=R(r.getParameter("email")??""),a=R(""),l=R(!1),u=R(null);async function c(){u.value=null;try{const d=await o.signUp(s.value,i.value,a.value,null,!0,!0,l.value);Kt(1500).then(()=>n("signedUp",d))}catch(d){throw u.value=d.message,d}}return(d,f)=>(w(),ke(Jn,{handler:c,class:"moonbase:sign-up"},{default:we(()=>[z(Et,{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=m=>s.value=m),label:"Full name",name:"name",type:"text",placeholder:"Full name",autocomplete:"name",required:""},null,8,["modelValue"]),z(Et,{modelValue:i.value,"onUpdate:modelValue":f[1]||(f[1]=m=>i.value=m),label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["modelValue"]),z(Et,{modelValue:a.value,"onUpdate:modelValue":f[2]||(f[2]=m=>a.value=m),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"current-password",required:""},null,8,["modelValue"]),z(Md,{modelValue:l.value,"onUpdate:modelValue":f[3]||(f[3]=m=>l.value=m),label:"Receive updates and offers by email",name:"newsletter-opt-in"},null,8,["modelValue"]),z(Yn,{success:"Signed up",label:"Sign up",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!u.value||void 0},J(u.value),9,Ry),x("button",{type:"button",onClick:f[4]||(f[4]=m=>_(r).show(_(Ne).Authentication,_(ue).SignIn,{email:i.value}))}," I already have an account ")]),_:1}))}}),My={key:0,class:"moonbase:loader"},Ly={key:1,class:"moonbase:error","data-visible":""},Uy=["data-visible"],Fy=he({__name:"ConfirmAccount",emits:["confirmedAccount"],setup(e,{emit:t}){const n=t,r=je(),o=wt(),s=R(!0),i=R(null),a=R(""),l=R(null);Re(async()=>{try{const c=r.getParameter("email"),d=r.getParameter("code");if(!c||!d)throw new Error("Link is broken");i.value=await o.confirmAccount(c,d)}catch(c){c instanceof Vn?l.value="Could not find a user to confirm":l.value=c.message}s.value=!1});async function u(){var c,d;if(l.value=null,!!((c=i.value)!=null&&c.resetPasswordToken))try{const f=r.getParameter("email");await o.resetPassword(f,a.value,(d=i.value)==null?void 0:d.resetPasswordToken);const m=await o.signIn(f,a.value);Kt(1500).then(()=>n("confirmedAccount",m))}catch(f){throw l.value=f.message,f}}return(c,d)=>(w(),ke(Jn,{handler:u,class:"moonbase:confirm-account"},{default:we(()=>[s.value?(w(),C("div",My,[z(Mt)])):i.value?(w(),C(Ce,{key:2},[x("h3",null," Hi "+J(i.value.name)+", ",1),d[1]||(d[1]=x("p",null," Please create a new password for your account: ",-1)),z(Et,{"model-value":_(r).getParameter("email"),hidden:"",label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["model-value"]),z(Et,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=f=>a.value=f),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"new-password",required:""},null,8,["modelValue"]),z(Yn,{success:"Password saved",label:"Save password",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!l.value||void 0},J(l.value),9,Uy)],64)):(w(),C("div",Ly,J(l.value),1))]),_:1}))}}),By=["data-visible"],Hy=he({__name:"ForgotPassword",setup(e){const t=je(),n=wt(),r=R(t.getParameter("email")??""),o=R(null),s=R(!1);async function i(){o.value=null;try{await n.forgotPassword(r.value),Kt(1500).then(()=>{s.value=!0})}catch(a){throw a instanceof Vn?o.value="User not found":o.value=a.message,a}}return(a,l)=>(w(),ke(Jn,{handler:i,class:"moonbase:sign-in","no-reset":""},{default:we(({disabled:u})=>[l[1]||(l[1]=x("h3",null," Forgot your password? ",-1)),l[2]||(l[2]=x("p",null," Please enter your email for a reset link: ",-1)),z(Et,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=c=>r.value=c),label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:"",disabled:u},null,8,["modelValue","disabled"]),z(Yn,{success:"Email sent",label:"Reset password",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!o.value||void 0},J(o.value),9,By)]),_:1}))}}),Zy=["data-visible"],qy=he({__name:"ResetPassword",emits:["passwordReset"],setup(e,{emit:t}){const n=t,r=je(),o=wt(),s=Y(()=>r.getParameter("email")),i=R(""),a=R(null);Re(()=>{(!r.getParameter("email")||!r.getParameter("code"))&&(a.value="Link broken, please try again")});async function l(){a.value=null;const u=r.getParameter("code");if(u)try{await o.resetPassword(s.value,i.value,u);const c=await o.signIn(s.value,i.value);Kt(1500).then(()=>n("passwordReset",c))}catch(c){throw a.value=c.message,c}}return(u,c)=>(w(),ke(Jn,{handler:l,class:"moonbase:reset-password"},{default:we(()=>[x("h3",null," Hi "+J(s.value)+", ",1),c[1]||(c[1]=x("p",null," Please create a new password for your account: ",-1)),z(Et,{"model-value":_(r).getParameter("email"),hidden:"",label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["model-value"]),z(Et,{modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"new-password",required:""},null,8,["modelValue"]),z(Yn,{success:"Password saved",label:"Save password",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!a.value||void 0},J(a.value),9,Zy)]),_:1}))}}),Wy={class:"moonbase:confirm-email-change"},zy={key:0,class:"moonbase:loader"},Ky={key:1,class:"moonbase:error","data-visible":""},Gy=he({__name:"ConfirmEmailChange",emits:["confirmed"],setup(e,{emit:t}){const n=t,r=je(),{user:o,confirmEmailChange:s}=wt(),i=R(!0),a=R(null);return Re(async()=>{try{const l=r.getParameter("email"),u=r.getParameter("code");if(!l||!u)throw new Error("Link is broken");await s(l,u),Kt(1500).then(()=>n("confirmed"))}catch(l){a.value=l.message}i.value=!1}),(l,u)=>{var c;return w(),C("div",Wy,[i.value?(w(),C("div",zy,[z(Mt)])):a.value?(w(),C("div",Ky,J(a.value),1)):(w(),C(Ce,{key:2},[x("h3",null," Hi "+J((c=_(o))==null?void 0:c.name)+", ",1),u[0]||(u[0]=x("p",null," Thanks for confirming your new email. You can now sign in using this new address. ",-1))],64))])}}});class Jy{constructor(){Tr(this,"current",this.detect());Tr(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let Ko=new Jy;function Ga(e,t,n,r){Ko.isServer||pt(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}function Ld(e,t,n,r){Ko.isServer||pt(o=>{e.value&&(window.addEventListener(t,n,r),o(()=>window.removeEventListener(t,n,r)))})}var $t=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))($t||{});function Ja(){const e=R(0),t=R(!0);return Ld(t,"keydown",n=>{n.key==="Tab"&&(e.value=n.shiftKey?1:0)}),e}function nt(e,t,...n){if(e in t){const o=t[e];return typeof o=="function"?o(...n):o}throw new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`)}var Xn=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Xn||{}),Qn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qn||{});function rt({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){const s=Fd(r,n),i=Object.assign(o,{props:s});if(e||t&2&&s.static)return ui(i);if(t&1){const a=s.unmount??!0?0:1;return nt(a,{0(){return null},1(){return ui({...o,props:{...s,hidden:!0,style:{display:"none"}}})}})}return ui(i)}function ui({props:e,attrs:t,slots:n,slot:r,name:o}){var u;const{as:s,...i}=Ya(e,["unmount","static"]);let a=(u=n.default)==null?void 0:u.call(n,r);const l={};if(r){let c=!1;const d=[];for(const[f,m]of Object.entries(r))typeof m=="boolean"&&(c=!0),m===!0&&d.push(f);c&&(l["data-moonbase-state"]=d.join(" "))}if(s==="template"){if(a=Ud(a??[]),Object.keys(i).length>0||Object.keys(t).length>0){const[c,...d]=a??[];if(!Yy(c)||d.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(i).concat(Object.keys(t)).map(E=>E.trim()).filter((E,N,O)=>O.indexOf(E)===N).sort((E,N)=>E.localeCompare(N)).map(E=>` - ${E}`).join(`
21
+ This will fail in production.`);a=Wo,a._s.has(r)||(s?Ka(r,t,o,a):Rd(r,o,a),Pe.NODE_ENV!=="production"&&(i._pinia=a));const c=a._s.get(r);if(Pe.NODE_ENV!=="production"&&l){const d="__hot:"+r,f=s?Ka(d,t,o,a,!0):Rd(d,jt({},o),a,!0);l._hotUpdate(f),delete a.state.value[d],a._s.delete(d)}if(Pe.NODE_ENV!=="production"&&Er){const d=Js();if(d&&d.proxy&&!l){const f=d.proxy,m="_pStores"in f?f._pStores:f._pStores={};m[r]=c}}return c}return i.$id=r,i}var ae=(e=>(e.SignIn="sign_in",e.SignUp="sign_up",e.ForgotPassword="forgot_password",e.ResetPassword="reset_password",e.ConfirmAccount="confirm_account",e.ConfirmEmail="confirm_email",e.ConfirmEmailChange="confirm_email_change",e.ViewAccount="view_account",e.ViewProducts="view_products",e.RedeemVoucher="redeem_voucher",e.DownloadProduct="download_product",e.ActivateProduct="activate_product",e.ViewCart="view_cart",e.AddToCart="add_to_cart",e.Checkout="checkout",e.CloseCheckout="close_checkout",e.ViewAbout="view_about",e))(ae||{});const py={toolbar:{enabled:!0,location:"bottom-right",show:{cart:!0,account:!0,moonbase:!0}},auth:{signUp:{enabled:!0}},checkout:{redirect:!1},target:void 0},Nr=Symbol("options");var Oe=(e=>(e.None="None",e.Authentication="Authentication",e.Customer="Customer",e.Cart="Cart",e.Activation="Activation",e.Download="Download",e.About="About",e))(Oe||{});const Ie=fy("ui",()=>{const e=R("None"),t=R(null),n=R(null),r=R(null);function o(u,c,d){n.value=d??null,t.value=c,e.value=u}function s(u,c,d){r.value=[u,c,d]}function i(){e.value="None",n.value=null,r.value=null}function a(){const u=r.value;i(),To(()=>{if(u){const[c,d,f]=u;n.value=f??null,t.value=d,e.value=c}})}function l(u){return n.value===null||!n.value[u]?null:n.value[u]}return{active:e,intent:t,parameters:n,next:r,show:o,reset:i,enqueue:s,dequeue:a,getParameter:l}}),Kt=e=>new Promise(t=>setTimeout(t,e)),hy=["data-visible","data-contain","data-location"],my={key:0,href:"https://moonbase.sh",target:"_blank",class:"moonbase:toolbar-action","data-action-width":"narrow"},vy=["disabled"],gy=he({__name:"Toolbar",setup(e){const t=R(!1),n=Ie(),r=wt(),o=ke(Nr);return je(()=>{Kt(100).then(()=>t.value=!0)}),(s,i)=>{var a,l,u,c,d,f;return w(),C("div",{class:"moonbase:toolbar","data-visible":t.value&&b(n).active===b(Oe).None?"true":void 0,"data-contain":!!((a=b(o))!=null&&a.target)||void 0,"data-location":b(o).toolbar.location},[(l=b(o))!=null&&l.toolbar.show.moonbase?(w(),C("a",my,i[3]||(i[3]=[Sv('<svg viewBox="0 0 512 512" height="18px" width="18px"><g><path fill="currentColor" d="m493.17795,174.6135c6.257,75.3 -30.577,150.948 -100.579,190.758c-66.292,37.697 -145.001,33.405 -205.402,-4.415c0.409,-1.248 0.638,-2.577 0.638,-3.96c0,-7.026 -5.717,-12.743 -12.743,-12.743c-2.876,0 -5.524,0.969 -7.659,2.582c-18.813,-15.259 -35.159,-34.207 -47.856,-56.534c-54.663,-96.122 -21.054,-218.358 75.069,-273.021a201.218,201.218 0 0 1 33.302,-15.124c-32.428,3.667 -64.663,13.809 -94.827,30.962c-104.526,59.443 -149.511,183.241 -113.473,293.249c-3.376,3.057 -5.513,7.459 -5.513,12.362c0,9.207 7.491,16.698 16.698,16.698c0.136,0 0.267,-0.017 0.401,-0.02a252.205,252.205 0 0 0 8.683,16.691c67.869,119.344 219.635,161.073 338.98,93.204a250.416,250.416 0 0 0 32.893,-22.333c1.045,0.331 2.157,0.513 3.311,0.513c6.047,0 10.968,-4.921 10.968,-10.968c0,-0.605 -0.063,-1.196 -0.157,-1.775c69.545,-64.988 96.008,-165.054 67.266,-256.126m-446.526,25.112a5.071,5.071 0 0 1 -5.066,-5.066a5.072,5.072 0 0 1 5.066,-5.067a5.073,5.073 0 0 1 5.066,5.067a5.072,5.072 0 0 1 -5.066,5.066m-15.819,153.944c-8.238,0 -14.94,-6.702 -14.94,-14.94c0,-8.239 6.702,-14.941 14.94,-14.941c8.239,0 14.941,6.702 14.941,14.941c-0.001,8.238 -6.703,14.94 -14.941,14.94m144.258,-7.659c6.057,0 10.985,4.928 10.985,10.986c0,6.058 -4.928,10.985 -10.985,10.985c-6.058,0 -10.986,-4.928 -10.986,-10.985c0.001,-6.059 4.928,-10.986 10.986,-10.986m70.829,133.004c-5.079,0 -9.21,-4.132 -9.21,-9.21c0,-5.079 4.131,-9.21 9.21,-9.21c5.078,0 9.209,4.131 9.209,9.21c0,5.078 -4.13,9.21 -9.209,9.21m169.18,-37.289c-5.078,0 -9.209,-4.132 -9.209,-9.21s4.131,-9.209 9.209,-9.209s9.21,4.131 9.21,9.209s-4.132,9.21 -9.21,9.21"></path><path fill="currentColor" d="m144.78195,275.9675c46.746,82.201 151.278,110.943 233.48,64.197c59.864,-34.044 91.363,-98.736 86.013,-163.13a170.094,170.094 0 0 0 -5.515,-31.052c-23.045,0.567 -63.864,10.137 -104.194,61.671c-52.045,66.5 -186.285,49.153 -228.855,17.372c3.503,17.443 9.796,34.632 19.071,50.942m233.513,-65.677a8.663,8.663 0 1 1 -8.663,8.663a8.662,8.662 0 0 1 8.663,-8.663m-37.006,62.618c7.02,0 12.712,5.691 12.712,12.712s-5.692,12.712 -12.712,12.712c-7.021,0 -12.712,-5.691 -12.712,-12.712s5.691,-12.712 12.712,-12.712m-102.544,12.712a6.78,6.78 0 1 1 0,13.56a6.78,6.78 0 0 1 0,-13.56"></path><ellipse fill="currentColor" ry="7.3075" rx="7.3075" cy="152.05851" cx="251.33138"></ellipse><ellipse fill="currentColor" ry="5.35076" rx="5.35076" cy="210.31151" cx="204.89499"></ellipse><ellipse fill="currentColor" ry="12.09273" rx="12.09273" cy="200.15625" cx="302.28597"></ellipse></g></svg>',1)]))):fe("",!0),(u=b(o))!=null&&u.toolbar.show.cart?(w(),C("button",{key:1,class:"moonbase:toolbar-action",type:"button",onClick:i[0]||(i[0]=m=>b(n).show(b(Oe).Cart,b(ae).AddToCart))}," Cart ")):fe("",!0),(c=b(o))!=null&&c.toolbar.show.account&&!b(r).user.value?(w(),C("button",{key:2,class:"moonbase:toolbar-action",type:"button",disabled:!b(r).loaded,onClick:i[1]||(i[1]=m=>b(n).show(b(Oe).Authentication,b(ae).SignIn))}," Log in ",8,vy)):(d=b(o))!=null&&d.toolbar.show.account?(w(),C("button",{key:3,class:"moonbase:toolbar-action",type:"button",onClick:i[2]||(i[2]=m=>b(n).show(b(Oe).Customer,b(ae).ViewAccount))},J((f=b(r).user.value)==null?void 0:f.name),1)):fe("",!0)],8,hy)}}}),yy=["hidden"],by=["for"],_y=["id","type","name","placeholder","value","disabled","aria-invalid","aria-describedby"],wy=["id"],Ey=["id"],Et=he({inheritAttrs:!1,__name:"MoonInput",props:{name:{},label:{},placeholder:{},type:{},error:{},hint:{},disabled:{type:Boolean},modelValue:{},hidden:{type:Boolean}},emits:["update:modelValue"],setup(e){return(t,n)=>(w(),C("div",{class:"moonbase:input",hidden:t.hidden||void 0},[N("label",{for:`mb-${t.name}`},J(t.label),9,by),N("input",$a({id:`mb-${t.name}`,type:t.type??"text",name:`mb-${t.name}`,placeholder:t.placeholder,value:t.modelValue,disabled:t.disabled,"aria-invalid":!!t.error,"aria-describedby":t.error?`mb-${t.name}-error`:t.hint?`mb-${t.name}-hint`:void 0},t.$attrs,{onInput:n[0]||(n[0]=r=>{var o;return t.$emit("update:modelValue",(o=r.target)==null?void 0:o.value)})}),null,16,_y),t.error?(w(),C("p",{key:0,id:`mb-${t.name}-error`,class:"moonbase:input-hint","data-type":"error"},J(t.error),9,wy)):t.hint?(w(),C("p",{key:1,id:`mb-${t.name}-hint`,class:"moonbase:input-hint"},J(t.hint),9,Ey)):fe("",!0)],8,yy))}}),Jr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Oy={},Ny={fill:"none",viewBox:"0 0 24 24"};function xy(e,t){return w(),C("svg",Ny,t[0]||(t[0]=[N("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),N("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)]))}const Mt=Jr(Oy,[["render",xy],["__scopeId","data-v-687bcaf0"]]),Sy=["disabled"],jd=Symbol("form-state"),Jn=he({__name:"MoonForm",props:{handler:{type:Function},noReset:{type:Boolean}},setup(e){const t=e,n=R(!1),r=R(!1),o=R(!1);ft(jd,{working:n,isSuccess:r,isError:o});async function s(){n.value=!0;try{await t.handler(),n.value=!1,r.value=!0,await Kt(2500),t.noReset||(r.value=!1)}catch{n.value=!1,o.value=!0,await Kt(2500),o.value=!1}}return(i,a)=>(w(),C("form",{disabled:n.value||r.value,onSubmit:hg(s,["prevent"])},[ma(i.$slots,"default",{working:n.value,isSuccess:r.value,isError:o.value,disabled:n.value||r.value})],40,Sy))}}),ky=["disabled","data-success","data-error","data-working"],Cy=["data-visible"],Yn=Jr(he({__name:"MoonSubmitButton",props:{label:{},success:{},error:{}},setup(e){const t=e,{working:n,isSuccess:r,isError:o}=ke(jd),s=Y(()=>r.value?t.success:o.value?t.error:t.label);return(i,a)=>(w(),C("button",{class:"moonbase:submit-button",type:"submit",disabled:b(r)||b(o)||b(n),"data-success":b(r)||void 0,"data-error":b(o)||void 0,"data-working":b(n)||void 0},[N("div",{"data-visible":b(n)||void 0,"aria-hidden":"true"},[b(n)?(w(),Se(Mt,{key:0})):fe("",!0)],8,Cy),Ce(" "+J(s.value),1)],8,ky))}}),[["__scopeId","data-v-35651614"]]),Ty={class:"moonbase:checkbox"},Py={class:"moonbase:checkbox-container"},$y=["id","name","value","disabled","aria-invalid","aria-describedby"],Dy={class:"moonbase:checkbox-description"},Iy=["for"],Ay=["id"],Vy=["id"],Md=he({inheritAttrs:!1,__name:"MoonCheckbox",props:{name:{},label:{},error:{},hint:{},disabled:{type:Boolean},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e){return(t,n)=>(w(),C("div",Ty,[N("div",Py,[N("input",$a({id:`mb-${t.name}`,type:"checkbox",name:`mb-${t.name}`,value:t.modelValue,disabled:t.disabled,"aria-invalid":!!t.error,"aria-describedby":t.error?`mb-${t.name}-error`:t.hint?`mb-${t.name}-hint`:void 0},t.$attrs,{onChecked:n[0]||(n[0]=r=>{var o;return t.$emit("update:modelValue",(o=r.target)==null?void 0:o.checked)})}),null,16,$y)]),N("div",Dy,[N("label",{for:`mb-${t.name}`},J(t.label),9,Iy),t.error?(w(),C("p",{key:0,id:`mb-${t.name}-error`,"data-type":"error"},J(t.error),9,Ay)):t.hint?(w(),C("p",{key:1,id:`mb-${t.name}-hint`},J(t.hint),9,Vy)):fe("",!0)])]))}}),Ry=["data-visible"],jy=he({__name:"SignUp",emits:["signedUp"],setup(e,{emit:t}){const n=t,r=Ie(),o=wt(),s=R(""),i=R(r.getParameter("email")??""),a=R(""),l=R(!1),u=R(null);async function c(){u.value=null;try{const d=await o.signUp(s.value,i.value,a.value,null,!0,!0,l.value);Kt(1500).then(()=>n("signedUp",d))}catch(d){throw u.value=d.message,d}}return(d,f)=>(w(),Se(Jn,{handler:c,class:"moonbase:sign-up"},{default:be(()=>[W(Et,{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=m=>s.value=m),label:"Full name",name:"name",type:"text",placeholder:"Full name",autocomplete:"name",required:""},null,8,["modelValue"]),W(Et,{modelValue:i.value,"onUpdate:modelValue":f[1]||(f[1]=m=>i.value=m),label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["modelValue"]),W(Et,{modelValue:a.value,"onUpdate:modelValue":f[2]||(f[2]=m=>a.value=m),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"current-password",required:""},null,8,["modelValue"]),W(Md,{modelValue:l.value,"onUpdate:modelValue":f[3]||(f[3]=m=>l.value=m),label:"Receive updates and offers by email",name:"newsletter-opt-in"},null,8,["modelValue"]),W(Yn,{success:"Signed up",label:"Sign up",error:"Error"}),N("span",{class:"moonbase:error","data-visible":!!u.value||void 0},J(u.value),9,Ry),N("button",{type:"button",onClick:f[4]||(f[4]=m=>b(r).show(b(Oe).Authentication,b(ae).SignIn,{email:i.value}))}," I already have an account ")]),_:1}))}}),My={key:0,class:"moonbase:loader"},Ly={key:1,class:"moonbase:error","data-visible":""},Uy=["data-visible"],Fy=he({__name:"ConfirmAccount",emits:["confirmedAccount"],setup(e,{emit:t}){const n=t,r=Ie(),o=wt(),s=R(!0),i=R(null),a=R(""),l=R(null);je(async()=>{try{const c=r.getParameter("email"),d=r.getParameter("code");if(!c||!d)throw new Error("Link is broken");i.value=await o.confirmAccount(c,d)}catch(c){c instanceof Vn?l.value="Could not find a user to confirm":l.value=c.message}s.value=!1});async function u(){var c,d;if(l.value=null,!!((c=i.value)!=null&&c.resetPasswordToken))try{const f=r.getParameter("email");await o.resetPassword(f,a.value,(d=i.value)==null?void 0:d.resetPasswordToken);const m=await o.signIn(f,a.value);Kt(1500).then(()=>n("confirmedAccount",m))}catch(f){throw l.value=f.message,f}}return(c,d)=>(w(),Se(Jn,{handler:u,class:"moonbase:confirm-account"},{default:be(()=>[s.value?(w(),C("div",My,[W(Mt)])):i.value?(w(),C(Te,{key:2},[N("h3",null," Hi "+J(i.value.name)+", ",1),d[1]||(d[1]=N("p",null," Please create a new password for your account: ",-1)),W(Et,{"model-value":b(r).getParameter("email"),hidden:"",label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["model-value"]),W(Et,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=f=>a.value=f),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"new-password",required:""},null,8,["modelValue"]),W(Yn,{success:"Password saved",label:"Save password",error:"Error"}),N("span",{class:"moonbase:error","data-visible":!!l.value||void 0},J(l.value),9,Uy)],64)):(w(),C("div",Ly,J(l.value),1))]),_:1}))}}),By=["data-visible"],Hy=he({__name:"ForgotPassword",setup(e){const t=Ie(),n=wt(),r=R(t.getParameter("email")??""),o=R(null),s=R(!1);async function i(){o.value=null;try{await n.forgotPassword(r.value),Kt(1500).then(()=>{s.value=!0})}catch(a){throw a instanceof Vn?o.value="User not found":o.value=a.message,a}}return(a,l)=>(w(),Se(Jn,{handler:i,class:"moonbase:sign-in","no-reset":""},{default:be(({disabled:u})=>[l[1]||(l[1]=N("h3",null," Forgot your password? ",-1)),l[2]||(l[2]=N("p",null," Please enter your email for a reset link: ",-1)),W(Et,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=c=>r.value=c),label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:"",disabled:u},null,8,["modelValue","disabled"]),W(Yn,{success:"Email sent",label:"Reset password",error:"Error"}),N("span",{class:"moonbase:error","data-visible":!!o.value||void 0},J(o.value),9,By)]),_:1}))}}),Zy=["data-visible"],qy=he({__name:"ResetPassword",emits:["passwordReset"],setup(e,{emit:t}){const n=t,r=Ie(),o=wt(),s=Y(()=>r.getParameter("email")),i=R(""),a=R(null);je(()=>{(!r.getParameter("email")||!r.getParameter("code"))&&(a.value="Link broken, please try again")});async function l(){a.value=null;const u=r.getParameter("code");if(u)try{await o.resetPassword(s.value,i.value,u);const c=await o.signIn(s.value,i.value);Kt(1500).then(()=>n("passwordReset",c))}catch(c){throw a.value=c.message,c}}return(u,c)=>(w(),Se(Jn,{handler:l,class:"moonbase:reset-password"},{default:be(()=>[N("h3",null," Hi "+J(s.value)+", ",1),c[1]||(c[1]=N("p",null," Please create a new password for your account: ",-1)),W(Et,{"model-value":b(r).getParameter("email"),hidden:"",label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["model-value"]),W(Et,{modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"new-password",required:""},null,8,["modelValue"]),W(Yn,{success:"Password saved",label:"Save password",error:"Error"}),N("span",{class:"moonbase:error","data-visible":!!a.value||void 0},J(a.value),9,Zy)]),_:1}))}}),Wy={class:"moonbase:confirm-email-change"},zy={key:0,class:"moonbase:loader"},Ky={key:1,class:"moonbase:error","data-visible":""},Gy=he({__name:"ConfirmEmailChange",emits:["confirmed"],setup(e,{emit:t}){const n=t,r=Ie(),{user:o,confirmEmailChange:s}=wt(),i=R(!0),a=R(null);return je(async()=>{try{const l=r.getParameter("email"),u=r.getParameter("code");if(!l||!u)throw new Error("Link is broken");await s(l,u),Kt(1500).then(()=>n("confirmed"))}catch(l){a.value=l.message}i.value=!1}),(l,u)=>{var c;return w(),C("div",Wy,[i.value?(w(),C("div",zy,[W(Mt)])):a.value?(w(),C("div",Ky,J(a.value),1)):(w(),C(Te,{key:2},[N("h3",null," Hi "+J((c=b(o))==null?void 0:c.name)+", ",1),u[0]||(u[0]=N("p",null," Thanks for confirming your new email. You can now sign in using this new address. ",-1))],64))])}}});class Jy{constructor(){Tr(this,"current",this.detect());Tr(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}let Ko=new Jy;function Ga(e,t,n,r){Ko.isServer||pt(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}function Ld(e,t,n,r){Ko.isServer||pt(o=>{e.value&&(window.addEventListener(t,n,r),o(()=>window.removeEventListener(t,n,r)))})}var $t=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))($t||{});function Ja(){const e=R(0),t=R(!0);return Ld(t,"keydown",n=>{n.key==="Tab"&&(e.value=n.shiftKey?1:0)}),e}function nt(e,t,...n){if(e in t){const o=t[e];return typeof o=="function"?o(...n):o}throw new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`)}var Xn=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Xn||{}),Qn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qn||{});function rt({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){const s=Fd(r,n),i=Object.assign(o,{props:s});if(e||t&2&&s.static)return di(i);if(t&1){const a=s.unmount??!0?0:1;return nt(a,{0(){return null},1(){return di({...o,props:{...s,hidden:!0,style:{display:"none"}}})}})}return di(i)}function di({props:e,attrs:t,slots:n,slot:r,name:o}){var u;const{as:s,...i}=Ya(e,["unmount","static"]);let a=(u=n.default)==null?void 0:u.call(n,r);const l={};if(r){let c=!1;const d=[];for(const[f,m]of Object.entries(r))typeof m=="boolean"&&(c=!0),m===!0&&d.push(f);c&&(l["data-moonbase-state"]=d.join(" "))}if(s==="template"){if(a=Ud(a??[]),Object.keys(i).length>0||Object.keys(t).length>0){const[c,...d]=a??[];if(!Yy(c)||d.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(i).concat(Object.keys(t)).map(E=>E.trim()).filter((E,x,O)=>O.indexOf(E)===x).sort((E,x)=>E.localeCompare(x)).map(E=>` - ${E}`).join(`
22
22
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(E=>` - ${E}`).join(`
23
23
  `)].join(`
24
- `));const f=Fd(c.props??{},i,l),m=qt(c,f,!0);for(const E in f)E.startsWith("on")&&(m.props||(m.props={}),m.props[E]=f[E]);return m}return Array.isArray(a)&&a.length===1?a[0]:a}return Ue(s,Object.assign({},i,l),{default:()=>a})}function Ud(e){return e.flatMap(t=>t.type===Ce?Ud(t.children):[t])}function Fd(...e){if(e.length===0)return{};if(e.length===1)return e[0];const t={},n={};for(const r of e)for(const o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]??(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(const r in n)Object.assign(t,{[r](o,...s){const i=n[r];for(const a of i){if(o instanceof Event&&o.defaultPrevented)return;a(o,...s)}}});return t}function Ya(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Yy(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var er=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(er||{});let tr=he({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:r,...o}=e,s={"aria-hidden":(r&2)===2?!0:o["aria-hidden"]??void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return rt({ourProps:s,theirProps:o,slot:{},attrs:n,slots:t,name:"Hidden"})}}});function Xy(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function X(e){if(e==null||e.value==null)return null;let t=e.value.$el??e.value;return t instanceof Node?t:null}function kn(e){if(Ko.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e&&Object.prototype.hasOwnProperty.call(e,"value")){const t=X(e);if(t)return t.ownerDocument}return document}const ci=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var We=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(We||{}),Cn=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Cn||{});function di(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ci)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Xa=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Xa||{});function Bd(e,t=0){var n;return e===((n=kn(e))==null?void 0:n.body)?!1:nt(t,{0(){return e.matches(ci)},1(){let r=e;for(;r!==null;){if(r.matches(ci))return!0;r=r.parentElement}return!1}})}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.moonbaseFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.moonbaseFocusVisible:e.detail===0&&(document.documentElement.dataset.moonbaseFocusVisible="")},!0));function xr(e){e==null||e.focus({preventScroll:!0})}const Qy=["textarea","input"].join(",");function eb(e){var t;return((t=e==null?void 0:e.matches)==null?void 0:t.call(e,Qy))??!1}function Yr(e,t=n=>n){return e.slice().sort((n,r)=>{const o=t(n),s=t(r);if(o===null||s===null)return 0;const i=o.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function at(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){const s=(Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)??document;let i=Array.isArray(e)?n?Yr(e):e:di(e);o.length>0&&i.length>1&&(i=i.filter(m=>!o.includes(m))),r=r??s.activeElement;const a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,i.indexOf(r))-1;if(t&4)return Math.max(0,i.indexOf(r))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{};let c=0;const d=i.length;let f;do{if(c>=d||c+d<=0)return 0;let m=l+c;if(t&16)m=(m+d)%d;else{if(m<0)return 3;if(m>=d)return 1}f=i[m],f==null||f.focus(u),c+=a}while(f!==s.activeElement);return t&6&&eb(f)&&f.select(),2}let Sr=[];Xy(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Sr[0]===t.target)return;let n=t.target;n=n.closest(ci),Sr.unshift(n??t.target),Sr=Sr.filter(r=>r!=null&&r.isConnected),Sr.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function fi(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Hd(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());const t=new Set;for(const n of e.value){const r=X(n);r instanceof HTMLElement&&t.add(r)}return t}var Zd=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Zd||{});const Go=Object.assign(he({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:R(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){const o=R(null);r({el:o,$el:o});const s=Y(()=>kn(o)),i=R(!1);Re(()=>i.value=!0),dt(()=>i.value=!1),nb({ownerDocument:s},Y(()=>i.value&&!!(e.features&16)));const a=rb({ownerDocument:s,container:o,initialFocus:Y(()=>e.initialFocus)},Y(()=>i.value&&!!(e.features&2)));ob({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},Y(()=>i.value&&!!(e.features&8)));const l=Ja();function u(m){const E=X(o);if(!E)return;(O=>O())(()=>{nt(l.value,{[$t.Forwards]:()=>{at(E,We.First,{skipElements:[m.relatedTarget]})},[$t.Backwards]:()=>{at(E,We.Last,{skipElements:[m.relatedTarget]})}})})}const c=R(!1);function d(m){m.key==="Tab"&&(c.value=!0,requestAnimationFrame(()=>{c.value=!1}))}function f(m){if(!i.value)return;const E=Hd(e.containers);X(o)instanceof HTMLElement&&E.add(X(o));const N=m.relatedTarget;N instanceof HTMLElement&&N.dataset.moonbaseFocusGuard!=="true"&&(qd(E,N)||(c.value?at(X(o),nt(l.value,{[$t.Forwards]:()=>We.Next,[$t.Backwards]:()=>We.Previous})|We.WrapAround,{relativeTo:m.target}):m.target instanceof HTMLElement&&xr(m.target)))}return()=>{const m={},E={ref:o,onKeydown:d,onFocusout:f},{features:N,initialFocus:O,containers:I,...j}=e;return Ue(Ce,[!!(N&4)&&Ue(tr,{as:"button",type:"button","data-moonbase-focus-guard":!0,onFocus:u,features:er.Focusable}),rt({ourProps:E,theirProps:{...t,...j},slot:m,attrs:t,slots:n,name:"FocusTrap"}),!!(N&4)&&Ue(tr,{as:"button",type:"button","data-moonbase-focus-guard":!0,onFocus:u,features:er.Focusable})])}}}),{features:Zd});function tb(e){const t=R(Sr.slice());return ze([e],([n],[r])=>{r===!0&&n===!1?fi(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Sr.slice())},{flush:"post"}),()=>t.value.find(n=>n!=null&&n.isConnected)??null}function nb({ownerDocument:e},t){const n=tb(t);Re(()=>{pt(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&xr(n())},{flush:"post"})}),dt(()=>{t.value&&xr(n())})}function rb({ownerDocument:e,container:t,initialFocus:n},r){const o=R(null),s=R(!1);return Re(()=>s.value=!0),dt(()=>s.value=!1),Re(()=>{ze([t,n,r],(i,a)=>{if(i.every((u,c)=>(a==null?void 0:a[c])===u)||!r.value)return;const l=X(t);l&&fi(()=>{var d,f;if(!s.value)return;const u=X(n),c=(d=e.value)==null?void 0:d.activeElement;if(u){if(u===c){o.value=c;return}}else if(l.contains(c)){o.value=c;return}u?xr(u):at(l,We.First|We.NoScroll)===Cn.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(f=e.value)==null?void 0:f.activeElement})},{immediate:!0,flush:"post"})}),o}function ob({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;Ga((s=e.value)==null?void 0:s.defaultView,"focus",i=>{if(!o.value)return;const a=Hd(n);X(t)instanceof HTMLElement&&a.add(X(t));const l=r.value;if(!l)return;const u=i.target;u&&u instanceof HTMLElement?qd(a,u)?(r.value=u,xr(u)):(i.preventDefault(),i.stopPropagation(),xr(l)):xr(r.value)},!0)}function qd(e,t){for(const n of e)if(n.contains(t))return!0;return!1}function sb(e){const t=Bh(e.getSnapshot());return dt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Jo(){const e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){const r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){const r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){const r={current:!0};return fi(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){const s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){const r=Jo();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{const r=e.indexOf(n);if(r>=0)for(const o of e.splice(r,1))o()}},dispose(){for(const n of e.splice(0))n()}};return t}function ib(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...s){let i=t[o].call(n,...s);i&&(n=i,r.forEach(a=>a()))}}}function ab(){let e;return{before({doc:t}){const n=t.documentElement,r=t.defaultView??window;e=Math.max(0,r.innerWidth-n.clientWidth)},after({doc:t,d:n}){const r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),s=Math.max(0,e-o);n.style(r,"paddingRight",`${s}px`)}}}function Wd(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function lb(){return/Android/gi.test(window.navigator.userAgent)}function ub(){return Wd()||lb()}function cb(){return Wd()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(s=>s()).some(s=>s.contains(o))}t.microTask(()=>{if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){const i=Jo();i.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>i.dispose()))}const o=window.scrollY??window.pageYOffset;let s=null;t.addEventListener(e,"click",i=>{if(i.target instanceof HTMLElement)try{const a=i.target.closest("a");if(!a)return;const{hash:l}=new URL(a.href),u=e.querySelector(l);u&&!r(u)&&(s=u)}catch{}},!0),t.addEventListener(e,"touchstart",i=>{if(i.target instanceof HTMLElement)if(r(i.target)){let a=i.target;for(;a.parentElement&&r(a.parentElement);)a=a.parentElement;t.style(a,"overscrollBehavior","contain")}else t.style(i.target,"touchAction","none")}),t.addEventListener(e,"touchmove",i=>{if(i.target instanceof HTMLElement){if(i.target.tagName==="INPUT")return;if(r(i.target)){let a=i.target;for(;a.parentElement&&a.dataset.moonbasePortal!==""&&!(a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth);)a=a.parentElement;a.dataset.moonbasePortal===""&&i.preventDefault()}else i.preventDefault()}},{passive:!1}),t.add(()=>{const i=window.scrollY??window.pageYOffset;o!==i&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function db(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function fb(e){const t={};for(const n of e)Object.assign(t,n(t));return t}const kr=ib(()=>new Map,{PUSH(e,t){const n=this.get(e)??{doc:e,count:0,d:Jo(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){const n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){const r={doc:e,d:t,meta:fb(n)},o=[cb(),ab(),db()];o.forEach(({before:s})=>s==null?void 0:s(r)),o.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});kr.subscribe(()=>{const e=kr.getSnapshot(),t=new Map;for(const[n]of e)t.set(n,n.documentElement.style.overflow);for(const n of e.values()){const r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&kr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&kr.dispatch("TEARDOWN",n)}});function pb(e,t,n){const r=sb(kr),o=Y(()=>{const s=e.value?r.value.get(e.value):void 0;return s?s.count>0:!1});return ze([e,t],([s,i],[a],l)=>{if(!s||!i)return;kr.dispatch("PUSH",s,n);let u=!1;l(()=>{u||(kr.dispatch("POP",a??s,n),u=!0)})},{immediate:!0}),o}let hb=0;function mb(){return++hb}function Lt(){return mb()}const Qa=new Map,Yo=new Map;function zd(e,t=R(!0)){pt(n=>{if(!t.value)return;const r=X(e);if(!r)return;n(()=>{if(!r)return;const s=Yo.get(r)??1;if(s===1?Yo.delete(r):Yo.set(r,s-1),s!==1)return;const i=Qa.get(r);i&&(i["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",i["aria-hidden"]),r.inert=i.inert,Qa.delete(r))});const o=Yo.get(r)??0;Yo.set(r,o+1),o===0&&(Qa.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function Xo(e,t,n,r){Ko.isServer||pt(o=>{e.value&&(document.addEventListener(t,n,r),o(()=>document.removeEventListener(t,n,r)))})}const Kd=30;function Gd(e,t,n=Y(()=>!0)){function r(i,a){if(i.defaultPrevented)return;const l=a(i);if(l===null||!l.getRootNode().contains(l))return;const u=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(const c of u){if(c===null)continue;const d=c instanceof HTMLElement?c:X(c);if(d!=null&&d.contains(l)||i.composed&&i.composedPath().includes(d))return}return!Bd(l,Xa.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}const o=R(null);Xo(n,"pointerdown",i=>{var a,l;o.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target},!0),Xo(n,"mousedown",i=>{var a,l;o.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target},!0),Xo(n,"click",i=>{ub()||o.value&&(r(i,()=>o.value),o.value=null)},!0);const s={x:0,y:0};Xo(n,"touchstart",i=>{s.x=i.touches[0].clientX,s.y=i.touches[0].clientY},!0),Xo(n,"touchend",i=>{const a={x:i.changedTouches[0].clientX,y:i.changedTouches[0].clientY};if(!(Math.abs(a.x-s.x)>=Kd||Math.abs(a.y-s.y)>=Kd))return r(i,()=>i.target instanceof HTMLElement?i.target:null)},!0),Ld(n,"blur",i=>r(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Jd({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){const r=R(null),o=kn(r);function s(){var a,l;const i=[];for(const u of e)u!==null&&(u instanceof HTMLElement?i.push(u):"value"in u&&u.value instanceof HTMLElement&&i.push(u.value));if(t!=null&&t.value)for(const u of t.value)i.push(u);for(const u of(o==null?void 0:o.querySelectorAll("html > *, body > *"))??[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="moonbase"&&(u.contains(X(r))||u.contains((l=(a=X(r))==null?void 0:a.getRootNode())==null?void 0:l.host)||i.some(c=>u.contains(c))||i.push(u));return i}return{resolveContainers:s,contains(i){return s().some(a=>a.contains(i))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:Ue(tr,{features:er.Hidden,ref:r})}}}let Yd=Symbol("Context");var lt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(lt||{});function vb(){return pi()!==null}function pi(){return Se(Yd,null)}function Xd(e){ft(Yd,e)}const Qd=Symbol("ForcePortalRootContext");function gb(){return Se(Qd,!1)}const ef=he({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return ft(Qd,e.force),()=>{const{force:r,...o}=e;return rt({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}});let tf=Symbol("StackContext");var el=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(el||{});function yb(){return Se(tf,()=>{})}function bb({type:e,enabled:t,element:n,onUpdate:r}){let o=yb();function s(...i){r==null||r(...i),o(...i)}Re(()=>{ze(t,(i,a)=>{i?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),dt(()=>{t.value&&s(1,e,n)}),ft(tf,s)}var ot=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ot||{});let _b=Symbol("DescriptionContext");function wb({slot:e=R({}),name:t="Description",props:n={}}={}){let r=R([]);function o(s){return r.value.push(s),()=>{let i=r.value.indexOf(s);i!==-1&&r.value.splice(i,1)}}return ft(_b,{register:o,slot:e,name:t,props:n}),Y(()=>r.value.length>0?r.value.join(" "):void 0)}function nf(e){const t=kn(e);if(!t){if(e===null)return null;throw new Error(`[Moonbase]: Cannot find ownerDocument for contextElement: ${e}`)}const n=t.getElementById("moonbase");if(n)return n;throw new Error("[Moonbase]: Cannot find existing root element")}const tl=Symbol("PortalParentContext"),rf=Symbol("PortalGroupContext"),Eb=he({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){const r=R(null),o=gb(),s=Se(rf,null),i=R(o===!0||s==null?nf(r.value):s.resolveTarget()),a=R(!1);Re(()=>{a.value=!0}),pt(()=>{o||s!=null&&(i.value=s.resolveTarget())});const l=Se(tl,null);let u=!1;const c=Ks();return ze(r,()=>{if(u||!l)return;const d=X(r);d&&(dt(l.register(d),c),u=!0)}),()=>{if(!a.value||i.value===null)return null;const d={ref:r,"data-moonbase-portal":""};return Ue(_m,{to:i.value},rt({ourProps:d,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}});function of(){const e=Se(tl,null),t=R([]);function n(s){return t.value.push(s),e&&e.register(s),()=>r(s)}function r(s){const i=t.value.indexOf(s);i!==-1&&t.value.splice(i,1),e&&e.unregister(s)}const o={register:n,unregister:r,portals:t};return[t,he({name:"PortalWrapper",setup(s,{slots:i}){return ft(tl,o),()=>{var a;return(a=i.default)==null?void 0:a.call(i)}}})]}const Ob=he({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){const r=xo({resolveTarget(){return e.target}});return ft(rf,r),()=>{const{target:o,...s}=e;return rt({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}}),nl=Symbol("DialogContext");function rl(e){const t=Se(nl,null);if(t===null)throw new Error(`<${e} /> is missing a parent <Dialog /> component.`);return t}const hi="DC8F892D-2EBD-447C-A4C8-A03058436FF4",sf=he({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:hi},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`moonbase-dialog-${Lt()}`},role:{type:String,default:"dialog"},makeInert:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var ve;const s=R(!1);Re(()=>{s.value=!0});let i=!1;const a=Y(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(i||(i=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),l=R(0),u=pi(),c=Y(()=>e.open===hi&&u!==null?(u.value&lt.Open)===lt.Open:e.open),d=R(null),f=Y(()=>kn(d));if(o({el:d,$el:d}),!(e.open!==hi||u!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof c.value!="boolean")throw new TypeError(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value===hi?void 0:e.open}`);const E=Y(()=>s.value&&c.value?0:1),N=Y(()=>E.value===0),O=R(null),I={titleId:O,panelRef:R(null),dialogState:E,setTitleId(ae){O.value!==ae&&(O.value=ae)},close(){t("close",!1)}},j=Y(()=>l.value>1),$=Se(nl,null)!==null,[W,y]=of(),{resolveContainers:M,mainTreeNodeRef:P,MainTreeNode:re}=Jd({portals:W,defaultContainers:[Y(()=>I.panelRef.value??d.value)]}),S=Y(()=>j.value?"parent":"leaf"),A=Y(()=>u!==null?(u.value&lt.Closing)===lt.Closing:!1),D=Y(()=>!e.makeInert||$||A.value?!1:N.value),k=Y(()=>{var ae;return Array.from(((ae=f.value)==null?void 0:ae.querySelectorAll("body > *"))??[]).find(Fe=>Fe.id==="moonbase"?!1:Fe.contains(X(P))&&Fe instanceof HTMLElement)??null});zd(k,D);const L=Y(()=>j.value?!0:N.value),ne=Y(()=>{var ae;return Array.from(((ae=f.value)==null?void 0:ae.querySelectorAll("[data-moonbase-portal]"))??[]).find(Fe=>Fe.contains(X(P))&&Fe instanceof HTMLElement)??null});zd(ne,L),bb({type:"Dialog",enabled:Y(()=>E.value===0),element:d,onUpdate:(ae,Fe)=>{if(Fe==="Dialog")return nt(ae,{[el.Add]:()=>l.value+=1,[el.Remove]:()=>l.value-=1})}});const h=wb({name:"DialogDescription",slot:Y(()=>({open:c.value}))});ft(nl,I);const V=Y(()=>!(!N.value||j.value));Gd(M,(ae,Fe)=>{ae.preventDefault(),I.close(),To(()=>Fe==null?void 0:Fe.focus())},V);const ee=Y(()=>!(j.value||E.value!==0));Ga((ve=f.value)==null?void 0:ve.defaultView,"keydown",ae=>{ee.value&&(ae.defaultPrevented||ae.key===ot.Escape&&(ae.preventDefault(),ae.stopPropagation(),I.close()))});const ie=Y(()=>!(!e.lockScroll||A.value||E.value!==0||$));return pb(f,ie,ae=>({containers:[...ae.containers??[],M]})),pt(ae=>{if(E.value!==0)return;const Fe=X(d);if(!Fe)return;const mt=new ResizeObserver(Be=>{for(const St of Be){const nr=St.target.getBoundingClientRect();nr.x===0&&nr.y===0&&nr.width===0&&nr.height===0&&I.close()}});mt.observe(Fe),ae(()=>mt.disconnect())}),()=>{const{id:ae,open:Fe,initialFocus:mt,...Be}=e,St={...n,ref:d,id:ae,role:a.value,"aria-modal":E.value===0?!0:void 0,"aria-labelledby":O.value,"aria-describedby":h.value},nr={open:E.value===0};return Ue(ef,{force:!0},()=>[Ue(Eb,()=>Ue(Ob,{target:d.value},()=>Ue(ef,{force:!1},()=>Ue(Go,{initialFocus:mt,containers:M,features:N.value?nt(S.value,{parent:Go.features.RestoreFocus,leaf:Go.features.All&~Go.features.FocusLock}):Go.features.None},()=>Ue(y,{},()=>rt({ourProps:St,theirProps:{...Be,...n},slot:nr,attrs:n,slots:r,visible:E.value===0,features:Xn.RenderStrategy|Xn.Static,name:"Dialog"})))))),Ue(re)])}}}),af=he({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`moonbase-dialog-overlay-${Lt()}`}},setup(e,{attrs:t,slots:n}){const r=rl("DialogOverlay");function o(s){s.target===s.currentTarget&&(s.preventDefault(),s.stopPropagation(),r.close())}return()=>{const{id:s,...i}=e;return rt({ourProps:{id:s,"aria-hidden":!0,onClick:o},theirProps:i,slot:{open:r.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}}),lf=he({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`moonbase-dialog-panel-${Lt()}`}},setup(e,{attrs:t,slots:n,expose:r}){const o=rl("DialogPanel");r({el:o.panelRef,$el:o.panelRef});function s(i){i.stopPropagation()}return()=>{const{id:i,...a}=e,l={id:i,ref:o.panelRef,onClick:s};return rt({ourProps:l,theirProps:a,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}}),mi=he({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`moonbase-dialog-title-${Lt()}`}},setup(e,{attrs:t,slots:n}){const r=rl("DialogTitle");return Re(()=>{r.setTitleId(e.id),dt(()=>r.setTitleId(null))}),()=>{const{id:o,...s}=e;return rt({ourProps:{id:o},theirProps:s,slot:{open:r.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});function uf(e,t){if(e)return e;const n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function cf(e,t){const n=R(uf(e.value.type,e.value.as));return Re(()=>{n.value=uf(e.value.type,e.value.as)}),pt(()=>{var r;n.value||X(t)&&X(t)instanceof HTMLButtonElement&&!((r=X(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}const df=Symbol("PopoverContext");function ff(e){const t=Se(df,null);if(t===null)throw new Error(`<${e} /> is missing a parent <Popover /> component.`);return t}const Nb=Symbol("PopoverGroupContext");function pf(){return Se(Nb,null)}const hf=Symbol("PopoverPanelContext");function xb(){return Se(hf,null)}const mf=he({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var W;const o=R(null);r({el:o,$el:o});const s=R(1),i=R(null),a=R(null),l=R(null),u=R(null),c=Y(()=>kn(o)),d=Y(()=>{var D,k;if(!X(i)||!X(u))return!1;for(const L of document.querySelectorAll("body > *"))if(Number(L==null?void 0:L.contains(X(i)))^Number(L==null?void 0:L.contains(X(u))))return!0;const y=di(),M=y.indexOf(X(i)),P=(M+y.length-1)%y.length,re=(M+1)%y.length,S=y[P],A=y[re];return!((D=X(u))!=null&&D.contains(S))&&!((k=X(u))!=null&&k.contains(A))}),f={popoverState:s,buttonId:R(null),panelId:R(null),panel:u,button:i,isPortalled:d,beforePanelSentinel:a,afterPanelSentinel:l,togglePopover(){s.value=nt(s.value,{0:1,1:0})},closePopover(){s.value!==1&&(s.value=1)},close(y){f.closePopover();const M=y?y instanceof HTMLElement?y:y.value instanceof HTMLElement?X(y):X(f.button):X(f.button);M==null||M.focus()}};ft(df,f),Xd(Y(()=>nt(s.value,{0:lt.Open,1:lt.Closed})));const m={buttonId:f.buttonId,panelId:f.panelId,close(){f.closePopover()}},E=pf(),N=E==null?void 0:E.registerPopover,[O,I]=of(),j=Jd({mainTreeNodeRef:E==null?void 0:E.mainTreeNodeRef,portals:O,defaultContainers:[i,u]});function $(){var y,M,P;return(E==null?void 0:E.isFocusWithinPopoverGroup())??(((y=c.value)==null?void 0:y.activeElement)&&(((M=X(i))==null?void 0:M.contains(c.value.activeElement))||((P=X(u))==null?void 0:P.contains(c.value.activeElement))))}return pt(()=>N==null?void 0:N(m)),Ga((W=c.value)==null?void 0:W.defaultView,"focus",y=>{var M,P;y.target!==window&&y.target instanceof HTMLElement&&s.value===0&&($()||i&&u&&(j.contains(y.target)||(M=X(f.beforePanelSentinel))!=null&&M.contains(y.target)||(P=X(f.afterPanelSentinel))!=null&&P.contains(y.target)||f.closePopover()))},!0),Gd(j.resolveContainers,(y,M)=>{var P;f.closePopover(),Bd(M,Xa.Loose)||(y.preventDefault(),(P=X(i))==null||P.focus())},Y(()=>s.value===0)),()=>{const y={open:s.value===0,close:f.close};return Ue(Ce,[Ue(I,{},()=>rt({theirProps:{...e,...n},ourProps:{ref:o},slot:y,slots:t,attrs:n,name:"Popover"})),Ue(j.MainTreeNode)])}}}),vf=he({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`moonbase-popover-button-${Lt()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){const o=ff("PopoverButton"),s=Y(()=>kn(o.button));r({el:o.button,$el:o.button}),Re(()=>{o.buttonId.value=e.id}),dt(()=>{o.buttonId.value=null});const i=pf(),a=i==null?void 0:i.closeOthers,l=xb(),u=Y(()=>l===null?!1:l.value===o.panelId.value),c=R(null),d=`moonbase-focus-sentinel-${Lt()}`;u.value||pt(()=>{o.button.value=X(c)});const f=cf(Y(()=>({as:e.as,type:t.type})),c);function m($){var W,y,M,P,re;if(u.value){if(o.popoverState.value===1)return;switch($.key){case ot.Space:case ot.Enter:$.preventDefault(),(y=(W=$.target).click)==null||y.call(W),o.closePopover(),(M=X(o.button))==null||M.focus();break}}else switch($.key){case ot.Space:case ot.Enter:$.preventDefault(),$.stopPropagation(),o.popoverState.value===1&&(a==null||a(o.buttonId.value)),o.togglePopover();break;case ot.Escape:if(o.popoverState.value!==0)return a==null?void 0:a(o.buttonId.value);if(!X(o.button)||(P=s.value)!=null&&P.activeElement&&!((re=X(o.button))!=null&&re.contains(s.value.activeElement)))return;$.preventDefault(),$.stopPropagation(),o.closePopover();break}}function E($){u.value||$.key===ot.Space&&$.preventDefault()}function N($){var W,y;e.disabled||(u.value?(o.closePopover(),(W=X(o.button))==null||W.focus()):($.preventDefault(),$.stopPropagation(),o.popoverState.value===1&&(a==null||a(o.buttonId.value)),o.togglePopover(),(y=X(o.button))==null||y.focus()))}function O($){$.preventDefault(),$.stopPropagation()}const I=Ja();function j(){const $=X(o.panel);if(!$)return;function W(){nt(I.value,{[$t.Forwards]:()=>at($,We.First),[$t.Backwards]:()=>at($,We.Last)})===Cn.Error&&at(di().filter(M=>M.dataset.moonbaseFocusGuard!=="true"),nt(I.value,{[$t.Forwards]:We.Next,[$t.Backwards]:We.Previous}),{relativeTo:X(o.button)})}W()}return()=>{const $=o.popoverState.value===0,W={open:$},{id:y,...M}=e,P=u.value?{ref:c,type:f.value,onKeydown:m,onClick:N}:{ref:c,id:y,type:f.value,"aria-expanded":o.popoverState.value===0,"aria-controls":X(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:m,onKeyup:E,onClick:N,onMousedown:O};return Ue(Ce,[rt({ourProps:P,theirProps:{...t,...M},slot:W,attrs:t,slots:n,name:"PopoverButton"}),$&&!u.value&&o.isPortalled.value&&Ue(tr,{id:d,features:er.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:j})])}}}),gf=he({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:()=>`moonbase-popover-panel-${Lt()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){const{focus:o}=e,s=ff("PopoverPanel"),i=Y(()=>kn(s.panel)),a=`moonbase-focus-sentinel-before-${Lt()}`,l=`moonbase-focus-sentinel-after-${Lt()}`;r({el:s.panel,$el:s.panel}),Re(()=>{s.panelId.value=e.id}),dt(()=>{s.panelId.value=null}),ft(hf,s.panelId),pt(()=>{var I,j;if(!o||s.popoverState.value!==0||!s.panel)return;const O=(I=i.value)==null?void 0:I.activeElement;(j=X(s.panel))!=null&&j.contains(O)||at(X(s.panel),We.First)});const u=pi(),c=Y(()=>u!==null?(u.value&lt.Open)===lt.Open:s.popoverState.value===0);function d(O){var I,j;switch(O.key){case ot.Escape:if(s.popoverState.value!==0||!X(s.panel)||i.value&&!((I=X(s.panel))!=null&&I.contains(i.value.activeElement)))return;O.preventDefault(),O.stopPropagation(),s.closePopover(),(j=X(s.button))==null||j.focus();break}}function f(O){var j,$,W,y,M;const I=O.relatedTarget;I&&X(s.panel)&&((j=X(s.panel))!=null&&j.contains(I)||(s.closePopover(),((W=($=X(s.beforePanelSentinel))==null?void 0:$.contains)!=null&&W.call($,I)||(M=(y=X(s.afterPanelSentinel))==null?void 0:y.contains)!=null&&M.call(y,I))&&I.focus({preventScroll:!0})))}const m=Ja();function E(){const O=X(s.panel);if(!O)return;function I(){nt(m.value,{[$t.Forwards]:()=>{var $;at(O,We.First)===Cn.Error&&(($=X(s.afterPanelSentinel))==null||$.focus())},[$t.Backwards]:()=>{var j;(j=X(s.button))==null||j.focus({preventScroll:!0})}})}I()}function N(){const O=X(s.panel);if(!O)return;function I(){nt(m.value,{[$t.Forwards]:()=>{const j=X(s.button),$=X(s.panel);if(!j)return;const W=di(),y=W.indexOf(j),M=W.slice(0,y+1),re=[...W.slice(y+1),...M];for(const S of re.slice())if(S.dataset.moonbaseFocusGuard==="true"||$!=null&&$.contains(S)){const A=re.indexOf(S);A!==-1&&re.splice(A,1)}at(re,We.First,{sorted:!1})},[$t.Backwards]:()=>{var $;at(O,We.Previous)===Cn.Error&&(($=X(s.button))==null||$.focus())}})}I()}return()=>{const O={open:s.popoverState.value===0,close:s.close},{id:I,focus:j,...$}=e,W={ref:s.panel,id:I,onKeydown:d,onFocusout:o&&s.popoverState.value===0?f:void 0,tabIndex:-1};return rt({ourProps:W,theirProps:{...t,...$},attrs:t,slot:O,slots:{...n,default:(...y)=>{var M;return[Ue(Ce,[c.value&&s.isPortalled.value&&Ue(tr,{id:a,ref:s.beforePanelSentinel,features:er.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:E}),(M=n.default)==null?void 0:M.call(n,...y),c.value&&s.isPortalled.value&&Ue(tr,{id:l,ref:s.afterPanelSentinel,features:er.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:N})])]}},features:Xn.RenderStrategy|Xn.Static,visible:c.value,name:"PopoverPanel"})}}});let Sb=he({props:{onFocus:{type:Function,required:!0}},setup(e){let t=R(!0);return()=>t.value?Ue(tr,{as:"button",type:"button",features:er.Focusable,onFocus(n){n.preventDefault();let r,o=50;function s(){var i;if(o--<=0){r&&cancelAnimationFrame(r);return}if((i=e.onFocus)!=null&&i.call(e)){t.value=!1,cancelAnimationFrame(r);return}r=requestAnimationFrame(s)}r=requestAnimationFrame(s)}}):null}});const yf=Symbol("TabsContext");function vi(e){const t=Se(yf,null);if(t===null)throw new Error(`<${e} /> is missing a parent <TabGroup /> component.`);return t}const ol=Symbol("TabsSSRContext"),kb=he({name:"TabGroup",emits:{change:e=>!0},props:{as:{type:[Object,String],default:"template"},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){const o=R(e.selectedIndex??e.defaultIndex),s=R([]),i=R([]),a=Y(()=>e.selectedIndex!==null),l=Y(()=>a.value?e.selectedIndex:o.value),u={selectedIndex:Y(()=>o.value??e.defaultIndex??null),orientation:Y(()=>e.vertical?"vertical":"horizontal"),activation:Y(()=>e.manual?"manual":"auto"),tabs:s,panels:i,setSelectedIndex(E){l.value!==E&&r("change",E),a.value||c(E)},registerTab(E){if(s.value.includes(E))return;const N=s.value[o.value];if(s.value.push(E),s.value=Yr(s.value,X),!a.value){const O=s.value.indexOf(N)??o.value;O!==-1&&(o.value=O)}},unregisterTab(E){const N=s.value.indexOf(E);N!==-1&&s.value.splice(N,1)},registerPanel(E){i.value.includes(E)||(i.value.push(E),i.value=Yr(i.value,X))},unregisterPanel(E){const N=i.value.indexOf(E);N!==-1&&i.value.splice(N,1)}};function c(E){const N=Yr(u.tabs.value,X),O=Yr(u.panels.value,X),I=N.filter(j=>{var $;return!(($=X(j))!=null&&$.hasAttribute("disabled"))});if(E<0||E>N.length-1){const j=nt(o.value===null?0:Math.sign(E-o.value),{[-1]:()=>1,0:()=>nt(Math.sign(E),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),$=nt(j,{0:()=>N.indexOf(I[0]),1:()=>N.indexOf(I[I.length-1])});$!==-1&&(o.value=$),u.tabs.value=N,u.panels.value=O}else{const j=N.slice(0,E),W=[...N.slice(E),...j].find(M=>I.includes(M));if(!W)return;let y=N.indexOf(W)??u.selectedIndex.value;y===-1&&(y=u.selectedIndex.value),o.value=y,u.tabs.value=N,u.panels.value=O}}ft(yf,u);const d=R({tabs:[],panels:[]}),f=R(!1);Re(()=>{f.value=!0}),ft(ol,Y(()=>f.value?null:d.value));const m=Y(()=>e.selectedIndex);return Re(()=>{ze([m],()=>c(e.selectedIndex??e.defaultIndex),{immediate:!0})}),pt(()=>{if(!a.value||l.value==null||u.tabs.value.length<=0)return;const E=Yr(u.tabs.value,X);E.some((O,I)=>X(u.tabs.value[I])!==X(O))&&u.setSelectedIndex(E.findIndex(O=>X(O)===X(u.tabs.value[l.value])))}),()=>{const E={selectedIndex:o.value};return Ue(Ce,[s.value.length<=0&&Ue(Sb,{onFocus:()=>{for(const N of s.value){const O=X(N);if((O==null?void 0:O.tabIndex)===0)return O.focus(),!0}return!1}}),rt({theirProps:{...n,...Ya(e,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:E,slots:t,attrs:n,name:"TabGroup"})])}}}),Cb=he({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n}){const r=vi("TabList");return()=>{const o={selectedIndex:r.selectedIndex.value},s={role:"tablist","aria-orientation":r.orientation.value};return rt({ourProps:s,theirProps:e,slot:o,attrs:t,slots:n,name:"TabList"})}}}),sl=he({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`moonbase-tabs-tab-${Lt()}`}},setup(e,{attrs:t,slots:n,expose:r}){const o=vi("Tab"),s=R(null);r({el:s,$el:s}),Re(()=>o.registerTab(s)),dt(()=>o.unregisterTab(s));const i=Se(ol),a=Y(()=>{if(i.value){const O=i.value.tabs.indexOf(e.id);return O===-1?i.value.tabs.push(e.id)-1:O}return-1}),l=Y(()=>{const O=o.tabs.value.indexOf(s);return O===-1?a.value:O}),u=Y(()=>l.value===o.selectedIndex.value);function c(O){var j;const I=O();if(I===Cn.Success&&o.activation.value==="auto"){const $=(j=kn(s))==null?void 0:j.activeElement,W=o.tabs.value.findIndex(y=>X(y)===$);W!==-1&&o.setSelectedIndex(W)}return I}function d(O){const I=o.tabs.value.map($=>X($)).filter(Boolean);if(O.key===ot.Space||O.key===ot.Enter){O.preventDefault(),O.stopPropagation(),o.setSelectedIndex(l.value);return}switch(O.key){case ot.Home:case ot.PageUp:return O.preventDefault(),O.stopPropagation(),c(()=>at(I,We.First));case ot.End:case ot.PageDown:return O.preventDefault(),O.stopPropagation(),c(()=>at(I,We.Last))}if(c(()=>nt(o.orientation.value,{vertical(){return O.key===ot.ArrowUp?at(I,We.Previous|We.WrapAround):O.key===ot.ArrowDown?at(I,We.Next|We.WrapAround):Cn.Error},horizontal(){return O.key===ot.ArrowLeft?at(I,We.Previous|We.WrapAround):O.key===ot.ArrowRight?at(I,We.Next|We.WrapAround):Cn.Error}}))===Cn.Success)return O.preventDefault()}const f=R(!1);function m(){var O;f.value||(f.value=!0,!e.disabled&&((O=X(s))==null||O.focus({preventScroll:!0}),o.setSelectedIndex(l.value),fi(()=>{f.value=!1})))}function E(O){O.preventDefault()}const N=cf(Y(()=>({as:e.as,type:t.type})),s);return()=>{var W;const O={selected:u.value,disabled:e.disabled??!1},{id:I,...j}=e,$={ref:s,onKeydown:d,onMousedown:E,onClick:m,id:I,role:"tab",type:N.value,"aria-controls":(W=X(o.panels.value[l.value]))==null?void 0:W.id,"aria-selected":u.value,tabIndex:u.value?0:-1,disabled:e.disabled?!0:void 0};return rt({ourProps:$,theirProps:j,slot:O,attrs:t,slots:n,name:"Tab"})}}}),Tb=he({name:"TabPanels",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){const r=vi("TabPanels");return()=>{const o={selectedIndex:r.selectedIndex.value};return rt({theirProps:e,ourProps:{},slot:o,attrs:n,slots:t,name:"TabPanels"})}}}),il=he({name:"TabPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`moonbase-tabs-panel-${Lt()}`},tabIndex:{type:Number,default:0}},setup(e,{attrs:t,slots:n,expose:r}){const o=vi("TabPanel"),s=R(null);r({el:s,$el:s}),Re(()=>o.registerPanel(s)),dt(()=>o.unregisterPanel(s));const i=Se(ol),a=Y(()=>{if(i.value){const c=i.value.panels.indexOf(e.id);return c===-1?i.value.panels.push(e.id)-1:c}return-1}),l=Y(()=>{const c=o.panels.value.indexOf(s);return c===-1?a.value:c}),u=Y(()=>l.value===o.selectedIndex.value);return()=>{var N;const c={selected:u.value},{id:d,tabIndex:f,...m}=e,E={ref:s,id:d,role:"tabpanel","aria-labelledby":(N=X(o.tabs.value[l.value]))==null?void 0:N.id,tabIndex:u.value?f:-1};return!u.value&&e.unmount&&!e.static?Ue(tr,{as:"span","aria-hidden":!0,...E}):rt({ourProps:E,theirProps:m,slot:c,attrs:t,slots:n,features:Xn.Static|Xn.RenderStrategy,visible:u.value,name:"TabPanel"})}}});function Pb(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function al(e,...t){e&&t.length>0&&!e.dataset.transition?e.dataset.transition=t.join(" "):e&&t.length>0&&e.dataset.transition&&(e.dataset.transition=[...e.dataset.transition.split(" "),...t].join(" "))}function gi(e,...t){e&&t.length>0&&e.dataset.transition&&(e.dataset.transition=e.dataset.transition.split(" ").filter(n=>!t.includes(n)).join(" "))}var ll=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(ll||{});function $b(e,t){const n=Jo();if(!e)return n.dispose;const{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,i]=[r,o].map(a=>{const[l=0]=a.split(",").filter(Boolean).map(u=>u.includes("ms")?Number.parseFloat(u):Number.parseFloat(u)*1e3).sort((u,c)=>c-u);return l});return s!==0?n.setTimeout(()=>t("finished"),s+i):t("finished"),n.add(()=>t("cancelled")),n.dispose}function bf(e,t,n,r,o,s){const i=Jo(),a=s!==void 0?Pb(s):()=>{};return gi(e,...o),al(e,...t,...n),i.nextFrame(()=>{gi(e,...n),al(e,...r),i.add($b(e,l=>(gi(e,...r,...t),al(e,...o),a(l))))}),i.add(()=>gi(e,...t,...n,...r,...o)),i.add(()=>a("cancelled")),i.dispose}function Cr(e=""){return e.split(/\s+/).filter(t=>t.length>1)}const ul=Symbol("TransitionContext");function Db(){return Se(ul,null)!==null}function Ib(){const e=Se(ul,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}const cl=Symbol("NestingContext");function Ab(){const e=Se(cl,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function yi(e){return"children"in e?yi(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function _f(e){const t=R([]),n=R(!1);Re(()=>n.value=!0),dt(()=>n.value=!1);function r(s,i=Qn.Hidden){const a=t.value.findIndex(({id:l})=>l===s);a!==-1&&(nt(i,{[Qn.Unmount](){t.value.splice(a,1)},[Qn.Hidden](){t.value[a].state="hidden"}}),!yi(t)&&n.value&&(e==null||e()))}function o(s){const i=t.value.find(({id:a})=>a===s);return i?i.state!=="visible"&&(i.state="visible"):t.value.push({id:s,state:"visible"}),()=>r(s,Qn.Unmount)}return{children:t,register:o,unregister:r}}const wf=Xn.RenderStrategy,Qo=he({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:"enter"},enterFrom:{type:[String],default:"enter-from"},enterTo:{type:[String],default:"enter-to"},entered:{type:[String],default:"entered"},leave:{type:[String],default:"leave"},leaveFrom:{type:[String],default:"leave-from"},leaveTo:{type:[String],default:"leave-to"}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){const s=R(0);function i(){s.value|=lt.Opening,t("beforeEnter")}function a(){s.value&=~lt.Opening,t("afterEnter")}function l(){s.value|=lt.Closing,t("beforeLeave")}function u(){s.value&=~lt.Closing,t("afterLeave")}if(!Db()&&vb())return()=>Ue(dl,{...e,onBeforeEnter:i,onAfterEnter:a,onBeforeLeave:l,onAfterLeave:u},r);const c=R(null),d=Y(()=>e.unmount?Qn.Unmount:Qn.Hidden);o({el:c,$el:c});const{show:f,appear:m}=Ib(),{register:E,unregister:N}=Ab(),O=R(f.value?"visible":"hidden"),I={value:!0},j=Lt(),$={value:!1},W=_f(()=>{!$.value&&O.value!=="hidden"&&(O.value="hidden",N(j),u())});Re(()=>{const L=E(j);dt(L)}),pt(()=>{if(d.value===Qn.Hidden&&j){if(f.value&&O.value!=="visible"){O.value="visible";return}nt(O.value,{hidden:()=>N(j),visible:()=>E(j)})}});const y=Cr(e.enter),M=Cr(e.enterFrom),P=Cr(e.enterTo),re=Cr(e.entered),S=Cr(e.leave),A=Cr(e.leaveFrom),D=Cr(e.leaveTo);Re(()=>{pt(()=>{if(O.value==="visible"){const L=X(c);if(L instanceof Comment&&L.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function k(L){const ne=I.value&&!m.value,h=X(c);!h||!(h instanceof HTMLElement)||ne||($.value=!0,f.value&&i(),f.value||l(),L(f.value?bf(h,y,M,P,re,V=>{$.value=!1,V===ll.Finished&&a()}):bf(h,S,A,D,re,V=>{$.value=!1,V===ll.Finished&&(yi(W)||(O.value="hidden",N(j),u()))})))}return Re(()=>{ze([f],(L,ne,h)=>{k(h),I.value=!1},{immediate:!0})}),ft(cl,W),Xd(Y(()=>nt(O.value,{visible:lt.Open,hidden:lt.Closed})|s.value)),()=>{const{appear:L,show:ne,enter:h,enterFrom:V,enterTo:ee,entered:ie,leave:ve,leaveFrom:ae,leaveTo:Fe,...mt}=e,Be={ref:c},St={...mt,...m.value&&f.value&&Ko.isServer?{class:_s([n.class,mt.class,...y,...M])}:{}};return rt({theirProps:St,ourProps:Be,slot:{},slots:r,attrs:n,features:wf,visible:O.value==="visible",name:"TransitionChild"})}}}),Vb=Qo,dl=he({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){const o=pi(),s=Y(()=>e.show===null&&o!==null?(o.value&lt.Open)===lt.Open:e.show);pt(()=>{if(![!0,!1].includes(s.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});const i=R(s.value?"visible":"hidden"),a=_f(()=>{i.value="hidden"}),l=R(!0),u={show:s,appear:Y(()=>e.appear||!l.value)};return Re(()=>{pt(()=>{l.value=!1,s.value?i.value="visible":yi(a)||(i.value="hidden")})}),ft(cl,a),ft(ul,u),()=>{const c=Ya(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),d={unmount:e.unmount};return rt({ourProps:{...d,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[Ue(Vb,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...d,...c},r.default)]},attrs:{},features:wf,visible:i.value==="visible",name:"Transition"})}}}),Rb=["data-contain"],bi=he({__name:"Modal",props:{open:{type:Boolean}},emits:["close"],setup(e){const t=Se(Nr);return(n,r)=>(w(),ke(_(dl),{as:"template",show:n.open},{default:we(()=>{var o,s,i;return[z(_(sf),{as:"div",class:"moonbase:modal","data-contain":!!((o=_(t))!=null&&o.target)||void 0,"make-inert":!((s=_(t))!=null&&s.target),"lock-scroll":!((i=_(t))!=null&&i.target),onClose:r[0]||(r[0]=a=>n.$emit("close"))},{default:we(()=>{var a;return[x("div",{class:"moonbase:modal-container","data-contain":!!((a=_(t))!=null&&a.target)||void 0},[z(_(Qo),{as:"template"},{default:we(()=>{var l;return[z(_(af),{class:"moonbase:modal-overlay","data-contain":!!((l=_(t))!=null&&l.target)||void 0},null,8,["data-contain"])]}),_:1}),z(_(Qo),{as:"template"},{default:we(()=>[z(_(lf),{class:"moonbase:modal-content"},{default:we(()=>[ma(n.$slots,"default")]),_:3})]),_:3})],8,Rb)]}),_:3},8,["data-contain","make-inert","lock-scroll"])]}),_:3},8,["show"]))}}),jb=["data-visible"],Mb=he({__name:"SignIn",emits:["signedIn"],setup(e,{emit:t}){const n=t,r=je(),o=wt(),s=Se(Nr),i=R(r.getParameter("email")??""),a=R(""),l=R(null);async function u(){l.value=null;try{const c=await o.signIn(i.value,a.value);Kt(1500).then(()=>n("signedIn",c))}catch(c){throw c instanceof Vn?l.value="User not found":l.value=c.message,c}}return(c,d)=>(w(),ke(Jn,{handler:u,class:"moonbase:sign-in"},{default:we(()=>{var f;return[z(Et,{modelValue:i.value,"onUpdate:modelValue":d[0]||(d[0]=m=>i.value=m),label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["modelValue"]),z(Et,{modelValue:a.value,"onUpdate:modelValue":d[1]||(d[1]=m=>a.value=m),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"current-password",required:""},null,8,["modelValue"]),z(Yn,{success:"Signed in",label:"Sign in",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!l.value||void 0},J(l.value),9,jb),(f=_(s))!=null&&f.auth.signUp.enabled?(w(),C("button",{key:0,type:"button",onClick:d[2]||(d[2]=m=>_(r).show(_(Ne).Authentication,_(ue).SignUp,{email:i.value}))}," Create account ")):fe("",!0),x("button",{type:"button",onClick:d[3]||(d[3]=m=>_(r).show(_(Ne).Authentication,_(ue).ForgotPassword,{email:i.value}))}," Forgot password ")]}),_:1}))}});function fl(...e){}const Lb={class:"moonbase:authentication"},Ub={key:0,class:"moonbase:loader"},Fb=he({__name:"Authentication",props:{open:{type:Boolean}},setup(e){const t=je(),{loaded:n}=wt(),r=Y(()=>{switch(t.intent){case ue.SignIn:return"Sign in";case ue.SignUp:return"Sign up";case ue.ConfirmAccount:return"Confirm account";case ue.ConfirmEmailChange:return"Confirm email change";case ue.ForgotPassword:return"Forgot password";case ue.ResetPassword:return"Reset password"}return"Authentication"}),o=Y(()=>{if(t.intent===ue.SignIn&&t.next){const[i,a,l]=t.next;if(i===Ne.Authentication&&a===ue.ConfirmEmailChange)return"to confirm email"}return null});function s(){t.reset()}return(i,a)=>(w(),ke(bi,{open:i.open,onClose:s},{default:we(()=>[x("div",Lb,[z(_(mi),{as:"h3"},{default:we(()=>[Te(J(r.value)+" "+J(o.value),1)]),_:1}),_(n)?_(t).intent===_(ue).SignIn?(w(),ke(Mb,{key:1,onSignedIn:a[0]||(a[0]=l=>_(t).dequeue())})):_(t).intent===_(ue).SignUp?(w(),ke(jy,{key:2,onSignedUp:a[1]||(a[1]=l=>_(t).show(_(Ne).Customer,_(ue).ViewAccount))})):_(t).intent===_(ue).ConfirmAccount?(w(),ke(Fy,{key:3,onConfirmedAccount:a[2]||(a[2]=l=>_(t).show(_(Ne).Customer,_(ue).ViewAccount))})):_(t).intent===_(ue).ConfirmEmailChange?(w(),ke(Gy,{key:4})):_(t).intent===_(ue).ForgotPassword?(w(),ke(Hy,{key:5})):_(t).intent===_(ue).ResetPassword?(w(),ke(qy,{key:6,onPasswordReset:a[3]||(a[3]=l=>_(t).show(_(Ne).Customer,_(ue).ViewAccount))})):fe("",!0):(w(),C("div",Ub,[z(Mt)]))])]),_:1},8,["open"]))}});function Dt(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",maximumFractionDigits:2,minimumFractionDigits:2}).format(e)}const Bb={class:"moonbase:product-cart-item"},Hb=["src"],Zb={key:1,class:"moonbase:image-placeholder"},qb={class:"moonbase:product-cart-item-content"},Wb={key:0,class:"moonbase:cart-item-discount"},zb={class:"font-semibold"},Kb={key:0,class:"ml-0.5"},Gb={key:2,class:"moonbase:product-cart-item-total"},Jb={key:0,class:"moonbase:discount"},Yb={key:1},Xb=he({__name:"ProductCartItem",props:{lineItem:{},currency:{}},setup(e){return(t,n)=>{var r,o,s;return w(),C("div",Bb,[(r=t.lineItem.product)!=null&&r.iconUrl?(w(),C("img",{key:0,src:t.lineItem.product.iconUrl,alt:""},null,8,Hb)):(w(),C("div",Zb)),x("div",qb,[x("h3",null,J((o=t.lineItem.product)==null?void 0:o.name),1),x("p",null,J((s=t.lineItem.product)==null?void 0:s.tagline),1),t.lineItem.appliedDiscount?(w(),C("p",Wb,[n[0]||(n[0]=Te(" Discount applied: ")),x("span",zb,J(t.lineItem.appliedDiscount.name),1),t.lineItem.appliedDiscount.total?(w(),C("span",Kb," (-"+J(_(Dt)(t.lineItem.appliedDiscount.total[t.currency],t.currency))+") ",1)):fe("",!0)])):fe("",!0),x("p",null,J(t.lineItem.quantity)+" in cart",1)]),t.lineItem.variation?(w(),C("div",Gb,[t.lineItem.variation.hasDiscount?(w(),C("span",Jb,J(_(Dt)(t.lineItem.variation.originalPrice[t.currency],t.currency)),1)):fe("",!0),t.lineItem.quantity!==1?(w(),C("span",Yb,J(t.lineItem.quantity)+" x "+J(_(Dt)(t.lineItem.variation.price[t.currency],t.currency)),1)):fe("",!0),Te(" "+J(_(Dt)(t.lineItem.variation.price[t.currency]*t.lineItem.quantity,t.currency)),1)])):fe("",!0)])}}}),Qb={class:"moonbase:bundle-cart-item"},e_=["src"],t_={key:1,class:"moonbase:image-placeholder"},n_={class:"moonbase:bundle-cart-item-content"},r_={key:0,class:"moonbase:cart-item-discount"},o_={class:"font-semibold"},s_={key:0,class:"ml-0.5"},i_={class:"moonbase:bundle-cart-item-summary"},a_=["data-open"],l_={key:2,class:"moonbase:product-cart-item-total"},u_={key:0,class:"moonbase:discount"},c_={key:1},d_=["src"],f_={key:1,class:"moonbase:image-placeholder"},p_=["data-included"],h_={key:0,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},m_={key:0,class:"truncate italic"},v_={key:1,class:"truncate"},g_=he({__name:"BundleCartItem",props:{lineItem:{},currency:{}},setup(e){const t=R(!1),n=R(null);return ze(t,r=>{n.value&&(n.value.style.height=r?`${n.value.scrollHeight}px`:"0px")}),(r,o)=>{var s,i,a,l,u,c,d;return w(),C("div",null,[x("div",Qb,[(s=r.lineItem.bundle)!=null&&s.iconUrl?(w(),C("img",{key:0,src:r.lineItem.bundle.iconUrl,alt:""},null,8,e_)):(w(),C("div",t_)),x("div",n_,[x("h3",null,J((i=r.lineItem.bundle)==null?void 0:i.name),1),x("p",null,J((a=r.lineItem.bundle)==null?void 0:a.tagline),1),r.lineItem.appliedDiscount?(w(),C("p",r_,[o[1]||(o[1]=Te(" Discount applied: ")),x("span",o_,J(r.lineItem.appliedDiscount.name),1),r.lineItem.appliedDiscount.total?(w(),C("span",s_," (-"+J(_(Dt)(r.lineItem.appliedDiscount.total[r.currency],r.currency))+") ",1)):fe("",!0)])):fe("",!0),x("div",i_,[x("span",null,J(r.lineItem.quantity)+" in cart",1),r.lineItem.bundle?(w(),C("button",{key:0,onClick:o[0]||(o[0]=f=>t.value=!t.value)},[x("span",null,[Te(" Including "+J((l=r.lineItem.bundle)==null?void 0:l.products.filter(f=>f.included).length)+" ",1),(u=r.lineItem.bundle)!=null&&u.products.some(f=>!f.included)?(w(),C(Ce,{key:0},[Te("of "+J((c=r.lineItem.bundle)==null?void 0:c.products.length),1)],64)):fe("",!0),o[2]||(o[2]=Te(" products "))]),(w(),C("svg",{"data-open":t.value||void 0,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},o[3]||(o[3]=[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"},null,-1)]),8,a_))])):fe("",!0)])]),r.lineItem.variation?(w(),C("div",l_,[r.lineItem.variation.hasDiscount?(w(),C("span",u_,J(_(Dt)(r.lineItem.variation.originalPrice[r.currency],r.currency)),1)):fe("",!0),r.lineItem.quantity!==1?(w(),C("span",c_,J(r.lineItem.quantity)+" x "+J(_(Dt)(r.lineItem.variation.price[r.currency],r.currency)),1)):fe("",!0),Te(" "+J(_(Dt)(r.lineItem.variation.price[r.currency]*r.lineItem.quantity,r.currency)),1)])):fe("",!0)]),x("div",{ref_key:"productListRef",ref:n,class:"moonbase:bundle-cart-item-product-list",style:{height:"0px"}},[(w(!0),C(Ce,null,an(((d=r.lineItem.bundle)==null?void 0:d.products)||[],f=>(w(),C("div",{key:f.id},[f!=null&&f.iconUrl?(w(),C("img",{key:0,src:f.iconUrl,alt:""},null,8,d_)):(w(),C("div",f_)),x("div",null,[x("h3",{"data-included":f.included||void 0},[f.included?(w(),C("svg",h_,o[4]||(o[4]=[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"},null,-1)]))):fe("",!0),Te(" "+J(f==null?void 0:f.name),1)],8,p_),f.included?f!=null&&f.tagline?(w(),C("p",v_,J(f.tagline),1)):fe("",!0):(w(),C("p",m_," You already own this "))])]))),128))],512)])}}}),y_=["data-contain"],b_=he({__name:"CartModal",props:{open:{type:Boolean}},emits:["close"],setup(e){const t=Se(Nr);return(n,r)=>(w(),ke(_(dl),{as:"template",show:n.open},{default:we(()=>{var o,s,i;return[z(_(sf),{as:"div",class:"moonbase:cart-modal","data-contain":!!((o=_(t))!=null&&o.target)||void 0,"make-inert":!((s=_(t))!=null&&s.target),"lock-scroll":!((i=_(t))!=null&&i.target),onClose:r[0]||(r[0]=a=>n.$emit("close"))},{default:we(()=>{var a;return[x("div",{class:"moonbase:cart-modal-container","data-contain":!!((a=_(t))!=null&&a.target)||void 0},[z(_(Qo),{as:"template"},{default:we(()=>{var l;return[z(_(af),{class:"moonbase:cart-modal-overlay","data-contain":!!((l=_(t))!=null&&l.target)||void 0},null,8,["data-contain"])]}),_:1}),z(_(Qo),{as:"template"},{default:we(()=>{var l;return[z(_(lf),{class:"moonbase:cart-modal-content","data-contain":!!((l=_(t))!=null&&l.target)||void 0},{default:we(()=>[ma(n.$slots,"default")]),_:3},8,["data-contain"])]}),_:3})],8,y_)]}),_:3},8,["data-contain","make-inert","lock-scroll"])]}),_:3},8,["show"]))}}),__=["disabled","data-success","data-error","data-working","data-variant"],w_=["data-visible"],Ef=he({__name:"MoonButton",props:{handler:{type:Function},label:{},success:{},error:{},variant:{},noReset:{type:Boolean}},setup(e){const t=e,n=R(!1),r=R(!1),o=R(!1),s=Y(()=>r.value?t.success??t.label:o.value?t.error:t.label);async function i(){try{const a=t.handler();if(a instanceof Promise){if(n.value=!0,await a,n.value=!1,!t.success)return;r.value=!0,await Kt(2500),t.noReset||(r.value=!1)}}catch{n.value=!1,o.value=!0,await Kt(2500),o.value=!1}}return(a,l)=>(w(),C("button",{class:"moonbase:button",type:"button",disabled:r.value||o.value||n.value,"data-success":r.value&&a.success||void 0,"data-error":o.value||void 0,"data-working":n.value||void 0,"data-variant":a.variant,onClick:i},[x("div",{"data-visible":n.value||void 0,"aria-hidden":"true"},[n.value?(w(),ke(Mt,{key:0})):fe("",!0)],8,w_),Te(" "+J(s.value),1)],8,__))}}),E_={class:"moonbase:cart"},O_={key:0,role:"list",class:"moonbase:cart-items"},N_={key:1,class:"moonbase:cart-empty"},x_={key:2,class:"moonbase:cart-total"},S_=he({__name:"Cart",props:{open:{type:Boolean}},setup(e){const t=je(),{items:n,total:r,currency:o,checkout:s}=ni(),i=Se(Nr);async function a(){if(!await s({redirect:(i==null?void 0:i.checkout.redirect)??!1,returnUrl:`${window.location.pathname}?mb_intent=view_products`}))throw new Error("Cancelled checkout")}return(l,u)=>(w(),ke(b_,{open:l.open,onClose:u[0]||(u[0]=c=>_(t).reset())},{default:we(()=>[x("div",E_,[z(_(mi),{as:"h3"},{default:we(()=>u[1]||(u[1]=[Te(" Cart ")])),_:1}),_(n).length>0?(w(),C("ul",O_,[(w(!0),C(Ce,null,an(_(n),c=>(w(),C("li",{key:c.id},[c.type==="Product"?(w(),ke(Xb,{key:0,"line-item":c,currency:_(o)},null,8,["line-item","currency"])):c.type==="Bundle"?(w(),ke(g_,{key:1,"line-item":c,currency:_(o)},null,8,["line-item","currency"])):fe("",!0)]))),128))])):(w(),C("div",N_," Your cart is empty! ")),_(n).length>0?(w(),C("div",x_,[u[2]||(u[2]=x("label",null," Total ",-1)),x("span",null,J(_(Dt)(_(r).amount,_(r).currency)),1),u[3]||(u[3]=x("p",null," Sales tax to be calculated at checkout ",-1))])):fe("",!0),_(n).length>0?(w(),ke(Ef,{key:3,handler:a,label:"Checkout",error:"Cancelled"})):fe("",!0)])]),_:1},8,["open"]))}}),k_={class:"moonbase:account"},C_={key:0,class:"moonbase:error"},T_={key:1,class:"moonbase:notification"},P_={key:0,class:"moonbase:error"},$_=he({__name:"Account",setup(e){var j,$,W;const t=je(),{user:n,update:r,setPassword:o,signOut:s}=wt(),i=R(((j=n.value)==null?void 0:j.name)??""),a=R((($=n.value)==null?void 0:$.email)??""),l=R(((W=n.value)==null?void 0:W.communicationPreferences)??{newsletterOptIn:!1}),u=R(null),c=R(!1),d=R(""),f=R(""),m=R(null),E=R(!1);async function N(){u.value=null,c.value=!1;try{(await r(i.value,a.value,void 0,l.value)).needsEmailConfirmationToken&&(c.value=!0)}catch(y){throw u.value=y,y}}async function O(){m.value=null;try{await o(d.value,f.value),d.value="",f.value=""}catch(y){throw m.value=y,y}}async function I(){E.value=!0,await s(),t.reset()}return(y,M)=>(w(),C("div",k_,[z(Jn,{handler:N},{default:we(()=>[z(Et,{modelValue:i.value,"onUpdate:modelValue":M[0]||(M[0]=P=>i.value=P),label:"Full name",name:"name",autocomplete:"name",required:""},null,8,["modelValue"]),z(Et,{modelValue:a.value,"onUpdate:modelValue":M[1]||(M[1]=P=>a.value=P),label:"Email address",name:"email",type:"email",autocomplete:"email",required:""},null,8,["modelValue"]),z(Md,{modelValue:l.value.newsletterOptIn,"onUpdate:modelValue":M[2]||(M[2]=P=>l.value.newsletterOptIn=P),label:"Newsletter subscription",name:"newsletter-opt-in",hint:"Receive updates and offers by email"},null,8,["modelValue"]),z(Yn,{label:"Save",error:"Error",success:"Saved"}),u.value?(w(),C("p",C_,J(u.value.message),1)):c.value?(w(),C("p",T_," You need to confirm your new email address, please check your inbox ")):fe("",!0)]),_:1}),z(Jn,{handler:O},{default:we(()=>[z(Et,{modelValue:d.value,"onUpdate:modelValue":M[3]||(M[3]=P=>d.value=P),label:"Current password",name:"old-password",type:"password",autocomplete:"current-password",required:""},null,8,["modelValue"]),z(Et,{modelValue:f.value,"onUpdate:modelValue":M[4]||(M[4]=P=>f.value=P),label:"New password",name:"new-password",type:"password",autocomplete:"new-password",required:""},null,8,["modelValue"]),z(Yn,{label:"Save",error:"Error",success:"Saved"}),m.value?(w(),C("p",P_,J(m.value.message),1)):fe("",!0)]),_:1}),z(Ef,{label:"Log out",success:"Logged out",error:"Error",variant:"secondary",handler:I})]))}}),D_={},I_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function A_(e,t){return w(),C("svg",I_,t[0]||(t[0]=[x("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2-60 5.7-112 35.88-112 98.4S70 336 136 336h56M192 400.1l64 63.9 64-63.9M256 224v224.03",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}const Of=Jr(D_,[["render",A_]]),V_={},R_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function j_(e,t){return w(),C("svg",R_,t[0]||(t[0]=[x("path",{d:"M480 265H232v179l248 36V265zM216 265H32v150l184 26.7V265zM480 32L232 67.4V249h248V32zM216 69.7L32 96v153h184V69.7z",fill:"currentColor"},null,-1)]))}const Nf=Jr(V_,[["render",j_]]),M_={},L_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function U_(e,t){return w(),C("svg",L_,t[0]||(t[0]=[x("path",{d:"M443.66 405.05c-1.46-.79-2.85-1.54-4-2.2-6.47-3.83-13-10.52-11.85-17.83 2.42-15.94 2.89-23.47-.49-28.79a15.61 15.61 0 0 0-7.67-6.2v-.06c1.41-2.56 2.26-5.66 2.83-10.12 1.44-11-5-44-13.7-70.7-8.08-24.68-29.24-50-44.7-68.56l-3.61-4.34c-23.88-28.93-24.34-38.19-26.55-82.67-.32-6.47-.69-13.8-1.17-22C329.87 41.43 304 16 256 16c-25.2 0-44.62 7.15-57.72 21.26C187.79 48.55 182 64 182 80.78c0 29.52 2 53 2.15 54.29 1.4 35.7 1 41.22-8.31 57.55-2.23 3.93-8.38 10.87-14.89 18.21-8.48 9.57-18.09 20.41-23.36 29.22-3.77 6.31-5.88 12.63-8.11 19.33-3.4 10.21-7.26 21.78-18.15 36.57-12.57 17.07-15.52 29.61-11 47.45-4.94 6.45-4.83 14.37-4.75 20.23a25.84 25.84 0 0 1-.3 6.09c-2.29 7.59-12.42 9.4-22 10.18-1.58.12-3.1.21-4.55.29-7.26.39-13.53.74-17.13 6.3-3.47 5.36-1.12 13.8 2.14 25.48.72 2.58 1.46 5.25 2.19 8.06 1.83 7-.16 10.48-2.68 14.84-2.44 4.21-5.21 9-5.21 17.55 0 14.67 20 18 43.05 21.94 7.36 1.24 15 2.53 22.63 4.24a225.58 225.58 0 0 1 34.08 10.68c9.72 3.73 17.4 6.68 26.43 6.68 16.18 0 28.25-9.77 39.92-19.21l2.15-1.75c5.53-4.49 21.5-4 34.34-3.64 3.46.1 6.73.2 9.65.2h6.22c13.48-.08 31.94-.18 42.23 2.5 3.75 1 6.2 3.72 9.29 7.19 5.87 6.56 13.17 14.75 33.39 14.75 19.39 0 29.55-8.71 41.32-18.8 7.16-6.13 14.56-12.48 25.07-17.86 3.92-2 7.62-3.87 11.08-5.61 22.64-11.38 35.11-17.65 35.11-27.82 0-9.91-12.24-16.5-20.34-20.86zM211.11 88.38a13.91 13.91 0 0 1 12.47 9c1.95 5.55 1.81 10.42.21 12.94 0 0-.22-1-.36-1.44a14.85 14.85 0 0 0-6.44-8.59 11.35 11.35 0 0 0-8.94-1.47c-4.26 1.13-8.41 5-8.91 18.79-5.16-10.47-2.31-18 .92-23 2.31-3.73 7.47-6.33 11.05-6.23zm-17.5 375C192 479.24 175.2 479 170.09 478.59c-9.81-.82-21.66-4.69-33.13-8.43-4.52-1.47-9.19-3-13.73-4.34-13.2-3.89-30.12-6.74-43.72-9-3.22-.55-6.27-1.06-9.05-1.55s-4.61-1.27-5.2-2.3c-1-1.65.38-5.25 1.93-9.41C69.27 438 72.11 430.34 72 421c0-3.91-1.47-8.3-2.84-12.56-1.62-5-3.28-10.17-1.93-12.62 1.23-2.23 6.75-2.49 11.6-2.49h2.26c3.55 0 6.62.06 8.75-.53 6.51-1.81 14.86-6.92 17.81-13.88.9-2.17 1.37-6.94 2-14 .37-4.12.74-8.37 1.22-10.58a3.55 3.55 0 0 1 2.11-2.55c1.65-.77 6.78-1.91 18.63 4.08 11.18 5.65 22.88 25.84 34.2 45.37 3.56 6.14 6.92 11.94 10.3 17.36 14.04 22.54 18.83 31.6 17.5 44.8zm128.84-31.56a68.74 68.74 0 0 1-4.55 10.9.58.58 0 0 1-1.08-.42 56.61 56.61 0 0 0 2.11-18.43c-.25-4.73-.4-7.59-2.66-8.51s-4.26.83-9.45 5.54c-1.1 1-2.36 2.14-3.78 3.4-10.8 9.47-26.88 20.68-55.61 23.37-16.84 1.59-27.59-4.63-30.92-8.14a2.16 2.16 0 0 0-3.07-.08 2.23 2.23 0 0 0-.51 2.29c2.12 6.84 1.2 12.26-.49 16.19-.95 2.2-1.85 2.05-2-.34-.25-4.64-1-9.88-3-14.19-3.11-6.94-7-14.34-8.89-17.88v-.05c3.24-1.49 8.86-4.83 11.37-10.88s4.48-18-9.82-31.74c-6.28-6.05-22.1-17.16-36.06-27-10.9-7.65-22.17-15.56-23.65-17.51-4.49-5.89-6.37-9.3-6.94-19.65.07-2.3.13-4.59.19-6.89l.27-2.49a.58.58 0 0 1 1.15 0 63.07 63.07 0 0 0 2 9.72c1.08 3.73 2.4 7.58 3.62 9.18 3.19 4.22 7.56 7.39 11.67 8.49a5.48 5.48 0 0 0 5-.72c2.93-2.33 2.65-7.6 2.19-16.34-.47-9-1.11-21.34 1.85-34.55 5.62-25 10.91-32.51 17.61-42 .86-1.22 1.75-2.47 2.65-3.79 1.44-2.08 3-4.1 4.67-6.23 7.47-9.61 15.93-20.49 13.92-40.95-.51-5.19-.76-8.83-.86-11.39a1 1 0 0 1 1.88-.59l.49.77 1.21 2c4.86 8 13.64 22.57 25.1 22.57a13.62 13.62 0 0 0 2.36-.21c23.39-3.93 51.9-30.25 52.17-30.51 3.12-3 2.84-6.14 1.64-7.91a5.18 5.18 0 0 0-6.45-1.72c-3.29 1.4-7.14 3.15-11.22 5-13.82 6.27-37 16.75-42.25 14.34a23.11 23.11 0 0 1-6.32-5.13 1 1 0 0 1 1.14-1.65c5.59 2.29 9.55 1.45 14.2-.08l1-.34c9.37-3.09 14.2-4.77 30.76-12.08a97.55 97.55 0 0 1 16.26-5.93c4-1 6.42-1.63 7.71-4.34a6.65 6.65 0 0 0-.5-7.13c-1.53-1.87-4.07-2.57-7-1.9-3.22.75-4.7 3-6.41 4.49-2.4 2.05-5 4.16-17.19 8.65-27 10-34.58 10.61-45.21 3.43-9.84-6.69-15.15-13.23-15.15-16 0-2.13 5.45-5.7 8.71-7.84 1.33-.87 2.59-1.69 3.62-2.46 4.34-3.22 13-11.39 13.38-11.73 5.4-5.41 17.91-2.18 25 2.58a2.23 2.23 0 0 0 1.72.41 2.14 2.14 0 0 0 1.68-2.58c-4.2-17.46-.13-27.34 4-32.55a22.58 22.58 0 0 1 17.48-8.48c12.81 0 21.76 10 21.76 24.42 0 11-2.82 16.79-5.48 20.3a1.73 1.73 0 0 1-2.58.18 1.78 1.78 0 0 1-.24-2.2A24.61 24.61 0 0 0 290 114a16.58 16.58 0 0 0-16.84-16.67c-3.94 0-13.48 1.5-16.77 15.44a29.81 29.81 0 0 0-.34 11.07l.08.71c.9 7.38 15.3 12.51 27.23 15.51 11.36 2.85 13 6.22 8.84 19.63s3.11 26.23 5.7 29.57a78.3 78.3 0 0 1 8.31 12.47 93.8 93.8 0 0 1 6.62 16.48c2.17 6.79 4.05 12.65 10.63 21.22 11.07 14.4 17.66 48.64 15 78-.21 2.41-.53 4.29-.77 5.67-.43 2.53-.72 4.2.66 5.38s3.16.7 7.26-.63l3.43-1.09a109.33 109.33 0 0 1 12.58-2.8 2.15 2.15 0 0 0 1.59-1.16c3.43-6.91 3.85-15.22 4-22.47q0-1.31.06-2.79c.19-7.77.45-18.93-2.95-32a1 1 0 0 1 1.93-.64 93 93 0 0 1 6.66 25.55c2.55 22.58-1.9 32.09-1.94 32.17a1.61 1.61 0 0 0 .95 2.25 17.12 17.12 0 0 1 6.95 4.67c1.46 1.66.93 2.4-1.14 1.62a36.26 36.26 0 0 0-12.77-2.29c-10.4 0-18.09 4.95-21.51 9.19-3.19 3.94-3.7 7.67-3.83 11.27l-.06.05c-7.48-.75-12.94 1.21-17.47 6.21l-.08.09c-6.26 7.75-4 24.63-1.29 38.48 1.28 6.45 5.59 25.52 1.73 37.68zm96.1 10.07c-15.71 6.71-25.43 14.51-34 21.39-5.65 4.53-11 8.81-17.28 12.14-10.12 5.34-24.91 6.53-33.27-7.7-2.37-4-.71-9.86 1.58-17.95 3.05-10.75 7.23-25.46 3.71-44.65-.94-5.12-1.77-9.51-2.49-13.31C334 377 332.9 371.43 334 367c.63-2.45 3.43-3 5.87-3a20.83 20.83 0 0 1 2.63.19 29.51 29.51 0 0 0 7 12.1c5.7 5.86 13.63 8.83 23.56 8.85 2.1.17 25.94 1.55 36.54-22.4 1.46.18 3.65.7 4.3 2.3 1.28 3.19-.27 8.91-1.52 13.5-.9 3.31-1.68 6.16-1.63 8.37.31 16 11 22.78 25.83 32.16 1.79 1.13 3.66 2.31 5.55 3.54S445 425 445 426c-.52 4.79-20 13.16-26.45 15.91z",fill:"currentColor"},null,-1)]))}const xf=Jr(M_,[["render",U_]]),F_={},B_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function H_(e,t){return w(),C("svg",B_,t[0]||(t[0]=[x("path",{d:"M349.13 136.86c-40.32 0-57.36 19.24-85.44 19.24-28.79 0-50.75-19.1-85.69-19.1-34.2 0-70.67 20.88-93.83 56.45-32.52 50.16-27 144.63 25.67 225.11 18.84 28.81 44 61.12 77 61.47h.6c28.68 0 37.2-18.78 76.67-19h.6c38.88 0 46.68 18.89 75.24 18.89h.6c33-.35 59.51-36.15 78.35-64.85 13.56-20.64 18.6-31 29-54.35-76.19-28.92-88.43-136.93-13.08-178.34-23-28.8-55.32-45.48-85.79-45.48z",fill:"currentColor"},null,-1),x("path",{d:"M340.25 32c-24 1.63-52 16.91-68.4 36.86-14.88 18.08-27.12 44.9-22.32 70.91h1.92c25.56 0 51.72-15.39 67-35.11 14.72-18.77 25.88-45.37 21.8-72.66z",fill:"currentColor"},null,-1)]))}const Sf=Jr(F_,[["render",H_]]),Z_={class:"moonbase:product-downloads"},q_=["data-last","onClick"],W_={class:"moonbase:sr-only"},z_={class:"moonbase:sr-only"},K_=["onClick"],G_=he({__name:"ProductDownloads",props:{downloads:{}},setup(e){const t=e,n={[Qt.Universal]:()=>Of,[Qt.Windows]:()=>Nf,[Qt.Linux]:()=>xf,[Qt.Mac]:()=>Sf},{downloadProduct:r}=ti(),o=Y(()=>t.downloads.reduce((s,i)=>({...s,[i.platform]:(s[i.platform]||[]).concat({...i,icon:n[i.platform]})}),{}));return(s,i)=>(w(),C("span",Z_,[(w(!0),C(Ce,null,an(o.value,(a,l,u)=>(w(),C(Ce,{key:l},[a.length===1?(w(),C("button",{key:0,type:"button",role:"button","data-last":u===Object.keys(o.value).length-1||void 0,onClick:c=>_(r)(a[0])},[x("span",W_,J(l.toString()),1),(w(),ke(ha(a[0].icon()),{class:"h-5 w-5 text-white","aria-hidden":"true"}))],8,q_)):(w(),ke(_(mf),{key:1,as:"div","data-last":u===Object.keys(o.value).length-1||void 0,class:"moonbase:product-downloads-group"},{default:we(()=>[z(_(vf),null,{default:we(()=>[x("span",z_,J(l.toString()),1),(w(),ke(ha(a[0].icon()),{"aria-hidden":"true"})),i[0]||(i[0]=x("svg",{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})],-1))]),_:2},1024),z(Ma,{name:"moonbase:scale"},{default:we(()=>[z(_(gf),{class:"moonbase:product-downloads-list"},{default:we(()=>[(w(!0),C(Ce,null,an(a,c=>(w(),C("button",{key:c.key,type:"button",role:"button",onClick:d=>_(r)(c)},[x("span",null,J(c.name),1)],8,K_))),128))]),_:2},1024)]),_:2},1024)]),_:2},1032,["data-last"]))],64))),128))]))}}),J_={class:"moonbase:product-activations"},Y_={key:0,scope:"col"},X_={key:0},Q_={colspan:"3"},e1={key:1},t1={key:0},n1=["onClick"],r1=he({__name:"ProductActivations",props:{productId:{}},emits:["revoked"],setup(e,{emit:t}){const n=e,r=t,{getProductActivations:o,revokeActivation:s}=ti(),i=R(null);Re(async()=>{let u=await o(n.productId);for(i.value=u.items.map(c=>({...c,revoking:!1}));u.hasMore&&u.next;)u=await o(n.productId,u.next),i.value.push(...u.items.map(c=>({...c,revoking:!1})))});const a=Y(()=>i.value&&i.value.some(u=>u.activationMethod===Ai.Online));async function l(u){u.revoking=!0,await s(u),r("revoked",u),i.value&&i.value.splice(i.value.indexOf(u),1)}return(u,c)=>(w(),C("table",J_,[x("thead",null,[x("tr",null,[c[1]||(c[1]=x("th",{scope:"col"}," Device ",-1)),c[2]||(c[2]=x("th",{scope:"col"}," Activation Method ",-1)),c[3]||(c[3]=x("th",{scope:"col"}," Last Online ",-1)),a.value?(w(),C("th",Y_,c[0]||(c[0]=[x("span",{class:"sr-only"},"Actions",-1)]))):fe("",!0)])]),x("tbody",null,[i.value?i.value.length===0?(w(),C("tr",e1,c[6]||(c[6]=[x("td",{colspan:"3"}," No activations found ",-1)]))):fe("",!0):(w(),C("tr",X_,[x("td",Q_,[z(Mt),c[4]||(c[4]=Te(" Loading activations.. "))]),c[5]||(c[5]=x("td",null,null,-1))])),(w(!0),C(Ce,null,an(i.value,d=>{var f;return w(),C("tr",{key:d.id},[x("td",null,J(d.name),1),x("td",null,J(d.activationMethod),1),x("td",null,J((f=d.lastValidatedAt)==null?void 0:f.toLocaleDateString()),1),a.value?(w(),C("td",t1,[x("button",{class:"text-red-400 flex whitespace-nowrap items-center",onClick:m=>l(d)},[d.revoking?(w(),ke(Mt,{key:0})):fe("",!0),c[7]||(c[7]=Te(" Revoke "))],8,n1)])):fe("",!0)])}),128))])]))}}),o1={class:"moonbase:products"},s1={key:0,scope:"col"},i1={key:1,scope:"col"},a1={key:0},l1={key:1},u1=["src"],c1={key:1,class:"moonbase:image-placeholder"},d1={key:1},f1={key:2},p1={key:0},h1=he({__name:"Products",setup(e){const{getProducts:t}=ti(),n=R(null);Re(async()=>{let s=await t();for(n.value=s.items;s.hasMore&&s.next;)s=await t(s.next),n.value.push(...s.items)});const r=Y(()=>n.value&&n.value.some(s=>s.downloads)),o=Y(()=>n.value&&n.value.some(s=>s.maxActivations&&s.maxActivations>0));return(s,i)=>(w(),C("table",o1,[x("thead",null,[x("tr",null,[i[0]||(i[0]=x("th",{scope:"col"}," Product ",-1)),o.value?(w(),C("th",s1," Activations ")):fe("",!0),r.value?(w(),C("th",i1," Downloads ")):fe("",!0)])]),x("tbody",null,[n.value?n.value.length===0?(w(),C("tr",l1,i[3]||(i[3]=[x("td",{colspan:"3"}," No products found ",-1)]))):fe("",!0):(w(),C("tr",a1,[x("td",null,[z(Mt),i[1]||(i[1]=Te(" Loading products.. "))]),i[2]||(i[2]=x("td",null,null,-1))])),(w(!0),C(Ce,null,an(n.value||[],a=>(w(),C("tr",{key:a.id},[x("td",null,[x("div",null,[a.iconUrl?(w(),C("img",{key:0,src:a.iconUrl,alt:""},null,8,u1)):(w(),C("div",c1)),x("span",null,J(a.name),1)])]),a.maxActivations&&a.maxActivations>0?(w(),ke(_(mf),{key:0,as:"td"},{default:we(()=>[z(_(vf),{class:"moonbase:button","data-variant":"secondary"},{default:we(()=>[i[4]||(i[4]=x("span",{class:"moonbase:sr-only"},"View activations",-1)),Te(" "+J(a.currentActivations)+" / "+J(a.maxActivations),1)]),_:2},1024),z(Ma,{name:"moonbase:scale"},{default:we(()=>[z(_(gf),null,{default:we(()=>[z(r1,{"product-id":a.id},null,8,["product-id"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):o.value?(w(),C("td",d1)):fe("",!0),r.value?(w(),C("td",f1,[a.currentVersion!=null?(w(),C("div",p1,[a.downloads?(w(),ke(G_,{key:0,downloads:a.downloads},null,8,["downloads"])):fe("",!0)])):fe("",!0)])):fe("",!0)]))),128))])]))}}),m1={class:"moonbase:redeem"},v1=["data-visible"],g1={key:1,class:"moonbase:redeem-voucher"},y1={key:0},b1={key:1},_1={class:"moonbase:redeem-voucher-products"},w1=["src"],E1={key:1,class:"moonbase:image-placeholder"},O1={key:0},N1={class:"moonbase:redeem-voucher-bundle"},x1=["src"],S1={key:1,class:"moonbase:image-placeholder"},k1={key:0},C1={class:"moonbase:redeem-voucher-bundle-products"},T1={class:"shrink-0"},P1=["src"],$1={key:1,class:"moonbase:image-placeholder"},D1=he({__name:"Redeem",setup(e){const{redeem:t}=Rg(),n=R(!1),r=R(null),o=R(null),s=R("");async function i(){n.value=!0,o.value=null;try{r.value=await t(s.value)}catch(a){throw o.value=a,a}n.value=!1}return(a,l)=>(w(),C("div",m1,[z(Ma,{mode:"out-in",name:"moonbase:slide-left"},{default:we(()=>[r.value?(w(),C("div",g1,[x("h3",null,[l[1]||(l[1]=Te(" You got: ")),x("strong",null,J(r.value.name),1)]),r.value.description?(w(),C("h4",y1,J(r.value.description),1)):fe("",!0),x("h4",null,[l[2]||(l[2]=Te(" Code: ")),x("strong",null,J(r.value.code),1)]),r.value.redeemsProducts.length>0?(w(),C("div",b1,[l[3]||(l[3]=x("span",null," Contains: ",-1)),x("div",_1,[(w(!0),C(Ce,null,an(r.value.redeemsProducts,({value:u,quantity:c})=>(w(),C("div",{key:u.id,class:"moonbase:redeem-voucher-product"},[x("div",null,[u.iconUrl?(w(),C("img",{key:0,src:u.iconUrl,alt:""},null,8,w1)):(w(),C("div",E1))]),x("div",null,[x("p",null,[Te(J(u.name)+" ",1),c!==1?(w(),C("span",O1,"x "+J(c),1)):fe("",!0)]),x("p",null,J(u.tagline),1)])]))),128)),(w(!0),C(Ce,null,an(r.value.redeemsBundles,({value:u,quantity:c})=>(w(),C("div",{key:u.id},[x("div",N1,[x("div",null,[u.iconUrl?(w(),C("img",{key:0,src:u.iconUrl,alt:""},null,8,x1)):(w(),C("div",S1))]),x("div",null,[x("p",null,[Te(J(u.name)+" ",1),c!==1?(w(),C("span",k1,"x "+J(c),1)):fe("",!0)]),x("p",null,J(u.tagline),1)])]),x("div",C1,[(w(!0),C(Ce,null,an(u.products,d=>(w(),C("div",{key:d.id,class:"moonbase:redeem-voucher-product"},[x("div",T1,[d.iconUrl?(w(),C("img",{key:0,src:d.iconUrl,alt:""},null,8,P1)):(w(),C("div",$1))]),x("div",null,[x("p",null,J(d.name),1),x("p",null,J(d.tagline),1)])]))),128))])]))),128))])])):fe("",!0)])):(w(),ke(Jn,{key:0,handler:i},{default:we(()=>{var u;return[z(Et,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),label:"Voucher code",name:"code",required:""},null,8,["modelValue"]),z(Yn,{label:"Redeem",success:"Redeem",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!o.value||void 0},J((u=o.value)==null?void 0:u.message),9,v1)]}),_:1}))]),_:1})]))}}),I1={class:"moonbase:customer"},A1=he({__name:"Customer",props:{open:{type:Boolean}},setup(e){const t=je();function n(s){switch(s){case ue.ViewAccount:return 0;case ue.ViewProducts:return 1;case ue.RedeemVoucher:return 2}return 0}const r=R(n(t.intent));ze(()=>t.intent,s=>{r.value=n(s)});function o(s){r.value=s}return(s,i)=>(w(),ke(bi,{open:s.open,onClose:i[0]||(i[0]=a=>_(t).reset())},{default:we(()=>[x("div",I1,[z(_(kb),{"selected-index":r.value,onChange:o},{default:we(()=>[z(_(Cb),null,{default:we(()=>[z(_(sl),null,{default:we(()=>i[1]||(i[1]=[Te("Account")])),_:1}),z(_(sl),null,{default:we(()=>i[2]||(i[2]=[Te(" Products ")])),_:1}),z(_(sl),null,{default:we(()=>i[3]||(i[3]=[Te("Redeem")])),_:1})]),_:1}),z(_(Tb),null,{default:we(()=>[z(_(il),null,{default:we(()=>[z($_)]),_:1}),z(_(il),null,{default:we(()=>[z(h1)]),_:1}),z(_(il),null,{default:we(()=>[z(D1)]),_:1})]),_:1})]),_:1},8,["selected-index"])])]),_:1},8,["open"]))}}),V1={class:"moonbase:auto-activate"},R1={key:0,class:"moonbase:loader"},j1={key:1,class:"moonbase:loader"},M1={key:2,class:"moonbase:loader"},L1={key:3},U1={key:0,class:"moonbase:auto-activate-product"},F1=["src"],B1={key:1,class:"moonbase:image-placeholder"},H1={key:1,class:"moonbase:loader"},Z1={key:2,class:"moonbase:loader"},q1={key:3,class:"moonbase:loader"},W1={key:4,class:"moonbase:auto-activate-content"},z1={key:0},K1={key:1},G1={class:"moonbase:auto-activate-cta"},J1=["href"],Y1={key:2,class:"moonbase:auto-activate-trial"},X1={class:"moonbase:auto-activate-cta"},Q1=he({__name:"AutoActivate",setup(e){const t=je(),{user:n,loaded:r}=wt(),o=t.getParameter("token"),{activationRequest:s,loading:i,fulfilling:a,completing:l,error:u,fulfillLicense:c,fulfillTrial:d,cancel:f}=Vg(o);ze(s,N=>{var O;!a.value&&!l.value&&(N==null?void 0:N.status)===en.Requested&&((O=N==null?void 0:N.licenseEligibility)!=null&&O.eligible)&&c()});function m(){f(),t.show(Ne.Customer,ue.ViewProducts)}function E(){t.enqueue(Ne.Activation,ue.ActivateProduct,t.parameters??void 0),t.show(Ne.Authentication,ue.SignIn)}return(N,O)=>{var I,j,$,W;return w(),C("div",V1,[_(i)||!_(r)?(w(),C("div",R1,[z(Mt)])):_(u)?(w(),C("div",j1,J(_(u)),1)):_(s)?(w(),C("div",L1,[_(s).product?(w(),C("div",U1,[_(s).product.iconUrl?(w(),C("img",{key:0,src:_(s).product.iconUrl,alt:""},null,8,F1)):(w(),C("div",B1)),x("div",null,[x("h2",null,J(_(s).product.name),1),x("h3",null,J(_(s).product.tagline),1)])])):fe("",!0),((I=_(s))==null?void 0:I.status)===_(en).Cancelled?(w(),C("div",H1,O[2]||(O[2]=[x("h3",null," Uh oh ",-1),x("p",null," This activation request was cancelled, open your app to try again. ",-1)]))):_(a)||_(l)?(w(),C("div",Z1,[z(Mt),x("p",null,"Activating "+J(_(s).product.name)+"...",1)])):((j=_(s))==null?void 0:j.status)===_(en).Completed?(w(),C("div",q1,O[3]||(O[3]=[x("h3",null," Done! ",-1),x("p",null," Your product is activated. ",-1)]))):(w(),C("div",W1,[_(n)?($=_(n).ownedProducts)!=null&&$.includes(_(s).product.id)?(w(),C("div",K1,[O[5]||(O[5]=x("p",null," You don't have enough free seats on your licenses to activate this device. Either free up a seat or purchase additional licenses. ",-1)),x("span",G1,[x("button",{role:"button",class:"moonbase:button",onClick:O[0]||(O[0]=y=>m())}," Licenses "),_(s).product&&_(s).product.website?(w(),C("a",{key:0,href:_(s).product.website,class:"moonbase:button"}," Purchase ",8,J1)):fe("",!0)])])):fe("",!0):(w(),C("div",z1,[O[4]||(O[4]=Te(" Please sign in to use a license ")),x("span",{class:"moonbase:auto-activate-cta"},[x("button",{role:"button",class:"moonbase:button",onClick:E}," Sign in ")])])),(W=_(s).trialEligibility)!=null&&W.eligible?(w(),C("div",Y1,[Te(" You are eligible for a "+J(_(s).trialEligibility.numberOfDaysPerProduct)+" day trial ",1),_(s).trialEligibility.existing?(w(),C(Ce,{key:0},[Te(" of which you have "+J(_(s).trialEligibility.numberOfDaysRemaining)+" days remaining ",1)],64)):fe("",!0),O[6]||(O[6]=Te(". ")),x("span",X1,[x("button",{role:"button",class:"moonbase:button",onClick:O[1]||(O[1]=y=>_(d)())}," Start trial ")])])):fe("",!0)]))])):(w(),C("div",M1," Could not find activation request "))])}}}),ew={class:"moonbase:activation"},tw=he({__name:"Activation",props:{open:{type:Boolean}},setup(e){const t=je();return(n,r)=>(w(),ke(bi,{open:n.open,onClose:r[0]||(r[0]=o=>_(t).reset())},{default:we(()=>[x("div",ew,[z(_(mi),{as:"h3"},{default:we(()=>r[1]||(r[1]=[Te(" Activate product ")])),_:1}),n.open&&_(t).intent===_(ue).ActivateProduct?(w(),ke(Q1,{key:0})):fe("",!0)])]),_:1},8,["open"]))}});function nw(e){const t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e<1)return`${e} B`;const n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),t.length-1);e=Number(e/1024**n);const r=t[n];return e>=10||e%1===0?`${e.toFixed(0)} ${r}`:`${e.toFixed(1)} ${r}`}const rw={class:"moonbase:download-product"},ow={key:0,class:"moonbase:loader"},sw={key:1,class:"moonbase:loader"},iw={key:2,class:"moonbase:loader"},aw={key:3},lw={class:"moonbase:download-product-product"},uw=["src"],cw={key:1,class:"moonbase:image-placeholder"},dw={key:0},fw=["data-open"],pw={key:0,class:"moonbase:download-product-content"},hw={key:1,class:"moonbase:download-product-content"},mw={key:2,class:"moonbase:download-product-content"},vw=["data-open"],gw={key:1,role:"list"},yw={class:"moonbase:download-product-download-name"},bw=["onClick"],_w={class:"moonbase:download-product-download-description"},ww={key:1,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},Ew={key:2,class:"moonbase:loader"},Ow=he({__name:"DownloadProduct",setup(e){const t=je(),{user:n,loaded:r}=wt(),{getProduct:o,downloadProduct:s}=ti(),i={[Qt.Universal]:()=>Of,[Qt.Windows]:()=>Nf,[Qt.Linux]:()=>xf,[Qt.Mac]:()=>Sf},a=R(null),l=R([]),u=R(null),c=R(!0),d=R(!1),f=Y(()=>t.getParameter("key")),m=Y(()=>{var O,I;return(I=(O=a.value)==null?void 0:O.downloads)==null?void 0:I.filter(j=>!f.value||j.key===f.value)});Re(async()=>{const O=t.getParameter("product_id"),I=t.getParameter("version");if(!O){u.value="Link is broken";return}try{a.value=await o(O,I||void 0)}catch(j){u.value=j.message}c.value=!1});function E(){t.enqueue(Ne.Download,ue.DownloadProduct,t.parameters??void 0),t.show(Ne.Authentication,ue.SignIn)}async function N(O){l.value.push(O.key),await s(O),l.value=l.value.filter(I=>I!==O.key)}return(O,I)=>{var j,$,W,y,M;return w(),C("div",rw,[c.value||!_(r)?(w(),C("div",ow,[z(Mt)])):u.value?(w(),C("div",sw,J(u.value),1)):a.value?(w(),C("div",aw,[x("div",lw,[a.value.iconUrl?(w(),C("img",{key:0,src:a.value.iconUrl,alt:""},null,8,uw)):(w(),C("div",cw)),x("div",null,[x("h2",null,[Te(J(a.value.name)+" ",1),x("span",null,"v"+J(a.value.version||a.value.currentVersion),1),a.value.prerelease?(w(),C("span",dw," (pre-release)")):fe("",!0)]),x("h3",null,J(a.value.tagline),1)]),a.value.releaseDescription&&(!a.value.downloadsNeedsUser||_(n))&&(!a.value.downloadsNeedsOwnership||($=(j=_(n))==null?void 0:j.ownedProducts)!=null&&$.includes(a.value.id))?(w(),C("button",{key:2,"data-open":d.value||void 0,onClick:I[0]||(I[0]=P=>d.value=!d.value)},I[1]||(I[1]=[x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5"})],-1),x("span",null," Details ",-1)]),8,fw)):fe("",!0)]),a.value.downloadsNeedsUser&&!_(n)?(w(),C("div",pw,[I[2]||(I[2]=Te(" Please sign in to download product ")),x("span",{class:"moonbase:download-product-cta"},[x("button",{role:"button",class:"moonbase:button",onClick:E}," Sign in ")])])):a.value.downloadsNeedsOwnership&&!((y=(W=_(n))==null?void 0:W.ownedProducts)!=null&&y.includes(a.value.id))?(w(),C("div",hw," This product requires ownership to download ")):(w(),C("div",mw,[a.value.releaseDescription?(w(),C("div",{key:0,class:"moonbase:download-product-release-description","data-open":d.value||void 0},[x("div",null,[x("h3",null," v"+J(a.value.version||a.value.currentVersion)+" Release Notes ",1),x("p",null,J(a.value.releaseDescription),1)])],8,vw)):fe("",!0),(M=a.value)!=null&&M.downloads&&a.value.downloads.length>0?(w(),C("ul",gw,[(w(!0),C(Ce,null,an(m.value,P=>(w(),C("li",{key:P.key},[x("div",null,[x("p",yw,[x("button",{onClick:re=>N(P)},[I[3]||(I[3]=x("span",{class:"moonbase:download-product-clicker"},null,-1)),Te(" "+J(P.name),1)],8,bw)]),x("p",_w,[(w(),ke(ha(i[P.platform]()),{"aria-hidden":"true"})),Te(" "+J(P.platform)+" ",1),I[4]||(I[4]=x("span",null," |",-1)),Te(" "+J(_(nw)(P.size)),1)])]),x("div",null,[l.value.includes(P.key)?(w(),ke(Mt,{key:0})):(w(),C("svg",ww,I[5]||(I[5]=[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"},null,-1)])))])]))),128))])):(w(),C("div",Ew," No downloadable files found "))]))])):(w(),C("div",iw," Could not find product "))])}}}),Nw={class:"moonbase:download"},xw=he({__name:"Download",props:{open:{type:Boolean}},setup(e){const t=je();return(n,r)=>(w(),ke(bi,{open:n.open,onClose:r[0]||(r[0]=o=>_(t).reset())},{default:we(()=>[x("div",Nw,[z(_(mi),{as:"h3"},{default:we(()=>r[1]||(r[1]=[Te(" Download product ")])),_:1}),n.open&&_(t).intent===_(ue).DownloadProduct?(w(),ke(Ow,{key:0})):fe("",!0)])]),_:1},8,["open"]))}});function Sw(){const e=R(null),t=[/^user\.name$/,/^user\.email$/,/^cart\.item_count$/,/^product\.[a-z\-]+\.name$/,/^product\.[a-z\-]+\.price$/,/^product\.[a-z\-]+\.original_price$/,/^bundle\.[a-z\-]+\.name$/,/^bundle\.[a-z\-]+\.price$/,/^bundle\.[a-z\-]+\.original_price$/],n=R({}),r=Y(()=>n.value.user||[]),o=Y(()=>n.value.cart||[]),s=Y(()=>n.value.product||[]),i=Y(()=>n.value.bundle||[]),a=[/^user$/,/^cart.has_items$/,/^product\.[a-z\-]+(\.has_discount)?$/,/^bundle\.[a-z\-]+(\.has_discount)?$/],l=R({}),u=Y(()=>l.value.user||[]),c=Y(()=>l.value.cart||[]),d=Y(()=>l.value.product||[]),f=Y(()=>l.value.bundle||[]),m=wt(),{currency:E,items:N}=ni(),O=Ag(),I=Ig();ze([r,u,m.user],([j,$,W])=>{if(j){for(const y of j)if(y.textContent&&!y.dataset.moonbaseOriginal&&(y.dataset.moonbaseOriginal=y.textContent),W)switch(y.dataset.moonbaseRender){case"user.name":y.textContent=W.name;break;case"user.email":y.textContent=W.email;break}else y.dataset.moonbaseOriginal?y.textContent=y.dataset.moonbaseOriginal:y.textContent="";for(const y of $)y.dataset.moonbaseOriginalHidden||(y.dataset.moonbaseOriginalHidden=y.hidden?"true":"false"),W?y.hidden=y.dataset.moonbaseIf==="!user":y.hidden=y.dataset.moonbaseIf==="user"}},{immediate:!0}),ze([o,c,N],([j,$,W])=>{if(j){for(const y of j)switch(y.textContent&&!y.dataset.moonbaseOriginal&&(y.dataset.moonbaseOriginal=y.textContent),y.dataset.moonbaseRender){case"cart.item_count":y.textContent=W.reduce((M,P)=>M+P.quantity,0).toString();break}for(const y of $){if(!y.dataset.moonbaseIf)return;const M=y.dataset.moonbaseIf.split("."),P=M[1];let re=!1;switch(P){case"has_items":re=W.length>0;break}M[0].startsWith("!")&&(re=!re),y.dataset.moonbaseOriginalHidden||(y.dataset.moonbaseOriginalHidden=y.hidden?"true":"false"),re?y.hidden=!1:y.hidden=!0}}},{immediate:!0}),ze([s,d,O,E],([j,$,W,y])=>{var M,P,re;if(j){for(const S of j){const A=(M=S.dataset.moonbaseRender)==null?void 0:M.split(".")[1],D=(P=S.dataset.moonbaseRender)==null?void 0:P.split(".")[2],k=W.find(L=>L.id===A);if(S.textContent&&!S.dataset.moonbaseOriginal&&(S.dataset.moonbaseOriginal=S.textContent),k&&k.defaultVariation)switch(D){case"name":S.textContent=k.name;break;case"price":S.textContent=Dt(k.defaultVariation.price[y],y);break;case"original_price":S.textContent=Dt(k.defaultVariation.originalPrice[y],y);break}else S.dataset.moonbaseOriginal?S.textContent=S.dataset.moonbaseOriginal:S.textContent=""}for(const S of $){if(!S.dataset.moonbaseIf)return;const A=S.dataset.moonbaseIf.split("."),D=A.length===2?"product":A[2],k=A[1],L=W.find(h=>h.id===k);let ne=!1;switch(D){case"product":ne=!!L;break;case"has_discount":ne=!!((re=L==null?void 0:L.defaultVariation)!=null&&re.hasDiscount);break}A[0].startsWith("!")&&(ne=!ne),S.dataset.moonbaseOriginalHidden||(S.dataset.moonbaseOriginalHidden=S.hidden?"true":"false"),ne?S.hidden=!1:S.hidden=!0}}},{immediate:!0}),ze([i,f,I,E],([j,$,W,y])=>{var M,P,re;if(j){for(const S of j){const A=(M=S.dataset.moonbaseRender)==null?void 0:M.split(".")[1],D=(P=S.dataset.moonbaseRender)==null?void 0:P.split(".")[2],k=W.find(L=>L.id===A);if(S.textContent&&!S.dataset.moonbaseOriginal&&(S.dataset.moonbaseOriginal=S.textContent),k&&k.defaultVariation)switch(D){case"name":S.textContent=k.name;break;case"price":S.textContent=Dt(k.defaultVariation.price[y],y);break;case"original_price":S.textContent=Dt(k.defaultVariation.originalPrice[y],y);break}else S.dataset.moonbaseOriginal?S.textContent=S.dataset.moonbaseOriginal:S.textContent=""}for(const S of $){if(!S.dataset.moonbaseIf)return;const A=S.dataset.moonbaseIf.split("."),D=A.length===2?"bundle":A[2],k=A[1],L=W.find(h=>h.id===k);let ne=!1;switch(D){case"bundle":ne=!!L;break;case"has_discount":ne=!!((re=L==null?void 0:L.defaultVariation)!=null&&re.hasDiscount);break}A[0].startsWith("!")&&(ne=!ne),S.dataset.moonbaseOriginalHidden||(S.dataset.moonbaseOriginalHidden=S.hidden?"true":"false"),ne?S.hidden=!1:S.hidden=!0}}},{immediate:!0}),Re(()=>{var M;e.value=new MutationObserver((P,re)=>{var S,A;for(const D of P)if(D.type==="childList"){for(const k of D.addedNodes){const L=k;if(L.dataset&&L.dataset.moonbaseRender){const ne=L.dataset.moonbaseRender;if(!ne||!t.some(h=>h.test(ne)))console.warn(`Element has an unknown Moonbase target (${ne})`,L);else if(ne){const h=ne.split(".")[0];n.value[h]=n.value[h]||[],n.value[h].push(L)}}if(L.dataset&&L.dataset.moonbaseIf){const ne=(S=L.dataset.moonbaseIf)==null?void 0:S.replace(/^!/,"");if(!ne||!a.some(h=>h.test(ne)))console.warn(`Element has an unknown Moonbase target (${ne})`,L);else if(ne){const h=ne.split(".")[0];l.value[h]=l.value[h]||[],l.value[h].push(L)}}}for(const k of D.removedNodes){const L=k;if(L.dataset&&L.dataset.moonbaseRender){const ne=L.dataset.moonbaseRender;if(!ne||!t.some(h=>h.test(ne)))console.warn(`Element has an unknown Moonbase target (${ne})`,L);else if(ne){const h=ne.split(".")[0];n.value[h]&&(n.value[h]=n.value[h].filter(V=>V!==L))}}if(L.dataset&&L.dataset.moonbaseIf){const ne=(A=L.dataset.moonbaseIf)==null?void 0:A.replace(/^!/,"");if(!ne||!a.some(h=>h.test(ne)))console.warn(`Element has an unknown Moonbase target (${ne})`,L);else if(ne){const h=ne.split(".")[0];l.value[h]&&(l.value[h]=l.value[h].filter(V=>V!==L))}}}}else if(D.type==="attributes"&&D.attributeName){const k=D.target.getAttribute(D.attributeName);fl(`The ${D.attributeName} attribute was modified from ${D.oldValue} to ${k}.`);const L=D.target;if(D.attributeName==="data-moonbase-render"){const ne=D.oldValue;if(ne){const h=ne.split(".")[0];n.value[h]&&(n.value[h]=n.value[h].filter(V=>V!==L))}if(!k||!t.some(h=>h.test(k)))k&&console.warn(`Element has an unknown Moonbase target (${k})`,L),L.dataset.moonbaseOriginal&&(L.textContent=L.dataset.moonbaseOriginal);else if(k){const h=k==null?void 0:k.split(".")[0];n.value[h]=n.value[h]||[],n.value[h].includes(L)||n.value[h].push(L)}}if(D.attributeName==="data-moonbase-if"){const ne=D.oldValue;if(ne){const h=ne.split(".")[0];l.value[h]&&(l.value[h]=l.value[h].filter(V=>V!==L))}if(!k||!a.some(h=>h.test(k)))k&&console.warn(`Element has an unknown Moonbase target (${k})`,L),L.dataset.moonbaseOriginalHidden==="true"&&(L.hidden=!0);else if(k){const h=k==null?void 0:k.split(".")[0];l.value[h]=l.value[h]||[],l.value[h].includes(L)||l.value[h].push(L)}}}else fl(`A ${D.type} mutation took place.`)}),e.value.observe(document.body,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["data-moonbase-if","data-moonbase-render"]});const j={},$=document.querySelectorAll("[data-moonbase-render]");for(const P of $){const re=P.dataset.moonbaseRender;if(!re||!t.some(S=>S.test(re)))console.warn(`Element has an unknown Moonbase target (${re})`,P);else if(re){const S=re.split(".")[0];j[S]=j[S]||[],j[S].push(P)}}n.value=j;const W={},y=document.querySelectorAll("[data-moonbase-if]");for(const P of y){const re=(M=P.dataset.moonbaseIf)==null?void 0:M.replace(/^!/,"");if(!re||!a.some(S=>S.test(re)))console.warn(`Element has an unknown Moonbase target (${re})`,P);else if(re){const S=re.split(".")[0];W[S]=W[S]||[],W[S].push(P)}}l.value=W}),dt(()=>e.value&&e.value.disconnect())}const kw=he({__name:"App",setup(e){const t=Se(Nr),n=je();return ze(()=>[n.active,n.intent],([r,o])=>{}),Sw(),(r,o)=>{var s;return w(),C(Ce,null,[(s=_(t))!=null&&s.toolbar.enabled?(w(),ke(gy,{key:0})):fe("",!0),z(S_,{open:_(n).active===_(Ne).Cart},null,8,["open"]),z(Fb,{open:_(n).active===_(Ne).Authentication},null,8,["open"]),z(tw,{open:_(n).active===_(Ne).Activation},null,8,["open"]),z(xw,{open:_(n).active===_(Ne).Download},null,8,["open"]),z(A1,{open:_(n).active===_(Ne).Customer},null,8,["open"])],64)}}});function _i(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof HTMLElement)}function pl(e,...t){if(t.length===0)return e;const n=t.shift();if(!n)return e;if(_i(e)&&_i(n)){for(const r in e)if(Object.prototype.hasOwnProperty.call(n,r)){const o=n[r];_i(o)&&_i(e[r])?e[r]=pl(e[r],o):o!==void 0&&(e[r]=o)}}return pl(e,...t)}class Cw{constructor(){Tr(this,"initialized",!1);Tr(this,"pinia");Tr(this,"storefront");Tr(this,"options")}async setup(t,n){if(typeof window>"u")throw console.error("Moonbase setup must be done client-side"),new Error("Moonbase setup must be done client-side");if(document.getElementById("moonbase")){console.warn("Moonbase has already been initialized!");return}this.options=pl(py,n??{}),fl("Merged options:",this.options);const r=document.createElement("div");if(r.id="moonbase",r.classList.add("moonbase"),(this.options.target??document.body).append(r),this.storefront=jg(t),this.pinia=ly(),gg(kw).use(this.storefront).use(this.pinia).provide(Nr,this.options).mount("#moonbase"),this.initialized=!0,window&&window.location){const l=new URLSearchParams(window.location.search),u=l.get("mb_intent");if(u&&Object.values(ue).includes(u)){const c=Object.fromEntries([...l.entries()].filter(([f])=>f.startsWith("mb_")).map(([f,m])=>[f.substring(3),m]));if(u===ue.Checkout&&c.complete)return;this[u](c);for(const f of Object.keys(c))l.delete(`mb_${f}`);const d=l.toString();window.history.replaceState(null,"",window.location.href.split("?")[0]+(d?`?${d}`:""))}}const i=je(this.pinia),a=wt(this.storefront);this.storefront.onCheckoutClosed(l=>{l===ue.ViewProducts&&(a.user?i.show(Ne.Customer,ue.ViewProducts):i.show(Ne.Cart,ue.ViewCart))})}sign_in(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");je(this.pinia).show(Ne.Authentication,ue.SignIn,t)}sign_up(t){var r;if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!((r=this.options)!=null&&r.auth.signUp.enabled))throw new Error("Sign ups are not enabled");je(this.pinia).show(Ne.Authentication,ue.SignUp,t)}forgot_password(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");je(this.pinia).show(Ne.Authentication,ue.ForgotPassword,t)}reset_password(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");je(this.pinia).show(Ne.Authentication,ue.ResetPassword,t)}confirm_account(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");je(this.pinia).show(Ne.Authentication,ue.ConfirmAccount,t)}confirm_email(){}confirm_email_change(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");const n=je(this.pinia);wt(this.storefront).user.value?n.show(Ne.Authentication,ue.ConfirmEmailChange,t):(n.show(Ne.Authentication,ue.SignIn),n.enqueue(Ne.Authentication,ue.ConfirmEmailChange,t))}view_account(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");const t=je(this.pinia);wt(this.storefront).user.value?t.show(Ne.Customer,ue.ViewAccount):(t.show(Ne.Authentication,ue.SignIn),t.enqueue(Ne.Customer,ue.ViewAccount))}view_products(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");je(this.pinia).show(Ne.Cart,ue.ViewCart)}redeem_voucher(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");je(this.pinia).show(Ne.Cart,ue.ViewCart,t)}download_product(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");je(this.pinia).show(Ne.Download,ue.DownloadProduct,t)}activate_product(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!(t!=null&&t.token))throw new Error("You need to provide a token when activating a product");je(this.pinia).show(Ne.Activation,ue.ActivateProduct,t)}view_cart(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");je(this.pinia).show(Ne.Cart,ue.ViewCart)}async add_to_cart(t){var o,s,i,a;if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!(t!=null&&t.product_id)&&!(t!=null&&t.bundle_id))throw new Error("You need to provide a product or bundle ID when adding to cart");const n=ni(this.storefront);if(t!=null&&t.product_id){const l=vd(t.product_id,this.storefront);if(l.value)n.addToCart(l.value,(o=l.value.variations)==null?void 0:o.find(u=>u.id===t.variation_id));else{await this.storefront.loadedStorefrontPromise;const u=vd(t.product_id,this.storefront);if(u.value)n.addToCart(u.value,(s=u.value.variations)==null?void 0:s.find(c=>c.id===t.variation_id));else throw new Error(`Product '${t.product_id}' not found`)}}if(t!=null&&t.bundle_id){const l=md(t.bundle_id,this.storefront);if(l.value)n.addToCart(l.value,(i=l.value.variations)==null?void 0:i.find(u=>u.id===t.variation_id));else{await this.storefront.loadedStorefrontPromise;const u=md(t.bundle_id,this.storefront);if(u.value)n.addToCart(u.value,(a=u.value.variations)==null?void 0:a.find(c=>c.id===t.variation_id));else throw new Error(`Bundle '${t.bundle_id}' not found`)}}je(this.pinia).show(Ne.Cart,ue.AddToCart)}checkout(t){var r;if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(t!=null&&t.complete)return;ni(this.storefront).checkout({redirect:((r=this.options)==null?void 0:r.checkout.redirect)||!1,returnUrl:`${window.location.pathname}?mb_intent=view_products`})}close_checkout(){var t;if(!this.initialized)throw new Error("Moonbase has not been set up yet");(t=this.storefront)==null||t.closeCheckout()}}const kf=new Cw;globalThis&&(globalThis.Moonbase?console.warn("Multiple instances of Moonbase detected, only one will be initialized"):globalThis.Moonbase=kf),kt.MoonbaseIntent=ue,kt.default=kf,Object.defineProperties(kt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
24
+ `));const f=Fd(c.props??{},i,l),m=qt(c,f,!0);for(const E in f)E.startsWith("on")&&(m.props||(m.props={}),m.props[E]=f[E]);return m}return Array.isArray(a)&&a.length===1?a[0]:a}return Ue(s,Object.assign({},i,l),{default:()=>a})}function Ud(e){return e.flatMap(t=>t.type===Te?Ud(t.children):[t])}function Fd(...e){if(e.length===0)return{};if(e.length===1)return e[0];const t={},n={};for(const r of e)for(const o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]??(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(const r in n)Object.assign(t,{[r](o,...s){const i=n[r];for(const a of i){if(o instanceof Event&&o.defaultPrevented)return;a(o,...s)}}});return t}function Ya(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Yy(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var er=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(er||{});let tr=he({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:r,...o}=e,s={"aria-hidden":(r&2)===2?!0:o["aria-hidden"]??void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return rt({ourProps:s,theirProps:o,slot:{},attrs:n,slots:t,name:"Hidden"})}}});function Xy(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function X(e){if(e==null||e.value==null)return null;let t=e.value.$el??e.value;return t instanceof Node?t:null}function kn(e){if(Ko.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e&&Object.prototype.hasOwnProperty.call(e,"value")){const t=X(e);if(t)return t.ownerDocument}return document}const fi=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var We=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(We||{}),Cn=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Cn||{});function pi(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(fi)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Xa=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Xa||{});function Bd(e,t=0){var n;return e===((n=kn(e))==null?void 0:n.body)?!1:nt(t,{0(){return e.matches(fi)},1(){let r=e;for(;r!==null;){if(r.matches(fi))return!0;r=r.parentElement}return!1}})}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.moonbaseFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.moonbaseFocusVisible:e.detail===0&&(document.documentElement.dataset.moonbaseFocusVisible="")},!0));function xr(e){e==null||e.focus({preventScroll:!0})}const Qy=["textarea","input"].join(",");function eb(e){var t;return((t=e==null?void 0:e.matches)==null?void 0:t.call(e,Qy))??!1}function Yr(e,t=n=>n){return e.slice().sort((n,r)=>{const o=t(n),s=t(r);if(o===null||s===null)return 0;const i=o.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function at(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){const s=(Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)??document;let i=Array.isArray(e)?n?Yr(e):e:pi(e);o.length>0&&i.length>1&&(i=i.filter(m=>!o.includes(m))),r=r??s.activeElement;const a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,i.indexOf(r))-1;if(t&4)return Math.max(0,i.indexOf(r))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{};let c=0;const d=i.length;let f;do{if(c>=d||c+d<=0)return 0;let m=l+c;if(t&16)m=(m+d)%d;else{if(m<0)return 3;if(m>=d)return 1}f=i[m],f==null||f.focus(u),c+=a}while(f!==s.activeElement);return t&6&&eb(f)&&f.select(),2}let Sr=[];Xy(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Sr[0]===t.target)return;let n=t.target;n=n.closest(fi),Sr.unshift(n??t.target),Sr=Sr.filter(r=>r!=null&&r.isConnected),Sr.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function hi(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Hd(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());const t=new Set;for(const n of e.value){const r=X(n);r instanceof HTMLElement&&t.add(r)}return t}var Zd=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Zd||{});const Go=Object.assign(he({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:R(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){const o=R(null);r({el:o,$el:o});const s=Y(()=>kn(o)),i=R(!1);je(()=>i.value=!0),dt(()=>i.value=!1),nb({ownerDocument:s},Y(()=>i.value&&!!(e.features&16)));const a=rb({ownerDocument:s,container:o,initialFocus:Y(()=>e.initialFocus)},Y(()=>i.value&&!!(e.features&2)));ob({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},Y(()=>i.value&&!!(e.features&8)));const l=Ja();function u(m){const E=X(o);if(!E)return;(O=>O())(()=>{nt(l.value,{[$t.Forwards]:()=>{at(E,We.First,{skipElements:[m.relatedTarget]})},[$t.Backwards]:()=>{at(E,We.Last,{skipElements:[m.relatedTarget]})}})})}const c=R(!1);function d(m){m.key==="Tab"&&(c.value=!0,requestAnimationFrame(()=>{c.value=!1}))}function f(m){if(!i.value)return;const E=Hd(e.containers);X(o)instanceof HTMLElement&&E.add(X(o));const x=m.relatedTarget;x instanceof HTMLElement&&x.dataset.moonbaseFocusGuard!=="true"&&(qd(E,x)||(c.value?at(X(o),nt(l.value,{[$t.Forwards]:()=>We.Next,[$t.Backwards]:()=>We.Previous})|We.WrapAround,{relativeTo:m.target}):m.target instanceof HTMLElement&&xr(m.target)))}return()=>{const m={},E={ref:o,onKeydown:d,onFocusout:f},{features:x,initialFocus:O,containers:I,...j}=e;return Ue(Te,[!!(x&4)&&Ue(tr,{as:"button",type:"button","data-moonbase-focus-guard":!0,onFocus:u,features:er.Focusable}),rt({ourProps:E,theirProps:{...t,...j},slot:m,attrs:t,slots:n,name:"FocusTrap"}),!!(x&4)&&Ue(tr,{as:"button",type:"button","data-moonbase-focus-guard":!0,onFocus:u,features:er.Focusable})])}}}),{features:Zd});function tb(e){const t=R(Sr.slice());return ze([e],([n],[r])=>{r===!0&&n===!1?hi(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Sr.slice())},{flush:"post"}),()=>t.value.find(n=>n!=null&&n.isConnected)??null}function nb({ownerDocument:e},t){const n=tb(t);je(()=>{pt(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&xr(n())},{flush:"post"})}),dt(()=>{t.value&&xr(n())})}function rb({ownerDocument:e,container:t,initialFocus:n},r){const o=R(null),s=R(!1);return je(()=>s.value=!0),dt(()=>s.value=!1),je(()=>{ze([t,n,r],(i,a)=>{if(i.every((u,c)=>(a==null?void 0:a[c])===u)||!r.value)return;const l=X(t);l&&hi(()=>{var d,f;if(!s.value)return;const u=X(n),c=(d=e.value)==null?void 0:d.activeElement;if(u){if(u===c){o.value=c;return}}else if(l.contains(c)){o.value=c;return}u?xr(u):at(l,We.First|We.NoScroll)===Cn.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(f=e.value)==null?void 0:f.activeElement})},{immediate:!0,flush:"post"})}),o}function ob({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;Ga((s=e.value)==null?void 0:s.defaultView,"focus",i=>{if(!o.value)return;const a=Hd(n);X(t)instanceof HTMLElement&&a.add(X(t));const l=r.value;if(!l)return;const u=i.target;u&&u instanceof HTMLElement?qd(a,u)?(r.value=u,xr(u)):(i.preventDefault(),i.stopPropagation(),xr(l)):xr(r.value)},!0)}function qd(e,t){for(const n of e)if(n.contains(t))return!0;return!1}function sb(e){const t=Bh(e.getSnapshot());return dt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Jo(){const e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){const r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){const r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){const r={current:!0};return hi(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){const s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){const r=Jo();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{const r=e.indexOf(n);if(r>=0)for(const o of e.splice(r,1))o()}},dispose(){for(const n of e.splice(0))n()}};return t}function ib(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...s){let i=t[o].call(n,...s);i&&(n=i,r.forEach(a=>a()))}}}function ab(){let e;return{before({doc:t}){const n=t.documentElement,r=t.defaultView??window;e=Math.max(0,r.innerWidth-n.clientWidth)},after({doc:t,d:n}){const r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),s=Math.max(0,e-o);n.style(r,"paddingRight",`${s}px`)}}}function Wd(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function lb(){return/Android/gi.test(window.navigator.userAgent)}function ub(){return Wd()||lb()}function cb(){return Wd()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(s=>s()).some(s=>s.contains(o))}t.microTask(()=>{if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){const i=Jo();i.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>i.dispose()))}const o=window.scrollY??window.pageYOffset;let s=null;t.addEventListener(e,"click",i=>{if(i.target instanceof HTMLElement)try{const a=i.target.closest("a");if(!a)return;const{hash:l}=new URL(a.href),u=e.querySelector(l);u&&!r(u)&&(s=u)}catch{}},!0),t.addEventListener(e,"touchstart",i=>{if(i.target instanceof HTMLElement)if(r(i.target)){let a=i.target;for(;a.parentElement&&r(a.parentElement);)a=a.parentElement;t.style(a,"overscrollBehavior","contain")}else t.style(i.target,"touchAction","none")}),t.addEventListener(e,"touchmove",i=>{if(i.target instanceof HTMLElement){if(i.target.tagName==="INPUT")return;if(r(i.target)){let a=i.target;for(;a.parentElement&&a.dataset.moonbasePortal!==""&&!(a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth);)a=a.parentElement;a.dataset.moonbasePortal===""&&i.preventDefault()}else i.preventDefault()}},{passive:!1}),t.add(()=>{const i=window.scrollY??window.pageYOffset;o!==i&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function db(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function fb(e){const t={};for(const n of e)Object.assign(t,n(t));return t}const kr=ib(()=>new Map,{PUSH(e,t){const n=this.get(e)??{doc:e,count:0,d:Jo(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){const n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){const r={doc:e,d:t,meta:fb(n)},o=[cb(),ab(),db()];o.forEach(({before:s})=>s==null?void 0:s(r)),o.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});kr.subscribe(()=>{const e=kr.getSnapshot(),t=new Map;for(const[n]of e)t.set(n,n.documentElement.style.overflow);for(const n of e.values()){const r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&kr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&kr.dispatch("TEARDOWN",n)}});function pb(e,t,n){const r=sb(kr),o=Y(()=>{const s=e.value?r.value.get(e.value):void 0;return s?s.count>0:!1});return ze([e,t],([s,i],[a],l)=>{if(!s||!i)return;kr.dispatch("PUSH",s,n);let u=!1;l(()=>{u||(kr.dispatch("POP",a??s,n),u=!0)})},{immediate:!0}),o}let hb=0;function mb(){return++hb}function Lt(){return mb()}const Qa=new Map,Yo=new Map;function zd(e,t=R(!0)){pt(n=>{if(!t.value)return;const r=X(e);if(!r)return;n(()=>{if(!r)return;const s=Yo.get(r)??1;if(s===1?Yo.delete(r):Yo.set(r,s-1),s!==1)return;const i=Qa.get(r);i&&(i["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",i["aria-hidden"]),r.inert=i.inert,Qa.delete(r))});const o=Yo.get(r)??0;Yo.set(r,o+1),o===0&&(Qa.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function Xo(e,t,n,r){Ko.isServer||pt(o=>{e.value&&(document.addEventListener(t,n,r),o(()=>document.removeEventListener(t,n,r)))})}const Kd=30;function Gd(e,t,n=Y(()=>!0)){function r(i,a){if(i.defaultPrevented)return;const l=a(i);if(l===null||!l.getRootNode().contains(l))return;const u=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(const c of u){if(c===null)continue;const d=c instanceof HTMLElement?c:X(c);if(d!=null&&d.contains(l)||i.composed&&i.composedPath().includes(d))return}return!Bd(l,Xa.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}const o=R(null);Xo(n,"pointerdown",i=>{var a,l;o.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target},!0),Xo(n,"mousedown",i=>{var a,l;o.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target},!0),Xo(n,"click",i=>{ub()||o.value&&(r(i,()=>o.value),o.value=null)},!0);const s={x:0,y:0};Xo(n,"touchstart",i=>{s.x=i.touches[0].clientX,s.y=i.touches[0].clientY},!0),Xo(n,"touchend",i=>{const a={x:i.changedTouches[0].clientX,y:i.changedTouches[0].clientY};if(!(Math.abs(a.x-s.x)>=Kd||Math.abs(a.y-s.y)>=Kd))return r(i,()=>i.target instanceof HTMLElement?i.target:null)},!0),Ld(n,"blur",i=>r(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Jd({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){const r=R(null),o=kn(r);function s(){var a,l;const i=[];for(const u of e)u!==null&&(u instanceof HTMLElement?i.push(u):"value"in u&&u.value instanceof HTMLElement&&i.push(u.value));if(t!=null&&t.value)for(const u of t.value)i.push(u);for(const u of(o==null?void 0:o.querySelectorAll("html > *, body > *"))??[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="moonbase"&&(u.contains(X(r))||u.contains((l=(a=X(r))==null?void 0:a.getRootNode())==null?void 0:l.host)||i.some(c=>u.contains(c))||i.push(u));return i}return{resolveContainers:s,contains(i){return s().some(a=>a.contains(i))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:Ue(tr,{features:er.Hidden,ref:r})}}}let Yd=Symbol("Context");var lt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(lt||{});function vb(){return mi()!==null}function mi(){return ke(Yd,null)}function Xd(e){ft(Yd,e)}const Qd=Symbol("ForcePortalRootContext");function gb(){return ke(Qd,!1)}const ef=he({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return ft(Qd,e.force),()=>{const{force:r,...o}=e;return rt({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}});let tf=Symbol("StackContext");var el=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(el||{});function yb(){return ke(tf,()=>{})}function bb({type:e,enabled:t,element:n,onUpdate:r}){let o=yb();function s(...i){r==null||r(...i),o(...i)}je(()=>{ze(t,(i,a)=>{i?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),dt(()=>{t.value&&s(1,e,n)}),ft(tf,s)}var ot=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ot||{});let _b=Symbol("DescriptionContext");function wb({slot:e=R({}),name:t="Description",props:n={}}={}){let r=R([]);function o(s){return r.value.push(s),()=>{let i=r.value.indexOf(s);i!==-1&&r.value.splice(i,1)}}return ft(_b,{register:o,slot:e,name:t,props:n}),Y(()=>r.value.length>0?r.value.join(" "):void 0)}function nf(e){const t=kn(e);if(!t){if(e===null)return null;throw new Error(`[Moonbase]: Cannot find ownerDocument for contextElement: ${e}`)}const n=t.getElementById("moonbase");if(n)return n;throw new Error("[Moonbase]: Cannot find existing root element")}const tl=Symbol("PortalParentContext"),rf=Symbol("PortalGroupContext"),Eb=he({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){const r=R(null),o=gb(),s=ke(rf,null),i=R(o===!0||s==null?nf(r.value):s.resolveTarget()),a=R(!1);je(()=>{a.value=!0}),pt(()=>{o||s!=null&&(i.value=s.resolveTarget())});const l=ke(tl,null);let u=!1;const c=Js();return ze(r,()=>{if(u||!l)return;const d=X(r);d&&(dt(l.register(d),c),u=!0)}),()=>{if(!a.value||i.value===null)return null;const d={ref:r,"data-moonbase-portal":""};return Ue(_m,{to:i.value},rt({ourProps:d,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}});function of(){const e=ke(tl,null),t=R([]);function n(s){return t.value.push(s),e&&e.register(s),()=>r(s)}function r(s){const i=t.value.indexOf(s);i!==-1&&t.value.splice(i,1),e&&e.unregister(s)}const o={register:n,unregister:r,portals:t};return[t,he({name:"PortalWrapper",setup(s,{slots:i}){return ft(tl,o),()=>{var a;return(a=i.default)==null?void 0:a.call(i)}}})]}const Ob=he({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){const r=xo({resolveTarget(){return e.target}});return ft(rf,r),()=>{const{target:o,...s}=e;return rt({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}}),nl=Symbol("DialogContext");function rl(e){const t=ke(nl,null);if(t===null)throw new Error(`<${e} /> is missing a parent <Dialog /> component.`);return t}const vi="DC8F892D-2EBD-447C-A4C8-A03058436FF4",sf=he({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:vi},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`moonbase-dialog-${Lt()}`},role:{type:String,default:"dialog"},makeInert:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var ve;const s=R(!1);je(()=>{s.value=!0});let i=!1;const a=Y(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(i||(i=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),l=R(0),u=mi(),c=Y(()=>e.open===vi&&u!==null?(u.value&lt.Open)===lt.Open:e.open),d=R(null),f=Y(()=>kn(d));if(o({el:d,$el:d}),!(e.open!==vi||u!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof c.value!="boolean")throw new TypeError(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value===vi?void 0:e.open}`);const E=Y(()=>s.value&&c.value?0:1),x=Y(()=>E.value===0),O=R(null),I={titleId:O,panelRef:R(null),dialogState:E,setTitleId(le){O.value!==le&&(O.value=le)},close(){t("close",!1)}},j=Y(()=>l.value>1),$=ke(nl,null)!==null,[z,y]=of(),{resolveContainers:M,mainTreeNodeRef:P,MainTreeNode:re}=Jd({portals:z,defaultContainers:[Y(()=>I.panelRef.value??d.value)]}),S=Y(()=>j.value?"parent":"leaf"),A=Y(()=>u!==null?(u.value&lt.Closing)===lt.Closing:!1),D=Y(()=>!e.makeInert||$||A.value?!1:x.value),k=Y(()=>{var le;return Array.from(((le=f.value)==null?void 0:le.querySelectorAll("body > *"))??[]).find(Fe=>Fe.id==="moonbase"?!1:Fe.contains(X(P))&&Fe instanceof HTMLElement)??null});zd(k,D);const L=Y(()=>j.value?!0:x.value),ne=Y(()=>{var le;return Array.from(((le=f.value)==null?void 0:le.querySelectorAll("[data-moonbase-portal]"))??[]).find(Fe=>Fe.contains(X(P))&&Fe instanceof HTMLElement)??null});zd(ne,L),bb({type:"Dialog",enabled:Y(()=>E.value===0),element:d,onUpdate:(le,Fe)=>{if(Fe==="Dialog")return nt(le,{[el.Add]:()=>l.value+=1,[el.Remove]:()=>l.value-=1})}});const h=wb({name:"DialogDescription",slot:Y(()=>({open:c.value}))});ft(nl,I);const V=Y(()=>!(!x.value||j.value));Gd(M,(le,Fe)=>{le.preventDefault(),I.close(),To(()=>Fe==null?void 0:Fe.focus())},V);const ee=Y(()=>!(j.value||E.value!==0));Ga((ve=f.value)==null?void 0:ve.defaultView,"keydown",le=>{ee.value&&(le.defaultPrevented||le.key===ot.Escape&&(le.preventDefault(),le.stopPropagation(),I.close()))});const ie=Y(()=>!(!e.lockScroll||A.value||E.value!==0||$));return pb(f,ie,le=>({containers:[...le.containers??[],M]})),pt(le=>{if(E.value!==0)return;const Fe=X(d);if(!Fe)return;const mt=new ResizeObserver(Be=>{for(const St of Be){const nr=St.target.getBoundingClientRect();nr.x===0&&nr.y===0&&nr.width===0&&nr.height===0&&I.close()}});mt.observe(Fe),le(()=>mt.disconnect())}),()=>{const{id:le,open:Fe,initialFocus:mt,...Be}=e,St={...n,ref:d,id:le,role:a.value,"aria-modal":E.value===0?!0:void 0,"aria-labelledby":O.value,"aria-describedby":h.value},nr={open:E.value===0};return Ue(ef,{force:!0},()=>[Ue(Eb,()=>Ue(Ob,{target:d.value},()=>Ue(ef,{force:!1},()=>Ue(Go,{initialFocus:mt,containers:M,features:x.value?nt(S.value,{parent:Go.features.RestoreFocus,leaf:Go.features.All&~Go.features.FocusLock}):Go.features.None},()=>Ue(y,{},()=>rt({ourProps:St,theirProps:{...Be,...n},slot:nr,attrs:n,slots:r,visible:E.value===0,features:Xn.RenderStrategy|Xn.Static,name:"Dialog"})))))),Ue(re)])}}}),af=he({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`moonbase-dialog-overlay-${Lt()}`}},setup(e,{attrs:t,slots:n}){const r=rl("DialogOverlay");function o(s){s.target===s.currentTarget&&(s.preventDefault(),s.stopPropagation(),r.close())}return()=>{const{id:s,...i}=e;return rt({ourProps:{id:s,"aria-hidden":!0,onClick:o},theirProps:i,slot:{open:r.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}}),lf=he({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`moonbase-dialog-panel-${Lt()}`}},setup(e,{attrs:t,slots:n,expose:r}){const o=rl("DialogPanel");r({el:o.panelRef,$el:o.panelRef});function s(i){i.stopPropagation()}return()=>{const{id:i,...a}=e,l={id:i,ref:o.panelRef,onClick:s};return rt({ourProps:l,theirProps:a,slot:{open:o.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}}),Qo=he({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`moonbase-dialog-title-${Lt()}`}},setup(e,{attrs:t,slots:n}){const r=rl("DialogTitle");return je(()=>{r.setTitleId(e.id),dt(()=>r.setTitleId(null))}),()=>{const{id:o,...s}=e;return rt({ourProps:{id:o},theirProps:s,slot:{open:r.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}});function uf(e,t){if(e)return e;const n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function cf(e,t){const n=R(uf(e.value.type,e.value.as));return je(()=>{n.value=uf(e.value.type,e.value.as)}),pt(()=>{var r;n.value||X(t)&&X(t)instanceof HTMLButtonElement&&!((r=X(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}const df=Symbol("PopoverContext");function ff(e){const t=ke(df,null);if(t===null)throw new Error(`<${e} /> is missing a parent <Popover /> component.`);return t}const Nb=Symbol("PopoverGroupContext");function pf(){return ke(Nb,null)}const hf=Symbol("PopoverPanelContext");function xb(){return ke(hf,null)}const mf=he({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var z;const o=R(null);r({el:o,$el:o});const s=R(1),i=R(null),a=R(null),l=R(null),u=R(null),c=Y(()=>kn(o)),d=Y(()=>{var D,k;if(!X(i)||!X(u))return!1;for(const L of document.querySelectorAll("body > *"))if(Number(L==null?void 0:L.contains(X(i)))^Number(L==null?void 0:L.contains(X(u))))return!0;const y=pi(),M=y.indexOf(X(i)),P=(M+y.length-1)%y.length,re=(M+1)%y.length,S=y[P],A=y[re];return!((D=X(u))!=null&&D.contains(S))&&!((k=X(u))!=null&&k.contains(A))}),f={popoverState:s,buttonId:R(null),panelId:R(null),panel:u,button:i,isPortalled:d,beforePanelSentinel:a,afterPanelSentinel:l,togglePopover(){s.value=nt(s.value,{0:1,1:0})},closePopover(){s.value!==1&&(s.value=1)},close(y){f.closePopover();const M=y?y instanceof HTMLElement?y:y.value instanceof HTMLElement?X(y):X(f.button):X(f.button);M==null||M.focus()}};ft(df,f),Xd(Y(()=>nt(s.value,{0:lt.Open,1:lt.Closed})));const m={buttonId:f.buttonId,panelId:f.panelId,close(){f.closePopover()}},E=pf(),x=E==null?void 0:E.registerPopover,[O,I]=of(),j=Jd({mainTreeNodeRef:E==null?void 0:E.mainTreeNodeRef,portals:O,defaultContainers:[i,u]});function $(){var y,M,P;return(E==null?void 0:E.isFocusWithinPopoverGroup())??(((y=c.value)==null?void 0:y.activeElement)&&(((M=X(i))==null?void 0:M.contains(c.value.activeElement))||((P=X(u))==null?void 0:P.contains(c.value.activeElement))))}return pt(()=>x==null?void 0:x(m)),Ga((z=c.value)==null?void 0:z.defaultView,"focus",y=>{var M,P;y.target!==window&&y.target instanceof HTMLElement&&s.value===0&&($()||i&&u&&(j.contains(y.target)||(M=X(f.beforePanelSentinel))!=null&&M.contains(y.target)||(P=X(f.afterPanelSentinel))!=null&&P.contains(y.target)||f.closePopover()))},!0),Gd(j.resolveContainers,(y,M)=>{var P;f.closePopover(),Bd(M,Xa.Loose)||(y.preventDefault(),(P=X(i))==null||P.focus())},Y(()=>s.value===0)),()=>{const y={open:s.value===0,close:f.close};return Ue(Te,[Ue(I,{},()=>rt({theirProps:{...e,...n},ourProps:{ref:o},slot:y,slots:t,attrs:n,name:"Popover"})),Ue(j.MainTreeNode)])}}}),vf=he({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`moonbase-popover-button-${Lt()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){const o=ff("PopoverButton"),s=Y(()=>kn(o.button));r({el:o.button,$el:o.button}),je(()=>{o.buttonId.value=e.id}),dt(()=>{o.buttonId.value=null});const i=pf(),a=i==null?void 0:i.closeOthers,l=xb(),u=Y(()=>l===null?!1:l.value===o.panelId.value),c=R(null),d=`moonbase-focus-sentinel-${Lt()}`;u.value||pt(()=>{o.button.value=X(c)});const f=cf(Y(()=>({as:e.as,type:t.type})),c);function m($){var z,y,M,P,re;if(u.value){if(o.popoverState.value===1)return;switch($.key){case ot.Space:case ot.Enter:$.preventDefault(),(y=(z=$.target).click)==null||y.call(z),o.closePopover(),(M=X(o.button))==null||M.focus();break}}else switch($.key){case ot.Space:case ot.Enter:$.preventDefault(),$.stopPropagation(),o.popoverState.value===1&&(a==null||a(o.buttonId.value)),o.togglePopover();break;case ot.Escape:if(o.popoverState.value!==0)return a==null?void 0:a(o.buttonId.value);if(!X(o.button)||(P=s.value)!=null&&P.activeElement&&!((re=X(o.button))!=null&&re.contains(s.value.activeElement)))return;$.preventDefault(),$.stopPropagation(),o.closePopover();break}}function E($){u.value||$.key===ot.Space&&$.preventDefault()}function x($){var z,y;e.disabled||(u.value?(o.closePopover(),(z=X(o.button))==null||z.focus()):($.preventDefault(),$.stopPropagation(),o.popoverState.value===1&&(a==null||a(o.buttonId.value)),o.togglePopover(),(y=X(o.button))==null||y.focus()))}function O($){$.preventDefault(),$.stopPropagation()}const I=Ja();function j(){const $=X(o.panel);if(!$)return;function z(){nt(I.value,{[$t.Forwards]:()=>at($,We.First),[$t.Backwards]:()=>at($,We.Last)})===Cn.Error&&at(pi().filter(M=>M.dataset.moonbaseFocusGuard!=="true"),nt(I.value,{[$t.Forwards]:We.Next,[$t.Backwards]:We.Previous}),{relativeTo:X(o.button)})}z()}return()=>{const $=o.popoverState.value===0,z={open:$},{id:y,...M}=e,P=u.value?{ref:c,type:f.value,onKeydown:m,onClick:x}:{ref:c,id:y,type:f.value,"aria-expanded":o.popoverState.value===0,"aria-controls":X(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:m,onKeyup:E,onClick:x,onMousedown:O};return Ue(Te,[rt({ourProps:P,theirProps:{...t,...M},slot:z,attrs:t,slots:n,name:"PopoverButton"}),$&&!u.value&&o.isPortalled.value&&Ue(tr,{id:d,features:er.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:j})])}}}),gf=he({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:()=>`moonbase-popover-panel-${Lt()}`}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){const{focus:o}=e,s=ff("PopoverPanel"),i=Y(()=>kn(s.panel)),a=`moonbase-focus-sentinel-before-${Lt()}`,l=`moonbase-focus-sentinel-after-${Lt()}`;r({el:s.panel,$el:s.panel}),je(()=>{s.panelId.value=e.id}),dt(()=>{s.panelId.value=null}),ft(hf,s.panelId),pt(()=>{var I,j;if(!o||s.popoverState.value!==0||!s.panel)return;const O=(I=i.value)==null?void 0:I.activeElement;(j=X(s.panel))!=null&&j.contains(O)||at(X(s.panel),We.First)});const u=mi(),c=Y(()=>u!==null?(u.value&lt.Open)===lt.Open:s.popoverState.value===0);function d(O){var I,j;switch(O.key){case ot.Escape:if(s.popoverState.value!==0||!X(s.panel)||i.value&&!((I=X(s.panel))!=null&&I.contains(i.value.activeElement)))return;O.preventDefault(),O.stopPropagation(),s.closePopover(),(j=X(s.button))==null||j.focus();break}}function f(O){var j,$,z,y,M;const I=O.relatedTarget;I&&X(s.panel)&&((j=X(s.panel))!=null&&j.contains(I)||(s.closePopover(),((z=($=X(s.beforePanelSentinel))==null?void 0:$.contains)!=null&&z.call($,I)||(M=(y=X(s.afterPanelSentinel))==null?void 0:y.contains)!=null&&M.call(y,I))&&I.focus({preventScroll:!0})))}const m=Ja();function E(){const O=X(s.panel);if(!O)return;function I(){nt(m.value,{[$t.Forwards]:()=>{var $;at(O,We.First)===Cn.Error&&(($=X(s.afterPanelSentinel))==null||$.focus())},[$t.Backwards]:()=>{var j;(j=X(s.button))==null||j.focus({preventScroll:!0})}})}I()}function x(){const O=X(s.panel);if(!O)return;function I(){nt(m.value,{[$t.Forwards]:()=>{const j=X(s.button),$=X(s.panel);if(!j)return;const z=pi(),y=z.indexOf(j),M=z.slice(0,y+1),re=[...z.slice(y+1),...M];for(const S of re.slice())if(S.dataset.moonbaseFocusGuard==="true"||$!=null&&$.contains(S)){const A=re.indexOf(S);A!==-1&&re.splice(A,1)}at(re,We.First,{sorted:!1})},[$t.Backwards]:()=>{var $;at(O,We.Previous)===Cn.Error&&(($=X(s.button))==null||$.focus())}})}I()}return()=>{const O={open:s.popoverState.value===0,close:s.close},{id:I,focus:j,...$}=e,z={ref:s.panel,id:I,onKeydown:d,onFocusout:o&&s.popoverState.value===0?f:void 0,tabIndex:-1};return rt({ourProps:z,theirProps:{...t,...$},attrs:t,slot:O,slots:{...n,default:(...y)=>{var M;return[Ue(Te,[c.value&&s.isPortalled.value&&Ue(tr,{id:a,ref:s.beforePanelSentinel,features:er.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:E}),(M=n.default)==null?void 0:M.call(n,...y),c.value&&s.isPortalled.value&&Ue(tr,{id:l,ref:s.afterPanelSentinel,features:er.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:x})])]}},features:Xn.RenderStrategy|Xn.Static,visible:c.value,name:"PopoverPanel"})}}});let Sb=he({props:{onFocus:{type:Function,required:!0}},setup(e){let t=R(!0);return()=>t.value?Ue(tr,{as:"button",type:"button",features:er.Focusable,onFocus(n){n.preventDefault();let r,o=50;function s(){var i;if(o--<=0){r&&cancelAnimationFrame(r);return}if((i=e.onFocus)!=null&&i.call(e)){t.value=!1,cancelAnimationFrame(r);return}r=requestAnimationFrame(s)}r=requestAnimationFrame(s)}}):null}});const yf=Symbol("TabsContext");function gi(e){const t=ke(yf,null);if(t===null)throw new Error(`<${e} /> is missing a parent <TabGroup /> component.`);return t}const ol=Symbol("TabsSSRContext"),kb=he({name:"TabGroup",emits:{change:e=>!0},props:{as:{type:[Object,String],default:"template"},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){const o=R(e.selectedIndex??e.defaultIndex),s=R([]),i=R([]),a=Y(()=>e.selectedIndex!==null),l=Y(()=>a.value?e.selectedIndex:o.value),u={selectedIndex:Y(()=>o.value??e.defaultIndex??null),orientation:Y(()=>e.vertical?"vertical":"horizontal"),activation:Y(()=>e.manual?"manual":"auto"),tabs:s,panels:i,setSelectedIndex(E){l.value!==E&&r("change",E),a.value||c(E)},registerTab(E){if(s.value.includes(E))return;const x=s.value[o.value];if(s.value.push(E),s.value=Yr(s.value,X),!a.value){const O=s.value.indexOf(x)??o.value;O!==-1&&(o.value=O)}},unregisterTab(E){const x=s.value.indexOf(E);x!==-1&&s.value.splice(x,1)},registerPanel(E){i.value.includes(E)||(i.value.push(E),i.value=Yr(i.value,X))},unregisterPanel(E){const x=i.value.indexOf(E);x!==-1&&i.value.splice(x,1)}};function c(E){const x=Yr(u.tabs.value,X),O=Yr(u.panels.value,X),I=x.filter(j=>{var $;return!(($=X(j))!=null&&$.hasAttribute("disabled"))});if(E<0||E>x.length-1){const j=nt(o.value===null?0:Math.sign(E-o.value),{[-1]:()=>1,0:()=>nt(Math.sign(E),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),$=nt(j,{0:()=>x.indexOf(I[0]),1:()=>x.indexOf(I[I.length-1])});$!==-1&&(o.value=$),u.tabs.value=x,u.panels.value=O}else{const j=x.slice(0,E),z=[...x.slice(E),...j].find(M=>I.includes(M));if(!z)return;let y=x.indexOf(z)??u.selectedIndex.value;y===-1&&(y=u.selectedIndex.value),o.value=y,u.tabs.value=x,u.panels.value=O}}ft(yf,u);const d=R({tabs:[],panels:[]}),f=R(!1);je(()=>{f.value=!0}),ft(ol,Y(()=>f.value?null:d.value));const m=Y(()=>e.selectedIndex);return je(()=>{ze([m],()=>c(e.selectedIndex??e.defaultIndex),{immediate:!0})}),pt(()=>{if(!a.value||l.value==null||u.tabs.value.length<=0)return;const E=Yr(u.tabs.value,X);E.some((O,I)=>X(u.tabs.value[I])!==X(O))&&u.setSelectedIndex(E.findIndex(O=>X(O)===X(u.tabs.value[l.value])))}),()=>{const E={selectedIndex:o.value};return Ue(Te,[s.value.length<=0&&Ue(Sb,{onFocus:()=>{for(const x of s.value){const O=X(x);if((O==null?void 0:O.tabIndex)===0)return O.focus(),!0}return!1}}),rt({theirProps:{...n,...Ya(e,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:E,slots:t,attrs:n,name:"TabGroup"})])}}}),Cb=he({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n}){const r=gi("TabList");return()=>{const o={selectedIndex:r.selectedIndex.value},s={role:"tablist","aria-orientation":r.orientation.value};return rt({ourProps:s,theirProps:e,slot:o,attrs:t,slots:n,name:"TabList"})}}}),sl=he({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`moonbase-tabs-tab-${Lt()}`}},setup(e,{attrs:t,slots:n,expose:r}){const o=gi("Tab"),s=R(null);r({el:s,$el:s}),je(()=>o.registerTab(s)),dt(()=>o.unregisterTab(s));const i=ke(ol),a=Y(()=>{if(i.value){const O=i.value.tabs.indexOf(e.id);return O===-1?i.value.tabs.push(e.id)-1:O}return-1}),l=Y(()=>{const O=o.tabs.value.indexOf(s);return O===-1?a.value:O}),u=Y(()=>l.value===o.selectedIndex.value);function c(O){var j;const I=O();if(I===Cn.Success&&o.activation.value==="auto"){const $=(j=kn(s))==null?void 0:j.activeElement,z=o.tabs.value.findIndex(y=>X(y)===$);z!==-1&&o.setSelectedIndex(z)}return I}function d(O){const I=o.tabs.value.map($=>X($)).filter(Boolean);if(O.key===ot.Space||O.key===ot.Enter){O.preventDefault(),O.stopPropagation(),o.setSelectedIndex(l.value);return}switch(O.key){case ot.Home:case ot.PageUp:return O.preventDefault(),O.stopPropagation(),c(()=>at(I,We.First));case ot.End:case ot.PageDown:return O.preventDefault(),O.stopPropagation(),c(()=>at(I,We.Last))}if(c(()=>nt(o.orientation.value,{vertical(){return O.key===ot.ArrowUp?at(I,We.Previous|We.WrapAround):O.key===ot.ArrowDown?at(I,We.Next|We.WrapAround):Cn.Error},horizontal(){return O.key===ot.ArrowLeft?at(I,We.Previous|We.WrapAround):O.key===ot.ArrowRight?at(I,We.Next|We.WrapAround):Cn.Error}}))===Cn.Success)return O.preventDefault()}const f=R(!1);function m(){var O;f.value||(f.value=!0,!e.disabled&&((O=X(s))==null||O.focus({preventScroll:!0}),o.setSelectedIndex(l.value),hi(()=>{f.value=!1})))}function E(O){O.preventDefault()}const x=cf(Y(()=>({as:e.as,type:t.type})),s);return()=>{var z;const O={selected:u.value,disabled:e.disabled??!1},{id:I,...j}=e,$={ref:s,onKeydown:d,onMousedown:E,onClick:m,id:I,role:"tab",type:x.value,"aria-controls":(z=X(o.panels.value[l.value]))==null?void 0:z.id,"aria-selected":u.value,tabIndex:u.value?0:-1,disabled:e.disabled?!0:void 0};return rt({ourProps:$,theirProps:j,slot:O,attrs:t,slots:n,name:"Tab"})}}}),Tb=he({name:"TabPanels",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){const r=gi("TabPanels");return()=>{const o={selectedIndex:r.selectedIndex.value};return rt({theirProps:e,ourProps:{},slot:o,attrs:n,slots:t,name:"TabPanels"})}}}),il=he({name:"TabPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`moonbase-tabs-panel-${Lt()}`},tabIndex:{type:Number,default:0}},setup(e,{attrs:t,slots:n,expose:r}){const o=gi("TabPanel"),s=R(null);r({el:s,$el:s}),je(()=>o.registerPanel(s)),dt(()=>o.unregisterPanel(s));const i=ke(ol),a=Y(()=>{if(i.value){const c=i.value.panels.indexOf(e.id);return c===-1?i.value.panels.push(e.id)-1:c}return-1}),l=Y(()=>{const c=o.panels.value.indexOf(s);return c===-1?a.value:c}),u=Y(()=>l.value===o.selectedIndex.value);return()=>{var x;const c={selected:u.value},{id:d,tabIndex:f,...m}=e,E={ref:s,id:d,role:"tabpanel","aria-labelledby":(x=X(o.tabs.value[l.value]))==null?void 0:x.id,tabIndex:u.value?f:-1};return!u.value&&e.unmount&&!e.static?Ue(tr,{as:"span","aria-hidden":!0,...E}):rt({ourProps:E,theirProps:m,slot:c,attrs:t,slots:n,features:Xn.Static|Xn.RenderStrategy,visible:u.value,name:"TabPanel"})}}});function Pb(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function al(e,...t){e&&t.length>0&&!e.dataset.transition?e.dataset.transition=t.join(" "):e&&t.length>0&&e.dataset.transition&&(e.dataset.transition=[...e.dataset.transition.split(" "),...t].join(" "))}function yi(e,...t){e&&t.length>0&&e.dataset.transition&&(e.dataset.transition=e.dataset.transition.split(" ").filter(n=>!t.includes(n)).join(" "))}var ll=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(ll||{});function $b(e,t){const n=Jo();if(!e)return n.dispose;const{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,i]=[r,o].map(a=>{const[l=0]=a.split(",").filter(Boolean).map(u=>u.includes("ms")?Number.parseFloat(u):Number.parseFloat(u)*1e3).sort((u,c)=>c-u);return l});return s!==0?n.setTimeout(()=>t("finished"),s+i):t("finished"),n.add(()=>t("cancelled")),n.dispose}function bf(e,t,n,r,o,s){const i=Jo(),a=s!==void 0?Pb(s):()=>{};return yi(e,...o),al(e,...t,...n),i.nextFrame(()=>{yi(e,...n),al(e,...r),i.add($b(e,l=>(yi(e,...r,...t),al(e,...o),a(l))))}),i.add(()=>yi(e,...t,...n,...r,...o)),i.add(()=>a("cancelled")),i.dispose}function Cr(e=""){return e.split(/\s+/).filter(t=>t.length>1)}const ul=Symbol("TransitionContext");function Db(){return ke(ul,null)!==null}function Ib(){const e=ke(ul,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}const cl=Symbol("NestingContext");function Ab(){const e=ke(cl,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function bi(e){return"children"in e?bi(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function _f(e){const t=R([]),n=R(!1);je(()=>n.value=!0),dt(()=>n.value=!1);function r(s,i=Qn.Hidden){const a=t.value.findIndex(({id:l})=>l===s);a!==-1&&(nt(i,{[Qn.Unmount](){t.value.splice(a,1)},[Qn.Hidden](){t.value[a].state="hidden"}}),!bi(t)&&n.value&&(e==null||e()))}function o(s){const i=t.value.find(({id:a})=>a===s);return i?i.state!=="visible"&&(i.state="visible"):t.value.push({id:s,state:"visible"}),()=>r(s,Qn.Unmount)}return{children:t,register:o,unregister:r}}const wf=Xn.RenderStrategy,es=he({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:"enter"},enterFrom:{type:[String],default:"enter-from"},enterTo:{type:[String],default:"enter-to"},entered:{type:[String],default:"entered"},leave:{type:[String],default:"leave"},leaveFrom:{type:[String],default:"leave-from"},leaveTo:{type:[String],default:"leave-to"}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){const s=R(0);function i(){s.value|=lt.Opening,t("beforeEnter")}function a(){s.value&=~lt.Opening,t("afterEnter")}function l(){s.value|=lt.Closing,t("beforeLeave")}function u(){s.value&=~lt.Closing,t("afterLeave")}if(!Db()&&vb())return()=>Ue(dl,{...e,onBeforeEnter:i,onAfterEnter:a,onBeforeLeave:l,onAfterLeave:u},r);const c=R(null),d=Y(()=>e.unmount?Qn.Unmount:Qn.Hidden);o({el:c,$el:c});const{show:f,appear:m}=Ib(),{register:E,unregister:x}=Ab(),O=R(f.value?"visible":"hidden"),I={value:!0},j=Lt(),$={value:!1},z=_f(()=>{!$.value&&O.value!=="hidden"&&(O.value="hidden",x(j),u())});je(()=>{const L=E(j);dt(L)}),pt(()=>{if(d.value===Qn.Hidden&&j){if(f.value&&O.value!=="visible"){O.value="visible";return}nt(O.value,{hidden:()=>x(j),visible:()=>E(j)})}});const y=Cr(e.enter),M=Cr(e.enterFrom),P=Cr(e.enterTo),re=Cr(e.entered),S=Cr(e.leave),A=Cr(e.leaveFrom),D=Cr(e.leaveTo);je(()=>{pt(()=>{if(O.value==="visible"){const L=X(c);if(L instanceof Comment&&L.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function k(L){const ne=I.value&&!m.value,h=X(c);!h||!(h instanceof HTMLElement)||ne||($.value=!0,f.value&&i(),f.value||l(),L(f.value?bf(h,y,M,P,re,V=>{$.value=!1,V===ll.Finished&&a()}):bf(h,S,A,D,re,V=>{$.value=!1,V===ll.Finished&&(bi(z)||(O.value="hidden",x(j),u()))})))}return je(()=>{ze([f],(L,ne,h)=>{k(h),I.value=!1},{immediate:!0})}),ft(cl,z),Xd(Y(()=>nt(O.value,{visible:lt.Open,hidden:lt.Closed})|s.value)),()=>{const{appear:L,show:ne,enter:h,enterFrom:V,enterTo:ee,entered:ie,leave:ve,leaveFrom:le,leaveTo:Fe,...mt}=e,Be={ref:c},St={...mt,...m.value&&f.value&&Ko.isServer?{class:Es([n.class,mt.class,...y,...M])}:{}};return rt({theirProps:St,ourProps:Be,slot:{},slots:r,attrs:n,features:wf,visible:O.value==="visible",name:"TransitionChild"})}}}),Vb=es,dl=he({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){const o=mi(),s=Y(()=>e.show===null&&o!==null?(o.value&lt.Open)===lt.Open:e.show);pt(()=>{if(![!0,!1].includes(s.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});const i=R(s.value?"visible":"hidden"),a=_f(()=>{i.value="hidden"}),l=R(!0),u={show:s,appear:Y(()=>e.appear||!l.value)};return je(()=>{pt(()=>{l.value=!1,s.value?i.value="visible":bi(a)||(i.value="hidden")})}),ft(cl,a),ft(ul,u),()=>{const c=Ya(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),d={unmount:e.unmount};return rt({ourProps:{...d,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[Ue(Vb,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...d,...c},r.default)]},attrs:{},features:wf,visible:i.value==="visible",name:"Transition"})}}}),Rb=["data-contain"],ts=he({__name:"Modal",props:{open:{type:Boolean}},emits:["close"],setup(e){const t=ke(Nr);return(n,r)=>(w(),Se(b(dl),{as:"template",show:n.open},{default:be(()=>{var o,s,i;return[W(b(sf),{as:"div",class:"moonbase:modal","data-contain":!!((o=b(t))!=null&&o.target)||void 0,"make-inert":!((s=b(t))!=null&&s.target),"lock-scroll":!((i=b(t))!=null&&i.target),onClose:r[0]||(r[0]=a=>n.$emit("close"))},{default:be(()=>{var a;return[N("div",{class:"moonbase:modal-container","data-contain":!!((a=b(t))!=null&&a.target)||void 0},[W(b(es),{as:"template"},{default:be(()=>{var l;return[W(b(af),{class:"moonbase:modal-overlay","data-contain":!!((l=b(t))!=null&&l.target)||void 0},null,8,["data-contain"])]}),_:1}),W(b(es),{as:"template"},{default:be(()=>[W(b(lf),{class:"moonbase:modal-content"},{default:be(()=>[ma(n.$slots,"default")]),_:3})]),_:3})],8,Rb)]}),_:3},8,["data-contain","make-inert","lock-scroll"])]}),_:3},8,["show"]))}}),jb=["data-visible"],Mb=he({__name:"SignIn",emits:["signedIn"],setup(e,{emit:t}){const n=t,r=Ie(),o=wt(),s=ke(Nr),i=R(r.getParameter("email")??""),a=R(""),l=R(null);async function u(){l.value=null;try{const c=await o.signIn(i.value,a.value);Kt(1500).then(()=>n("signedIn",c))}catch(c){throw c instanceof Vn?l.value="User not found":l.value=c.message,c}}return(c,d)=>(w(),Se(Jn,{handler:u,class:"moonbase:sign-in"},{default:be(()=>{var f;return[W(Et,{modelValue:i.value,"onUpdate:modelValue":d[0]||(d[0]=m=>i.value=m),label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["modelValue"]),W(Et,{modelValue:a.value,"onUpdate:modelValue":d[1]||(d[1]=m=>a.value=m),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"current-password",required:""},null,8,["modelValue"]),W(Yn,{success:"Signed in",label:"Sign in",error:"Error"}),N("span",{class:"moonbase:error","data-visible":!!l.value||void 0},J(l.value),9,jb),(f=b(s))!=null&&f.auth.signUp.enabled?(w(),C("button",{key:0,type:"button",onClick:d[2]||(d[2]=m=>b(r).show(b(Oe).Authentication,b(ae).SignUp,{email:i.value}))}," Create account ")):fe("",!0),N("button",{type:"button",onClick:d[3]||(d[3]=m=>b(r).show(b(Oe).Authentication,b(ae).ForgotPassword,{email:i.value}))}," Forgot password ")]}),_:1}))}});function fl(...e){}const Lb={class:"moonbase:authentication"},Ub={key:0,class:"moonbase:loader"},Fb=he({__name:"Authentication",props:{open:{type:Boolean}},setup(e){const t=Ie(),{loaded:n}=wt(),r=Y(()=>{switch(t.intent){case ae.SignIn:return"Sign in";case ae.SignUp:return"Sign up";case ae.ConfirmAccount:return"Confirm account";case ae.ConfirmEmailChange:return"Confirm email change";case ae.ForgotPassword:return"Forgot password";case ae.ResetPassword:return"Reset password"}return"Authentication"}),o=Y(()=>{if(t.intent===ae.SignIn&&t.next){const[i,a,l]=t.next;if(i===Oe.Authentication&&a===ae.ConfirmEmailChange)return"to confirm email"}return null});function s(){t.reset()}return(i,a)=>(w(),Se(ts,{open:i.open,onClose:s},{default:be(()=>[N("div",Lb,[W(b(Qo),{as:"h3"},{default:be(()=>[Ce(J(r.value)+" "+J(o.value),1)]),_:1}),b(n)?b(t).intent===b(ae).SignIn?(w(),Se(Mb,{key:1,onSignedIn:a[0]||(a[0]=l=>b(t).dequeue())})):b(t).intent===b(ae).SignUp?(w(),Se(jy,{key:2,onSignedUp:a[1]||(a[1]=l=>b(t).show(b(Oe).Customer,b(ae).ViewAccount))})):b(t).intent===b(ae).ConfirmAccount?(w(),Se(Fy,{key:3,onConfirmedAccount:a[2]||(a[2]=l=>b(t).show(b(Oe).Customer,b(ae).ViewAccount))})):b(t).intent===b(ae).ConfirmEmailChange?(w(),Se(Gy,{key:4})):b(t).intent===b(ae).ForgotPassword?(w(),Se(Hy,{key:5})):b(t).intent===b(ae).ResetPassword?(w(),Se(qy,{key:6,onPasswordReset:a[3]||(a[3]=l=>b(t).show(b(Oe).Customer,b(ae).ViewAccount))})):fe("",!0):(w(),C("div",Ub,[W(Mt)]))])]),_:1},8,["open"]))}});function Dt(e,t){return new Intl.NumberFormat(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",maximumFractionDigits:2,minimumFractionDigits:2}).format(e)}const Bb={class:"moonbase:product-cart-item"},Hb=["src"],Zb={key:1,class:"moonbase:image-placeholder"},qb={class:"moonbase:product-cart-item-content"},Wb={key:0,class:"moonbase:cart-item-discount"},zb={class:"font-semibold"},Kb={key:0,class:"ml-0.5"},Gb={key:2,class:"moonbase:product-cart-item-total"},Jb={key:0,class:"moonbase:discount"},Yb={key:1},Xb=he({__name:"ProductCartItem",props:{lineItem:{},currency:{}},setup(e){return(t,n)=>{var r,o,s;return w(),C("div",Bb,[(r=t.lineItem.product)!=null&&r.iconUrl?(w(),C("img",{key:0,src:t.lineItem.product.iconUrl,alt:""},null,8,Hb)):(w(),C("div",Zb)),N("div",qb,[N("h3",null,J((o=t.lineItem.product)==null?void 0:o.name),1),N("p",null,J((s=t.lineItem.product)==null?void 0:s.tagline),1),t.lineItem.appliedDiscount?(w(),C("p",Wb,[n[0]||(n[0]=Ce(" Discount applied: ")),N("span",zb,J(t.lineItem.appliedDiscount.name),1),t.lineItem.appliedDiscount.total?(w(),C("span",Kb," (-"+J(b(Dt)(t.lineItem.appliedDiscount.total[t.currency],t.currency))+") ",1)):fe("",!0)])):fe("",!0),N("p",null,J(t.lineItem.quantity)+" in cart",1)]),t.lineItem.variation?(w(),C("div",Gb,[t.lineItem.variation.hasDiscount?(w(),C("span",Jb,J(b(Dt)(t.lineItem.variation.originalPrice[t.currency],t.currency)),1)):fe("",!0),t.lineItem.quantity!==1?(w(),C("span",Yb,J(t.lineItem.quantity)+" x "+J(b(Dt)(t.lineItem.variation.price[t.currency],t.currency)),1)):fe("",!0),Ce(" "+J(b(Dt)(t.lineItem.variation.price[t.currency]*t.lineItem.quantity,t.currency)),1)])):fe("",!0)])}}}),Qb={class:"moonbase:bundle-cart-item"},e_=["src"],t_={key:1,class:"moonbase:image-placeholder"},n_={class:"moonbase:bundle-cart-item-content"},r_={key:0,class:"moonbase:cart-item-discount"},o_={class:"font-semibold"},s_={key:0,class:"ml-0.5"},i_={class:"moonbase:bundle-cart-item-summary"},a_=["data-open"],l_={key:2,class:"moonbase:product-cart-item-total"},u_={key:0,class:"moonbase:discount"},c_={key:1},d_=["src"],f_={key:1,class:"moonbase:image-placeholder"},p_=["data-included"],h_={key:0,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},m_={key:0,class:"truncate italic"},v_={key:1,class:"truncate"},g_=he({__name:"BundleCartItem",props:{lineItem:{},currency:{}},setup(e){const t=R(!1),n=R(null);return ze(t,r=>{n.value&&(n.value.style.height=r?`${n.value.scrollHeight}px`:"0px")}),(r,o)=>{var s,i,a,l,u,c,d;return w(),C("div",null,[N("div",Qb,[(s=r.lineItem.bundle)!=null&&s.iconUrl?(w(),C("img",{key:0,src:r.lineItem.bundle.iconUrl,alt:""},null,8,e_)):(w(),C("div",t_)),N("div",n_,[N("h3",null,J((i=r.lineItem.bundle)==null?void 0:i.name),1),N("p",null,J((a=r.lineItem.bundle)==null?void 0:a.tagline),1),r.lineItem.appliedDiscount?(w(),C("p",r_,[o[1]||(o[1]=Ce(" Discount applied: ")),N("span",o_,J(r.lineItem.appliedDiscount.name),1),r.lineItem.appliedDiscount.total?(w(),C("span",s_," (-"+J(b(Dt)(r.lineItem.appliedDiscount.total[r.currency],r.currency))+") ",1)):fe("",!0)])):fe("",!0),N("div",i_,[N("span",null,J(r.lineItem.quantity)+" in cart",1),r.lineItem.bundle?(w(),C("button",{key:0,onClick:o[0]||(o[0]=f=>t.value=!t.value)},[N("span",null,[Ce(" Including "+J((l=r.lineItem.bundle)==null?void 0:l.products.filter(f=>f.included).length)+" ",1),(u=r.lineItem.bundle)!=null&&u.products.some(f=>!f.included)?(w(),C(Te,{key:0},[Ce("of "+J((c=r.lineItem.bundle)==null?void 0:c.products.length),1)],64)):fe("",!0),o[2]||(o[2]=Ce(" products "))]),(w(),C("svg",{"data-open":t.value||void 0,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},o[3]||(o[3]=[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"},null,-1)]),8,a_))])):fe("",!0)])]),r.lineItem.variation?(w(),C("div",l_,[r.lineItem.variation.hasDiscount?(w(),C("span",u_,J(b(Dt)(r.lineItem.variation.originalPrice[r.currency],r.currency)),1)):fe("",!0),r.lineItem.quantity!==1?(w(),C("span",c_,J(r.lineItem.quantity)+" x "+J(b(Dt)(r.lineItem.variation.price[r.currency],r.currency)),1)):fe("",!0),Ce(" "+J(b(Dt)(r.lineItem.variation.price[r.currency]*r.lineItem.quantity,r.currency)),1)])):fe("",!0)]),N("div",{ref_key:"productListRef",ref:n,class:"moonbase:bundle-cart-item-product-list",style:{height:"0px"}},[(w(!0),C(Te,null,an(((d=r.lineItem.bundle)==null?void 0:d.products)||[],f=>(w(),C("div",{key:f.id},[f!=null&&f.iconUrl?(w(),C("img",{key:0,src:f.iconUrl,alt:""},null,8,d_)):(w(),C("div",f_)),N("div",null,[N("h3",{"data-included":f.included||void 0},[f.included?(w(),C("svg",h_,o[4]||(o[4]=[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"},null,-1)]))):fe("",!0),Ce(" "+J(f==null?void 0:f.name),1)],8,p_),f.included?f!=null&&f.tagline?(w(),C("p",v_,J(f.tagline),1)):fe("",!0):(w(),C("p",m_," You already own this "))])]))),128))],512)])}}}),y_=["data-contain"],b_=he({__name:"CartModal",props:{open:{type:Boolean}},emits:["close"],setup(e){const t=ke(Nr);return(n,r)=>(w(),Se(b(dl),{as:"template",show:n.open},{default:be(()=>{var o,s,i;return[W(b(sf),{as:"div",class:"moonbase:cart-modal","data-contain":!!((o=b(t))!=null&&o.target)||void 0,"make-inert":!((s=b(t))!=null&&s.target),"lock-scroll":!((i=b(t))!=null&&i.target),onClose:r[0]||(r[0]=a=>n.$emit("close"))},{default:be(()=>{var a;return[N("div",{class:"moonbase:cart-modal-container","data-contain":!!((a=b(t))!=null&&a.target)||void 0},[W(b(es),{as:"template"},{default:be(()=>{var l;return[W(b(af),{class:"moonbase:cart-modal-overlay","data-contain":!!((l=b(t))!=null&&l.target)||void 0},null,8,["data-contain"])]}),_:1}),W(b(es),{as:"template"},{default:be(()=>{var l;return[W(b(lf),{class:"moonbase:cart-modal-content","data-contain":!!((l=b(t))!=null&&l.target)||void 0},{default:be(()=>[ma(n.$slots,"default")]),_:3},8,["data-contain"])]}),_:3})],8,y_)]}),_:3},8,["data-contain","make-inert","lock-scroll"])]}),_:3},8,["show"]))}}),__=["disabled","data-success","data-error","data-working","data-variant"],w_=["data-visible"],Ef=he({__name:"MoonButton",props:{handler:{type:Function},label:{},success:{},error:{},variant:{},noReset:{type:Boolean}},setup(e){const t=e,n=R(!1),r=R(!1),o=R(!1),s=Y(()=>r.value?t.success??t.label:o.value?t.error:t.label);async function i(){try{const a=t.handler();if(a instanceof Promise){if(n.value=!0,await a,n.value=!1,!t.success)return;r.value=!0,await Kt(2500),t.noReset||(r.value=!1)}}catch{n.value=!1,o.value=!0,await Kt(2500),o.value=!1}}return(a,l)=>(w(),C("button",{class:"moonbase:button",type:"button",disabled:r.value||o.value||n.value,"data-success":r.value&&a.success||void 0,"data-error":o.value||void 0,"data-working":n.value||void 0,"data-variant":a.variant,onClick:i},[N("div",{"data-visible":n.value||void 0,"aria-hidden":"true"},[n.value?(w(),Se(Mt,{key:0})):fe("",!0)],8,w_),Ce(" "+J(s.value),1)],8,__))}}),E_={class:"moonbase:cart"},O_={key:0,role:"list",class:"moonbase:cart-items"},N_={key:1,class:"moonbase:cart-empty"},x_={key:2,class:"moonbase:cart-total"},S_=he({__name:"Cart",props:{open:{type:Boolean}},setup(e){const t=Ie(),{items:n,total:r,currency:o,checkout:s}=oi(),i=ke(Nr);async function a(){if(!await s({redirect:(i==null?void 0:i.checkout.redirect)??!1,returnUrl:`${window.location.pathname}?mb_intent=view_products`}))throw new Error("Cancelled checkout")}return(l,u)=>(w(),Se(b_,{open:l.open,onClose:u[0]||(u[0]=c=>b(t).reset())},{default:be(()=>[N("div",E_,[W(b(Qo),{as:"h3"},{default:be(()=>u[1]||(u[1]=[Ce(" Cart ")])),_:1}),b(n).length>0?(w(),C("ul",O_,[(w(!0),C(Te,null,an(b(n),c=>(w(),C("li",{key:c.id},[c.type==="Product"?(w(),Se(Xb,{key:0,"line-item":c,currency:b(o)},null,8,["line-item","currency"])):c.type==="Bundle"?(w(),Se(g_,{key:1,"line-item":c,currency:b(o)},null,8,["line-item","currency"])):fe("",!0)]))),128))])):(w(),C("div",N_," Your cart is empty! ")),b(n).length>0?(w(),C("div",x_,[u[2]||(u[2]=N("label",null," Total ",-1)),N("span",null,J(b(Dt)(b(r).amount,b(r).currency)),1),u[3]||(u[3]=N("p",null," Sales tax to be calculated at checkout ",-1))])):fe("",!0),b(n).length>0?(w(),Se(Ef,{key:3,handler:a,label:"Checkout",error:"Cancelled"})):fe("",!0)])]),_:1},8,["open"]))}}),k_={class:"moonbase:account"},C_={key:0,class:"moonbase:error"},T_={key:1,class:"moonbase:notification"},P_={key:0,class:"moonbase:error"},$_=he({__name:"Account",setup(e){var j,$,z;const t=Ie(),{user:n,update:r,setPassword:o,signOut:s}=wt(),i=R(((j=n.value)==null?void 0:j.name)??""),a=R((($=n.value)==null?void 0:$.email)??""),l=R(((z=n.value)==null?void 0:z.communicationPreferences)??{newsletterOptIn:!1}),u=R(null),c=R(!1),d=R(""),f=R(""),m=R(null),E=R(!1);async function x(){u.value=null,c.value=!1;try{(await r(i.value,a.value,void 0,l.value)).needsEmailConfirmationToken&&(c.value=!0)}catch(y){throw u.value=y,y}}async function O(){m.value=null;try{await o(d.value,f.value),d.value="",f.value=""}catch(y){throw m.value=y,y}}async function I(){E.value=!0,await s(),t.reset()}return(y,M)=>(w(),C("div",k_,[W(Jn,{handler:x},{default:be(()=>[W(Et,{modelValue:i.value,"onUpdate:modelValue":M[0]||(M[0]=P=>i.value=P),label:"Full name",name:"name",autocomplete:"name",required:""},null,8,["modelValue"]),W(Et,{modelValue:a.value,"onUpdate:modelValue":M[1]||(M[1]=P=>a.value=P),label:"Email address",name:"email",type:"email",autocomplete:"email",required:""},null,8,["modelValue"]),W(Md,{modelValue:l.value.newsletterOptIn,"onUpdate:modelValue":M[2]||(M[2]=P=>l.value.newsletterOptIn=P),label:"Newsletter subscription",name:"newsletter-opt-in",hint:"Receive updates and offers by email"},null,8,["modelValue"]),W(Yn,{label:"Save",error:"Error",success:"Saved"}),u.value?(w(),C("p",C_,J(u.value.message),1)):c.value?(w(),C("p",T_," You need to confirm your new email address, please check your inbox ")):fe("",!0)]),_:1}),W(Jn,{handler:O},{default:be(()=>[W(Et,{modelValue:d.value,"onUpdate:modelValue":M[3]||(M[3]=P=>d.value=P),label:"Current password",name:"old-password",type:"password",autocomplete:"current-password",required:""},null,8,["modelValue"]),W(Et,{modelValue:f.value,"onUpdate:modelValue":M[4]||(M[4]=P=>f.value=P),label:"New password",name:"new-password",type:"password",autocomplete:"new-password",required:""},null,8,["modelValue"]),W(Yn,{label:"Save",error:"Error",success:"Saved"}),m.value?(w(),C("p",P_,J(m.value.message),1)):fe("",!0)]),_:1}),W(Ef,{label:"Log out",success:"Logged out",error:"Error",variant:"secondary",handler:I})]))}}),D_={},I_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function A_(e,t){return w(),C("svg",I_,t[0]||(t[0]=[N("path",{d:"M320 336h76c55 0 100-21.21 100-75.6s-53-73.47-96-75.6C391.11 99.74 329 48 256 48c-69 0-113.44 45.79-128 91.2-60 5.7-112 35.88-112 98.4S70 336 136 336h56M192 400.1l64 63.9 64-63.9M256 224v224.03",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}const Of=Jr(D_,[["render",A_]]),V_={},R_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function j_(e,t){return w(),C("svg",R_,t[0]||(t[0]=[N("path",{d:"M480 265H232v179l248 36V265zM216 265H32v150l184 26.7V265zM480 32L232 67.4V249h248V32zM216 69.7L32 96v153h184V69.7z",fill:"currentColor"},null,-1)]))}const Nf=Jr(V_,[["render",j_]]),M_={},L_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function U_(e,t){return w(),C("svg",L_,t[0]||(t[0]=[N("path",{d:"M443.66 405.05c-1.46-.79-2.85-1.54-4-2.2-6.47-3.83-13-10.52-11.85-17.83 2.42-15.94 2.89-23.47-.49-28.79a15.61 15.61 0 0 0-7.67-6.2v-.06c1.41-2.56 2.26-5.66 2.83-10.12 1.44-11-5-44-13.7-70.7-8.08-24.68-29.24-50-44.7-68.56l-3.61-4.34c-23.88-28.93-24.34-38.19-26.55-82.67-.32-6.47-.69-13.8-1.17-22C329.87 41.43 304 16 256 16c-25.2 0-44.62 7.15-57.72 21.26C187.79 48.55 182 64 182 80.78c0 29.52 2 53 2.15 54.29 1.4 35.7 1 41.22-8.31 57.55-2.23 3.93-8.38 10.87-14.89 18.21-8.48 9.57-18.09 20.41-23.36 29.22-3.77 6.31-5.88 12.63-8.11 19.33-3.4 10.21-7.26 21.78-18.15 36.57-12.57 17.07-15.52 29.61-11 47.45-4.94 6.45-4.83 14.37-4.75 20.23a25.84 25.84 0 0 1-.3 6.09c-2.29 7.59-12.42 9.4-22 10.18-1.58.12-3.1.21-4.55.29-7.26.39-13.53.74-17.13 6.3-3.47 5.36-1.12 13.8 2.14 25.48.72 2.58 1.46 5.25 2.19 8.06 1.83 7-.16 10.48-2.68 14.84-2.44 4.21-5.21 9-5.21 17.55 0 14.67 20 18 43.05 21.94 7.36 1.24 15 2.53 22.63 4.24a225.58 225.58 0 0 1 34.08 10.68c9.72 3.73 17.4 6.68 26.43 6.68 16.18 0 28.25-9.77 39.92-19.21l2.15-1.75c5.53-4.49 21.5-4 34.34-3.64 3.46.1 6.73.2 9.65.2h6.22c13.48-.08 31.94-.18 42.23 2.5 3.75 1 6.2 3.72 9.29 7.19 5.87 6.56 13.17 14.75 33.39 14.75 19.39 0 29.55-8.71 41.32-18.8 7.16-6.13 14.56-12.48 25.07-17.86 3.92-2 7.62-3.87 11.08-5.61 22.64-11.38 35.11-17.65 35.11-27.82 0-9.91-12.24-16.5-20.34-20.86zM211.11 88.38a13.91 13.91 0 0 1 12.47 9c1.95 5.55 1.81 10.42.21 12.94 0 0-.22-1-.36-1.44a14.85 14.85 0 0 0-6.44-8.59 11.35 11.35 0 0 0-8.94-1.47c-4.26 1.13-8.41 5-8.91 18.79-5.16-10.47-2.31-18 .92-23 2.31-3.73 7.47-6.33 11.05-6.23zm-17.5 375C192 479.24 175.2 479 170.09 478.59c-9.81-.82-21.66-4.69-33.13-8.43-4.52-1.47-9.19-3-13.73-4.34-13.2-3.89-30.12-6.74-43.72-9-3.22-.55-6.27-1.06-9.05-1.55s-4.61-1.27-5.2-2.3c-1-1.65.38-5.25 1.93-9.41C69.27 438 72.11 430.34 72 421c0-3.91-1.47-8.3-2.84-12.56-1.62-5-3.28-10.17-1.93-12.62 1.23-2.23 6.75-2.49 11.6-2.49h2.26c3.55 0 6.62.06 8.75-.53 6.51-1.81 14.86-6.92 17.81-13.88.9-2.17 1.37-6.94 2-14 .37-4.12.74-8.37 1.22-10.58a3.55 3.55 0 0 1 2.11-2.55c1.65-.77 6.78-1.91 18.63 4.08 11.18 5.65 22.88 25.84 34.2 45.37 3.56 6.14 6.92 11.94 10.3 17.36 14.04 22.54 18.83 31.6 17.5 44.8zm128.84-31.56a68.74 68.74 0 0 1-4.55 10.9.58.58 0 0 1-1.08-.42 56.61 56.61 0 0 0 2.11-18.43c-.25-4.73-.4-7.59-2.66-8.51s-4.26.83-9.45 5.54c-1.1 1-2.36 2.14-3.78 3.4-10.8 9.47-26.88 20.68-55.61 23.37-16.84 1.59-27.59-4.63-30.92-8.14a2.16 2.16 0 0 0-3.07-.08 2.23 2.23 0 0 0-.51 2.29c2.12 6.84 1.2 12.26-.49 16.19-.95 2.2-1.85 2.05-2-.34-.25-4.64-1-9.88-3-14.19-3.11-6.94-7-14.34-8.89-17.88v-.05c3.24-1.49 8.86-4.83 11.37-10.88s4.48-18-9.82-31.74c-6.28-6.05-22.1-17.16-36.06-27-10.9-7.65-22.17-15.56-23.65-17.51-4.49-5.89-6.37-9.3-6.94-19.65.07-2.3.13-4.59.19-6.89l.27-2.49a.58.58 0 0 1 1.15 0 63.07 63.07 0 0 0 2 9.72c1.08 3.73 2.4 7.58 3.62 9.18 3.19 4.22 7.56 7.39 11.67 8.49a5.48 5.48 0 0 0 5-.72c2.93-2.33 2.65-7.6 2.19-16.34-.47-9-1.11-21.34 1.85-34.55 5.62-25 10.91-32.51 17.61-42 .86-1.22 1.75-2.47 2.65-3.79 1.44-2.08 3-4.1 4.67-6.23 7.47-9.61 15.93-20.49 13.92-40.95-.51-5.19-.76-8.83-.86-11.39a1 1 0 0 1 1.88-.59l.49.77 1.21 2c4.86 8 13.64 22.57 25.1 22.57a13.62 13.62 0 0 0 2.36-.21c23.39-3.93 51.9-30.25 52.17-30.51 3.12-3 2.84-6.14 1.64-7.91a5.18 5.18 0 0 0-6.45-1.72c-3.29 1.4-7.14 3.15-11.22 5-13.82 6.27-37 16.75-42.25 14.34a23.11 23.11 0 0 1-6.32-5.13 1 1 0 0 1 1.14-1.65c5.59 2.29 9.55 1.45 14.2-.08l1-.34c9.37-3.09 14.2-4.77 30.76-12.08a97.55 97.55 0 0 1 16.26-5.93c4-1 6.42-1.63 7.71-4.34a6.65 6.65 0 0 0-.5-7.13c-1.53-1.87-4.07-2.57-7-1.9-3.22.75-4.7 3-6.41 4.49-2.4 2.05-5 4.16-17.19 8.65-27 10-34.58 10.61-45.21 3.43-9.84-6.69-15.15-13.23-15.15-16 0-2.13 5.45-5.7 8.71-7.84 1.33-.87 2.59-1.69 3.62-2.46 4.34-3.22 13-11.39 13.38-11.73 5.4-5.41 17.91-2.18 25 2.58a2.23 2.23 0 0 0 1.72.41 2.14 2.14 0 0 0 1.68-2.58c-4.2-17.46-.13-27.34 4-32.55a22.58 22.58 0 0 1 17.48-8.48c12.81 0 21.76 10 21.76 24.42 0 11-2.82 16.79-5.48 20.3a1.73 1.73 0 0 1-2.58.18 1.78 1.78 0 0 1-.24-2.2A24.61 24.61 0 0 0 290 114a16.58 16.58 0 0 0-16.84-16.67c-3.94 0-13.48 1.5-16.77 15.44a29.81 29.81 0 0 0-.34 11.07l.08.71c.9 7.38 15.3 12.51 27.23 15.51 11.36 2.85 13 6.22 8.84 19.63s3.11 26.23 5.7 29.57a78.3 78.3 0 0 1 8.31 12.47 93.8 93.8 0 0 1 6.62 16.48c2.17 6.79 4.05 12.65 10.63 21.22 11.07 14.4 17.66 48.64 15 78-.21 2.41-.53 4.29-.77 5.67-.43 2.53-.72 4.2.66 5.38s3.16.7 7.26-.63l3.43-1.09a109.33 109.33 0 0 1 12.58-2.8 2.15 2.15 0 0 0 1.59-1.16c3.43-6.91 3.85-15.22 4-22.47q0-1.31.06-2.79c.19-7.77.45-18.93-2.95-32a1 1 0 0 1 1.93-.64 93 93 0 0 1 6.66 25.55c2.55 22.58-1.9 32.09-1.94 32.17a1.61 1.61 0 0 0 .95 2.25 17.12 17.12 0 0 1 6.95 4.67c1.46 1.66.93 2.4-1.14 1.62a36.26 36.26 0 0 0-12.77-2.29c-10.4 0-18.09 4.95-21.51 9.19-3.19 3.94-3.7 7.67-3.83 11.27l-.06.05c-7.48-.75-12.94 1.21-17.47 6.21l-.08.09c-6.26 7.75-4 24.63-1.29 38.48 1.28 6.45 5.59 25.52 1.73 37.68zm96.1 10.07c-15.71 6.71-25.43 14.51-34 21.39-5.65 4.53-11 8.81-17.28 12.14-10.12 5.34-24.91 6.53-33.27-7.7-2.37-4-.71-9.86 1.58-17.95 3.05-10.75 7.23-25.46 3.71-44.65-.94-5.12-1.77-9.51-2.49-13.31C334 377 332.9 371.43 334 367c.63-2.45 3.43-3 5.87-3a20.83 20.83 0 0 1 2.63.19 29.51 29.51 0 0 0 7 12.1c5.7 5.86 13.63 8.83 23.56 8.85 2.1.17 25.94 1.55 36.54-22.4 1.46.18 3.65.7 4.3 2.3 1.28 3.19-.27 8.91-1.52 13.5-.9 3.31-1.68 6.16-1.63 8.37.31 16 11 22.78 25.83 32.16 1.79 1.13 3.66 2.31 5.55 3.54S445 425 445 426c-.52 4.79-20 13.16-26.45 15.91z",fill:"currentColor"},null,-1)]))}const xf=Jr(M_,[["render",U_]]),F_={},B_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function H_(e,t){return w(),C("svg",B_,t[0]||(t[0]=[N("path",{d:"M349.13 136.86c-40.32 0-57.36 19.24-85.44 19.24-28.79 0-50.75-19.1-85.69-19.1-34.2 0-70.67 20.88-93.83 56.45-32.52 50.16-27 144.63 25.67 225.11 18.84 28.81 44 61.12 77 61.47h.6c28.68 0 37.2-18.78 76.67-19h.6c38.88 0 46.68 18.89 75.24 18.89h.6c33-.35 59.51-36.15 78.35-64.85 13.56-20.64 18.6-31 29-54.35-76.19-28.92-88.43-136.93-13.08-178.34-23-28.8-55.32-45.48-85.79-45.48z",fill:"currentColor"},null,-1),N("path",{d:"M340.25 32c-24 1.63-52 16.91-68.4 36.86-14.88 18.08-27.12 44.9-22.32 70.91h1.92c25.56 0 51.72-15.39 67-35.11 14.72-18.77 25.88-45.37 21.8-72.66z",fill:"currentColor"},null,-1)]))}const Sf=Jr(F_,[["render",H_]]),Z_={class:"moonbase:product-downloads"},q_=["data-last","onClick"],W_={class:"moonbase:sr-only"},z_={class:"moonbase:sr-only"},K_=["onClick"],G_=he({__name:"ProductDownloads",props:{downloads:{}},setup(e){const t=e,n={[Qt.Universal]:()=>Of,[Qt.Windows]:()=>Nf,[Qt.Linux]:()=>xf,[Qt.Mac]:()=>Sf},{downloadProduct:r}=ri(),o=Y(()=>t.downloads.reduce((s,i)=>({...s,[i.platform]:(s[i.platform]||[]).concat({...i,icon:n[i.platform]})}),{}));return(s,i)=>(w(),C("span",Z_,[(w(!0),C(Te,null,an(o.value,(a,l,u)=>(w(),C(Te,{key:l},[a.length===1?(w(),C("button",{key:0,type:"button",role:"button","data-last":u===Object.keys(o.value).length-1||void 0,onClick:c=>b(r)(a[0])},[N("span",W_,J(l.toString()),1),(w(),Se(ha(a[0].icon()),{class:"h-5 w-5 text-white","aria-hidden":"true"}))],8,q_)):(w(),Se(b(mf),{key:1,as:"div","data-last":u===Object.keys(o.value).length-1||void 0,class:"moonbase:product-downloads-group"},{default:be(()=>[W(b(vf),null,{default:be(()=>[N("span",z_,J(l.toString()),1),(w(),Se(ha(a[0].icon()),{"aria-hidden":"true"})),i[0]||(i[0]=N("svg",{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})],-1))]),_:2},1024),W(Ma,{name:"moonbase:scale"},{default:be(()=>[W(b(gf),{class:"moonbase:product-downloads-list"},{default:be(()=>[(w(!0),C(Te,null,an(a,c=>(w(),C("button",{key:c.key,type:"button",role:"button",onClick:d=>b(r)(c)},[N("span",null,J(c.name),1)],8,K_))),128))]),_:2},1024)]),_:2},1024)]),_:2},1032,["data-last"]))],64))),128))]))}}),J_={class:"moonbase:product-activations"},Y_={key:0,scope:"col"},X_={key:0},Q_={colspan:"3"},e1={key:1},t1={key:0},n1=["onClick"],r1=he({__name:"ProductActivations",props:{productId:{}},emits:["revoked"],setup(e,{emit:t}){const n=e,r=t,{getProductActivations:o,revokeActivation:s}=ri(),i=R(null);je(async()=>{let u=await o(n.productId);for(i.value=u.items.map(c=>({...c,revoking:!1}));u.hasMore&&u.next;)u=await o(n.productId,u.next),i.value.push(...u.items.map(c=>({...c,revoking:!1})))});const a=Y(()=>i.value&&i.value.some(u=>u.activationMethod===Ai.Online));async function l(u){u.revoking=!0,await s(u),r("revoked",u),i.value&&i.value.splice(i.value.indexOf(u),1)}return(u,c)=>(w(),C("table",J_,[N("thead",null,[N("tr",null,[c[1]||(c[1]=N("th",{scope:"col"}," Device ",-1)),c[2]||(c[2]=N("th",{scope:"col"}," Activation Method ",-1)),c[3]||(c[3]=N("th",{scope:"col"}," Last Online ",-1)),a.value?(w(),C("th",Y_,c[0]||(c[0]=[N("span",{class:"sr-only"},"Actions",-1)]))):fe("",!0)])]),N("tbody",null,[i.value?i.value.length===0?(w(),C("tr",e1,c[6]||(c[6]=[N("td",{colspan:"3"}," No activations found ",-1)]))):fe("",!0):(w(),C("tr",X_,[N("td",Q_,[W(Mt),c[4]||(c[4]=Ce(" Loading activations.. "))]),c[5]||(c[5]=N("td",null,null,-1))])),(w(!0),C(Te,null,an(i.value,d=>{var f;return w(),C("tr",{key:d.id},[N("td",null,J(d.name),1),N("td",null,J(d.activationMethod),1),N("td",null,J((f=d.lastValidatedAt)==null?void 0:f.toLocaleDateString()),1),a.value?(w(),C("td",t1,[N("button",{class:"text-red-400 flex whitespace-nowrap items-center",onClick:m=>l(d)},[d.revoking?(w(),Se(Mt,{key:0})):fe("",!0),c[7]||(c[7]=Ce(" Revoke "))],8,n1)])):fe("",!0)])}),128))])]))}}),o1={class:"moonbase:products"},s1={key:0,scope:"col"},i1={key:1,scope:"col"},a1={key:0},l1={key:1},u1=["src"],c1={key:1,class:"moonbase:image-placeholder"},d1={key:1},f1={key:2},p1={key:0},h1=he({__name:"Products",setup(e){const{getProducts:t}=ri(),n=R(null);je(async()=>{let s=await t();for(n.value=s.items;s.hasMore&&s.next;)s=await t(s.next),n.value.push(...s.items)});const r=Y(()=>n.value&&n.value.some(s=>s.downloads)),o=Y(()=>n.value&&n.value.some(s=>s.maxActivations&&s.maxActivations>0));return(s,i)=>(w(),C("table",o1,[N("thead",null,[N("tr",null,[i[0]||(i[0]=N("th",{scope:"col"}," Product ",-1)),o.value?(w(),C("th",s1," Activations ")):fe("",!0),r.value?(w(),C("th",i1," Downloads ")):fe("",!0)])]),N("tbody",null,[n.value?n.value.length===0?(w(),C("tr",l1,i[3]||(i[3]=[N("td",{colspan:"3"}," No products found ",-1)]))):fe("",!0):(w(),C("tr",a1,[N("td",null,[W(Mt),i[1]||(i[1]=Ce(" Loading products.. "))]),i[2]||(i[2]=N("td",null,null,-1))])),(w(!0),C(Te,null,an(n.value||[],a=>(w(),C("tr",{key:a.id},[N("td",null,[N("div",null,[a.iconUrl?(w(),C("img",{key:0,src:a.iconUrl,alt:""},null,8,u1)):(w(),C("div",c1)),N("span",null,J(a.name),1)])]),a.maxActivations&&a.maxActivations>0?(w(),Se(b(mf),{key:0,as:"td"},{default:be(()=>[W(b(vf),{class:"moonbase:button","data-variant":"secondary"},{default:be(()=>[i[4]||(i[4]=N("span",{class:"moonbase:sr-only"},"View activations",-1)),Ce(" "+J(a.currentActivations)+" / "+J(a.maxActivations),1)]),_:2},1024),W(Ma,{name:"moonbase:scale"},{default:be(()=>[W(b(gf),null,{default:be(()=>[W(r1,{"product-id":a.id},null,8,["product-id"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):o.value?(w(),C("td",d1)):fe("",!0),r.value?(w(),C("td",f1,[a.currentVersion!=null?(w(),C("div",p1,[a.downloads?(w(),Se(G_,{key:0,downloads:a.downloads},null,8,["downloads"])):fe("",!0)])):fe("",!0)])):fe("",!0)]))),128))])]))}}),m1={class:"moonbase:redeem"},v1=["data-visible"],g1={key:1,class:"moonbase:redeem-voucher"},y1={key:0},b1={key:1},_1={class:"moonbase:redeem-voucher-products"},w1=["src"],E1={key:1,class:"moonbase:image-placeholder"},O1={key:0},N1={class:"moonbase:redeem-voucher-bundle"},x1=["src"],S1={key:1,class:"moonbase:image-placeholder"},k1={key:0},C1={class:"moonbase:redeem-voucher-bundle-products"},T1={class:"shrink-0"},P1=["src"],$1={key:1,class:"moonbase:image-placeholder"},D1=he({__name:"Redeem",setup(e){const{redeem:t}=Rg(),n=R(!1),r=R(null),o=R(null),s=R("");async function i(){n.value=!0,o.value=null;try{r.value=await t(s.value)}catch(a){throw o.value=a,a}n.value=!1}return(a,l)=>(w(),C("div",m1,[W(Ma,{mode:"out-in",name:"moonbase:slide-left"},{default:be(()=>[r.value?(w(),C("div",g1,[N("h3",null,[l[1]||(l[1]=Ce(" You got: ")),N("strong",null,J(r.value.name),1)]),r.value.description?(w(),C("h4",y1,J(r.value.description),1)):fe("",!0),N("h4",null,[l[2]||(l[2]=Ce(" Code: ")),N("strong",null,J(r.value.code),1)]),r.value.redeemsProducts.length>0?(w(),C("div",b1,[l[3]||(l[3]=N("span",null," Contains: ",-1)),N("div",_1,[(w(!0),C(Te,null,an(r.value.redeemsProducts,({value:u,quantity:c})=>(w(),C("div",{key:u.id,class:"moonbase:redeem-voucher-product"},[N("div",null,[u.iconUrl?(w(),C("img",{key:0,src:u.iconUrl,alt:""},null,8,w1)):(w(),C("div",E1))]),N("div",null,[N("p",null,[Ce(J(u.name)+" ",1),c!==1?(w(),C("span",O1,"x "+J(c),1)):fe("",!0)]),N("p",null,J(u.tagline),1)])]))),128)),(w(!0),C(Te,null,an(r.value.redeemsBundles,({value:u,quantity:c})=>(w(),C("div",{key:u.id},[N("div",N1,[N("div",null,[u.iconUrl?(w(),C("img",{key:0,src:u.iconUrl,alt:""},null,8,x1)):(w(),C("div",S1))]),N("div",null,[N("p",null,[Ce(J(u.name)+" ",1),c!==1?(w(),C("span",k1,"x "+J(c),1)):fe("",!0)]),N("p",null,J(u.tagline),1)])]),N("div",C1,[(w(!0),C(Te,null,an(u.products,d=>(w(),C("div",{key:d.id,class:"moonbase:redeem-voucher-product"},[N("div",T1,[d.iconUrl?(w(),C("img",{key:0,src:d.iconUrl,alt:""},null,8,P1)):(w(),C("div",$1))]),N("div",null,[N("p",null,J(d.name),1),N("p",null,J(d.tagline),1)])]))),128))])]))),128))])])):fe("",!0)])):(w(),Se(Jn,{key:0,handler:i},{default:be(()=>{var u;return[W(Et,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),label:"Voucher code",name:"code",required:""},null,8,["modelValue"]),W(Yn,{label:"Redeem",success:"Redeem",error:"Error"}),N("span",{class:"moonbase:error","data-visible":!!o.value||void 0},J((u=o.value)==null?void 0:u.message),9,v1)]}),_:1}))]),_:1})]))}}),I1={class:"moonbase:customer"},A1=he({__name:"Customer",props:{open:{type:Boolean}},setup(e){const t=Ie();function n(s){switch(s){case ae.ViewAccount:return 0;case ae.ViewProducts:return 1;case ae.RedeemVoucher:return 2}return 0}const r=R(n(t.intent));ze(()=>t.intent,s=>{r.value=n(s)});function o(s){r.value=s}return(s,i)=>(w(),Se(ts,{open:s.open,onClose:i[0]||(i[0]=a=>b(t).reset())},{default:be(()=>[N("div",I1,[W(b(kb),{"selected-index":r.value,onChange:o},{default:be(()=>[W(b(Cb),null,{default:be(()=>[W(b(sl),null,{default:be(()=>i[1]||(i[1]=[Ce("Account")])),_:1}),W(b(sl),null,{default:be(()=>i[2]||(i[2]=[Ce(" Products ")])),_:1}),W(b(sl),null,{default:be(()=>i[3]||(i[3]=[Ce("Redeem")])),_:1})]),_:1}),W(b(Tb),null,{default:be(()=>[W(b(il),null,{default:be(()=>[W($_)]),_:1}),W(b(il),null,{default:be(()=>[W(h1)]),_:1}),W(b(il),null,{default:be(()=>[W(D1)]),_:1})]),_:1})]),_:1},8,["selected-index"])])]),_:1},8,["open"]))}}),V1={class:"moonbase:auto-activate"},R1={key:0,class:"moonbase:loader"},j1={key:1,class:"moonbase:loader"},M1={key:2,class:"moonbase:loader"},L1={key:3},U1={key:0,class:"moonbase:auto-activate-product"},F1=["src"],B1={key:1,class:"moonbase:image-placeholder"},H1={key:1,class:"moonbase:loader"},Z1={key:2,class:"moonbase:loader"},q1={key:3,class:"moonbase:loader"},W1={key:4,class:"moonbase:auto-activate-content"},z1={key:0},K1={key:1},G1={class:"moonbase:auto-activate-cta"},J1=["href"],Y1={key:2,class:"moonbase:auto-activate-trial"},X1={class:"moonbase:auto-activate-cta"},Q1=he({__name:"AutoActivate",setup(e){const t=Ie(),{user:n,loaded:r}=wt(),o=t.getParameter("token"),{activationRequest:s,loading:i,fulfilling:a,completing:l,error:u,fulfillLicense:c,fulfillTrial:d,cancel:f}=Vg(o);ze(s,x=>{var O;!a.value&&!l.value&&(x==null?void 0:x.status)===en.Requested&&((O=x==null?void 0:x.licenseEligibility)!=null&&O.eligible)&&c()});function m(){f(),t.show(Oe.Customer,ae.ViewProducts)}function E(){t.enqueue(Oe.Activation,ae.ActivateProduct,t.parameters??void 0),t.show(Oe.Authentication,ae.SignIn)}return(x,O)=>{var I,j,$,z;return w(),C("div",V1,[b(i)||!b(r)?(w(),C("div",R1,[W(Mt)])):b(u)?(w(),C("div",j1,J(b(u)),1)):b(s)?(w(),C("div",L1,[b(s).product?(w(),C("div",U1,[b(s).product.iconUrl?(w(),C("img",{key:0,src:b(s).product.iconUrl,alt:""},null,8,F1)):(w(),C("div",B1)),N("div",null,[N("h2",null,J(b(s).product.name),1),N("h3",null,J(b(s).product.tagline),1)])])):fe("",!0),((I=b(s))==null?void 0:I.status)===b(en).Cancelled?(w(),C("div",H1,O[2]||(O[2]=[N("h3",null," Uh oh ",-1),N("p",null," This activation request was cancelled, open your app to try again. ",-1)]))):b(a)||b(l)?(w(),C("div",Z1,[W(Mt),N("p",null,"Activating "+J(b(s).product.name)+"...",1)])):((j=b(s))==null?void 0:j.status)===b(en).Completed?(w(),C("div",q1,O[3]||(O[3]=[N("h3",null," Done! ",-1),N("p",null," Your product is activated. ",-1)]))):(w(),C("div",W1,[b(n)?($=b(n).ownedProducts)!=null&&$.includes(b(s).product.id)?(w(),C("div",K1,[O[5]||(O[5]=N("p",null," You don't have enough free seats on your licenses to activate this device. Either free up a seat or purchase additional licenses. ",-1)),N("span",G1,[N("button",{role:"button",class:"moonbase:button",onClick:O[0]||(O[0]=y=>m())}," Licenses "),b(s).product&&b(s).product.website?(w(),C("a",{key:0,href:b(s).product.website,class:"moonbase:button"}," Purchase ",8,J1)):fe("",!0)])])):fe("",!0):(w(),C("div",z1,[O[4]||(O[4]=Ce(" Please sign in to use a license ")),N("span",{class:"moonbase:auto-activate-cta"},[N("button",{role:"button",class:"moonbase:button",onClick:E}," Sign in ")])])),(z=b(s).trialEligibility)!=null&&z.eligible?(w(),C("div",Y1,[Ce(" You are eligible for a "+J(b(s).trialEligibility.numberOfDaysPerProduct)+" day trial ",1),b(s).trialEligibility.existing?(w(),C(Te,{key:0},[Ce(" of which you have "+J(b(s).trialEligibility.numberOfDaysRemaining)+" days remaining ",1)],64)):fe("",!0),O[6]||(O[6]=Ce(". ")),N("span",X1,[N("button",{role:"button",class:"moonbase:button",onClick:O[1]||(O[1]=y=>b(d)())}," Start trial ")])])):fe("",!0)]))])):(w(),C("div",M1," Could not find activation request "))])}}}),e0={class:"moonbase:activation"},t0=he({__name:"Activation",props:{open:{type:Boolean}},setup(e){const t=Ie();return(n,r)=>(w(),Se(ts,{open:n.open,onClose:r[0]||(r[0]=o=>b(t).reset())},{default:be(()=>[N("div",e0,[W(b(Qo),{as:"h3"},{default:be(()=>r[1]||(r[1]=[Ce(" Activate product ")])),_:1}),n.open&&b(t).intent===b(ae).ActivateProduct?(w(),Se(Q1,{key:0})):fe("",!0)])]),_:1},8,["open"]))}});function n0(e){const t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e<1)return`${e} B`;const n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),t.length-1);e=Number(e/1024**n);const r=t[n];return e>=10||e%1===0?`${e.toFixed(0)} ${r}`:`${e.toFixed(1)} ${r}`}const r0={class:"moonbase:download-product"},o0={key:0,class:"moonbase:loader"},s0={key:1,class:"moonbase:loader"},i0={key:2,class:"moonbase:loader"},a0={key:3},l0={class:"moonbase:download-product-product"},u0=["src"],c0={key:1,class:"moonbase:image-placeholder"},d0={key:0},f0=["data-open"],p0={key:0,class:"moonbase:download-product-content"},h0={key:1,class:"moonbase:download-product-content"},m0={key:2,class:"moonbase:download-product-content"},v0=["data-open"],g0={key:1,role:"list"},y0={class:"moonbase:download-product-download-name"},b0=["onClick"],_0={class:"moonbase:download-product-download-description"},w0={key:1,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},E0={key:2,class:"moonbase:loader"},O0=he({__name:"DownloadProduct",setup(e){const t=Ie(),{user:n,loaded:r}=wt(),{getProduct:o,downloadProduct:s}=ri(),i={[Qt.Universal]:()=>Of,[Qt.Windows]:()=>Nf,[Qt.Linux]:()=>xf,[Qt.Mac]:()=>Sf},a=R(null),l=R([]),u=R(null),c=R(!0),d=R(!1),f=Y(()=>t.getParameter("key")),m=Y(()=>{var O,I;return(I=(O=a.value)==null?void 0:O.downloads)==null?void 0:I.filter(j=>!f.value||j.key===f.value)});je(async()=>{const O=t.getParameter("product_id"),I=t.getParameter("version");if(!O){u.value="Link is broken";return}try{a.value=await o(O,I||void 0)}catch(j){u.value=j.message}c.value=!1});function E(){t.enqueue(Oe.Download,ae.DownloadProduct,t.parameters??void 0),t.show(Oe.Authentication,ae.SignIn)}async function x(O){l.value.push(O.key),await s(O),l.value=l.value.filter(I=>I!==O.key)}return(O,I)=>{var j,$,z,y,M;return w(),C("div",r0,[c.value||!b(r)?(w(),C("div",o0,[W(Mt)])):u.value?(w(),C("div",s0,J(u.value),1)):a.value?(w(),C("div",a0,[N("div",l0,[a.value.iconUrl?(w(),C("img",{key:0,src:a.value.iconUrl,alt:""},null,8,u0)):(w(),C("div",c0)),N("div",null,[N("h2",null,[Ce(J(a.value.name)+" ",1),N("span",null,"v"+J(a.value.version||a.value.currentVersion),1),a.value.prerelease?(w(),C("span",d0," (pre-release)")):fe("",!0)]),N("h3",null,J(a.value.tagline),1)]),a.value.releaseDescription&&(!a.value.downloadsNeedsUser||b(n))&&(!a.value.downloadsNeedsOwnership||($=(j=b(n))==null?void 0:j.ownedProducts)!=null&&$.includes(a.value.id))?(w(),C("button",{key:2,"data-open":d.value||void 0,onClick:I[0]||(I[0]=P=>d.value=!d.value)},I[1]||(I[1]=[N("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5"})],-1),N("span",null," Details ",-1)]),8,f0)):fe("",!0)]),a.value.downloadsNeedsUser&&!b(n)?(w(),C("div",p0,[I[2]||(I[2]=Ce(" Please sign in to download product ")),N("span",{class:"moonbase:download-product-cta"},[N("button",{role:"button",class:"moonbase:button",onClick:E}," Sign in ")])])):a.value.downloadsNeedsOwnership&&!((y=(z=b(n))==null?void 0:z.ownedProducts)!=null&&y.includes(a.value.id))?(w(),C("div",h0," This product requires ownership to download ")):(w(),C("div",m0,[a.value.releaseDescription?(w(),C("div",{key:0,class:"moonbase:download-product-release-description","data-open":d.value||void 0},[N("div",null,[N("h3",null," v"+J(a.value.version||a.value.currentVersion)+" Release Notes ",1),N("p",null,J(a.value.releaseDescription),1)])],8,v0)):fe("",!0),(M=a.value)!=null&&M.downloads&&a.value.downloads.length>0?(w(),C("ul",g0,[(w(!0),C(Te,null,an(m.value,P=>(w(),C("li",{key:P.key},[N("div",null,[N("p",y0,[N("button",{onClick:re=>x(P)},[I[3]||(I[3]=N("span",{class:"moonbase:download-product-clicker"},null,-1)),Ce(" "+J(P.name),1)],8,b0)]),N("p",_0,[(w(),Se(ha(i[P.platform]()),{"aria-hidden":"true"})),Ce(" "+J(P.platform)+" ",1),I[4]||(I[4]=N("span",null," |",-1)),Ce(" "+J(b(n0)(P.size)),1)])]),N("div",null,[l.value.includes(P.key)?(w(),Se(Mt,{key:0})):(w(),C("svg",w0,I[5]||(I[5]=[N("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"},null,-1)])))])]))),128))])):(w(),C("div",E0," No downloadable files found "))]))])):(w(),C("div",i0," Could not find product "))])}}}),N0={class:"moonbase:download"},x0=he({__name:"Download",props:{open:{type:Boolean}},setup(e){const t=Ie();return(n,r)=>(w(),Se(ts,{open:n.open,onClose:r[0]||(r[0]=o=>b(t).reset())},{default:be(()=>[N("div",N0,[W(b(Qo),{as:"h3"},{default:be(()=>r[1]||(r[1]=[Ce(" Download product ")])),_:1}),n.open&&b(t).intent===b(ae).DownloadProduct?(w(),Se(O0,{key:0})):fe("",!0)])]),_:1},8,["open"]))}}),S0={class:"moonbase:about"},k0=he({__name:"About",props:{open:{type:Boolean}},setup(e){const t=Ie(),n="1.0.0";return(r,o)=>(w(),Se(ts,{open:r.open,onClose:o[0]||(o[0]=s=>b(t).reset())},{default:be(()=>[N("div",S0,[o[2]||(o[2]=N("svg",{viewBox:"0 0 512 512",height:"56px",width:"56px"},[N("g",null,[N("path",{fill:"currentColor",d:"m493.17795,174.6135c6.257,75.3 -30.577,150.948 -100.579,190.758c-66.292,37.697 -145.001,33.405 -205.402,-4.415c0.409,-1.248 0.638,-2.577 0.638,-3.96c0,-7.026 -5.717,-12.743 -12.743,-12.743c-2.876,0 -5.524,0.969 -7.659,2.582c-18.813,-15.259 -35.159,-34.207 -47.856,-56.534c-54.663,-96.122 -21.054,-218.358 75.069,-273.021a201.218,201.218 0 0 1 33.302,-15.124c-32.428,3.667 -64.663,13.809 -94.827,30.962c-104.526,59.443 -149.511,183.241 -113.473,293.249c-3.376,3.057 -5.513,7.459 -5.513,12.362c0,9.207 7.491,16.698 16.698,16.698c0.136,0 0.267,-0.017 0.401,-0.02a252.205,252.205 0 0 0 8.683,16.691c67.869,119.344 219.635,161.073 338.98,93.204a250.416,250.416 0 0 0 32.893,-22.333c1.045,0.331 2.157,0.513 3.311,0.513c6.047,0 10.968,-4.921 10.968,-10.968c0,-0.605 -0.063,-1.196 -0.157,-1.775c69.545,-64.988 96.008,-165.054 67.266,-256.126m-446.526,25.112a5.071,5.071 0 0 1 -5.066,-5.066a5.072,5.072 0 0 1 5.066,-5.067a5.073,5.073 0 0 1 5.066,5.067a5.072,5.072 0 0 1 -5.066,5.066m-15.819,153.944c-8.238,0 -14.94,-6.702 -14.94,-14.94c0,-8.239 6.702,-14.941 14.94,-14.941c8.239,0 14.941,6.702 14.941,14.941c-0.001,8.238 -6.703,14.94 -14.941,14.94m144.258,-7.659c6.057,0 10.985,4.928 10.985,10.986c0,6.058 -4.928,10.985 -10.985,10.985c-6.058,0 -10.986,-4.928 -10.986,-10.985c0.001,-6.059 4.928,-10.986 10.986,-10.986m70.829,133.004c-5.079,0 -9.21,-4.132 -9.21,-9.21c0,-5.079 4.131,-9.21 9.21,-9.21c5.078,0 9.209,4.131 9.209,9.21c0,5.078 -4.13,9.21 -9.209,9.21m169.18,-37.289c-5.078,0 -9.209,-4.132 -9.209,-9.21s4.131,-9.209 9.209,-9.209s9.21,4.131 9.21,9.209s-4.132,9.21 -9.21,9.21"}),N("path",{fill:"currentColor",d:"m144.78195,275.9675c46.746,82.201 151.278,110.943 233.48,64.197c59.864,-34.044 91.363,-98.736 86.013,-163.13a170.094,170.094 0 0 0 -5.515,-31.052c-23.045,0.567 -63.864,10.137 -104.194,61.671c-52.045,66.5 -186.285,49.153 -228.855,17.372c3.503,17.443 9.796,34.632 19.071,50.942m233.513,-65.677a8.663,8.663 0 1 1 -8.663,8.663a8.662,8.662 0 0 1 8.663,-8.663m-37.006,62.618c7.02,0 12.712,5.691 12.712,12.712s-5.692,12.712 -12.712,12.712c-7.021,0 -12.712,-5.691 -12.712,-12.712s5.691,-12.712 12.712,-12.712m-102.544,12.712a6.78,6.78 0 1 1 0,13.56a6.78,6.78 0 0 1 0,-13.56"}),N("ellipse",{fill:"currentColor",ry:"7.3075",rx:"7.3075",cy:"152.05851",cx:"251.33138"}),N("ellipse",{fill:"currentColor",ry:"5.35076",rx:"5.35076",cy:"210.31151",cx:"204.89499"}),N("ellipse",{fill:"currentColor",ry:"12.09273",rx:"12.09273",cy:"200.15625",cx:"302.28597"})])],-1)),W(b(Qo),{as:"h3"},{default:be(()=>o[1]||(o[1]=[Ce(" Moonbase Embedded Storefront ")])),_:1}),N("h4",null," Version "+J(b(n)),1),o[3]||(o[3]=N("p",null,[Ce(" This store is using the "),N("a",{href:"https://moonbase.sh/solutions/payments",target:"_blank"},"Moonbase Embedded Storefront"),Ce(" to accept payments, provide authentication and power software licensing. ")],-1))])]),_:1},8,["open"]))}});function C0(){const e=R(null),t=[/^user\.name$/,/^user\.email$/,/^cart\.item_count$/,/^product\.[a-z\-]+\.name$/,/^product\.[a-z\-]+\.price$/,/^product\.[a-z\-]+\.original_price$/,/^bundle\.[a-z\-]+\.name$/,/^bundle\.[a-z\-]+\.price$/,/^bundle\.[a-z\-]+\.original_price$/],n=R({}),r=Y(()=>n.value.user||[]),o=Y(()=>n.value.cart||[]),s=Y(()=>n.value.product||[]),i=Y(()=>n.value.bundle||[]),a=[/^user$/,/^cart.has_items$/,/^product\.[a-z\-]+(\.has_discount)?$/,/^bundle\.[a-z\-]+(\.has_discount)?$/],l=R({}),u=Y(()=>l.value.user||[]),c=Y(()=>l.value.cart||[]),d=Y(()=>l.value.product||[]),f=Y(()=>l.value.bundle||[]),m=wt(),{currency:E,items:x}=oi(),O=Ag(),I=Ig();ze([r,u,m.user],([j,$,z])=>{if(j){for(const y of j)if(y.textContent&&!y.dataset.moonbaseOriginal&&(y.dataset.moonbaseOriginal=y.textContent),z)switch(y.dataset.moonbaseRender){case"user.name":y.textContent=z.name;break;case"user.email":y.textContent=z.email;break}else y.dataset.moonbaseOriginal?y.textContent=y.dataset.moonbaseOriginal:y.textContent="";for(const y of $)y.dataset.moonbaseOriginalHidden||(y.dataset.moonbaseOriginalHidden=y.hidden?"true":"false"),z?y.hidden=y.dataset.moonbaseIf==="!user":y.hidden=y.dataset.moonbaseIf==="user"}},{immediate:!0}),ze([o,c,x],([j,$,z])=>{if(j){for(const y of j)switch(y.textContent&&!y.dataset.moonbaseOriginal&&(y.dataset.moonbaseOriginal=y.textContent),y.dataset.moonbaseRender){case"cart.item_count":y.textContent=z.reduce((M,P)=>M+P.quantity,0).toString();break}for(const y of $){if(!y.dataset.moonbaseIf)return;const M=y.dataset.moonbaseIf.split("."),P=M[1];let re=!1;switch(P){case"has_items":re=z.length>0;break}M[0].startsWith("!")&&(re=!re),y.dataset.moonbaseOriginalHidden||(y.dataset.moonbaseOriginalHidden=y.hidden?"true":"false"),re?y.hidden=!1:y.hidden=!0}}},{immediate:!0}),ze([s,d,O,E],([j,$,z,y])=>{var M,P,re;if(j){for(const S of j){const A=(M=S.dataset.moonbaseRender)==null?void 0:M.split(".")[1],D=(P=S.dataset.moonbaseRender)==null?void 0:P.split(".")[2],k=z.find(L=>L.id===A);if(S.textContent&&!S.dataset.moonbaseOriginal&&(S.dataset.moonbaseOriginal=S.textContent),k&&k.defaultVariation)switch(D){case"name":S.textContent=k.name;break;case"price":S.textContent=Dt(k.defaultVariation.price[y],y);break;case"original_price":S.textContent=Dt(k.defaultVariation.originalPrice[y],y);break}else S.dataset.moonbaseOriginal?S.textContent=S.dataset.moonbaseOriginal:S.textContent=""}for(const S of $){if(!S.dataset.moonbaseIf)return;const A=S.dataset.moonbaseIf.split("."),D=A.length===2?"product":A[2],k=A[1],L=z.find(h=>h.id===k);let ne=!1;switch(D){case"product":ne=!!L;break;case"has_discount":ne=!!((re=L==null?void 0:L.defaultVariation)!=null&&re.hasDiscount);break}A[0].startsWith("!")&&(ne=!ne),S.dataset.moonbaseOriginalHidden||(S.dataset.moonbaseOriginalHidden=S.hidden?"true":"false"),ne?S.hidden=!1:S.hidden=!0}}},{immediate:!0}),ze([i,f,I,E],([j,$,z,y])=>{var M,P,re;if(j){for(const S of j){const A=(M=S.dataset.moonbaseRender)==null?void 0:M.split(".")[1],D=(P=S.dataset.moonbaseRender)==null?void 0:P.split(".")[2],k=z.find(L=>L.id===A);if(S.textContent&&!S.dataset.moonbaseOriginal&&(S.dataset.moonbaseOriginal=S.textContent),k&&k.defaultVariation)switch(D){case"name":S.textContent=k.name;break;case"price":S.textContent=Dt(k.defaultVariation.price[y],y);break;case"original_price":S.textContent=Dt(k.defaultVariation.originalPrice[y],y);break}else S.dataset.moonbaseOriginal?S.textContent=S.dataset.moonbaseOriginal:S.textContent=""}for(const S of $){if(!S.dataset.moonbaseIf)return;const A=S.dataset.moonbaseIf.split("."),D=A.length===2?"bundle":A[2],k=A[1],L=z.find(h=>h.id===k);let ne=!1;switch(D){case"bundle":ne=!!L;break;case"has_discount":ne=!!((re=L==null?void 0:L.defaultVariation)!=null&&re.hasDiscount);break}A[0].startsWith("!")&&(ne=!ne),S.dataset.moonbaseOriginalHidden||(S.dataset.moonbaseOriginalHidden=S.hidden?"true":"false"),ne?S.hidden=!1:S.hidden=!0}}},{immediate:!0}),je(()=>{var M;e.value=new MutationObserver((P,re)=>{var S,A;for(const D of P)if(D.type==="childList"){for(const k of D.addedNodes){const L=k;if(L.dataset&&L.dataset.moonbaseRender){const ne=L.dataset.moonbaseRender;if(!ne||!t.some(h=>h.test(ne)))console.warn(`Element has an unknown Moonbase target (${ne})`,L);else if(ne){const h=ne.split(".")[0];n.value[h]=n.value[h]||[],n.value[h].push(L)}}if(L.dataset&&L.dataset.moonbaseIf){const ne=(S=L.dataset.moonbaseIf)==null?void 0:S.replace(/^!/,"");if(!ne||!a.some(h=>h.test(ne)))console.warn(`Element has an unknown Moonbase target (${ne})`,L);else if(ne){const h=ne.split(".")[0];l.value[h]=l.value[h]||[],l.value[h].push(L)}}}for(const k of D.removedNodes){const L=k;if(L.dataset&&L.dataset.moonbaseRender){const ne=L.dataset.moonbaseRender;if(!ne||!t.some(h=>h.test(ne)))console.warn(`Element has an unknown Moonbase target (${ne})`,L);else if(ne){const h=ne.split(".")[0];n.value[h]&&(n.value[h]=n.value[h].filter(V=>V!==L))}}if(L.dataset&&L.dataset.moonbaseIf){const ne=(A=L.dataset.moonbaseIf)==null?void 0:A.replace(/^!/,"");if(!ne||!a.some(h=>h.test(ne)))console.warn(`Element has an unknown Moonbase target (${ne})`,L);else if(ne){const h=ne.split(".")[0];l.value[h]&&(l.value[h]=l.value[h].filter(V=>V!==L))}}}}else if(D.type==="attributes"&&D.attributeName){const k=D.target.getAttribute(D.attributeName);fl(`The ${D.attributeName} attribute was modified from ${D.oldValue} to ${k}.`);const L=D.target;if(D.attributeName==="data-moonbase-render"){const ne=D.oldValue;if(ne){const h=ne.split(".")[0];n.value[h]&&(n.value[h]=n.value[h].filter(V=>V!==L))}if(!k||!t.some(h=>h.test(k)))k&&console.warn(`Element has an unknown Moonbase target (${k})`,L),L.dataset.moonbaseOriginal&&(L.textContent=L.dataset.moonbaseOriginal);else if(k){const h=k==null?void 0:k.split(".")[0];n.value[h]=n.value[h]||[],n.value[h].includes(L)||n.value[h].push(L)}}if(D.attributeName==="data-moonbase-if"){const ne=D.oldValue;if(ne){const h=ne.split(".")[0];l.value[h]&&(l.value[h]=l.value[h].filter(V=>V!==L))}if(!k||!a.some(h=>h.test(k)))k&&console.warn(`Element has an unknown Moonbase target (${k})`,L),L.dataset.moonbaseOriginalHidden==="true"&&(L.hidden=!0);else if(k){const h=k==null?void 0:k.split(".")[0];l.value[h]=l.value[h]||[],l.value[h].includes(L)||l.value[h].push(L)}}}else fl(`A ${D.type} mutation took place.`)}),e.value.observe(document.body,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["data-moonbase-if","data-moonbase-render"]});const j={},$=document.querySelectorAll("[data-moonbase-render]");for(const P of $){const re=P.dataset.moonbaseRender;if(!re||!t.some(S=>S.test(re)))console.warn(`Element has an unknown Moonbase target (${re})`,P);else if(re){const S=re.split(".")[0];j[S]=j[S]||[],j[S].push(P)}}n.value=j;const z={},y=document.querySelectorAll("[data-moonbase-if]");for(const P of y){const re=(M=P.dataset.moonbaseIf)==null?void 0:M.replace(/^!/,"");if(!re||!a.some(S=>S.test(re)))console.warn(`Element has an unknown Moonbase target (${re})`,P);else if(re){const S=re.split(".")[0];z[S]=z[S]||[],z[S].push(P)}}l.value=z}),dt(()=>e.value&&e.value.disconnect())}const T0=he({__name:"App",setup(e){const t=ke(Nr),n=Ie();return ze(()=>[n.active,n.intent],([r,o])=>{}),C0(),(r,o)=>{var s;return w(),C(Te,null,[(s=b(t))!=null&&s.toolbar.enabled?(w(),Se(gy,{key:0})):fe("",!0),W(S_,{open:b(n).active===b(Oe).Cart},null,8,["open"]),W(Fb,{open:b(n).active===b(Oe).Authentication},null,8,["open"]),W(t0,{open:b(n).active===b(Oe).Activation},null,8,["open"]),W(x0,{open:b(n).active===b(Oe).Download},null,8,["open"]),W(A1,{open:b(n).active===b(Oe).Customer},null,8,["open"]),W(k0,{open:b(n).active===b(Oe).About},null,8,["open"])],64)}}});function _i(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!(e instanceof HTMLElement)}function pl(e,...t){if(t.length===0)return e;const n=t.shift();if(!n)return e;if(_i(e)&&_i(n)){for(const r in e)if(Object.prototype.hasOwnProperty.call(n,r)){const o=n[r];_i(o)&&_i(e[r])?e[r]=pl(e[r],o):o!==void 0&&(e[r]=o)}}return pl(e,...t)}class P0{constructor(){Tr(this,"initialized",!1);Tr(this,"pinia");Tr(this,"storefront");Tr(this,"options")}async setup(t,n){if(typeof window>"u")throw console.error("Moonbase setup must be done client-side"),new Error("Moonbase setup must be done client-side");if(document.getElementById("moonbase")){console.warn("Moonbase has already been initialized!");return}this.options=pl(py,n??{}),fl("Merged options:",this.options);const r=document.createElement("div");if(r.id="moonbase",r.classList.add("moonbase"),(this.options.target??document.body).append(r),this.storefront=jg(t),this.pinia=ly(),gg(T0).use(this.storefront).use(this.pinia).provide(Nr,this.options).mount("#moonbase"),this.initialized=!0,window&&window.location){const l=new URLSearchParams(window.location.search),u=l.get("mb_intent");if(u&&Object.values(ae).includes(u)){const c=Object.fromEntries([...l.entries()].filter(([f])=>f.startsWith("mb_")).map(([f,m])=>[f.substring(3),m]));if(u===ae.Checkout&&c.complete)return;this[u](c);for(const f of Object.keys(c))l.delete(`mb_${f}`);const d=l.toString();window.history.replaceState(null,"",window.location.href.split("?")[0]+(d?`?${d}`:""))}}const i=Ie(this.pinia),a=wt(this.storefront);this.storefront.onCheckoutClosed(l=>{l===ae.ViewProducts&&(a.user?i.show(Oe.Customer,ae.ViewProducts):i.show(Oe.Cart,ae.ViewCart))})}sign_in(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Ie(this.pinia).show(Oe.Authentication,ae.SignIn,t)}sign_up(t){var r;if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!((r=this.options)!=null&&r.auth.signUp.enabled))throw new Error("Sign ups are not enabled");Ie(this.pinia).show(Oe.Authentication,ae.SignUp,t)}forgot_password(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Ie(this.pinia).show(Oe.Authentication,ae.ForgotPassword,t)}reset_password(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Ie(this.pinia).show(Oe.Authentication,ae.ResetPassword,t)}confirm_account(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Ie(this.pinia).show(Oe.Authentication,ae.ConfirmAccount,t)}confirm_email(){}confirm_email_change(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");const n=Ie(this.pinia);wt(this.storefront).user.value?n.show(Oe.Authentication,ae.ConfirmEmailChange,t):(n.show(Oe.Authentication,ae.SignIn),n.enqueue(Oe.Authentication,ae.ConfirmEmailChange,t))}view_account(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");const t=Ie(this.pinia);wt(this.storefront).user.value?t.show(Oe.Customer,ae.ViewAccount):(t.show(Oe.Authentication,ae.SignIn),t.enqueue(Oe.Customer,ae.ViewAccount))}view_products(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Ie(this.pinia).show(Oe.Cart,ae.ViewCart)}redeem_voucher(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Ie(this.pinia).show(Oe.Cart,ae.ViewCart,t)}download_product(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Ie(this.pinia).show(Oe.Download,ae.DownloadProduct,t)}activate_product(t){if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!(t!=null&&t.token))throw new Error("You need to provide a token when activating a product");Ie(this.pinia).show(Oe.Activation,ae.ActivateProduct,t)}view_cart(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Ie(this.pinia).show(Oe.Cart,ae.ViewCart)}async add_to_cart(t){var o,s,i,a;if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!(t!=null&&t.product_id)&&!(t!=null&&t.bundle_id))throw new Error("You need to provide a product or bundle ID when adding to cart");const n=oi(this.storefront);if(t!=null&&t.product_id){const l=vd(t.product_id,this.storefront);if(l.value)n.addToCart(l.value,(o=l.value.variations)==null?void 0:o.find(u=>u.id===t.variation_id));else{await this.storefront.loadedStorefrontPromise;const u=vd(t.product_id,this.storefront);if(u.value)n.addToCart(u.value,(s=u.value.variations)==null?void 0:s.find(c=>c.id===t.variation_id));else throw new Error(`Product '${t.product_id}' not found`)}}if(t!=null&&t.bundle_id){const l=md(t.bundle_id,this.storefront);if(l.value)n.addToCart(l.value,(i=l.value.variations)==null?void 0:i.find(u=>u.id===t.variation_id));else{await this.storefront.loadedStorefrontPromise;const u=md(t.bundle_id,this.storefront);if(u.value)n.addToCart(u.value,(a=u.value.variations)==null?void 0:a.find(c=>c.id===t.variation_id));else throw new Error(`Bundle '${t.bundle_id}' not found`)}}Ie(this.pinia).show(Oe.Cart,ae.AddToCart)}checkout(t){var r;if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(t!=null&&t.complete)return;oi(this.storefront).checkout({redirect:((r=this.options)==null?void 0:r.checkout.redirect)||!1,returnUrl:`${window.location.pathname}?mb_intent=view_products`})}close_checkout(){var t;if(!this.initialized)throw new Error("Moonbase has not been set up yet");(t=this.storefront)==null||t.closeCheckout()}view_about(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Ie(this.pinia).show(Oe.About,ae.ViewAbout)}}const kf=new P0;globalThis&&(globalThis.Moonbase?console.warn("Multiple instances of Moonbase detected, only one will be initialized"):globalThis.Moonbase=kf),kt.MoonbaseIntent=ae,kt.default=kf,Object.defineProperties(kt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});