@nostale/cli 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +36 -0
- package/assets/docker-compose.server.yml +70 -0
- package/dist/commands/config/generation.js +23 -0
- package/dist/commands/config/providers.js +138 -0
- package/dist/commands/config/sources.js +145 -0
- package/dist/commands/config/templates.js +117 -0
- package/dist/commands/config/tokens.js +83 -0
- package/dist/commands/config.js +43 -0
- package/dist/commands/doctor.js +98 -0
- package/dist/commands/setup.js +5 -0
- package/dist/commands/start.js +23 -0
- package/dist/commands/status.js +17 -0
- package/dist/commands/stop.js +16 -0
- package/dist/index.js +23 -0
- package/dist/lib/api-config.js +21 -0
- package/dist/lib/env-writer.js +41 -0
- package/dist/lib/http.js +117 -0
- package/dist/lib/install-root.js +75 -0
- package/dist/lib/paths.js +12 -0
- package/dist/lib/ports.js +19 -0
- package/dist/lib/process-manager.js +151 -0
- package/dist/lib/repo-root.js +34 -0
- package/dist/lib/wizard.js +267 -0
- package/dist/tui/prompts.js +54 -0
- package/package.json +69 -0
- package/services/mcp-server/index.cjs +48326 -0
- package/services/migrations/001_init_rag_v1.sql +128 -0
- package/services/migrations/002_doc_lifecycle.sql +96 -0
- package/services/migrations/004_mcp_tokens.sql +11 -0
- package/services/migrations/005_settings.sql +28 -0
- package/services/migrations/006_document_sources.sql +14 -0
- package/services/migrations/007_generation_settings.sql +9 -0
- package/services/migrations/008_llm_provider_configs_unique.sql +5 -0
- package/services/wasm/tree-sitter-c.wasm +0 -0
- package/services/wasm/tree-sitter-c_sharp.wasm +0 -0
- package/services/wasm/tree-sitter-cpp.wasm +0 -0
- package/services/wasm/tree-sitter-dart.wasm +0 -0
- package/services/wasm/tree-sitter-go.wasm +0 -0
- package/services/wasm/tree-sitter-java.wasm +0 -0
- package/services/wasm/tree-sitter-javascript.wasm +0 -0
- package/services/wasm/tree-sitter-kotlin.wasm +0 -0
- package/services/wasm/tree-sitter-php.wasm +0 -0
- package/services/wasm/tree-sitter-python.wasm +0 -0
- package/services/wasm/tree-sitter-rust.wasm +0 -0
- package/services/wasm/tree-sitter-tsx.wasm +0 -0
- package/services/wasm/tree-sitter-typescript.wasm +0 -0
- package/services/wasm/tree-sitter.wasm +0 -0
- package/services/wiki-api/index.cjs +82370 -0
- package/services/wiki-web/.output/nitro.json +15 -0
- package/services/wiki-web/.output/public/_nuxt/68caad34b1e80fa12b3a.4Cpu5VkB.woff +0 -0
- package/services/wiki-web/.output/public/_nuxt/6b042d50787d4a81d659.D7JGeKLp.svg +1835 -0
- package/services/wiki-web/.output/public/_nuxt/9065bfe481020b04b68a.CMveUrS1.woff2 +0 -0
- package/services/wiki-web/.output/public/_nuxt/B5j-AdCY.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/BAgZ2ZFT.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/BcxnhBGC.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/BeIDAJKt.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/BebqDWPm.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/CFx_Wb7e.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/CSEkmdhK.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/CXYMfke_.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/Cap3hpB7.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/Ckd7UvSj.js +3 -0
- package/services/wiki-web/.output/public/_nuxt/D0DJQL09.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/DRDlUXmk.js +66 -0
- package/services/wiki-web/.output/public/_nuxt/DW42QLqA.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/DdDtdYim.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/Dm1y7TW1.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/DptiLPkM.js +4 -0
- package/services/wiki-web/.output/public/_nuxt/QFl-TMXl.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/_id_.JvKV2jiN.css +1 -0
- package/services/wiki-web/.output/public/_nuxt/a9c9056a643325579e2a.CCNAgZDa.ttf +0 -0
- package/services/wiki-web/.output/public/_nuxt/bojElwT6.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/builds/latest.json +1 -0
- package/services/wiki-web/.output/public/_nuxt/builds/meta/f68e5546-2919-478b-b4ad-702826e8383c.json +1 -0
- package/services/wiki-web/.output/public/_nuxt/d495aba62101f856c80f.DJ4Lg1TH.eot +0 -0
- package/services/wiki-web/.output/public/_nuxt/entry.isoIPAS3.css +1 -0
- package/services/wiki-web/.output/public/_nuxt/f8QtLg7g.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/nhMvlSQm.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/pFBugkEL.js +1 -0
- package/services/wiki-web/.output/public/_nuxt/plus-jakarta-sans-latin-ext-wght-normal.DmpS2jIq.woff2 +0 -0
- package/services/wiki-web/.output/public/_nuxt/plus-jakarta-sans-latin-wght-normal.eXO_dkmS.woff2 +0 -0
- package/services/wiki-web/.output/public/_nuxt/plus-jakarta-sans-vietnamese-wght-normal.qRpaaN48.woff2 +0 -0
- package/services/wiki-web/.output/public/favicon.svg +6 -0
- package/services/wiki-web/.output/public/robots.txt +2 -0
- package/services/wiki-web/.output/server/chunks/_/error-500.mjs +19 -0
- package/services/wiki-web/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/services/wiki-web/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/services/wiki-web/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/services/wiki-web/.output/server/chunks/nitro/nitro.mjs +5352 -0
- package/services/wiki-web/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/services/wiki-web/.output/server/chunks/routes/api-proxy/_...path_.mjs +34 -0
- package/services/wiki-web/.output/server/chunks/routes/api-proxy/_...path_.mjs.map +1 -0
- package/services/wiki-web/.output/server/chunks/routes/renderer.mjs +369 -0
- package/services/wiki-web/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/services/wiki-web/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/services/wiki-web/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/services/wiki-web/.output/server/index.mjs +10 -0
- package/services/wiki-web/.output/server/index.mjs.map +1 -0
- package/services/wiki-web/.output/server/node_modules/@babel/parser/lib/index.js +14599 -0
- package/services/wiki-web/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/services/wiki-web/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6759 -0
- package/services/wiki-web/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/services/wiki-web/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/services/wiki-web/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/services/wiki-web/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/services/wiki-web/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/services/wiki-web/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1899 -0
- package/services/wiki-web/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/services/wiki-web/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6940 -0
- package/services/wiki-web/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/services/wiki-web/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1822 -0
- package/services/wiki-web/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/services/wiki-web/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +896 -0
- package/services/wiki-web/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/services/wiki-web/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/services/wiki-web/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/services/wiki-web/.output/server/node_modules/devalue/index.js +4 -0
- package/services/wiki-web/.output/server/node_modules/devalue/package.json +40 -0
- package/services/wiki-web/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/services/wiki-web/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/services/wiki-web/.output/server/node_modules/devalue/src/parse.js +283 -0
- package/services/wiki-web/.output/server/node_modules/devalue/src/stringify.js +401 -0
- package/services/wiki-web/.output/server/node_modules/devalue/src/uneval.js +552 -0
- package/services/wiki-web/.output/server/node_modules/devalue/src/utils.js +160 -0
- package/services/wiki-web/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/services/wiki-web/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/services/wiki-web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/services/wiki-web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/services/wiki-web/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/services/wiki-web/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/services/wiki-web/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/services/wiki-web/.output/server/node_modules/entities/package.json +120 -0
- package/services/wiki-web/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/services/wiki-web/.output/server/node_modules/estree-walker/package.json +37 -0
- package/services/wiki-web/.output/server/node_modules/hookable/dist/index.mjs +257 -0
- package/services/wiki-web/.output/server/node_modules/hookable/package.json +53 -0
- package/services/wiki-web/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/services/wiki-web/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/services/wiki-web/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/services/wiki-web/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/services/wiki-web/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/services/wiki-web/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/services/wiki-web/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/services/wiki-web/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/services/wiki-web/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/services/wiki-web/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/services/wiki-web/.output/server/node_modules/source-map-js/package.json +71 -0
- package/services/wiki-web/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/services/wiki-web/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/services/wiki-web/.output/server/node_modules/ufo/package.json +48 -0
- package/services/wiki-web/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/services/wiki-web/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/services/wiki-web/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/services/wiki-web/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +207 -0
- package/services/wiki-web/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/services/wiki-web/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +182 -0
- package/services/wiki-web/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/services/wiki-web/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
- package/services/wiki-web/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/services/wiki-web/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +166 -0
- package/services/wiki-web/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/services/wiki-web/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/services/wiki-web/.output/server/node_modules/unhead/package.json +105 -0
- package/services/wiki-web/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/services/wiki-web/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/services/wiki-web/.output/server/node_modules/vue/index.js +7 -0
- package/services/wiki-web/.output/server/node_modules/vue/index.mjs +1 -0
- package/services/wiki-web/.output/server/node_modules/vue/package.json +112 -0
- package/services/wiki-web/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/services/wiki-web/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +249 -0
- package/services/wiki-web/.output/server/node_modules/vue-bundle-renderer/package.json +57 -0
- package/services/wiki-web/.output/server/package.json +26 -0
- package/services/wiki-worker/index.cjs +66661 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DdDtdYim.js","./BeIDAJKt.js","./BcxnhBGC.js","./nhMvlSQm.js","./Dm1y7TW1.js","./f8QtLg7g.js","./pFBugkEL.js","./D0DJQL09.js","./bojElwT6.js","./DW42QLqA.js","./CFx_Wb7e.js","./Ckd7UvSj.js","./DRDlUXmk.js","./_id_.JvKV2jiN.css","./Cap3hpB7.js","./CXYMfke_.js","./CSEkmdhK.js","./BebqDWPm.js","./B5j-AdCY.js","./QFl-TMXl.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function ri(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ue={},Pn=[],xt=()=>{},Nl=()=>!1,kr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vs=e=>e.startsWith("onUpdate:"),Pe=Object.assign,si=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},jf=Object.prototype.hasOwnProperty,pe=(e,t)=>jf.call(e,t),G=Array.isArray,An=e=>Qn(e)==="[object Map]",zn=e=>Qn(e)==="[object Set]",Ni=e=>Qn(e)==="[object Date]",Hf=e=>Qn(e)==="[object RegExp]",ne=e=>typeof e=="function",we=e=>typeof e=="string",Ze=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",oi=e=>(de(e)||ne(e))&&ne(e.then)&&ne(e.catch),Fl=Object.prototype.toString,Qn=e=>Fl.call(e),Df=e=>Qn(e).slice(8,-1),jl=e=>Qn(e)==="[object Object]",ws=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,pn=ri(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_s=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},$f=/-\w/g,Be=_s(e=>e.replace($f,t=>t.slice(1).toUpperCase())),Uf=/\B([A-Z])/g,en=_s(e=>e.replace(Uf,"-$1").toLowerCase()),Ss=_s(e=>e.charAt(0).toUpperCase()+e.slice(1)),Bs=_s(e=>e?`on${Ss(e)}`:""),Fe=(e,t)=>!Object.is(e,t),On=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Hl=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Es=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Dl=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let Fi;const xs=()=>Fi||(Fi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ii(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=we(r)?Wf(r):ii(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(we(e)||de(e))return e}const Bf=/;(?![^(]*\))/g,qf=/:([^]+)/,Vf=/\/\*[^]*?\*\//g;function Wf(e){const t={};return e.replace(Vf,"").split(Bf).forEach(n=>{if(n){const r=n.split(qf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Gt(e){let t="";if(we(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const r=Gt(e[n]);r&&(t+=r+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Kf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",zf=ri(Kf);function $l(e){return!!e||e===""}function Qf(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Yt(e[r],t[r]);return n}function Yt(e,t){if(e===t)return!0;let n=Ni(e),r=Ni(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ze(e),r=Ze(t),n||r)return e===t;if(n=G(e),r=G(t),n||r)return n&&r?Qf(e,t):!1;if(n=de(e),r=de(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!Yt(e[i],t[i]))return!1}}return String(e)===String(t)}function ai(e,t){return e.findIndex(n=>Yt(n,t))}const Ul=e=>!!(e&&e.__v_isRef===!0),ar=e=>we(e)?e:e==null?"":G(e)||de(e)&&(e.toString===Fl||!ne(e.toString))?Ul(e)?ar(e.value):JSON.stringify(e,Bl,2):String(e),Bl=(e,t)=>Ul(t)?Bl(e,t.value):An(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[qs(r,o)+" =>"]=s,n),{})}:zn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>qs(n))}:Ze(t)?qs(t):de(t)&&!G(t)&&!jl(t)?String(t):t,qs=(e,t="")=>{var n;return Ze(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Me;class ql{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Me&&(Me.active?(this.parent=Me,this.index=(Me.scopes||(Me.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!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=Me;try{return Me=this,t()}finally{Me=n}}}on(){++this._on===1&&(this.prevScope=Me,Me=this)}off(){if(this._on>0&&--this._on===0){if(Me===this)Me=this.prevScope;else{let t=Me;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Gf(e){return new ql(e)}function li(){return Me}function Jf(e,t=!1){Me&&Me.cleanups.push(e)}let ve;const Vs=new WeakSet;class Vl{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Me&&(Me.active?Me.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Vs.has(this)&&(Vs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Kl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ji(this),zl(this);const t=ve,n=ht;ve=this,ht=!0;try{return this.fn()}finally{Ql(this),ve=t,ht=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)fi(t);this.deps=this.depsTail=void 0,ji(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Vs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){bo(this)&&this.run()}get dirty(){return bo(this)}}let Wl=0,lr,cr;function Kl(e,t=!1){if(e.flags|=8,t){e.next=cr,cr=e;return}e.next=lr,lr=e}function ci(){Wl++}function ui(){if(--Wl>0)return;if(cr){let t=cr;for(cr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;lr;){let t=lr;for(lr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function zl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ql(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),fi(r),Yf(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function bo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Gl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Gl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pr)||(e.globalVersion=pr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!bo(e))))return;e.flags|=2;const t=e.dep,n=ve,r=ht;ve=e,ht=!0;try{zl(e);const s=e.fn(e._value);(t.version===0||Fe(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ve=n,ht=r,Ql(e),e.flags&=-3}}function fi(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)fi(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Yf(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 Jl=[];function kt(){Jl.push(ht),ht=!1}function Rt(){const e=Jl.pop();ht=e===void 0?!0:e}function ji(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ve;ve=void 0;try{t()}finally{ve=n}}}let pr=0;class Xf{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ks{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ve||!ht||ve===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ve)n=this.activeLink=new Xf(ve,this),ve.deps?(n.prevDep=ve.depsTail,ve.depsTail.nextDep=n,ve.depsTail=n):ve.deps=ve.depsTail=n,Yl(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 n}trigger(t){this.version++,pr++,this.notify(t)}notify(t){ci();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ui()}}}function Yl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Yl(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Xr=new WeakMap,gn=Symbol(""),vo=Symbol(""),gr=Symbol("");function De(e,t,n){if(ht&&ve){let r=Xr.get(e);r||Xr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new ks),s.map=r,s.key=n),s.track()}}function Nt(e,t,n,r,s,o){const i=Xr.get(e);if(!i){pr++;return}const l=a=>{a&&a.trigger()};if(ci(),t==="clear")i.forEach(l);else{const a=G(e),u=a&&ws(n);if(a&&n==="length"){const c=Number(r);i.forEach((f,h)=>{(h==="length"||h===gr||!Ze(h)&&h>=c)&&l(f)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),u&&l(i.get(gr)),t){case"add":a?u&&l(i.get("length")):(l(i.get(gn)),An(e)&&l(i.get(vo)));break;case"delete":a||(l(i.get(gn)),An(e)&&l(i.get(vo)));break;case"set":An(e)&&l(i.get(gn));break}}ui()}function Zf(e,t){const n=Xr.get(e);return n&&n.get(t)}function kn(e){const t=ce(e);return t===e?t:(De(t,"iterate",gr),Xe(e)?t:t.map(pt))}function Rs(e){return De(e=ce(e),"iterate",gr),e}function St(e,t){return Tt(e)?$n(Jt(e)?pt(t):t):pt(t)}const ed={__proto__:null,[Symbol.iterator](){return Ws(this,Symbol.iterator,e=>St(this,e))},concat(...e){return kn(this).concat(...e.map(t=>G(t)?kn(t):t))},entries(){return Ws(this,"entries",e=>(e[1]=St(this,e[1]),e))},every(e,t){return Pt(this,"every",e,t,void 0,arguments)},filter(e,t){return Pt(this,"filter",e,t,n=>n.map(r=>St(this,r)),arguments)},find(e,t){return Pt(this,"find",e,t,n=>St(this,n),arguments)},findIndex(e,t){return Pt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Pt(this,"findLast",e,t,n=>St(this,n),arguments)},findLastIndex(e,t){return Pt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Pt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ks(this,"includes",e)},indexOf(...e){return Ks(this,"indexOf",e)},join(e){return kn(this).join(e)},lastIndexOf(...e){return Ks(this,"lastIndexOf",e)},map(e,t){return Pt(this,"map",e,t,void 0,arguments)},pop(){return Yn(this,"pop")},push(...e){return Yn(this,"push",e)},reduce(e,...t){return Hi(this,"reduce",e,t)},reduceRight(e,...t){return Hi(this,"reduceRight",e,t)},shift(){return Yn(this,"shift")},some(e,t){return Pt(this,"some",e,t,void 0,arguments)},splice(...e){return Yn(this,"splice",e)},toReversed(){return kn(this).toReversed()},toSorted(e){return kn(this).toSorted(e)},toSpliced(...e){return kn(this).toSpliced(...e)},unshift(...e){return Yn(this,"unshift",e)},values(){return Ws(this,"values",e=>St(this,e))}};function Ws(e,t,n){const r=Rs(e),s=r[t]();return r!==e&&!Xe(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const td=Array.prototype;function Pt(e,t,n,r,s,o){const i=Rs(e),l=i!==e&&!Xe(e),a=i[t];if(a!==td[t]){const f=a.apply(e,o);return l?pt(f):f}let u=n;i!==e&&(l?u=function(f,h){return n.call(this,St(e,f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const c=a.call(i,u,r);return l&&s?s(c):c}function Hi(e,t,n,r){const s=Rs(e),o=s!==e&&!Xe(e);let i=n,l=!1;s!==e&&(o?(l=r.length===0,i=function(u,c,f){return l&&(l=!1,u=St(e,u)),n.call(this,u,St(e,c),f,e)}):n.length>3&&(i=function(u,c,f){return n.call(this,u,c,f,e)}));const a=s[t](i,...r);return l?St(e,a):a}function Ks(e,t,n){const r=ce(e);De(r,"iterate",gr);const s=r[t](...n);return(s===-1||s===!1)&&Ps(n[0])?(n[0]=ce(n[0]),r[t](...n)):s}function Yn(e,t,n=[]){kt(),ci();const r=ce(e)[t].apply(e,n);return ui(),Rt(),r}const nd=ri("__proto__,__v_isRef,__isVue"),Xl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ze));function rd(e){Ze(e)||(e=String(e));const t=ce(this);return De(t,"has",e),t.hasOwnProperty(e)}class Zl{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?oc:sc:o?rc:nc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=G(t);if(!s){let a;if(i&&(a=ed[n]))return a;if(n==="hasOwnProperty")return rd}const l=Reflect.get(t,n,xe(t)?t:r);if((Ze(n)?Xl.has(n):nd(n))||(s||De(t,"get",n),o))return l;if(xe(l)){const a=i&&ws(n)?l:l.value;return s&&de(a)?_o(a):a}return de(l)?s?_o(l):tn(l):l}}class ec extends Zl{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const i=G(t)&&ws(n);if(!this._isShallow){const u=Tt(o);if(!Xe(r)&&!Tt(r)&&(o=ce(o),r=ce(r)),!i&&xe(o)&&!xe(r))return u||(o.value=r),!0}const l=i?Number(n)<t.length:pe(t,n),a=Reflect.set(t,n,r,xe(t)?t:s);return t===ce(s)&&a&&(l?Fe(r,o)&&Nt(t,"set",n,r):Nt(t,"add",n,r)),a}deleteProperty(t,n){const r=pe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Nt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Ze(n)||!Xl.has(n))&&De(t,"has",n),r}ownKeys(t){return De(t,"iterate",G(t)?"length":gn),Reflect.ownKeys(t)}}class tc extends Zl{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const sd=new ec,od=new tc,id=new ec(!0),ad=new tc(!0),wo=e=>e,Ar=e=>Reflect.getPrototypeOf(e);function ld(e,t,n){return function(...r){const s=this.__v_raw,o=ce(s),i=An(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=s[e](...r),c=n?wo:t?$n:pt;return!t&&De(o,"iterate",a?vo:gn),Pe(Object.create(u),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:l?[c(f[0]),c(f[1])]:c(f),done:h}}})}}function Or(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function cd(e,t){const n={get(s){const o=this.__v_raw,i=ce(o),l=ce(s);e||(Fe(s,l)&&De(i,"get",s),De(i,"get",l));const{has:a}=Ar(i),u=t?wo:e?$n:pt;if(a.call(i,s))return u(o.get(s));if(a.call(i,l))return u(o.get(l));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&De(ce(s),"iterate",gn),s.size},has(s){const o=this.__v_raw,i=ce(o),l=ce(s);return e||(Fe(s,l)&&De(i,"has",s),De(i,"has",l)),s===l?o.has(s):o.has(s)||o.has(l)},forEach(s,o){const i=this,l=i.__v_raw,a=ce(l),u=t?wo:e?$n:pt;return!e&&De(a,"iterate",gn),l.forEach((c,f)=>s.call(o,u(c),u(f),i))}};return Pe(n,e?{add:Or("add"),set:Or("set"),delete:Or("delete"),clear:Or("clear")}:{add(s){const o=ce(this),i=Ar(o),l=ce(s),a=!t&&!Xe(s)&&!Tt(s)?l:s;return i.has.call(o,a)||Fe(s,a)&&i.has.call(o,s)||Fe(l,a)&&i.has.call(o,l)||(o.add(a),Nt(o,"add",a,a)),this},set(s,o){!t&&!Xe(o)&&!Tt(o)&&(o=ce(o));const i=ce(this),{has:l,get:a}=Ar(i);let u=l.call(i,s);u||(s=ce(s),u=l.call(i,s));const c=a.call(i,s);return i.set(s,o),u?Fe(o,c)&&Nt(i,"set",s,o):Nt(i,"add",s,o),this},delete(s){const o=ce(this),{has:i,get:l}=Ar(o);let a=i.call(o,s);a||(s=ce(s),a=i.call(o,s)),l&&l.call(o,s);const u=o.delete(s);return a&&Nt(o,"delete",s,void 0),u},clear(){const s=ce(this),o=s.size!==0,i=s.clear();return o&&Nt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=ld(s,e,t)}),n}function Ts(e,t){const n=cd(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(pe(n,s)&&s in r?n:r,s,o)}const ud={get:Ts(!1,!1)},fd={get:Ts(!1,!0)},dd={get:Ts(!0,!1)},hd={get:Ts(!0,!0)},nc=new WeakMap,rc=new WeakMap,sc=new WeakMap,oc=new WeakMap;function pd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function tn(e){return Tt(e)?e:Cs(e,!1,sd,ud,nc)}function Et(e){return Cs(e,!1,id,fd,rc)}function _o(e){return Cs(e,!0,od,dd,sc)}function B_(e){return Cs(e,!0,ad,hd,oc)}function Cs(e,t,n,r,s){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=s.get(e);if(o)return o;const i=pd(Df(e));if(i===0)return e;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function Jt(e){return Tt(e)?Jt(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function Xe(e){return!!(e&&e.__v_isShallow)}function Ps(e){return e?!!e.__v_raw:!1}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function gd(e){return!pe(e,"__v_skip")&&Object.isExtensible(e)&&Hl(e,"__v_skip",!0),e}const pt=e=>de(e)?tn(e):e,$n=e=>de(e)?_o(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function wn(e){return ic(e,!1)}function _n(e){return ic(e,!0)}function ic(e,t){return xe(e)?e:new md(e,t)}class md{constructor(t,n){this.dep=new ks,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ce(t),this._value=n?t:pt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Xe(t)||Tt(t);t=r?t:ce(t),Fe(t,n)&&(this._rawValue=t,this._value=r?t:pt(t),this.dep.trigger())}}function oe(e){return xe(e)?e.value:e}const yd={get:(e,t,n)=>t==="__v_raw"?e:oe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return xe(s)&&!xe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function ac(e){return Jt(e)?e:new Proxy(e,yd)}class bd{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new ks,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function vd(e){return new bd(e)}function q_(e){const t=G(e)?new Array(e.length):{};for(const n in e)t[n]=cc(e,n);return t}class wd{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=Ze(n)?n:String(n),this._raw=ce(t);let s=!0,o=t;if(!G(t)||Ze(this._key)||!ws(this._key))do s=!Ps(o)||Xe(o);while(s&&(o=o.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=oe(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&xe(this._raw[this._key])){const n=this._object[this._key];if(xe(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Zf(this._raw,this._key)}}class _d{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 lc(e,t,n){return xe(e)?e:ne(e)?new _d(e):de(e)&&arguments.length>1?cc(e,t,n):wn(e)}function cc(e,t,n){return new wd(e,t,n)}class Sd{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ks(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=pr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ve!==this)return Kl(this,!0),!0}get value(){const t=this.dep.track();return Gl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ed(e,t,n=!1){let r,s;return ne(e)?r=e:(r=e.get,s=e.set),new Sd(r,s,n)}const Mr={},Zr=new WeakMap;let dn;function xd(e,t=!1,n=dn){if(n){let r=Zr.get(n);r||Zr.set(n,r=[]),r.push(e)}}function kd(e,t,n=ue){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:l,call:a}=n,u=b=>s?b:Xe(b)||s===!1||s===0?Ft(b,1):Ft(b);let c,f,h,d,p=!1,g=!1;if(xe(e)?(f=()=>e.value,p=Xe(e)):Jt(e)?(f=()=>u(e),p=!0):G(e)?(g=!0,p=e.some(b=>Jt(b)||Xe(b)),f=()=>e.map(b=>{if(xe(b))return b.value;if(Jt(b))return u(b);if(ne(b))return a?a(b,2):b()})):ne(e)?t?f=a?()=>a(e,2):e:f=()=>{if(h){kt();try{h()}finally{Rt()}}const b=dn;dn=c;try{return a?a(e,3,[d]):e(d)}finally{dn=b}}:f=xt,t&&s){const b=f,w=s===!0?1/0:s;f=()=>Ft(b(),w)}const E=li(),S=()=>{c.stop(),E&&E.active&&si(E.effects,c)};if(o&&t){const b=t;t=(...w)=>{const x=b(...w);return S(),x}}let _=g?new Array(e.length).fill(Mr):Mr;const m=b=>{if(!(!(c.flags&1)||!c.dirty&&!b))if(t){const w=c.run();if(b||s||p||(g?w.some((x,T)=>Fe(x,_[T])):Fe(w,_))){h&&h();const x=dn;dn=c;try{const T=[w,_===Mr?void 0:g&&_[0]===Mr?[]:_,d];_=w,a?a(t,3,T):t(...T)}finally{dn=x}}}else c.run()};return l&&l(m),c=new Vl(f),c.scheduler=i?()=>i(m,!1):m,d=b=>xd(b,!1,c),h=c.onStop=()=>{const b=Zr.get(c);if(b){if(a)a(b,4);else for(const w of b)w();Zr.delete(c)}},t?r?m(!0):_=c.run():i?i(m.bind(null,!0),!0):c.run(),S.pause=c.pause.bind(c),S.resume=c.resume.bind(c),S.stop=S,S}function Ft(e,t=1/0,n){if(t<=0||!de(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,xe(e))Ft(e.value,t,n);else if(G(e))for(let r=0;r<e.length;r++)Ft(e[r],t,n);else if(zn(e)||An(e))e.forEach(r=>{Ft(r,t,n)});else if(jl(e)){for(const r in e)Ft(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ft(e[r],t,n)}return e}function Rr(e,t,n,r){try{return r?e(...r):e()}catch(s){Tr(s,t,n)}}function at(e,t,n,r){if(ne(e)){const s=Rr(e,t,n,r);return s&&oi(s)&&s.catch(o=>{Tr(o,t,n)}),s}if(G(e)){const s=[];for(let o=0;o<e.length;o++)s.push(at(e[o],t,n,r));return s}}function Tr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||ue;if(t){let l=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const c=l.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,a,u)===!1)return}l=l.parent}if(o){kt(),Rr(o,null,10,[e,a,u]),Rt();return}}Rd(e,n,s,r,i)}function Rd(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Ve=[];let vt=-1;const Mn=[];let zt=null,Tn=0;const uc=Promise.resolve();let es=null;function Sn(e){const t=es||uc;return e?t.then(this?e.bind(this):e):t}function Td(e){let t=vt+1,n=Ve.length;for(;t<n;){const r=t+n>>>1,s=Ve[r],o=mr(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function di(e){if(!(e.flags&1)){const t=mr(e),n=Ve[Ve.length-1];!n||!(e.flags&2)&&t>=mr(n)?Ve.push(e):Ve.splice(Td(t),0,e),e.flags|=1,fc()}}function fc(){es||(es=uc.then(dc))}function So(e){G(e)?Mn.push(...e):zt&&e.id===-1?zt.splice(Tn+1,0,e):e.flags&1||(Mn.push(e),e.flags|=1),fc()}function Di(e,t,n=vt+1){for(;n<Ve.length;n++){const r=Ve[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ve.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function ts(e){if(Mn.length){const t=[...new Set(Mn)].sort((n,r)=>mr(n)-mr(r));if(Mn.length=0,zt){zt.push(...t);return}for(zt=t,Tn=0;Tn<zt.length;Tn++){const n=zt[Tn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}zt=null,Tn=0}}const mr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function dc(e){try{for(vt=0;vt<Ve.length;vt++){const t=Ve[vt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Rr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;vt<Ve.length;vt++){const t=Ve[vt];t&&(t.flags&=-2)}vt=-1,Ve.length=0,ts(),es=null,(Ve.length||Mn.length)&&dc()}}let He=null,hc=null;function ns(e){const t=He;return He=e,hc=e&&e.type.__scopeId||null,t}function mn(e,t=He,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&cs(-1);const o=ns(t);let i;try{i=e(...s)}finally{ns(o),r._d&&cs(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function V_(e,t){if(He===null)return e;const n=Ns(He),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,l,a=ue]=t[s];o&&(ne(o)&&(o={mounted:o,updated:o}),o.deep&&Ft(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function wt(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const l=s[i];o&&(l.oldValue=o[i].value);let a=l.dir[r];a&&(kt(),at(a,n,8,[e.el,l,e,t]),Rt())}}function In(e,t){if(Ue){let n=Ue.provides;const r=Ue.parent&&Ue.parent.provides;r===n&&(n=Ue.provides=Object.create(r)),n[e]=t}}function ot(e,t,n=!1){const r=Xt();if(r||yn){let s=yn?yn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ne(t)?t.call(r&&r.proxy):t}}function pc(){return!!(Xt()||yn)}const Cd=Symbol.for("v-scx"),Pd=()=>ot(Cd);function W_(e,t){return As(e,null,t)}function Ad(e,t){return As(e,null,{flush:"sync"})}function Ln(e,t,n){return As(e,t,n)}function As(e,t,n=ue){const{immediate:r,deep:s,flush:o,once:i}=n,l=Pe({},n),a=t&&r||!t&&o!=="post";let u;if(qn){if(o==="sync"){const d=Pd();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!a){const d=()=>{};return d.stop=xt,d.resume=xt,d.pause=xt,d}}const c=Ue;l.call=(d,p,g)=>at(d,c,p,g);let f=!1;o==="post"?l.scheduler=d=>{Ie(d,c&&c.suspense)}:o!=="sync"&&(f=!0,l.scheduler=(d,p)=>{p?d():di(d)}),l.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const h=kd(e,t,l);return qn&&(u?u.push(h):a&&h()),h}function Od(e,t,n){const r=this.proxy,s=we(e)?e.includes(".")?gc(r,e):()=>r[e]:e.bind(r,r);let o;ne(t)?o=t:(o=t.handler,n=t);const i=Gn(this),l=As(s,o.bind(r),n);return i(),l}function gc(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Md=Symbol("_vte"),mc=e=>e.__isTeleport,st=Symbol("_leaveCb"),Xn=Symbol("_enterCb");function Id(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Cr(()=>{e.isMounted=!0}),Pr(()=>{e.isUnmounting=!0}),e}const tt=[Function,Array],yc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:tt,onEnter:tt,onAfterEnter:tt,onEnterCancelled:tt,onBeforeLeave:tt,onLeave:tt,onAfterLeave:tt,onLeaveCancelled:tt,onBeforeAppear:tt,onAppear:tt,onAfterAppear:tt,onAppearCancelled:tt},bc=e=>{const t=e.subTree;return t.component?bc(t.component):t},Ld={name:"BaseTransition",props:yc,setup(e,{slots:t}){const n=Xt(),r=Id();return()=>{const s=t.default&&_c(t.default(),!0),o=s&&s.length?vc(s):n.subTree?nu():void 0;if(!o)return;const i=ce(e),{mode:l}=i;if(r.isLeaving)return zs(o);const a=$i(o);if(!a)return zs(o);let u=Eo(a,i,r,n,f=>u=f);a.type!==Ce&&Un(a,u);let c=n.subTree&&$i(n.subTree);if(c&&c.type!==Ce&&!dt(c,a)&&bc(n).type!==Ce){let f=Eo(c,i,r,n);if(Un(c,f),l==="out-in"&&a.type!==Ce)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},zs(o);l==="in-out"&&a.type!==Ce?f.delayLeave=(h,d,p)=>{const g=wc(r,c);g[String(c.key)]=c,h[st]=()=>{d(),h[st]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{p(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function vc(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ce){t=n;break}}return t}const Nd=Ld;function wc(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 Eo(e,t,n,r,s){const{appear:o,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:d,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:E,onAppear:S,onAfterAppear:_,onAppearCancelled:m}=t,b=String(e.key),w=wc(n,e),x=(A,F)=>{A&&at(A,r,9,F)},T=(A,F)=>{const U=F[1];x(A,F),G(A)?A.every(L=>L.length<=1)&&U():A.length<=1&&U()},R={mode:i,persisted:l,beforeEnter(A){let F=a;if(!n.isMounted)if(o)F=E||a;else return;A[st]&&A[st](!0);const U=w[b];U&&dt(e,U)&&U.el[st]&&U.el[st](),x(F,[A])},enter(A){if(w[b]===e)return;let F=u,U=c,L=f;if(!n.isMounted)if(o)F=S||u,U=_||c,L=m||f;else return;let q=!1;A[Xn]=te=>{q||(q=!0,te?x(L,[A]):x(U,[A]),R.delayedLeave&&R.delayedLeave(),A[Xn]=void 0)};const Q=A[Xn].bind(null,!1);F?T(F,[A,Q]):Q()},leave(A,F){const U=String(e.key);if(A[Xn]&&A[Xn](!0),n.isUnmounting)return F();x(h,[A]);let L=!1;A[st]=Q=>{L||(L=!0,F(),Q?x(g,[A]):x(p,[A]),A[st]=void 0,w[U]===e&&delete w[U])};const q=A[st].bind(null,!1);w[U]=e,d?T(d,[A,q]):q()},clone(A){const F=Eo(A,t,n,r,s);return s&&s(F),F}};return R}function zs(e){if(Os(e))return e=$t(e),e.children=null,e}function $i(e){if(!Os(e))return mc(e.type)&&e.children?vc(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ne(n.default))return n.default()}}function Un(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Un(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 _c(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let i=e[o];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===je?(i.patchFlag&128&&s++,r=r.concat(_c(i.children,t,l))):(t||i.type!==Ce)&&r.push(l!=null?$t(i,{key:l}):i)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function nn(e,t){return ne(e)?Pe({name:e.name},t,{setup:e}):e}function Sc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ui(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const rs=new WeakMap;function Nn(e,t,n,r,s=!1){if(G(e)){e.forEach((g,E)=>Nn(g,t&&(G(t)?t[E]:t),n,r,s));return}if(Dt(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Nn(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Ns(r.component):r.el,i=s?null:o,{i:l,r:a}=e,u=t&&t.r,c=l.refs===ue?l.refs={}:l.refs,f=l.setupState,h=ce(f),d=f===ue?Nl:g=>Ui(c,g)?!1:pe(h,g),p=(g,E)=>!(E&&Ui(c,E));if(u!=null&&u!==a){if(Bi(t),we(u))c[u]=null,d(u)&&(f[u]=null);else if(xe(u)){const g=t;p(u,g.k)&&(u.value=null),g.k&&(c[g.k]=null)}}if(ne(a)){kt();try{Rr(a,l,12,[i,c])}finally{Rt()}}else{const g=we(a),E=xe(a);if(g||E){const S=()=>{if(e.f){const _=g?d(a)?f[a]:c[a]:p()||!e.k?a.value:c[e.k];if(s)G(_)&&si(_,o);else if(G(_))_.includes(o)||_.push(o);else if(g)c[a]=[o],d(a)&&(f[a]=c[a]);else{const m=[o];p(a,e.k)&&(a.value=m),e.k&&(c[e.k]=m)}}else g?(c[a]=i,d(a)&&(f[a]=i)):E&&(p(a,e.k)&&(a.value=i),e.k&&(c[e.k]=i))};if(i){const _=()=>{S(),rs.delete(e)};_.id=-1,rs.set(e,_),Ie(_,n)}else Bi(e),S()}}}function Bi(e){const t=rs.get(e);t&&(t.flags|=8,rs.delete(e))}let qi=!1;const Rn=()=>{qi||(console.error("Hydration completed but contains mismatches."),qi=!0)},Fd=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",jd=e=>e.namespaceURI.includes("MathML"),Ir=e=>{if(e.nodeType===1){if(Fd(e))return"svg";if(jd(e))return"mathml"}},Lr=e=>e.nodeType===8;function Hd(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:l,insert:a,createComment:u}}=e,c=(m,b)=>{if(!b.hasChildNodes()){n(null,m,b),ts(),b._vnode=m;return}f(b.firstChild,m,null,null,null),ts(),b._vnode=m},f=(m,b,w,x,T,R=!1)=>{R=R||!!b.dynamicChildren;const A=Lr(m)&&m.data==="[",F=()=>g(m,b,w,x,T,A),{type:U,ref:L,shapeFlag:q,patchFlag:Q}=b;let te=m.nodeType;b.el=m,Q===-2&&(R=!1,b.dynamicChildren=null);let j=null;switch(U){case bn:te!==3?b.children===""?(a(b.el=s(""),i(m),m),j=m):j=F():(m.data!==b.children&&(Rn(),m.data=b.children),j=o(m));break;case Ce:_(m)?(j=o(m),S(b.el=m.content.firstChild,m,w)):te!==8||A?j=F():j=o(m);break;case zr:if(A&&(m=o(m),te=m.nodeType),te===1||te===3){j=m;const X=!b.children.length;for(let Z=0;Z<b.staticCount;Z++)X&&(b.children+=j.nodeType===1?j.outerHTML:j.data),Z===b.staticCount-1&&(b.anchor=j),j=o(j);return A?o(j):j}else F();break;case je:A?j=p(m,b,w,x,T,R):j=F();break;default:if(q&1)(te!==1||b.type.toLowerCase()!==m.tagName.toLowerCase())&&!_(m)?j=F():j=h(m,b,w,x,T,R);else if(q&6){b.slotScopeIds=T;const X=i(m);if(A?j=E(m):Lr(m)&&m.data==="teleport start"?j=E(m,m.data,"teleport end"):j=o(m),t(b,X,null,w,x,Ir(X),R),Dt(b)&&!b.type.__asyncResolved){let Z;A?(Z=Ee(je),Z.anchor=j?j.previousSibling:X.lastChild):Z=m.nodeType===3?br(""):Ee("div"),Z.el=m,b.component.subTree=Z}}else q&64?te!==8?j=F():j=b.type.hydrate(m,b,w,x,T,R,e,d):q&128&&(j=b.type.hydrate(m,b,w,x,Ir(i(m)),T,R,e,f))}return L!=null&&Nn(L,null,x,b),j},h=(m,b,w,x,T,R)=>{R=R||!!b.dynamicChildren;const{type:A,dynamicProps:F,props:U,patchFlag:L,shapeFlag:q,dirs:Q,transition:te}=b,j=A==="input"||A==="option",X=!!F;if(j||X||L!==-1){Q&&wt(b,null,w,"created");let Z=!1;if(_(m)){Z=Kc(null,te)&&w&&w.vnode.props&&w.vnode.props.appear;const H=m.content.firstChild;if(Z){const fe=H.getAttribute("class");fe&&(H.$cls=fe),te.beforeEnter(H)}S(H,m,w),b.el=m=H}if(q&16&&!(U&&(U.innerHTML||U.textContent))){let H=d(m.firstChild,b,m,w,x,T,R);for(H&&!Kr(m,1)&&Rn();H;){const fe=H;H=H.nextSibling,l(fe)}}else if(q&8){let H=b.children;H[0]===`
|
|
3
|
+
`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(H=H.slice(1));const{textContent:fe}=m;fe!==H&&fe!==H.replace(/\r\n|\r/g,`
|
|
4
|
+
`)&&(Kr(m,0)||Rn(),m.textContent=b.children)}if(U){if(j||X||!R||L&48){const H=m.tagName.includes("-");for(const fe in U)(j&&(fe.endsWith("value")||fe==="indeterminate")||kr(fe)&&!pn(fe)||fe[0]==="."||H&&!pn(fe)||F&&F.includes(fe))&&r(m,fe,null,U[fe],void 0,w)}else if(U.onClick)r(m,"onClick",null,U.onClick,void 0,w);else if(L&4&&Jt(U.style))for(const H in U.style)U.style[H]}let Se;(Se=U&&U.onVnodeBeforeMount)&&Ke(Se,w,b),Q&&wt(b,null,w,"beforeMount"),((Se=U&&U.onVnodeMounted)||Q||Z)&&Xc(()=>{Se&&Ke(Se,w,b),Z&&te.enter(m),Q&&wt(b,null,w,"mounted")},x)}return m.nextSibling},d=(m,b,w,x,T,R,A)=>{A=A||!!b.dynamicChildren;const F=b.children,U=F.length;let L=!1;for(let q=0;q<U;q++){const Q=A?F[q]:F[q]=Ye(F[q]),te=Q.type===bn;m?(te&&!A&&q+1<U&&Ye(F[q+1]).type===bn&&(a(s(m.data.slice(Q.children.length)),w,o(m)),m.data=Q.children),m=f(m,Q,x,T,R,A)):te&&!Q.children?a(Q.el=s(""),w):(L||(L=!0,Kr(w,1)||Rn()),n(null,Q,w,null,x,T,Ir(w),R))}return m},p=(m,b,w,x,T,R)=>{const{slotScopeIds:A}=b;A&&(T=T?T.concat(A):A);const F=i(m),U=d(o(m),b,F,w,x,T,R);return U&&Lr(U)&&U.data==="]"?o(b.anchor=U):(Rn(),a(b.anchor=u("]"),F,U),U)},g=(m,b,w,x,T,R)=>{if($d(m,b)||Rn(),b.el=null,R){const U=E(m);for(;;){const L=o(m);if(L&&L!==U)l(L);else break}}const A=o(m),F=i(m);return l(m),n(null,b,F,A,w,x,Ir(F),T),w&&(w.vnode.el=b.el,Ls(w,b.el)),A},E=(m,b="[",w="]")=>{let x=0;for(;m;)if(m=o(m),m&&Lr(m)&&(m.data===b&&x++,m.data===w)){if(x===0)return o(m);x--}return m},S=(m,b,w)=>{const x=b.parentNode;x&&x.replaceChild(m,b);let T=w;for(;T;)T.vnode.el===b&&(T.vnode.el=T.subTree.el=m),T=T.parent},_=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[c,f]}const ss="data-allow-mismatch",Dd={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Kr(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(ss);)e=e.parentElement;return hi(e&&e.getAttribute(ss),t)}function hi(e,t){if(e==null)return!1;if(e==="")return!0;{const n=e.split(",");return t===0&&n.includes("children")?!0:n.includes(Dd[t])}}function $d(e,t){return Kr(e.parentElement,1)||Ud(e)||Bd(t)}function Ud(e){return e.nodeType===1&&hi(e.getAttribute(ss),1)}function Bd({props:e}){const t=e&&e[ss];return typeof t=="string"&&hi(t,1)}xs().requestIdleCallback;xs().cancelIdleCallback;const Dt=e=>!!e.type.__asyncLoader,Os=e=>e.type.__isKeepAlive,qd={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Xt(),r=n.ctx;if(!r.renderer)return()=>{const _=t.default&&t.default();return _&&_.length===1?_[0]:_};const s=new Map,o=new Set;let i=null;const l=n.suspense,{renderer:{p:a,m:u,um:c,o:{createElement:f}}}=r,h=f("div");r.activate=(_,m,b,w,x)=>{const T=_.component;u(_,m,b,0,l),a(T.vnode,_,m,b,T,l,w,_.slotScopeIds,x),Ie(()=>{T.isDeactivated=!1,T.a&&On(T.a);const R=_.props&&_.props.onVnodeMounted;R&&Ke(R,T.parent,_)},l)},r.deactivate=_=>{const m=_.component;as(m.m),as(m.a),u(_,h,null,1,l),Ie(()=>{m.da&&On(m.da);const b=_.props&&_.props.onVnodeUnmounted;b&&Ke(b,m.parent,_),m.isDeactivated=!0},l)};function d(_){Qs(_),c(_,n,l,!0)}function p(_){s.forEach((m,b)=>{const w=Ao(Dt(m)?m.type.__asyncResolved||{}:m.type);w&&!_(w)&&g(b)})}function g(_){const m=s.get(_);m&&(!i||!dt(m,i))?d(m):i&&Qs(i),s.delete(_),o.delete(_)}Ln(()=>[e.include,e.exclude],([_,m])=>{_&&p(b=>rr(_,b)),m&&p(b=>!rr(m,b))},{flush:"post",deep:!0});let E=null;const S=()=>{E!=null&&(ls(n.subTree.type)?Ie(()=>{s.set(E,Nr(n.subTree))},n.subTree.suspense):s.set(E,Nr(n.subTree)))};return Cr(S),xc(S),Pr(()=>{s.forEach(_=>{const{subTree:m,suspense:b}=n,w=Nr(m);if(_.type===w.type&&_.key===w.key){Qs(w);const x=w.component.da;x&&Ie(x,b);return}d(_)})}),()=>{if(E=null,!t.default)return i=null;const _=t.default(),m=_[0];if(_.length>1)return i=null,_;if(!En(m)||!(m.shapeFlag&4)&&!(m.shapeFlag&128))return i=null,m;let b=Nr(m);if(b.type===Ce)return i=null,b;const w=b.type,x=Ao(Dt(b)?b.type.__asyncResolved||{}:w),{include:T,exclude:R,max:A}=e;if(T&&(!x||!rr(T,x))||R&&x&&rr(R,x))return b.shapeFlag&=-257,i=b,m;const F=b.key==null?w:b.key,U=s.get(F);return b.el&&(b=$t(b),m.shapeFlag&128&&(m.ssContent=b)),E=F,U?(b.el=U.el,b.component=U.component,b.transition&&Un(b,b.transition),b.shapeFlag|=512,o.delete(F),o.add(F)):(o.add(F),A&&o.size>parseInt(A,10)&&g(o.values().next().value)),b.shapeFlag|=256,i=b,ls(m.type)?m:b}}},Vd=qd;function rr(e,t){return G(e)?e.some(n=>rr(n,t)):we(e)?e.split(",").includes(t):Hf(e)?(e.lastIndex=0,e.test(t)):!1}function Wd(e,t){Ec(e,"a",t)}function Kd(e,t){Ec(e,"da",t)}function Ec(e,t,n=Ue){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Ms(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Os(s.parent.vnode)&&zd(r,t,n,s),s=s.parent}}function zd(e,t,n,r){const s=Ms(t,e,r,!0);kc(()=>{si(r[t],s)},n)}function Qs(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Nr(e){return e.shapeFlag&128?e.ssContent:e}function Ms(e,t,n=Ue,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{kt();const l=Gn(n),a=at(t,n,e,i);return l(),Rt(),a});return r?s.unshift(o):s.push(o),o}}const Ut=e=>(t,n=Ue)=>{(!qn||e==="sp")&&Ms(e,(...r)=>t(...r),n)},Qd=Ut("bm"),Cr=Ut("m"),Gd=Ut("bu"),xc=Ut("u"),Pr=Ut("bum"),kc=Ut("um"),Jd=Ut("sp"),Yd=Ut("rtg"),Xd=Ut("rtc");function Rc(e,t=Ue){Ms("ec",e,t)}const Tc="components";function Vi(e,t){return Pc(Tc,e,!0,t)||e}const Cc=Symbol.for("v-ndc");function Zd(e){return we(e)?Pc(Tc,e,!1)||e:e||Cc}function Pc(e,t,n=!0,r=!1){const s=He||Ue;if(s){const o=s.type;{const l=Ao(o,!1);if(l&&(l===t||l===Be(t)||l===Ss(Be(t))))return o}const i=Wi(s[e]||o[e],t)||Wi(s.appContext[e],t);return!i&&r?o:i}}function Wi(e,t){return e&&(e[t]||e[Be(t)]||e[Ss(Be(t))])}function eh(e,t,n,r){let s;const o=n,i=G(e);if(i||we(e)){const l=i&&Jt(e);let a=!1,u=!1;l&&(a=!Xe(e),u=Tt(e),e=Rs(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(a?u?$n(pt(e[c])):pt(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,o)}else if(de(e))if(e[Symbol.iterator])s=Array.from(e,(l,a)=>t(l,a,void 0,o));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,u=l.length;a<u;a++){const c=l[a];s[a]=t(e[c],c,a,o)}}else s=[];return s}function Ki(e,t,n={},r,s){if(He.ce||He.parent&&Dt(He.parent)&&He.parent.ce){const u=Object.keys(n).length>0;return $e(),jt(je,null,[Ee("slot",n,r)],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),$e();const i=o&&Ac(o(n)),l=n.key||i&&i.key,a=jt(je,{key:(l&&!Ze(l)?l:`_${t}`)+(!i&&r?"_fb":"")},i||[],i&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function Ac(e){return e.some(t=>En(t)?!(t.type===Ce||t.type===je&&!Ac(t.children)):!0)?e:null}const xo=e=>e?ru(e)?Ns(e):xo(e.parent):null,ur=Pe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>xo(e.parent),$root:e=>xo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Mc(e),$forceUpdate:e=>e.f||(e.f=()=>{di(e.update)}),$nextTick:e=>e.n||(e.n=Sn.bind(e.proxy)),$watch:e=>Od.bind(e)}),Gs=(e,t)=>e!==ue&&!e.__isScriptSetup&&pe(e,t),th={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Gs(r,t))return i[t]=1,r[t];if(s!==ue&&pe(s,t))return i[t]=2,s[t];if(pe(o,t))return i[t]=3,o[t];if(n!==ue&&pe(n,t))return i[t]=4,n[t];ko&&(i[t]=0)}}const u=ur[t];let c,f;if(u)return t==="$attrs"&&De(e.attrs,"get",""),u(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(n!==ue&&pe(n,t))return i[t]=4,n[t];if(f=a.config.globalProperties,pe(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Gs(s,t)?(s[t]=n,!0):r!==ue&&pe(r,t)?(r[t]=n,!0):pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:o,type:i}},l){let a;return!!(n[l]||e!==ue&&l[0]!=="$"&&pe(e,l)||Gs(t,l)||pe(o,l)||pe(r,l)||pe(ur,l)||pe(s.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:pe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function os(e){return G(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function K_(e,t){return!e||!t?e||t:G(e)&&G(t)?e.concat(t):Pe({},os(e),os(t))}function z_(e){const t=Xt(),n=qn;let r=e();vr(),n&&Hn(!1);const s=()=>{Gn(t),n&&Hn(!0)},o=()=>{Xt()!==t&&t.scope.off(),vr(),n&&Hn(!1)};return oi(r)&&(r=r.catch(i=>{throw s(),Promise.resolve().then(()=>Promise.resolve().then(o)),i})),[r,()=>{s(),Promise.resolve().then(o)}]}let ko=!0;function nh(e){const t=Mc(e),n=e.proxy,r=e.ctx;ko=!1,t.beforeCreate&&zi(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:l,provide:a,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:d,updated:p,activated:g,deactivated:E,beforeDestroy:S,beforeUnmount:_,destroyed:m,unmounted:b,render:w,renderTracked:x,renderTriggered:T,errorCaptured:R,serverPrefetch:A,expose:F,inheritAttrs:U,components:L,directives:q,filters:Q}=t;if(u&&rh(u,r,null),i)for(const X in i){const Z=i[X];ne(Z)&&(r[X]=Z.bind(n))}if(s){const X=s.call(n,n);de(X)&&(e.data=tn(X))}if(ko=!0,o)for(const X in o){const Z=o[X],Se=ne(Z)?Z.bind(n,n):ne(Z.get)?Z.get.bind(n,n):xt,H=!ne(Z)&&ne(Z.set)?Z.set.bind(n):xt,fe=Te({get:Se,set:H});Object.defineProperty(r,X,{enumerable:!0,configurable:!0,get:()=>fe.value,set:Ne=>fe.value=Ne})}if(l)for(const X in l)Oc(l[X],r,n,X);if(a){const X=ne(a)?a.call(n):a;Reflect.ownKeys(X).forEach(Z=>{In(Z,X[Z])})}c&&zi(c,e,"c");function j(X,Z){G(Z)?Z.forEach(Se=>X(Se.bind(n))):Z&&X(Z.bind(n))}if(j(Qd,f),j(Cr,h),j(Gd,d),j(xc,p),j(Wd,g),j(Kd,E),j(Rc,R),j(Xd,x),j(Yd,T),j(Pr,_),j(kc,b),j(Jd,A),G(F))if(F.length){const X=e.exposed||(e.exposed={});F.forEach(Z=>{Object.defineProperty(X,Z,{get:()=>n[Z],set:Se=>n[Z]=Se,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===xt&&(e.render=w),U!=null&&(e.inheritAttrs=U),L&&(e.components=L),q&&(e.directives=q),A&&Sc(e)}function rh(e,t,n=xt){G(e)&&(e=Ro(e));for(const r in e){const s=e[r];let o;de(s)?"default"in s?o=ot(s.from||r,s.default,!0):o=ot(s.from||r):o=ot(s),xe(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function zi(e,t,n){at(G(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Oc(e,t,n,r){let s=r.includes(".")?gc(n,r):()=>n[r];if(we(e)){const o=t[e];ne(o)&&Ln(s,o)}else if(ne(e))Ln(s,e.bind(n));else if(de(e))if(G(e))e.forEach(o=>Oc(o,t,n,r));else{const o=ne(e.handler)?e.handler.bind(n):t[e.handler];ne(o)&&Ln(s,o,e)}}function Mc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!s.length&&!n&&!r?a=t:(a={},s.length&&s.forEach(u=>is(a,u,i,!0)),is(a,t,i)),de(t)&&o.set(t,a),a}function is(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&is(e,o,n,!0),s&&s.forEach(i=>is(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const l=sh[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const sh={data:Qi,props:Gi,emits:Gi,methods:sr,computed:sr,beforeCreate:qe,created:qe,beforeMount:qe,mounted:qe,beforeUpdate:qe,updated:qe,beforeDestroy:qe,beforeUnmount:qe,destroyed:qe,unmounted:qe,activated:qe,deactivated:qe,errorCaptured:qe,serverPrefetch:qe,components:sr,directives:sr,watch:ih,provide:Qi,inject:oh};function Qi(e,t){return t?e?function(){return Pe(ne(e)?e.call(this,this):e,ne(t)?t.call(this,this):t)}:t:e}function oh(e,t){return sr(Ro(e),Ro(t))}function Ro(e){if(G(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qe(e,t){return e?[...new Set([].concat(e,t))]:t}function sr(e,t){return e?Pe(Object.create(null),e,t):t}function Gi(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:Pe(Object.create(null),os(e),os(t??{})):t}function ih(e,t){if(!e)return t;if(!t)return e;const n=Pe(Object.create(null),e);for(const r in t)n[r]=qe(e[r],t[r]);return n}function Ic(){return{app:null,config:{isNativeTag:Nl,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 ah=0;function lh(e,t){return function(r,s=null){ne(r)||(r=Pe({},r)),s!=null&&!de(s)&&(s=null);const o=Ic(),i=new WeakSet,l=[];let a=!1;const u=o.app={_uid:ah++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Uh,get config(){return o.config},set config(c){},use(c,...f){return i.has(c)||(c&&ne(c.install)?(i.add(c),c.install(u,...f)):ne(c)&&(i.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,h){if(!a){const d=u._ceVNode||Ee(r,s);return d.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(d,c):e(d,c,h),a=!0,u._container=c,c.__vue_app__=u,Ns(d.component)}},onUnmount(c){l.push(c)},unmount(){a&&(at(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=yn;yn=u;try{return c()}finally{yn=f}}};return u}}let yn=null;function Q_(e,t,n=ue){const r=Xt(),s=Be(t),o=en(t),i=Lc(e,s),l=vd((a,u)=>{let c,f=ue,h;return Ad(()=>{const d=e[s];Fe(c,d)&&(c=d,u())}),{get(){return a(),n.get?n.get(c):c},set(d){const p=n.set?n.set(d):d;if(!Fe(p,c)&&!(f!==ue&&Fe(d,f)))return;const g=r.vnode.props,E=!!(g&&(t in g||s in g||o in g)&&(`onUpdate:${t}`in g||`onUpdate:${s}`in g||`onUpdate:${o}`in g));E||(c=d,u()),r.emit(`update:${t}`,p),Fe(d,f)&&(Fe(d,p)&&!Fe(p,h)||E&&f!==ue&&!Fe(p,c))&&u(),f=d,h=p}}});return l[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?i||ue:l,done:!1}:{done:!0}}}},l}const Lc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Be(t)}Modifiers`]||e[`${en(t)}Modifiers`];function ch(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let s=n;const o=t.startsWith("update:"),i=o&&Lc(r,t.slice(7));i&&(i.trim&&(s=n.map(c=>we(c)?c.trim():c)),i.number&&(s=n.map(Es)));let l,a=r[l=Bs(t)]||r[l=Bs(Be(t))];!a&&o&&(a=r[l=Bs(en(t))]),a&&at(a,e,6,s);const u=r[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,at(u,e,6,s)}}const uh=new WeakMap;function Nc(e,t,n=!1){const r=n?uh:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},l=!1;if(!ne(e)){const a=u=>{const c=Nc(u,t,!0);c&&(l=!0,Pe(i,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(de(e)&&r.set(e,null),null):(G(o)?o.forEach(a=>i[a]=null):Pe(i,o),de(e)&&r.set(e,i),i)}function Is(e,t){return!e||!kr(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),pe(e,t[0].toLowerCase()+t.slice(1))||pe(e,en(t))||pe(e,t))}function Js(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:l,emit:a,render:u,renderCache:c,props:f,data:h,setupState:d,ctx:p,inheritAttrs:g}=e,E=ns(e);let S,_;try{if(n.shapeFlag&4){const b=s||r,w=b;S=Ye(u.call(w,b,c,f,d,h,p)),_=l}else{const b=t;S=Ye(b.length>1?b(f,{attrs:l,slots:i,emit:a}):b(f,null)),_=t.props?l:dh(l)}}catch(b){fr.length=0,Tr(b,e,1),S=Ee(Ce)}let m=S;if(_&&g!==!1){const b=Object.keys(_),{shapeFlag:w}=m;b.length&&w&7&&(o&&b.some(vs)&&(_=hh(_,o)),m=$t(m,_,!1,!0))}return n.dirs&&(m=$t(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Un(m,n.transition),S=m,ns(E),S}function fh(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(En(s)){if(s.type!==Ce||s.children==="v-if"){if(n)return;n=s}}else return}return n}const dh=e=>{let t;for(const n in e)(n==="class"||n==="style"||kr(n))&&((t||(t={}))[n]=e[n]);return t},hh=(e,t)=>{const n={};for(const r in e)(!vs(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ph(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:l,patchFlag:a}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Ji(r,i,u):!!i;if(a&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(Fc(i,r,h)&&!Is(u,h))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===i?!1:r?i?Ji(r,i,u):!0:!!i;return!1}function Ji(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(Fc(t,e,o)&&!Is(n,o))return!0}return!1}function Fc(e,t,n){const r=e[n],s=t[n];return n==="style"&&de(r)&&de(s)?!Yt(r,s):r!==s}function Ls({vnode:e,parent:t,suspense:n},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const jc={},Hc=()=>Object.create(jc),Dc=e=>Object.getPrototypeOf(e)===jc;function gh(e,t,n,r=!1){const s={},o=Hc();e.propsDefaults=Object.create(null),$c(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Et(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function mh(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,l=ce(s),[a]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(Is(e.emitsOptions,h))continue;const d=t[h];if(a)if(pe(o,h))d!==o[h]&&(o[h]=d,u=!0);else{const p=Be(h);s[p]=To(a,l,p,d,e,!1)}else d!==o[h]&&(o[h]=d,u=!0)}}}else{$c(e,t,s,o)&&(u=!0);let c;for(const f in l)(!t||!pe(t,f)&&((c=en(f))===f||!pe(t,c)))&&(a?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=To(a,l,f,void 0,e,!0)):delete s[f]);if(o!==l)for(const f in o)(!t||!pe(t,f))&&(delete o[f],u=!0)}u&&Nt(e.attrs,"set","")}function $c(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(pn(a))continue;const u=t[a];let c;s&&pe(s,c=Be(a))?!o||!o.includes(c)?n[c]=u:(l||(l={}))[c]=u:Is(e.emitsOptions,a)||(!(a in r)||u!==r[a])&&(r[a]=u,i=!0)}if(o){const a=ce(n),u=l||ue;for(let c=0;c<o.length;c++){const f=o[c];n[f]=To(s,a,f,u[f],e,!pe(u,f))}}return i}function To(e,t,n,r,s,o){const i=e[n];if(i!=null){const l=pe(i,"default");if(l&&r===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&ne(a)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=Gn(s);r=u[n]=a.call(null,t),c()}}else r=a;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!l?r=!1:i[1]&&(r===""||r===en(n))&&(r=!0))}return r}const yh=new WeakMap;function Uc(e,t,n=!1){const r=n?yh:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},l=[];let a=!1;if(!ne(e)){const c=f=>{a=!0;const[h,d]=Uc(f,t,!0);Pe(i,h),d&&l.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!a)return de(e)&&r.set(e,Pn),Pn;if(G(o))for(let c=0;c<o.length;c++){const f=Be(o[c]);Yi(f)&&(i[f]=ue)}else if(o)for(const c in o){const f=Be(c);if(Yi(f)){const h=o[c],d=i[f]=G(h)||ne(h)?{type:h}:Pe({},h),p=d.type;let g=!1,E=!0;if(G(p))for(let S=0;S<p.length;++S){const _=p[S],m=ne(_)&&_.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(E=!1)}else g=ne(p)&&p.name==="Boolean";d[0]=g,d[1]=E,(g||pe(d,"default"))&&l.push(f)}}const u=[i,l];return de(e)&&r.set(e,u),u}function Yi(e){return e[0]!=="$"&&!pn(e)}const pi=e=>e==="_"||e==="_ctx"||e==="$stable",gi=e=>G(e)?e.map(Ye):[Ye(e)],bh=(e,t,n)=>{if(t._n)return t;const r=mn((...s)=>gi(t(...s)),n);return r._c=!1,r},Bc=(e,t,n)=>{const r=e._ctx;for(const s in e){if(pi(s))continue;const o=e[s];if(ne(o))t[s]=bh(s,o,r);else if(o!=null){const i=gi(o);t[s]=()=>i}}},qc=(e,t)=>{const n=gi(t);e.slots.default=()=>n},Vc=(e,t,n)=>{for(const r in t)(n||!pi(r))&&(e[r]=t[r])},vh=(e,t,n)=>{const r=e.slots=Hc();if(e.vnode.shapeFlag&32){const s=t._;s?(Vc(r,t,n),n&&Hl(r,"_",s,!0)):Bc(t,r)}else t&&qc(e,t)},wh=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=ue;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:Vc(s,t,n):(o=!t.$stable,Bc(t,s)),i=t}else t&&(qc(e,t),i={default:1});if(o)for(const l in s)!pi(l)&&i[l]==null&&delete s[l]},Ie=Xc;function _h(e){return Wc(e)}function Sh(e){return Wc(e,Hd)}function Wc(e,t){const n=xs();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:l,createComment:a,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:d=xt,insertStaticContent:p}=e,g=(y,v,k,M=null,P=null,O=null,B=void 0,$=null,D=!!v.dynamicChildren)=>{if(y===v)return;y&&!dt(y,v)&&(M=C(y),Ne(y,P,O,!0),y=null),v.patchFlag===-2&&(D=!1,v.dynamicChildren=null);const{type:I,ref:ee,shapeFlag:V}=v;switch(I){case bn:E(y,v,k,M);break;case Ce:S(y,v,k,M);break;case zr:y==null&&_(v,k,M,B);break;case je:L(y,v,k,M,P,O,B,$,D);break;default:V&1?w(y,v,k,M,P,O,B,$,D):V&6?q(y,v,k,M,P,O,B,$,D):(V&64||V&128)&&I.process(y,v,k,M,P,O,B,$,D,J)}ee!=null&&P?Nn(ee,y&&y.ref,O,v||y,!v):ee==null&&y&&y.ref!=null&&Nn(y.ref,null,O,y,!0)},E=(y,v,k,M)=>{if(y==null)r(v.el=l(v.children),k,M);else{const P=v.el=y.el;v.children!==y.children&&u(P,v.children)}},S=(y,v,k,M)=>{y==null?r(v.el=a(v.children||""),k,M):v.el=y.el},_=(y,v,k,M)=>{[y.el,y.anchor]=p(y.children,v,k,M,y.el,y.anchor)},m=({el:y,anchor:v},k,M)=>{let P;for(;y&&y!==v;)P=h(y),r(y,k,M),y=P;r(v,k,M)},b=({el:y,anchor:v})=>{let k;for(;y&&y!==v;)k=h(y),s(y),y=k;s(v)},w=(y,v,k,M,P,O,B,$,D)=>{if(v.type==="svg"?B="svg":v.type==="math"&&(B="mathml"),y==null)x(v,k,M,P,O,B,$,D);else{const I=y.el&&y.el._isVueCE?y.el:null;try{I&&I._beginPatch(),A(y,v,P,O,B,$,D)}finally{I&&I._endPatch()}}},x=(y,v,k,M,P,O,B,$)=>{let D,I;const{props:ee,shapeFlag:V,transition:Y,dirs:re}=y;if(D=y.el=i(y.type,O,ee&&ee.is,ee),V&8?c(D,y.children):V&16&&R(y.children,D,null,M,P,Ys(y,O),B,$),re&&wt(y,null,M,"created"),T(D,y,y.scopeId,B,M),ee){for(const be in ee)be!=="value"&&!pn(be)&&o(D,be,null,ee[be],O,M);"value"in ee&&o(D,"value",null,ee.value,O),(I=ee.onVnodeBeforeMount)&&Ke(I,M,y)}re&&wt(y,null,M,"beforeMount");const le=Kc(P,Y);le&&Y.beforeEnter(D),r(D,v,k),((I=ee&&ee.onVnodeMounted)||le||re)&&Ie(()=>{I&&Ke(I,M,y),le&&Y.enter(D),re&&wt(y,null,M,"mounted")},P)},T=(y,v,k,M,P)=>{if(k&&d(y,k),M)for(let O=0;O<M.length;O++)d(y,M[O]);if(P){let O=P.subTree;if(v===O||ls(O.type)&&(O.ssContent===v||O.ssFallback===v)){const B=P.vnode;T(y,B,B.scopeId,B.slotScopeIds,P.parent)}}},R=(y,v,k,M,P,O,B,$,D=0)=>{for(let I=D;I<y.length;I++){const ee=y[I]=$?Lt(y[I]):Ye(y[I]);g(null,ee,v,k,M,P,O,B,$)}},A=(y,v,k,M,P,O,B)=>{const $=v.el=y.el;let{patchFlag:D,dynamicChildren:I,dirs:ee}=v;D|=y.patchFlag&16;const V=y.props||ue,Y=v.props||ue;let re;if(k&&on(k,!1),(re=Y.onVnodeBeforeUpdate)&&Ke(re,k,v,y),ee&&wt(v,y,k,"beforeUpdate"),k&&on(k,!0),I&&(!y.dynamicChildren||y.dynamicChildren.length!==I.length)&&(D=0,B=!1,I=null),(V.innerHTML&&Y.innerHTML==null||V.textContent&&Y.textContent==null)&&c($,""),I?F(y.dynamicChildren,I,$,k,M,Ys(v,P),O):B||Z(y,v,$,null,k,M,Ys(v,P),O,!1),D>0){if(D&16)U($,V,Y,k,P);else if(D&2&&V.class!==Y.class&&o($,"class",null,Y.class,P),D&4&&o($,"style",V.style,Y.style,P),D&8){const le=v.dynamicProps;for(let be=0;be<le.length;be++){const ye=le[be],Re=V[ye],Ae=Y[ye];(Ae!==Re||ye==="value")&&o($,ye,Re,Ae,P,k)}}D&1&&y.children!==v.children&&c($,v.children)}else!B&&I==null&&U($,V,Y,k,P);((re=Y.onVnodeUpdated)||ee)&&Ie(()=>{re&&Ke(re,k,v,y),ee&&wt(v,y,k,"updated")},M)},F=(y,v,k,M,P,O,B)=>{for(let $=0;$<v.length;$++){const D=y[$],I=v[$],ee=D.el&&(D.type===je||!dt(D,I)||D.shapeFlag&198)?f(D.el):k;g(D,I,ee,null,M,P,O,B,!0)}},U=(y,v,k,M,P)=>{if(v!==k){if(v!==ue)for(const O in v)!pn(O)&&!(O in k)&&o(y,O,v[O],null,P,M);for(const O in k){if(pn(O))continue;const B=k[O],$=v[O];B!==$&&O!=="value"&&o(y,O,$,B,P,M)}"value"in k&&o(y,"value",v.value,k.value,P)}},L=(y,v,k,M,P,O,B,$,D)=>{const I=v.el=y?y.el:l(""),ee=v.anchor=y?y.anchor:l("");let{patchFlag:V,dynamicChildren:Y,slotScopeIds:re}=v;re&&($=$?$.concat(re):re),y==null?(r(I,k,M),r(ee,k,M),R(v.children||[],k,ee,P,O,B,$,D)):V>0&&V&64&&Y&&y.dynamicChildren&&y.dynamicChildren.length===Y.length?(F(y.dynamicChildren,Y,k,P,O,B,$),(v.key!=null||P&&v===P.subTree)&&zc(y,v,!0)):Z(y,v,k,ee,P,O,B,$,D)},q=(y,v,k,M,P,O,B,$,D)=>{v.slotScopeIds=$,y==null?v.shapeFlag&512?P.ctx.activate(v,k,M,B,D):Q(v,k,M,P,O,B,D):te(y,v,D)},Q=(y,v,k,M,P,O,B)=>{const $=y.component=Nh(y,M,P);if(Os(y)&&($.ctx.renderer=J),Fh($,!1,B),$.asyncDep){if(P&&P.registerDep($,j,B),!y.el){const D=$.subTree=Ee(Ce);S(null,D,v,k),y.placeholder=D.el}}else j($,y,v,k,P,O,B)},te=(y,v,k)=>{const M=v.component=y.component;if(ph(y,v,k))if(M.asyncDep&&!M.asyncResolved){X(M,v,k);return}else M.next=v,M.update();else v.el=y.el,M.vnode=v},j=(y,v,k,M,P,O,B)=>{const $=()=>{if(y.isMounted){let{next:V,bu:Y,u:re,parent:le,vnode:be}=y;{const Ge=Qc(y);if(Ge){V&&(V.el=be.el,X(y,V,B)),Ge.asyncDep.then(()=>{Ie(()=>{y.isUnmounted||I()},P)});return}}let ye=V,Re;on(y,!1),V?(V.el=be.el,X(y,V,B)):V=be,Y&&On(Y),(Re=V.props&&V.props.onVnodeBeforeUpdate)&&Ke(Re,le,V,be),on(y,!0);const Ae=Js(y),lt=y.subTree;y.subTree=Ae,g(lt,Ae,f(lt.el),C(lt),y,P,O),V.el=Ae.el,ye===null&&Ls(y,Ae.el),re&&Ie(re,P),(Re=V.props&&V.props.onVnodeUpdated)&&Ie(()=>Ke(Re,le,V,be),P)}else{let V;const{el:Y,props:re}=v,{bm:le,m:be,parent:ye,root:Re,type:Ae}=y,lt=Dt(v);if(on(y,!1),le&&On(le),!lt&&(V=re&&re.onVnodeBeforeMount)&&Ke(V,ye,v),on(y,!0),Y&&ge){const Ge=()=>{y.subTree=Js(y),ge(Y,y.subTree,y,P,null)};lt&&Ae.__asyncHydrate?Ae.__asyncHydrate(Y,y,Ge):Ge()}else{Re.ce&&Re.ce._hasShadowRoot()&&Re.ce._injectChildStyle(Ae,y.parent?y.parent.type:void 0);const Ge=y.subTree=Js(y);g(null,Ge,k,M,y,P,O),v.el=Ge.el}if(be&&Ie(be,P),!lt&&(V=re&&re.onVnodeMounted)){const Ge=v;Ie(()=>Ke(V,ye,Ge),P)}(v.shapeFlag&256||ye&&Dt(ye.vnode)&&ye.vnode.shapeFlag&256)&&y.a&&Ie(y.a,P),y.isMounted=!0,v=k=M=null}};y.scope.on();const D=y.effect=new Vl($);y.scope.off();const I=y.update=D.run.bind(D),ee=y.job=D.runIfDirty.bind(D);ee.i=y,ee.id=y.uid,D.scheduler=()=>di(ee),on(y,!0),I()},X=(y,v,k)=>{v.component=y;const M=y.vnode.props;y.vnode=v,y.next=null,mh(y,v.props,M,k),wh(y,v.children,k),kt(),Di(y),Rt()},Z=(y,v,k,M,P,O,B,$,D=!1)=>{const I=y&&y.children,ee=y?y.shapeFlag:0,V=v.children,{patchFlag:Y,shapeFlag:re}=v;if(Y>0){if(Y&128){H(I,V,k,M,P,O,B,$,D);return}else if(Y&256){Se(I,V,k,M,P,O,B,$,D);return}}re&8?(ee&16&&me(I,P,O),V!==I&&c(k,V)):ee&16?re&16?H(I,V,k,M,P,O,B,$,D):me(I,P,O,!0):(ee&8&&c(k,""),re&16&&R(V,k,M,P,O,B,$,D))},Se=(y,v,k,M,P,O,B,$,D)=>{y=y||Pn,v=v||Pn;const I=y.length,ee=v.length,V=Math.min(I,ee);let Y;for(Y=0;Y<V;Y++){const re=v[Y]=D?Lt(v[Y]):Ye(v[Y]);g(y[Y],re,k,null,P,O,B,$,D)}I>ee?me(y,P,O,!0,!1,V):R(v,k,M,P,O,B,$,D,V)},H=(y,v,k,M,P,O,B,$,D)=>{let I=0;const ee=v.length;let V=y.length-1,Y=ee-1;for(;I<=V&&I<=Y;){const re=y[I],le=v[I]=D?Lt(v[I]):Ye(v[I]);if(dt(re,le))g(re,le,k,null,P,O,B,$,D);else break;I++}for(;I<=V&&I<=Y;){const re=y[V],le=v[Y]=D?Lt(v[Y]):Ye(v[Y]);if(dt(re,le))g(re,le,k,null,P,O,B,$,D);else break;V--,Y--}if(I>V){if(I<=Y){const re=Y+1,le=re<ee?v[re].el:M;for(;I<=Y;)g(null,v[I]=D?Lt(v[I]):Ye(v[I]),k,le,P,O,B,$,D),I++}}else if(I>Y)for(;I<=V;)Ne(y[I],P,O,!0),I++;else{const re=I,le=I,be=new Map;for(I=le;I<=Y;I++){const Je=v[I]=D?Lt(v[I]):Ye(v[I]);Je.key!=null&&be.set(Je.key,I)}let ye,Re=0;const Ae=Y-le+1;let lt=!1,Ge=0;const Jn=new Array(Ae);for(I=0;I<Ae;I++)Jn[I]=0;for(I=re;I<=V;I++){const Je=y[I];if(Re>=Ae){Ne(Je,P,O,!0);continue}let yt;if(Je.key!=null)yt=be.get(Je.key);else for(ye=le;ye<=Y;ye++)if(Jn[ye-le]===0&&dt(Je,v[ye])){yt=ye;break}yt===void 0?Ne(Je,P,O,!0):(Jn[yt-le]=I+1,yt>=Ge?Ge=yt:lt=!0,g(Je,v[yt],k,null,P,O,B,$,D),Re++)}const Mi=lt?Eh(Jn):Pn;for(ye=Mi.length-1,I=Ae-1;I>=0;I--){const Je=le+I,yt=v[Je],Ii=v[Je+1],Li=Je+1<ee?Ii.el||Gc(Ii):M;Jn[I]===0?g(null,yt,k,Li,P,O,B,$,D):lt&&(ye<0||I!==Mi[ye]?fe(yt,k,Li,2):ye--)}}},fe=(y,v,k,M,P=null)=>{const{el:O,type:B,transition:$,children:D,shapeFlag:I}=y;if(I&6){fe(y.component.subTree,v,k,M);return}if(I&128){y.suspense.move(v,k,M);return}if(I&64){B.move(y,v,k,J);return}if(B===je){r(O,v,k);for(let V=0;V<D.length;V++)fe(D[V],v,k,M);r(y.anchor,v,k);return}if(B===zr){m(y,v,k);return}if(M!==2&&I&1&&$)if(M===0)$.persisted&&!O[st]?r(O,v,k):($.beforeEnter(O),r(O,v,k),Ie(()=>$.enter(O),P));else{const{leave:V,delayLeave:Y,afterLeave:re}=$,le=()=>{y.ctx.isUnmounted?s(O):r(O,v,k)},be=()=>{const ye=O._isLeaving||!!O[st];O._isLeaving&&O[st](!0),$.persisted&&!ye?le():V(O,()=>{le(),re&&re()})};Y?Y(O,le,be):be()}else r(O,v,k)},Ne=(y,v,k,M=!1,P=!1)=>{const{type:O,props:B,ref:$,children:D,dynamicChildren:I,shapeFlag:ee,patchFlag:V,dirs:Y,cacheIndex:re,memo:le}=y;if(V===-2&&(P=!1),$!=null&&(kt(),Nn($,null,k,y,!0),Rt()),re!=null&&(v.renderCache[re]=void 0),ee&256){v.ctx.deactivate(y);return}const be=ee&1&&Y,ye=!Dt(y);let Re;if(ye&&(Re=B&&B.onVnodeBeforeUnmount)&&Ke(Re,v,y),ee&6)_e(y.component,k,M);else{if(ee&128){y.suspense.unmount(k,M);return}be&&wt(y,null,v,"beforeUnmount"),ee&64?y.type.remove(y,v,k,J,M):I&&!I.hasOnce&&(O!==je||V>0&&V&64)?me(I,v,k,!1,!0):(O===je&&V&384||!P&&ee&16)&&me(D,v,k),M&&Ct(y)}const Ae=le!=null&&re==null;(ye&&(Re=B&&B.onVnodeUnmounted)||be||Ae)&&Ie(()=>{Re&&Ke(Re,v,y),be&&wt(y,null,v,"unmounted"),Ae&&(y.el=null)},k)},Ct=y=>{const{type:v,el:k,anchor:M,transition:P}=y;if(v===je){mt(k,M);return}if(v===zr){b(y);return}const O=()=>{s(k),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(y.shapeFlag&1&&P&&!P.persisted){const{leave:B,delayLeave:$}=P,D=()=>B(k,O);$?$(y.el,O,D):D()}else O()},mt=(y,v)=>{let k;for(;y!==v;)k=h(y),s(y),y=k;s(v)},_e=(y,v,k)=>{const{bum:M,scope:P,job:O,subTree:B,um:$,m:D,a:I}=y;as(D),as(I),M&&On(M),P.stop(),O&&(O.flags|=8,Ne(B,y,v,k)),$&&Ie($,v),Ie(()=>{y.isUnmounted=!0},v)},me=(y,v,k,M=!1,P=!1,O=0)=>{for(let B=O;B<y.length;B++)Ne(y[B],v,k,M,P)},C=y=>{if(y.shapeFlag&6)return C(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const v=h(y.anchor||y.el),k=v&&v[Md];return k?h(k):v};let W=!1;const N=(y,v,k)=>{let M;y==null?v._vnode&&(Ne(v._vnode,null,null,!0),M=v._vnode.component):g(v._vnode||null,y,v,null,null,null,k),v._vnode=y,W||(W=!0,Di(M),ts(),W=!1)},J={p:g,um:Ne,m:fe,r:Ct,mt:Q,mc:R,pc:Z,pbc:F,n:C,o:e};let se,ge;return t&&([se,ge]=t(J)),{render:N,hydrate:se,createApp:lh(N,se)}}function Ys({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 on({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Kc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zc(e,t,n=!1){const r=e.children,s=t.children;if(G(r)&&G(s))for(let o=0;o<r.length;o++){const i=r[o];let l=s[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[o]=Lt(s[o]),l.el=i.el),!n&&l.patchFlag!==-2&&zc(i,l)),l.type===bn&&(l.patchFlag===-1&&(l=s[o]=Lt(l)),l.el=i.el),l.type===Ce&&!l.el&&(l.el=i.el)}}function Eh(e){const t=e.slice(),n=[0];let r,s,o,i,l;const a=e.length;for(r=0;r<a;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<u?o=l+1:i=l;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Qc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Qc(t)}function as(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Gc(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Gc(t.subTree):null}const ls=e=>e.__isSuspense;let Co=0;const xh={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,l,a,u){if(e==null)kh(t,n,r,s,o,i,l,a,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Rh(e,t,n,r,s,i,l,a,u)}},hydrate:Th,normalize:Ch},Jc=xh;function yr(e,t){const n=e.props&&e.props[t];ne(n)&&n()}function kh(e,t,n,r,s,o,i,l,a){const{p:u,o:{createElement:c}}=a,f=c("div"),h=e.suspense=Yc(e,s,r,t,f,n,o,i,l,a);u(null,h.pendingBranch=e.ssContent,f,null,r,h,o,i),h.deps>0?(yr(e,"onPending"),yr(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,i),Fn(h,e.ssFallback)):h.resolve(!1,!0)}function Rh(e,t,n,r,s,o,i,l,{p:a,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const h=t.ssContent,d=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:E,isHydrating:S}=f;if(g)f.pendingBranch=h,dt(g,h)?(a(g,h,f.hiddenContainer,null,s,f,o,i,l),f.deps<=0?f.resolve():E&&(S||(a(p,d,n,r,s,null,o,i,l),Fn(f,d)))):(f.pendingId=Co++,S?(f.isHydrating=!1,f.activeBranch=g):u(g,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),E?(a(null,h,f.hiddenContainer,null,s,f,o,i,l),f.deps<=0?f.resolve():(a(p,d,n,r,s,null,o,i,l),Fn(f,d))):p&&dt(p,h)?(a(p,h,n,r,s,f,o,i,l),f.resolve(!0)):(a(null,h,f.hiddenContainer,null,s,f,o,i,l),f.deps<=0&&f.resolve()));else if(p&&dt(p,h))a(p,h,n,r,s,f,o,i,l),Fn(f,h);else if(yr(t,"onPending"),f.pendingBranch=h,h.shapeFlag&512?f.pendingId=h.component.suspenseId:f.pendingId=Co++,a(null,h,f.hiddenContainer,null,s,f,o,i,l),f.deps<=0)f.resolve();else{const{timeout:_,pendingId:m}=f;_>0?setTimeout(()=>{f.pendingId===m&&f.fallback(d)},_):_===0&&f.fallback(d)}}function Yc(e,t,n,r,s,o,i,l,a,u,c=!1){const{p:f,m:h,um:d,n:p,o:{parentNode:g,remove:E}}=u;let S;const _=Ph(e);_&&t&&t.pendingBranch&&(S=t.pendingId,t.deps++);const m=e.props?Dl(e.props.timeout):void 0,b=o,w={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Co++,timeout:typeof m=="number"?m:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(x=!1,T=!1){const{vnode:R,activeBranch:A,pendingBranch:F,pendingId:U,effects:L,parentComponent:q,container:Q,isInFallback:te}=w;let j=!1;if(w.isHydrating)w.isHydrating=!1;else if(!x){j=A&&F.transition&&F.transition.mode==="out-in";let Se=!1;j&&(A.transition.afterLeave=()=>{U===w.pendingId&&(h(F,Q,o===b&&!Se?p(A):o,0),So(L),te&&R.ssFallback&&(R.ssFallback.el=null))}),A&&!w.isFallbackMountPending&&(g(A.el)===Q&&(o=p(A),Se=!0),d(A,q,w,!0),!j&&te&&R.ssFallback&&Ie(()=>R.ssFallback.el=null,w)),j||h(F,Q,o,0)}w.isFallbackMountPending=!1,Fn(w,F),w.pendingBranch=null,w.isInFallback=!1;let X=w.parent,Z=!1;for(;X;){if(X.pendingBranch){X.effects.push(...L),Z=!0;break}X=X.parent}!Z&&!j&&So(L),w.effects=[],_&&t&&t.pendingBranch&&S===t.pendingId&&(t.deps--,t.deps===0&&!T&&t.resolve()),yr(R,"onResolve")},fallback(x){if(!w.pendingBranch)return;const{vnode:T,activeBranch:R,parentComponent:A,container:F,namespace:U}=w;yr(T,"onFallback");const L=p(R),q=()=>{w.isFallbackMountPending=!1,w.isInFallback&&(f(null,x,F,L,A,null,U,l,a),Fn(w,x))},Q=x.transition&&x.transition.mode==="out-in";Q&&(w.isFallbackMountPending=!0,R.transition.afterLeave=q),w.isInFallback=!0,d(R,A,null,!0),Q||q()},move(x,T,R){w.activeBranch&&h(w.activeBranch,x,T,R),w.container=x},next(){return w.activeBranch&&p(w.activeBranch)},registerDep(x,T,R){const A=!!w.pendingBranch;A&&w.deps++;const F=x.vnode.el;x.asyncDep.catch(U=>{Tr(U,x,0)}).then(U=>{if(x.isUnmounted||w.isUnmounted||w.pendingId!==x.suspenseId)return;vr(),x.asyncResolved=!0;const{vnode:L}=x;Po(x,U),F&&(L.el=F);const q=!F&&x.subTree.el;T(x,L,g(F||x.subTree.el),F?null:p(x.subTree),w,i,R),q&&(L.placeholder=null,E(q)),Ls(x,L.el),A&&--w.deps===0&&w.resolve()})},unmount(x,T){w.isUnmounted=!0,w.activeBranch&&d(w.activeBranch,n,x,T),w.pendingBranch&&d(w.pendingBranch,n,x,T)}};return w}function Th(e,t,n,r,s,o,i,l,a){const u=t.suspense=Yc(t,r,n,e.parentNode,document.createElement("div"),null,s,o,i,l,!0),c=a(e,u.pendingBranch=t.ssContent,n,u,o,i);return u.deps===0&&u.resolve(!1,!0),c}function Ch(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Xi(r?n.default:n),e.ssFallback=r?Xi(n.fallback):Ee(Ce)}function Xi(e){let t;if(ne(e)){const n=Bn&&e._c;n&&(e._d=!1,$e()),e=e(),n&&(e._d=!0,t=ze,Zc())}return G(e)&&(e=fh(e)),e=Ye(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Xc(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):So(e)}function Fn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,Ls(r,s))}function Ph(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const je=Symbol.for("v-fgt"),bn=Symbol.for("v-txt"),Ce=Symbol.for("v-cmt"),zr=Symbol.for("v-stc"),fr=[];let ze=null;function $e(e=!1){fr.push(ze=e?null:[])}function Zc(){fr.pop(),ze=fr[fr.length-1]||null}let Bn=1;function cs(e,t=!1){Bn+=e,e<0&&ze&&t&&(ze.hasOnce=!0)}function eu(e){return e.dynamicChildren=Bn>0?ze||Pn:null,Zc(),Bn>0&&ze&&ze.push(e),e}function jn(e,t,n,r,s,o){return eu(Le(e,t,n,r,s,o,!0))}function jt(e,t,n,r,s){return eu(Ee(e,t,n,r,s,!0))}function En(e){return e?e.__v_isVNode===!0:!1}function dt(e,t){return e.type===t.type&&e.key===t.key}const tu=({key:e})=>e??null,Qr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||xe(e)||ne(e)?{i:He,r:e,k:t,f:!!n}:e:null);function Le(e,t=null,n=null,r=0,s=null,o=e===je?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tu(t),ref:t&&Qr(t),scopeId:hc,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:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:He};return l?(us(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=we(n)?8:16),Bn>0&&!i&&ze&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&ze.push(a),a}const Ee=Ah;function Ah(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Cc)&&(e=Ce),En(e)){const l=$t(e,t,!0);return n&&us(l,n),Bn>0&&!o&&ze&&(l.shapeFlag&6?ze[ze.indexOf(e)]=l:ze.push(l)),l.patchFlag=-2,l}if($h(e)&&(e=e.__vccOpts),t){t=Oh(t);let{class:l,style:a}=t;l&&!we(l)&&(t.class=Gt(l)),de(a)&&(Ps(a)&&!G(a)&&(a=Pe({},a)),t.style=ii(a))}const i=we(e)?1:ls(e)?128:mc(e)?64:de(e)?4:ne(e)?2:0;return Le(e,t,n,r,s,i,o,!0)}function Oh(e){return e?Ps(e)||Dc(e)?Pe({},e):e:null}function $t(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:l,transition:a}=e,u=t?Mh(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&tu(u),ref:t&&t.ref?n&&o?G(o)?o.concat(Qr(t)):[o,Qr(t)]:Qr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==je?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Un(c,a.clone(c)),c}function br(e=" ",t=0){return Ee(bn,null,e,t)}function nu(e="",t=!1){return t?($e(),jt(Ce,null,e)):Ee(Ce,null,e)}function Ye(e){return e==null||typeof e=="boolean"?Ee(Ce):G(e)?Ee(je,null,e.slice()):En(e)?Lt(e):Ee(bn,null,String(e))}function Lt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function us(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),us(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Dc(t)?t._ctx=He:s===3&&He&&(He.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ne(t)){if(r&65){us(e,{default:t});return}t={default:t,_ctx:He},n=32}else t=String(t),r&64?(n=16,t=[br(t)]):n=8;e.children=t,e.shapeFlag|=n}function Mh(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Gt([t.class,r.class]));else if(s==="style")t.style=ii([t.style,r.style]);else if(kr(s)){const o=t[s],i=r[s];i&&o!==i&&!(G(o)&&o.includes(i))?t[s]=o?[].concat(o,i):i:i==null&&o==null&&!vs(s)&&(t[s]=i)}else s!==""&&(t[s]=r[s])}return t}function Ke(e,t,n,r=null){at(e,t,7,[n,r])}const Ih=Ic();let Lh=0;function Nh(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Ih,o={uid:Lh++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ql(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Uc(r,s),emitsOptions:Nc(r,s),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=ch.bind(null,o),e.ce&&e.ce(o),o}let Ue=null;const Xt=()=>Ue||He;let fs,Hn;{const e=xs(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};fs=t("__VUE_INSTANCE_SETTERS__",n=>Ue=n),Hn=t("__VUE_SSR_SETTERS__",n=>qn=n)}const Gn=e=>{const t=Ue;return fs(e),e.scope.on(),()=>{e.scope.off(),fs(t)}},vr=()=>{Ue&&Ue.scope.off(),fs(null)};function ru(e){return e.vnode.shapeFlag&4}let qn=!1;function Fh(e,t=!1,n=!1){t&&Hn(t);const{props:r,children:s}=e.vnode,o=ru(e);gh(e,r,o,t),vh(e,s,n||t);const i=o?jh(e,t):void 0;return t&&Hn(!1),i}function jh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,th);const{setup:r}=n;if(r){kt();const s=e.setupContext=r.length>1?Dh(e):null,o=Gn(e),i=Rr(r,e,0,[e.props,s]),l=oi(i);if(Rt(),o(),(l||e.sp)&&!Dt(e)&&Sc(e),l){if(i.then(vr,vr),t)return i.then(a=>{Po(e,a)}).catch(a=>{Tr(a,e,0)});e.asyncDep=i}else Po(e,i)}else su(e)}function Po(e,t,n){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=ac(t)),su(e)}function su(e,t,n){const r=e.type;e.render||(e.render=r.render||xt);{const s=Gn(e);kt();try{nh(e)}finally{Rt(),s()}}}const Hh={get(e,t){return De(e,"get",""),e[t]}};function Dh(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Hh),slots:e.slots,emit:e.emit,expose:t}}function Ns(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ac(gd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ur)return ur[n](e)},has(t,n){return n in t||n in ur}})):e.proxy}function Ao(e,t=!0){return ne(e)?e.displayName||e.name:e.name||t&&e.__name}function $h(e){return ne(e)&&"__vccOpts"in e}const Te=(e,t)=>Ed(e,t,qn);function Qe(e,t,n){try{cs(-1);const r=arguments.length;return r===2?de(t)&&!G(t)?En(t)?Ee(e,null,[t]):Ee(e,t):Ee(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&En(n)&&(n=[n]),Ee(e,t,n))}finally{cs(1)}}const Uh="3.5.39";let Oo;const Zi=typeof window<"u"&&window.trustedTypes;if(Zi)try{Oo=Zi.createPolicy("vue",{createHTML:e=>e})}catch{}const ou=Oo?e=>Oo.createHTML(e):e=>e,Bh="http://www.w3.org/2000/svg",qh="http://www.w3.org/1998/Math/MathML",It=typeof document<"u"?document:null,ea=It&&It.createElement("template"),Vh={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 s=t==="svg"?It.createElementNS(Bh,e):t==="mathml"?It.createElementNS(qh,e):n?It.createElement(e,{is:n}):It.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>It.createTextNode(e),createComment:e=>It.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>It.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{ea.innerHTML=ou(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=ea.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},qt="transition",Zn="animation",wr=Symbol("_vtc"),iu={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},Wh=Pe({},yc,iu),Kh=e=>(e.displayName="Transition",e.props=Wh,e),zh=Kh((e,{slots:t})=>Qe(Nd,Qh(e),t)),an=(e,t=[])=>{G(e)?e.forEach(n=>n(...t)):e&&e(...t)},ta=e=>e?G(e)?e.some(t=>t.length>1):e.length>1:!1;function Qh(e){const t={};for(const L in e)L in iu||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:u=i,appearToClass:c=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,p=Gh(s),g=p&&p[0],E=p&&p[1],{onBeforeEnter:S,onEnter:_,onEnterCancelled:m,onLeave:b,onLeaveCancelled:w,onBeforeAppear:x=S,onAppear:T=_,onAppearCancelled:R=m}=t,A=(L,q,Q,te)=>{L._enterCancelled=te,ln(L,q?c:l),ln(L,q?u:i),Q&&Q()},F=(L,q)=>{L._isLeaving=!1,ln(L,f),ln(L,d),ln(L,h),q&&q()},U=L=>(q,Q)=>{const te=L?T:_,j=()=>A(q,L,Q);an(te,[q,j]),na(()=>{ln(q,L?a:o),At(q,L?c:l),ta(te)||ra(q,r,g,j)})};return Pe(t,{onBeforeEnter(L){an(S,[L]),At(L,o),At(L,i)},onBeforeAppear(L){an(x,[L]),At(L,a),At(L,u)},onEnter:U(!1),onAppear:U(!0),onLeave(L,q){L._isLeaving=!0;const Q=()=>F(L,q);At(L,f),L._enterCancelled?(At(L,h),ia(L)):(ia(L),At(L,h)),na(()=>{L._isLeaving&&(ln(L,f),At(L,d),ta(b)||ra(L,r,E,Q))}),an(b,[L,Q])},onEnterCancelled(L){A(L,!1,void 0,!0),an(m,[L])},onAppearCancelled(L){A(L,!0,void 0,!0),an(R,[L])},onLeaveCancelled(L){F(L),an(w,[L])}})}function Gh(e){if(e==null)return null;if(de(e))return[Xs(e.enter),Xs(e.leave)];{const t=Xs(e);return[t,t]}}function Xs(e){return Dl(e)}function At(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[wr]||(e[wr]=new Set)).add(t)}function ln(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[wr];n&&(n.delete(t),n.size||(e[wr]=void 0))}function na(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Jh=0;function ra(e,t,n,r){const s=e._endId=++Jh,o=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:l,propCount:a}=Yh(e,t);if(!i)return r();const u=i+"end";let c=0;const f=()=>{e.removeEventListener(u,h),o()},h=d=>{d.target===e&&++c>=a&&f()};setTimeout(()=>{c<a&&f()},l+1),e.addEventListener(u,h)}function Yh(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),s=r(`${qt}Delay`),o=r(`${qt}Duration`),i=sa(s,o),l=r(`${Zn}Delay`),a=r(`${Zn}Duration`),u=sa(l,a);let c=null,f=0,h=0;t===qt?i>0&&(c=qt,f=i,h=o.length):t===Zn?u>0&&(c=Zn,f=u,h=a.length):(f=Math.max(i,u),c=f>0?i>u?qt:Zn:null,h=c?c===qt?o.length:a.length:0);const d=c===qt&&/\b(?:transform|all)(?:,|$)/.test(r(`${qt}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:d}}function sa(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>oa(n)+oa(e[r])))}function oa(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ia(e){return(e?e.ownerDocument:document).body.offsetHeight}function Xh(e,t,n){const r=e[wr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const aa=Symbol("_vod"),Zh=Symbol("_vsh"),ep=Symbol(""),tp=/(?:^|;)\s*display\s*:/;function np(e,t,n){const r=e.style,s=we(n);let o=!1;if(n&&!s){if(t)if(we(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&or(r,l,"")}else for(const i in t)n[i]==null&&or(r,i,"");for(const i in n){i==="display"&&(o=!0);const l=n[i];l!=null?sp(e,i,!we(t)&&t?t[i]:void 0,l)||or(r,i,l):or(r,i,"")}}else if(s){if(t!==n){const i=r[ep];i&&(n+=";"+i),r.cssText=n,o=tp.test(n)}}else t&&e.removeAttribute("style");aa in e&&(e[aa]=o?r.display:"",e[Zh]&&(r.display="none"))}const la=/\s*!important$/;function or(e,t,n){if(G(n))n.forEach(r=>or(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=rp(e,t);la.test(n)?e.setProperty(en(r),n.replace(la,""),"important"):e[r]=n}}const ca=["Webkit","Moz","ms"],Zs={};function rp(e,t){const n=Zs[t];if(n)return n;let r=Be(t);if(r!=="filter"&&r in e)return Zs[t]=r;r=Ss(r);for(let s=0;s<ca.length;s++){const o=ca[s]+r;if(o in e)return Zs[t]=o}return t}function sp(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&we(r)&&n===r}const ua="http://www.w3.org/1999/xlink";function fa(e,t,n,r,s,o=zf(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ua,t.slice(6,t.length)):e.setAttributeNS(ua,t,n):n==null||o&&!$l(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Ze(n)?String(n):n)}function da(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ou(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=$l(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function Ht(e,t,n,r){e.addEventListener(t,n,r)}function op(e,t,n,r){e.removeEventListener(t,n,r)}const ha=Symbol("_vei");function ip(e,t,n,r,s=null){const o=e[ha]||(e[ha]={}),i=o[t];if(r&&i)i.value=r;else{const[l,a]=cp(t);if(r){const u=o[t]=dp(r,s);Ht(e,l,u,a)}else i&&(op(e,l,i,a),o[t]=void 0)}}const ap=/(Once|Passive|Capture)$/,lp=/^on:?(?:Once|Passive|Capture)$/;function cp(e){let t,n;for(;(n=e.match(ap))&&!lp.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):en(e.slice(2)),t]}let eo=0;const up=Promise.resolve(),fp=()=>eo||(up.then(()=>eo=0),eo=Date.now());function dp(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const s=n.value;if(G(s)){const o=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{o.call(r),r._stopped=!0};const i=s.slice(),l=[r];for(let a=0;a<i.length&&!r._stopped;a++){const u=i[a];u&&at(u,t,5,l)}}else at(s,t,5,[r])};return n.value=e,n.attached=fp(),n}const pa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hp=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?Xh(e,r,i):t==="style"?np(e,n,r):kr(t)?vs(t)||ip(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pp(e,t,r,i))?(da(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&fa(e,t,r,i,o,t!=="value")):e._isVueCE&&(gp(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!we(r)))?da(e,Be(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),fa(e,t,r,i))};function pp(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&pa(t)&&ne(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return pa(t)&&we(n)?!1:t in e}function gp(e,t){const n=e._def.props;if(!n)return!1;const r=Be(t);return Array.isArray(n)?n.some(s=>Be(s)===r):Object.keys(n).some(s=>Be(s)===r)}const Zt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>On(t,n):t};function mp(e){e.target.composing=!0}function ga(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const it=Symbol("_assign");function ma(e,t,n){return t&&(e=e.trim()),n&&(e=Es(e)),e}const ya={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[it]=Zt(s);const o=r||s.props&&s.props.type==="number";Ht(e,t?"change":"input",i=>{i.target.composing||e[it](ma(e.value,n,o))}),(n||o)&&Ht(e,"change",()=>{e.value=ma(e.value,n,o)}),t||(Ht(e,"compositionstart",mp),Ht(e,"compositionend",ga),Ht(e,"change",ga))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},i){if(e[it]=Zt(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?Es(e.value):e.value,a=t??"";if(l===a)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===a)||(e.value=a)}},yp={deep:!0,created(e,t,n){e[it]=Zt(n),Ht(e,"change",()=>{const r=e._modelValue,s=Vn(e),o=e.checked,i=e[it];if(G(r)){const l=ai(r,s),a=l!==-1;if(o&&!a)i(r.concat(s));else if(!o&&a){const u=[...r];u.splice(l,1),i(u)}}else if(zn(r)){const l=new Set(r);o?l.add(s):l.delete(s),i(l)}else i(au(e,o))})},mounted:ba,beforeUpdate(e,t,n){e[it]=Zt(n),ba(e,t,n)}};function ba(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(G(t))s=ai(t,r.props.value)>-1;else if(zn(t))s=t.has(r.props.value);else{if(t===n)return;s=Yt(t,au(e,!0))}e.checked!==s&&(e.checked=s)}const bp={created(e,{value:t},n){e.checked=Yt(t,n.props.value),e[it]=Zt(n),Ht(e,"change",()=>{e[it](Vn(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[it]=Zt(r),t!==n&&(e.checked=Yt(t,r.props.value))}},vp={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=zn(t);Ht(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Es(Vn(i)):Vn(i));e[it](e.multiple?s?new Set(o):o:o[0]),e._assigning=!0,Sn(()=>{e._assigning=!1})}),e[it]=Zt(r)},mounted(e,{value:t}){va(e,t)},beforeUpdate(e,t,n){e[it]=Zt(n)},updated(e,{value:t}){e._assigning||va(e,t)}};function va(e,t){const n=e.multiple,r=G(t);if(!(n&&!r&&!zn(t))){for(let s=0,o=e.options.length;s<o;s++){const i=e.options[s],l=Vn(i);if(n)if(r){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(u=>String(u)===String(l)):i.selected=ai(t,l)>-1}else i.selected=t.has(l);else if(Yt(Vn(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Vn(e){return"_value"in e?e._value:e.value}function au(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const G_={created(e,t,n){Fr(e,t,n,null,"created")},mounted(e,t,n){Fr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Fr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Fr(e,t,n,r,"updated")}};function wp(e,t){switch(e){case"SELECT":return vp;case"TEXTAREA":return ya;default:switch(t){case"checkbox":return yp;case"radio":return bp;default:return ya}}}function Fr(e,t,n,r,s){const i=wp(e.tagName,n.props&&n.props.type)[s];i&&i(e,t,n,r)}const _p=["ctrl","shift","alt","meta"],Sp={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)=>_p.some(n=>e[`${n}Key`]&&!t.includes(n))},J_=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...o)=>{for(let i=0;i<t.length;i++){const l=Sp[t[i]];if(l&&l(s,t))return}return e(s,...o)}))},lu=Pe({patchProp:hp},Vh);let dr,wa=!1;function Ep(){return dr||(dr=_h(lu))}function xp(){return dr=wa?dr:Sh(lu),wa=!0,dr}const kp=((...e)=>{const t=Ep().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=uu(r);if(!s)return;const o=t._component;!ne(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,cu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t}),Rp=((...e)=>{const t=xp().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=uu(r);if(s)return n(s,!0,cu(s))},t});function cu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function uu(e){return we(e)?document.querySelector(e):e}const Tp=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Cp=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Pp=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Ap(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Op(e);return}return t}function Op(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Mp(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Pp.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Tp.test(e)||Cp.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Ap)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const fu=/#/g,du=/&/g,Ip=/\//g,Lp=/=/g,Np=/\?/g,Fs=/\+/g,Fp=/%5e/gi,jp=/%60/gi,Hp=/%7c/gi,Dp=/%20/gi,$p=/%2f/gi,Up=/%252f/gi;function hu(e){return encodeURI(""+e).replace(Hp,"|")}function Mo(e){return hu(typeof e=="string"?e:JSON.stringify(e)).replace(Fs,"%2B").replace(Dp,"+").replace(fu,"%23").replace(du,"%26").replace(jp,"`").replace(Fp,"^").replace(Ip,"%2F")}function to(e){return Mo(e).replace(Lp,"%3D")}function Bp(e){return hu(e).replace(fu,"%23").replace(Np,"%3F").replace(Up,"%2F").replace(du,"%26").replace(Fs,"%2B")}function _r(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function qp(e){return _r(e.replace($p,"%252F"))}function Vp(e){return _r(e.replace(Fs," "))}function Wp(e){return _r(e.replace(Fs," "))}function mi(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=Vp(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=Wp(r[2]||"");t[s]===void 0?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}function Kp(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${to(e)}=${Mo(n)}`).join("&"):`${to(e)}=${Mo(t)}`:to(e)}function zp(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Kp(t,e[t])).filter(Boolean).join("&")}const Qp=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Gp=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Jp=/^([/\\]\s*){2,}[^/\\]/,Yp=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Xp=/\/$|\/\?|\/#/,Zp=/^\.?\//;function rn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Qp.test(e):Gp.test(e)||(t.acceptRelative?Jp.test(e):!1)}function ds(e){return!!e&&Yp.test(e)}function Io(e="",t){return t?Xp.test(e):e.endsWith("/")}function Sr(e="",t){if(!t)return(Io(e)?e.slice(0,-1):e)||"/";if(!Io(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s!==-1&&(n=e.slice(0,s),r=e.slice(s));const[o,...i]=n.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function pu(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Io(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s!==-1&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[o,...i]=n.split("?");return o+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function eg(e,t){if(mu(t)||rn(e))return e;const n=Sr(t);if(e.startsWith(n)){const r=e[n.length];if(!r||r==="/"||r==="?")return e}return yi(n,e)}function _a(e,t){if(mu(t))return e;const n=Sr(t);if(!e.startsWith(n))return e;const r=e[n.length];return r&&r!=="/"&&r!=="?"?e:"/"+e.slice(n.length).replace(/^\/+/,"")}function gu(e,t){const n=bi(e),r={...mi(n.search),...t};return n.search=zp(r),ng(n)}function mu(e){return!e||e==="/"}function tg(e){return e&&e!=="/"}function yi(e,...t){let n=e||"";for(const r of t.filter(s=>tg(s)))if(n){const s=r.replace(Zp,"");n=pu(n)+s}else n=r;return n}function yu(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const i of n)if(!(!i||i==="/")){for(const[l,a]of i.split(t).entries())if(!(!a||a===".")){if(a===".."){if(r.length===1&&rn(r[0]))continue;r.pop(),s--;continue}if(l===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+a;continue}r.push(a),s++}}let o=r.join("/");return s>=0?n[0]?.startsWith("/")&&!o.startsWith("/")?o="/"+o:n[0]?.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*s)+o,n[n.length-1]?.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function bu(e,t){return _r(Sr(e))===_r(Sr(t))}const vu=Symbol.for("ufo:protocolRelative");function bi(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,h=""]=n;return{protocol:f.toLowerCase(),pathname:h,href:f+h,auth:"",host:"",search:"",hash:""}}if(!rn(e,{acceptRelative:!0}))return Sa(e);const[,r="",s,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",l=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(l=l.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:a,search:u,hash:c}=Sa(l);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:a,search:u,hash:c,[vu]:!r}}function Sa(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function ng(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[vu]?(e.protocol||"")+"//":"")+s+o+t+n+r}class rg extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function sg(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${s}: ${o}${t?` ${t}`:""}`,l=new rg(i,e.error?{cause:e.error}:void 0);for(const a of["request","options","response"])Object.defineProperty(l,a,{get(){return e[a]}});for(const[a,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(l,a,{get(){return e.response&&e.response[u]}});return l}const og=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Ea(e="GET"){return og.has(e.toUpperCase())}function ig(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const ag=new Set(["image/svg","application/xml","application/xhtml","application/html"]),lg=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function cg(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return lg.test(t)?"json":t==="text/event-stream"?"stream":ag.has(t)||t.startsWith("text/")?"text":"blob"}function ug(e,t,n,r){const s=fg(t?.headers??e?.headers,n?.headers,r);let o;return(n?.query||n?.params||t?.params||t?.query)&&(o={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:o,params:o,headers:s}}function fg(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,o]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,o);return r}async function jr(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const dg=new Set([408,409,425,429,500,502,503,504]),hg=new Set([101,204,205,304]);function wu(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(l){const a=l.error&&l.error.name==="AbortError"&&!l.options.timeout||!1;if(l.options.retry!==!1&&!a){let c;typeof l.options.retry=="number"?c=l.options.retry:c=Ea(l.options.method)?0:1;const f=l.response&&l.response.status||500;if(c>0&&(Array.isArray(l.options.retryStatusCodes)?l.options.retryStatusCodes.includes(f):dg.has(f))){const h=typeof l.options.retryDelay=="function"?l.options.retryDelay(l):l.options.retryDelay||0;return h>0&&await new Promise(d=>setTimeout(d,h)),o(l.request,{...l.options,retry:c-1})}}const u=sg(l);throw Error.captureStackTrace&&Error.captureStackTrace(u,o),u}const o=async function(a,u={}){const c={request:a,options:ug(a,u,e.defaults,n),response:void 0,error:void 0};if(c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&(await jr(c,c.options.onRequest),c.options.headers instanceof n||(c.options.headers=new n(c.options.headers||{}))),typeof c.request=="string"&&(c.options.baseURL&&(c.request=eg(c.request,c.options.baseURL)),c.options.query&&(c.request=gu(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&Ea(c.options.method))if(ig(c.options.body)){const d=c.options.headers.get("content-type");typeof c.options.body!="string"&&(c.options.body=d==="application/x-www-form-urlencoded"?new URLSearchParams(c.options.body).toString():JSON.stringify(c.options.body)),d||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")}else("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half"));let f;if(!c.options.signal&&c.options.timeout){const d=new r;f=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,d.abort(p)},c.options.timeout),c.options.signal=d.signal}try{c.response=await t(c.request,c.options)}catch(d){return c.error=d,c.options.onRequestError&&await jr(c,c.options.onRequestError),await s(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!hg.has(c.response.status)&&c.options.method!=="HEAD"){const d=(c.options.parseResponse?"json":c.options.responseType)||cg(c.response.headers.get("content-type")||"");switch(d){case"json":{const p=await c.response.text(),g=c.options.parseResponse||Mp;c.response._data=g(p);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[d]()}}return c.options.onResponse&&await jr(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await jr(c,c.options.onResponseError),await s(c)):c.response},i=async function(a,u){return(await o(a,u))._data};return i.raw=o,i.native=(...l)=>t(...l),i.create=(l={},a={})=>wu({...e,...a,defaults:{...e.defaults,...a.defaults,...l}}),i}const hs=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),pg=hs.fetch?(...e)=>hs.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),gg=hs.Headers,mg=hs.AbortController,yg=wu({fetch:pg,Headers:gg,AbortController:mg}),bg=yg,vg=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,vi=()=>vg().app,wg=()=>vi().baseURL,_g=()=>vi().buildAssetsDir,wi=(...e)=>yu(_u(),_g(),...e),_u=(...e)=>{const t=vi(),n=t.cdnURL||t.baseURL;return e.length?yu(n,...e):n};globalThis.__buildAssetsURL=wi,globalThis.__publicAssetsURL=_u;globalThis.$fetch||(globalThis.$fetch=bg.create({baseURL:wg()}));"global"in globalThis||(globalThis.global=globalThis);function Lo(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Lo(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const Su=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function Eu(e,t,n,r){for(let s=n;s<e.length;s+=1)try{const o=r?r.run(()=>e[s](...t)):e[s](...t);if(o&&typeof o.then=="function")return Promise.resolve(o).then(()=>Eu(e,t,s+1,r))}catch(o){return Promise.reject(o)}}function Sg(e,t,n){if(e.length>0)return Eu(e,t,0,Su(n))}function Eg(e,t,n){if(e.length>0){const r=Su(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}}function no(e,t){for(const n of[...e])n(t)}var xg=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!="function")return()=>{};const r=e;let s;for(;this._deprecatedHooks[e];)s=this._deprecatedHooks[e],e=s.to;if(s&&!n.allowDeprecated){let o=s.message;o||(o=`${r} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,r=(...s)=>(typeof n=="function"&&n(),n=void 0,r=void 0,t(...s));return n=this.hook(e,r),n}removeHook(e,t){const n=this._hooks[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const n=this._hooks[e]||[];this._hooks[e]=void 0;for(const r of n)this.hook(e,r)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=Lo(e),n=Object.keys(t).map(r=>this.hook(r,t[r]));return()=>{for(const r of n)r();n.length=0}}removeHooks(e){const t=Lo(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(Sg,e,t)}callHookParallel(e,...t){return this.callHookWith(Eg,e,t)}callHookWith(e,t,n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&no(this._before,r);const s=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return s instanceof Promise?s.finally(()=>{this._after&&r&&no(this._after,r)}):(this._after&&r&&no(this._after,r),s)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function xu(){return new xg}function kg(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let s;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?s=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(s){const i=s.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=o();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>o(),set:(i,l)=>{l||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,l)=>{r(i),t=i;try{return s?s.run(i,l):l()}finally{n||(t=void 0)}},async callAsync(i,l){t=i;const a=()=>{t=i},u=()=>t===i?a:void 0;No.add(u);try{const c=s?s.run(i,l):l();return n||(t=void 0),await c}finally{No.delete(u)}}}}function Rg(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=kg({...e,...r})),t[n]}}}const ps=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},xa="__unctx__",Tg=ps[xa]||(ps[xa]=Rg()),Cg=(e,t={})=>Tg.get(e,t),ka="__unctx_async_handlers__",No=ps[ka]||(ps[ka]=new Set);function Dn(e){const t=[];for(const s of No){const o=s();o&&t.push(o)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const Ra=!1,Pg=!1,Ta={id:"__nuxt-loader"},Ag={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Og="#__nuxt",ku="nuxt-app",Ca=36e5,Mg="vite:preloadError";function Ru(e=ku){return Cg(e,{asyncContext:!1})}const Ig="__nuxt_plugin";function Lg(e){let t=0;const n={_id:e.id||ku||"nuxt-app",_scope:Gf(),provide:void 0,versions:{get nuxt(){return"4.4.8"},get vue(){return n.vueApp.version}},payload:Et({...e.ssrContext?.payload||{},data:Et({}),state:tn({}),once:new Set,_errors:Et({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!li()?n._scope.run(()=>Pa(n,s)):Pa(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Et({}),_state:Et({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const o in s)switch(o){case"data":case"state":case"_errors":Object.assign(n.payload[o],s[o]);break;default:n.payload[o]=s[o]}}n.hooks=xu(),n.hook=n.hooks.hook;{const s=n.hooks.callHook;n.hooks.callHook=(o,...i)=>Promise.resolve().then(()=>s(o,...i))}n.callHook=n.hooks.callHook,n.provide=(s,o)=>{const i="$"+s;Hr(n,i,o),Hr(n.vueApp.config.globalProperties,i,o)},Hr(n.vueApp,"$nuxt",n),Hr(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Mg,o=>{n.callHook("app:chunkError",{error:o.payload}),o.payload?.message?.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=ke;const s=n.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function Ng(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function Fg(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function jg(e,t){const n=new Set,r=[],s=[];let o,i=0;async function l(a){const u=a.dependsOn?.filter(c=>t.some(f=>f._name===c)&&!n.has(c))??[];if(u.length>0)r.push([new Set(u),a]);else{const c=Fg(e,a).then(async()=>{a._name&&(n.add(a._name),await Promise.all(r.map(async([f,h])=>{f.has(a._name)&&(f.delete(a._name),f.size===0&&(i++,await l(h)))})))}).catch(f=>{if(!a.parallel&&!e.payload.error)throw f;o||=f});a.parallel?s.push(c):await c}}for(const a of t)Ng(e,a);for(const a of t)await l(a);if(await Promise.all(s),i)for(let a=0;a<i;a++)await Promise.all(s);if(o)throw e.payload.error||o}function Bt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Ig]:!0,_name:t})}function Pa(e,t,n){const r=()=>t();return Ru(e._id).set(e),e.vueApp.runWithContext(r)}function Hg(e){let t;return pc()&&(t=Xt()?.appContext.app.$nuxt),t||=Ru(e).tryUse(),t||null}function ke(e){const t=Hg(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function js(e){return ke().$config}function Hr(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function ro(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Fo(e,t,n=".",r){if(!ro(t))return Fo(e,{},n,r);const s={...t};for(const o of Object.keys(e)){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(r&&r(s,o,i,n)||(Array.isArray(i)&&Array.isArray(s[o])?s[o]=[...i,...s[o]]:ro(i)&&ro(s[o])?s[o]=Fo(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function Dg(e){return(...t)=>t.reduce((n,r)=>Fo(n,r,"",e),{})}const _i=Dg();function $g(e,t){try{return t in e}catch{return!1}}class Aa extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:jo(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Tu(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function Ug(e){if(typeof e=="string")return new Aa(e);if(Bg(e))return e;const t=new Aa(e.message??e.statusMessage??"",{cause:e.cause||e});if($g(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=jo(e.statusCode,t.statusCode):e.status&&(t.statusCode=jo(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Tu(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function Bg(e){return e?.constructor?.__h3_error__===!0}const qg=/[^\u0009\u0020-\u007E]/g;function Tu(e=""){return e.replace(qg,"")}function jo(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Vg=Symbol("layout-meta"),Hs=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const et=()=>ke()?.$router,Cu=()=>pc()?ot(Hs,ke()._route):ke()._route;const Wg=()=>{try{if(ke()._processingMiddleware)return!0}catch{return!1}return!1},Si=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?Ho(e):et().resolve(e).href;if(t?.open){const{protocol:u}=new URL(n,window.location.href);if(u&&ds(u))throw new Error(`Cannot navigate to a URL with '${u}' protocol.`);const{target:c="_blank",windowFeatures:f={}}=t.open,h=[];for(const[d,p]of Object.entries(f))p!==void 0&&h.push(`${d.toLowerCase()}=${p}`);return open(n,c,h.join(", ")),Promise.resolve()}const r=rn(n,{acceptRelative:!0}),s=t?.external||r;if(s){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:u}=new URL(n,window.location.href);if(u&&ds(u))throw new Error(`Cannot navigate to a URL with '${u}' protocol.`)}const o=Wg();if(!s&&o){if(t?.replace){if(typeof e=="string"){const{pathname:u,search:c,hash:f}=bi(e);return{path:u,...c&&{query:mi(c)},...f&&{hash:f},replace:!0}}return{...e,replace:!0}}return e}const i=et(),l=ke();if(s)return l._scope.stop(),t?.replace?location.replace(n):location.href=n,o?l.isHydrating?new Promise(()=>{}):!1:Promise.resolve();const a=typeof e=="string"?Pu(e):e;return t?.replace?i.replace(a):i.push(a)};function Ho(e){return gu(e.path||"",e.query||{})+(e.hash||"")}function Pu(e){const t=bi(e);return Bp(qp(t.pathname))+t.search+t.hash}const Au="__nuxt_error",Ds=()=>lc(ke().payload,"error"),hn=e=>{const t=vn(e);try{const n=Ds();ke().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},Ou=async(e={})=>{const t=ke(),n=Ds();t.callHook("app:error:cleared",e),e.redirect&&await et().replace(e.redirect),n.value=void 0},Mu=e=>!!e&&typeof e=="object"&&Au in e,vn=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=Ug(e);return Object.defineProperty(t,Au,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t},Kg=-1,zg=-2,Qg=-3,Gg=-4,Jg=-5,Yg=-6,Xg=-7,Iu=2**32-1,Do=Iu-1;function Zg(e){return!(!Number.isInteger(e)||e<0||e>Do)}function em(e){return!(!Number.isInteger(e)||e<0||e>Iu)}function tm(e){return Uint8Array.fromBase64(e).buffer}function nm(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function rm(e){const t=atob(e),n=t.length,r=new Uint8Array(n);for(let s=0;s<n;s++)r[s]=t.charCodeAt(s);return r.buffer}const sm=typeof Uint8Array.fromBase64=="function",om=typeof process=="object"&&process.versions?.node!==void 0,im=sm?tm:om?nm:rm;function am(e,t){return lm(JSON.parse(e),t)}function lm(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);let s=null;function o(i,l=!1){if(i===Kg)return;if(i===Qg)return NaN;if(i===Gg)return 1/0;if(i===Jg)return-1/0;if(i===Yg)return-0;if(l||typeof i!="number")throw new Error("Invalid input");if(i in r)return r[i];const a=n[i];if(!a||typeof a!="object")r[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const u=a[0],c=t&&Object.hasOwn(t,u)?t[u]:void 0;if(c){let f=a[1];if(typeof f!="number"&&(f=n.push(a[1])-1),s??=new Set,s.has(f))throw new Error("Invalid circular reference");return s.add(f),r[i]=c(o(f)),s.delete(f),r[i]}switch(u){case"Date":r[i]=new Date(a[1]);break;case"Set":const f=new Set;r[i]=f;for(let p=1;p<a.length;p+=1)f.add(o(a[p]));break;case"Map":const h=new Map;r[i]=h;for(let p=1;p<a.length;p+=2)h.set(o(a[p]),o(a[p+1]));break;case"RegExp":r[i]=new RegExp(a[1],a[2]);break;case"Object":{const p=a[1];if(typeof n[p]=="object"&&n[p][0]!=="BigInt")throw new Error("Invalid input");r[i]=Object(o(p));break}case"BigInt":r[i]=BigInt(a[1]);break;case"null":const d=Object.create(null);r[i]=d;for(let p=1;p<a.length;p+=2){if(a[p]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");d[a[p]]=o(a[p+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(n[a[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const p=globalThis[u],g=o(a[1]);r[i]=a[2]!==void 0?new p(g,a[2],a[3]):new p(g);break}case"ArrayBuffer":{const p=a[1];if(typeof p!="string")throw new Error("Invalid ArrayBuffer encoding");const g=im(p);r[i]=g;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const p=u.slice(9);r[i]=Temporal[p].from(a[1]);break}case"URL":{const p=new URL(a[1]);r[i]=p;break}case"URLSearchParams":{const p=new URLSearchParams(a[1]);r[i]=p;break}default:throw new Error(`Unknown type ${u}`)}}else if(a[0]===Xg){const u=a[1];if(!em(u))throw new Error("Invalid input");const c=[];r[i]=c,c[Do]=void 0,delete c[Do];for(let f=2;f<a.length;f+=2){const h=a[f];if(!Zg(h)||h>=u)throw new Error("Invalid input");c[h]=o(a[f+1])}c.length=u}else{const u=new Array(a.length);r[i]=u;for(let c=0;c<a.length;c+=1){const f=a[c];f!==zg&&(u[c]=o(f))}}else{const u={};r[i]=u;for(const c of Object.keys(a)){if(c==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const f=a[c];u[c]=o(f)}}return r[i]}return o(0)}const cm=new Set(["link","style","script","noscript"]),um=new Set(["title","titleTemplate","script","style","noscript"]),$o=new Set(["base","meta","link","style","script","noscript"]),fm=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),dm=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),hm=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),pm=new Set(["templateParams","htmlAttrs","bodyAttrs"]),gm=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),mm=["name","property","http-equiv"],ym=new Set(["viewport","description","keywords","robots"]);function Lu(e){const t=e.split(":");return t.length?gm.has(t[1]):!1}function Uo(e){const{props:t,tag:n}=e;if(dm.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(n==="link"&&t.rel==="alternate"){if(t.hreflang)return`alternate:${t.hreflang}`;if(t.type)return`alternate:${t.type}:${t.href||""}`}if(t.charset)return"charset";if(e.tag==="meta"){for(const r of mm)if(t[r]!==void 0){const s=t[r],o=s&&typeof s=="string"&&s.includes(":"),i=s&&ym.has(s),a=!(o||i)&&e.key?`:key:${e.key}`:"";return`${n}:${s}${a}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(n==="link"&&t.rel==="alternate")return`alternate:${t.href||""}`;if(um.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function Nu(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,s])=>`${r}:${String(s)}`).join(",")}`}function Bo(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());const s=t?t(n,e):e;if(Array.isArray(s))return s.map(o=>Bo(o,t));if(s?.constructor===Object){const o={};for(const i of Object.keys(s))o[i]=Bo(s[i],t,i);return o}return s}function bm(e,t){const n=e==="style"?new Map:new Set;function r(s){if(s==null||s===void 0)return;const o=String(s).trim();if(o)if(e==="style"){const[i,...l]=o.split(":").map(a=>a?a.trim():"");i&&l.length&&n.set(i,l.join(":"))}else o.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(s=>r(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,o])=>{o&&o!=="false"&&(e==="style"?n.set(String(s).trim(),String(o)):r(s))}),n}function Fu(e,t){if(e.props=e.props||{},!t)return e;if(e.tag==="templateParams")return e.props=t,e;const n=$o.has(e.tag)||e.tag==="htmlAttrs"||e.tag==="bodyAttrs";return Object.entries(t).forEach(([r,s])=>{if(r==="__proto__"||r==="constructor"||r==="prototype")return;if(s===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=bm(r,s);return}if(hm.has(r)){if((r==="textContent"||r==="innerHTML")&&typeof s=="object"){let u=t.type;if(t.type||(u="application/json"),!u?.endsWith("json")&&u!=="speculationrules")return;t.type=u,e.props.type=u,e[r]=JSON.stringify(s)}else e[r]=s;return}const o=r.startsWith("data-"),i=n&&!o?r.toLowerCase():r,l=String(s),a=e.tag==="meta"&&i==="content";l==="true"||l===""?e.props[i]=o||a?l:!0:!s&&o&&l==="false"?e.props[i]="false":s!==void 0&&(e.props[i]=s)}),e}function vm(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=Fu({tag:e,props:{}},n);return r.key&&cm.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function wm(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(s,o)=>{for(let i=0;i<t.length;i++)o=t[i](s,o);return o};e=n(void 0,e);const r=[];return e=Bo(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(vm(s,i))}),r.flat()}const Oa=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Ma={base:-10,title:10},_m={critical:-8,high:-1,low:2},Ia={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},Sm=/@import/,er=e=>e===""||e===!0;function Em(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=_m[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Ia;if(t.tag in Ma)n=Ma[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(n=Ia.meta[o])}else if(t.tag==="link"&&t.props.rel)n=s.link[t.props.rel];else if(t.tag==="script"){const o=String(t.props.type);er(t.props.async)?n=s.script.async:t.props.src&&!er(t.props.defer)&&!er(t.props.async)&&o!=="module"&&!o.endsWith("json")||t.innerHTML&&!o.endsWith("json")?n=s.script.sync:(er(t.props.defer)&&t.props.src&&!er(t.props.async)||o==="module")&&(n=s.script.defer)}else t.tag==="style"&&(n=t.innerHTML&&Sm.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function La(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function xm(e={}){const t=xu();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,o=new Set,i={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:l=>La(i,l),push(l,a){const u={...a||{}};delete u.head;const c=u._index??i._entryCount++,f={_i:c,input:l,options:u},h={_poll(d=!1){i.dirty=!0,!d&&o.add(c),t.callHook("entries:updated",i)},dispose(){r.delete(c)&&i.invalidate()},patch(d){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(f.input=d,r.set(c,f),h._poll())}};return h.patch(l),h},async resolveTags(){const l={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",l);o.size;){const h=o.values().next().value;o.delete(h);const d=r.get(h);if(d){const p={tags:wm(d.input,e.propResolvers||[]).map(g=>Object.assign(g,d.options)),entry:d};await t.callHook("entries:normalize",p),d._tags=p.tags.map((g,E)=>(g._w=Em(i,g),g._p=(d._i<<10)+E,g._d=Uo(g),g._d||(g._h=Nu(g)),g))}}let a=!1;l.entries.flatMap(h=>(h._tags||[]).map(d=>({...d,props:{...d.props}}))).sort(Oa).reduce((h,d)=>{const p=d._d||d._h;if(!h.has(p))return h.set(p,d);const g=h.get(p);if((d?.tagDuplicateStrategy||(pm.has(d.tag)?"merge":null)||(d.key&&d.key===g.key?"merge":null))==="merge"){const S={...g.props};Object.entries(d.props).forEach(([_,m])=>S[_]=_==="style"?new Map([...g.props.style||new Map,...m]):_==="class"?new Set([...g.props.class||new Set,...m]):m),h.set(p,{...d,props:S})}else d._p>>10===g._p>>10&&d.tag==="meta"&&Lu(p)?(h.set(p,Object.assign([...Array.isArray(g)?g:[g],d],d)),a=!0):(d._w===g._w?d._p>g._p:d?._w<g?._w)&&h.set(p,d);return h},l.tagMap);const u=l.tagMap.get("title"),c=l.tagMap.get("titleTemplate");if(i._title=u?.textContent,c){const h=c?.textContent;if(i._titleTemplate=h,h){let d=typeof h=="function"?h(u?.textContent):h;typeof d=="string"&&!i.plugins.has("template-params")&&(d=d.replace("%s",u?.textContent||"")),u?d===null?l.tagMap.delete("title"):l.tagMap.set("title",{...u,textContent:d}):(c.tag="title",c.textContent=d)}}l.tags=Array.from(l.tagMap.values()),a&&(l.tags=l.tags.flat().sort(Oa)),await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l);const f=[];for(const h of l.tags){const{innerHTML:d,tag:p,props:g}=h;if(fm.has(p)&&!(Object.keys(g).length===0&&!h.innerHTML&&!h.textContent)&&!(p==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(p==="script"&&d){if(String(g.type).endsWith("json")){const E=typeof d=="string"?d:JSON.stringify(d);h.innerHTML=E.replace(/</g,"\\u003C")}else typeof d=="string"&&(h.innerHTML=d.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));h._d=Uo(h)}f.push(h)}}return f},invalidate(){for(const l of r.values())o.add(l._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(l=>La(i,l)),i.hooks.callHook("init",i),e.init?.forEach(l=>l&&i.push(l)),i}const km="usehead";function Rm(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(km,e)}}.install}const Tm=(e,t)=>[],Cm=e=>_i({},...Tm("",typeof e=="string"?e.toLowerCase():e).map(t=>t.data).reverse()),Pm=Cm;let Gr;function Am(){let e;return e=$fetch(wi(`builds/meta/${js().app.buildId}.json`),{responseType:"json"}).then(t=>{if(!t||typeof t!="object"||!Array.isArray(t.prerendered))throw new Error("[nuxt] Received malformed app manifest. Ensure that `builds/meta/*.json` is served as JSON by your hosting/proxy and not rewritten to an HTML fallback.");return t}),Gr=e,e.catch(t=>{Gr===e&&(Gr=void 0),console.error("[nuxt] Error fetching app manifest.",t)}),e}function Om(){return Gr||Am()}function ju(e){const t=typeof e=="string"?e:e.path;try{return Pm(t.toLowerCase())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Mm(e){return null}let cn=null;async function Im(){if(cn)return cn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Lm(e.textContent||""),n=e.dataset.src?await Mm(e.dataset.src):void 0;return cn={...t,...n,...window.__NUXT__},cn.config?.public&&(cn.config.public=tn(cn.config.public)),cn}async function Lm(e){return await am(e,ke()._payloadRevivers)}function Nm(e,t){ke()._payloadRevivers[e]=t}function Na(e){try{return JSON.parse(e)}catch{return e}}const Fm=[["NuxtError",e=>vn(e)],["EmptyShallowRef",e=>_n(e==="_"?void 0:e==="0n"?BigInt(0):Na(e))],["EmptyRef",e=>wn(e==="_"?void 0:e==="0n"?BigInt(0):Na(e))],["ShallowRef",e=>_n(e)],["ShallowReactive",e=>Et(e)],["Ref",e=>wn(e)],["Reactive",e=>tn(e)]],jm=Bt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of Fm)Nm(r,s);Object.assign(e.payload,([t,n]=Dn(()=>e.runWithContext(Im)),t=await t,n(),t)),delete window.__NUXT__}});async function Ei(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{const o=new Map,i=new Promise(d=>{e.resolveTags().then(p=>{d(p.map(g=>{const E=o.get(g._d)||0,S={tag:g,id:(E?`${g._d}:${E}`:g._d)||g._h,shouldRender:!0};return g._d&&Lu(g._d)&&o.set(g._d,E+1),S}))})});let l=e._dom;if(!l){l={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const d of["body","head"]){const p=n[d]?.children;for(const g of p){const E=g.tagName.toLowerCase();if(!$o.has(E))continue;const S=Fu({tag:E,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((_,m)=>(_[m]=g.getAttribute(m),_),{})||{}});if(S.key=g.getAttribute("data-hid")||void 0,S._d=Uo(S)||Nu(S),l.elMap.has(S._d)){let _=1,m=S._d;for(;l.elMap.has(m);)m=`${S._d}:${_++}`;l.elMap.set(m,g)}else l.elMap.set(S._d,g)}}}l.pendingSideEffects={...l.sideEffects},l.sideEffects={};function a(d,p,g){const E=`${d}:${p}`;l.sideEffects[E]=g,delete l.pendingSideEffects[E]}function u({id:d,$el:p,tag:g}){const E=g.tag.endsWith("Attrs");l.elMap.set(d,p),E||(g.textContent&&g.textContent!==p.textContent&&(p.textContent=g.textContent),g.innerHTML&&g.innerHTML!==p.innerHTML&&(p.innerHTML=g.innerHTML),a(d,"el",()=>{p?.remove(),l.elMap.delete(d)}));for(const S in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,S))continue;const _=g.props[S];if(S.startsWith("on")&&typeof _=="function"){const b=p?.dataset;if(b&&b[`${S}fired`]){const w=S.slice(0,-5);_.call(p,new Event(w.substring(2)))}p.getAttribute(`data-${S}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:p).addEventListener(S.substring(2),_.bind(p)),p.setAttribute(`data-${S}`,""));continue}const m=`attr:${S}`;if(S==="class"){if(!_)continue;for(const b of _)E&&a(d,`${m}:${b}`,()=>p.classList.remove(b)),!p.classList.contains(b)&&p.classList.add(b)}else if(S==="style"){if(!_)continue;for(const[b,w]of _)a(d,`${m}:${b}`,()=>{p.style.removeProperty(b)}),p.style.setProperty(b,w)}else _!==!1&&_!==null&&(p.getAttribute(S)!==_&&p.setAttribute(S,_===!0?"":String(_)),E&&a(d,m,()=>p.removeAttribute(S)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await i;for(const d of h){const{tag:p,shouldRender:g,id:E}=d;if(g){if(p.tag==="title"){n.title=p.textContent,a("title","",()=>n.title=l.title);continue}d.$el=d.$el||l.elMap.get(E),d.$el?u(d):$o.has(p.tag)&&c.push(d)}}for(const d of c){const p=d.tag.tagPosition||"head";d.$el=n.createElement(d.tag.tag),u(d),f[p]=f[p]||n.createDocumentFragment(),f[p].appendChild(d.$el)}for(const d of h)await e.hooks.callHook("dom:renderTag",d,n,a);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const d in l.pendingSideEffects)l.pendingSideEffects[d]();e._dom=l,await e.hooks.callHook("dom:rendered",{renders:h}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Hm(e={}){const t=e.domOptions?.render||Ei;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return xm({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function Dm(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function $m(e={}){const t=Hm({domOptions:{render:Dm(()=>Ei(t),n=>setTimeout(n,0))},...e});return t.install=Rm(t),t}const Um={disableDefaults:!0},Bm=Bt({name:"nuxt:head",enforce:"pre",setup(e){const t=$m(Um);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Ei(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r);const s=t.push.bind(t);t.push=((o,i)=>{const l=s(o,i),a=l.dispose.bind(l);return l.dispose=()=>{const u=e["~transitionPromise"];u?u.then(a):a()},l})}}});const Cn=typeof document<"u";function Hu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function qm(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Hu(e.default)}const he=Object.assign;function so(e,t){const n={};for(const r in t){const s=t[r];n[r]=gt(s)?s.map(e):e(s)}return n}const hr=()=>{},gt=Array.isArray;function Fa(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Du=Symbol("");function Wn(e,t){return he(new Error,{type:e,[Du]:!0},t)}function Ot(e,t){return e instanceof Error&&Du in e&&(t==null||!!(e.type&t))}const Vm=Symbol(""),ja=Symbol(""),xi=Symbol(""),$u=Symbol(""),qo=Symbol("");const Uu=/#/g,Wm=/&/g,Km=/\//g,zm=/=/g,Qm=/\?/g,Bu=/\+/g,Gm=/%5B/g,Jm=/%5D/g,qu=/%5E/g,Ym=/%60/g,Vu=/%7B/g,Xm=/%7C/g,Wu=/%7D/g,Zm=/%20/g;function ki(e){return e==null?"":encodeURI(""+e).replace(Xm,"|").replace(Gm,"[").replace(Jm,"]")}function ey(e){return ki(e).replace(Vu,"{").replace(Wu,"}").replace(qu,"^")}function Vo(e){return ki(e).replace(Bu,"%2B").replace(Zm,"+").replace(Uu,"%23").replace(Wm,"%26").replace(Ym,"`").replace(Vu,"{").replace(Wu,"}").replace(qu,"^")}function ty(e){return Vo(e).replace(zm,"%3D")}function ny(e){return ki(e).replace(Uu,"%23").replace(Qm,"%3F")}function ry(e){return ny(e).replace(Km,"%2F")}function gs(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const sy=/\/$/,oy=e=>e.replace(sy,"");function oo(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(r=t.slice(0,a),o=t.slice(a,l>0?l:t.length),s=e(o.slice(1))),l>=0&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=cy(r??t,n),{fullPath:r+o+i,path:r,query:s,hash:gs(i)}}function iy(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ha(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ay(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Kn(t.matched[r],n.matched[s])&&Ku(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Kn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ku(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ly(e[n],t[n]))return!1;return!0}function ly(e,t){return gt(e)?Da(e,t):gt(t)?Da(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Da(e,t){return gt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function cy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i<r.length;i++)if(l=r[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const rt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function uy(e){if(!e)if(Cn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),oy(e)}const fy=/^[^#]+#/;function dy(e,t){return e.replace(fy,"#")+t}function hy(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const $s=()=>({left:window.scrollX,top:window.scrollY});function py(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=hy(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $a(e,t){return(history.state?history.state.position-t:-1)+e}const Wo=new Map;function gy(e,t){Wo.set(e,t)}function my(e){const t=Wo.get(e);return Wo.delete(e),t}function yy(e){return typeof e=="string"||e&&typeof e=="object"}function zu(e){return typeof e=="string"||typeof e=="symbol"}function by(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(Bu," "),o=s.indexOf("="),i=gs(o<0?s:s.slice(0,o)),l=o<0?null:gs(s.slice(o+1));if(i in t){let a=t[i];gt(a)||(a=t[i]=[a]),a.push(l)}else t[i]=l}return t}function Ua(e){let t="";for(let n in e){const r=e[n];if(n=ty(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(gt(r)?r.map(s=>s&&Vo(s)):[r&&Vo(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function vy(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=gt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}function tr(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Qt(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,a)=>{const u=h=>{h===!1?a(Wn(4,{from:n,to:t})):h instanceof Error?a(h):yy(h)?a(Wn(2,{from:t,to:h})):(i&&r.enterCallbacks[s]===i&&typeof h=="function"&&i.push(h),l())},c=o(()=>e.call(r&&r.instances[s],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(h=>a(h))})}function io(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Hu(a)){const u=(a.__vccOpts||a)[t];u&&o.push(Qt(u,n,r,i,l,s))}else{let u=a();o.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const f=qm(c)?c.default:c;i.mods[l]=c,i.components[l]=f;const h=(f.__vccOpts||f)[t];return h&&Qt(h,n,r,i,l,s)()}))}}return o}function wy(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(u=>Kn(u,l))?r.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(u=>Kn(u,a))||s.push(a))}return[n,r,s]}let _y=()=>location.protocol+"//"+location.host;function Qu(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let i=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(i);return l[0]!=="/"&&(l="/"+l),Ha(l,"")}return Ha(n,e)+r+s}function Sy(e,t,n,r){let s=[],o=[],i=null;const l=({state:h})=>{const d=Qu(e,location),p=n.value,g=t.value;let E=0;if(h){if(n.value=d,t.value=h,i&&i===p){i=null;return}E=g?h.position-g.position:0}else r(d);s.forEach(S=>{S(n.value,p,{delta:E,type:"pop",direction:E?E>0?"forward":"back":""})})};function a(){i=n.value}function u(h){s.push(h);const d=()=>{const p=s.indexOf(h);p>-1&&s.splice(p,1)};return o.push(d),d}function c(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(he({},h.state,{scroll:$s()}),"")}}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:a,listen:u,destroy:f}}function Ba(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?$s():null}}function Ey(e){const{history:t,location:n}=window,r={value:Qu(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,u,c){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:_y()+e+a;try{t[c?"replaceState":"pushState"](u,"",h),s.value=u}catch(d){console.error(d),n[c?"replace":"assign"](h)}}function i(a,u){o(a,he({},t.state,Ba(s.value.back,a,s.value.forward,!0),u,{position:s.value.position}),!0),r.value=a}function l(a,u){const c=he({},s.value,t.state,{forward:a,scroll:$s()});o(c.current,c,!0),o(a,he({},Ba(r.value,a,null),{position:c.position+1},u),!1),r.value=a}return{location:r,state:s,push:l,replace:i}}function xy(e){e=uy(e);const t=Ey(e),n=Sy(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=he({location:"",base:e,go:r,createHref:dy.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}const ky={type:0,value:""},Ry=/[a-zA-Z0-9_]/;function Ty(e){if(!e)return[[]];if(e==="/")return[[ky]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${n})/"${u}": ${d}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,a,u="",c="";function f(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=a}for(;l<e.length;)switch(a=e[l++],n){case 0:a==="\\"?(r=n,n=4):a==="/"?(u&&f(),i()):a===":"?(f(),n=1):h();break;case 4:h(),n=r;break;case 1:a==="("?n=2:Ry.test(a)?h():(f(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case 2:a===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+a:n=3:c+=a;break;case 3:f(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--,c="";break;default:t("Unknown state");break}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),i(),s}const qa="[^/]+?",Cy={sensitive:!1,strict:!1,start:!0,end:!0},Py=/[.+*?^${}()[\]/\\]/g;function Ay(e,t){const n=he({},Cy,t),r=[];let s=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let f=0;f<u.length;f++){const h=u[f];let d=40+(n.sensitive?.25:0);if(h.type===0)f||(s+="/"),s+=h.value.replace(Py,"\\$&"),d+=40;else if(h.type===1){const{value:p,repeatable:g,optional:E,regexp:S}=h;o.push({name:p,repeatable:g,optional:E});const _=S||qa;if(_!==qa){d+=10;try{new RegExp(`(${_})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${p}" (${_}): `+b.message)}}let m=g?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;f||(m=E&&u.length<2?`(?:/${m})`:"/"+m),E&&(m+="?"),s+=m,d+=20,E&&(d+=-8),g&&(d+=-20),_===".*"&&(d+=-50)}c.push(d)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function l(u){const c=u.match(i),f={};if(!c)return null;for(let h=1;h<c.length;h++){const d=c[h]||"",p=o[h-1];f[p.name]=d&&p.repeatable?d.split("/"):d}return f}function a(u){let c="",f=!1;for(const h of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const d of h)if(d.type===0)c+=d.value;else if(d.type===1){const{value:p,repeatable:g,optional:E}=d,S=p in u?u[p]:"";if(gt(S)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const _=gt(S)?S.join("/"):S;if(!_)if(E)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);c+=_}}return c||"/"}return{re:i,score:r,keys:o,parse:l,stringify:a}}function Oy(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Gu(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const o=Oy(r[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-r.length)===1){if(Va(r))return 1;if(Va(s))return-1}return s.length-r.length}function Va(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const My={strict:!1,end:!0,sensitive:!1};function Iy(e,t,n){const r=Ay(Ty(e.path),n),s=he(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Ly(e,t){const n=[],r=new Map;t=Fa(My,t);function s(f){return r.get(f)}function o(f,h,d){const p=!d,g=Ka(f);g.aliasOf=d&&d.record;const E=Fa(t,f),S=[g];if("alias"in f){const b=typeof f.alias=="string"?[f.alias]:f.alias;for(const w of b)S.push(Ka(he({},g,{components:d?d.record.components:g.components,path:w,aliasOf:d?d.record:g})))}let _,m;for(const b of S){const{path:w}=b;if(h&&w[0]!=="/"){const x=h.record.path,T=x[x.length-1]==="/"?"":"/";b.path=h.record.path+(w&&T+w)}if(_=Iy(b,h,E),d?d.alias.push(_):(m=m||_,m!==_&&m.alias.push(_),p&&f.name&&!za(_)&&i(f.name)),Ju(_)&&a(_),g.children){const x=g.children;for(let T=0;T<x.length;T++)o(x[T],_,d&&d.children[T])}d=d||_}return m?()=>{i(m)}:hr}function i(f){if(zu(f)){const h=r.get(f);h&&(r.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&r.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function a(f){const h=jy(f,n);n.splice(h,0,f),f.record.name&&!za(f)&&r.set(f.record.name,f)}function u(f,h){let d,p={},g,E;if("name"in f&&f.name){if(d=r.get(f.name),!d)throw Wn(1,{location:f});E=d.record.name,p=he(Wa(h.params,d.keys.filter(m=>!m.optional).concat(d.parent?d.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),f.params&&Wa(f.params,d.keys.map(m=>m.name))),g=d.stringify(p)}else if(f.path!=null)g=f.path,d=n.find(m=>m.re.test(g)),d&&(p=d.parse(g),E=d.record.name,d.keys.forEach(m=>{m.optional&&!p[m.name]&&delete p[m.name]}));else{if(d=h.name?r.get(h.name):n.find(m=>m.re.test(h.path)),!d)throw Wn(1,{location:f,currentLocation:h});E=d.record.name,p=he({},h.params,f.params),g=d.stringify(p)}const S=[];let _=d;for(;_;)S.unshift(_.record),_=_.parent;return{name:E,path:g,params:p,matched:S,meta:Fy(S)}}e.forEach(f=>o(f));function c(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:c,getRoutes:l,getRecordMatcher:s}}function Wa(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ka(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ny(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ny(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function za(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Fy(e){return e.reduce((t,n)=>he(t,n.meta),{})}function jy(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;Gu(e,t[o])<0?r=o:n=o+1}const s=Hy(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function Hy(e){let t=e;for(;t=t.parent;)if(Ju(t)&&Gu(e,t)===0)return t}function Ju({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Qa(e){const t=ot(xi),n=ot($u),r=Te(()=>{const a=oe(e.to);return t.resolve(a)}),s=Te(()=>{const{matched:a}=r.value,{length:u}=a,c=a[u-1],f=n.matched;if(!c||!f.length)return-1;const h=f.findIndex(Kn.bind(null,c));if(h>-1)return h;const d=Ga(a[u-2]);return u>1&&Ga(c)===d&&f[f.length-1].path!==d?f.findIndex(Kn.bind(null,a[u-2])):h}),o=Te(()=>s.value>-1&&By(n.params,r.value.params)),i=Te(()=>s.value>-1&&s.value===n.matched.length-1&&Ku(n.params,r.value.params));function l(a={}){if(Uy(a)){const u=t[oe(e.replace)?"replace":"push"](oe(e.to)).catch(hr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Te(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}function Dy(e){return e.length===1?e[0]:e}const $y=nn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Qa,setup(e,{slots:t}){const n=tn(Qa(e)),{options:r}=ot(xi),s=Te(()=>({[Ja(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ja(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Dy(t.default(n));return e.custom?o:Qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}});function Uy(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function By(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!gt(s)||s.length!==r.length||r.some((o,i)=>o.valueOf()!==s[i].valueOf()))return!1}return!0}function Ga(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ja=(e,t,n)=>e??t??n,qy=nn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ot(qo),s=Te(()=>e.route||r.value),o=ot(ja,0),i=Te(()=>{let u=oe(o);const{matched:c}=s.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),l=Te(()=>s.value.matched[i.value]);In(ja,Te(()=>i.value+1)),In(Vm,l),In(qo,s);const a=wn();return Ln(()=>[a.value,l.value,e.name],([u,c,f],[h,d,p])=>{c&&(c.instances[f]=u,d&&d!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=d.leaveGuards),c.updateGuards.size||(c.updateGuards=d.updateGuards))),u&&c&&(!d||!Kn(c,d)||!h)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,f=l.value,h=f&&f.components[c];if(!h)return Ya(n.default,{Component:h,route:u});const d=f.props[c],p=d?d===!0?u.params:typeof d=="function"?d(u):d:null,E=Qe(h,he({},p,t,{onVnodeUnmounted:S=>{S.component.isUnmounted&&(f.instances[c]=null)},ref:a}));return Ya(n.default,{Component:E,route:u})||E}}});function Ya(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Yu=qy;function Vy(e){const t=Ly(e.routes,e),n=e.parseQuery||by,r=e.stringifyQuery||Ua,s=e.history,o=tr(),i=tr(),l=tr(),a=_n(rt);let u=rt;Cn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=so.bind(null,C=>""+C),f=so.bind(null,ry),h=so.bind(null,gs);function d(C,W){let N,J;return zu(C)?(N=t.getRecordMatcher(C),J=W):J=C,t.addRoute(J,N)}function p(C){const W=t.getRecordMatcher(C);W&&t.removeRoute(W)}function g(){return t.getRoutes().map(C=>C.record)}function E(C){return!!t.getRecordMatcher(C)}function S(C,W){if(W=he({},W||a.value),typeof C=="string"){const v=oo(n,C,W.path),k=t.resolve({path:v.path},W),M=s.createHref(v.fullPath);return he(v,k,{params:h(k.params),redirectedFrom:void 0,href:M})}let N;if(C.path!=null)N=he({},C,{path:oo(n,C.path,W.path).path});else{const v=he({},C.params);for(const k in v)v[k]==null&&delete v[k];N=he({},C,{params:f(v)}),W.params=f(W.params)}const J=t.resolve(N,W),se=C.hash||"";J.params=c(h(J.params));const ge=iy(r,he({},C,{hash:ey(se),path:J.path})),y=s.createHref(ge);return he({fullPath:ge,hash:se,query:r===Ua?vy(C.query):C.query||{}},J,{redirectedFrom:void 0,href:y})}function _(C){return typeof C=="string"?oo(n,C,a.value.path):he({},C)}function m(C,W){if(u!==C)return Wn(8,{from:W,to:C})}function b(C){return T(C)}function w(C){return b(he(_(C),{replace:!0}))}function x(C,W){const N=C.matched[C.matched.length-1];if(N&&N.redirect){const{redirect:J}=N;let se=typeof J=="function"?J(C,W):J;return typeof se=="string"&&(se=se.includes("?")||se.includes("#")?se=_(se):{path:se},se.params={}),he({query:C.query,hash:C.hash,params:se.path!=null?{}:C.params},se)}}function T(C,W){const N=u=S(C),J=a.value,se=C.state,ge=C.force,y=C.replace===!0,v=x(N,J);if(v)return T(he(_(v),{state:typeof v=="object"?he({},se,v.state):se,force:ge,replace:y}),W||N);const k=N;k.redirectedFrom=W;let M;return!ge&&ay(r,J,N)&&(M=Wn(16,{to:k,from:J}),fe(J,J,!0,!1)),(M?Promise.resolve(M):F(k,J)).catch(P=>Ot(P)?Ot(P,2)?P:H(P):Z(P,k,J)).then(P=>{if(P){if(Ot(P,2))return T(he({replace:y},_(P.to),{state:typeof P.to=="object"?he({},se,P.to.state):se,force:ge}),W||k)}else P=L(k,J,!0,y,se);return U(k,J,P),P})}function R(C,W){const N=m(C,W);return N?Promise.reject(N):Promise.resolve()}function A(C){const W=mt.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(C):C()}function F(C,W){let N;const[J,se,ge]=wy(C,W);N=io(J.reverse(),"beforeRouteLeave",C,W);for(const v of J)v.leaveGuards.forEach(k=>{N.push(Qt(k,C,W))});const y=R.bind(null,C,W);return N.push(y),me(N).then(()=>{N=[];for(const v of o.list())N.push(Qt(v,C,W));return N.push(y),me(N)}).then(()=>{N=io(se,"beforeRouteUpdate",C,W);for(const v of se)v.updateGuards.forEach(k=>{N.push(Qt(k,C,W))});return N.push(y),me(N)}).then(()=>{N=[];for(const v of ge)if(v.beforeEnter)if(gt(v.beforeEnter))for(const k of v.beforeEnter)N.push(Qt(k,C,W));else N.push(Qt(v.beforeEnter,C,W));return N.push(y),me(N)}).then(()=>(C.matched.forEach(v=>v.enterCallbacks={}),N=io(ge,"beforeRouteEnter",C,W,A),N.push(y),me(N))).then(()=>{N=[];for(const v of i.list())N.push(Qt(v,C,W));return N.push(y),me(N)}).catch(v=>Ot(v,8)?v:Promise.reject(v))}function U(C,W,N){l.list().forEach(J=>A(()=>J(C,W,N)))}function L(C,W,N,J,se){const ge=m(C,W);if(ge)return ge;const y=W===rt,v=Cn?history.state:{};N&&(J||y?s.replace(C.fullPath,he({scroll:y&&v&&v.scroll},se)):s.push(C.fullPath,se)),a.value=C,fe(C,W,N,y),H()}let q;function Q(){q||(q=s.listen((C,W,N)=>{if(!_e.listening)return;const J=S(C),se=x(J,_e.currentRoute.value);if(se){T(he(se,{replace:!0,force:!0}),J).catch(hr);return}u=J;const ge=a.value;Cn&&gy($a(ge.fullPath,N.delta),$s()),F(J,ge).catch(y=>Ot(y,12)?y:Ot(y,2)?(T(he(_(y.to),{force:!0}),J).then(v=>{Ot(v,20)&&!N.delta&&N.type==="pop"&&s.go(-1,!1)}).catch(hr),Promise.reject()):(N.delta&&s.go(-N.delta,!1),Z(y,J,ge))).then(y=>{y=y||L(J,ge,!1),y&&(N.delta&&!Ot(y,8)?s.go(-N.delta,!1):N.type==="pop"&&Ot(y,20)&&s.go(-1,!1)),U(J,ge,y)}).catch(hr)}))}let te=tr(),j=tr(),X;function Z(C,W,N){H(C);const J=j.list();return J.length?J.forEach(se=>se(C,W,N)):console.error(C),Promise.reject(C)}function Se(){return X&&a.value!==rt?Promise.resolve():new Promise((C,W)=>{te.add([C,W])})}function H(C){return X||(X=!C,Q(),te.list().forEach(([W,N])=>C?N(C):W()),te.reset()),C}function fe(C,W,N,J){const{scrollBehavior:se}=e;if(!Cn||!se)return Promise.resolve();const ge=!N&&my($a(C.fullPath,0))||(J||!N)&&history.state&&history.state.scroll||null;return Sn().then(()=>se(C,W,ge)).then(y=>y&&py(y)).catch(y=>Z(y,C,W))}const Ne=C=>s.go(C);let Ct;const mt=new Set,_e={currentRoute:a,listening:!0,addRoute:d,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:g,resolve:S,options:e,push:b,replace:w,go:Ne,back:()=>Ne(-1),forward:()=>Ne(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:j.add,isReady:Se,install(C){C.component("RouterLink",$y),C.component("RouterView",Yu),C.config.globalProperties.$router=_e,Object.defineProperty(C.config.globalProperties,"$route",{enumerable:!0,get:()=>oe(a)}),Cn&&!Ct&&a.value===rt&&(Ct=!0,b(s.location).catch(J=>{}));const W={};for(const J in rt)Object.defineProperty(W,J,{get:()=>a.value[J],enumerable:!0});C.provide(xi,_e),C.provide($u,Et(W)),C.provide(qo,a);const N=C.unmount;mt.add(C),C.unmount=function(){mt.delete(C),mt.size<1&&(u=rt,q&&q(),q=null,a.value=rt,Ct=!1,X=!1),N()}}};function me(C){return C.reduce((W,N)=>W.then(()=>A(N)),Promise.resolve())}return _e}const Wy=/(:\w+)\([^)]+\)/g,Ky=/(:\w+)[?+*]/g,zy=/:\w+/g,Qy=(e,t)=>t.path.replace(Wy,"$1").replace(Ky,"$1").replace(zy,n=>e.params[n.slice(1)]?.toString()||""),Ko=(e,t)=>{const n=e.route.matched.find(s=>s.components?.default===e.Component.type),r=t??n?.meta.key??(n&&Qy(e.route,n));return typeof r=="function"?r(e.route):r},Gy=(e,t)=>({default:()=>e?Qe(Vd,e===!0?{}:e,t):t});function Xu(e){return Array.isArray(e)?e:[e]}const Jy="modulepreload",Yy=function(e,t){return new URL(e,t).href},Xa={},nt=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const i=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");s=u(n.map(c=>{if(c=Yy(c,r),c in Xa)return;Xa[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(r)for(let p=i.length-1;p>=0;p--){const g=i[p];if(g.href===c&&(!f||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":Jy,f||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),f)return new Promise((p,g)=>{d.addEventListener("load",p),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return s.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},ao=[{name:"settings-mcp-tokens",path:"/settings/mcp-tokens",component:()=>nt(()=>import("./DdDtdYim.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)},{name:"settings-providers",path:"/settings/providers",component:()=>nt(()=>import("./f8QtLg7g.js"),__vite__mapDeps([5,1,2,6,7,3,4]),import.meta.url)},{name:"settings-sources",path:"/settings/sources",component:()=>nt(()=>import("./bojElwT6.js"),__vite__mapDeps([8,2,6,7,9,1,4]),import.meta.url)},{name:"settings-templates",path:"/settings/templates",component:()=>nt(()=>import("./CFx_Wb7e.js"),__vite__mapDeps([10,1,2,6,7,3,4]),import.meta.url)},{name:"documents-id-diff",path:"/documents/:id()/diff",component:()=>nt(()=>import("./Ckd7UvSj.js"),__vite__mapDeps([11,3,4]),import.meta.url)},{name:"wiki-project-id",path:"/wiki/:project()/:id()",component:()=>nt(()=>import("./DRDlUXmk.js"),__vite__mapDeps([12,9,6,7,3,4,13]),import.meta.url)},{name:"wiki-project",path:"/wiki/:project()",component:()=>nt(()=>import("./Cap3hpB7.js"),__vite__mapDeps([14,15,1,3,4]),import.meta.url)},{name:"documents",path:"/documents",component:()=>nt(()=>import("./CSEkmdhK.js"),__vite__mapDeps([16,1,3,4]),import.meta.url)},{name:"graph",path:"/graph",component:()=>nt(()=>import("./BebqDWPm.js"),__vite__mapDeps([17,7,3,4]),import.meta.url)},{name:"login",path:"/login",component:()=>nt(()=>import("./B5j-AdCY.js"),__vite__mapDeps([18,2,6,7]),import.meta.url)},{name:"wiki",path:"/wiki",component:()=>nt(()=>import("./QFl-TMXl.js"),__vite__mapDeps([19,15,3,4]),import.meta.url)},{name:"index",path:"/",component:()=>nt(()=>import("./BAgZ2ZFT.js"),[],import.meta.url)}],Xy=(e,t)=>({default:()=>e?Qe(zh,e===!0?{}:e,t):t.default?.()}),Zy=/(:\w+)\([^)]+\)/g,eb=/(:\w+)[?+*]/g,tb=/:\w+/g;function Za(e){const t=e?.meta.key??e.path.replace(Zy,"$1").replace(eb,"$1").replace(tb,n=>e.params[n.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function nb(e,t){return e===t||t===rt?!1:Za(e)!==Za(t)?!0:!e.matched.every((r,s)=>r.components&&r.components.default===t.matched[s]?.components?.default)}function el(e){return Array.isArray(e)?e:[e]}function rb(e){const t=[];for(const n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?el(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?el(n.onBeforeLeave):void 0});return _i(...t)}const sb={scrollBehavior(e,t,n){const r=ke(),s=et().options?.scrollBehaviorType??"auto";return e.path.replace(/\/$/,"")===t.path.replace(/\/$/,"")?t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Zu(e.hash),behavior:s}:!1:(typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===rt?tl(e,t,n,s):new Promise(i=>{const l=()=>{requestAnimationFrame(()=>i(tl(e,t,n,s)))};r.hooks.hookOnce("page:loading:end",()=>{const a=r["~transitionPromise"];a?a.then(l):l()})})}};function Zu(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function tl(e,t,n,r){return n||(e.hash?{el:e.hash,top:Zu(e.hash),behavior:nb(e,t)?r:"instant"}:{left:0,top:0})}const ob={hashMode:!1,scrollBehaviorType:"auto"},Vt={...ob,...sb},ib=async(e,t)=>{let n,r;if(!e.meta?.validate)return;const s=([n,r]=Dn(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(s===!0)return;const o=vn({fatal:!0,status:s&&(s.status||s.statusCode)||404,statusText:s&&(s.statusText||s.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),o};var Jr=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};const ab=47;function ef(e){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===ab;)t--;return t===e.length?e:e.slice(0,t)}function lb(e){try{return(ef(new URL(e).pathname)||"/")!=="/"}catch{throw new Jr(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function cb(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Jr(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof Jr?t:new Jr(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function nl(e,t="/api/auth"){if(cb(e),lb(e))return e;const n=ef(e);return!t||t==="/"?n:(t=t.startsWith("/")?t:`/${t}`,`${n}${t}`)}function ub(e,t,n,r,s){if(e)return nl(e,t);if(typeof window<"u"&&window.location)return nl(window.location.origin,t)}const fb={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},db=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,rl={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},hb=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function pb(e){return e instanceof Date&&!isNaN(e.getTime())}function gb(e){const t=hb.exec(e);if(!t)return null;const[,n,r,s,o,i,l,a,u,c,f]=t,h=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(s,10),parseInt(o,10),parseInt(i,10),parseInt(l,10),a?parseInt(a.padEnd(3,"0"),10):0));if(u){const d=(parseInt(c,10)*60+parseInt(f,10))*(u==="+"?-1:1);h.setUTCMinutes(h.getUTCMinutes()+d)}return pb(h)?h:null}function mb(e,t={}){const{strict:n=!1,warnings:r=!1,reviver:s,parseDates:o=!0}=t;if(typeof e!="string")return e;const i=e.trim(),l=i.toLowerCase();if(l.length<=9&&l in rl)return rl[l];if(!db.test(i)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(fb).some(([a,u])=>{const c=u.test(i);return c&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${a} pattern`),c})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(u,c)=>{if(u==="__proto__"||u==="constructor"&&c&&typeof c=="object"&&"prototype"in c){r&&console.warn(`[better-json] Dropping "${u}" key to prevent prototype pollution`);return}if(o&&typeof c=="string"){const f=gb(c);if(f)return f}return s?s(u,c):c})}catch(a){if(n)throw a;return e}}function yb(e,t={strict:!0}){return mb(e,t)}const bb=["javascript:","data:","vbscript:"];function vb(e){let t;try{t=new URL(e)}catch{return!0}return!bb.includes(t.protocol)}const wb={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&vb(e.data.url)&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}};let ft=[],Kt=0;const Yr=4,_b=globalThis.nanostoresGlobal||={epoch:0};let Sb=()=>{for(Kt=0;Kt<ft.length;Kt+=Yr)ft[Kt](ft[Kt+1].value,ft[Kt+2],ft[Kt+3]);ft.length=0};const sl=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},init:e,lc:0,listen(r){return n.lc=t.push(r),()=>{for(let o=Kt+Yr;o<ft.length;)ft[o]===r?ft.splice(o,Yr):o+=Yr;let s=t.indexOf(r);~s&&(t.splice(s,1),--n.lc||n.off())}},notify(r,s){_b.epoch++;let o=!ft.length&&!0;for(let i of t)ft.push(i,n,r,s);o&&Sb()},off(){},set(r){let s=n.value;s!==r&&(n.value=r,n.notify(s))},subscribe(r){let s=n.listen(r);return r(n.value),s},value:e};return n},Eb=2,xb=5,Dr=6,$r=10;let tf=(e,t,n,r)=>(e.events=e.events||{},e.events[n+$r]||(e.events[n+$r]=r(s=>{e.events[n].reduceRight((o,i)=>(i(o),o),{shared:{},...s})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let s=e.events[n],o=s.indexOf(t);s.splice(o,1),s.length||(delete e.events[n],e.events[n+$r](),delete e.events[n+$r])}),kb=(e,t)=>tf(e,t,Eb,n=>{let r=e.set,s=e.setKey;return e.setKey&&(e.setKey=(o,i)=>{let l;if(n({abort:()=>{l=!0},changed:o,newValue:{...e.value,[o]:i}}),!l)return s(o,i)}),e.set=o=>{let i;if(n({abort:()=>{i=!0},newValue:o}),!i)return r(o)},()=>{e.set=r,e.setKey=s}});const Rb=1e3;let Tb=(e,t)=>tf(e,r=>{let s=t(r);s&&e.events[Dr].push(s)},xb,r=>{let s=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,r()),s(...i));let o=e.off;return e.events[Dr]=[],e.off=()=>{o(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[Dr])i();e.events[Dr]=[]}},Rb)},()=>{e.listen=s,e.off=o}});function ol(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function ms(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!ms(e[n],t[n]))return!1;return!0}if(ol(e)&&ol(t)){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n)if(!(s in t)||!ms(e[s],t[s]))return!1;return!0}return!1}function Cb(e,t){return kb(e,({newValue:n,abort:r})=>{t(e.value,n)&&r()})}const lo=Symbol.for("better-auth:broadcast-channel"),Pb=()=>Math.floor(Date.now()/1e3);var Ab=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:Pb()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const n=JSON.parse(t.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(r=>r(n))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function co(e="better-auth.message"){return globalThis[lo]||(globalThis[lo]=new Ab(e)),globalThis[lo]}const uo=Symbol.for("better-auth:focus-manager");var Ob=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function il(){return globalThis[uo]||(globalThis[uo]=new Ob),globalThis[uo]}const fo=Symbol.for("better-auth:online-manager");var Mb=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function ho(){return globalThis[fo]||(globalThis[fo]=new Mb),globalThis[fo]}const po=()=>Math.floor(Date.now()/1e3),Ib=5;function Lb(e){const{fetchSession:t,shouldPollSession:n=()=>!0,sessionSignal:r,options:s={}}=e,o=s.sessionOptions?.refetchInterval??0,i=s.sessionOptions?.refetchOnWindowFocus??!0,l=s.sessionOptions?.refetchWhenOffline??!1,a={isInitialized:!1,lastSessionRequest:0},u=()=>l||ho().isOnline,c=m=>{if(u()){if(m?.event==="storage"){t();return}if(m?.event==="poll"){a.lastSessionRequest=po(),t();return}if(m?.event==="visibilitychange"){if(po()-a.lastSessionRequest<Ib)return;a.lastSessionRequest=po(),t();return}t()}},f=m=>{co().post({event:"session",data:{trigger:m},clientId:Math.random().toString(36).substring(7)})},h=()=>{o&&o>0&&(a.pollInterval=setInterval(()=>{n()&&c({event:"poll"})},o*1e3))},d=()=>{a.unsubscribeBroadcast=co().subscribe(()=>{c({event:"storage"})})},p=()=>{i&&(a.unsubscribeFocus=il().subscribe(()=>{c({event:"visibilitychange"})}))},g=()=>{a.unsubscribeOnline=ho().subscribe(m=>{m&&c({event:"visibilitychange"})})},E=()=>{a.unsubscribeSignal=r.listen(()=>{t()})};return{init:()=>{a.isInitialized||(a.isInitialized=!0,h(),d(),p(),g(),E(),a.cleanupBroadcastSetup=co().setup(),a.cleanupFocusSetup=il().setup(),a.cleanupOnlineSetup=ho().setup())},cleanup:()=>{a.isInitialized&&(a.pollInterval&&(clearInterval(a.pollInterval),a.pollInterval=void 0),a.unsubscribeBroadcast&&(a.unsubscribeBroadcast(),a.unsubscribeBroadcast=void 0),a.unsubscribeFocus&&(a.unsubscribeFocus(),a.unsubscribeFocus=void 0),a.unsubscribeOnline&&(a.unsubscribeOnline(),a.unsubscribeOnline=void 0),a.unsubscribeSignal&&(a.unsubscribeSignal(),a.unsubscribeSignal=void 0),a.cleanupBroadcastSetup&&(a.cleanupBroadcastSetup(),a.cleanupBroadcastSetup=void 0),a.cleanupFocusSetup&&(a.cleanupFocusSetup(),a.cleanupFocusSetup=void 0),a.cleanupOnlineSetup&&(a.cleanupOnlineSetup(),a.cleanupOnlineSetup=void 0),a.isInitialized=!1,a.lastSessionRequest=0)},triggerRefetch:c,broadcastSessionUpdate:f}}const Nb=()=>typeof window>"u";function al(e){return typeof e=="object"&&e!==null&&"data"in e&&"error"in e?e:{data:e,error:null}}function Fb(e){return!e||e.session===null&&e.user===null?null:e}function jb(e,t){return ms(e.data,t.data)&&e.error===t.error&&e.isPending===t.isPending&&e.isRefetching===t.isRefetching&&e.refetch===t.refetch}function Hb(e,t){const n=sl(!1);let r;const s=u=>l(u),o=sl({data:null,error:null,isPending:!0,isRefetching:!1,refetch:s});Cb(o,jb);const i=u=>{if(r!==u)return;const c=o.get();r=void 0,!(!c.isPending&&!c.isRefetching)&&o.set({...c,isPending:!1,isRefetching:!1,refetch:s})},l=async u=>{r?.abort();const c=new AbortController;r=c;const f=o.get();o.set({...f,isPending:f.data===null,isRefetching:!0,error:null,refetch:s});try{const h=await e("/get-session",{method:"GET",query:u?.query,signal:c.signal});if(c.signal.aborted){i(c);return}let{data:d,error:p}=al(h);if(d?.needsRefresh)try{const _=await e("/get-session",{method:"POST",signal:c.signal});if(c.signal.aborted){i(c);return}({data:d,error:p}=al(_))}catch{if(c.signal.aborted){i(c);return}}if(p){const _=o.get(),m=p?.status===401;o.set({data:m?null:_.data,error:p,isPending:!1,isRefetching:!1,refetch:s});return}const g=Fb(d),E=o.get(),S=E.data!=null&&g!=null&&ms(E.data,g)?E.data:g;o.set({data:S,error:null,isPending:!1,isRefetching:!1,refetch:s})}catch(h){if(c.signal.aborted){i(c);return}const d=o.get();o.set({data:d.data,error:h,isPending:!1,isRefetching:!1,refetch:s})}};let a=()=>{};return Tb(o,()=>{let u;Nb()||(u=setTimeout(()=>{l()},0));const c=Lb({fetchSession:l,shouldPollSession:()=>o.get().data!=null,sessionSignal:n,options:t});return c.init(),a=c.broadcastSessionUpdate,()=>{u&&clearTimeout(u);const f=r;f?.abort(),f&&i(f),c.cleanup()}}),{session:o,$sessionSignal:n,broadcastSessionUpdate:u=>a(u)}}var Db=Object.defineProperty,$b=Object.defineProperties,Ub=Object.getOwnPropertyDescriptors,ll=Object.getOwnPropertySymbols,Bb=Object.prototype.hasOwnProperty,qb=Object.prototype.propertyIsEnumerable,cl=(e,t,n)=>t in e?Db(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ut=(e,t)=>{for(var n in t||(t={}))Bb.call(t,n)&&cl(e,n,t[n]);if(ll)for(var n of ll(t))qb.call(t,n)&&cl(e,n,t[n]);return e},_t=(e,t)=>$b(e,Ub(t)),Vb=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n,Error.captureStackTrace(this,this.constructor)}},Wb=async(e,t)=>{var n,r,s,o,i,l;let a=t||{};const u={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:a,hooks:u};for(const c of t?.plugins||[]){if(c.init){const f=await((n=c.init)==null?void 0:n.call(c,e.toString(),t));a=f.options||a,e=f.url}u.onRequest.push((r=c.hooks)==null?void 0:r.onRequest),u.onResponse.push((s=c.hooks)==null?void 0:s.onResponse),u.onSuccess.push((o=c.hooks)==null?void 0:o.onSuccess),u.onError.push((i=c.hooks)==null?void 0:i.onError),u.onRetry.push((l=c.hooks)==null?void 0:l.onRetry)}return{url:e,options:a,hooks:u}},ul=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},Kb=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function zb(e){if(typeof e=="number")return new ul({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new ul(e);case"exponential":return new Kb(e);default:throw new Error("Invalid retry strategy")}}var Qb=async e=>{const t={},n=async r=>typeof r=="function"?await r():r;if(e?.auth){if(e.auth.type==="Bearer"){const r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type==="Basic"){const[r,s]=await Promise.all([n(e.auth.username),n(e.auth.password)]);if(!r||!s)return t;t.authorization=`Basic ${btoa(`${r}:${s}`)}`}else if(e.auth.type==="Custom"){const[r,s]=await Promise.all([n(e.auth.prefix),n(e.auth.value)]);if(!s)return t;t.authorization=`${r??""} ${s}`}}return t},Gb=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Jb(e){const t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const r=t.split(";").shift()||"";return Gb.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function Yb(e){try{return JSON.parse(e),!0}catch{return!1}}function nf(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function fl(e){try{return JSON.parse(e)}catch{return e}}function dl(e){return typeof e=="function"}function Xb(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&dl(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&dl(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}function rf(...e){const t={};for(const n of e)if(n)if(n instanceof Headers)n.forEach((r,s)=>{t[s]=r});else{const r=Array.isArray(n)?n:Object.entries(n);for(const[s,o]of r)o!=null&&(t[s]=o)}return t}async function Zb(e){const t=new Headers(rf(e?.headers,await Qb(e)));if(!t.has("content-type")){const n=ev(e?.body);n&&t.set("content-type",n)}return t}function ev(e){return nf(e)?"application/json":null}function tv(e){const t=e.get("content-type");return t?t.split(";")[0].trim().toLowerCase():null}function nv(e,t){const{body:n}=e;return n?!nf(n)||typeof n=="string"?n:tv(t)==="application/x-www-form-urlencoded"?new URLSearchParams(n).toString():JSON.stringify(n):null}function rv(e,t){var n;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const r=(n=e.split("@")[1])==null?void 0:n.split("/")[0];return of.includes(r)?r.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function sv(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var ov=class sf extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,sf.prototype)}};async function ir(e,t){const n=await e["~standard"].validate(t);if(n.issues)throw new ov(n.issues);return n.value}var of=["get","post","put","patch","delete"],iv=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r,s,o,i;const l=((s=(r=e.plugins)==null?void 0:r.find(a=>{var u;return(u=a.schema)!=null&&u.config?t.startsWith(a.schema.config.baseURL||"")||t.startsWith(a.schema.config.prefix||""):!1}))==null?void 0:s.schema)||e.schema;if(l){let a=t;(o=l.config)!=null&&o.prefix&&a.startsWith(l.config.prefix)&&(a=a.replace(l.config.prefix,""),l.config.baseURL&&(t=t.replace(l.config.prefix,l.config.baseURL))),(i=l.config)!=null&&i.baseURL&&a.startsWith(l.config.baseURL)&&(a=a.replace(l.config.baseURL,"")),a.startsWith("/")&&a.charAt(1)==="@"&&(a=a.substring(1));const u=l.schema[a];if(u){let c=n?.headers;if(u.headers&&!n?.disableValidation){const h={};if(n?.headers){if(n.headers instanceof Headers)n.headers.forEach((g,E)=>{h[E.toLowerCase()]=g});else if(typeof n.headers=="object")for(const[g,E]of Object.entries(n.headers))E!=null&&(h[g.toLowerCase()]=E)}const d=await ir(u.headers,h),p={};for(const[g,E]of Object.entries(d))p[g.toLowerCase()]=E;c=p}let f=_t(ut({},n),{method:u.method,output:u.output,headers:c});return n?.disableValidation||(f=_t(ut({},f),{body:u.input?await ir(u.input,n?.body):n?.body,params:u.params?await ir(u.params,n?.params):n?.params,query:u.query?await ir(u.query,n?.query):n?.query})),{url:t,options:f}}}return{url:t,options:n}}}),av=e=>{async function t(n,r){const s=_t(ut(ut({},e),r),{headers:rf(e?.headers,r?.headers),plugins:[...e?.plugins||[],iv(e||{}),...r?.plugins||[]]});if(e?.catchAllError)try{return await zo(n,s)}catch(o){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:o}}}return await zo(n,s)}return t},lv=e=>e==="."||e==="..";function cv(e,t){let n=e;for(const[r,s]of t)n=n.replace(r,s);if(lv(n))throw new TypeError("Path parameters cannot be reserved path segments");return encodeURIComponent(n)}function uv(e,t){const{baseURL:n,params:r,query:s}=t||{query:{},params:{},baseURL:""};let o=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){const h=e.toString().split("@")[1].split("/")[0];of.includes(h)&&(e=e.replace(`@${h}/`,"/"))}o.endsWith("/")||(o+="/");let[i,l]=e.replace(o,"").split("?");const a=new URLSearchParams(l);for(const[h,d]of Object.entries(s||{})){if(d==null)continue;let p;if(typeof d=="string")p=d;else if(Array.isArray(d)){for(const g of d)a.append(h,g);continue}else p=JSON.stringify(d);a.set(h,p)}const u=new Map;if(r)if(Array.isArray(r)){const h=i.split("/").filter(d=>d.startsWith(":"));for(const[d,p]of h.entries()){const g=r[d];u.set(p,String(g))}}else for(const[h,d]of Object.entries(r))u.set(`:${h}`,String(d));i=i.split("/").map(h=>cv(h,u)).join("/"),i=i.replace(/^\/+/,"");let c=a.toString();return c=c.length>0?`?${c}`.replace(/\+/g,"%20"):"",o.startsWith("http")?new URL(`${i}${c}`,o):`${o}${i}${c}`}var zo=async(e,t)=>{var n,r,s,o,i,l,a,u;const{hooks:c,url:f,options:h}=await Wb(e,t),d=Xb(h),p=new AbortController,g=(n=h.signal)!=null?n:p.signal,E=uv(f,h),S=await Zb(h),_=nv(h,S),m=rv(f,h),b=_t(ut({},h),{url:E,headers:S,body:_,method:m,signal:g});for(const q of c.onRequest)if(q){const Q=await q(b);typeof Q=="object"&&Q!==null&&Object.assign(b,Q)}("pipeTo"in b&&typeof b.pipeTo=="function"||typeof((r=t?.body)==null?void 0:r.pipe)=="function")&&("duplex"in b||(b.duplex="half"));const{clearTimeout:w}=sv(h,p);let x=await d(b.url,b);w();const T={response:x,request:b};for(const q of c.onResponse)if(q){const Q=await q(_t(ut({},T),{response:(s=t?.hookOptions)!=null&&s.cloneResponse?x.clone():x}));Q instanceof Response?x=Q:typeof Q=="object"&&Q!==null&&(x=Q.response)}if(x.ok){if(!(b.method!=="HEAD"))return{data:"",error:null};const Q=Jb(x),te={data:null,response:x,request:b};if(Q==="json"||Q==="text"){const j=await x.text(),X=(o=b.jsonParser)!=null?o:fl;te.data=await X(j)}else te.data=await x[Q]();b?.output&&b.output&&!b.disableValidation&&(te.data=await ir(b.output,te.data));for(const j of c.onSuccess)j&&await j(_t(ut({},te),{response:(i=t?.hookOptions)!=null&&i.cloneResponse?x.clone():x}));return t?.throw?te.data:{data:te.data,error:null}}const R=(l=t?.jsonParser)!=null?l:fl,A=await x.text(),F=Yb(A),U=F?await R(A):null,L={response:x,responseText:A,request:b,error:_t(ut({},U),{status:x.status,statusText:x.statusText})};for(const q of c.onError)q&&await q(_t(ut({},L),{response:(a=t?.hookOptions)!=null&&a.cloneResponse?x.clone():x}));if(t?.retry){const q=zb(t.retry),Q=(u=t.retryAttempt)!=null?u:0;if(await q.shouldAttemptRetry(Q,x)){for(const j of c.onRetry)j&&await j(T);const te=q.getDelay(Q);return await new Promise(j=>setTimeout(j,te)),await zo(e,_t(ut({},t),{retryAttempt:Q+1}))}}if(t?.throw)throw new Vb(x.status,x.statusText,F?U:A);return{data:null,error:_t(ut({},U),{status:x.status,statusText:x.statusText})}},un={};const fv=e=>{if(typeof process>"u")return;const t=e??"/api/auth";if(un.NEXT_PUBLIC_AUTH_URL)return un.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(un.NEXTAUTH_URL)try{return un.NEXTAUTH_URL}catch{}if(un.VERCEL_URL)try{const n=un.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${n}${un.VERCEL_URL}`).origin}${t}`}catch{}}},dv=(e,t)=>{const n="credentials"in Request.prototype,r=ub(e?.baseURL,e?.basePath)??fv(e?.basePath)??"/api/auth",s=e?.plugins?.flatMap(w=>w.fetchPlugins).filter(w=>w!==void 0)||[],o={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:i,onError:l,onRequest:a,onResponse:u,...c}=e?.fetchOptions||{},f=av({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(w){return w?yb(w,{strict:!1}):null},customFetchImpl:fetch,...c,plugins:[o,...c.plugins||[],...e?.disableDefaultFetchPlugins?[]:[wb],...s]}),{$sessionSignal:h,session:d,broadcastSessionUpdate:p}=Hb(f,e),g=e?.plugins||[];let E={};const S={$sessionSignal:h,session:d},_={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},m=[{signal:"$sessionSignal",matcher(w){return w==="/sign-out"||w==="/update-user"||w==="/update-session"||w==="/sign-up/email"||w==="/sign-in/email"||w==="/delete-user"||w==="/verify-email"||w==="/revoke-sessions"||w==="/revoke-session"||w==="/revoke-other-sessions"||w==="/change-email"||w==="/change-password"},callback(w){w==="/sign-out"?p("signout"):(w==="/update-user"||w==="/update-session")&&p("updateUser")}}];for(const w of g)w.getAtoms&&Object.assign(S,w.getAtoms?.(f)),w.pathMethods&&Object.assign(_,w.pathMethods),w.atomListeners&&m.push(...w.atomListeners);const b={notify:w=>{S[w].set(!S[w].get())},listen:(w,x)=>{S[w].subscribe(x)},atoms:S};for(const w of g)w.getActions&&(E=_i(w.getActions?.(f,b,e)??{},E));return{get baseURL(){return r},pluginsActions:E,pluginsAtoms:S,pluginPathMethods:_,atomListeners:m,$fetch:f,$store:b}};function hv(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function pv(e){return e.charAt(0).toUpperCase()+e.slice(1)}const gv=new RegExp("[\\p{Ll}\\d]+|\\p{Lu}+(?!\\p{Ll})|\\p{Lu}[\\p{Ll}\\d]+|\\p{Lo}+","gu"),mv=/['\u2019]/g;function yv(e){return e.replace(mv,"").match(gv)??[]}function bv(e){return yv(e).map(t=>t.toLowerCase()).join("-")}function vv(e,t,n){const r=t[e],{fetchOptions:s,query:o,...i}=n||{};return r||(s?.method?s.method:i&&Object.keys(i).length>0?"POST":"GET")}function wv(e,t,n,r,s){function o(i=[]){return new Proxy(function(){},{get(l,a){if(typeof a!="string"||a==="then"||a==="catch"||a==="finally")return;const u=[...i,a];let c=e;for(const f of u)if(c&&typeof c=="object"&&f in c)c=c[f];else{c=void 0;break}return typeof c=="function"||hv(c)?c:o(u)},apply:async(l,a,u)=>{const c="/"+i.map(bv).join("/"),f=u[0]||{},h=u[1]||{},{query:d,fetchOptions:p,...g}=f,E={...h,...p},S=vv(c,n,f);return await t(c,{...E,body:S==="GET"?void 0:{...g,...E?.body||{}},query:d||E?.query,method:S,async onSuccess(_){if(await E?.onSuccess?.(_),!s||E.disableSignal)return;const m=s.filter(w=>w.matcher(c));if(!m.length)return;const b=new Set;for(const w of m){const x=r[w.signal];if(!x)return;if(b.has(w.signal))continue;b.add(w.signal);const T=x.get();setTimeout(()=>{x.set(!T)},10),w.callback?.(c)}}})}})}return o()}function hl(e){const t=_n(),n=e.subscribe(r=>{t.value=r});return li()&&Jf(n),t}function _v(e){return`use${pv(e)}`}function Sv(e){const{baseURL:t,pluginPathMethods:n,pluginsActions:r,pluginsAtoms:s,$fetch:o,$store:i,atomListeners:l}=dv(e),a={};for(const[c,f]of Object.entries(s))a[_v(c)]=()=>hl(f);function u(c){if(c){const f=hl(s.$sessionSignal);return c(`${t}/get-session`,{ref:f}).then(h=>({data:h.data,isPending:!1,error:h.error}))}return a.useSession()}return wv({...r,...a,useSession:u,$fetch:o,$store:i},o,n,s,l)}let go=null;function af(){return go||(go=Sv({baseURL:`${window.location.origin}/api-proxy/api/auth`})),go}const Ev=async e=>{let t,n;if(e.path==="/login")return;const r=af(),{data:s}=([t,n]=Dn(()=>r.getSession()),t=await t,n(),t);if(!s)return Si("/login")},xv=e=>{const t=ju({path:e.path});if(t.redirect){const n=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return rn(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},kv=[ib,Ev,xv],Qo={};function Rv(e,t,n){const{pathname:r,search:s,hash:o}=t,i=e.indexOf("#");if(i>-1){const u=o.includes(e.slice(i))?e.slice(i).length:1;let c=o.slice(u);return c[0]!=="/"&&(c="/"+c),_a(c,"")}const l=_a(r,e),a=!n||bu(l,n)?l:n;return a+(a.includes("?")?"":s)+o}const Tv=Bt({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,r=js().app.baseURL;const s=Vt.history?.(r)??xy(r),o=Vt.routes?([t,n]=Dn(()=>Vt.routes(ao)),t=await t,n(),t??ao):ao;let i;const l=Vy({...Vt,scrollBehavior:(S,_,m)=>{if(_===rt){i=m;return}if(Vt.scrollBehavior){if(l.options.scrollBehavior=Vt.scrollBehavior,"scrollRestoration"in window.history){const b=l.beforeEach(()=>{b(),window.history.scrollRestoration="manual"})}return Vt.scrollBehavior(S,rt,i||m)}},history:s,routes:o});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(l);const a=_n(l.currentRoute.value);l.afterEach((S,_)=>{a.value=_}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>a.value});const u=Rv(r,window.location,e.payload.path),c=_n(l.currentRoute.value),f=()=>{c.value=l.currentRoute.value};l.afterEach((S,_)=>{const m=S.matched.at(-1)?.components?.default,b=_.matched.at(-1)?.components?.default;if(m===b){f();return}S.matched.length<_.matched.length&&S.matched.every((w,x)=>w.components?.default===_.matched[x]?.components?.default)&&f()});const h={sync:f};for(const S in c.value)Object.defineProperty(h,S,{get:()=>c.value[S],enumerable:!0});e._route=Et(h),e._middleware||={global:[],named:{}};const d=Ds();l.afterEach(async(S,_,m)=>{delete e._processingMiddleware,!e.isHydrating&&d.value&&await e.runWithContext(Ou),m&&await e.callHook("page:loading:end")});try{[t,n]=Dn(()=>l.isReady()),await t,n()}catch(S){[t,n]=Dn(()=>e.runWithContext(()=>hn(S))),await t,n()}const p=u!==l.currentRoute.value.fullPath?l.resolve(u):l.currentRoute.value,g=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&u!==e.payload.path&&bu(l.currentRoute.value.path,e.payload.path);f();const E=e.payload.state._layout;return l.beforeEach(async(S,_)=>{await e.callHook("page:loading:start"),S.meta=tn(S.meta),e.isHydrating&&E&&!Tt(S.meta.layout)&&(S.meta.layout=E),e._processingMiddleware=!0;{const m=new Set([...kv,...e._middleware.global]);for(const w of S.matched){const x=w.meta.middleware;if(x)for(const T of Xu(x))m.add(T)}const b=ju({path:S.path});if(b.appMiddleware)for(const w in b.appMiddleware)b.appMiddleware[w]?m.add(w):m.delete(w);for(const w of m){const x=typeof w=="string"?e._middleware.named[w]||await Qo[w]?.().then(T=>T.default||T):w;if(!x)throw new Error(`Unknown route middleware: '${w}'.`);try{const T=await e.runWithContext(()=>x(S,_));if(!e.payload.serverRendered&&e.isHydrating&&(T===!1||T instanceof Error)){const R=T||vn({status:404,statusText:`Page Not Found: ${u}`});return await e.runWithContext(()=>hn(R)),!1}if(T===!0)continue;if(T===!1)return T;if(T)return Mu(T)&&T.fatal&&await e.runWithContext(()=>hn(T)),T}catch(T){const R=vn(T);return R.fatal&&await e.runWithContext(()=>hn(R)),R}}}}),l.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),l.afterEach(S=>{if(S.matched.length===0&&!d.value)return e.runWithContext(()=>hn(vn({status:404,fatal:!1,statusText:`Page not found: ${S.fullPath}`,data:{path:S.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{if("name"in p&&(p.name=void 0),g){const S=l.resolve(e.payload.path);"name"in S&&(S.name=void 0),await l.replace({...S,force:!0}),e.hooks.hookOnce("app:suspense:resolve",async()=>{await l.replace({...p,force:!0})})}else await l.replace({...p,force:!0});l.options.scrollBehavior=Vt.scrollBehavior}catch(S){await e.runWithContext(()=>hn(S))}}),{provide:{router:l}}}}),Go=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Cv=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Ri=e=>{const t=ke();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Go(()=>e())}):Go(()=>e())},Pv=Bt(()=>{const e=et();Ri(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),Av=Bt(e=>{let t;async function n(){let r;try{r=await Om()}catch(s){const o=s;if(!("status"in o&&(o.status===404||o.status===403)))throw o}t&&clearTimeout(t),t=setTimeout(n,Ca);try{const s=await $fetch(wi("builds/latest.json")+`?${Date.now()}`);s.id!==r?.id&&(e.hooks.callHook("app:manifest:update",s),t&&clearTimeout(t))}catch{}}Ri(()=>{t=setTimeout(n,Ca)})});function Ov(e={}){const t=e.path||window.location.pathname,n=new URL(t,window.location.href);if(n.host!==window.location.host)throw new Error(`Cannot navigate to a URL with a different host: '${t}'.`);if(n.protocol&&ds(n.protocol))throw new Error(`Cannot navigate to a URL with '${n.protocol}' protocol.`);let r={};try{r=JSON.parse(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||r?.path!==t||r?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:ke().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const Mv=Bt({name:"nuxt:chunk-reload",setup(e){const t=et(),n=js(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const i=yi(n.app.baseURL,o.fullPath);Ov({path:i,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),Iv=Bt({name:"nuxt:global-components"}),Ur={};function Lv(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function lf(e,t=et()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const s=t._preloadPromises||=[];if(s.length>4)return Promise.all(s).then(()=>lf(e,t));t._routePreloaded.add(n);for(const o of r){const i=o.components?.default;if(typeof i!="function")continue;const l=Promise.resolve(i()).catch(()=>{}).finally(()=>s.splice(s.indexOf(l),1));s.push(l)}await Promise.all(s)}const Nv=Bt({name:"nuxt:prefetch",setup(e){const t=et();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof Ur[r]=="function"&&await Ur[r]()})}),e.hooks.hook("link:prefetch",n=>{if(rn(n))return;const r=t.resolve(n);if(!r)return;const s=r.meta.layout;let o=Xu(r.meta.middleware);o=o.filter(i=>typeof i=="string");for(const i of o)typeof Qo[i]=="function"&&Qo[i]();typeof s=="string"&&s in Ur&&Lv(Ur[s])})}});var Us=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Fv=class extends Us{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},cf=new Fv,jv={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Hv=class{#e=jv;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Jo=new Hv;function Dv(e){setTimeout(e,0)}var $v=typeof window>"u"||"Deno"in globalThis;function ct(){}function Uv(e,t){return typeof e=="function"?e(t):e}function Bv(e){return typeof e=="number"&&e>=0&&e!==1/0}function qv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Yo(e,t){return typeof e=="function"?e(t):e}function Vv(e,t){return typeof e=="function"?e(t):e}function pl(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==Ti(i,t.options))return!1}else if(!xr(t.queryKey,i))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||o&&!o(t))}function gl(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Er(t.options.mutationKey)!==Er(o))return!1}else if(!xr(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Ti(e,t){return(t?.queryKeyHashFn||Er)(e)}function Er(e){return JSON.stringify(e,(t,n)=>Xo(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function xr(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>xr(e[n],t[n])):!1}var Wv=Object.prototype.hasOwnProperty;function uf(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=ml(e)&&ml(t);if(!r&&!(Xo(e)&&Xo(t)))return t;const o=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),l=i.length,a=r?new Array(l):{};let u=0;for(let c=0;c<l;c++){const f=r?c:i[c],h=e[f],d=t[f];if(h===d){a[f]=h,(r?c<o:Wv.call(e,f))&&u++;continue}if(h===null||d===null||typeof h!="object"||typeof d!="object"){a[f]=d;continue}const p=uf(h,d,n+1);a[f]=p,p===h&&u++}return o===l&&u===o?e:a}function Y_(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function ml(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xo(e){if(!yl(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!yl(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function yl(e){return Object.prototype.toString.call(e)==="[object Object]"}function Kv(e){return new Promise(t=>{Jo.setTimeout(t,e)})}function zv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?uf(e,t):t}function Qv(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Gv(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ci=Symbol();function ff(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ci?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function X_(e,t){return typeof e=="function"?e(...t):!!e}function Jv(e,t,n){let r=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var Pi=(()=>{let e=()=>$v;return{isServer(){return e()},setIsServer(t){e=t}}})();function Yv(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var Xv=Dv;function Zv(){let e=[],t=0,n=l=>{l()},r=l=>{l()},s=Xv;const o=l=>{t?e.push(l):s(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&s(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||i()}return a},batchCalls:l=>(...a)=>{o(()=>{l(...a)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{s=l}}}var We=Zv(),ew=class extends Us{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},ys=new ew;function tw(e){return Math.min(1e3*2**e,3e4)}function df(e){return(e??"online")==="online"?ys.isOnline():!0}var Zo=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function hf(e){let t=!1,n=0,r;const s=Yv(),o=()=>s.status!=="pending",i=g=>{if(!o()){const E=new Zo(g);h(E),e.onCancel?.(E)}},l=()=>{t=!0},a=()=>{t=!1},u=()=>cf.isFocused()&&(e.networkMode==="always"||ys.isOnline())&&e.canRun(),c=()=>df(e.networkMode)&&e.canRun(),f=g=>{o()||(r?.(),s.resolve(g))},h=g=>{o()||(r?.(),s.reject(g))},d=()=>new Promise(g=>{r=E=>{(o()||u())&&g(E)},e.onPause?.()}).then(()=>{r=void 0,o()||e.onContinue?.()}),p=()=>{if(o())return;let g;const E=n===0?e.initialPromise:void 0;try{g=E??e.fn()}catch(S){g=Promise.reject(S)}Promise.resolve(g).then(f).catch(S=>{if(o())return;const _=e.retry??(Pi.isServer()?0:3),m=e.retryDelay??tw,b=typeof m=="function"?m(n,S):m,w=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,S);if(t||!w){h(S);return}n++,e.onFail?.(n,S),Kv(b).then(()=>u()?void 0:d()).then(()=>{t?h(S):p()})})};return{promise:s,status:()=>s.status,cancel:i,continue:()=>(r?.(),s),cancelRetry:l,continueRetry:a,canStart:c,start:()=>(c()?p():d().then(p),s)}}var pf=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bv(this.gcTime)&&(this.#e=Jo.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Jo.clearTimeout(this.#e),this.#e=void 0)}};function nw(e){return{onFetch:(t,n)=>{const r=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let c=!1;const f=p=>{Jv(p,()=>t.signal,()=>c=!0)},h=ff(t.options,t.fetchOptions),d=async(p,g,E)=>{if(c)return Promise.reject(t.signal.reason);if(g==null&&p.pages.length)return Promise.resolve(p);const _=(()=>{const x={client:t.client,queryKey:t.queryKey,pageParam:g,direction:E?"backward":"forward",meta:t.options.meta};return f(x),x})(),m=await h(_),{maxPages:b}=t.options,w=E?Gv:Qv;return{pages:w(p.pages,m,b),pageParams:w(p.pageParams,g,b)}};if(s&&o.length){const p=s==="backward",g=p?rw:bl,E={pages:o,pageParams:i},S=g(r,E);l=await d(E,S,p)}else{const p=e??o.length;do{const g=a===0?i[0]??r.initialPageParam:bl(r,l);if(a>0&&g==null)break;l=await d(l,g),a++}while(a<p)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function bl(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function rw(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var sw=class extends pf{#e;#t;#n;#s;#o;#r;#l;#i;constructor(e){super(),this.#i=!1,this.#l=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#s=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=wl(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#l,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=wl(this.options);t.data!==void 0&&(this.setState(vl(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#s.remove(this)}setData(e,t){const n=zv(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#a({type:"setState",state:e})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(ct).catch(ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Vv(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ci||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Yo(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!qv(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#i||this.#c()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const a=this.observers.find(u=>u.options.queryFn);a&&this.setOptions(a.options)}const n=new AbortController,r=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#i=!0,n.signal)})},s=()=>{const a=ff(this.options,t),c=(()=>{const f={client:this.#o,queryKey:this.queryKey,meta:this.meta};return r(f),f})();return this.#i=!1,this.options.persister?this.options.persister(a,c,this):a(c)},i=(()=>{const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:s};return r(a),a})();(this.#e==="infinite"?nw(this.options.pages):this.options.behavior)?.onFetch(i,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==i.fetchOptions?.meta)&&this.#a({type:"fetch",meta:i.fetchOptions?.meta}),this.#r=hf({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:a=>{a instanceof Zo&&a.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(a,u)=>{this.#a({type:"failed",failureCount:a,error:u})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const a=await this.#r.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#s.config.onSuccess?.(a,this),this.#s.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof Zo){if(a.silent)return this.#r.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#a({type:"error",error:a}),this.#s.config.onError?.(a,this),this.#s.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...ow(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...vl(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const s=e.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),We.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:e})})}};function ow(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:df(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function vl(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function wl(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var iw=class extends pf{#e;#t;#n;#s;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||aw(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#o({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=hf({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(o,i)=>{this.#o({type:"failed",failureCount:o,error:i})},onPause:()=>{this.#o({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",s=!this.#s.canStart();try{if(r)t();else{this.#o({type:"pending",variables:e,isPaused:s}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const i=await this.options.onMutate?.(e,n);i!==this.state.context&&this.#o({type:"pending",context:i,variables:e,isPaused:s})}const o=await this.#s.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#o({type:"success",data:o}),o}catch(o){try{await this.#n.config.onError?.(o,e,this.state.context,this,n)}catch(i){Promise.reject(i)}try{await this.options.onError?.(o,e,this.state.context,n)}catch(i){Promise.reject(i)}try{await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,n)}catch(i){Promise.reject(i)}try{await this.options.onSettled?.(void 0,o,e,this.state.context,n)}catch(i){Promise.reject(i)}throw this.#o({type:"error",error:o}),o}finally{this.#n.runNext(this)}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),We.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function aw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gf=class extends Us{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,n,r){const s=new iw({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){this.#e.add(t);const n=Br(t);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(t):this.#t.set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const n=Br(t);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&this.#t.delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Br(t);if(typeof n=="string"){const s=this.#t.get(n)?.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){const n=Br(t);return typeof n=="string"?this.#t.get(n)?.find(s=>s!==t&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){We.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const n={exact:!0,...t};return this.getAll().find(r=>gl(n,r))}findAll(t={}){return this.getAll().filter(n=>gl(t,n))}notify(t){We.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return We.batch(()=>Promise.all(t.map(n=>n.continue().catch(ct))))}};function Br(e){return e.options.scope?.id}var mf=class extends Us{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,n,r){const s=n.queryKey,o=n.queryHash??Ti(s,n);let i=this.get(o);return i||(i=new sw({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=this.#e.get(t.queryHash);n&&(t.destroy(),n===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){We.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>pl(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>pl(t,r)):n}notify(t){We.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){We.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){We.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lw=class{#e;#t;#n;#s;#o;#r;#l;#i;constructor(t={}){this.#e=t.queryCache||new mf,this.#t=t.mutationCache||new gf,this.#n=t.defaultOptions||{},this.#s=new Map,this.#o=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#l=cf.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=ys.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#l?.(),this.#l=void 0,this.#i?.(),this.#i=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const n=this.defaultQueryOptions({queryKey:t});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),r=this.#e.build(this,n),s=r.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Yo(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(t,n,r){const s=this.defaultQueryOptions({queryKey:t}),i=this.#e.get(s.queryHash)?.state.data,l=Uv(n,i);if(l!==void 0)return this.#e.build(this,s).setData(l,{...r,manual:!0})}setQueriesData(t,n,r){return We.batch(()=>this.#e.findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(t){const n=this.defaultQueryOptions({queryKey:t});return this.#e.get(n.queryHash)?.state}removeQueries(t){const n=this.#e;We.batch(()=>{n.findAll(t).forEach(r=>{n.remove(r)})})}resetQueries(t,n){const r=this.#e;return We.batch(()=>(r.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},n)))}cancelQueries(t,n={}){const r={revert:!0,...n},s=We.batch(()=>this.#e.findAll(t).map(o=>o.cancel(r)));return Promise.all(s).then(ct).catch(ct)}invalidateQueries(t,n={}){return We.batch(()=>(this.#e.findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},n)))}refetchQueries(t,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},s=We.batch(()=>this.#e.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(ct)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(ct)}fetchQuery(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(Yo(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(ct).catch(ct)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(ct).catch(ct)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return ys.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,n){this.#s.set(Er(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...this.#s.values()],r={};return n.forEach(s=>{xr(t,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(t,n){this.#o.set(Er(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...this.#o.values()],r={};return n.forEach(s=>{xr(t,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const n={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=Ti(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Ci&&(n.enabled=!1),n}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},cw="VUE_QUERY_CLIENT";function uw(e){const t=e?`:${e}`:"";return`${cw}${t}`}function n0(e,t){Object.keys(e).forEach(n=>{e[n]=t[n]})}function ei(e,t,n="",r=0){if(t){const s=t(e,n,r);if(s===void 0&&xe(e)||s!==void 0)return s}if(Array.isArray(e))return e.map((s,o)=>ei(s,t,String(o),r+1));if(typeof e=="object"&&dw(e)){const s=Object.entries(e).map(([o,i])=>[o,ei(i,t,o,r+1)]);return Object.fromEntries(s)}return e}function fw(e,t){return ei(e,t)}function ae(e,t=!1){return fw(e,(n,r,s)=>{if(s===1&&r==="queryKey")return ae(n,!0);if(t&&hw(n))return ae(n(),t);if(xe(n))return ae(oe(n),t)})}function dw(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function hw(e){return typeof e=="function"}var pw=class extends mf{find(e){return super.find(ae(e))}findAll(e={}){return super.findAll(ae(e))}},gw=class extends gf{find(e){return super.find(ae(e))}findAll(e={}){return super.findAll(ae(e))}},yf=class extends lw{constructor(e={}){const t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new pw,mutationCache:e.mutationCache||new gw};super(t),this.isRestoring=wn(!1)}isFetching(e={}){return super.isFetching(ae(e))}isMutating(e={}){return super.isMutating(ae(e))}getQueryData(e){return super.getQueryData(ae(e))}ensureQueryData(e){return super.ensureQueryData(ae(e))}getQueriesData(e){return super.getQueriesData(ae(e))}setQueryData(e,t,n={}){return super.setQueryData(ae(e),t,ae(n))}setQueriesData(e,t,n={}){return super.setQueriesData(ae(e),t,ae(n))}getQueryState(e){return super.getQueryState(ae(e))}removeQueries(e={}){return super.removeQueries(ae(e))}resetQueries(e={},t={}){return super.resetQueries(ae(e),ae(t))}cancelQueries(e={},t={}){return super.cancelQueries(ae(e),ae(t))}invalidateQueries(e={},t={}){const n=ae(e),r=ae(t);if(super.invalidateQueries({...n,refetchType:"none"},r),n.refetchType==="none")return Promise.resolve();const s={...n,type:n.refetchType??n.type??"active"};return Sn().then(()=>super.refetchQueries(s,r))}refetchQueries(e={},t={}){return super.refetchQueries(ae(e),ae(t))}fetchQuery(e){return super.fetchQuery(ae(e))}prefetchQuery(e){return super.prefetchQuery(ae(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(ae(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(ae(e))}setDefaultOptions(e){super.setDefaultOptions(ae(e))}setQueryDefaults(e,t){super.setQueryDefaults(ae(e),ae(t))}getQueryDefaults(e){return super.getQueryDefaults(ae(e))}setMutationDefaults(e,t){super.setMutationDefaults(ae(e),ae(t))}getMutationDefaults(e){return super.getMutationDefaults(ae(e))}},mw={install:(e,t={})=>{const n=uw(t.queryClientKey);let r;if("queryClient"in t&&t.queryClient)r=t.queryClient;else{const i="queryClientConfig"in t?t.queryClientConfig:void 0;r=new yf(i)}Pi.isServer()||r.mount();let s=()=>{};if(t.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);const[i,l]=t.clientPersister(r);s=i,l.then(()=>{r.isRestoring&&(r.isRestoring.value=!1),t.clientPersisterOnSuccess?.(r)})}const o=()=>{r.unmount(),s()};if(e.onUnmount)e.onUnmount(o);else{const i=e.unmount;e.unmount=function(){o(),i()}}e.provide(n,r)}};const yw=Bt(e=>{const t=new yf;e.vueApp.use(mw,{queryClient:t})}),bw=[jm,Bm,Tv,Pv,Av,Mv,Iv,Nv,yw],vw=(...e)=>e.find(t=>t!==void 0);function _l(e){let t=e.replace(/[\u0000-\u001F\s]+/g,"");for(;t.toLowerCase().startsWith("view-source:");)t=t.slice(12);const n=t.indexOf(":");return n>0&&ds(t.slice(0,n+1))?null:e}function ww(e){const t=e.componentName||"NuxtLink";function n(o){return typeof o=="string"&&o.startsWith("#")}function r(o,i,l){const a=l??e.trailingSlash;if(!o||a!=="append"&&a!=="remove")return o;if(typeof o=="string")return qr(o,a);const u="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:qr(u,a)}}function s(o){const i=et(),l=js(),a=Te(()=>!!oe(o.target)&&oe(o.target)!=="_self"),u=Te(()=>{const E=oe(o.to)||oe(o.href)||"";return typeof E=="string"&&rn(E,{acceptRelative:!0})}),c=Vi("RouterLink"),f=typeof c!="string"?c.useLink:void 0,h=Te(()=>{if(oe(o.external))return!0;const E=oe(o.to)||oe(o.href)||"";return typeof E=="object"?!1:E===""||u.value}),d=Te(()=>{const E=oe(o.to)||oe(o.href)||"";return h.value?E:r(E,i.resolve,oe(o.trailingSlash))}),p=h.value?void 0:f?.({...o,to:d,viewTransition:oe(o.viewTransition)}),g=Te(()=>{const E=oe(o.trailingSlash)??e.trailingSlash;if(!d.value||u.value||n(d.value)){const S=d.value;return typeof S=="string"?_l(S):S}if(h.value){const S=typeof d.value=="object"&&"path"in d.value?Ho(d.value):d.value,_=typeof S=="object"?i.resolve(S).href:S,m=typeof _=="string"?_l(_):_;return m===null?null:qr(m,E)}return typeof d.value=="object"?i.resolve(d.value)?.href??null:qr(yi(l.app.baseURL,d.value),E)});return{to:d,hasTarget:a,isAbsoluteUrl:u,isExternal:h,href:g,isActive:p?.isActive??Te(()=>d.value===i.currentRoute.value.path),isExactActive:p?.isExactActive??Te(()=>d.value===i.currentRoute.value.path),route:p?.route??Te(()=>i.resolve(d.value)),async navigate(E){g.value!==null&&await Si(g.value,{replace:oe(o.replace),external:h.value||a.value})}}}return nn({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:s,setup(o,{slots:i}){const l=et(),{to:a,href:u,navigate:c,isExternal:f,hasTarget:h,isAbsoluteUrl:d}=s(o),p=_n(!1),g=wn(null),E=m=>{g.value=o.custom?m?.$el?.nextElementSibling:m?.$el};function S(m){return!p.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===m:o.prefetchOn?.[m]??e.prefetchOn?.[m])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!Ew()}async function _(m=ke()){if(p.value||u.value===null)return;p.value=!0;const b=typeof a.value=="string"?a.value:f.value?Ho(a.value):l.resolve(a.value).fullPath,w=f.value?new URL(b,window.location.href).href:b;await Promise.all([m.hooks.callHook("link:prefetch",w)?.catch(()=>{}),!f.value&&!h.value&&lf(a.value,l).catch(()=>{})])}if(S("visibility")){const m=ke();let b,w=null;Cr(()=>{const x=_w();Ri(()=>{b=Go(()=>{g?.value?.tagName&&(w=x.observe(g.value,async()=>{w?.(),w=null,await _(m)}))})})}),Pr(()=>{b&&Cv(b),w?.(),w=null})}return()=>{if(!f.value&&!h.value&&!n(a.value)){const w={ref:E,to:a.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(S("interaction")&&(w.onPointerenter=_.bind(null,void 0),w.onFocus=_.bind(null,void 0)),p.value&&(w.class=o.prefetchedClass||e.prefetchedClass),w.rel=o.rel||void 0),Qe(Vi("RouterLink"),w,i.default)}const m=o.target||null,b=vw(o.noRel?"":o.rel,e.externalRelAttribute,d.value||h.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:u.value,navigate:c,prefetch:_,get route(){if(!u.value)return;const w=new URL(u.value,window.location.href);return{path:w.pathname,fullPath:w.pathname,get query(){return mi(w.search)},hash:w.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:b,target:m,isExternal:f.value||h.value,isActive:!1,isExactActive:!1}):null:Qe("a",{ref:g,href:u.value||null,rel:b,target:m,onClick:async w=>{if(!(f.value||h.value)){w.preventDefault();try{const x=Pu(u.value??"");return await(o.replace?l.replace(x):l.push(x))}finally{if(n(a.value)){const x=a.value.slice(1);let T=x;try{T=decodeURIComponent(x)}catch{}document.getElementById(T)?.focus()}}}}},i.default?.())}}})}const bf=ww(Ag);function qr(e,t){const n=t==="append"?pu:Sr;return rn(e)&&!e.startsWith("http")?e:n(e,!0)}function _w(){const e=ke();if(e._observer)return e._observer;let t=null;const n=new Map,r=(o,i)=>(t||=new IntersectionObserver(l=>{for(const a of l){const u=n.get(a.target);(a.isIntersecting||a.intersectionRatio>0)&&u&&u()}}),n.set(o,i),t.observe(o),()=>{n.delete(o),t?.unobserve(o),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const Sw=/2g/;function Ew(){const e=navigator.connection;return!!(e&&(e.saveData||Sw.test(e.effectiveType)))}function vf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=vf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wf(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=vf(e))&&(r&&(r+=" "),r+=t);return r}const Sl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,El=wf,xw=(e,t)=>n=>{var r;if(t?.variants==null)return El(e,n?.class,n?.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(u=>{const c=n?.[u],f=o?.[u];if(c===null)return null;const h=Sl(c)||Sl(f);return s[u][h]}),l=n&&Object.entries(n).reduce((u,c)=>{let[f,h]=c;return h===void 0||(u[f]=h),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:h,...d}=c;return Object.entries(d).every(p=>{let[g,E]=p;return Array.isArray(E)?E.includes({...o,...l}[g]):{...o,...l}[g]===E})?[...u,f,h]:u},[]);return El(e,i,a,n?.class,n?.className)},kw=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Rw=(e,t)=>({classGroupId:e,validator:t}),_f=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),bs="-",xl=[],Tw="arbitrary..",Cw=e=>{const t=Aw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Pw(i);const l=i.split(bs),a=l[0]===""&&l.length>1?1:0;return Sf(l,a,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const a=r[i],u=n[i];return a?u?kw(u,a):a:u||xl}return n[i]||xl}}},Sf=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],o=n.nextPart.get(s);if(o){const u=Sf(e,t+1,o);if(u)return u}const i=n.validators;if(i===null)return;const l=t===0?e.join(bs):e.slice(t).join(bs),a=i.length;for(let u=0;u<a;u++){const c=i[u];if(c.validator(l))return c.classGroupId}},Pw=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Tw+r:void 0})(),Aw=e=>{const{theme:t,classGroups:n}=e;return Ow(n,t)},Ow=(e,t)=>{const n=_f();for(const r in e){const s=e[r];Ai(s,n,r,t)}return n},Ai=(e,t,n,r)=>{const s=e.length;for(let o=0;o<s;o++){const i=e[o];Mw(i,t,n,r)}},Mw=(e,t,n,r)=>{if(typeof e=="string"){Iw(e,t,n);return}if(typeof e=="function"){Lw(e,t,n,r);return}Nw(e,t,n,r)},Iw=(e,t,n)=>{const r=e===""?t:Ef(t,e);r.classGroupId=n},Lw=(e,t,n,r)=>{if(Fw(e)){Ai(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Rw(n,e))},Nw=(e,t,n,r)=>{const s=Object.entries(e),o=s.length;for(let i=0;i<o;i++){const[l,a]=s[i];Ai(a,Ef(t,l),n,r)}},Ef=(e,t)=>{let n=e;const r=t.split(bs),s=r.length;for(let o=0;o<s;o++){const i=r[o];let l=n.nextPart.get(i);l||(l=_f(),n.nextPart.set(i,l)),n=l}return n},Fw=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,jw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const s=(o,i)=>{n[o]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let i=n[o];if(i!==void 0)return i;if((i=r[o])!==void 0)return s(o,i),i},set(o,i){o in n?n[o]=i:s(o,i)}}},ti="!",kl=":",Hw=[],Rl=(e,t,n,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),Dw=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const o=[];let i=0,l=0,a=0,u;const c=s.length;for(let g=0;g<c;g++){const E=s[g];if(i===0&&l===0){if(E===kl){o.push(s.slice(a,g)),a=g+1;continue}if(E==="/"){u=g;continue}}E==="["?i++:E==="]"?i--:E==="("?l++:E===")"&&l--}const f=o.length===0?s:s.slice(a);let h=f,d=!1;f.endsWith(ti)?(h=f.slice(0,-1),d=!0):f.startsWith(ti)&&(h=f.slice(1),d=!0);const p=u&&u>a?u-a:void 0;return Rl(o,d,h,p)};if(t){const s=t+kl,o=r;r=i=>i.startsWith(s)?o(i.slice(s.length)):Rl(Hw,!1,i,void 0,!0)}if(n){const s=r;r=o=>n({className:o,parseClassName:s})}return r},$w=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let s=[];for(let o=0;o<n.length;o++){const i=n[o],l=i[0]==="[",a=t.has(i);l||a?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(i)):s.push(i)}return s.length>0&&(s.sort(),r.push(...s)),r}},Uw=e=>({cache:jw(e.cacheSize),parseClassName:Dw(e),sortModifiers:$w(e),postfixLookupClassGroupIds:Bw(e),...Cw(e)}),Bw=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},qw=/\s+/,Vw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:o,postfixLookupClassGroupIds:i}=t,l=[],a=e.trim().split(qw);let u="";for(let c=a.length-1;c>=0;c-=1){const f=a[c],{isExternal:h,modifiers:d,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:E}=n(f);if(h){u=f+(u.length>0?" "+u:u);continue}let S=!!E,_;if(S){const T=g.substring(0,E);_=r(T);const R=_&&i[_]?r(g):void 0;R&&R!==_&&(_=R,S=!1)}else _=r(g);if(!_){if(!S){u=f+(u.length>0?" "+u:u);continue}if(_=r(g),!_){u=f+(u.length>0?" "+u:u);continue}S=!1}const m=d.length===0?"":d.length===1?d[0]:o(d).join(":"),b=p?m+ti:m,w=b+_;if(l.indexOf(w)>-1)continue;l.push(w);const x=s(_,S);for(let T=0;T<x.length;++T){const R=x[T];l.push(b+R)}u=f+(u.length>0?" "+u:u)}return u},Ww=(...e)=>{let t=0,n,r,s="";for(;t<e.length;)(n=e[t++])&&(r=xf(n))&&(s&&(s+=" "),s+=r);return s},xf=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=xf(e[r]))&&(n&&(n+=" "),n+=t);return n},Kw=(e,...t)=>{let n,r,s,o;const i=a=>{const u=t.reduce((c,f)=>f(c),e());return n=Uw(u),r=n.cache.get,s=n.cache.set,o=l,l(a)},l=a=>{const u=r(a);if(u)return u;const c=Vw(a,n);return s(a,c),c};return o=i,(...a)=>o(Ww(...a))},zw=[],Oe=e=>{const t=n=>n[e]||zw;return t.isThemeGetter=!0,t},kf=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rf=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Gw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wt=e=>Qw.test(e),ie=e=>!!e&&!Number.isNaN(Number(e)),bt=e=>!!e&&Number.isInteger(Number(e)),mo=e=>e.endsWith("%")&&ie(e.slice(0,-1)),Mt=e=>Gw.test(e),Tf=()=>!0,e_=e=>Jw.test(e)&&!Yw.test(e),Oi=()=>!1,t_=e=>Xw.test(e),n_=e=>Zw.test(e),r_=e=>!K(e)&&!z(e),s_=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),o_=e=>sn(e,Af,Oi),K=e=>kf.test(e),fn=e=>sn(e,Of,e_),Tl=e=>sn(e,h_,ie),i_=e=>sn(e,If,Tf),a_=e=>sn(e,Mf,Oi),Cl=e=>sn(e,Cf,Oi),l_=e=>sn(e,Pf,n_),Vr=e=>sn(e,Lf,t_),z=e=>Rf.test(e),nr=e=>xn(e,Of),c_=e=>xn(e,Mf),Pl=e=>xn(e,Cf),u_=e=>xn(e,Af),f_=e=>xn(e,Pf),Wr=e=>xn(e,Lf,!0),d_=e=>xn(e,If,!0),sn=(e,t,n)=>{const r=kf.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},xn=(e,t,n=!1)=>{const r=Rf.exec(e);return r?r[1]?t(r[1]):n:!1},Cf=e=>e==="position"||e==="percentage",Pf=e=>e==="image"||e==="url",Af=e=>e==="length"||e==="size"||e==="bg-size",Of=e=>e==="length",h_=e=>e==="number",Mf=e=>e==="family-name",If=e=>e==="number"||e==="weight",Lf=e=>e==="shadow",p_=()=>{const e=Oe("color"),t=Oe("font"),n=Oe("text"),r=Oe("font-weight"),s=Oe("tracking"),o=Oe("leading"),i=Oe("breakpoint"),l=Oe("container"),a=Oe("spacing"),u=Oe("radius"),c=Oe("shadow"),f=Oe("inset-shadow"),h=Oe("text-shadow"),d=Oe("drop-shadow"),p=Oe("blur"),g=Oe("perspective"),E=Oe("aspect"),S=Oe("ease"),_=Oe("animate"),m=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...b(),z,K],x=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],R=()=>[z,K,a],A=()=>[Wt,"full","auto",...R()],F=()=>[bt,"none","subgrid",z,K],U=()=>["auto",{span:["full",bt,z,K]},bt,z,K],L=()=>[bt,"auto",z,K],q=()=>["auto","min","max","fr",z,K],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...R()],X=()=>[Wt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],Z=()=>[Wt,"screen","full","dvw","lvw","svw","min","max","fit",...R()],Se=()=>[Wt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...R()],H=()=>[e,z,K],fe=()=>[...b(),Pl,Cl,{position:[z,K]}],Ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ct=()=>["auto","cover","contain",u_,o_,{size:[z,K]}],mt=()=>[mo,nr,fn],_e=()=>["","none","full",u,z,K],me=()=>["",ie,nr,fn],C=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>[ie,mo,Pl,Cl],J=()=>["","none",p,z,K],se=()=>["none",ie,z,K],ge=()=>["none",ie,z,K],y=()=>[ie,z,K],v=()=>[Wt,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Mt],breakpoint:[Mt],color:[Tf],container:[Mt],"drop-shadow":[Mt],ease:["in","out","in-out"],font:[r_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Mt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Mt],shadow:[Mt],spacing:["px",ie],text:[Mt],"text-shadow":[Mt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Wt,K,z,E]}],container:["container"],"container-type":[{"@container":["","normal","size",z,K]}],"container-named":[s_],columns:[{columns:[ie,K,z,l]}],"break-after":[{"break-after":m()}],"break-before":[{"break-before":m()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{"inset-s":A(),start:A()}],end:[{"inset-e":A(),end:A()}],"inset-bs":[{"inset-bs":A()}],"inset-be":[{"inset-be":A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[bt,"auto",z,K]}],basis:[{basis:[Wt,"full","auto",l,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ie,Wt,"auto","initial","none",K]}],grow:[{grow:["",ie,z,K]}],shrink:[{shrink:["",ie,z,K]}],order:[{order:[bt,"first","last","none",z,K]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pbs:[{pbs:R()}],pbe:[{pbe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...Se()]}],"min-block-size":[{"min-block":["auto",...Se()]}],"max-block-size":[{"max-block":["none",...Se()]}],w:[{w:[l,"screen",...X()]}],"min-w":[{"min-w":[l,"screen","none",...X()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,nr,fn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,d_,i_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mo,K]}],"font-family":[{font:[c_,a_,t]}],"font-features":[{"font-features":[K]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,z,K]}],"line-clamp":[{"line-clamp":[ie,"none",z,Tl]}],leading:[{leading:[o,...R()]}],"list-image":[{"list-image":["none",z,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",z,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...C(),"wavy"]}],"text-decoration-thickness":[{decoration:[ie,"from-font","auto",z,fn]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[ie,"auto",z,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"tab-size":[{tab:[bt,z,K]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z,K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",z,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:Ne()}],"bg-size":[{bg:Ct()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},bt,z,K],radial:["",z,K],conic:[bt,z,K]},f_,l_]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:mt()}],"gradient-via-pos":[{via:mt()}],"gradient-to-pos":[{to:mt()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:_e()}],"rounded-s":[{"rounded-s":_e()}],"rounded-e":[{"rounded-e":_e()}],"rounded-t":[{"rounded-t":_e()}],"rounded-r":[{"rounded-r":_e()}],"rounded-b":[{"rounded-b":_e()}],"rounded-l":[{"rounded-l":_e()}],"rounded-ss":[{"rounded-ss":_e()}],"rounded-se":[{"rounded-se":_e()}],"rounded-ee":[{"rounded-ee":_e()}],"rounded-es":[{"rounded-es":_e()}],"rounded-tl":[{"rounded-tl":_e()}],"rounded-tr":[{"rounded-tr":_e()}],"rounded-br":[{"rounded-br":_e()}],"rounded-bl":[{"rounded-bl":_e()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-bs":[{"border-bs":me()}],"border-w-be":[{"border-be":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...C(),"hidden","none"]}],"divide-style":[{divide:[...C(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-bs":[{"border-bs":H()}],"border-color-be":[{"border-be":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...C(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ie,z,K]}],"outline-w":[{outline:["",ie,nr,fn]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",c,Wr,Vr]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",f,Wr,Vr]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[ie,fn]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",h,Wr,Vr]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[ie,z,K]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":N()}],"mask-image-linear-to-pos":[{"mask-linear-to":N()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":N()}],"mask-image-t-to-pos":[{"mask-t-to":N()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":N()}],"mask-image-r-to-pos":[{"mask-r-to":N()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":N()}],"mask-image-b-to-pos":[{"mask-b-to":N()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":N()}],"mask-image-l-to-pos":[{"mask-l-to":N()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":N()}],"mask-image-x-to-pos":[{"mask-x-to":N()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":N()}],"mask-image-y-to-pos":[{"mask-y-to":N()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[z,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":N()}],"mask-image-radial-to-pos":[{"mask-radial-to":N()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":N()}],"mask-image-conic-to-pos":[{"mask-conic-to":N()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:Ne()}],"mask-size":[{mask:Ct()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",z,K]}],filter:[{filter:["","none",z,K]}],blur:[{blur:J()}],brightness:[{brightness:[ie,z,K]}],contrast:[{contrast:[ie,z,K]}],"drop-shadow":[{"drop-shadow":["","none",d,Wr,Vr]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",ie,z,K]}],"hue-rotate":[{"hue-rotate":[ie,z,K]}],invert:[{invert:["",ie,z,K]}],saturate:[{saturate:[ie,z,K]}],sepia:[{sepia:["",ie,z,K]}],"backdrop-filter":[{"backdrop-filter":["","none",z,K]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[ie,z,K]}],"backdrop-contrast":[{"backdrop-contrast":[ie,z,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ie,z,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ie,z,K]}],"backdrop-invert":[{"backdrop-invert":["",ie,z,K]}],"backdrop-opacity":[{"backdrop-opacity":[ie,z,K]}],"backdrop-saturate":[{"backdrop-saturate":[ie,z,K]}],"backdrop-sepia":[{"backdrop-sepia":["",ie,z,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",z,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ie,"initial",z,K]}],ease:[{ease:["linear","initial",S,z,K]}],delay:[{delay:[ie,z,K]}],animate:[{animate:["none",_,z,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,z,K]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:y()}],"skew-x":[{"skew-x":y()}],"skew-y":[{"skew-y":y()}],transform:[{transform:[z,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:v()}],"translate-x":[{"translate-x":v()}],"translate-y":[{"translate-y":v()}],"translate-z":[{"translate-z":v()}],"translate-none":["translate-none"],zoom:[{zoom:[bt,z,K]}],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",z,K]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":H()}],"scrollbar-track-color":[{"scrollbar-track":H()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mbs":[{"scroll-mbs":R()}],"scroll-mbe":[{"scroll-mbe":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pbs":[{"scroll-pbs":R()}],"scroll-pbe":[{"scroll-pbe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",z,K]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[ie,nr,fn,Tl]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},g_=Kw(p_);function ni(...e){return g_(wf(e))}const m_=["type","disabled"],y_=nn({__name:"Button",props:{variant:{},size:{},class:{},type:{},to:{},disabled:{type:Boolean}},setup(e){const t=xw("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-semibold transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50 active:scale-[0.97] [&_svg]:size-[18px] [&_svg]:shrink-0",{variants:{variant:{default:"btn-gloss bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"btn-gloss bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-card hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-11 px-5 py-2",sm:"h-9 rounded-lg px-3.5 text-sm",lg:"h-12 px-6 text-base",icon:"h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}}),n=e;return(r,s)=>{const o=bf;return e.to?($e(),jt(o,{key:0,to:e.to,class:Gt(oe(ni)(oe(t)({variant:e.variant,size:e.size}),n.class))},{default:mn(()=>[Ki(r.$slots,"default")]),_:3},8,["to","class"])):($e(),jn("button",{key:1,type:e.type??"button",disabled:e.disabled,class:Gt(oe(ni)(oe(t)({variant:e.variant,size:e.size}),n.class))},[Ki(r.$slots,"default")],10,m_))}}}),Nf=Object.assign(y_,{__name:"Button"}),Ff=(e="RouteProvider")=>nn({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,r=t.route,s={};for(const o in t.route)Object.defineProperty(s,o,{get:()=>n===t.renderKey?t.route[o]:r[o],enumerable:!0});return In(Hs,Et(s)),()=>t.vnode?Qe(t.vnode,{ref:t.vnodeRef}):t.vnode}}),b_=Ff(),Al=new WeakMap,v_=nn({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const s=ke(),o=wn(),i=ot(Hs,null);let l;r({pageRef:o});const a=ot(Vg,null);let u;const c=s.deferHydration();let f=!1,h=!1,d=0;if(s.isHydrating){const g=s.hooks.hookOnce("app:error",c),E=et().beforeEach(()=>{g(),E()})}e.pageKey&&Ln(()=>e.pageKey,(g,E)=>{g!==E&&s.callHook("page:loading:start")});let p=!1;{const g=et().beforeResolve(()=>{p=!1});Pr(()=>{g(),c()})}return()=>Qe(Yu,{name:e.name,route:e.route,...t},{default:g=>{const E=w_(i,g.route,g.Component),S=i&&i.matched.length===g.route.matched.length;if(!g.Component){if(u&&!S&&!yo(u))return u;c();return}if(u&&a&&!yo(u)&&!a.isCurrent(g.route))return u;if(E&&i&&(!a||a?.isCurrent(i)))return(S||u)&&!yo(u)?u:null;const _=Ko(g,e.pageKey),m=__(i,g.route,g.Component);!s.isHydrating&&l===_&&!m&&Sn(()=>{p||(p=!0,s.callHook("page:loading:end"))}),f&&l!==_&&h&&d++,l=_;const b=!!(e.transition??g.route.meta.pageTransition??Ra),w=b&&rb([e.transition,g.route.meta.pageTransition,Ra,{onAfterLeave(){s["~transitionFinish"]?.(),delete s["~transitionFinish"],delete s["~transitionPromise"],s.callHook("page:transition:finish",g.Component)}}]),x=e.keepalive??g.route.meta.keepalive??Pg;return u=Xy(b&&w,Gy(x,Qe(Jc,{key:d,suspensible:!0,onPending:()=>{f=!0,b&&!s["~transitionPromise"]&&(s["~transitionPromise"]=new Promise(T=>{s["~transitionFinish"]=T})),s.callHook("page:start",g.Component)},onResolve:async()=>{f=!1,h=!0;try{await Sn(),s._route.sync?.(),await s.callHook("page:finish",g.Component),!p&&!m&&(p=!0,await s.callHook("page:loading:end"))}finally{c()}}},{default:()=>{const T={key:_||void 0,vnode:n.default?S_(n.default,g):g.Component,route:g.route,renderKey:_||void 0,trackRootNodes:b,vnodeRef:o};if(!x)return Qe(b_,T);const R=g.Component.type,A=R;let F=Al.get(A);return F||(F=Ff(R.name||R.__name),Al.set(A,F)),Qe(F,T)}}))).default(),u}})}});function w_(e,t,n){if(!e)return!1;const r=t.matched.findIndex(i=>i.components?.default===n?.type);if(r===-1)return!1;const s=t.matched.slice(0,r).filter(i=>i.components?.default);if(!s.length)return!1;const o=e.matched.filter(i=>i.components?.default);return s.some((i,l)=>i.components?.default!==o[l]?.components?.default)||n&&Ko({route:t,Component:n})!==Ko({route:e,Component:n})}function __(e,t,n){return e?t.matched.findIndex(s=>s.components?.default===n?.type)<t.matched.length-1:!1}function S_(e,t){const n=e(t);return n.length===1?Qe(n[0]):Qe(je,void 0,n)}function yo(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}const E_="$s";function x_(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=E_+n,o=ke(),i=lc(o.payload.state,s);if(r&&(o._state[s]??={_default:r}),i.value===void 0&&r){const l=r();if(xe(l))return o.payload.state[s]=l,l;i.value=l}return i}const Ol="nostale-color-scheme";function Ml(e){return e==="dark"||e==="auto"&&window.matchMedia("(prefers-color-scheme: dark)").matches}function k_(){const e=x_("color-scheme",()=>"auto");function t(s){document.documentElement.classList.toggle("dark",Ml(s))}function n(s){e.value=s,localStorage.setItem(Ol,s),t(s)}function r(){n(Ml(e.value)?"light":"dark")}return Cr(()=>{e.value=localStorage.getItem(Ol)??"auto"}),{scheme:e,set:n,toggle:r}}const R_={class:"min-h-screen"},T_={key:0,class:"glass sticky top-0 z-40 flex items-center justify-between border-b px-6 py-3"},C_={class:"flex items-center gap-6"},P_={class:"flex items-center gap-1"},A_={class:"flex items-center gap-2"},O_={id:"main-content",class:"mx-auto max-w-6xl px-6 py-8"},M_=nn({__name:"app",setup(e){const t=Cu(),n=af(),{scheme:r,toggle:s}=k_(),o=Te(()=>r.value==="dark"||r.value==="auto"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches),i=[{to:"/wiki",label:"Wiki",icon:"lni lni-notebook-1"},{to:"/graph",label:"Graph",icon:"lni lni-layers-1"},{to:"/documents",label:"Documents",icon:"lni lni-file-multiple"},{to:"/settings/sources",label:"Sources",icon:"lni lni-git"},{to:"/settings/providers",label:"Providers",icon:"lni lni-database-2"},{to:"/settings/templates",label:"Templates",icon:"lni lni-layout-9"},{to:"/settings/mcp-tokens",label:"MCP Tokens",icon:"lni lni-key-1"}];function l(u){const c=t.path.startsWith(u);return ni("flex items-center gap-1.5 rounded-lg px-3 py-1.5 text-sm font-medium transition-colors",c?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground")}async function a(){await n.signOut(),await Si("/login")}return(u,c)=>{const f=bf,h=Nf,d=v_;return $e(),jn("div",R_,[c[2]||(c[2]=Le("a",{href:"#main-content",class:"sr-only focus-visible:not-sr-only focus-visible:fixed focus-visible:left-4 focus-visible:top-4 focus-visible:z-50 focus-visible:rounded-lg focus-visible:bg-primary focus-visible:px-4 focus-visible:py-2 focus-visible:text-sm focus-visible:font-semibold focus-visible:text-primary-foreground"}," Skip to content ",-1)),oe(t).path!=="/login"?($e(),jn("header",T_,[Le("div",C_,[c[0]||(c[0]=Le("span",{class:"text-base font-bold tracking-tight text-foreground"},"NoStale",-1)),Le("nav",P_,[($e(),jn(je,null,eh(i,p=>Ee(f,{key:p.to,to:p.to,class:Gt(l(p.to))},{default:mn(()=>[Le("i",{class:Gt([p.icon,"text-[16px]"])},null,2),br(" "+ar(p.label),1)]),_:2},1032,["to","class"])),64))])]),Le("div",A_,[Ee(h,{variant:"ghost",size:"icon","aria-label":"Toggle color scheme",onClick:oe(s)},{default:mn(()=>[Le("i",{class:Gt(oe(o)?"lni lni-sun-1":"lni lni-moon-half-right-5")},null,2)]),_:1},8,["onClick"]),Ee(h,{variant:"ghost",size:"sm",onClick:a},{default:mn(()=>[...c[1]||(c[1]=[br("Sign out",-1)])]),_:1})])])):nu("",!0),Le("main",O_,[Ee(d)])])}}}),I_={class:"flex min-h-screen flex-col"},L_={class:"flex flex-1 items-center justify-center px-6 py-24 text-center"},N_={class:"max-w-md"},F_={class:"font-mono text-sm text-muted-foreground"},j_={class:"mt-2 text-3xl font-bold tracking-tight text-foreground"},H_={class:"mt-3 text-muted-foreground"},D_={class:"mt-8 flex flex-wrap items-center justify-center gap-3"},$_=nn({__name:"error",props:{error:{}},setup(e){const n=e.error.statusCode===404;return(r,s)=>{const o=Nf;return $e(),jn("div",I_,[s[2]||(s[2]=Le("header",{class:"border-b px-6 py-3"},[Le("div",{class:"mx-auto flex max-w-5xl items-center justify-between"},[Le("span",{class:"text-base font-bold tracking-tight text-foreground"},"NoStale")])],-1)),Le("main",L_,[Le("div",N_,[Le("p",F_,ar(e.error.statusCode),1),Le("h1",j_,ar(n?"That page doesn't exist.":"Something went wrong."),1),Le("p",H_,ar(n?"The page may have moved, or the link is out of date. Head back to the wiki.":e.error.statusMessage||"An unexpected error occurred."),1),Le("div",D_,[Ee(o,{size:"lg",onClick:s[0]||(s[0]=i=>("clearError"in r?r.clearError:oe(Ou))({redirect:"/"}))},{default:mn(()=>[...s[1]||(s[1]=[br("Back to home",-1)])]),_:1})])])])])}}}),U_={key:0},Il={__name:"nuxt-root",setup(e){const t=()=>null,n=ke(),r=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",r),f=et().beforeEach(()=>{c(),f()})}const s=!1;In(Hs,Cu()),n.hooks.callHookWith(c=>c.map(f=>f()),"vue:setup",[]);const o=Ds(),i=!1,l=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;function a(c,f,h){const d=n.vueApp.config.errorHandler;if(d&&!d.__nuxt_default)try{d(c,f,h)}catch(p){console.error("[nuxt] Error in `app.config.errorHandler`",p)}}Rc((c,f,h)=>{if(n.hooks.callHook("vue:error",c,f,h)?.catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),l.test(navigator.userAgent))return n.hooks.callHook("app:error",c),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,c),!1;if(Mu(c)&&(c.fatal||c.unhandled))return n.runWithContext(()=>hn(c)),a(c,f,h),!1});const u=!1;return(c,f)=>($e(),jt(Jc,{onResolve:oe(r)},{default:mn(()=>[oe(i)?($e(),jn("div",U_)):oe(o)?($e(),jt(oe($_),{key:1,error:oe(o)},null,8,["error"])):oe(u)?($e(),jt(oe(t),{key:2,context:oe(u)},null,8,["context"])):oe(s)?($e(),jt(Zd(oe(s)),{key:3})):($e(),jt(oe(M_),{key:4}))]),_:1},8,["onResolve"]))}};let Ll;{let e;Ll=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?Rp(Il):kp(Il),s=Lg({vueApp:r});async function o(i){await s.callHook("app:error",i),s.payload.error||=vn(i)}o.__nuxt_default=!0,r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)}),!n&&Ta.id&&s.hook("app:suspense:resolve",()=>{document.getElementById(Ta.id)?.remove()});try{await jg(s,bw)}catch(i){o(i)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(Og),await s.hooks.callHook("app:mounted",r),await Sn()}catch(i){o(i)}return r},e=Ll().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{B_ as $,Ki as A,Si as B,xw as C,af as D,Q_ as E,je as F,G_ as G,K_ as H,Yv as I,Vv as J,Y_ as K,Yo as L,ct as M,Pi as N,Bv as O,qv as P,Jo as Q,cf as R,Us as S,ow as T,zv as U,We as V,pc as W,ot as X,uw as Y,Et as Z,Nf as _,Le as a,_o as a0,q_ as a1,X_ as a2,n0 as a3,ae as a4,Jf as a5,z_ as a6,nu as b,jn as c,nn as d,Ee as e,J_ as f,wn as g,br as h,xe as i,jt as j,V_ as k,tn as l,Ln as m,yp as n,$e as o,Gt as p,bf as q,eh as r,Cu as s,ar as t,oe as u,vp as v,mn as w,W_ as x,Te as y,ni as z};
|