From fbe4d52c2a39d2fda2f82be7c7f83047b6482bb6 Mon Sep 17 00:00:00 2001 From: Harry-zklcdc Date: Tue, 25 Jul 2023 07:30:58 +0000 Subject: [PATCH] =?UTF-8?q?[Upgrade]=20=F0=9F=9A=80=20Upload=20latest=20we?= =?UTF-8?q?bFile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/assets/index-07ea0599.css | 1 + web/assets/index-29dab197.css | 1 - .../{index-6fdcb9a0.js => index-2fa7b466.js} | 118 +- .../{index-5dc69d8e.js => index-ceb80788.js} | 6 +- web/compose.html | 2719 +---------------- web/index.html | 4 +- web/sw.js | 2 +- 7 files changed, 92 insertions(+), 2759 deletions(-) create mode 100644 web/assets/index-07ea0599.css delete mode 100644 web/assets/index-29dab197.css rename web/assets/{index-6fdcb9a0.js => index-2fa7b466.js} (73%) rename web/assets/{index-5dc69d8e.js => index-ceb80788.js} (96%) diff --git a/web/assets/index-07ea0599.css b/web/assets/index-07ea0599.css new file mode 100644 index 0000000000..5f54bdd99c --- /dev/null +++ b/web/assets/index-07ea0599.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.absolute{position:absolute}.bottom-\[110px\]{bottom:110px}.left-0{left:0}.right-4{right:1rem}.right-6{right:1.5rem}.top-0{top:0}.top-6{top:1.5rem}.z-50{z-index:50}.float-right{float:right}.my-4{margin-top:1rem;margin-bottom:1rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.hidden{display:none}.h-\[130px\]{height:130px}.h-\[350px\]{height:350px}.h-\[40vh\]{height:40vh}.h-screen{height:100vh}.max-h-\[390px\]{max-height:390px}.w-0{width:0px}.w-11\/12{width:91.666667%}.w-\[310px\]{width:310px}.w-\[56px\]{width:56px}.w-full{width:100%}.w-screen{width:100vw}.max-w-\[1060px\]{max-width:1060px}.max-w-\[120px\]{max-width:120px}.max-w-\[310px\]{max-width:310px}.flex-1{flex:1 1 0%}.basis-full{flex-basis:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.text-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.bg-black\/40{background-color:#0006}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-5{padding:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[14px\]{padding-left:14px;padding-right:14px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-\[\#c2c2c2\]{--tw-text-opacity: 1;color:rgb(194 194 194 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.cib-serp-main{overflow:hidden}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:w-\[60px\]{width:60px}.md\:px-\[170px\]{padding-left:170px;padding-right:170px}.md\:px-\[34px\]{padding-left:34px;padding-right:34px}}@media (min-width: 1024px){.lg\:block{display:block}.lg\:table-cell{display:table-cell}.lg\:hidden{display:none}.lg\:w-\[400px\]{width:400px}.lg\:w-\[540px\]{width:540px}.lg\:w-\[900px\]{width:900px}}@media (min-width: 1280px){.xl\:h-\[520px\]{height:520px}.xl\:h-\[60vh\]{height:60vh}.xl\:w-\[475px\]{width:475px}.xl\:w-\[600px\]{width:600px}.xl\:w-\[900px\]{width:900px}.xl\:w-auto{width:auto}.xl\:min-w-\[300px\]{min-width:300px}.xl\:max-w-\[650px\]{max-width:650px}.xl\:basis-0{flex-basis:0px}.xl\:px-10{padding-left:2.5rem;padding-right:2.5rem}.xl\:px-\[220px\]{padding-left:220px;padding-right:220px}} diff --git a/web/assets/index-29dab197.css b/web/assets/index-29dab197.css deleted file mode 100644 index 2a2db9b488..0000000000 --- a/web/assets/index-29dab197.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.absolute{position:absolute}.bottom-\[110px\]{bottom:110px}.left-0{left:0px}.right-4{right:1rem}.right-6{right:1.5rem}.top-0{top:0px}.top-6{top:1.5rem}.z-50{z-index:50}.float-right{float:right}.my-4{margin-top:1rem;margin-bottom:1rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.hidden{display:none}.h-\[130px\]{height:130px}.h-\[350px\]{height:350px}.h-\[40vh\]{height:40vh}.h-screen{height:100vh}.max-h-\[390px\]{max-height:390px}.w-0{width:0px}.w-11\/12{width:91.666667%}.w-\[310px\]{width:310px}.w-\[56px\]{width:56px}.w-full{width:100%}.w-screen{width:100vw}.max-w-\[1060px\]{max-width:1060px}.max-w-\[120px\]{max-width:120px}.max-w-\[310px\]{max-width:310px}.flex-1{flex:1 1 0%}.basis-full{flex-basis:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.text-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.bg-black\/40{background-color:#0006}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-5{padding:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[14px\]{padding-left:14px;padding-right:14px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-\[\#c2c2c2\]{--tw-text-opacity: 1;color:rgb(194 194 194 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.cib-serp-main{overflow:hidden}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:w-\[60px\]{width:60px}.md\:px-\[170px\]{padding-left:170px;padding-right:170px}.md\:px-\[34px\]{padding-left:34px;padding-right:34px}}@media (min-width: 1024px){.lg\:block{display:block}.lg\:table-cell{display:table-cell}.lg\:hidden{display:none}.lg\:w-\[400px\]{width:400px}.lg\:w-\[540px\]{width:540px}.lg\:w-\[900px\]{width:900px}}@media (min-width: 1280px){.xl\:h-\[520px\]{height:520px}.xl\:h-\[60vh\]{height:60vh}.xl\:w-\[475px\]{width:475px}.xl\:w-\[600px\]{width:600px}.xl\:w-\[900px\]{width:900px}.xl\:w-auto{width:auto}.xl\:min-w-\[300px\]{min-width:300px}.xl\:max-w-\[650px\]{max-width:650px}.xl\:basis-0{flex-basis:0px}.xl\:px-10{padding-left:2.5rem;padding-right:2.5rem}.xl\:px-\[220px\]{padding-left:220px;padding-right:220px}} diff --git a/web/assets/index-6fdcb9a0.js b/web/assets/index-2fa7b466.js similarity index 73% rename from web/assets/index-6fdcb9a0.js rename to web/assets/index-2fa7b466.js index c768c4ad87..c61d3f3902 100644 --- a/web/assets/index-6fdcb9a0.js +++ b/web/assets/index-2fa7b466.js @@ -1,24 +1,24 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Hi(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}const Re={},Rn=[],ct=()=>{},xf=()=>!1,Cf=/^on[^a-z]/,yo=e=>Cf.test(e),Fi=e=>e.startsWith("onUpdate:"),ke=Object.assign,Li=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},wf=Object.prototype.hasOwnProperty,ve=(e,t)=>wf.call(e,t),ie=Array.isArray,Tn=e=>xo(e)==="[object Map]",za=e=>xo(e)==="[object Set]",ue=e=>typeof e=="function",Be=e=>typeof e=="string",ji=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",Ia=e=>_e(e)&&ue(e.then)&&ue(e.catch),Aa=Object.prototype.toString,xo=e=>Aa.call(e),Sf=e=>xo(e).slice(8,-1),ka=e=>xo(e)==="[object Object]",Di=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,no=Hi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Co=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_f=/-(\w)/g,In=Co(e=>e.replace(_f,(t,n)=>n?n.toUpperCase():"")),$f=/\B([A-Z])/g,mn=Co(e=>e.replace($f,"-$1").toLowerCase()),Ba=Co(e=>e.charAt(0).toUpperCase()+e.slice(1)),No=Co(e=>e?`on${Ba(e)}`:""),mr=(e,t)=>!Object.is(e,t),Wo=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ef=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Pf=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let Rs;const si=()=>Rs||(Rs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ni(e){if(ie(e)){const t={};for(let n=0;n{if(n){const r=n.split(Tf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Wi(e){let t="";if(Be(e))t=e;else if(ie(e))for(let n=0;nBe(e)?e:e==null?"":ie(e)||_e(e)&&(e.toString===Aa||!ue(e.toString))?JSON.stringify(e,Ha,2):String(e),Ha=(e,t)=>t&&t.__v_isRef?Ha(e,t.value):Tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:za(t)?{[`Set(${t.size})`]:[...t.values()]}:_e(t)&&!ie(t)&&!ka(t)?String(t):t;let tt;class Fa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=tt,!t&&tt&&(this.index=(tt.scopes||(tt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=tt;try{return tt=this,t()}finally{tt=n}}}on(){tt=this}off(){tt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Da=e=>(e.w&Vt)>0,Na=e=>(e.n&Vt)>0,Mf=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ie(e)?Di(n)&&l.push(s.get("length")):(l.push(s.get(un)),Tn(e)&&l.push(s.get(ai)));break;case"delete":ie(e)||(l.push(s.get(un)),Tn(e)&&l.push(s.get(ai)));break;case"set":Tn(e)&&l.push(s.get(un));break}if(l.length===1)l[0]&&ci(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);ci(Ui(a))}}function ci(e,t){const n=ie(e)?e:[...e];for(const r of n)r.computed&&Os(r);for(const r of n)r.computed||Os(r)}function Os(e,t){(e!==lt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Ff(e,t){var n;return(n=ao.get(e))==null?void 0:n.get(t)}const Lf=Hi("__proto__,__v_isRef,__isVue"),Ka=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ji)),jf=Vi(),Df=Vi(!1,!0),Nf=Vi(!0),zs=Wf();function Wf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ge(this);for(let i=0,s=this.length;i{e[t]=function(...n){jn();const r=ge(this)[t].apply(this,n);return Dn(),r}}),e}function Uf(e){const t=ge(this);return et(t,"has",e),t.hasOwnProperty(e)}function Vi(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?sd:Ya:t?Xa:Ga).get(r))return r;const s=ie(r);if(!e){if(s&&ve(zs,o))return Reflect.get(zs,o,i);if(o==="hasOwnProperty")return Uf}const l=Reflect.get(r,o,i);return(ji(o)?Ka.has(o):Lf(o))||(e||et(r,"get",o),t)?l:Oe(l)?s&&Di(o)?l:l.value:_e(l)?e?Ot(l):Gt(l):l}}const Kf=Va(),Vf=Va(!0);function Va(e=!1){return function(n,r,o,i){let s=n[r];if(An(s)&&Oe(s)&&!Oe(o))return!1;if(!e&&(!co(o)&&!An(o)&&(s=ge(s),o=ge(o)),!ie(n)&&Oe(s)&&!Oe(o)))return s.value=o,!0;const l=ie(n)&&Di(r)?Number(r)e,wo=e=>Reflect.getPrototypeOf(e);function Lr(e,t,n=!1,r=!1){e=e.__v_raw;const o=ge(e),i=ge(t);n||(t!==i&&et(o,"get",t),et(o,"get",i));const{has:s}=wo(o),l=r?qi:n?Yi:br;if(s.call(o,t))return l(e.get(t));if(s.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function jr(e,t=!1){const n=this.__v_raw,r=ge(n),o=ge(e);return t||(e!==o&&et(r,"has",e),et(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Dr(e,t=!1){return e=e.__v_raw,!t&&et(ge(e),"iterate",un),Reflect.get(e,"size",e)}function Is(e){e=ge(e);const t=ge(this);return wo(t).has.call(t,e)||(t.add(e),Tt(t,"add",e,e)),this}function As(e,t){t=ge(t);const n=ge(this),{has:r,get:o}=wo(n);let i=r.call(n,e);i||(e=ge(e),i=r.call(n,e));const s=o.call(n,e);return n.set(e,t),i?mr(t,s)&&Tt(n,"set",e,t):Tt(n,"add",e,t),this}function ks(e){const t=ge(this),{has:n,get:r}=wo(t);let o=n.call(t,e);o||(e=ge(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Tt(t,"delete",e,void 0),i}function Bs(){const e=ge(this),t=e.size!==0,n=e.clear();return t&&Tt(e,"clear",void 0,void 0),n}function Nr(e,t){return function(r,o){const i=this,s=i.__v_raw,l=ge(s),a=t?qi:e?Yi:br;return!e&&et(l,"iterate",un),s.forEach((c,u)=>r.call(o,a(c),a(u),i))}}function Wr(e,t,n){return function(...r){const o=this.__v_raw,i=ge(o),s=Tn(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=o[e](...r),u=n?qi:t?Yi:br;return!t&&et(i,"iterate",a?ai:un),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:l?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Mt(e){return function(...t){return e==="delete"?!1:this}}function Jf(){const e={get(i){return Lr(this,i)},get size(){return Dr(this)},has:jr,add:Is,set:As,delete:ks,clear:Bs,forEach:Nr(!1,!1)},t={get(i){return Lr(this,i,!1,!0)},get size(){return Dr(this)},has:jr,add:Is,set:As,delete:ks,clear:Bs,forEach:Nr(!1,!0)},n={get(i){return Lr(this,i,!0)},get size(){return Dr(this,!0)},has(i){return jr.call(this,i,!0)},add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear"),forEach:Nr(!0,!1)},r={get(i){return Lr(this,i,!0,!0)},get size(){return Dr(this,!0)},has(i){return jr.call(this,i,!0)},add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear"),forEach:Nr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Wr(i,!1,!1),n[i]=Wr(i,!0,!1),t[i]=Wr(i,!1,!0),r[i]=Wr(i,!0,!0)}),[e,n,t,r]}const[Qf,ed,td,nd]=Jf();function Gi(e,t){const n=t?e?nd:td:e?ed:Qf;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(ve(n,o)&&o in r?n:r,o,i)}const rd={get:Gi(!1,!1)},od={get:Gi(!1,!0)},id={get:Gi(!0,!1)},Ga=new WeakMap,Xa=new WeakMap,Ya=new WeakMap,sd=new WeakMap;function ld(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ad(e){return e.__v_skip||!Object.isExtensible(e)?0:ld(Sf(e))}function Gt(e){return An(e)?e:Xi(e,!1,qa,rd,Ga)}function cd(e){return Xi(e,!1,Zf,od,Xa)}function Ot(e){return Xi(e,!0,Yf,id,Ya)}function Xi(e,t,n,r,o){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=ad(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return o.set(e,l),l}function Rt(e){return An(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function An(e){return!!(e&&e.__v_isReadonly)}function co(e){return!!(e&&e.__v_isShallow)}function Za(e){return Rt(e)||An(e)}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function kn(e){return lo(e,"__v_skip",!0),e}const br=e=>_e(e)?Gt(e):e,Yi=e=>_e(e)?Ot(e):e;function Ja(e){Ut&<&&(e=ge(e),Ua(e.dep||(e.dep=Ui())))}function Qa(e,t){e=ge(e);const n=e.dep;n&&ci(n)}function Oe(e){return!!(e&&e.__v_isRef===!0)}function oe(e){return ec(e,!1)}function ud(e){return ec(e,!0)}function ec(e,t){return Oe(e)?e:new fd(e,t)}class fd{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ge(t),this._value=n?t:br(t)}get value(){return Ja(this),this._value}set value(t){const n=this.__v_isShallow||co(t)||An(t);t=n?t:ge(t),mr(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:br(t),Qa(this))}}function Ct(e){return Oe(e)?e.value:e}const dd={get:(e,t,n)=>Ct(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Oe(o)&&!Oe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function tc(e){return Rt(e)?e:new Proxy(e,dd)}function hd(e){const t=ie(e)?new Array(e.length):{};for(const n in e)t[n]=nc(e,n);return t}class pd{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ff(ge(this._object),this._key)}}class gd{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function zt(e,t,n){return Oe(e)?e:ue(e)?new gd(e):_e(e)&&arguments.length>1?nc(e,t,n):oe(e)}function nc(e,t,n){const r=e[t];return Oe(r)?r:new pd(e,t,n)}class vd{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ki(t,()=>{this._dirty||(this._dirty=!0,Qa(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=ge(this);return Ja(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function md(e,t,n=!1){let r,o;const i=ue(e);return i?(r=e,o=ct):(r=e.get,o=e.set),new vd(r,o,i||!o,n)}function Kt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){So(i,t,n)}return o}function st(e,t,n,r){if(ue(e)){const i=Kt(e,t,n,r);return i&&Ia(i)&&i.catch(s=>{So(s,t,n)}),i}const o=[];for(let i=0;i>>1;xr(We[r])xt&&We.splice(t,1)}function Cd(e){ie(e)?On.push(...e):(!Pt||!Pt.includes(e,e.allowRecurse?tn+1:tn))&&On.push(e),oc()}function Ms(e,t=yr?xt+1:0){for(;txr(n)-xr(r)),tn=0;tne.id==null?1/0:e.id,wd=(e,t)=>{const n=xr(e)-xr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function sc(e){ui=!1,yr=!0,We.sort(wd);const t=ct;try{for(xt=0;xtBe(v)?v.trim():v)),f&&(o=n.map(Ef))}let l,a=r[l=No(t)]||r[l=No(In(t))];!a&&i&&(a=r[l=No(mn(t))]),a&&st(a,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,st(c,e,6,o)}}function lc(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let s={},l=!1;if(!ue(e)){const a=c=>{const u=lc(c,t,!0);u&&(l=!0,ke(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(_e(e)&&r.set(e,null),null):(ie(i)?i.forEach(a=>s[a]=null):ke(s,i),_e(e)&&r.set(e,s),s)}function _o(e,t){return!e||!yo(t)?!1:(t=t.slice(2).replace(/Once$/,""),ve(e,t[0].toLowerCase()+t.slice(1))||ve(e,mn(t))||ve(e,t))}let je=null,$o=null;function uo(e){const t=je;return je=e,$o=e&&e.type.__scopeId||null,t}function Ux(e){$o=e}function Kx(){$o=null}function ro(e,t=je,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Gs(-1);const i=uo(t);let s;try{s=e(...o)}finally{uo(i),r._d&&Gs(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Uo(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:d,setupState:v,ctx:p,inheritAttrs:w}=e;let y,m;const S=uo(e);try{if(n.shapeFlag&4){const _=o||r;y=bt(u.call(_,_,f,i,v,d,p)),m=a}else{const _=t;y=bt(_.length>1?_(i,{attrs:a,slots:l,emit:c}):_(i,null)),m=t.props?a:_d(a)}}catch(_){ur.length=0,So(_,e,1),y=Le(Ge)}let F=y;if(m&&w!==!1){const _=Object.keys(m),{shapeFlag:P}=F;_.length&&P&7&&(s&&_.some(Fi)&&(m=$d(m,s)),F=It(F,m))}return n.dirs&&(F=It(F),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&(F.transition=n.transition),y=F,uo(S),y}const _d=e=>{let t;for(const n in e)(n==="class"||n==="style"||yo(n))&&((t||(t={}))[n]=e[n]);return t},$d=(e,t)=>{const n={};for(const r in e)(!Fi(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ed(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Hs(r,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function Td(e,t){t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):Cd(e)}function Qi(e,t){return es(e,null,t)}const Ur={};function ut(e,t,n){return es(e,t,n)}function es(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:s}=Re){var l;const a=ja()===((l=Fe)==null?void 0:l.scope)?Fe:null;let c,u=!1,f=!1;if(Oe(e)?(c=()=>e.value,u=co(e)):Rt(e)?(c=()=>e,r=!0):ie(e)?(f=!0,u=e.some(_=>Rt(_)||co(_)),c=()=>e.map(_=>{if(Oe(_))return _.value;if(Rt(_))return on(_);if(ue(_))return Kt(_,a,2)})):ue(e)?t?c=()=>Kt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return d&&d(),st(e,a,3,[v])}:c=ct,t&&r){const _=c;c=()=>on(_())}let d,v=_=>{d=S.onStop=()=>{Kt(_,a,4)}},p;if(Pr)if(v=ct,t?n&&st(t,a,3,[c(),f?[]:void 0,v]):c(),o==="sync"){const _=yh();p=_.__watcherHandles||(_.__watcherHandles=[])}else return ct;let w=f?new Array(e.length).fill(Ur):Ur;const y=()=>{if(S.active)if(t){const _=S.run();(r||u||(f?_.some((P,k)=>mr(P,w[k])):mr(_,w)))&&(d&&d(),st(t,a,3,[_,w===Ur?void 0:f&&w[0]===Ur?[]:w,v]),w=_)}else S.run()};y.allowRecurse=!!t;let m;o==="sync"?m=y:o==="post"?m=()=>Qe(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),m=()=>Ji(y));const S=new Ki(c,m);t?n?y():w=S.run():o==="post"?Qe(S.run.bind(S),a&&a.suspense):S.run();const F=()=>{S.stop(),a&&a.scope&&Li(a.scope.effects,S)};return p&&p.push(F),F}function Od(e,t,n){const r=this.proxy,o=Be(e)?e.includes(".")?ac(r,e):()=>r[e]:e.bind(r,r);let i;ue(t)?i=t:(i=t.handler,n=t);const s=Fe;Mn(this);const l=es(o,i.bind(r),n);return s?Mn(s):fn(),l}function ac(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{on(n,t)});else if(ka(e))for(const n in e)on(e[n],t);return e}function fi(e,t){const n=je;if(n===null)return e;const r=zo(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),dt(()=>{e.isUnmounting=!0}),e}const ot=[Function,Array],uc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ot,onEnter:ot,onAfterEnter:ot,onEnterCancelled:ot,onBeforeLeave:ot,onLeave:ot,onAfterLeave:ot,onLeaveCancelled:ot,onBeforeAppear:ot,onAppear:ot,onAfterAppear:ot,onAppearCancelled:ot},zd={name:"BaseTransition",props:uc,setup(e,{slots:t}){const n=Oo(),r=cc();let o;return()=>{const i=t.default&&ts(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const w of i)if(w.type!==Ge){s=w;break}}const l=ge(e),{mode:a}=l;if(r.isLeaving)return Ko(s);const c=Fs(s);if(!c)return Ko(s);const u=Cr(c,l,r,n);wr(c,u);const f=n.subTree,d=f&&Fs(f);let v=!1;const{getTransitionKey:p}=c.type;if(p){const w=p();o===void 0?o=w:w!==o&&(o=w,v=!0)}if(d&&d.type!==Ge&&(!nn(c,d)||v)){const w=Cr(d,l,r,n);if(wr(d,w),a==="out-in")return r.isLeaving=!0,w.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ko(s);a==="in-out"&&c.type!==Ge&&(w.delayLeave=(y,m,S)=>{const F=fc(r,d);F[String(d.key)]=d,y._leaveCb=()=>{m(),y._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=S})}return s}}},Id=zd;function fc(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 Cr(e,t,n,r){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:w,onAppear:y,onAfterAppear:m,onAppearCancelled:S}=t,F=String(e.key),_=fc(n,e),P=(C,T)=>{C&&st(C,r,9,T)},k=(C,T)=>{const L=T[1];P(C,T),ie(C)?C.every(N=>N.length<=1)&&L():C.length<=1&&L()},b={mode:i,persisted:s,beforeEnter(C){let T=l;if(!n.isMounted)if(o)T=w||l;else return;C._leaveCb&&C._leaveCb(!0);const L=_[F];L&&nn(e,L)&&L.el._leaveCb&&L.el._leaveCb(),P(T,[C])},enter(C){let T=a,L=c,N=u;if(!n.isMounted)if(o)T=y||a,L=m||c,N=S||u;else return;let A=!1;const ee=C._enterCb=se=>{A||(A=!0,se?P(N,[C]):P(L,[C]),b.delayedLeave&&b.delayedLeave(),C._enterCb=void 0)};T?k(T,[C,ee]):ee()},leave(C,T){const L=String(e.key);if(C._enterCb&&C._enterCb(!0),n.isUnmounting)return T();P(f,[C]);let N=!1;const A=C._leaveCb=ee=>{N||(N=!0,T(),ee?P(p,[C]):P(v,[C]),C._leaveCb=void 0,_[L]===e&&delete _[L])};_[L]=e,d?k(d,[C,A]):A()},clone(C){return Cr(C,t,n,r)}};return b}function Ko(e){if(Eo(e))return e=It(e),e.children=null,e}function Fs(e){return Eo(e)?e.children?e.children[0]:void 0:e}function wr(e,t){e.shapeFlag&6&&e.component?wr(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 ts(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;ike({name:e.name},t,{setup:e}))():e}const lr=e=>!!e.type.__asyncLoader,Eo=e=>e.type.__isKeepAlive;function dc(e,t){pc(e,"a",t)}function hc(e,t){pc(e,"da",t)}function pc(e,t,n=Fe){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Po(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Eo(o.parent.vnode)&&Ad(r,t,n,o),o=o.parent}}function Ad(e,t,n,r){const o=Po(t,e,r,!0);vc(()=>{Li(r[t],o)},n)}function Po(e,t,n=Fe,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;jn(),Mn(n);const l=st(t,n,e,s);return fn(),Dn(),l});return r?o.unshift(i):o.push(i),i}}const At=e=>(t,n=Fe)=>(!Pr||e==="sp")&&Po(e,(...r)=>t(...r),n),bn=At("bm"),Xt=At("m"),kd=At("bu"),gc=At("u"),dt=At("bum"),vc=At("um"),Bd=At("sp"),Md=At("rtg"),Hd=At("rtc");function Fd(e,t=Fe){Po("ec",e,t)}const Ld=Symbol.for("v-ndc");function Vx(e,t,n,r){let o;const i=n&&n[r];if(ie(e)||Be(e)){o=new Array(e.length);for(let s=0,l=e.length;st(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);o=new Array(s.length);for(let l=0,a=s.length;l$r(t)?!(t.type===Ge||t.type===Me&&!mc(t.children)):!0)?e:null}const di=e=>e?Oc(e)?zo(e)||e.proxy:di(e.parent):null,ar=ke(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=>di(e.parent),$root:e=>di(e.root),$emit:e=>e.emit,$options:e=>ns(e),$forceUpdate:e=>e.f||(e.f=()=>Ji(e.update)),$nextTick:e=>e.n||(e.n=Bn.bind(e.proxy)),$watch:e=>Od.bind(e)}),Vo=(e,t)=>e!==Re&&!e.__isScriptSetup&&ve(e,t),Dd={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const v=s[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Vo(r,t))return s[t]=1,r[t];if(o!==Re&&ve(o,t))return s[t]=2,o[t];if((c=e.propsOptions[0])&&ve(c,t))return s[t]=3,i[t];if(n!==Re&&ve(n,t))return s[t]=4,n[t];hi&&(s[t]=0)}}const u=ar[t];let f,d;if(u)return t==="$attrs"&&et(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==Re&&ve(n,t))return s[t]=4,n[t];if(d=a.config.globalProperties,ve(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Vo(o,t)?(o[t]=n,!0):r!==Re&&ve(r,t)?(r[t]=n,!0):ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let l;return!!n[s]||e!==Re&&ve(e,s)||Vo(t,s)||(l=i[0])&&ve(l,s)||ve(r,s)||ve(ar,s)||ve(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ls(e){return ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let hi=!0;function Nd(e){const t=ns(e),n=e.proxy,r=e.ctx;hi=!1,t.beforeCreate&&js(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:v,updated:p,activated:w,deactivated:y,beforeDestroy:m,beforeUnmount:S,destroyed:F,unmounted:_,render:P,renderTracked:k,renderTriggered:b,errorCaptured:C,serverPrefetch:T,expose:L,inheritAttrs:N,components:A,directives:ee,filters:se}=t;if(c&&Wd(c,r,null),s)for(const K in s){const ne=s[K];ue(ne)&&(r[K]=ne.bind(n))}if(o){const K=o.call(n,n);_e(K)&&(e.data=Gt(K))}if(hi=!0,i)for(const K in i){const ne=i[K],Ce=ue(ne)?ne.bind(n,n):ue(ne.get)?ne.get.bind(n,n):ct,we=!ue(ne)&&ue(ne.set)?ne.set.bind(n):ct,Se=q({get:Ce,set:we});Object.defineProperty(r,K,{enumerable:!0,configurable:!0,get:()=>Se.value,set:Te=>Se.value=Te})}if(l)for(const K in l)bc(l[K],r,n,K);if(a){const K=ue(a)?a.call(n):a;Reflect.ownKeys(K).forEach(ne=>{qe(ne,K[ne])})}u&&js(u,e,"c");function V(K,ne){ie(ne)?ne.forEach(Ce=>K(Ce.bind(n))):ne&&K(ne.bind(n))}if(V(bn,f),V(Xt,d),V(kd,v),V(gc,p),V(dc,w),V(hc,y),V(Fd,C),V(Hd,k),V(Md,b),V(dt,S),V(vc,_),V(Bd,T),ie(L))if(L.length){const K=e.exposed||(e.exposed={});L.forEach(ne=>{Object.defineProperty(K,ne,{get:()=>n[ne],set:Ce=>n[ne]=Ce})})}else e.exposed||(e.exposed={});P&&e.render===ct&&(e.render=P),N!=null&&(e.inheritAttrs=N),A&&(e.components=A),ee&&(e.directives=ee)}function Wd(e,t,n=ct){ie(e)&&(e=pi(e));for(const r in e){const o=e[r];let i;_e(o)?"default"in o?i=ze(o.from||r,o.default,!0):i=ze(o.from||r):i=ze(o),Oe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[r]=i}}function js(e,t,n){st(ie(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function bc(e,t,n,r){const o=r.includes(".")?ac(n,r):()=>n[r];if(Be(e)){const i=t[e];ue(i)&&ut(o,i)}else if(ue(e))ut(o,e.bind(n));else if(_e(e))if(ie(e))e.forEach(i=>bc(i,t,n,r));else{const i=ue(e.handler)?e.handler.bind(n):t[e.handler];ue(i)&&ut(o,i,e)}}function ns(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!o.length&&!n&&!r?a=t:(a={},o.length&&o.forEach(c=>fo(a,c,s,!0)),fo(a,t,s)),_e(t)&&i.set(t,a),a}function fo(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&fo(e,i,n,!0),o&&o.forEach(s=>fo(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=Ud[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ud={data:Ds,props:Ns,emits:Ns,methods:or,computed:or,beforeCreate:Ke,created:Ke,beforeMount:Ke,mounted:Ke,beforeUpdate:Ke,updated:Ke,beforeDestroy:Ke,beforeUnmount:Ke,destroyed:Ke,unmounted:Ke,activated:Ke,deactivated:Ke,errorCaptured:Ke,serverPrefetch:Ke,components:or,directives:or,watch:Vd,provide:Ds,inject:Kd};function Ds(e,t){return t?e?function(){return ke(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function Kd(e,t){return or(pi(e),pi(t))}function pi(e){if(ie(e)){const t={};for(let n=0;n1)return n&&ue(t)?t.call(r&&r.proxy):t}}function Xd(){return!!(Fe||je||Sr)}function Yd(e,t,n,r=!1){const o={},i={};lo(i,To,1),e.propsDefaults=Object.create(null),xc(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:cd(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Zd(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,l=ge(o),[a]=e.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[d,v]=Cc(f,t,!0);ke(s,d),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return _e(e)&&r.set(e,Rn),Rn;if(ie(i))for(let u=0;u-1,v[1]=w<0||p-1||ve(v,"default"))&&l.push(f)}}}const c=[s,l];return _e(e)&&r.set(e,c),c}function Ws(e){return e[0]!=="$"}function Us(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ks(e,t){return Us(e)===Us(t)}function Vs(e,t){return ie(t)?t.findIndex(n=>Ks(n,e)):ue(t)&&Ks(t,e)?0:-1}const wc=e=>e[0]==="_"||e==="$stable",rs=e=>ie(e)?e.map(bt):[bt(e)],Jd=(e,t,n)=>{if(t._n)return t;const r=ro((...o)=>rs(t(...o)),n);return r._c=!1,r},Sc=(e,t,n)=>{const r=e._ctx;for(const o in e){if(wc(o))continue;const i=e[o];if(ue(i))t[o]=Jd(o,i,r);else if(i!=null){const s=rs(i);t[o]=()=>s}}},_c=(e,t)=>{const n=rs(t);e.slots.default=()=>n},Qd=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ge(t),lo(t,"_",n)):Sc(t,e.slots={})}else e.slots={},t&&_c(e,t);lo(e.slots,To,1)},eh=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=Re;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ke(o,t),!n&&l===1&&delete o._):(i=!t.$stable,Sc(t,o)),s=t}else t&&(_c(e,t),s={default:1});if(i)for(const l in o)!wc(l)&&!(l in s)&&delete o[l]};function vi(e,t,n,r,o=!1){if(ie(e)){e.forEach((d,v)=>vi(d,t&&(ie(t)?t[v]:t),n,r,o));return}if(lr(r)&&!o)return;const i=r.shapeFlag&4?zo(r.component)||r.component.proxy:r.el,s=o?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===Re?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(Be(c)?(u[c]=null,ve(f,c)&&(f[c]=null)):Oe(c)&&(c.value=null)),ue(a))Kt(a,l,12,[s,u]);else{const d=Be(a),v=Oe(a);if(d||v){const p=()=>{if(e.f){const w=d?ve(f,a)?f[a]:u[a]:a.value;o?ie(w)&&Li(w,i):ie(w)?w.includes(i)||w.push(i):d?(u[a]=[i],ve(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else d?(u[a]=s,ve(f,a)&&(f[a]=s)):v&&(a.value=s,e.k&&(u[e.k]=s))};s?(p.id=-1,Qe(p,n)):p()}}}const Qe=Td;function th(e){return nh(e)}function nh(e,t){const n=si();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:v=ct,insertStaticContent:p}=e,w=(h,g,x,E=null,z=null,B=null,W=!1,j=null,M=!!g.dynamicChildren)=>{if(h===g)return;h&&!nn(h,g)&&(E=R(h),Te(h,z,B,!0),h=null),g.patchFlag===-2&&(M=!1,g.dynamicChildren=null);const{type:O,ref:J,shapeFlag:G}=g;switch(O){case Ro:y(h,g,x,E);break;case Ge:m(h,g,x,E);break;case qo:h==null&&S(g,x,E,W);break;case Me:A(h,g,x,E,z,B,W,j,M);break;default:G&1?P(h,g,x,E,z,B,W,j,M):G&6?ee(h,g,x,E,z,B,W,j,M):(G&64||G&128)&&O.process(h,g,x,E,z,B,W,j,M,I)}J!=null&&z&&vi(J,h&&h.ref,B,g||h,!g)},y=(h,g,x,E)=>{if(h==null)r(g.el=l(g.children),x,E);else{const z=g.el=h.el;g.children!==h.children&&c(z,g.children)}},m=(h,g,x,E)=>{h==null?r(g.el=a(g.children||""),x,E):g.el=h.el},S=(h,g,x,E)=>{[h.el,h.anchor]=p(h.children,g,x,E,h.el,h.anchor)},F=({el:h,anchor:g},x,E)=>{let z;for(;h&&h!==g;)z=d(h),r(h,x,E),h=z;r(g,x,E)},_=({el:h,anchor:g})=>{let x;for(;h&&h!==g;)x=d(h),o(h),h=x;o(g)},P=(h,g,x,E,z,B,W,j,M)=>{W=W||g.type==="svg",h==null?k(g,x,E,z,B,W,j,M):T(h,g,z,B,W,j,M)},k=(h,g,x,E,z,B,W,j)=>{let M,O;const{type:J,props:G,shapeFlag:Z,transition:le,dirs:he}=h;if(M=h.el=s(h.type,B,G&&G.is,G),Z&8?u(M,h.children):Z&16&&C(h.children,M,null,E,z,B&&J!=="foreignObject",W,j),he&&Yt(h,null,E,"created"),b(M,h,h.scopeId,W,E),G){for(const me in G)me!=="value"&&!no(me)&&i(M,me,null,G[me],B,h.children,E,z,fe);"value"in G&&i(M,"value",null,G.value),(O=G.onVnodeBeforeMount)&>(O,E,h)}he&&Yt(h,null,E,"beforeMount");const be=(!z||z&&!z.pendingBranch)&&le&&!le.persisted;be&&le.beforeEnter(M),r(M,g,x),((O=G&&G.onVnodeMounted)||be||he)&&Qe(()=>{O&>(O,E,h),be&&le.enter(M),he&&Yt(h,null,E,"mounted")},z)},b=(h,g,x,E,z)=>{if(x&&v(h,x),E)for(let B=0;B{for(let O=M;O{const j=g.el=h.el;let{patchFlag:M,dynamicChildren:O,dirs:J}=g;M|=h.patchFlag&16;const G=h.props||Re,Z=g.props||Re;let le;x&&Zt(x,!1),(le=Z.onVnodeBeforeUpdate)&>(le,x,g,h),J&&Yt(g,h,x,"beforeUpdate"),x&&Zt(x,!0);const he=z&&g.type!=="foreignObject";if(O?L(h.dynamicChildren,O,j,x,E,he,B):W||ne(h,g,j,null,x,E,he,B,!1),M>0){if(M&16)N(j,g,G,Z,x,E,z);else if(M&2&&G.class!==Z.class&&i(j,"class",null,Z.class,z),M&4&&i(j,"style",G.style,Z.style,z),M&8){const be=g.dynamicProps;for(let me=0;me{le&>(le,x,g,h),J&&Yt(g,h,x,"updated")},E)},L=(h,g,x,E,z,B,W)=>{for(let j=0;j{if(x!==E){if(x!==Re)for(const j in x)!no(j)&&!(j in E)&&i(h,j,x[j],null,W,g.children,z,B,fe);for(const j in E){if(no(j))continue;const M=E[j],O=x[j];M!==O&&j!=="value"&&i(h,j,O,M,W,g.children,z,B,fe)}"value"in E&&i(h,"value",x.value,E.value)}},A=(h,g,x,E,z,B,W,j,M)=>{const O=g.el=h?h.el:l(""),J=g.anchor=h?h.anchor:l("");let{patchFlag:G,dynamicChildren:Z,slotScopeIds:le}=g;le&&(j=j?j.concat(le):le),h==null?(r(O,x,E),r(J,x,E),C(g.children,x,J,z,B,W,j,M)):G>0&&G&64&&Z&&h.dynamicChildren?(L(h.dynamicChildren,Z,x,z,B,W,j),(g.key!=null||z&&g===z.subTree)&&os(h,g,!0)):ne(h,g,x,J,z,B,W,j,M)},ee=(h,g,x,E,z,B,W,j,M)=>{g.slotScopeIds=j,h==null?g.shapeFlag&512?z.ctx.activate(g,x,E,W,M):se(g,x,E,z,B,W,M):ae(h,g,M)},se=(h,g,x,E,z,B,W)=>{const j=h.component=dh(h,E,z);if(Eo(h)&&(j.ctx.renderer=I),hh(j),j.asyncDep){if(z&&z.registerDep(j,V),!h.el){const M=j.subTree=Le(Ge);m(null,M,g,x)}return}V(j,h,g,x,z,B,W)},ae=(h,g,x)=>{const E=g.component=h.component;if(Ed(h,g,x))if(E.asyncDep&&!E.asyncResolved){K(E,g,x);return}else E.next=g,xd(E.update),E.update();else g.el=h.el,E.vnode=g},V=(h,g,x,E,z,B,W)=>{const j=()=>{if(h.isMounted){let{next:J,bu:G,u:Z,parent:le,vnode:he}=h,be=J,me;Zt(h,!1),J?(J.el=he.el,K(h,J,W)):J=he,G&&Wo(G),(me=J.props&&J.props.onVnodeBeforeUpdate)&>(me,le,J,he),Zt(h,!0);const Ie=Uo(h),Ue=h.subTree;h.subTree=Ie,w(Ue,Ie,f(Ue.el),R(Ue),h,z,B),J.el=Ie.el,be===null&&Pd(h,Ie.el),Z&&Qe(Z,z),(me=J.props&&J.props.onVnodeUpdated)&&Qe(()=>gt(me,le,J,he),z)}else{let J;const{el:G,props:Z}=g,{bm:le,m:he,parent:be}=h,me=lr(g);if(Zt(h,!1),le&&Wo(le),!me&&(J=Z&&Z.onVnodeBeforeMount)&>(J,be,g),Zt(h,!0),G&&pe){const Ie=()=>{h.subTree=Uo(h),pe(G,h.subTree,h,z,null)};me?g.type.__asyncLoader().then(()=>!h.isUnmounted&&Ie()):Ie()}else{const Ie=h.subTree=Uo(h);w(null,Ie,x,E,h,z,B),g.el=Ie.el}if(he&&Qe(he,z),!me&&(J=Z&&Z.onVnodeMounted)){const Ie=g;Qe(()=>gt(J,be,Ie),z)}(g.shapeFlag&256||be&&lr(be.vnode)&&be.vnode.shapeFlag&256)&&h.a&&Qe(h.a,z),h.isMounted=!0,g=x=E=null}},M=h.effect=new Ki(j,()=>Ji(O),h.scope),O=h.update=()=>M.run();O.id=h.uid,Zt(h,!0),O()},K=(h,g,x)=>{g.component=h;const E=h.vnode.props;h.vnode=g,h.next=null,Zd(h,g.props,E,x),eh(h,g.children,x),jn(),Ms(),Dn()},ne=(h,g,x,E,z,B,W,j,M=!1)=>{const O=h&&h.children,J=h?h.shapeFlag:0,G=g.children,{patchFlag:Z,shapeFlag:le}=g;if(Z>0){if(Z&128){we(O,G,x,E,z,B,W,j,M);return}else if(Z&256){Ce(O,G,x,E,z,B,W,j,M);return}}le&8?(J&16&&fe(O,z,B),G!==O&&u(x,G)):J&16?le&16?we(O,G,x,E,z,B,W,j,M):fe(O,z,B,!0):(J&8&&u(x,""),le&16&&C(G,x,E,z,B,W,j,M))},Ce=(h,g,x,E,z,B,W,j,M)=>{h=h||Rn,g=g||Rn;const O=h.length,J=g.length,G=Math.min(O,J);let Z;for(Z=0;ZJ?fe(h,z,B,!0,!1,G):C(g,x,E,z,B,W,j,M,G)},we=(h,g,x,E,z,B,W,j,M)=>{let O=0;const J=g.length;let G=h.length-1,Z=J-1;for(;O<=G&&O<=Z;){const le=h[O],he=g[O]=M?Nt(g[O]):bt(g[O]);if(nn(le,he))w(le,he,x,null,z,B,W,j,M);else break;O++}for(;O<=G&&O<=Z;){const le=h[G],he=g[Z]=M?Nt(g[Z]):bt(g[Z]);if(nn(le,he))w(le,he,x,null,z,B,W,j,M);else break;G--,Z--}if(O>G){if(O<=Z){const le=Z+1,he=leZ)for(;O<=G;)Te(h[O],z,B,!0),O++;else{const le=O,he=O,be=new Map;for(O=he;O<=Z;O++){const Ye=g[O]=M?Nt(g[O]):bt(g[O]);Ye.key!=null&&be.set(Ye.key,O)}let me,Ie=0;const Ue=Z-he+1;let pt=!1,Fr=0;const Bt=new Array(Ue);for(O=0;O=Ue){Te(Ye,z,B,!0);continue}let H;if(Ye.key!=null)H=be.get(Ye.key);else for(me=he;me<=Z;me++)if(Bt[me-he]===0&&nn(Ye,g[me])){H=me;break}H===void 0?Te(Ye,z,B,!0):(Bt[H-he]=O+1,H>=Fr?Fr=H:pt=!0,w(Ye,g[H],x,null,z,B,W,j,M),Ie++)}const wt=pt?rh(Bt):Rn;for(me=wt.length-1,O=Ue-1;O>=0;O--){const Ye=he+O,H=g[Ye],Q=Ye+1{const{el:B,type:W,transition:j,children:M,shapeFlag:O}=h;if(O&6){Se(h.component.subTree,g,x,E);return}if(O&128){h.suspense.move(g,x,E);return}if(O&64){W.move(h,g,x,I);return}if(W===Me){r(B,g,x);for(let G=0;Gj.enter(B),z);else{const{leave:G,delayLeave:Z,afterLeave:le}=j,he=()=>r(B,g,x),be=()=>{G(B,()=>{he(),le&&le()})};Z?Z(B,he,be):be()}else r(B,g,x)},Te=(h,g,x,E=!1,z=!1)=>{const{type:B,props:W,ref:j,children:M,dynamicChildren:O,shapeFlag:J,patchFlag:G,dirs:Z}=h;if(j!=null&&vi(j,null,x,h,!0),J&256){g.ctx.deactivate(h);return}const le=J&1&&Z,he=!lr(h);let be;if(he&&(be=W&&W.onVnodeBeforeUnmount)&>(be,g,h),J&6)Xe(h.component,x,E);else{if(J&128){h.suspense.unmount(x,E);return}le&&Yt(h,null,g,"beforeUnmount"),J&64?h.type.remove(h,g,x,z,I,E):O&&(B!==Me||G>0&&G&64)?fe(O,g,x,!1,!0):(B===Me&&G&384||!z&&J&16)&&fe(M,g,x),E&&rt(h)}(he&&(be=W&&W.onVnodeUnmounted)||le)&&Qe(()=>{be&>(be,g,h),le&&Yt(h,null,g,"unmounted")},x)},rt=h=>{const{type:g,el:x,anchor:E,transition:z}=h;if(g===Me){ht(x,E);return}if(g===qo){_(h);return}const B=()=>{o(x),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(h.shapeFlag&1&&z&&!z.persisted){const{leave:W,delayLeave:j}=z,M=()=>W(x,B);j?j(h.el,B,M):M()}else B()},ht=(h,g)=>{let x;for(;h!==g;)x=d(h),o(h),h=x;o(g)},Xe=(h,g,x)=>{const{bum:E,scope:z,update:B,subTree:W,um:j}=h;E&&Wo(E),z.stop(),B&&(B.active=!1,Te(W,h,g,x)),j&&Qe(j,g),Qe(()=>{h.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},fe=(h,g,x,E=!1,z=!1,B=0)=>{for(let W=B;Wh.shapeFlag&6?R(h.component.subTree):h.shapeFlag&128?h.suspense.next():d(h.anchor||h.el),U=(h,g,x)=>{h==null?g._vnode&&Te(g._vnode,null,null,!0):w(g._vnode||null,h,g,null,null,null,x),Ms(),ic(),g._vnode=h},I={p:w,um:Te,m:Se,r:rt,mt:se,mc:C,pc:ne,pbc:L,n:R,o:e};let Y,pe;return t&&([Y,pe]=t(I)),{render:U,hydrate:Y,createApp:Gd(U,Y)}}function Zt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function os(e,t,n=!1){const r=e.children,o=t.children;if(ie(r)&&ie(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const oh=e=>e.__isTeleport,cr=e=>e&&(e.disabled||e.disabled===""),qs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,mi=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},ih={__isTeleport:!0,process(e,t,n,r,o,i,s,l,a,c){const{mc:u,pc:f,pbc:d,o:{insert:v,querySelector:p,createText:w,createComment:y}}=c,m=cr(t.props);let{shapeFlag:S,children:F,dynamicChildren:_}=t;if(e==null){const P=t.el=w(""),k=t.anchor=w("");v(P,n,r),v(k,n,r);const b=t.target=mi(t.props,p),C=t.targetAnchor=w("");b&&(v(C,b),s=s||qs(b));const T=(L,N)=>{S&16&&u(F,L,N,o,i,s,l,a)};m?T(n,k):b&&T(b,C)}else{t.el=e.el;const P=t.anchor=e.anchor,k=t.target=e.target,b=t.targetAnchor=e.targetAnchor,C=cr(e.props),T=C?n:k,L=C?P:b;if(s=s||qs(k),_?(d(e.dynamicChildren,_,T,o,i,s,l),os(e,t,!0)):a||f(e,t,T,L,o,i,s,l,!1),m)C||Kr(t,n,P,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=mi(t.props,p);N&&Kr(t,N,null,c,0)}else C&&Kr(t,k,b,c,1)}Ec(t)},remove(e,t,n,r,{um:o,o:{remove:i}},s){const{shapeFlag:l,children:a,anchor:c,targetAnchor:u,target:f,props:d}=e;if(f&&i(u),(s||!cr(d))&&(i(c),l&16))for(let v=0;v0?at||Rn:null,lh(),_r>0&&at&&at.push(e),e}function qx(e,t,n,r,o,i){return Pc(Tc(e,t,n,r,o,i,!0))}function ss(e,t,n,r,o){return Pc(Le(e,t,n,r,o,!0))}function $r(e){return e?e.__v_isVNode===!0:!1}function nn(e,t){return e.type===t.type&&e.key===t.key}const To="__vInternal",Rc=({key:e})=>e??null,oo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||Oe(e)||ue(e)?{i:je,r:e,k:t,f:!!n}:e:null);function Tc(e,t=null,n=null,r=0,o=null,i=e===Me?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Rc(t),ref:t&&oo(t),scopeId:$o,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:je};return l?(ls(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Be(n)?8:16),_r>0&&!s&&at&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&at.push(a),a}const Le=ah;function ah(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Ld)&&(e=Ge),$r(e)){const l=It(e,t,!0);return n&&ls(l,n),_r>0&&!i&&at&&(l.shapeFlag&6?at[at.indexOf(e)]=l:at.push(l)),l.patchFlag|=-2,l}if(mh(e)&&(e=e.__vccOpts),t){t=ch(t);let{class:l,style:a}=t;l&&!Be(l)&&(t.class=Wi(l)),_e(a)&&(Za(a)&&!ie(a)&&(a=ke({},a)),t.style=Ni(a))}const s=Be(e)?1:Rd(e)?128:oh(e)?64:_e(e)?4:ue(e)?2:0;return Tc(e,t,n,r,o,s,i,!0)}function ch(e){return e?Za(e)||To in e?ke({},e):e:null}function It(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:s}=e,l=t?as(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Rc(l),ref:t&&t.ref?n&&o?ie(o)?o.concat(oo(t)):[o,oo(t)]:oo(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Er(e=" ",t=0){return Le(Ro,null,e,t)}function Gx(e="",t=!1){return t?(is(),ss(Ge,null,e)):Le(Ge,null,e)}function bt(e){return e==null||typeof e=="boolean"?Le(Ge):ie(e)?Le(Me,null,e.slice()):typeof e=="object"?Nt(e):Le(Ro,null,String(e))}function Nt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function ls(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ie(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),ls(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(To in t)?t._ctx=je:o===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ue(t)?(t={default:t,_ctx:je},n=32):(t=String(t),r&64?(n=16,t=[Er(t)]):n=8);e.children=t,e.shapeFlag|=n}function as(...e){const t={};for(let n=0;nFe||je;let cs,wn,Xs="__VUE_INSTANCE_SETTERS__";(wn=si()[Xs])||(wn=si()[Xs]=[]),wn.push(e=>Fe=e),cs=e=>{wn.length>1?wn.forEach(t=>t(e)):wn[0](e)};const Mn=e=>{cs(e),e.scope.on()},fn=()=>{Fe&&Fe.scope.off(),cs(null)};function Oc(e){return e.vnode.shapeFlag&4}let Pr=!1;function hh(e,t=!1){Pr=t;const{props:n,children:r}=e.vnode,o=Oc(e);Yd(e,n,o,t),Qd(e,r);const i=o?ph(e,t):void 0;return Pr=!1,i}function ph(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=kn(new Proxy(e.ctx,Dd));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?vh(e):null;Mn(e),jn();const i=Kt(r,e,0,[e.props,o]);if(Dn(),fn(),Ia(i)){if(i.then(fn,fn),t)return i.then(s=>{Ys(e,s,t)}).catch(s=>{So(s,e,0)});e.asyncDep=i}else Ys(e,i,t)}else zc(e,t)}function Ys(e,t,n){ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=tc(t)),zc(e,n)}let Zs;function zc(e,t,n){const r=e.type;if(!e.render){if(!t&&Zs&&!r.render){const o=r.template||ns(e).template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,c=ke(ke({isCustomElement:i,delimiters:l},s),a);r.render=Zs(o,c)}}e.render=r.render||ct}Mn(e),jn(),Nd(e),Dn(),fn()}function gh(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return et(e,"get","$attrs"),t[n]}}))}function vh(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return gh(e)},slots:e.slots,emit:e.emit,expose:t}}function zo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(tc(kn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ar)return ar[n](e)},has(t,n){return n in t||n in ar}}))}function mh(e){return ue(e)&&"__vccOpts"in e}const q=(e,t)=>md(e,t,Pr);function $(e,t,n){const r=arguments.length;return r===2?_e(t)&&!ie(t)?$r(t)?Le(e,null,[t]):Le(e,t):Le(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&$r(n)&&(n=[n]),Le(e,t,n))}const bh=Symbol.for("v-scx"),yh=()=>ze(bh),xh="3.3.4",Ch="http://www.w3.org/2000/svg",rn=typeof document<"u"?document:null,Js=rn&&rn.createElement("template"),wh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?rn.createElementNS(Ch,e):rn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>rn.createTextNode(e),createComment:e=>rn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Js.innerHTML=r?`${e}`:e;const l=Js.content;if(r){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Sh(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function _h(e,t,n){const r=e.style,o=Be(n);if(n&&!o){if(t&&!Be(t))for(const i in t)n[i]==null&&bi(r,i,"");for(const i in n)bi(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Qs=/\s*!important$/;function bi(e,t,n){if(ie(n))n.forEach(r=>bi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=$h(e,t);Qs.test(n)?e.setProperty(mn(r),n.replace(Qs,""),"important"):e[r]=n}}const el=["Webkit","Moz","ms"],Go={};function $h(e,t){const n=Go[t];if(n)return n;let r=In(t);if(r!=="filter"&&r in e)return Go[t]=r;r=Ba(r);for(let o=0;oXo||(Ih.then(()=>Xo=0),Xo=Date.now());function kh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;st(Bh(r,n.value),t,5,[r])};return n.value=e,n.attached=Ah(),n}function Bh(e,t){if(ie(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const rl=/^on[a-z]/,Mh=(e,t,n,r,o=!1,i,s,l,a)=>{t==="class"?Sh(e,r,o):t==="style"?_h(e,n,r):yo(t)?Fi(t)||Oh(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hh(e,t,r,o))?Ph(e,t,r,i,s,l,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Eh(e,t,r,o))};function Hh(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&rl.test(t)&&ue(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||rl.test(t)&&Be(n)?!1:t in e}const Ht="transition",Zn="animation",qt=(e,{slots:t})=>$(Id,Ac(e),t);qt.displayName="Transition";const Ic={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},Fh=qt.props=ke({},uc,Ic),Jt=(e,t=[])=>{ie(e)?e.forEach(n=>n(...t)):e&&e(...t)},ol=e=>e?ie(e)?e.some(t=>t.length>1):e.length>1:!1;function Ac(e){const t={};for(const A in e)A in Ic||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,p=Lh(o),w=p&&p[0],y=p&&p[1],{onBeforeEnter:m,onEnter:S,onEnterCancelled:F,onLeave:_,onLeaveCancelled:P,onBeforeAppear:k=m,onAppear:b=S,onAppearCancelled:C=F}=t,T=(A,ee,se)=>{jt(A,ee?u:l),jt(A,ee?c:s),se&&se()},L=(A,ee)=>{A._isLeaving=!1,jt(A,f),jt(A,v),jt(A,d),ee&&ee()},N=A=>(ee,se)=>{const ae=A?b:S,V=()=>T(ee,A,se);Jt(ae,[ee,V]),il(()=>{jt(ee,A?a:i),Et(ee,A?u:l),ol(ae)||sl(ee,r,w,V)})};return ke(t,{onBeforeEnter(A){Jt(m,[A]),Et(A,i),Et(A,s)},onBeforeAppear(A){Jt(k,[A]),Et(A,a),Et(A,c)},onEnter:N(!1),onAppear:N(!0),onLeave(A,ee){A._isLeaving=!0;const se=()=>L(A,ee);Et(A,f),Bc(),Et(A,d),il(()=>{A._isLeaving&&(jt(A,f),Et(A,v),ol(_)||sl(A,r,y,se))}),Jt(_,[A,se])},onEnterCancelled(A){T(A,!1),Jt(F,[A])},onAppearCancelled(A){T(A,!0),Jt(C,[A])},onLeaveCancelled(A){L(A),Jt(P,[A])}})}function Lh(e){if(e==null)return null;if(_e(e))return[Yo(e.enter),Yo(e.leave)];{const t=Yo(e);return[t,t]}}function Yo(e){return Pf(e)}function Et(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function jt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function il(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let jh=0;function sl(e,t,n,r){const o=e._endId=++jh,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=kc(e,t);if(!s)return r();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=v=>{v.target===e&&++u>=a&&f()};setTimeout(()=>{u(n[p]||"").split(", "),o=r(`${Ht}Delay`),i=r(`${Ht}Duration`),s=ll(o,i),l=r(`${Zn}Delay`),a=r(`${Zn}Duration`),c=ll(l,a);let u=null,f=0,d=0;t===Ht?s>0&&(u=Ht,f=s,d=i.length):t===Zn?c>0&&(u=Zn,f=c,d=a.length):(f=Math.max(s,c),u=f>0?s>c?Ht:Zn:null,d=u?u===Ht?i.length:a.length:0);const v=u===Ht&&/\b(transform|all)(,|$)/.test(r(`${Ht}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:v}}function ll(e,t){for(;e.lengthal(n)+al(e[r])))}function al(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Bc(){return document.body.offsetHeight}const Mc=new WeakMap,Hc=new WeakMap,Fc={name:"TransitionGroup",props:ke({},Fh,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Oo(),r=cc();let o,i;return gc(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!Vh(o[0].el,n.vnode.el,s))return;o.forEach(Wh),o.forEach(Uh);const l=o.filter(Kh);Bc(),l.forEach(a=>{const c=a.el,u=c.style;Et(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const f=c._moveCb=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,jt(c,s))};c.addEventListener("transitionend",f)})}),()=>{const s=ge(e),l=Ac(s);let a=s.tag||Me;o=i,i=t.default?ts(t.default()):[];for(let c=0;cdelete e.mode;Fc.props;const Nh=Fc;function Wh(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Uh(e){Hc.set(e,e.el.getBoundingClientRect())}function Kh(e){const t=Mc.get(e),n=Hc.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function Vh(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=kc(r);return o.removeChild(r),i}const qh={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Xx=(e,t)=>n=>{if(!("key"in n))return;const r=mn(n.key);if(t.some(o=>o===r||qh[o]===r))return e(n)},cl={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Jn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Jn(e,!0),r.enter(e)):r.leave(e,()=>{Jn(e,!1)}):Jn(e,t))},beforeUnmount(e,{value:t}){Jn(e,t)}};function Jn(e,t){e.style.display=t?e._vod:"none"}const Gh=ke({patchProp:Mh},wh);let ul;function Xh(){return ul||(ul=th(Gh))}const Yh=(...e)=>{const t=Xh().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Zh(r);if(!o)return;const i=t._component;!ue(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function Zh(e){return Be(e)?document.querySelector(e):e}var Jh=!1;/*! +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Hi(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}const Re={},Rn=[],ct=()=>{},Cf=()=>!1,wf=/^on[^a-z]/,yo=e=>wf.test(e),Fi=e=>e.startsWith("onUpdate:"),ke=Object.assign,Li=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Sf=Object.prototype.hasOwnProperty,ve=(e,t)=>Sf.call(e,t),ie=Array.isArray,Tn=e=>xo(e)==="[object Map]",za=e=>xo(e)==="[object Set]",ue=e=>typeof e=="function",Be=e=>typeof e=="string",ji=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",Ia=e=>_e(e)&&ue(e.then)&&ue(e.catch),Aa=Object.prototype.toString,xo=e=>Aa.call(e),_f=e=>xo(e).slice(8,-1),ka=e=>xo(e)==="[object Object]",Di=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,no=Hi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Co=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},$f=/-(\w)/g,In=Co(e=>e.replace($f,(t,n)=>n?n.toUpperCase():"")),Ef=/\B([A-Z])/g,vn=Co(e=>e.replace(Ef,"-$1").toLowerCase()),Ba=Co(e=>e.charAt(0).toUpperCase()+e.slice(1)),No=Co(e=>e?`on${Ba(e)}`:""),mr=(e,t)=>!Object.is(e,t),Wo=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Pf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Rf=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let Rs;const si=()=>Rs||(Rs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ni(e){if(ie(e)){const t={};for(let n=0;n{if(n){const r=n.split(Of);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Wi(e){let t="";if(Be(e))t=e;else if(ie(e))for(let n=0;nBe(e)?e:e==null?"":ie(e)||_e(e)&&(e.toString===Aa||!ue(e.toString))?JSON.stringify(e,Ha,2):String(e),Ha=(e,t)=>t&&t.__v_isRef?Ha(e,t.value):Tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:za(t)?{[`Set(${t.size})`]:[...t.values()]}:_e(t)&&!ie(t)&&!ka(t)?String(t):t;let tt;class Fa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=tt,!t&&tt&&(this.index=(tt.scopes||(tt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=tt;try{return tt=this,t()}finally{tt=n}}}on(){tt=this}off(){tt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Da=e=>(e.w&Vt)>0,Na=e=>(e.n&Vt)>0,Hf=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ie(e)?Di(n)&&l.push(s.get("length")):(l.push(s.get(cn)),Tn(e)&&l.push(s.get(ai)));break;case"delete":ie(e)||(l.push(s.get(cn)),Tn(e)&&l.push(s.get(ai)));break;case"set":Tn(e)&&l.push(s.get(cn));break}if(l.length===1)l[0]&&ci(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);ci(Ui(a))}}function ci(e,t){const n=ie(e)?e:[...e];for(const r of n)r.computed&&Os(r);for(const r of n)r.computed||Os(r)}function Os(e,t){(e!==lt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Lf(e,t){var n;return(n=ao.get(e))==null?void 0:n.get(t)}const jf=Hi("__proto__,__v_isRef,__isVue"),Ka=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ji)),Df=Vi(),Nf=Vi(!1,!0),Wf=Vi(!0),zs=Uf();function Uf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ge(this);for(let i=0,s=this.length;i{e[t]=function(...n){jn();const r=ge(this)[t].apply(this,n);return Dn(),r}}),e}function Kf(e){const t=ge(this);return et(t,"has",e),t.hasOwnProperty(e)}function Vi(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?ld:Ya:t?Xa:Ga).get(r))return r;const s=ie(r);if(!e){if(s&&ve(zs,o))return Reflect.get(zs,o,i);if(o==="hasOwnProperty")return Kf}const l=Reflect.get(r,o,i);return(ji(o)?Ka.has(o):jf(o))||(e||et(r,"get",o),t)?l:Oe(l)?s&&Di(o)?l:l.value:_e(l)?e?Ot(l):mn(l):l}}const Vf=Va(),qf=Va(!0);function Va(e=!1){return function(n,r,o,i){let s=n[r];if(An(s)&&Oe(s)&&!Oe(o))return!1;if(!e&&(!co(o)&&!An(o)&&(s=ge(s),o=ge(o)),!ie(n)&&Oe(s)&&!Oe(o)))return s.value=o,!0;const l=ie(n)&&Di(r)?Number(r)e,wo=e=>Reflect.getPrototypeOf(e);function Lr(e,t,n=!1,r=!1){e=e.__v_raw;const o=ge(e),i=ge(t);n||(t!==i&&et(o,"get",t),et(o,"get",i));const{has:s}=wo(o),l=r?qi:n?Yi:br;if(s.call(o,t))return l(e.get(t));if(s.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function jr(e,t=!1){const n=this.__v_raw,r=ge(n),o=ge(e);return t||(e!==o&&et(r,"has",e),et(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Dr(e,t=!1){return e=e.__v_raw,!t&&et(ge(e),"iterate",cn),Reflect.get(e,"size",e)}function Is(e){e=ge(e);const t=ge(this);return wo(t).has.call(t,e)||(t.add(e),Tt(t,"add",e,e)),this}function As(e,t){t=ge(t);const n=ge(this),{has:r,get:o}=wo(n);let i=r.call(n,e);i||(e=ge(e),i=r.call(n,e));const s=o.call(n,e);return n.set(e,t),i?mr(t,s)&&Tt(n,"set",e,t):Tt(n,"add",e,t),this}function ks(e){const t=ge(this),{has:n,get:r}=wo(t);let o=n.call(t,e);o||(e=ge(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Tt(t,"delete",e,void 0),i}function Bs(){const e=ge(this),t=e.size!==0,n=e.clear();return t&&Tt(e,"clear",void 0,void 0),n}function Nr(e,t){return function(r,o){const i=this,s=i.__v_raw,l=ge(s),a=t?qi:e?Yi:br;return!e&&et(l,"iterate",cn),s.forEach((c,u)=>r.call(o,a(c),a(u),i))}}function Wr(e,t,n){return function(...r){const o=this.__v_raw,i=ge(o),s=Tn(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=o[e](...r),u=n?qi:t?Yi:br;return!t&&et(i,"iterate",a?ai:cn),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:l?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Mt(e){return function(...t){return e==="delete"?!1:this}}function Qf(){const e={get(i){return Lr(this,i)},get size(){return Dr(this)},has:jr,add:Is,set:As,delete:ks,clear:Bs,forEach:Nr(!1,!1)},t={get(i){return Lr(this,i,!1,!0)},get size(){return Dr(this)},has:jr,add:Is,set:As,delete:ks,clear:Bs,forEach:Nr(!1,!0)},n={get(i){return Lr(this,i,!0)},get size(){return Dr(this,!0)},has(i){return jr.call(this,i,!0)},add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear"),forEach:Nr(!0,!1)},r={get(i){return Lr(this,i,!0,!0)},get size(){return Dr(this,!0)},has(i){return jr.call(this,i,!0)},add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear"),forEach:Nr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Wr(i,!1,!1),n[i]=Wr(i,!0,!1),t[i]=Wr(i,!1,!0),r[i]=Wr(i,!0,!0)}),[e,n,t,r]}const[ed,td,nd,rd]=Qf();function Gi(e,t){const n=t?e?rd:nd:e?td:ed;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(ve(n,o)&&o in r?n:r,o,i)}const od={get:Gi(!1,!1)},id={get:Gi(!1,!0)},sd={get:Gi(!0,!1)},Ga=new WeakMap,Xa=new WeakMap,Ya=new WeakMap,ld=new WeakMap;function ad(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function cd(e){return e.__v_skip||!Object.isExtensible(e)?0:ad(_f(e))}function mn(e){return An(e)?e:Xi(e,!1,qa,od,Ga)}function Za(e){return Xi(e,!1,Jf,id,Xa)}function Ot(e){return Xi(e,!0,Zf,sd,Ya)}function Xi(e,t,n,r,o){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=cd(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return o.set(e,l),l}function Rt(e){return An(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function An(e){return!!(e&&e.__v_isReadonly)}function co(e){return!!(e&&e.__v_isShallow)}function Ja(e){return Rt(e)||An(e)}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function kn(e){return lo(e,"__v_skip",!0),e}const br=e=>_e(e)?mn(e):e,Yi=e=>_e(e)?Ot(e):e;function Qa(e){Ut&<&&(e=ge(e),Ua(e.dep||(e.dep=Ui())))}function ec(e,t){e=ge(e);const n=e.dep;n&&ci(n)}function Oe(e){return!!(e&&e.__v_isRef===!0)}function oe(e){return tc(e,!1)}function ud(e){return tc(e,!0)}function tc(e,t){return Oe(e)?e:new fd(e,t)}class fd{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ge(t),this._value=n?t:br(t)}get value(){return Qa(this),this._value}set value(t){const n=this.__v_isShallow||co(t)||An(t);t=n?t:ge(t),mr(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:br(t),ec(this))}}function Ct(e){return Oe(e)?e.value:e}const dd={get:(e,t,n)=>Ct(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Oe(o)&&!Oe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function nc(e){return Rt(e)?e:new Proxy(e,dd)}function hd(e){const t=ie(e)?new Array(e.length):{};for(const n in e)t[n]=rc(e,n);return t}class pd{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Lf(ge(this._object),this._key)}}class gd{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function zt(e,t,n){return Oe(e)?e:ue(e)?new gd(e):_e(e)&&arguments.length>1?rc(e,t,n):oe(e)}function rc(e,t,n){const r=e[t];return Oe(r)?r:new pd(e,t,n)}class vd{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ki(t,()=>{this._dirty||(this._dirty=!0,ec(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=ge(this);return Qa(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function md(e,t,n=!1){let r,o;const i=ue(e);return i?(r=e,o=ct):(r=e.get,o=e.set),new vd(r,o,i||!o,n)}function Kt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){So(i,t,n)}return o}function st(e,t,n,r){if(ue(e)){const i=Kt(e,t,n,r);return i&&Ia(i)&&i.catch(s=>{So(s,t,n)}),i}const o=[];for(let i=0;i>>1;xr(We[r])xt&&We.splice(t,1)}function Cd(e){ie(e)?On.push(...e):(!Pt||!Pt.includes(e,e.allowRecurse?en+1:en))&&On.push(e),ic()}function Ms(e,t=yr?xt+1:0){for(;txr(n)-xr(r)),en=0;ene.id==null?1/0:e.id,wd=(e,t)=>{const n=xr(e)-xr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function lc(e){ui=!1,yr=!0,We.sort(wd);const t=ct;try{for(xt=0;xtBe(v)?v.trim():v)),f&&(o=n.map(Pf))}let l,a=r[l=No(t)]||r[l=No(In(t))];!a&&i&&(a=r[l=No(vn(t))]),a&&st(a,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,st(c,e,6,o)}}function ac(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let s={},l=!1;if(!ue(e)){const a=c=>{const u=ac(c,t,!0);u&&(l=!0,ke(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(_e(e)&&r.set(e,null),null):(ie(i)?i.forEach(a=>s[a]=null):ke(s,i),_e(e)&&r.set(e,s),s)}function _o(e,t){return!e||!yo(t)?!1:(t=t.slice(2).replace(/Once$/,""),ve(e,t[0].toLowerCase()+t.slice(1))||ve(e,vn(t))||ve(e,t))}let je=null,$o=null;function uo(e){const t=je;return je=e,$o=e&&e.type.__scopeId||null,t}function Ux(e){$o=e}function Kx(){$o=null}function ro(e,t=je,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Gs(-1);const i=uo(t);let s;try{s=e(...o)}finally{uo(i),r._d&&Gs(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Uo(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:d,setupState:v,ctx:p,inheritAttrs:w}=e;let y,m;const S=uo(e);try{if(n.shapeFlag&4){const _=o||r;y=bt(u.call(_,_,f,i,v,d,p)),m=a}else{const _=t;y=bt(_.length>1?_(i,{attrs:a,slots:l,emit:c}):_(i,null)),m=t.props?a:_d(a)}}catch(_){ur.length=0,So(_,e,1),y=Le(Ge)}let F=y;if(m&&w!==!1){const _=Object.keys(m),{shapeFlag:P}=F;_.length&&P&7&&(s&&_.some(Fi)&&(m=$d(m,s)),F=It(F,m))}return n.dirs&&(F=It(F),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&(F.transition=n.transition),y=F,uo(S),y}const _d=e=>{let t;for(const n in e)(n==="class"||n==="style"||yo(n))&&((t||(t={}))[n]=e[n]);return t},$d=(e,t)=>{const n={};for(const r in e)(!Fi(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ed(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Hs(r,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function Td(e,t){t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):Cd(e)}function Qi(e,t){return es(e,null,t)}const Ur={};function ut(e,t,n){return es(e,t,n)}function es(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:s}=Re){var l;const a=ja()===((l=Fe)==null?void 0:l.scope)?Fe:null;let c,u=!1,f=!1;if(Oe(e)?(c=()=>e.value,u=co(e)):Rt(e)?(c=()=>e,r=!0):ie(e)?(f=!0,u=e.some(_=>Rt(_)||co(_)),c=()=>e.map(_=>{if(Oe(_))return _.value;if(Rt(_))return rn(_);if(ue(_))return Kt(_,a,2)})):ue(e)?t?c=()=>Kt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return d&&d(),st(e,a,3,[v])}:c=ct,t&&r){const _=c;c=()=>rn(_())}let d,v=_=>{d=S.onStop=()=>{Kt(_,a,4)}},p;if(Pr)if(v=ct,t?n&&st(t,a,3,[c(),f?[]:void 0,v]):c(),o==="sync"){const _=yh();p=_.__watcherHandles||(_.__watcherHandles=[])}else return ct;let w=f?new Array(e.length).fill(Ur):Ur;const y=()=>{if(S.active)if(t){const _=S.run();(r||u||(f?_.some((P,k)=>mr(P,w[k])):mr(_,w)))&&(d&&d(),st(t,a,3,[_,w===Ur?void 0:f&&w[0]===Ur?[]:w,v]),w=_)}else S.run()};y.allowRecurse=!!t;let m;o==="sync"?m=y:o==="post"?m=()=>Qe(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),m=()=>Ji(y));const S=new Ki(c,m);t?n?y():w=S.run():o==="post"?Qe(S.run.bind(S),a&&a.suspense):S.run();const F=()=>{S.stop(),a&&a.scope&&Li(a.scope.effects,S)};return p&&p.push(F),F}function Od(e,t,n){const r=this.proxy,o=Be(e)?e.includes(".")?cc(r,e):()=>r[e]:e.bind(r,r);let i;ue(t)?i=t:(i=t.handler,n=t);const s=Fe;Mn(this);const l=es(o,i.bind(r),n);return s?Mn(s):un(),l}function cc(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{rn(n,t)});else if(ka(e))for(const n in e)rn(e[n],t);return e}function fi(e,t){const n=je;if(n===null)return e;const r=zo(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),dt(()=>{e.isUnmounting=!0}),e}const ot=[Function,Array],fc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ot,onEnter:ot,onAfterEnter:ot,onEnterCancelled:ot,onBeforeLeave:ot,onLeave:ot,onAfterLeave:ot,onLeaveCancelled:ot,onBeforeAppear:ot,onAppear:ot,onAfterAppear:ot,onAppearCancelled:ot},zd={name:"BaseTransition",props:fc,setup(e,{slots:t}){const n=Oo(),r=uc();let o;return()=>{const i=t.default&&ts(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const w of i)if(w.type!==Ge){s=w;break}}const l=ge(e),{mode:a}=l;if(r.isLeaving)return Ko(s);const c=Fs(s);if(!c)return Ko(s);const u=Cr(c,l,r,n);wr(c,u);const f=n.subTree,d=f&&Fs(f);let v=!1;const{getTransitionKey:p}=c.type;if(p){const w=p();o===void 0?o=w:w!==o&&(o=w,v=!0)}if(d&&d.type!==Ge&&(!tn(c,d)||v)){const w=Cr(d,l,r,n);if(wr(d,w),a==="out-in")return r.isLeaving=!0,w.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ko(s);a==="in-out"&&c.type!==Ge&&(w.delayLeave=(y,m,S)=>{const F=dc(r,d);F[String(d.key)]=d,y._leaveCb=()=>{m(),y._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=S})}return s}}},Id=zd;function dc(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 Cr(e,t,n,r){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:w,onAppear:y,onAfterAppear:m,onAppearCancelled:S}=t,F=String(e.key),_=dc(n,e),P=(C,R)=>{C&&st(C,r,9,R)},k=(C,R)=>{const L=R[1];P(C,R),ie(C)?C.every(N=>N.length<=1)&&L():C.length<=1&&L()},b={mode:i,persisted:s,beforeEnter(C){let R=l;if(!n.isMounted)if(o)R=w||l;else return;C._leaveCb&&C._leaveCb(!0);const L=_[F];L&&tn(e,L)&&L.el._leaveCb&&L.el._leaveCb(),P(R,[C])},enter(C){let R=a,L=c,N=u;if(!n.isMounted)if(o)R=y||a,L=m||c,N=S||u;else return;let A=!1;const ee=C._enterCb=se=>{A||(A=!0,se?P(N,[C]):P(L,[C]),b.delayedLeave&&b.delayedLeave(),C._enterCb=void 0)};R?k(R,[C,ee]):ee()},leave(C,R){const L=String(e.key);if(C._enterCb&&C._enterCb(!0),n.isUnmounting)return R();P(f,[C]);let N=!1;const A=C._leaveCb=ee=>{N||(N=!0,R(),ee?P(p,[C]):P(v,[C]),C._leaveCb=void 0,_[L]===e&&delete _[L])};_[L]=e,d?k(d,[C,A]):A()},clone(C){return Cr(C,t,n,r)}};return b}function Ko(e){if(Eo(e))return e=It(e),e.children=null,e}function Fs(e){return Eo(e)?e.children?e.children[0]:void 0:e}function wr(e,t){e.shapeFlag&6&&e.component?wr(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 ts(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;ike({name:e.name},t,{setup:e}))():e}const lr=e=>!!e.type.__asyncLoader,Eo=e=>e.type.__isKeepAlive;function hc(e,t){gc(e,"a",t)}function pc(e,t){gc(e,"da",t)}function gc(e,t,n=Fe){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Po(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Eo(o.parent.vnode)&&Ad(r,t,n,o),o=o.parent}}function Ad(e,t,n,r){const o=Po(t,e,r,!0);mc(()=>{Li(r[t],o)},n)}function Po(e,t,n=Fe,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;jn(),Mn(n);const l=st(t,n,e,s);return un(),Dn(),l});return r?o.unshift(i):o.push(i),i}}const At=e=>(t,n=Fe)=>(!Pr||e==="sp")&&Po(e,(...r)=>t(...r),n),bn=At("bm"),Gt=At("m"),kd=At("bu"),vc=At("u"),dt=At("bum"),mc=At("um"),Bd=At("sp"),Md=At("rtg"),Hd=At("rtc");function Fd(e,t=Fe){Po("ec",e,t)}const Ld=Symbol.for("v-ndc");function Vx(e,t,n,r){let o;const i=n&&n[r];if(ie(e)||Be(e)){o=new Array(e.length);for(let s=0,l=e.length;st(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);o=new Array(s.length);for(let l=0,a=s.length;l$r(t)?!(t.type===Ge||t.type===Me&&!bc(t.children)):!0)?e:null}const di=e=>e?zc(e)?zo(e)||e.proxy:di(e.parent):null,ar=ke(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=>di(e.parent),$root:e=>di(e.root),$emit:e=>e.emit,$options:e=>ns(e),$forceUpdate:e=>e.f||(e.f=()=>Ji(e.update)),$nextTick:e=>e.n||(e.n=Bn.bind(e.proxy)),$watch:e=>Od.bind(e)}),Vo=(e,t)=>e!==Re&&!e.__isScriptSetup&&ve(e,t),Dd={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const v=s[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Vo(r,t))return s[t]=1,r[t];if(o!==Re&&ve(o,t))return s[t]=2,o[t];if((c=e.propsOptions[0])&&ve(c,t))return s[t]=3,i[t];if(n!==Re&&ve(n,t))return s[t]=4,n[t];hi&&(s[t]=0)}}const u=ar[t];let f,d;if(u)return t==="$attrs"&&et(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==Re&&ve(n,t))return s[t]=4,n[t];if(d=a.config.globalProperties,ve(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Vo(o,t)?(o[t]=n,!0):r!==Re&&ve(r,t)?(r[t]=n,!0):ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let l;return!!n[s]||e!==Re&&ve(e,s)||Vo(t,s)||(l=i[0])&&ve(l,s)||ve(r,s)||ve(ar,s)||ve(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ls(e){return ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let hi=!0;function Nd(e){const t=ns(e),n=e.proxy,r=e.ctx;hi=!1,t.beforeCreate&&js(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:v,updated:p,activated:w,deactivated:y,beforeDestroy:m,beforeUnmount:S,destroyed:F,unmounted:_,render:P,renderTracked:k,renderTriggered:b,errorCaptured:C,serverPrefetch:R,expose:L,inheritAttrs:N,components:A,directives:ee,filters:se}=t;if(c&&Wd(c,r,null),s)for(const K in s){const ne=s[K];ue(ne)&&(r[K]=ne.bind(n))}if(o){const K=o.call(n,n);_e(K)&&(e.data=mn(K))}if(hi=!0,i)for(const K in i){const ne=i[K],Ce=ue(ne)?ne.bind(n,n):ue(ne.get)?ne.get.bind(n,n):ct,we=!ue(ne)&&ue(ne.set)?ne.set.bind(n):ct,Se=X({get:Ce,set:we});Object.defineProperty(r,K,{enumerable:!0,configurable:!0,get:()=>Se.value,set:Te=>Se.value=Te})}if(l)for(const K in l)yc(l[K],r,n,K);if(a){const K=ue(a)?a.call(n):a;Reflect.ownKeys(K).forEach(ne=>{qe(ne,K[ne])})}u&&js(u,e,"c");function V(K,ne){ie(ne)?ne.forEach(Ce=>K(Ce.bind(n))):ne&&K(ne.bind(n))}if(V(bn,f),V(Gt,d),V(kd,v),V(vc,p),V(hc,w),V(pc,y),V(Fd,C),V(Hd,k),V(Md,b),V(dt,S),V(mc,_),V(Bd,R),ie(L))if(L.length){const K=e.exposed||(e.exposed={});L.forEach(ne=>{Object.defineProperty(K,ne,{get:()=>n[ne],set:Ce=>n[ne]=Ce})})}else e.exposed||(e.exposed={});P&&e.render===ct&&(e.render=P),N!=null&&(e.inheritAttrs=N),A&&(e.components=A),ee&&(e.directives=ee)}function Wd(e,t,n=ct){ie(e)&&(e=pi(e));for(const r in e){const o=e[r];let i;_e(o)?"default"in o?i=ze(o.from||r,o.default,!0):i=ze(o.from||r):i=ze(o),Oe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[r]=i}}function js(e,t,n){st(ie(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function yc(e,t,n,r){const o=r.includes(".")?cc(n,r):()=>n[r];if(Be(e)){const i=t[e];ue(i)&&ut(o,i)}else if(ue(e))ut(o,e.bind(n));else if(_e(e))if(ie(e))e.forEach(i=>yc(i,t,n,r));else{const i=ue(e.handler)?e.handler.bind(n):t[e.handler];ue(i)&&ut(o,i,e)}}function ns(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!o.length&&!n&&!r?a=t:(a={},o.length&&o.forEach(c=>fo(a,c,s,!0)),fo(a,t,s)),_e(t)&&i.set(t,a),a}function fo(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&fo(e,i,n,!0),o&&o.forEach(s=>fo(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=Ud[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ud={data:Ds,props:Ns,emits:Ns,methods:or,computed:or,beforeCreate:Ke,created:Ke,beforeMount:Ke,mounted:Ke,beforeUpdate:Ke,updated:Ke,beforeDestroy:Ke,beforeUnmount:Ke,destroyed:Ke,unmounted:Ke,activated:Ke,deactivated:Ke,errorCaptured:Ke,serverPrefetch:Ke,components:or,directives:or,watch:Vd,provide:Ds,inject:Kd};function Ds(e,t){return t?e?function(){return ke(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function Kd(e,t){return or(pi(e),pi(t))}function pi(e){if(ie(e)){const t={};for(let n=0;n1)return n&&ue(t)?t.call(r&&r.proxy):t}}function Xd(){return!!(Fe||je||Sr)}function Yd(e,t,n,r=!1){const o={},i={};lo(i,To,1),e.propsDefaults=Object.create(null),Cc(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:Za(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Zd(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,l=ge(o),[a]=e.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[d,v]=wc(f,t,!0);ke(s,d),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return _e(e)&&r.set(e,Rn),Rn;if(ie(i))for(let u=0;u-1,v[1]=w<0||p-1||ve(v,"default"))&&l.push(f)}}}const c=[s,l];return _e(e)&&r.set(e,c),c}function Ws(e){return e[0]!=="$"}function Us(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ks(e,t){return Us(e)===Us(t)}function Vs(e,t){return ie(t)?t.findIndex(n=>Ks(n,e)):ue(t)&&Ks(t,e)?0:-1}const Sc=e=>e[0]==="_"||e==="$stable",rs=e=>ie(e)?e.map(bt):[bt(e)],Jd=(e,t,n)=>{if(t._n)return t;const r=ro((...o)=>rs(t(...o)),n);return r._c=!1,r},_c=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Sc(o))continue;const i=e[o];if(ue(i))t[o]=Jd(o,i,r);else if(i!=null){const s=rs(i);t[o]=()=>s}}},$c=(e,t)=>{const n=rs(t);e.slots.default=()=>n},Qd=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ge(t),lo(t,"_",n)):_c(t,e.slots={})}else e.slots={},t&&$c(e,t);lo(e.slots,To,1)},eh=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=Re;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ke(o,t),!n&&l===1&&delete o._):(i=!t.$stable,_c(t,o)),s=t}else t&&($c(e,t),s={default:1});if(i)for(const l in o)!Sc(l)&&!(l in s)&&delete o[l]};function vi(e,t,n,r,o=!1){if(ie(e)){e.forEach((d,v)=>vi(d,t&&(ie(t)?t[v]:t),n,r,o));return}if(lr(r)&&!o)return;const i=r.shapeFlag&4?zo(r.component)||r.component.proxy:r.el,s=o?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===Re?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(Be(c)?(u[c]=null,ve(f,c)&&(f[c]=null)):Oe(c)&&(c.value=null)),ue(a))Kt(a,l,12,[s,u]);else{const d=Be(a),v=Oe(a);if(d||v){const p=()=>{if(e.f){const w=d?ve(f,a)?f[a]:u[a]:a.value;o?ie(w)&&Li(w,i):ie(w)?w.includes(i)||w.push(i):d?(u[a]=[i],ve(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else d?(u[a]=s,ve(f,a)&&(f[a]=s)):v&&(a.value=s,e.k&&(u[e.k]=s))};s?(p.id=-1,Qe(p,n)):p()}}}const Qe=Td;function th(e){return nh(e)}function nh(e,t){const n=si();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:v=ct,insertStaticContent:p}=e,w=(h,g,x,E=null,z=null,B=null,W=!1,j=null,M=!!g.dynamicChildren)=>{if(h===g)return;h&&!tn(h,g)&&(E=T(h),Te(h,z,B,!0),h=null),g.patchFlag===-2&&(M=!1,g.dynamicChildren=null);const{type:O,ref:J,shapeFlag:q}=g;switch(O){case Ro:y(h,g,x,E);break;case Ge:m(h,g,x,E);break;case qo:h==null&&S(g,x,E,W);break;case Me:A(h,g,x,E,z,B,W,j,M);break;default:q&1?P(h,g,x,E,z,B,W,j,M):q&6?ee(h,g,x,E,z,B,W,j,M):(q&64||q&128)&&O.process(h,g,x,E,z,B,W,j,M,I)}J!=null&&z&&vi(J,h&&h.ref,B,g||h,!g)},y=(h,g,x,E)=>{if(h==null)r(g.el=l(g.children),x,E);else{const z=g.el=h.el;g.children!==h.children&&c(z,g.children)}},m=(h,g,x,E)=>{h==null?r(g.el=a(g.children||""),x,E):g.el=h.el},S=(h,g,x,E)=>{[h.el,h.anchor]=p(h.children,g,x,E,h.el,h.anchor)},F=({el:h,anchor:g},x,E)=>{let z;for(;h&&h!==g;)z=d(h),r(h,x,E),h=z;r(g,x,E)},_=({el:h,anchor:g})=>{let x;for(;h&&h!==g;)x=d(h),o(h),h=x;o(g)},P=(h,g,x,E,z,B,W,j,M)=>{W=W||g.type==="svg",h==null?k(g,x,E,z,B,W,j,M):R(h,g,z,B,W,j,M)},k=(h,g,x,E,z,B,W,j)=>{let M,O;const{type:J,props:q,shapeFlag:Z,transition:le,dirs:he}=h;if(M=h.el=s(h.type,B,q&&q.is,q),Z&8?u(M,h.children):Z&16&&C(h.children,M,null,E,z,B&&J!=="foreignObject",W,j),he&&Xt(h,null,E,"created"),b(M,h,h.scopeId,W,E),q){for(const me in q)me!=="value"&&!no(me)&&i(M,me,null,q[me],B,h.children,E,z,fe);"value"in q&&i(M,"value",null,q.value),(O=q.onVnodeBeforeMount)&>(O,E,h)}he&&Xt(h,null,E,"beforeMount");const be=(!z||z&&!z.pendingBranch)&&le&&!le.persisted;be&&le.beforeEnter(M),r(M,g,x),((O=q&&q.onVnodeMounted)||be||he)&&Qe(()=>{O&>(O,E,h),be&&le.enter(M),he&&Xt(h,null,E,"mounted")},z)},b=(h,g,x,E,z)=>{if(x&&v(h,x),E)for(let B=0;B{for(let O=M;O{const j=g.el=h.el;let{patchFlag:M,dynamicChildren:O,dirs:J}=g;M|=h.patchFlag&16;const q=h.props||Re,Z=g.props||Re;let le;x&&Yt(x,!1),(le=Z.onVnodeBeforeUpdate)&>(le,x,g,h),J&&Xt(g,h,x,"beforeUpdate"),x&&Yt(x,!0);const he=z&&g.type!=="foreignObject";if(O?L(h.dynamicChildren,O,j,x,E,he,B):W||ne(h,g,j,null,x,E,he,B,!1),M>0){if(M&16)N(j,g,q,Z,x,E,z);else if(M&2&&q.class!==Z.class&&i(j,"class",null,Z.class,z),M&4&&i(j,"style",q.style,Z.style,z),M&8){const be=g.dynamicProps;for(let me=0;me{le&>(le,x,g,h),J&&Xt(g,h,x,"updated")},E)},L=(h,g,x,E,z,B,W)=>{for(let j=0;j{if(x!==E){if(x!==Re)for(const j in x)!no(j)&&!(j in E)&&i(h,j,x[j],null,W,g.children,z,B,fe);for(const j in E){if(no(j))continue;const M=E[j],O=x[j];M!==O&&j!=="value"&&i(h,j,O,M,W,g.children,z,B,fe)}"value"in E&&i(h,"value",x.value,E.value)}},A=(h,g,x,E,z,B,W,j,M)=>{const O=g.el=h?h.el:l(""),J=g.anchor=h?h.anchor:l("");let{patchFlag:q,dynamicChildren:Z,slotScopeIds:le}=g;le&&(j=j?j.concat(le):le),h==null?(r(O,x,E),r(J,x,E),C(g.children,x,J,z,B,W,j,M)):q>0&&q&64&&Z&&h.dynamicChildren?(L(h.dynamicChildren,Z,x,z,B,W,j),(g.key!=null||z&&g===z.subTree)&&os(h,g,!0)):ne(h,g,x,J,z,B,W,j,M)},ee=(h,g,x,E,z,B,W,j,M)=>{g.slotScopeIds=j,h==null?g.shapeFlag&512?z.ctx.activate(g,x,E,W,M):se(g,x,E,z,B,W,M):ae(h,g,M)},se=(h,g,x,E,z,B,W)=>{const j=h.component=dh(h,E,z);if(Eo(h)&&(j.ctx.renderer=I),hh(j),j.asyncDep){if(z&&z.registerDep(j,V),!h.el){const M=j.subTree=Le(Ge);m(null,M,g,x)}return}V(j,h,g,x,z,B,W)},ae=(h,g,x)=>{const E=g.component=h.component;if(Ed(h,g,x))if(E.asyncDep&&!E.asyncResolved){K(E,g,x);return}else E.next=g,xd(E.update),E.update();else g.el=h.el,E.vnode=g},V=(h,g,x,E,z,B,W)=>{const j=()=>{if(h.isMounted){let{next:J,bu:q,u:Z,parent:le,vnode:he}=h,be=J,me;Yt(h,!1),J?(J.el=he.el,K(h,J,W)):J=he,q&&Wo(q),(me=J.props&&J.props.onVnodeBeforeUpdate)&>(me,le,J,he),Yt(h,!0);const Ie=Uo(h),Ue=h.subTree;h.subTree=Ie,w(Ue,Ie,f(Ue.el),T(Ue),h,z,B),J.el=Ie.el,be===null&&Pd(h,Ie.el),Z&&Qe(Z,z),(me=J.props&&J.props.onVnodeUpdated)&&Qe(()=>gt(me,le,J,he),z)}else{let J;const{el:q,props:Z}=g,{bm:le,m:he,parent:be}=h,me=lr(g);if(Yt(h,!1),le&&Wo(le),!me&&(J=Z&&Z.onVnodeBeforeMount)&>(J,be,g),Yt(h,!0),q&&pe){const Ie=()=>{h.subTree=Uo(h),pe(q,h.subTree,h,z,null)};me?g.type.__asyncLoader().then(()=>!h.isUnmounted&&Ie()):Ie()}else{const Ie=h.subTree=Uo(h);w(null,Ie,x,E,h,z,B),g.el=Ie.el}if(he&&Qe(he,z),!me&&(J=Z&&Z.onVnodeMounted)){const Ie=g;Qe(()=>gt(J,be,Ie),z)}(g.shapeFlag&256||be&&lr(be.vnode)&&be.vnode.shapeFlag&256)&&h.a&&Qe(h.a,z),h.isMounted=!0,g=x=E=null}},M=h.effect=new Ki(j,()=>Ji(O),h.scope),O=h.update=()=>M.run();O.id=h.uid,Yt(h,!0),O()},K=(h,g,x)=>{g.component=h;const E=h.vnode.props;h.vnode=g,h.next=null,Zd(h,g.props,E,x),eh(h,g.children,x),jn(),Ms(),Dn()},ne=(h,g,x,E,z,B,W,j,M=!1)=>{const O=h&&h.children,J=h?h.shapeFlag:0,q=g.children,{patchFlag:Z,shapeFlag:le}=g;if(Z>0){if(Z&128){we(O,q,x,E,z,B,W,j,M);return}else if(Z&256){Ce(O,q,x,E,z,B,W,j,M);return}}le&8?(J&16&&fe(O,z,B),q!==O&&u(x,q)):J&16?le&16?we(O,q,x,E,z,B,W,j,M):fe(O,z,B,!0):(J&8&&u(x,""),le&16&&C(q,x,E,z,B,W,j,M))},Ce=(h,g,x,E,z,B,W,j,M)=>{h=h||Rn,g=g||Rn;const O=h.length,J=g.length,q=Math.min(O,J);let Z;for(Z=0;ZJ?fe(h,z,B,!0,!1,q):C(g,x,E,z,B,W,j,M,q)},we=(h,g,x,E,z,B,W,j,M)=>{let O=0;const J=g.length;let q=h.length-1,Z=J-1;for(;O<=q&&O<=Z;){const le=h[O],he=g[O]=M?Nt(g[O]):bt(g[O]);if(tn(le,he))w(le,he,x,null,z,B,W,j,M);else break;O++}for(;O<=q&&O<=Z;){const le=h[q],he=g[Z]=M?Nt(g[Z]):bt(g[Z]);if(tn(le,he))w(le,he,x,null,z,B,W,j,M);else break;q--,Z--}if(O>q){if(O<=Z){const le=Z+1,he=leZ)for(;O<=q;)Te(h[O],z,B,!0),O++;else{const le=O,he=O,be=new Map;for(O=he;O<=Z;O++){const Ye=g[O]=M?Nt(g[O]):bt(g[O]);Ye.key!=null&&be.set(Ye.key,O)}let me,Ie=0;const Ue=Z-he+1;let pt=!1,Fr=0;const Bt=new Array(Ue);for(O=0;O=Ue){Te(Ye,z,B,!0);continue}let H;if(Ye.key!=null)H=be.get(Ye.key);else for(me=he;me<=Z;me++)if(Bt[me-he]===0&&tn(Ye,g[me])){H=me;break}H===void 0?Te(Ye,z,B,!0):(Bt[H-he]=O+1,H>=Fr?Fr=H:pt=!0,w(Ye,g[H],x,null,z,B,W,j,M),Ie++)}const wt=pt?rh(Bt):Rn;for(me=wt.length-1,O=Ue-1;O>=0;O--){const Ye=he+O,H=g[Ye],Q=Ye+1{const{el:B,type:W,transition:j,children:M,shapeFlag:O}=h;if(O&6){Se(h.component.subTree,g,x,E);return}if(O&128){h.suspense.move(g,x,E);return}if(O&64){W.move(h,g,x,I);return}if(W===Me){r(B,g,x);for(let q=0;qj.enter(B),z);else{const{leave:q,delayLeave:Z,afterLeave:le}=j,he=()=>r(B,g,x),be=()=>{q(B,()=>{he(),le&&le()})};Z?Z(B,he,be):be()}else r(B,g,x)},Te=(h,g,x,E=!1,z=!1)=>{const{type:B,props:W,ref:j,children:M,dynamicChildren:O,shapeFlag:J,patchFlag:q,dirs:Z}=h;if(j!=null&&vi(j,null,x,h,!0),J&256){g.ctx.deactivate(h);return}const le=J&1&&Z,he=!lr(h);let be;if(he&&(be=W&&W.onVnodeBeforeUnmount)&>(be,g,h),J&6)Xe(h.component,x,E);else{if(J&128){h.suspense.unmount(x,E);return}le&&Xt(h,null,g,"beforeUnmount"),J&64?h.type.remove(h,g,x,z,I,E):O&&(B!==Me||q>0&&q&64)?fe(O,g,x,!1,!0):(B===Me&&q&384||!z&&J&16)&&fe(M,g,x),E&&rt(h)}(he&&(be=W&&W.onVnodeUnmounted)||le)&&Qe(()=>{be&>(be,g,h),le&&Xt(h,null,g,"unmounted")},x)},rt=h=>{const{type:g,el:x,anchor:E,transition:z}=h;if(g===Me){ht(x,E);return}if(g===qo){_(h);return}const B=()=>{o(x),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(h.shapeFlag&1&&z&&!z.persisted){const{leave:W,delayLeave:j}=z,M=()=>W(x,B);j?j(h.el,B,M):M()}else B()},ht=(h,g)=>{let x;for(;h!==g;)x=d(h),o(h),h=x;o(g)},Xe=(h,g,x)=>{const{bum:E,scope:z,update:B,subTree:W,um:j}=h;E&&Wo(E),z.stop(),B&&(B.active=!1,Te(W,h,g,x)),j&&Qe(j,g),Qe(()=>{h.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},fe=(h,g,x,E=!1,z=!1,B=0)=>{for(let W=B;Wh.shapeFlag&6?T(h.component.subTree):h.shapeFlag&128?h.suspense.next():d(h.anchor||h.el),U=(h,g,x)=>{h==null?g._vnode&&Te(g._vnode,null,null,!0):w(g._vnode||null,h,g,null,null,null,x),Ms(),sc(),g._vnode=h},I={p:w,um:Te,m:Se,r:rt,mt:se,mc:C,pc:ne,pbc:L,n:T,o:e};let Y,pe;return t&&([Y,pe]=t(I)),{render:U,hydrate:Y,createApp:Gd(U,Y)}}function Yt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function os(e,t,n=!1){const r=e.children,o=t.children;if(ie(r)&&ie(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const oh=e=>e.__isTeleport,cr=e=>e&&(e.disabled||e.disabled===""),qs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,mi=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},ih={__isTeleport:!0,process(e,t,n,r,o,i,s,l,a,c){const{mc:u,pc:f,pbc:d,o:{insert:v,querySelector:p,createText:w,createComment:y}}=c,m=cr(t.props);let{shapeFlag:S,children:F,dynamicChildren:_}=t;if(e==null){const P=t.el=w(""),k=t.anchor=w("");v(P,n,r),v(k,n,r);const b=t.target=mi(t.props,p),C=t.targetAnchor=w("");b&&(v(C,b),s=s||qs(b));const R=(L,N)=>{S&16&&u(F,L,N,o,i,s,l,a)};m?R(n,k):b&&R(b,C)}else{t.el=e.el;const P=t.anchor=e.anchor,k=t.target=e.target,b=t.targetAnchor=e.targetAnchor,C=cr(e.props),R=C?n:k,L=C?P:b;if(s=s||qs(k),_?(d(e.dynamicChildren,_,R,o,i,s,l),os(e,t,!0)):a||f(e,t,R,L,o,i,s,l,!1),m)C||Kr(t,n,P,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=mi(t.props,p);N&&Kr(t,N,null,c,0)}else C&&Kr(t,k,b,c,1)}Pc(t)},remove(e,t,n,r,{um:o,o:{remove:i}},s){const{shapeFlag:l,children:a,anchor:c,targetAnchor:u,target:f,props:d}=e;if(f&&i(u),(s||!cr(d))&&(i(c),l&16))for(let v=0;v0?at||Rn:null,lh(),_r>0&&at&&at.push(e),e}function qx(e,t,n,r,o,i){return Rc(Oc(e,t,n,r,o,i,!0))}function ss(e,t,n,r,o){return Rc(Le(e,t,n,r,o,!0))}function $r(e){return e?e.__v_isVNode===!0:!1}function tn(e,t){return e.type===t.type&&e.key===t.key}const To="__vInternal",Tc=({key:e})=>e??null,oo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||Oe(e)||ue(e)?{i:je,r:e,k:t,f:!!n}:e:null);function Oc(e,t=null,n=null,r=0,o=null,i=e===Me?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tc(t),ref:t&&oo(t),scopeId:$o,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:je};return l?(ls(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Be(n)?8:16),_r>0&&!s&&at&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&at.push(a),a}const Le=ah;function ah(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Ld)&&(e=Ge),$r(e)){const l=It(e,t,!0);return n&&ls(l,n),_r>0&&!i&&at&&(l.shapeFlag&6?at[at.indexOf(e)]=l:at.push(l)),l.patchFlag|=-2,l}if(mh(e)&&(e=e.__vccOpts),t){t=ch(t);let{class:l,style:a}=t;l&&!Be(l)&&(t.class=Wi(l)),_e(a)&&(Ja(a)&&!ie(a)&&(a=ke({},a)),t.style=Ni(a))}const s=Be(e)?1:Rd(e)?128:oh(e)?64:_e(e)?4:ue(e)?2:0;return Oc(e,t,n,r,o,s,i,!0)}function ch(e){return e?Ja(e)||To in e?ke({},e):e:null}function It(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:s}=e,l=t?as(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Tc(l),ref:t&&t.ref?n&&o?ie(o)?o.concat(oo(t)):[o,oo(t)]:oo(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Er(e=" ",t=0){return Le(Ro,null,e,t)}function Gx(e="",t=!1){return t?(is(),ss(Ge,null,e)):Le(Ge,null,e)}function bt(e){return e==null||typeof e=="boolean"?Le(Ge):ie(e)?Le(Me,null,e.slice()):typeof e=="object"?Nt(e):Le(Ro,null,String(e))}function Nt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function ls(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ie(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),ls(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(To in t)?t._ctx=je:o===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ue(t)?(t={default:t,_ctx:je},n=32):(t=String(t),r&64?(n=16,t=[Er(t)]):n=8);e.children=t,e.shapeFlag|=n}function as(...e){const t={};for(let n=0;nFe||je;let cs,wn,Xs="__VUE_INSTANCE_SETTERS__";(wn=si()[Xs])||(wn=si()[Xs]=[]),wn.push(e=>Fe=e),cs=e=>{wn.length>1?wn.forEach(t=>t(e)):wn[0](e)};const Mn=e=>{cs(e),e.scope.on()},un=()=>{Fe&&Fe.scope.off(),cs(null)};function zc(e){return e.vnode.shapeFlag&4}let Pr=!1;function hh(e,t=!1){Pr=t;const{props:n,children:r}=e.vnode,o=zc(e);Yd(e,n,o,t),Qd(e,r);const i=o?ph(e,t):void 0;return Pr=!1,i}function ph(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=kn(new Proxy(e.ctx,Dd));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?vh(e):null;Mn(e),jn();const i=Kt(r,e,0,[e.props,o]);if(Dn(),un(),Ia(i)){if(i.then(un,un),t)return i.then(s=>{Ys(e,s,t)}).catch(s=>{So(s,e,0)});e.asyncDep=i}else Ys(e,i,t)}else Ic(e,t)}function Ys(e,t,n){ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=nc(t)),Ic(e,n)}let Zs;function Ic(e,t,n){const r=e.type;if(!e.render){if(!t&&Zs&&!r.render){const o=r.template||ns(e).template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,c=ke(ke({isCustomElement:i,delimiters:l},s),a);r.render=Zs(o,c)}}e.render=r.render||ct}Mn(e),jn(),Nd(e),Dn(),un()}function gh(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return et(e,"get","$attrs"),t[n]}}))}function vh(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return gh(e)},slots:e.slots,emit:e.emit,expose:t}}function zo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(nc(kn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ar)return ar[n](e)},has(t,n){return n in t||n in ar}}))}function mh(e){return ue(e)&&"__vccOpts"in e}const X=(e,t)=>md(e,t,Pr);function $(e,t,n){const r=arguments.length;return r===2?_e(t)&&!ie(t)?$r(t)?Le(e,null,[t]):Le(e,t):Le(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&$r(n)&&(n=[n]),Le(e,t,n))}const bh=Symbol.for("v-scx"),yh=()=>ze(bh),xh="3.3.4",Ch="http://www.w3.org/2000/svg",nn=typeof document<"u"?document:null,Js=nn&&nn.createElement("template"),wh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?nn.createElementNS(Ch,e):nn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>nn.createTextNode(e),createComment:e=>nn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Js.innerHTML=r?`${e}`:e;const l=Js.content;if(r){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Sh(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function _h(e,t,n){const r=e.style,o=Be(n);if(n&&!o){if(t&&!Be(t))for(const i in t)n[i]==null&&bi(r,i,"");for(const i in n)bi(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Qs=/\s*!important$/;function bi(e,t,n){if(ie(n))n.forEach(r=>bi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=$h(e,t);Qs.test(n)?e.setProperty(vn(r),n.replace(Qs,""),"important"):e[r]=n}}const el=["Webkit","Moz","ms"],Go={};function $h(e,t){const n=Go[t];if(n)return n;let r=In(t);if(r!=="filter"&&r in e)return Go[t]=r;r=Ba(r);for(let o=0;oXo||(Ih.then(()=>Xo=0),Xo=Date.now());function kh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;st(Bh(r,n.value),t,5,[r])};return n.value=e,n.attached=Ah(),n}function Bh(e,t){if(ie(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const rl=/^on[a-z]/,Mh=(e,t,n,r,o=!1,i,s,l,a)=>{t==="class"?Sh(e,r,o):t==="style"?_h(e,n,r):yo(t)?Fi(t)||Oh(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hh(e,t,r,o))?Ph(e,t,r,i,s,l,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Eh(e,t,r,o))};function Hh(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&rl.test(t)&&ue(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||rl.test(t)&&Be(n)?!1:t in e}const Ht="transition",Zn="animation",qt=(e,{slots:t})=>$(Id,kc(e),t);qt.displayName="Transition";const Ac={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},Fh=qt.props=ke({},fc,Ac),Zt=(e,t=[])=>{ie(e)?e.forEach(n=>n(...t)):e&&e(...t)},ol=e=>e?ie(e)?e.some(t=>t.length>1):e.length>1:!1;function kc(e){const t={};for(const A in e)A in Ac||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,p=Lh(o),w=p&&p[0],y=p&&p[1],{onBeforeEnter:m,onEnter:S,onEnterCancelled:F,onLeave:_,onLeaveCancelled:P,onBeforeAppear:k=m,onAppear:b=S,onAppearCancelled:C=F}=t,R=(A,ee,se)=>{jt(A,ee?u:l),jt(A,ee?c:s),se&&se()},L=(A,ee)=>{A._isLeaving=!1,jt(A,f),jt(A,v),jt(A,d),ee&&ee()},N=A=>(ee,se)=>{const ae=A?b:S,V=()=>R(ee,A,se);Zt(ae,[ee,V]),il(()=>{jt(ee,A?a:i),Et(ee,A?u:l),ol(ae)||sl(ee,r,w,V)})};return ke(t,{onBeforeEnter(A){Zt(m,[A]),Et(A,i),Et(A,s)},onBeforeAppear(A){Zt(k,[A]),Et(A,a),Et(A,c)},onEnter:N(!1),onAppear:N(!0),onLeave(A,ee){A._isLeaving=!0;const se=()=>L(A,ee);Et(A,f),Mc(),Et(A,d),il(()=>{A._isLeaving&&(jt(A,f),Et(A,v),ol(_)||sl(A,r,y,se))}),Zt(_,[A,se])},onEnterCancelled(A){R(A,!1),Zt(F,[A])},onAppearCancelled(A){R(A,!0),Zt(C,[A])},onLeaveCancelled(A){L(A),Zt(P,[A])}})}function Lh(e){if(e==null)return null;if(_e(e))return[Yo(e.enter),Yo(e.leave)];{const t=Yo(e);return[t,t]}}function Yo(e){return Rf(e)}function Et(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function jt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function il(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let jh=0;function sl(e,t,n,r){const o=e._endId=++jh,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=Bc(e,t);if(!s)return r();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=v=>{v.target===e&&++u>=a&&f()};setTimeout(()=>{u(n[p]||"").split(", "),o=r(`${Ht}Delay`),i=r(`${Ht}Duration`),s=ll(o,i),l=r(`${Zn}Delay`),a=r(`${Zn}Duration`),c=ll(l,a);let u=null,f=0,d=0;t===Ht?s>0&&(u=Ht,f=s,d=i.length):t===Zn?c>0&&(u=Zn,f=c,d=a.length):(f=Math.max(s,c),u=f>0?s>c?Ht:Zn:null,d=u?u===Ht?i.length:a.length:0);const v=u===Ht&&/\b(transform|all)(,|$)/.test(r(`${Ht}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:v}}function ll(e,t){for(;e.lengthal(n)+al(e[r])))}function al(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Mc(){return document.body.offsetHeight}const Hc=new WeakMap,Fc=new WeakMap,Lc={name:"TransitionGroup",props:ke({},Fh,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Oo(),r=uc();let o,i;return vc(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!Vh(o[0].el,n.vnode.el,s))return;o.forEach(Wh),o.forEach(Uh);const l=o.filter(Kh);Mc(),l.forEach(a=>{const c=a.el,u=c.style;Et(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const f=c._moveCb=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,jt(c,s))};c.addEventListener("transitionend",f)})}),()=>{const s=ge(e),l=kc(s);let a=s.tag||Me;o=i,i=t.default?ts(t.default()):[];for(let c=0;cdelete e.mode;Lc.props;const Nh=Lc;function Wh(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Uh(e){Fc.set(e,e.el.getBoundingClientRect())}function Kh(e){const t=Hc.get(e),n=Fc.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function Vh(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=Bc(r);return o.removeChild(r),i}const qh={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Xx=(e,t)=>n=>{if(!("key"in n))return;const r=vn(n.key);if(t.some(o=>o===r||qh[o]===r))return e(n)},cl={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Jn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Jn(e,!0),r.enter(e)):r.leave(e,()=>{Jn(e,!1)}):Jn(e,t))},beforeUnmount(e,{value:t}){Jn(e,t)}};function Jn(e,t){e.style.display=t?e._vod:"none"}const Gh=ke({patchProp:Mh},wh);let ul;function Xh(){return ul||(ul=th(Gh))}const Yh=(...e)=>{const t=Xh().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Zh(r);if(!o)return;const i=t._component;!ue(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function Zh(e){return Be(e)?document.querySelector(e):e}var Jh=!1;/*! * pinia v2.1.4 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let Lc;const Io=e=>Lc=e,jc=Symbol();function yi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var fr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(fr||(fr={}));function Qh(){const e=La(!0),t=e.run(()=>oe({}));let n=[],r=[];const o=kn({install(i){Io(o),o._a=i,i.provide(jc,o),i.config.globalProperties.$pinia=o,r.forEach(s=>n.push(s)),r=[]},use(i){return!this._a&&!Jh?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Dc=()=>{};function fl(e,t,n,r=Dc){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&ja()&&Bf(o),o}function Sn(e,...t){e.slice().forEach(n=>{n(...t)})}const ep=e=>e();function xi(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];yi(o)&&yi(r)&&e.hasOwnProperty(n)&&!Oe(r)&&!Rt(r)?e[n]=xi(o,r):e[n]=r}return e}const tp=Symbol();function np(e){return!yi(e)||!e.hasOwnProperty(tp)}const{assign:Dt}=Object;function rp(e){return!!(Oe(e)&&e.effect)}function op(e,t,n,r){const{state:o,actions:i,getters:s}=t,l=n.state.value[e];let a;function c(){l||(n.state.value[e]=o?o():{});const u=hd(n.state.value[e]);return Dt(u,i,Object.keys(s||{}).reduce((f,d)=>(f[d]=kn(q(()=>{Io(n);const v=n._s.get(e);return s[d].call(v,v)})),f),{}))}return a=Nc(e,c,t,n,r,!0),a}function Nc(e,t,n={},r,o,i){let s;const l=Dt({actions:{}},n),a={deep:!0};let c,u,f=[],d=[],v;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={}),oe({});let w;function y(C){let T;c=u=!1,typeof C=="function"?(C(r.state.value[e]),T={type:fr.patchFunction,storeId:e,events:v}):(xi(r.state.value[e],C),T={type:fr.patchObject,payload:C,storeId:e,events:v});const L=w=Symbol();Bn().then(()=>{w===L&&(c=!0)}),u=!0,Sn(f,T,r.state.value[e])}const m=i?function(){const{state:T}=n,L=T?T():{};this.$patch(N=>{Dt(N,L)})}:Dc;function S(){s.stop(),f=[],d=[],r._s.delete(e)}function F(C,T){return function(){Io(r);const L=Array.from(arguments),N=[],A=[];function ee(V){N.push(V)}function se(V){A.push(V)}Sn(d,{args:L,name:C,store:P,after:ee,onError:se});let ae;try{ae=T.apply(this&&this.$id===e?this:P,L)}catch(V){throw Sn(A,V),V}return ae instanceof Promise?ae.then(V=>(Sn(N,V),V)).catch(V=>(Sn(A,V),Promise.reject(V))):(Sn(N,ae),ae)}}const _={_p:r,$id:e,$onAction:fl.bind(null,d),$patch:y,$reset:m,$subscribe(C,T={}){const L=fl(f,C,T.detached,()=>N()),N=s.run(()=>ut(()=>r.state.value[e],A=>{(T.flush==="sync"?u:c)&&C({storeId:e,type:fr.direct,events:v},A)},Dt({},a,T)));return L},$dispose:S},P=Gt(_);r._s.set(e,P);const k=r._a&&r._a.runWithContext||ep,b=r._e.run(()=>(s=La(),k(()=>s.run(t))));for(const C in b){const T=b[C];if(Oe(T)&&!rp(T)||Rt(T))i||(p&&np(T)&&(Oe(T)?T.value=p[C]:xi(T,p[C])),r.state.value[e][C]=T);else if(typeof T=="function"){const L=F(C,T);b[C]=L,l.actions[C]=T}}return Dt(P,b),Dt(ge(P),b),Object.defineProperty(P,"$state",{get:()=>r.state.value[e],set:C=>{y(T=>{Dt(T,C)})}}),r._p.forEach(C=>{Dt(P,s.run(()=>C({store:P,app:r._a,pinia:r,options:l})))}),p&&i&&n.hydrate&&n.hydrate(P.$state,p),c=!0,u=!0,P}function Yx(e,t,n){let r,o;const i=typeof t=="function";typeof e=="string"?(r=e,o=i?n:t):(o=e,r=e.id);function s(l,a){const c=Xd();return l=l||(c?ze(jc,null):null),l&&Io(l),l=Lc,l._s.has(r)||(i?Nc(r,t,o,l):op(r,o,l)),l._s.get(r)}return s.$id=r,s}function Zx(e){{e=ge(e);const t={};for(const n in e){const r=e[n];(Oe(r)||Rt(r))&&(t[n]=zt(e,n))}return t}}function ip(e){return typeof e=="object"&&e!==null}function dl(e,t){return e=ip(e)?e:Object.create(null),new Proxy(e,{get(n,r,o){return r==="key"?Reflect.get(n,r,o):Reflect.get(n,r,o)||Reflect.get(t,r,o)}})}function sp(e,t){return t.reduce((n,r)=>n==null?void 0:n[r],e)}function lp(e,t,n){return t.slice(0,-1).reduce((r,o)=>/^(__proto__)$/.test(o)?{}:r[o]=r[o]||{},e)[t[t.length-1]]=n,e}function ap(e,t){return t.reduce((n,r)=>{const o=r.split(".");return lp(n,o,sp(e,o))},{})}function hl(e,{storage:t,serializer:n,key:r,debug:o}){try{const i=t==null?void 0:t.getItem(r);i&&e.$patch(n==null?void 0:n.deserialize(i))}catch(i){o&&console.error(i)}}function pl(e,{storage:t,serializer:n,key:r,paths:o,debug:i}){try{const s=Array.isArray(o)?ap(e,o):e;t.setItem(r,n.serialize(s))}catch(s){i&&console.error(s)}}function cp(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:r=n},store:o}=t;if(!r)return;const i=(Array.isArray(r)?r.map(s=>dl(s,e)):[dl(r,e)]).map(({storage:s=localStorage,beforeRestore:l=null,afterRestore:a=null,serializer:c={serialize:JSON.stringify,deserialize:JSON.parse},key:u=o.$id,paths:f=null,debug:d=!1})=>{var v;return{storage:s,beforeRestore:l,afterRestore:a,serializer:c,key:((v=e.key)!=null?v:p=>p)(u),paths:f,debug:d}});o.$persist=()=>{i.forEach(s=>{pl(o.$state,s)})},o.$hydrate=({runHooks:s=!0}={})=>{i.forEach(l=>{const{beforeRestore:a,afterRestore:c}=l;s&&(a==null||a(t)),hl(o,l),s&&(c==null||c(t))})},i.forEach(s=>{const{beforeRestore:l,afterRestore:a}=s;l==null||l(t),hl(o,s),a==null||a(t),o.$subscribe((c,u)=>{pl(u,s)},{detached:!0})})}}var up=cp();const Wc=Qh();Wc.use(up);function fp(e){e.use(Wc)}function us(e){return e.composedPath()[0]||null}function Jx(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function dp(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function Qx(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const gl={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},Nn="^\\s*",Wn="\\s*$",sn="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",ln="([0-9A-Fa-f])",an="([0-9A-Fa-f]{2})",hp=new RegExp(`${Nn}rgb\\s*\\(${sn},${sn},${sn}\\)${Wn}`),pp=new RegExp(`${Nn}rgba\\s*\\(${sn},${sn},${sn},${sn}\\)${Wn}`),gp=new RegExp(`${Nn}#${ln}${ln}${ln}${Wn}`),vp=new RegExp(`${Nn}#${an}${an}${an}${Wn}`),mp=new RegExp(`${Nn}#${ln}${ln}${ln}${ln}${Wn}`),bp=new RegExp(`${Nn}#${an}${an}${an}${an}${Wn}`);function Je(e){return parseInt(e,16)}function pn(e){try{let t;if(t=vp.exec(e))return[Je(t[1]),Je(t[2]),Je(t[3]),1];if(t=hp.exec(e))return[Ne(t[1]),Ne(t[5]),Ne(t[9]),1];if(t=pp.exec(e))return[Ne(t[1]),Ne(t[5]),Ne(t[9]),dr(t[13])];if(t=gp.exec(e))return[Je(t[1]+t[1]),Je(t[2]+t[2]),Je(t[3]+t[3]),1];if(t=bp.exec(e))return[Je(t[1]),Je(t[2]),Je(t[3]),dr(Je(t[4])/255)];if(t=mp.exec(e))return[Je(t[1]+t[1]),Je(t[2]+t[2]),Je(t[3]+t[3]),dr(Je(t[4]+t[4])/255)];if(e in gl)return pn(gl[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function yp(e){return e>1?1:e<0?0:e}function Ci(e,t,n,r){return`rgba(${Ne(e)}, ${Ne(t)}, ${Ne(n)}, ${yp(r)})`}function Zo(e,t,n,r,o){return Ne((e*t*(1-r)+n*r)/o)}function fs(e,t){Array.isArray(e)||(e=pn(e)),Array.isArray(t)||(t=pn(t));const n=e[3],r=t[3],o=dr(n+r-n*r);return Ci(Zo(e[0],n,t[0],r,o),Zo(e[1],n,t[1],r,o),Zo(e[2],n,t[2],r,o),o)}function Vr(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:pn(e);return t.alpha?Ci(n,r,o,t.alpha):Ci(n,r,o,i)}function qr(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:pn(e),{lightness:s=1,alpha:l=1}=t;return xp([n*s,r*s,o*s,i*l])}function dr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Ne(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function xp(e){const[t,n,r]=e;return 3 in e?`rgba(${Ne(t)}, ${Ne(n)}, ${Ne(r)}, ${dr(e[3])})`:`rgba(${Ne(t)}, ${Ne(n)}, ${Ne(r)}, 1)`}function ds(e=8){return Math.random().toString(16).slice(2,2+e)}function ho(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function Uc(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function wi(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Er(String(r)));return}if(Array.isArray(r)){wi(r,t,n);return}if(r.type===Me){if(r.children===null)return;Array.isArray(r.children)&&wi(r.children,t,n)}else r.type!==Ge&&n.push(r)}}),n}function cn(e,...t){if(Array.isArray(e))e.forEach(n=>cn(n,...t));else return e(...t)}function hs(e){return Object.keys(e)}const en=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Er(e):typeof e=="number"?Er(String(e)):null;function po(e,t){console.error(`[naive/${e}]: ${t}`)}function Cp(e,t){throw new Error(`[naive/${e}]: ${t}`)}function wp(e,t="default",n=void 0){const r=e[t];if(!r)return po("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=wi(r(n));return o.length===1?o[0]:(po("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function e1(e){return e}function kr(e){return e.some(t=>$r(t)?!(t.type===Ge||t.type===Me&&!kr(t.children)):!0)?e:null}function vl(e,t){return e&&kr(e())||t()}function t1(e,t,n){return e&&kr(e(t))||n(t)}function yt(e,t){const n=e&&kr(e());return t(n||null)}function Sp(e){return!(e&&kr(e()))}const ml=$e({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}});function bl(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function _p(e){let t=0;for(let n=0;n{let o=_p(r);if(o){if(o===1){e.forEach(s=>{n.push(r.replace("&",s))});return}}else{e.forEach(s=>{n.push((s&&s+" ")+r)});return}let i=[r];for(;o--;){const s=[];i.forEach(l=>{e.forEach(a=>{s.push(l.replace("&",a))})}),i=s}i.forEach(s=>n.push(s))}),n}function Pp(e,t){const n=[];return t.split(Kc).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function Rp(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=Ep(t,n):t=Pp(t,n))}),t.join(", ").replace($p," ")}function yl(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Ao(e){return document.querySelector(`style[cssr-id="${e}"]`)}function Tp(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Gr(e){return e?/^\s*@(s|m)/.test(e):!1}const Op=/[A-Z]/g;function Vc(e){return e.replace(Op,t=>"-"+t.toLowerCase())}function zp(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(n=>t+` ${Vc(n[0])}: ${n[1]};`).join(` + */let jc;const Io=e=>jc=e,Dc=Symbol();function yi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var fr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(fr||(fr={}));function Qh(){const e=La(!0),t=e.run(()=>oe({}));let n=[],r=[];const o=kn({install(i){Io(o),o._a=i,i.provide(Dc,o),i.config.globalProperties.$pinia=o,r.forEach(s=>n.push(s)),r=[]},use(i){return!this._a&&!Jh?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Nc=()=>{};function fl(e,t,n,r=Nc){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&ja()&&Mf(o),o}function Sn(e,...t){e.slice().forEach(n=>{n(...t)})}const ep=e=>e();function xi(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];yi(o)&&yi(r)&&e.hasOwnProperty(n)&&!Oe(r)&&!Rt(r)?e[n]=xi(o,r):e[n]=r}return e}const tp=Symbol();function np(e){return!yi(e)||!e.hasOwnProperty(tp)}const{assign:Dt}=Object;function rp(e){return!!(Oe(e)&&e.effect)}function op(e,t,n,r){const{state:o,actions:i,getters:s}=t,l=n.state.value[e];let a;function c(){l||(n.state.value[e]=o?o():{});const u=hd(n.state.value[e]);return Dt(u,i,Object.keys(s||{}).reduce((f,d)=>(f[d]=kn(X(()=>{Io(n);const v=n._s.get(e);return s[d].call(v,v)})),f),{}))}return a=Wc(e,c,t,n,r,!0),a}function Wc(e,t,n={},r,o,i){let s;const l=Dt({actions:{}},n),a={deep:!0};let c,u,f=[],d=[],v;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={}),oe({});let w;function y(C){let R;c=u=!1,typeof C=="function"?(C(r.state.value[e]),R={type:fr.patchFunction,storeId:e,events:v}):(xi(r.state.value[e],C),R={type:fr.patchObject,payload:C,storeId:e,events:v});const L=w=Symbol();Bn().then(()=>{w===L&&(c=!0)}),u=!0,Sn(f,R,r.state.value[e])}const m=i?function(){const{state:R}=n,L=R?R():{};this.$patch(N=>{Dt(N,L)})}:Nc;function S(){s.stop(),f=[],d=[],r._s.delete(e)}function F(C,R){return function(){Io(r);const L=Array.from(arguments),N=[],A=[];function ee(V){N.push(V)}function se(V){A.push(V)}Sn(d,{args:L,name:C,store:P,after:ee,onError:se});let ae;try{ae=R.apply(this&&this.$id===e?this:P,L)}catch(V){throw Sn(A,V),V}return ae instanceof Promise?ae.then(V=>(Sn(N,V),V)).catch(V=>(Sn(A,V),Promise.reject(V))):(Sn(N,ae),ae)}}const _={_p:r,$id:e,$onAction:fl.bind(null,d),$patch:y,$reset:m,$subscribe(C,R={}){const L=fl(f,C,R.detached,()=>N()),N=s.run(()=>ut(()=>r.state.value[e],A=>{(R.flush==="sync"?u:c)&&C({storeId:e,type:fr.direct,events:v},A)},Dt({},a,R)));return L},$dispose:S},P=mn(_);r._s.set(e,P);const k=r._a&&r._a.runWithContext||ep,b=r._e.run(()=>(s=La(),k(()=>s.run(t))));for(const C in b){const R=b[C];if(Oe(R)&&!rp(R)||Rt(R))i||(p&&np(R)&&(Oe(R)?R.value=p[C]:xi(R,p[C])),r.state.value[e][C]=R);else if(typeof R=="function"){const L=F(C,R);b[C]=L,l.actions[C]=R}}return Dt(P,b),Dt(ge(P),b),Object.defineProperty(P,"$state",{get:()=>r.state.value[e],set:C=>{y(R=>{Dt(R,C)})}}),r._p.forEach(C=>{Dt(P,s.run(()=>C({store:P,app:r._a,pinia:r,options:l})))}),p&&i&&n.hydrate&&n.hydrate(P.$state,p),c=!0,u=!0,P}function Yx(e,t,n){let r,o;const i=typeof t=="function";typeof e=="string"?(r=e,o=i?n:t):(o=e,r=e.id);function s(l,a){const c=Xd();return l=l||(c?ze(Dc,null):null),l&&Io(l),l=jc,l._s.has(r)||(i?Wc(r,t,o,l):op(r,o,l)),l._s.get(r)}return s.$id=r,s}function Zx(e){{e=ge(e);const t={};for(const n in e){const r=e[n];(Oe(r)||Rt(r))&&(t[n]=zt(e,n))}return t}}function ip(e){return typeof e=="object"&&e!==null}function dl(e,t){return e=ip(e)?e:Object.create(null),new Proxy(e,{get(n,r,o){return r==="key"?Reflect.get(n,r,o):Reflect.get(n,r,o)||Reflect.get(t,r,o)}})}function sp(e,t){return t.reduce((n,r)=>n==null?void 0:n[r],e)}function lp(e,t,n){return t.slice(0,-1).reduce((r,o)=>/^(__proto__)$/.test(o)?{}:r[o]=r[o]||{},e)[t[t.length-1]]=n,e}function ap(e,t){return t.reduce((n,r)=>{const o=r.split(".");return lp(n,o,sp(e,o))},{})}function hl(e,{storage:t,serializer:n,key:r,debug:o}){try{const i=t==null?void 0:t.getItem(r);i&&e.$patch(n==null?void 0:n.deserialize(i))}catch(i){o&&console.error(i)}}function pl(e,{storage:t,serializer:n,key:r,paths:o,debug:i}){try{const s=Array.isArray(o)?ap(e,o):e;t.setItem(r,n.serialize(s))}catch(s){i&&console.error(s)}}function cp(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:r=n},store:o,pinia:i}=t;if(!r)return;if(!(o.$id in i.state.value)){const l=i._s.get(o.$id.replace("__hot:",""));l&&Promise.resolve().then(()=>l.$persist());return}const s=(Array.isArray(r)?r.map(l=>dl(l,e)):[dl(r,e)]).map(({storage:l=localStorage,beforeRestore:a=null,afterRestore:c=null,serializer:u={serialize:JSON.stringify,deserialize:JSON.parse},key:f=o.$id,paths:d=null,debug:v=!1})=>{var p;return{storage:l,beforeRestore:a,afterRestore:c,serializer:u,key:((p=e.key)!=null?p:w=>w)(typeof f=="string"?f:f(o.$id)),paths:d,debug:v}});o.$persist=()=>{s.forEach(l=>{pl(o.$state,l)})},o.$hydrate=({runHooks:l=!0}={})=>{s.forEach(a=>{const{beforeRestore:c,afterRestore:u}=a;l&&(c==null||c(t)),hl(o,a),l&&(u==null||u(t))})},s.forEach(l=>{const{beforeRestore:a,afterRestore:c}=l;a==null||a(t),hl(o,l),c==null||c(t),o.$subscribe((u,f)=>{pl(f,l)},{detached:!0})})}}var up=cp();const Uc=Qh();Uc.use(up);function fp(e){e.use(Uc)}function us(e){return e.composedPath()[0]||null}function Jx(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function dp(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function Qx(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const gl={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},Nn="^\\s*",Wn="\\s*$",on="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",sn="([0-9A-Fa-f])",ln="([0-9A-Fa-f]{2})",hp=new RegExp(`${Nn}rgb\\s*\\(${on},${on},${on}\\)${Wn}`),pp=new RegExp(`${Nn}rgba\\s*\\(${on},${on},${on},${on}\\)${Wn}`),gp=new RegExp(`${Nn}#${sn}${sn}${sn}${Wn}`),vp=new RegExp(`${Nn}#${ln}${ln}${ln}${Wn}`),mp=new RegExp(`${Nn}#${sn}${sn}${sn}${sn}${Wn}`),bp=new RegExp(`${Nn}#${ln}${ln}${ln}${ln}${Wn}`);function Je(e){return parseInt(e,16)}function hn(e){try{let t;if(t=vp.exec(e))return[Je(t[1]),Je(t[2]),Je(t[3]),1];if(t=hp.exec(e))return[Ne(t[1]),Ne(t[5]),Ne(t[9]),1];if(t=pp.exec(e))return[Ne(t[1]),Ne(t[5]),Ne(t[9]),dr(t[13])];if(t=gp.exec(e))return[Je(t[1]+t[1]),Je(t[2]+t[2]),Je(t[3]+t[3]),1];if(t=bp.exec(e))return[Je(t[1]),Je(t[2]),Je(t[3]),dr(Je(t[4])/255)];if(t=mp.exec(e))return[Je(t[1]+t[1]),Je(t[2]+t[2]),Je(t[3]+t[3]),dr(Je(t[4]+t[4])/255)];if(e in gl)return hn(gl[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function yp(e){return e>1?1:e<0?0:e}function Ci(e,t,n,r){return`rgba(${Ne(e)}, ${Ne(t)}, ${Ne(n)}, ${yp(r)})`}function Zo(e,t,n,r,o){return Ne((e*t*(1-r)+n*r)/o)}function fs(e,t){Array.isArray(e)||(e=hn(e)),Array.isArray(t)||(t=hn(t));const n=e[3],r=t[3],o=dr(n+r-n*r);return Ci(Zo(e[0],n,t[0],r,o),Zo(e[1],n,t[1],r,o),Zo(e[2],n,t[2],r,o),o)}function Vr(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:hn(e);return t.alpha?Ci(n,r,o,t.alpha):Ci(n,r,o,i)}function qr(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:hn(e),{lightness:s=1,alpha:l=1}=t;return xp([n*s,r*s,o*s,i*l])}function dr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Ne(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function xp(e){const[t,n,r]=e;return 3 in e?`rgba(${Ne(t)}, ${Ne(n)}, ${Ne(r)}, ${dr(e[3])})`:`rgba(${Ne(t)}, ${Ne(n)}, ${Ne(r)}, 1)`}function ds(e=8){return Math.random().toString(16).slice(2,2+e)}function ho(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function Kc(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function wi(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Er(String(r)));return}if(Array.isArray(r)){wi(r,t,n);return}if(r.type===Me){if(r.children===null)return;Array.isArray(r.children)&&wi(r.children,t,n)}else r.type!==Ge&&n.push(r)}}),n}function an(e,...t){if(Array.isArray(e))e.forEach(n=>an(n,...t));else return e(...t)}function hs(e){return Object.keys(e)}const Qt=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Er(e):typeof e=="number"?Er(String(e)):null;function po(e,t){console.error(`[naive/${e}]: ${t}`)}function Cp(e,t){throw new Error(`[naive/${e}]: ${t}`)}function wp(e,t="default",n=void 0){const r=e[t];if(!r)return po("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=wi(r(n));return o.length===1?o[0]:(po("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function e1(e){return e}function kr(e){return e.some(t=>$r(t)?!(t.type===Ge||t.type===Me&&!kr(t.children)):!0)?e:null}function vl(e,t){return e&&kr(e())||t()}function t1(e,t,n){return e&&kr(e(t))||n(t)}function yt(e,t){const n=e&&kr(e());return t(n||null)}function Sp(e){return!(e&&kr(e()))}const ml=$e({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}});function bl(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function _p(e){let t=0;for(let n=0;n{let o=_p(r);if(o){if(o===1){e.forEach(s=>{n.push(r.replace("&",s))});return}}else{e.forEach(s=>{n.push((s&&s+" ")+r)});return}let i=[r];for(;o--;){const s=[];i.forEach(l=>{e.forEach(a=>{s.push(l.replace("&",a))})}),i=s}i.forEach(s=>n.push(s))}),n}function Pp(e,t){const n=[];return t.split(Vc).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function Rp(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=Ep(t,n):t=Pp(t,n))}),t.join(", ").replace($p," ")}function yl(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Ao(e){return document.querySelector(`style[cssr-id="${e}"]`)}function Tp(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Gr(e){return e?/^\s*@(s|m)/.test(e):!1}const Op=/[A-Z]/g;function qc(e){return e.replace(Op,t=>"-"+t.toLowerCase())}function zp(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(n=>t+` ${qc(n[0])}: ${n[1]};`).join(` `)+` `+t+"}":`: ${e};`}function Ip(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function xl(e,t,n,r){if(!t)return"";const o=Ip(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { ${o} }`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` { }`:"";const s=e?[e+" {"]:[];return i.forEach(l=>{const a=o[l];if(l==="raw"){s.push(` `+a+` -`);return}l=Vc(l),a!=null&&s.push(` ${l}${zp(a)}`)}),e&&s.push("}"),s.join(` -`)}function Si(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))Si(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?Si(o,t,n):o&&n(o)}else r&&n(r)})}function qc(e,t,n,r,o,i){const s=e.$;let l="";if(!s||typeof s=="string")Gr(s)?l=s:t.push(s);else if(typeof s=="function"){const u=s({context:r.context,props:o});Gr(u)?l=u:t.push(u)}else if(s.before&&s.before(r.context),!s.$||typeof s.$=="string")Gr(s.$)?l=s.$:t.push(s.$);else if(s.$){const u=s.$({context:r.context,props:o});Gr(u)?l=u:t.push(u)}const a=Rp(t),c=xl(a,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { +`);return}l=qc(l),a!=null&&s.push(` ${l}${zp(a)}`)}),e&&s.push("}"),s.join(` +`)}function Si(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))Si(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?Si(o,t,n):o&&n(o)}else r&&n(r)})}function Gc(e,t,n,r,o,i){const s=e.$;let l="";if(!s||typeof s=="string")Gr(s)?l=s:t.push(s);else if(typeof s=="function"){const u=s({context:r.context,props:o});Gr(u)?l=u:t.push(u)}else if(s.before&&s.before(r.context),!s.$||typeof s.$=="string")Gr(s.$)?l=s.$:t.push(s.$);else if(s.$){const u=s.$({context:r.context,props:o});Gr(u)?l=u:t.push(u)}const a=Rp(t),c=xl(a,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { ${c} } -`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&Si(e.children,{context:r.context,props:o},u=>{if(typeof u=="string"){const f=xl(a,{raw:u},r,o);i?i.insertRule(f):n.push(f)}else qc(u,t,n,r,o,i)}),t.pop(),l&&n.push("}"),s&&s.after&&s.after(r.context)}function Gc(e,t,n,r=!1){const o=[];return qc(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(` +`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&Si(e.children,{context:r.context,props:o},u=>{if(typeof u=="string"){const f=xl(a,{raw:u},r,o);i?i.insertRule(f):n.push(f)}else Gc(u,t,n,r,o,i)}),t.pop(),l&&n.push("}"),s&&s.after&&s.after(r.context)}function Xc(e,t,n,r=!1){const o=[];return Gc(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(` -`)}function Rr(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function Ap(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(yl),t.els=[];else{const o=Ao(n);o&&r.includes(o)&&(yl(o),t.els=r.filter(i=>i!==o))}}function Cl(e,t){e.push(t)}function kp(e,t,n,r,o,i,s,l,a){if(i&&!a){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const d=window.__cssrContext;d[n]||(d[n]=!0,Gc(t,e,r,i));return}let c;if(n===void 0&&(c=t.render(r),n=Rr(c)),a){a.adapter(n,c??t.render(r));return}const u=Ao(n);if(u!==null&&!s)return u;const f=u??Tp(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,u!==null)return u;if(l){const d=document.head.querySelector(`meta[name="${l}"]`);if(d)return document.head.insertBefore(f,d),Cl(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),Cl(t.els,f),f}function Bp(e){return Gc(this,this.instance,e)}function Mp(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:s=!1,anchorMetaName:l}=e;return kp(this.instance,this,t,r,o,i,s,l,n)}function Hp(e={}){const{id:t}=e;Ap(this.instance,this,t)}const Xr=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Bp,mount:Mp,unmount:Hp}},Fp=function(e,t,n,r){return Array.isArray(t)?Xr(e,{$:null},null,t):Array.isArray(n)?Xr(e,t,null,n):Array.isArray(r)?Xr(e,t,n,r):Xr(e,t,n,null)};function Lp(e={}){let t=null;const n={c:(...r)=>Fp(n,...r),use:(r,...o)=>r.install(n,...o),find:Ao,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function jp(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Ao(e)!==null}function Dp(e){let t=".",n="__",r="--",o;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(n=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){o=p.c;const w=p.context;w.bem={},w.bem.b=null,w.bem.els=null}};function s(p){let w,y;return{before(m){w=m.bem.b,y=m.bem.els,m.bem.els=null},after(m){m.bem.b=w,m.bem.els=y},$({context:m,props:S}){return p=typeof p=="string"?p:p({context:m,props:S}),m.bem.b=p,`${(S==null?void 0:S.bPrefix)||t}${m.bem.b}`}}}function l(p){let w;return{before(y){w=y.bem.els},after(y){y.bem.els=w},$({context:y,props:m}){return p=typeof p=="string"?p:p({context:y,props:m}),y.bem.els=p.split(",").map(S=>S.trim()),y.bem.els.map(S=>`${(m==null?void 0:m.bPrefix)||t}${y.bem.b}${n}${S}`).join(", ")}}}function a(p){return{$({context:w,props:y}){p=typeof p=="string"?p:p({context:w,props:y});const m=p.split(",").map(_=>_.trim());function S(_){return m.map(P=>`&${(y==null?void 0:y.bPrefix)||t}${w.bem.b}${_!==void 0?`${n}${_}`:""}${r}${P}`).join(", ")}const F=w.bem.els;return F!==null?S(F[0]):S()}}}function c(p){return{$({context:w,props:y}){p=typeof p=="string"?p:p({context:w,props:y});const m=w.bem.els;return`&:not(${(y==null?void 0:y.bPrefix)||t}${w.bem.b}${m!==null&&m.length>0?`${n}${m[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:(...p)=>o(s(p[0]),p[1],p[2]),cE:(...p)=>o(l(p[0]),p[1],p[2]),cM:(...p)=>o(a(p[0]),p[1],p[2]),cNotM:(...p)=>o(c(p[0]),p[1],p[2])}),i}function re(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}re("abc","def");const Np="n",Tr=`.${Np}-`,Wp="__",Up="--",Xc=Lp(),Yc=Dp({blockPrefix:Tr,elementPrefix:Wp,modifierPrefix:Up});Xc.use(Yc);const{c:D,find:n1}=Xc,{cB:xe,cE:X,cM:de,cNotM:_i}=Yc;function Zc(e){return D(({props:{bPrefix:t}})=>`${t||Tr}modal, ${t||Tr}drawer`,[e])}function Kp(e){return D(({props:{bPrefix:t}})=>`${t||Tr}popover`,[e])}function Jc(e){return D(({props:{bPrefix:t}})=>`&${t||Tr}modal`,e)}const r1=(...e)=>D(">",[xe(...e)]),Br=typeof document<"u"&&typeof window<"u",Vp=new WeakSet;function qp(e){return!Vp.has(e)}function Gp(e){const t=oe(!!e.value);if(t.value)return Ot(t);const n=ut(e,r=>{r&&(t.value=!0,n())});return Ot(t)}function $i(e){const t=q(e),n=oe(t.value);return ut(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function Qc(){return Oo()!==null}const eu=typeof window<"u";function io(e){return e.composedPath()[0]}const Xp={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function Yp(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(io(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=s=>{r=!t.contains(io(s))},i=s=>{r&&(t.contains(io(s))||n(s))};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function tu(e,t,n){const r=Xp[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=Yp(e,t,n)),i}function Zp(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=tu(e,t,n);return Object.keys(o).forEach(i=>{it(i,document,o[i],r)}),!0}return!1}function Jp(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=tu(e,t,n);return Object.keys(o).forEach(i=>{Ve(i,document,o[i],r)}),!0}return!1}function Qp(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(b,C,T){const L=b[C];return b[C]=function(){return T.apply(b,arguments),L.apply(b,arguments)},b}function i(b,C){b[C]=Event.prototype[C]}const s=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function a(){var b;return(b=s.get(this))!==null&&b!==void 0?b:null}function c(b,C){l!==void 0&&Object.defineProperty(b,"currentTarget",{configurable:!0,enumerable:!0,get:C??l.get})}const u={bubble:{},capture:{}},f={};function d(){const b=function(C){const{type:T,eventPhase:L,bubbles:N}=C,A=io(C);if(L===2)return;const ee=L===1?"capture":"bubble";let se=A;const ae=[];for(;se===null&&(se=window),ae.push(se),se!==window;)se=se.parentNode||null;const V=u.capture[T],K=u.bubble[T];if(o(C,"stopPropagation",n),o(C,"stopImmediatePropagation",r),c(C,a),ee==="capture"){if(V===void 0)return;for(let ne=ae.length-1;ne>=0&&!e.has(C);--ne){const Ce=ae[ne],we=V.get(Ce);if(we!==void 0){s.set(C,Ce);for(const Se of we){if(t.has(C))break;Se(C)}}if(ne===0&&!N&&K!==void 0){const Se=K.get(Ce);if(Se!==void 0)for(const Te of Se){if(t.has(C))break;Te(C)}}}}else if(ee==="bubble"){if(K===void 0)return;for(let ne=0;neA(C))};return b.displayName="evtdUnifiedWindowEventHandler",b}const p=d(),w=v();function y(b,C){const T=u[b];return T[C]===void 0&&(T[C]=new Map,window.addEventListener(C,p,b==="capture")),T[C]}function m(b){return f[b]===void 0&&(f[b]=new Set,window.addEventListener(b,w)),f[b]}function S(b,C){let T=b.get(C);return T===void 0&&b.set(C,T=new Set),T}function F(b,C,T,L){const N=u[C][T];if(N!==void 0){const A=N.get(b);if(A!==void 0&&A.has(L))return!0}return!1}function _(b,C){const T=f[b];return!!(T!==void 0&&T.has(C))}function P(b,C,T,L){let N;if(typeof L=="object"&&L.once===!0?N=V=>{k(b,C,N,L),T(V)}:N=T,Zp(b,C,N,L))return;const ee=L===!0||typeof L=="object"&&L.capture===!0?"capture":"bubble",se=y(ee,b),ae=S(se,C);if(ae.has(N)||ae.add(N),C===window){const V=m(b);V.has(N)||V.add(N)}}function k(b,C,T,L){if(Jp(b,C,T,L))return;const A=L===!0||typeof L=="object"&&L.capture===!0,ee=A?"capture":"bubble",se=y(ee,b),ae=S(se,C);if(C===window&&!F(C,A?"bubble":"capture",b,T)&&_(b,T)){const K=f[b];K.delete(T),K.size===0&&(window.removeEventListener(b,w),f[b]=void 0)}ae.has(T)&&ae.delete(T),ae.size===0&&se.delete(C),se.size===0&&(window.removeEventListener(b,p,ee==="capture"),u[ee][b]=void 0)}return{on:P,off:k}}const{on:it,off:Ve}=Qp(),ir=oe(null);function wl(e){if(e.clientX>0||e.clientY>0)ir.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?ir.value={x:n+o/2,y:r+i/2}:ir.value={x:0,y:0}}else ir.value=null}}let Yr=0,Sl=!0;function nu(){if(!eu)return Ot(oe(null));Yr===0&&it("click",document,wl,!0);const e=()=>{Yr+=1};return Sl&&(Sl=Qc())?(bn(e),dt(()=>{Yr-=1,Yr===0&&Ve("click",document,wl,!0)})):e(),Ot(ir)}const eg=oe(void 0);let Zr=0;function _l(){eg.value=Date.now()}let $l=!0;function ru(e){if(!eu)return Ot(oe(!1));const t=oe(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}Zr===0&&it("click",window,_l,!0);const i=()=>{Zr+=1,it("click",window,o,!0)};return $l&&($l=Qc())?(bn(i),dt(()=>{Zr-=1,Zr===0&&Ve("click",window,_l,!0),Ve("click",window,o,!0),r()})):i(),Ot(t)}function ou(){const e=oe(!1);return Xt(()=>{e.value=!0}),Ot(e)}const tg=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function ng(){return tg}const rg="n-modal-body",iu="n-modal",og="n-drawer-body",ig="n-popover-body";function El(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function Ei(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Er(String(r)));return}if(Array.isArray(r)){Ei(r,t,n);return}if(r.type===Me){if(r.children===null)return;Array.isArray(r.children)&&Ei(r.children,t,n)}else r.type!==Ge&&n.push(r)}}),n}function o1(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=Ei(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}const _n="@@coContext",sg={mounted(e,{value:t,modifiers:n}){e[_n]={handler:void 0},typeof t=="function"&&(e[_n].handler=t,it("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[_n];typeof t=="function"?r.handler?r.handler!==t&&(Ve("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,it("clickoutside",e,t,{capture:n.capture})):(e[_n].handler=t,it("clickoutside",e,t,{capture:n.capture})):r.handler&&(Ve("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[_n];n&&Ve("clickoutside",e,n,{capture:t.capture}),e[_n].handler=void 0}},lg=sg;function ag(e,t){console.error(`[vdirs/${e}]: ${t}`)}class cg{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&ag("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const Jo=new cg,$n="@@ziContext",ug={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[$n]={enabled:!!o,initialized:!1},o&&(Jo.ensureZIndex(e,r),e[$n].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[$n].enabled;o&&!i&&(Jo.ensureZIndex(e,r),e[$n].initialized=!0),e[$n].enabled=!!o},unmounted(e,t){if(!e[$n].initialized)return;const{value:n={}}=t,{zIndex:r}=n;Jo.unregister(e,r)}},fg=ug,su=Symbol("@css-render/vue3-ssr");function dg(e,t){return``}function hg(e,t){const n=ze(su,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(dg(e,t)))}const pg=typeof document<"u";function ko(){if(pg)return;const e=ze(su,null);if(e!==null)return{adapter:hg,context:e}}function Pl(e,t){console.error(`[vueuc/${e}]: ${t}`)}function Rl(e){return typeof e=="string"?document.querySelector(e):e()}const gg=$e({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Gp(zt(e,"show")),mergedTo:q(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?El("lazy-teleport",this.$slots):$($c,{disabled:this.disabled,to:this.mergedTo},El("lazy-teleport",this.$slots)):null}});var dn=[],vg=function(){return dn.some(function(e){return e.activeTargets.length>0})},mg=function(){return dn.some(function(e){return e.skippedTargets.length>0})},Tl="ResizeObserver loop completed with undelivered notifications.",bg=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Tl}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Tl),window.dispatchEvent(e)},Or;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Or||(Or={}));var hn=function(e){return Object.freeze(e)},yg=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,hn(this)}return e}(),lu=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,hn(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,s=t.bottom,l=t.left,a=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:s,left:l,width:a,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),ps=function(e){return e instanceof SVGElement&&"getBBox"in e},au=function(e){if(ps(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},Ol=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},xg=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},hr=typeof window<"u"?window:{},Jr=new WeakMap,zl=/auto|scroll/,Cg=/^tb|vertical/,wg=/msie|trident/i.test(hr.navigator&&hr.navigator.userAgent),vt=function(e){return parseFloat(e||"0")},zn=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new yg((n?t:e)||0,(n?e:t)||0)},Il=hn({devicePixelContentBoxSize:zn(),borderBoxSize:zn(),contentBoxSize:zn(),contentRect:new lu(0,0,0,0)}),cu=function(e,t){if(t===void 0&&(t=!1),Jr.has(e)&&!t)return Jr.get(e);if(au(e))return Jr.set(e,Il),Il;var n=getComputedStyle(e),r=ps(e)&&e.ownerSVGElement&&e.getBBox(),o=!wg&&n.boxSizing==="border-box",i=Cg.test(n.writingMode||""),s=!r&&zl.test(n.overflowY||""),l=!r&&zl.test(n.overflowX||""),a=r?0:vt(n.paddingTop),c=r?0:vt(n.paddingRight),u=r?0:vt(n.paddingBottom),f=r?0:vt(n.paddingLeft),d=r?0:vt(n.borderTopWidth),v=r?0:vt(n.borderRightWidth),p=r?0:vt(n.borderBottomWidth),w=r?0:vt(n.borderLeftWidth),y=f+c,m=a+u,S=w+v,F=d+p,_=l?e.offsetHeight-F-e.clientHeight:0,P=s?e.offsetWidth-S-e.clientWidth:0,k=o?y+S:0,b=o?m+F:0,C=r?r.width:vt(n.width)-k-P,T=r?r.height:vt(n.height)-b-_,L=C+y+P+S,N=T+m+_+F,A=hn({devicePixelContentBoxSize:zn(Math.round(C*devicePixelRatio),Math.round(T*devicePixelRatio),i),borderBoxSize:zn(L,N,i),contentBoxSize:zn(C,T,i),contentRect:new lu(f,a,C,T)});return Jr.set(e,A),A},uu=function(e,t,n){var r=cu(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Or.DEVICE_PIXEL_CONTENT_BOX:return s;case Or.BORDER_BOX:return o;default:return i}},Sg=function(){function e(t){var n=cu(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=hn([n.borderBoxSize]),this.contentBoxSize=hn([n.contentBoxSize]),this.devicePixelContentBoxSize=hn([n.devicePixelContentBoxSize])}return e}(),fu=function(e){if(au(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},_g=function(){var e=1/0,t=[];dn.forEach(function(s){if(s.activeTargets.length!==0){var l=[];s.activeTargets.forEach(function(c){var u=new Sg(c.target),f=fu(c.target);l.push(u),c.lastReportedSize=uu(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},$g=function(){var e=0;for(Al(e);vg();)e=_g(),Al(e);return mg()&&bg(),e>0},Qo,du=[],Eg=function(){return du.splice(0).forEach(function(e){return e()})},Pg=function(e){if(!Qo){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Eg()}).observe(n,r),Qo=function(){n.textContent="".concat(t?t--:t++)}}du.push(e),Qo()},Rg=function(e){Pg(function(){requestAnimationFrame(e)})},so=0,Tg=function(){return!!so},Og=250,zg={attributes:!0,characterData:!0,childList:!0,subtree:!0},kl=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Bl=function(e){return e===void 0&&(e=0),Date.now()+e},ei=!1,Ig=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=Og),!ei){ei=!0;var r=Bl(t);Rg(function(){var o=!1;try{o=$g()}finally{if(ei=!1,t=r-Bl(),!Tg())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,zg)};document.body?n():hr.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),kl.forEach(function(n){return hr.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),kl.forEach(function(n){return hr.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Pi=new Ig,Ml=function(e){!so&&e>0&&Pi.start(),so+=e,!so&&Pi.stop()},Ag=function(e){return!ps(e)&&!xg(e)&&getComputedStyle(e).display==="inline"},kg=function(){function e(t,n){this.target=t,this.observedBox=n||Or.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=uu(this.target,this.observedBox,!0);return Ag(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Bg=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Qr=new WeakMap,Hl=function(e,t){for(var n=0;n=0&&(i&&dn.splice(dn.indexOf(r),1),r.observationTargets.splice(o,1),Ml(-1))},e.disconnect=function(t){var n=this,r=Qr.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Mg=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");eo.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ol(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");eo.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ol(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");eo.unobserve(this,t)},e.prototype.disconnect=function(){eo.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Hg{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Mg)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Fl=new Hg,Ll=$e({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Oo().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Xt(()=>{const o=n.$el;if(o===void 0){Pl("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Pl("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Fl.registerHandler(o.nextElementSibling,r),t=!0)}),dt(()=>{t&&Fl.unregisterHandler(n.$el.nextElementSibling)})},render(){return jd(this.$slots,"default")}});function hu(e){return e instanceof HTMLElement}function pu(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(hu(n)&&(vu(n)||gu(n)))return!0}return!1}function vu(e){if(!Fg(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Fg(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Qn=[];const Lg=$e({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=ds(),n=oe(null),r=oe(null);let o=!1,i=!1;const s=typeof document>"u"?null:document.activeElement;function l(){return Qn[Qn.length-1]===t}function a(y){var m;y.code==="Escape"&&l()&&((m=e.onEsc)===null||m===void 0||m.call(e,y))}Xt(()=>{ut(()=>e.active,y=>{y?(f(),it("keydown",document,a)):(Ve("keydown",document,a),o&&d())},{immediate:!0})}),dt(()=>{Ve("keydown",document,a),o&&d()});function c(y){if(!i&&l()){const m=u();if(m===null||m.contains(us(y)))return;v("first")}}function u(){const y=n.value;if(y===null)return null;let m=y;for(;m=m.nextSibling,!(m===null||m instanceof Element&&m.tagName==="DIV"););return m}function f(){var y;if(!e.disabled){if(Qn.push(t),e.autoFocus){const{initialFocusTo:m}=e;m===void 0?v("first"):(y=Rl(m))===null||y===void 0||y.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function d(){var y;if(e.disabled||(document.removeEventListener("focus",c,!0),Qn=Qn.filter(S=>S!==t),l()))return;const{finalFocusTo:m}=e;m!==void 0?(y=Rl(m))===null||y===void 0||y.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&s instanceof HTMLElement&&(i=!0,s.focus({preventScroll:!0}),i=!1)}function v(y){if(l()&&e.active){const m=n.value,S=r.value;if(m!==null&&S!==null){const F=u();if(F==null||F===S){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const _=y==="first"?pu(F):gu(F);i=!1,_||(i=!0,m.focus({preventScroll:!0}),i=!1)}}}function p(y){if(i)return;const m=u();m!==null&&(y.relatedTarget!==null&&m.contains(y.relatedTarget)?v("last"):v("first"))}function w(y){i||(y.relatedTarget!==null&&y.relatedTarget===n.value?v("last"):v("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:w}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return $(Me,null,[$("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),$("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let En=0,jl="",Dl="",Nl="",Wl="";const Ul=oe("0px");function jg(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=jl,t.style.overflow=Dl,t.style.overflowX=Nl,t.style.overflowY=Wl,Ul.value="0px"};Xt(()=>{n=ut(e,i=>{if(i){if(!En){const s=window.innerWidth-t.offsetWidth;s>0&&(jl=t.style.marginRight,t.style.marginRight=`${s}px`,Ul.value=`${s}px`),Dl=t.style.overflow,Nl=t.style.overflowX,Wl=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,En++}else En--,En||o(),r=!1},{immediate:!0})}),dt(()=>{n==null||n(),r&&(En--,En||o(),r=!1)})}const gs=oe(!1),Kl=()=>{gs.value=!0},Vl=()=>{gs.value=!1};let er=0;const Dg=()=>(Br&&(bn(()=>{er||(window.addEventListener("compositionstart",Kl),window.addEventListener("compositionend",Vl)),er++}),dt(()=>{er<=1?(window.removeEventListener("compositionstart",Kl),window.removeEventListener("compositionend",Vl),er=0):er--})),gs);function Ng(e){const t={isDeactivated:!1};let n=!1;return dc(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),hc(()=>{t.isDeactivated=!0,n||(n=!0)}),t}const ql="n-form-item";function Wg(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=ze(ql,null);qe(ql,null);const i=q(n?()=>n(o):()=>{const{size:a}=e;if(a)return a;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),s=q(r?()=>r(o):()=>{const{disabled:a}=e;return a!==void 0?a:o?o.disabled.value:!1}),l=q(()=>{const{status:a}=e;return a||(o==null?void 0:o.mergedValidationStatus.value)});return dt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:s,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var Ug=typeof global=="object"&&global&&global.Object===Object&&global;const mu=Ug;var Kg=typeof self=="object"&&self&&self.Object===Object&&self,Vg=mu||Kg||Function("return this")();const Un=Vg;var qg=Un.Symbol;const Hn=qg;var bu=Object.prototype,Gg=bu.hasOwnProperty,Xg=bu.toString,tr=Hn?Hn.toStringTag:void 0;function Yg(e){var t=Gg.call(e,tr),n=e[tr];try{e[tr]=void 0;var r=!0}catch{}var o=Xg.call(e);return r&&(t?e[tr]=n:delete e[tr]),o}var Zg=Object.prototype,Jg=Zg.toString;function Qg(e){return Jg.call(e)}var ev="[object Null]",tv="[object Undefined]",Gl=Hn?Hn.toStringTag:void 0;function Mr(e){return e==null?e===void 0?tv:ev:Gl&&Gl in Object(e)?Yg(e):Qg(e)}function Kn(e){return e!=null&&typeof e=="object"}var nv="[object Symbol]";function rv(e){return typeof e=="symbol"||Kn(e)&&Mr(e)==nv}function ov(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=Tv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Av(e){return function(){return e}}var kv=function(){try{var e=ms(Object,"defineProperty");return e({},"",{}),e}catch{}}();const vo=kv;var Bv=vo?function(e,t){return vo(e,"toString",{configurable:!0,enumerable:!1,value:Av(t),writable:!0})}:xu;const Mv=Bv;var Hv=Iv(Mv);const Fv=Hv;var Lv=9007199254740991,jv=/^(?:0|[1-9]\d*)$/;function Cu(e,t){var n=typeof e;return t=t??Lv,!!t&&(n=="number"||n!="symbol"&&jv.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=qv}function ys(e){return e!=null&&wu(e.length)&&!vs(e)}function Gv(e,t,n){if(!yn(n))return!1;var r=typeof t;return(r=="number"?ys(n)&&Cu(t,n.length):r=="string"&&t in n)?Bo(n[t],e):!1}function Xv(e){return Vv(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&Gv(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function lb(e,t){var n=this.__data__,r=Mo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function kt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:Sb(e,t,n)}var $b="\\ud800-\\udfff",Eb="\\u0300-\\u036f",Pb="\\ufe20-\\ufe2f",Rb="\\u20d0-\\u20ff",Tb=Eb+Pb+Rb,Ob="\\ufe0e\\ufe0f",zb="\\u200d",Ib=RegExp("["+zb+$b+Tb+Ob+"]");function Au(e){return Ib.test(e)}function Ab(e){return e.split("")}var ku="\\ud800-\\udfff",kb="\\u0300-\\u036f",Bb="\\ufe20-\\ufe2f",Mb="\\u20d0-\\u20ff",Hb=kb+Bb+Mb,Fb="\\ufe0e\\ufe0f",Lb="["+ku+"]",Ti="["+Hb+"]",Oi="\\ud83c[\\udffb-\\udfff]",jb="(?:"+Ti+"|"+Oi+")",Bu="[^"+ku+"]",Mu="(?:\\ud83c[\\udde6-\\uddff]){2}",Hu="[\\ud800-\\udbff][\\udc00-\\udfff]",Db="\\u200d",Fu=jb+"?",Lu="["+Fb+"]?",Nb="(?:"+Db+"(?:"+[Bu,Mu,Hu].join("|")+")"+Lu+Fu+")*",Wb=Lu+Fu+Nb,Ub="(?:"+[Bu+Ti+"?",Ti,Mu,Hu,Lb].join("|")+")",Kb=RegExp(Oi+"(?="+Oi+")|"+Ub+Wb,"g");function Vb(e){return e.match(Kb)||[]}function qb(e){return Au(e)?Vb(e):Ab(e)}function Gb(e){return function(t){t=gb(t);var n=Au(t)?qb(t):void 0,r=n?n[0]:t.charAt(0),o=n?_b(n,1).join(""):t.slice(1);return r[e]()+o}}var Xb=Gb("toUpperCase");const Yb=Xb;function Zb(){this.__data__=new kt,this.size=0}function Jb(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Qb(e){return this.__data__.get(e)}function e0(e){return this.__data__.has(e)}var t0=200;function n0(e,t){var n=this.__data__;if(n instanceof kt){var r=n.__data__;if(!Ou||r.length`}function hg(e,t){const n=ze(lu,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(dg(e,t)))}const pg=typeof document<"u";function ko(){if(pg)return;const e=ze(lu,null);if(e!==null)return{adapter:hg,context:e}}function Pl(e,t){console.error(`[vueuc/${e}]: ${t}`)}function Rl(e){return typeof e=="string"?document.querySelector(e):e()}const gg=$e({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Gp(zt(e,"show")),mergedTo:X(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?El("lazy-teleport",this.$slots):$(Ec,{disabled:this.disabled,to:this.mergedTo},El("lazy-teleport",this.$slots)):null}});var fn=[],vg=function(){return fn.some(function(e){return e.activeTargets.length>0})},mg=function(){return fn.some(function(e){return e.skippedTargets.length>0})},Tl="ResizeObserver loop completed with undelivered notifications.",bg=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Tl}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Tl),window.dispatchEvent(e)},Or;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Or||(Or={}));var dn=function(e){return Object.freeze(e)},yg=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,dn(this)}return e}(),au=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,dn(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,s=t.bottom,l=t.left,a=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:s,left:l,width:a,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),ps=function(e){return e instanceof SVGElement&&"getBBox"in e},cu=function(e){if(ps(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},Ol=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},xg=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},hr=typeof window<"u"?window:{},Jr=new WeakMap,zl=/auto|scroll/,Cg=/^tb|vertical/,wg=/msie|trident/i.test(hr.navigator&&hr.navigator.userAgent),vt=function(e){return parseFloat(e||"0")},zn=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new yg((n?t:e)||0,(n?e:t)||0)},Il=dn({devicePixelContentBoxSize:zn(),borderBoxSize:zn(),contentBoxSize:zn(),contentRect:new au(0,0,0,0)}),uu=function(e,t){if(t===void 0&&(t=!1),Jr.has(e)&&!t)return Jr.get(e);if(cu(e))return Jr.set(e,Il),Il;var n=getComputedStyle(e),r=ps(e)&&e.ownerSVGElement&&e.getBBox(),o=!wg&&n.boxSizing==="border-box",i=Cg.test(n.writingMode||""),s=!r&&zl.test(n.overflowY||""),l=!r&&zl.test(n.overflowX||""),a=r?0:vt(n.paddingTop),c=r?0:vt(n.paddingRight),u=r?0:vt(n.paddingBottom),f=r?0:vt(n.paddingLeft),d=r?0:vt(n.borderTopWidth),v=r?0:vt(n.borderRightWidth),p=r?0:vt(n.borderBottomWidth),w=r?0:vt(n.borderLeftWidth),y=f+c,m=a+u,S=w+v,F=d+p,_=l?e.offsetHeight-F-e.clientHeight:0,P=s?e.offsetWidth-S-e.clientWidth:0,k=o?y+S:0,b=o?m+F:0,C=r?r.width:vt(n.width)-k-P,R=r?r.height:vt(n.height)-b-_,L=C+y+P+S,N=R+m+_+F,A=dn({devicePixelContentBoxSize:zn(Math.round(C*devicePixelRatio),Math.round(R*devicePixelRatio),i),borderBoxSize:zn(L,N,i),contentBoxSize:zn(C,R,i),contentRect:new au(f,a,C,R)});return Jr.set(e,A),A},fu=function(e,t,n){var r=uu(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Or.DEVICE_PIXEL_CONTENT_BOX:return s;case Or.BORDER_BOX:return o;default:return i}},Sg=function(){function e(t){var n=uu(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=dn([n.borderBoxSize]),this.contentBoxSize=dn([n.contentBoxSize]),this.devicePixelContentBoxSize=dn([n.devicePixelContentBoxSize])}return e}(),du=function(e){if(cu(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},_g=function(){var e=1/0,t=[];fn.forEach(function(s){if(s.activeTargets.length!==0){var l=[];s.activeTargets.forEach(function(c){var u=new Sg(c.target),f=du(c.target);l.push(u),c.lastReportedSize=fu(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},$g=function(){var e=0;for(Al(e);vg();)e=_g(),Al(e);return mg()&&bg(),e>0},Qo,hu=[],Eg=function(){return hu.splice(0).forEach(function(e){return e()})},Pg=function(e){if(!Qo){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Eg()}).observe(n,r),Qo=function(){n.textContent="".concat(t?t--:t++)}}hu.push(e),Qo()},Rg=function(e){Pg(function(){requestAnimationFrame(e)})},so=0,Tg=function(){return!!so},Og=250,zg={attributes:!0,characterData:!0,childList:!0,subtree:!0},kl=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Bl=function(e){return e===void 0&&(e=0),Date.now()+e},ei=!1,Ig=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=Og),!ei){ei=!0;var r=Bl(t);Rg(function(){var o=!1;try{o=$g()}finally{if(ei=!1,t=r-Bl(),!Tg())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,zg)};document.body?n():hr.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),kl.forEach(function(n){return hr.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),kl.forEach(function(n){return hr.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Pi=new Ig,Ml=function(e){!so&&e>0&&Pi.start(),so+=e,!so&&Pi.stop()},Ag=function(e){return!ps(e)&&!xg(e)&&getComputedStyle(e).display==="inline"},kg=function(){function e(t,n){this.target=t,this.observedBox=n||Or.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=fu(this.target,this.observedBox,!0);return Ag(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Bg=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Qr=new WeakMap,Hl=function(e,t){for(var n=0;n=0&&(i&&fn.splice(fn.indexOf(r),1),r.observationTargets.splice(o,1),Ml(-1))},e.disconnect=function(t){var n=this,r=Qr.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Mg=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");eo.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ol(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");eo.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ol(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");eo.unobserve(this,t)},e.prototype.disconnect=function(){eo.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Hg{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Mg)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Fl=new Hg,Ll=$e({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Oo().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Gt(()=>{const o=n.$el;if(o===void 0){Pl("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Pl("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Fl.registerHandler(o.nextElementSibling,r),t=!0)}),dt(()=>{t&&Fl.unregisterHandler(n.$el.nextElementSibling)})},render(){return jd(this.$slots,"default")}});function pu(e){return e instanceof HTMLElement}function gu(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(pu(n)&&(mu(n)||vu(n)))return!0}return!1}function mu(e){if(!Fg(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Fg(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Qn=[];const Lg=$e({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=ds(),n=oe(null),r=oe(null);let o=!1,i=!1;const s=typeof document>"u"?null:document.activeElement;function l(){return Qn[Qn.length-1]===t}function a(y){var m;y.code==="Escape"&&l()&&((m=e.onEsc)===null||m===void 0||m.call(e,y))}Gt(()=>{ut(()=>e.active,y=>{y?(f(),it("keydown",document,a)):(Ve("keydown",document,a),o&&d())},{immediate:!0})}),dt(()=>{Ve("keydown",document,a),o&&d()});function c(y){if(!i&&l()){const m=u();if(m===null||m.contains(us(y)))return;v("first")}}function u(){const y=n.value;if(y===null)return null;let m=y;for(;m=m.nextSibling,!(m===null||m instanceof Element&&m.tagName==="DIV"););return m}function f(){var y;if(!e.disabled){if(Qn.push(t),e.autoFocus){const{initialFocusTo:m}=e;m===void 0?v("first"):(y=Rl(m))===null||y===void 0||y.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function d(){var y;if(e.disabled||(document.removeEventListener("focus",c,!0),Qn=Qn.filter(S=>S!==t),l()))return;const{finalFocusTo:m}=e;m!==void 0?(y=Rl(m))===null||y===void 0||y.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&s instanceof HTMLElement&&(i=!0,s.focus({preventScroll:!0}),i=!1)}function v(y){if(l()&&e.active){const m=n.value,S=r.value;if(m!==null&&S!==null){const F=u();if(F==null||F===S){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const _=y==="first"?gu(F):vu(F);i=!1,_||(i=!0,m.focus({preventScroll:!0}),i=!1)}}}function p(y){if(i)return;const m=u();m!==null&&(y.relatedTarget!==null&&m.contains(y.relatedTarget)?v("last"):v("first"))}function w(y){i||(y.relatedTarget!==null&&y.relatedTarget===n.value?v("last"):v("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:w}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return $(Me,null,[$("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),$("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let En=0,jl="",Dl="",Nl="",Wl="";const Ul=oe("0px");function jg(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=jl,t.style.overflow=Dl,t.style.overflowX=Nl,t.style.overflowY=Wl,Ul.value="0px"};Gt(()=>{n=ut(e,i=>{if(i){if(!En){const s=window.innerWidth-t.offsetWidth;s>0&&(jl=t.style.marginRight,t.style.marginRight=`${s}px`,Ul.value=`${s}px`),Dl=t.style.overflow,Nl=t.style.overflowX,Wl=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,En++}else En--,En||o(),r=!1},{immediate:!0})}),dt(()=>{n==null||n(),r&&(En--,En||o(),r=!1)})}const gs=oe(!1),Kl=()=>{gs.value=!0},Vl=()=>{gs.value=!1};let er=0;const Dg=()=>(Br&&(bn(()=>{er||(window.addEventListener("compositionstart",Kl),window.addEventListener("compositionend",Vl)),er++}),dt(()=>{er<=1?(window.removeEventListener("compositionstart",Kl),window.removeEventListener("compositionend",Vl),er=0):er--})),gs);function Ng(e){const t={isDeactivated:!1};let n=!1;return hc(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),pc(()=>{t.isDeactivated=!0,n||(n=!0)}),t}const ql="n-form-item";function Wg(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=ze(ql,null);qe(ql,null);const i=X(n?()=>n(o):()=>{const{size:a}=e;if(a)return a;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),s=X(r?()=>r(o):()=>{const{disabled:a}=e;return a!==void 0?a:o?o.disabled.value:!1}),l=X(()=>{const{status:a}=e;return a||(o==null?void 0:o.mergedValidationStatus.value)});return dt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:s,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var Ug=typeof global=="object"&&global&&global.Object===Object&&global;const bu=Ug;var Kg=typeof self=="object"&&self&&self.Object===Object&&self,Vg=bu||Kg||Function("return this")();const Un=Vg;var qg=Un.Symbol;const Hn=qg;var yu=Object.prototype,Gg=yu.hasOwnProperty,Xg=yu.toString,tr=Hn?Hn.toStringTag:void 0;function Yg(e){var t=Gg.call(e,tr),n=e[tr];try{e[tr]=void 0;var r=!0}catch{}var o=Xg.call(e);return r&&(t?e[tr]=n:delete e[tr]),o}var Zg=Object.prototype,Jg=Zg.toString;function Qg(e){return Jg.call(e)}var ev="[object Null]",tv="[object Undefined]",Gl=Hn?Hn.toStringTag:void 0;function Mr(e){return e==null?e===void 0?tv:ev:Gl&&Gl in Object(e)?Yg(e):Qg(e)}function Kn(e){return e!=null&&typeof e=="object"}var nv="[object Symbol]";function rv(e){return typeof e=="symbol"||Kn(e)&&Mr(e)==nv}function ov(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=Tv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Av(e){return function(){return e}}var kv=function(){try{var e=ms(Object,"defineProperty");return e({},"",{}),e}catch{}}();const vo=kv;var Bv=vo?function(e,t){return vo(e,"toString",{configurable:!0,enumerable:!1,value:Av(t),writable:!0})}:Cu;const Mv=Bv;var Hv=Iv(Mv);const Fv=Hv;var Lv=9007199254740991,jv=/^(?:0|[1-9]\d*)$/;function wu(e,t){var n=typeof e;return t=t??Lv,!!t&&(n=="number"||n!="symbol"&&jv.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=qv}function ys(e){return e!=null&&Su(e.length)&&!vs(e)}function Gv(e,t,n){if(!yn(n))return!1;var r=typeof t;return(r=="number"?ys(n)&&wu(t,n.length):r=="string"&&t in n)?Bo(n[t],e):!1}function Xv(e){return Vv(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&Gv(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function lb(e,t){var n=this.__data__,r=Mo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function kt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:Sb(e,t,n)}var $b="\\ud800-\\udfff",Eb="\\u0300-\\u036f",Pb="\\ufe20-\\ufe2f",Rb="\\u20d0-\\u20ff",Tb=Eb+Pb+Rb,Ob="\\ufe0e\\ufe0f",zb="\\u200d",Ib=RegExp("["+zb+$b+Tb+Ob+"]");function ku(e){return Ib.test(e)}function Ab(e){return e.split("")}var Bu="\\ud800-\\udfff",kb="\\u0300-\\u036f",Bb="\\ufe20-\\ufe2f",Mb="\\u20d0-\\u20ff",Hb=kb+Bb+Mb,Fb="\\ufe0e\\ufe0f",Lb="["+Bu+"]",Ti="["+Hb+"]",Oi="\\ud83c[\\udffb-\\udfff]",jb="(?:"+Ti+"|"+Oi+")",Mu="[^"+Bu+"]",Hu="(?:\\ud83c[\\udde6-\\uddff]){2}",Fu="[\\ud800-\\udbff][\\udc00-\\udfff]",Db="\\u200d",Lu=jb+"?",ju="["+Fb+"]?",Nb="(?:"+Db+"(?:"+[Mu,Hu,Fu].join("|")+")"+ju+Lu+")*",Wb=ju+Lu+Nb,Ub="(?:"+[Mu+Ti+"?",Ti,Hu,Fu,Lb].join("|")+")",Kb=RegExp(Oi+"(?="+Oi+")|"+Ub+Wb,"g");function Vb(e){return e.match(Kb)||[]}function qb(e){return ku(e)?Vb(e):Ab(e)}function Gb(e){return function(t){t=gb(t);var n=ku(t)?qb(t):void 0,r=n?n[0]:t.charAt(0),o=n?_b(n,1).join(""):t.slice(1);return r[e]()+o}}var Xb=Gb("toUpperCase");const Yb=Xb;function Zb(){this.__data__=new kt,this.size=0}function Jb(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Qb(e){return this.__data__.get(e)}function e0(e){return this.__data__.has(e)}var t0=200;function n0(e,t){var n=this.__data__;if(n instanceof kt){var r=n.__data__;if(!zu||r.length{const u=i==null?void 0:i.value;n.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:Ir,ssr:s}),l!=null&&l.preflightStyleDisabled||Nu.mount({id:"n-global",head:!0,anchorMetaName:Ir,ssr:s})};s?c():bn(c)}return q(()=>{var c;const{theme:{common:u,self:f,peers:d={}}={},themeOverrides:v={},builtinThemeOverrides:p={}}=o,{common:w,peers:y}=v,{common:m=void 0,[e]:{common:S=void 0,self:F=void 0,peers:_={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:P=void 0,[e]:k={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:b,peers:C={}}=k,T=sr({},u||S||m||r.common,P,b,w),L=sr((c=f||F||r.self)===null||c===void 0?void 0:c(T),p,k,v);return{common:T,self:L,peers:sr({},r.peers,_,d),peerOverrides:sr({},p.peers,C,y)}})}nt.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Wu="n";function Cn(e={},t={defaultBordered:!0}){const n=ze(vn,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:q(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:q(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||Wu),namespaceRef:q(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function Fo(e,t,n){if(!t)return;const r=ko(),o=ze(vn,null),i=()=>{const s=n==null?void 0:n.value;t.mount({id:s===void 0?e:s+e,head:!0,anchorMetaName:Ir,props:{bPrefix:s?`.${s}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||Nu.mount({id:"n-global",head:!0,anchorMetaName:Ir,ssr:r})};r?i():bn(i)}function Gn(e,t,n,r){var o;n||Cp("useThemeClass","cssVarsRef is not passed");const i=(o=ze(vn,null))===null||o===void 0?void 0:o.mergedThemeHashRef,s=oe(""),l=ko();let a;const c=`__${e}`,u=()=>{let f=c;const d=t?t.value:void 0,v=i==null?void 0:i.value;v&&(f+="-"+v),d&&(f+="-"+d);const{themeOverrides:p,builtinThemeOverrides:w}=r;p&&(f+="-"+Rr(JSON.stringify(p))),w&&(f+="-"+Rr(JSON.stringify(w))),s.value=f,a=()=>{const y=n.value;let m="";for(const S in y)m+=`${S}: ${y[S]};`;D(`.${f}`,m).mount({id:f,ssr:l}),a=void 0}};return Qi(()=>{u()}),{themeClass:s,onRender:()=>{a==null||a()}}}function Lo(e,t,n){if(!t)return;const r=ko(),o=q(()=>{const{value:s}=t;if(!s)return;const l=s[e];if(l)return l}),i=()=>{Qi(()=>{const{value:s}=n,l=`${s}${e}Rtl`;if(jp(l,r))return;const{value:a}=o;a&&a.style.mount({id:l,head:!0,anchorMetaName:Ir,props:{bPrefix:s?`.${s}-`:void 0},ssr:r})})};return r?i():bn(i),o}function Hr(e,t){return $e({name:Yb(e),setup(){var n;const r=(n=ze(vn,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const y0=Hr("close",$("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},$("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},$("g",{fill:"currentColor","fill-rule":"nonzero"},$("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),Uu=Hr("error",$("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$("g",{"fill-rule":"nonzero"},$("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Ai=Hr("info",$("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$("g",{"fill-rule":"nonzero"},$("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),Ku=Hr("success",$("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$("g",{"fill-rule":"nonzero"},$("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),Vu=Hr("warning",$("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$("g",{"fill-rule":"nonzero"},$("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),xs=$e({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=ou();return()=>$(qt,{name:"icon-switch-transition",appear:n.value},t)}}),qu=$e({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:a}=e;a&&a()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:a}=e;a&&a()}function i(l){if(l.style.transition="none",e.width){const a=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${a}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const a=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${a}px`}l.offsetWidth}function s(l){var a;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(a=e.onAfterEnter)===null||a===void 0||a.call(e)}return()=>{const{group:l,width:a,appear:c,mode:u}=e,f=l?Nh:qt,d={name:a?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:s,onBeforeLeave:n,onLeave:r,onAfterLeave:o};return l||(d.mode=u),$(f,d,t)}}}),x0=xe("base-icon",` + `)]),gn="n-config-provider",Ir="naive-ui-style";function i1(e){return e}function nt(e,t,n,r,o,i){const s=ko(),l=ze(gn,null);if(n){const c=()=>{const u=i==null?void 0:i.value;n.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:Ir,ssr:s}),l!=null&&l.preflightStyleDisabled||Wu.mount({id:"n-global",head:!0,anchorMetaName:Ir,ssr:s})};s?c():bn(c)}return X(()=>{var c;const{theme:{common:u,self:f,peers:d={}}={},themeOverrides:v={},builtinThemeOverrides:p={}}=o,{common:w,peers:y}=v,{common:m=void 0,[e]:{common:S=void 0,self:F=void 0,peers:_={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:P=void 0,[e]:k={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:b,peers:C={}}=k,R=sr({},u||S||m||r.common,P,b,w),L=sr((c=f||F||r.self)===null||c===void 0?void 0:c(R),p,k,v);return{common:R,self:L,peers:sr({},r.peers,_,d),peerOverrides:sr({},p.peers,C,y)}})}nt.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Uu="n";function Cn(e={},t={defaultBordered:!0}){const n=ze(gn,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:X(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:X(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||Uu),namespaceRef:X(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function Fo(e,t,n){if(!t)return;const r=ko(),o=ze(gn,null),i=()=>{const s=n==null?void 0:n.value;t.mount({id:s===void 0?e:s+e,head:!0,anchorMetaName:Ir,props:{bPrefix:s?`.${s}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||Wu.mount({id:"n-global",head:!0,anchorMetaName:Ir,ssr:r})};r?i():bn(i)}function Gn(e,t,n,r){var o;n||Cp("useThemeClass","cssVarsRef is not passed");const i=(o=ze(gn,null))===null||o===void 0?void 0:o.mergedThemeHashRef,s=oe(""),l=ko();let a;const c=`__${e}`,u=()=>{let f=c;const d=t?t.value:void 0,v=i==null?void 0:i.value;v&&(f+="-"+v),d&&(f+="-"+d);const{themeOverrides:p,builtinThemeOverrides:w}=r;p&&(f+="-"+Rr(JSON.stringify(p))),w&&(f+="-"+Rr(JSON.stringify(w))),s.value=f,a=()=>{const y=n.value;let m="";for(const S in y)m+=`${S}: ${y[S]};`;D(`.${f}`,m).mount({id:f,ssr:l}),a=void 0}};return Qi(()=>{u()}),{themeClass:s,onRender:()=>{a==null||a()}}}function Lo(e,t,n){if(!t)return;const r=ko(),o=X(()=>{const{value:s}=t;if(!s)return;const l=s[e];if(l)return l}),i=()=>{Qi(()=>{const{value:s}=n,l=`${s}${e}Rtl`;if(jp(l,r))return;const{value:a}=o;a&&a.style.mount({id:l,head:!0,anchorMetaName:Ir,props:{bPrefix:s?`.${s}-`:void 0},ssr:r})})};return r?i():bn(i),o}function Hr(e,t){return $e({name:Yb(e),setup(){var n;const r=(n=ze(gn,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const y0=Hr("close",$("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},$("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},$("g",{fill:"currentColor","fill-rule":"nonzero"},$("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),Ku=Hr("error",$("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$("g",{"fill-rule":"nonzero"},$("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Ai=Hr("info",$("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$("g",{"fill-rule":"nonzero"},$("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),Vu=Hr("success",$("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$("g",{"fill-rule":"nonzero"},$("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),qu=Hr("warning",$("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$("g",{"fill-rule":"nonzero"},$("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),xs=$e({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=iu();return()=>$(qt,{name:"icon-switch-transition",appear:n.value},t)}}),Gu=$e({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:a}=e;a&&a()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:a}=e;a&&a()}function i(l){if(l.style.transition="none",e.width){const a=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${a}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const a=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${a}px`}l.offsetWidth}function s(l){var a;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(a=e.onAfterEnter)===null||a===void 0||a.call(e)}return()=>{const{group:l,width:a,appear:c,mode:u}=e,f=l?Nh:qt,d={name:a?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:s,onBeforeLeave:n,onLeave:r,onAfterLeave:o};return l||(d.mode=u),$(f,d,t)}}}),x0=xe("base-icon",` height: 1em; width: 1em; line-height: 1em; @@ -153,11 +153,11 @@ ${t} line-height: 0; width: 1em; height: 1em; - `,[X("transition-wrapper",` + `,[G("transition-wrapper",` position: absolute; width: 100%; height: 100%; - `,[mo()]),X("container",` + `,[mo()]),G("container",` display: inline-flex; position: relative; direction: ltr; @@ -169,27 +169,27 @@ ${t} opacity: 1; width: 100%; height: 100%; - `,[X("svg",` + `,[G("svg",` stroke: var(--n-text-color); fill: transparent; position: absolute; height: 100%; overflow: hidden; - `),X("container-layer",` + `),G("container-layer",` position: absolute; width: 100%; height: 100%; animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - `,[X("container-layer-left",` + `,[G("container-layer-left",` display: inline-flex; position: relative; width: 50%; height: 100%; overflow: hidden; - `,[X("svg",` + `,[G("svg",` animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; width: 200%; - `)]),X("container-layer-patch",` + `)]),G("container-layer-patch",` position: absolute; top: 0; left: 47.5%; @@ -197,26 +197,26 @@ ${t} width: 5%; height: 100%; overflow: hidden; - `,[X("svg",` + `,[G("svg",` left: -900%; width: 2000%; transform: rotate(180deg); - `)]),X("container-layer-right",` + `)]),G("container-layer-right",` display: inline-flex; position: relative; width: 50%; height: 100%; overflow: hidden; - `,[X("svg",` + `,[G("svg",` animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; left: -100%; width: 200%; - `)])])]),X("placeholder",` + `)])])]),G("placeholder",` position: absolute; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%); - `,[mo({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),_0={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Gu=$e({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},_0),setup(e){Fo("-base-loading",S0,zt(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return $("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},$(xs,null,{default:()=>this.show?$("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},$("div",{class:`${e}-base-loading__container`},$("div",{class:`${e}-base-loading__container-layer`},$("div",{class:`${e}-base-loading__container-layer-left`},$("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},$("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),$("div",{class:`${e}-base-loading__container-layer-patch`},$("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},$("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),$("div",{class:`${e}-base-loading__container-layer-right`},$("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},$("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):$("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),te={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},$0=pn(te.neutralBase),Xu=pn(te.neutralInvertBase),E0="rgba("+Xu.slice(0,3).join(", ")+", ";function ca(e){return E0+String(e)+")"}function De(e){const t=Array.from(Xu);return t[3]=Number(e),fs($0,t)}const P0=Object.assign(Object.assign({name:"common"},xn),{baseColor:te.neutralBase,primaryColor:te.primaryDefault,primaryColorHover:te.primaryHover,primaryColorPressed:te.primaryActive,primaryColorSuppl:te.primarySuppl,infoColor:te.infoDefault,infoColorHover:te.infoHover,infoColorPressed:te.infoActive,infoColorSuppl:te.infoSuppl,successColor:te.successDefault,successColorHover:te.successHover,successColorPressed:te.successActive,successColorSuppl:te.successSuppl,warningColor:te.warningDefault,warningColorHover:te.warningHover,warningColorPressed:te.warningActive,warningColorSuppl:te.warningSuppl,errorColor:te.errorDefault,errorColorHover:te.errorHover,errorColorPressed:te.errorActive,errorColorSuppl:te.errorSuppl,textColorBase:te.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:De(te.alpha4),placeholderColor:De(te.alpha4),placeholderColorDisabled:De(te.alpha5),iconColor:De(te.alpha4),iconColorHover:qr(De(te.alpha4),{lightness:.75}),iconColorPressed:qr(De(te.alpha4),{lightness:.9}),iconColorDisabled:De(te.alpha5),opacity1:te.alpha1,opacity2:te.alpha2,opacity3:te.alpha3,opacity4:te.alpha4,opacity5:te.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:De(Number(te.alphaClose)),closeIconColorHover:De(Number(te.alphaClose)),closeIconColorPressed:De(Number(te.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:De(te.alpha4),clearColorHover:qr(De(te.alpha4),{lightness:.75}),clearColorPressed:qr(De(te.alpha4),{lightness:.9}),scrollbarColor:ca(te.alphaScrollbar),scrollbarColorHover:ca(te.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:De(te.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:te.neutralPopover,tableColor:te.neutralCard,cardColor:te.neutralCard,modalColor:te.neutralModal,bodyColor:te.neutralBody,tagColor:"#eee",avatarColor:De(te.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:De(te.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:te.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),Xn=P0,R0=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},T0={name:"Scrollbar",common:Xn,self:R0},Yu=T0,{cubicBezierEaseInOut:ua}=xn;function Zu({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=ua,leaveCubicBezier:o=ua}={}){return[D(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),D(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),D(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),D(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const O0=xe("scrollbar",` + `,[mo({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),_0={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Xu=$e({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},_0),setup(e){Fo("-base-loading",S0,zt(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return $("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},$(xs,null,{default:()=>this.show?$("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},$("div",{class:`${e}-base-loading__container`},$("div",{class:`${e}-base-loading__container-layer`},$("div",{class:`${e}-base-loading__container-layer-left`},$("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},$("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),$("div",{class:`${e}-base-loading__container-layer-patch`},$("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},$("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),$("div",{class:`${e}-base-loading__container-layer-right`},$("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},$("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):$("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),te={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},$0=hn(te.neutralBase),Yu=hn(te.neutralInvertBase),E0="rgba("+Yu.slice(0,3).join(", ")+", ";function ca(e){return E0+String(e)+")"}function De(e){const t=Array.from(Yu);return t[3]=Number(e),fs($0,t)}const P0=Object.assign(Object.assign({name:"common"},xn),{baseColor:te.neutralBase,primaryColor:te.primaryDefault,primaryColorHover:te.primaryHover,primaryColorPressed:te.primaryActive,primaryColorSuppl:te.primarySuppl,infoColor:te.infoDefault,infoColorHover:te.infoHover,infoColorPressed:te.infoActive,infoColorSuppl:te.infoSuppl,successColor:te.successDefault,successColorHover:te.successHover,successColorPressed:te.successActive,successColorSuppl:te.successSuppl,warningColor:te.warningDefault,warningColorHover:te.warningHover,warningColorPressed:te.warningActive,warningColorSuppl:te.warningSuppl,errorColor:te.errorDefault,errorColorHover:te.errorHover,errorColorPressed:te.errorActive,errorColorSuppl:te.errorSuppl,textColorBase:te.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:De(te.alpha4),placeholderColor:De(te.alpha4),placeholderColorDisabled:De(te.alpha5),iconColor:De(te.alpha4),iconColorHover:qr(De(te.alpha4),{lightness:.75}),iconColorPressed:qr(De(te.alpha4),{lightness:.9}),iconColorDisabled:De(te.alpha5),opacity1:te.alpha1,opacity2:te.alpha2,opacity3:te.alpha3,opacity4:te.alpha4,opacity5:te.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:De(Number(te.alphaClose)),closeIconColorHover:De(Number(te.alphaClose)),closeIconColorPressed:De(Number(te.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:De(te.alpha4),clearColorHover:qr(De(te.alpha4),{lightness:.75}),clearColorPressed:qr(De(te.alpha4),{lightness:.9}),scrollbarColor:ca(te.alphaScrollbar),scrollbarColorHover:ca(te.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:De(te.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:te.neutralPopover,tableColor:te.neutralCard,cardColor:te.neutralCard,modalColor:te.neutralModal,bodyColor:te.neutralBody,tagColor:"#eee",avatarColor:De(te.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:De(te.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:te.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),Xn=P0,R0=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},T0={name:"Scrollbar",common:Xn,self:R0},Zu=T0,{cubicBezierEaseInOut:ua}=xn;function Ju({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=ua,leaveCubicBezier:o=ua}={}){return[D(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),D(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),D(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),D(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const O0=xe("scrollbar",` overflow: hidden; position: relative; z-index: auto; @@ -245,7 +245,7 @@ ${t} right: 2px; bottom: 4px; height: var(--n-scrollbar-height); - `,[D(">",[X("scrollbar",` + `,[D(">",[G("scrollbar",` height: var(--n-scrollbar-height); border-radius: var(--n-scrollbar-border-radius); right: 0; @@ -254,17 +254,17 @@ ${t} top: 2px; bottom: 2px; width: var(--n-scrollbar-width); - `,[D(">",[X("scrollbar",` + `,[D(">",[G("scrollbar",` width: var(--n-scrollbar-width); border-radius: var(--n-scrollbar-border-radius); bottom: 0; - `)])]),de("disabled",[D(">",[X("scrollbar",{pointerEvents:"none"})])]),D(">",[X("scrollbar",` + `)])]),de("disabled",[D(">",[G("scrollbar",{pointerEvents:"none"})])]),D(">",[G("scrollbar",` position: absolute; cursor: pointer; pointer-events: all; background-color: var(--n-scrollbar-color); transition: background-color .2s var(--n-scrollbar-bezier); - `,[Zu(),D("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),z0=Object.assign(Object.assign({},nt.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),Ju=$e({name:"Scrollbar",props:z0,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Cn(e),o=Lo("Scrollbar",r,t),i=oe(null),s=oe(null),l=oe(null),a=oe(null),c=oe(null),u=oe(null),f=oe(null),d=oe(null),v=oe(null),p=oe(null),w=oe(null),y=oe(0),m=oe(0),S=oe(!1),F=oe(!1);let _=!1,P=!1,k,b,C=0,T=0,L=0,N=0;const A=ng(),ee=q(()=>{const{value:H}=d,{value:Q}=u,{value:ce}=p;return H===null||Q===null||ce===null?0:Math.min(H,ce*H/Q+e.size*1.5)}),se=q(()=>`${ee.value}px`),ae=q(()=>{const{value:H}=v,{value:Q}=f,{value:ce}=w;return H===null||Q===null||ce===null?0:ce*H/Q+e.size*1.5}),V=q(()=>`${ae.value}px`),K=q(()=>{const{value:H}=d,{value:Q}=y,{value:ce}=u,{value:Ee}=p;if(H===null||ce===null||Ee===null)return 0;{const He=ce-H;return He?Q/He*(Ee-ee.value):0}}),ne=q(()=>`${K.value}px`),Ce=q(()=>{const{value:H}=v,{value:Q}=m,{value:ce}=f,{value:Ee}=w;if(H===null||ce===null||Ee===null)return 0;{const He=ce-H;return He?Q/He*(Ee-ae.value):0}}),we=q(()=>`${Ce.value}px`),Se=q(()=>{const{value:H}=d,{value:Q}=u;return H!==null&&Q!==null&&Q>H}),Te=q(()=>{const{value:H}=v,{value:Q}=f;return H!==null&&Q!==null&&Q>H}),rt=q(()=>{const{trigger:H}=e;return H==="none"||S.value}),ht=q(()=>{const{trigger:H}=e;return H==="none"||F.value}),Xe=q(()=>{const{container:H}=e;return H?H():s.value}),fe=q(()=>{const{content:H}=e;return H?H():l.value}),R=Ng(()=>{e.container||Y({top:y.value,left:m.value})}),U=()=>{R.isDeactivated||Z()},I=H=>{if(R.isDeactivated)return;const{onResize:Q}=e;Q&&Q(H),Z()},Y=(H,Q)=>{if(!e.scrollable)return;if(typeof H=="number"){h(Q??0,H,0,!1,"auto");return}const{left:ce,top:Ee,index:He,elSize:Ze,position:St,behavior:Ae,el:_t,debounce:Yn=!0}=H;(ce!==void 0||Ee!==void 0)&&h(ce??0,Ee??0,0,!1,Ae),_t!==void 0?h(0,_t.offsetTop,_t.offsetHeight,Yn,Ae):He!==void 0&&Ze!==void 0?h(0,He*Ze,Ze,Yn,Ae):St==="bottom"?h(0,Number.MAX_SAFE_INTEGER,0,!1,Ae):St==="top"&&h(0,0,0,!1,Ae)},pe=(H,Q)=>{if(!e.scrollable)return;const{value:ce}=Xe;ce&&(typeof H=="object"?ce.scrollBy(H):ce.scrollBy(H,Q||0))};function h(H,Q,ce,Ee,He){const{value:Ze}=Xe;if(Ze){if(Ee){const{scrollTop:St,offsetHeight:Ae}=Ze;if(Q>St){Q+ce<=St+Ae||Ze.scrollTo({left:H,top:Q+ce-Ae,behavior:He});return}}Ze.scrollTo({left:H,top:Q,behavior:He})}}function g(){W(),j(),Z()}function x(){E()}function E(){z(),B()}function z(){b!==void 0&&window.clearTimeout(b),b=window.setTimeout(()=>{F.value=!1},e.duration)}function B(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{S.value=!1},e.duration)}function W(){k!==void 0&&window.clearTimeout(k),S.value=!0}function j(){b!==void 0&&window.clearTimeout(b),F.value=!0}function M(H){const{onScroll:Q}=e;Q&&Q(H),O()}function O(){const{value:H}=Xe;H&&(y.value=H.scrollTop,m.value=H.scrollLeft*(o!=null&&o.value?-1:1))}function J(){const{value:H}=fe;H&&(u.value=H.offsetHeight,f.value=H.offsetWidth);const{value:Q}=Xe;Q&&(d.value=Q.offsetHeight,v.value=Q.offsetWidth);const{value:ce}=c,{value:Ee}=a;ce&&(w.value=ce.offsetWidth),Ee&&(p.value=Ee.offsetHeight)}function G(){const{value:H}=Xe;H&&(y.value=H.scrollTop,m.value=H.scrollLeft*(o!=null&&o.value?-1:1),d.value=H.offsetHeight,v.value=H.offsetWidth,u.value=H.scrollHeight,f.value=H.scrollWidth);const{value:Q}=c,{value:ce}=a;Q&&(w.value=Q.offsetWidth),ce&&(p.value=ce.offsetHeight)}function Z(){e.scrollable&&(e.useUnifiedContainer?G():(J(),O()))}function le(H){var Q;return!(!((Q=i.value)===null||Q===void 0)&&Q.contains(us(H)))}function he(H){H.preventDefault(),H.stopPropagation(),P=!0,it("mousemove",window,be,!0),it("mouseup",window,me,!0),T=m.value,L=o!=null&&o.value?window.innerWidth-H.clientX:H.clientX}function be(H){if(!P)return;k!==void 0&&window.clearTimeout(k),b!==void 0&&window.clearTimeout(b);const{value:Q}=v,{value:ce}=f,{value:Ee}=ae;if(Q===null||ce===null)return;const Ze=(o!=null&&o.value?window.innerWidth-H.clientX-L:H.clientX-L)*(ce-Q)/(Q-Ee),St=ce-Q;let Ae=T+Ze;Ae=Math.min(St,Ae),Ae=Math.max(Ae,0);const{value:_t}=Xe;if(_t){_t.scrollLeft=Ae*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:Yn}=e;Yn&&Yn(Ae)}}function me(H){H.preventDefault(),H.stopPropagation(),Ve("mousemove",window,be,!0),Ve("mouseup",window,me,!0),P=!1,Z(),le(H)&&E()}function Ie(H){H.preventDefault(),H.stopPropagation(),_=!0,it("mousemove",window,Ue,!0),it("mouseup",window,pt,!0),C=y.value,N=H.clientY}function Ue(H){if(!_)return;k!==void 0&&window.clearTimeout(k),b!==void 0&&window.clearTimeout(b);const{value:Q}=d,{value:ce}=u,{value:Ee}=ee;if(Q===null||ce===null)return;const Ze=(H.clientY-N)*(ce-Q)/(Q-Ee),St=ce-Q;let Ae=C+Ze;Ae=Math.min(St,Ae),Ae=Math.max(Ae,0);const{value:_t}=Xe;_t&&(_t.scrollTop=Ae)}function pt(H){H.preventDefault(),H.stopPropagation(),Ve("mousemove",window,Ue,!0),Ve("mouseup",window,pt,!0),_=!1,Z(),le(H)&&E()}Qi(()=>{const{value:H}=Te,{value:Q}=Se,{value:ce}=t,{value:Ee}=c,{value:He}=a;Ee&&(H?Ee.classList.remove(`${ce}-scrollbar-rail--disabled`):Ee.classList.add(`${ce}-scrollbar-rail--disabled`)),He&&(Q?He.classList.remove(`${ce}-scrollbar-rail--disabled`):He.classList.add(`${ce}-scrollbar-rail--disabled`))}),Xt(()=>{e.container||Z()}),dt(()=>{k!==void 0&&window.clearTimeout(k),b!==void 0&&window.clearTimeout(b),Ve("mousemove",window,Ue,!0),Ve("mouseup",window,pt,!0)});const Fr=nt("Scrollbar","-scrollbar",O0,Yu,e,t),Bt=q(()=>{const{common:{cubicBezierEaseInOut:H,scrollbarBorderRadius:Q,scrollbarHeight:ce,scrollbarWidth:Ee},self:{color:He,colorHover:Ze}}=Fr.value;return{"--n-scrollbar-bezier":H,"--n-scrollbar-color":He,"--n-scrollbar-color-hover":Ze,"--n-scrollbar-border-radius":Q,"--n-scrollbar-width":Ee,"--n-scrollbar-height":ce}}),wt=n?Gn("scrollbar",void 0,Bt,e):void 0;return Object.assign(Object.assign({},{scrollTo:Y,scrollBy:pe,sync:Z,syncUnifiedContainer:G,handleMouseEnterWrapper:g,handleMouseLeaveWrapper:x}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:y,wrapperRef:i,containerRef:s,contentRef:l,yRailRef:a,xRailRef:c,needYBar:Se,needXBar:Te,yBarSizePx:se,xBarSizePx:V,yBarTopPx:ne,xBarLeftPx:we,isShowXBar:rt,isShowYBar:ht,isIos:A,handleScroll:M,handleContentResize:U,handleContainerResize:I,handleYScrollMouseDown:Ie,handleXScrollMouseDown:he,cssVars:n?void 0:Bt,themeClass:wt==null?void 0:wt.themeClass,onRender:wt==null?void 0:wt.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const s=this.trigger==="none",l=()=>$("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},$(s?ml:qt,s?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?$("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),a=()=>{var u,f;return(u=this.onRender)===null||u===void 0||u.call(this),$("div",as(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):$("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},$(Ll,{onResize:this.handleContentResize},{default:()=>$("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(),this.xScrollable&&$("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},$(s?ml:qt,s?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?$("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?a():$(Ll,{onResize:this.handleContainerResize},{default:a});return i?$(Me,null,c,l()):c}}),I0=Ju,s1=Ju,{cubicBezierEaseIn:fa,cubicBezierEaseOut:da}=xn;function A0({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[D("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${fa}, transform ${t} ${fa} ${o&&","+o}`}),D("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${da}, transform ${t} ${da} ${o&&","+o}`}),D("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),D("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const k0=xe("base-wave",` + `,[Ju(),D("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),z0=Object.assign(Object.assign({},nt.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),Qu=$e({name:"Scrollbar",props:z0,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Cn(e),o=Lo("Scrollbar",r,t),i=oe(null),s=oe(null),l=oe(null),a=oe(null),c=oe(null),u=oe(null),f=oe(null),d=oe(null),v=oe(null),p=oe(null),w=oe(null),y=oe(0),m=oe(0),S=oe(!1),F=oe(!1);let _=!1,P=!1,k,b,C=0,R=0,L=0,N=0;const A=ng(),ee=X(()=>{const{value:H}=d,{value:Q}=u,{value:ce}=p;return H===null||Q===null||ce===null?0:Math.min(H,ce*H/Q+e.size*1.5)}),se=X(()=>`${ee.value}px`),ae=X(()=>{const{value:H}=v,{value:Q}=f,{value:ce}=w;return H===null||Q===null||ce===null?0:ce*H/Q+e.size*1.5}),V=X(()=>`${ae.value}px`),K=X(()=>{const{value:H}=d,{value:Q}=y,{value:ce}=u,{value:Ee}=p;if(H===null||ce===null||Ee===null)return 0;{const He=ce-H;return He?Q/He*(Ee-ee.value):0}}),ne=X(()=>`${K.value}px`),Ce=X(()=>{const{value:H}=v,{value:Q}=m,{value:ce}=f,{value:Ee}=w;if(H===null||ce===null||Ee===null)return 0;{const He=ce-H;return He?Q/He*(Ee-ae.value):0}}),we=X(()=>`${Ce.value}px`),Se=X(()=>{const{value:H}=d,{value:Q}=u;return H!==null&&Q!==null&&Q>H}),Te=X(()=>{const{value:H}=v,{value:Q}=f;return H!==null&&Q!==null&&Q>H}),rt=X(()=>{const{trigger:H}=e;return H==="none"||S.value}),ht=X(()=>{const{trigger:H}=e;return H==="none"||F.value}),Xe=X(()=>{const{container:H}=e;return H?H():s.value}),fe=X(()=>{const{content:H}=e;return H?H():l.value}),T=Ng(()=>{e.container||Y({top:y.value,left:m.value})}),U=()=>{T.isDeactivated||Z()},I=H=>{if(T.isDeactivated)return;const{onResize:Q}=e;Q&&Q(H),Z()},Y=(H,Q)=>{if(!e.scrollable)return;if(typeof H=="number"){h(Q??0,H,0,!1,"auto");return}const{left:ce,top:Ee,index:He,elSize:Ze,position:St,behavior:Ae,el:_t,debounce:Yn=!0}=H;(ce!==void 0||Ee!==void 0)&&h(ce??0,Ee??0,0,!1,Ae),_t!==void 0?h(0,_t.offsetTop,_t.offsetHeight,Yn,Ae):He!==void 0&&Ze!==void 0?h(0,He*Ze,Ze,Yn,Ae):St==="bottom"?h(0,Number.MAX_SAFE_INTEGER,0,!1,Ae):St==="top"&&h(0,0,0,!1,Ae)},pe=(H,Q)=>{if(!e.scrollable)return;const{value:ce}=Xe;ce&&(typeof H=="object"?ce.scrollBy(H):ce.scrollBy(H,Q||0))};function h(H,Q,ce,Ee,He){const{value:Ze}=Xe;if(Ze){if(Ee){const{scrollTop:St,offsetHeight:Ae}=Ze;if(Q>St){Q+ce<=St+Ae||Ze.scrollTo({left:H,top:Q+ce-Ae,behavior:He});return}}Ze.scrollTo({left:H,top:Q,behavior:He})}}function g(){W(),j(),Z()}function x(){E()}function E(){z(),B()}function z(){b!==void 0&&window.clearTimeout(b),b=window.setTimeout(()=>{F.value=!1},e.duration)}function B(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{S.value=!1},e.duration)}function W(){k!==void 0&&window.clearTimeout(k),S.value=!0}function j(){b!==void 0&&window.clearTimeout(b),F.value=!0}function M(H){const{onScroll:Q}=e;Q&&Q(H),O()}function O(){const{value:H}=Xe;H&&(y.value=H.scrollTop,m.value=H.scrollLeft*(o!=null&&o.value?-1:1))}function J(){const{value:H}=fe;H&&(u.value=H.offsetHeight,f.value=H.offsetWidth);const{value:Q}=Xe;Q&&(d.value=Q.offsetHeight,v.value=Q.offsetWidth);const{value:ce}=c,{value:Ee}=a;ce&&(w.value=ce.offsetWidth),Ee&&(p.value=Ee.offsetHeight)}function q(){const{value:H}=Xe;H&&(y.value=H.scrollTop,m.value=H.scrollLeft*(o!=null&&o.value?-1:1),d.value=H.offsetHeight,v.value=H.offsetWidth,u.value=H.scrollHeight,f.value=H.scrollWidth);const{value:Q}=c,{value:ce}=a;Q&&(w.value=Q.offsetWidth),ce&&(p.value=ce.offsetHeight)}function Z(){e.scrollable&&(e.useUnifiedContainer?q():(J(),O()))}function le(H){var Q;return!(!((Q=i.value)===null||Q===void 0)&&Q.contains(us(H)))}function he(H){H.preventDefault(),H.stopPropagation(),P=!0,it("mousemove",window,be,!0),it("mouseup",window,me,!0),R=m.value,L=o!=null&&o.value?window.innerWidth-H.clientX:H.clientX}function be(H){if(!P)return;k!==void 0&&window.clearTimeout(k),b!==void 0&&window.clearTimeout(b);const{value:Q}=v,{value:ce}=f,{value:Ee}=ae;if(Q===null||ce===null)return;const Ze=(o!=null&&o.value?window.innerWidth-H.clientX-L:H.clientX-L)*(ce-Q)/(Q-Ee),St=ce-Q;let Ae=R+Ze;Ae=Math.min(St,Ae),Ae=Math.max(Ae,0);const{value:_t}=Xe;if(_t){_t.scrollLeft=Ae*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:Yn}=e;Yn&&Yn(Ae)}}function me(H){H.preventDefault(),H.stopPropagation(),Ve("mousemove",window,be,!0),Ve("mouseup",window,me,!0),P=!1,Z(),le(H)&&E()}function Ie(H){H.preventDefault(),H.stopPropagation(),_=!0,it("mousemove",window,Ue,!0),it("mouseup",window,pt,!0),C=y.value,N=H.clientY}function Ue(H){if(!_)return;k!==void 0&&window.clearTimeout(k),b!==void 0&&window.clearTimeout(b);const{value:Q}=d,{value:ce}=u,{value:Ee}=ee;if(Q===null||ce===null)return;const Ze=(H.clientY-N)*(ce-Q)/(Q-Ee),St=ce-Q;let Ae=C+Ze;Ae=Math.min(St,Ae),Ae=Math.max(Ae,0);const{value:_t}=Xe;_t&&(_t.scrollTop=Ae)}function pt(H){H.preventDefault(),H.stopPropagation(),Ve("mousemove",window,Ue,!0),Ve("mouseup",window,pt,!0),_=!1,Z(),le(H)&&E()}Qi(()=>{const{value:H}=Te,{value:Q}=Se,{value:ce}=t,{value:Ee}=c,{value:He}=a;Ee&&(H?Ee.classList.remove(`${ce}-scrollbar-rail--disabled`):Ee.classList.add(`${ce}-scrollbar-rail--disabled`)),He&&(Q?He.classList.remove(`${ce}-scrollbar-rail--disabled`):He.classList.add(`${ce}-scrollbar-rail--disabled`))}),Gt(()=>{e.container||Z()}),dt(()=>{k!==void 0&&window.clearTimeout(k),b!==void 0&&window.clearTimeout(b),Ve("mousemove",window,Ue,!0),Ve("mouseup",window,pt,!0)});const Fr=nt("Scrollbar","-scrollbar",O0,Zu,e,t),Bt=X(()=>{const{common:{cubicBezierEaseInOut:H,scrollbarBorderRadius:Q,scrollbarHeight:ce,scrollbarWidth:Ee},self:{color:He,colorHover:Ze}}=Fr.value;return{"--n-scrollbar-bezier":H,"--n-scrollbar-color":He,"--n-scrollbar-color-hover":Ze,"--n-scrollbar-border-radius":Q,"--n-scrollbar-width":Ee,"--n-scrollbar-height":ce}}),wt=n?Gn("scrollbar",void 0,Bt,e):void 0;return Object.assign(Object.assign({},{scrollTo:Y,scrollBy:pe,sync:Z,syncUnifiedContainer:q,handleMouseEnterWrapper:g,handleMouseLeaveWrapper:x}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:y,wrapperRef:i,containerRef:s,contentRef:l,yRailRef:a,xRailRef:c,needYBar:Se,needXBar:Te,yBarSizePx:se,xBarSizePx:V,yBarTopPx:ne,xBarLeftPx:we,isShowXBar:rt,isShowYBar:ht,isIos:A,handleScroll:M,handleContentResize:U,handleContainerResize:I,handleYScrollMouseDown:Ie,handleXScrollMouseDown:he,cssVars:n?void 0:Bt,themeClass:wt==null?void 0:wt.themeClass,onRender:wt==null?void 0:wt.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const s=this.trigger==="none",l=()=>$("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},$(s?ml:qt,s?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?$("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),a=()=>{var u,f;return(u=this.onRender)===null||u===void 0||u.call(this),$("div",as(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):$("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},$(Ll,{onResize:this.handleContentResize},{default:()=>$("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(),this.xScrollable&&$("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},$(s?ml:qt,s?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?$("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?a():$(Ll,{onResize:this.handleContainerResize},{default:a});return i?$(Me,null,c,l()):c}}),I0=Qu,s1=Qu,{cubicBezierEaseIn:fa,cubicBezierEaseOut:da}=xn;function A0({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[D("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${fa}, transform ${t} ${fa} ${o&&","+o}`}),D("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${da}, transform ${t} ${da} ${o&&","+o}`}),D("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),D("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const k0=xe("base-wave",` position: absolute; left: 0; right: 0; @@ -311,7 +311,7 @@ ${t} padding-top ${t} ${mt}, padding-bottom ${t} ${mt} ${n?","+n:""} - `)]}const j0=Br&&"chrome"in window;Br&&navigator.userAgent.includes("Firefox");const D0=Br&&navigator.userAgent.includes("Safari")&&!j0;function Qt(e){return fs(e,[255,255,255,.16])}function to(e){return fs(e,[0,0,0,.12])}const N0="n-button-group",W0={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},U0=e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:s,fontSizeSmall:l,fontSizeMedium:a,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:d,primaryColorHover:v,primaryColorPressed:p,borderColor:w,primaryColor:y,baseColor:m,infoColor:S,infoColorHover:F,infoColorPressed:_,successColor:P,successColorHover:k,successColorPressed:b,warningColor:C,warningColorHover:T,warningColorPressed:L,errorColor:N,errorColorHover:A,errorColorPressed:ee,fontWeight:se,buttonColor2:ae,buttonColor2Hover:V,buttonColor2Pressed:K,fontWeightStrong:ne}=e;return Object.assign(Object.assign({},W0),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:s,fontSizeSmall:l,fontSizeMedium:a,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:ae,colorSecondaryHover:V,colorSecondaryPressed:K,colorTertiary:ae,colorTertiaryHover:V,colorTertiaryPressed:K,colorQuaternary:"#0000",colorQuaternaryHover:V,colorQuaternaryPressed:K,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:d,textColorHover:v,textColorPressed:p,textColorFocus:v,textColorDisabled:f,textColorText:f,textColorTextHover:v,textColorTextPressed:p,textColorTextFocus:v,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:v,textColorGhostPressed:p,textColorGhostFocus:v,textColorGhostDisabled:f,border:`1px solid ${w}`,borderHover:`1px solid ${v}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${v}`,borderDisabled:`1px solid ${w}`,rippleColor:y,colorPrimary:y,colorHoverPrimary:v,colorPressedPrimary:p,colorFocusPrimary:v,colorDisabledPrimary:y,textColorPrimary:m,textColorHoverPrimary:m,textColorPressedPrimary:m,textColorFocusPrimary:m,textColorDisabledPrimary:m,textColorTextPrimary:y,textColorTextHoverPrimary:v,textColorTextPressedPrimary:p,textColorTextFocusPrimary:v,textColorTextDisabledPrimary:f,textColorGhostPrimary:y,textColorGhostHoverPrimary:v,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:v,textColorGhostDisabledPrimary:y,borderPrimary:`1px solid ${y}`,borderHoverPrimary:`1px solid ${v}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${v}`,borderDisabledPrimary:`1px solid ${y}`,rippleColorPrimary:y,colorInfo:S,colorHoverInfo:F,colorPressedInfo:_,colorFocusInfo:F,colorDisabledInfo:S,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:S,textColorTextHoverInfo:F,textColorTextPressedInfo:_,textColorTextFocusInfo:F,textColorTextDisabledInfo:f,textColorGhostInfo:S,textColorGhostHoverInfo:F,textColorGhostPressedInfo:_,textColorGhostFocusInfo:F,textColorGhostDisabledInfo:S,borderInfo:`1px solid ${S}`,borderHoverInfo:`1px solid ${F}`,borderPressedInfo:`1px solid ${_}`,borderFocusInfo:`1px solid ${F}`,borderDisabledInfo:`1px solid ${S}`,rippleColorInfo:S,colorSuccess:P,colorHoverSuccess:k,colorPressedSuccess:b,colorFocusSuccess:k,colorDisabledSuccess:P,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:P,textColorTextHoverSuccess:k,textColorTextPressedSuccess:b,textColorTextFocusSuccess:k,textColorTextDisabledSuccess:f,textColorGhostSuccess:P,textColorGhostHoverSuccess:k,textColorGhostPressedSuccess:b,textColorGhostFocusSuccess:k,textColorGhostDisabledSuccess:P,borderSuccess:`1px solid ${P}`,borderHoverSuccess:`1px solid ${k}`,borderPressedSuccess:`1px solid ${b}`,borderFocusSuccess:`1px solid ${k}`,borderDisabledSuccess:`1px solid ${P}`,rippleColorSuccess:P,colorWarning:C,colorHoverWarning:T,colorPressedWarning:L,colorFocusWarning:T,colorDisabledWarning:C,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:C,textColorTextHoverWarning:T,textColorTextPressedWarning:L,textColorTextFocusWarning:T,textColorTextDisabledWarning:f,textColorGhostWarning:C,textColorGhostHoverWarning:T,textColorGhostPressedWarning:L,textColorGhostFocusWarning:T,textColorGhostDisabledWarning:C,borderWarning:`1px solid ${C}`,borderHoverWarning:`1px solid ${T}`,borderPressedWarning:`1px solid ${L}`,borderFocusWarning:`1px solid ${T}`,borderDisabledWarning:`1px solid ${C}`,rippleColorWarning:C,colorError:N,colorHoverError:A,colorPressedError:ee,colorFocusError:A,colorDisabledError:N,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:N,textColorTextHoverError:A,textColorTextPressedError:ee,textColorTextFocusError:A,textColorTextDisabledError:f,textColorGhostError:N,textColorGhostHoverError:A,textColorGhostPressedError:ee,textColorGhostFocusError:A,textColorGhostDisabledError:N,borderError:`1px solid ${N}`,borderHoverError:`1px solid ${A}`,borderPressedError:`1px solid ${ee}`,borderFocusError:`1px solid ${A}`,borderDisabledError:`1px solid ${N}`,rippleColorError:N,waveOpacity:"0.6",fontWeight:se,fontWeightStrong:ne})},K0={name:"Button",common:Xn,self:U0},Qu=K0,V0=D([xe("button",` + `)]}const j0=Br&&"chrome"in window;Br&&navigator.userAgent.includes("Firefox");const D0=Br&&navigator.userAgent.includes("Safari")&&!j0;function Jt(e){return fs(e,[255,255,255,.16])}function to(e){return fs(e,[0,0,0,.12])}const N0="n-button-group",W0={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},U0=e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:s,fontSizeSmall:l,fontSizeMedium:a,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:d,primaryColorHover:v,primaryColorPressed:p,borderColor:w,primaryColor:y,baseColor:m,infoColor:S,infoColorHover:F,infoColorPressed:_,successColor:P,successColorHover:k,successColorPressed:b,warningColor:C,warningColorHover:R,warningColorPressed:L,errorColor:N,errorColorHover:A,errorColorPressed:ee,fontWeight:se,buttonColor2:ae,buttonColor2Hover:V,buttonColor2Pressed:K,fontWeightStrong:ne}=e;return Object.assign(Object.assign({},W0),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:s,fontSizeSmall:l,fontSizeMedium:a,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:ae,colorSecondaryHover:V,colorSecondaryPressed:K,colorTertiary:ae,colorTertiaryHover:V,colorTertiaryPressed:K,colorQuaternary:"#0000",colorQuaternaryHover:V,colorQuaternaryPressed:K,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:d,textColorHover:v,textColorPressed:p,textColorFocus:v,textColorDisabled:f,textColorText:f,textColorTextHover:v,textColorTextPressed:p,textColorTextFocus:v,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:v,textColorGhostPressed:p,textColorGhostFocus:v,textColorGhostDisabled:f,border:`1px solid ${w}`,borderHover:`1px solid ${v}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${v}`,borderDisabled:`1px solid ${w}`,rippleColor:y,colorPrimary:y,colorHoverPrimary:v,colorPressedPrimary:p,colorFocusPrimary:v,colorDisabledPrimary:y,textColorPrimary:m,textColorHoverPrimary:m,textColorPressedPrimary:m,textColorFocusPrimary:m,textColorDisabledPrimary:m,textColorTextPrimary:y,textColorTextHoverPrimary:v,textColorTextPressedPrimary:p,textColorTextFocusPrimary:v,textColorTextDisabledPrimary:f,textColorGhostPrimary:y,textColorGhostHoverPrimary:v,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:v,textColorGhostDisabledPrimary:y,borderPrimary:`1px solid ${y}`,borderHoverPrimary:`1px solid ${v}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${v}`,borderDisabledPrimary:`1px solid ${y}`,rippleColorPrimary:y,colorInfo:S,colorHoverInfo:F,colorPressedInfo:_,colorFocusInfo:F,colorDisabledInfo:S,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:S,textColorTextHoverInfo:F,textColorTextPressedInfo:_,textColorTextFocusInfo:F,textColorTextDisabledInfo:f,textColorGhostInfo:S,textColorGhostHoverInfo:F,textColorGhostPressedInfo:_,textColorGhostFocusInfo:F,textColorGhostDisabledInfo:S,borderInfo:`1px solid ${S}`,borderHoverInfo:`1px solid ${F}`,borderPressedInfo:`1px solid ${_}`,borderFocusInfo:`1px solid ${F}`,borderDisabledInfo:`1px solid ${S}`,rippleColorInfo:S,colorSuccess:P,colorHoverSuccess:k,colorPressedSuccess:b,colorFocusSuccess:k,colorDisabledSuccess:P,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:P,textColorTextHoverSuccess:k,textColorTextPressedSuccess:b,textColorTextFocusSuccess:k,textColorTextDisabledSuccess:f,textColorGhostSuccess:P,textColorGhostHoverSuccess:k,textColorGhostPressedSuccess:b,textColorGhostFocusSuccess:k,textColorGhostDisabledSuccess:P,borderSuccess:`1px solid ${P}`,borderHoverSuccess:`1px solid ${k}`,borderPressedSuccess:`1px solid ${b}`,borderFocusSuccess:`1px solid ${k}`,borderDisabledSuccess:`1px solid ${P}`,rippleColorSuccess:P,colorWarning:C,colorHoverWarning:R,colorPressedWarning:L,colorFocusWarning:R,colorDisabledWarning:C,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:C,textColorTextHoverWarning:R,textColorTextPressedWarning:L,textColorTextFocusWarning:R,textColorTextDisabledWarning:f,textColorGhostWarning:C,textColorGhostHoverWarning:R,textColorGhostPressedWarning:L,textColorGhostFocusWarning:R,textColorGhostDisabledWarning:C,borderWarning:`1px solid ${C}`,borderHoverWarning:`1px solid ${R}`,borderPressedWarning:`1px solid ${L}`,borderFocusWarning:`1px solid ${R}`,borderDisabledWarning:`1px solid ${C}`,rippleColorWarning:C,colorError:N,colorHoverError:A,colorPressedError:ee,colorFocusError:A,colorDisabledError:N,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:N,textColorTextHoverError:A,textColorTextPressedError:ee,textColorTextFocusError:A,textColorTextDisabledError:f,textColorGhostError:N,textColorGhostHoverError:A,textColorGhostPressedError:ee,textColorGhostFocusError:A,textColorGhostDisabledError:N,borderError:`1px solid ${N}`,borderHoverError:`1px solid ${A}`,borderPressedError:`1px solid ${ee}`,borderFocusError:`1px solid ${A}`,borderDisabledError:`1px solid ${N}`,rippleColorError:N,waveOpacity:"0.6",fontWeight:se,fontWeightStrong:ne})},K0={name:"Button",common:Xn,self:U0},ef=K0,V0=D([xe("button",` margin: 0; font-weight: var(--n-font-weight); line-height: 1; @@ -343,7 +343,7 @@ ${t} background-color .3s var(--n-bezier), opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[de("color",[X("border",{borderColor:"var(--n-border-color)"}),de("disabled",[X("border",{borderColor:"var(--n-border-color-disabled)"})]),_i("disabled",[D("&:focus",[X("state-border",{borderColor:"var(--n-border-color-focus)"})]),D("&:hover",[X("state-border",{borderColor:"var(--n-border-color-hover)"})]),D("&:active",[X("state-border",{borderColor:"var(--n-border-color-pressed)"})]),de("pressed",[X("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),de("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[X("border",{border:"var(--n-border-disabled)"})]),_i("disabled",[D("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[X("state-border",{border:"var(--n-border-focus)"})]),D("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[X("state-border",{border:"var(--n-border-hover)"})]),D("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[X("state-border",{border:"var(--n-border-pressed)"})]),de("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[X("state-border",{border:"var(--n-border-pressed)"})])]),de("loading","cursor: wait;"),xe("base-wave",` + `,[de("color",[G("border",{borderColor:"var(--n-border-color)"}),de("disabled",[G("border",{borderColor:"var(--n-border-color-disabled)"})]),_i("disabled",[D("&:focus",[G("state-border",{borderColor:"var(--n-border-color-focus)"})]),D("&:hover",[G("state-border",{borderColor:"var(--n-border-color-hover)"})]),D("&:active",[G("state-border",{borderColor:"var(--n-border-color-pressed)"})]),de("pressed",[G("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),de("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[G("border",{border:"var(--n-border-disabled)"})]),_i("disabled",[D("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[G("state-border",{border:"var(--n-border-focus)"})]),D("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[G("state-border",{border:"var(--n-border-hover)"})]),D("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[G("state-border",{border:"var(--n-border-pressed)"})]),de("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[G("state-border",{border:"var(--n-border-pressed)"})])]),de("loading","cursor: wait;"),xe("base-wave",` pointer-events: none; top: 0; right: 0; @@ -352,7 +352,7 @@ ${t} animation-iteration-count: 1; animation-duration: var(--n-ripple-duration); animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[de("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),Br&&"MozBoxSizing"in document.createElement("div").style?D("&::moz-focus-inner",{border:0}):null,X("border, state-border",` + `,[de("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),Br&&"MozBoxSizing"in document.createElement("div").style?D("&::moz-focus-inner",{border:0}):null,G("border, state-border",` position: absolute; left: 0; top: 0; @@ -361,7 +361,7 @@ ${t} border-radius: inherit; transition: border-color .3s var(--n-bezier); pointer-events: none; - `),X("border",{border:"var(--n-border)"}),X("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),X("icon",` + `),G("border",{border:"var(--n-border)"}),G("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),G("icon",` margin: var(--n-icon-margin); margin-left: 0; height: var(--n-icon-size); @@ -380,15 +380,15 @@ ${t} display: flex; align-items: center; justify-content: center; - `,[mo({top:"50%",originalTransform:"translateY(-50%)"})]),M0()]),X("content",` + `,[mo({top:"50%",originalTransform:"translateY(-50%)"})]),M0()]),G("content",` display: flex; align-items: center; flex-wrap: nowrap; min-width: 0; - `,[D("~",[X("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),de("block",` + `,[D("~",[G("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),de("block",` display: flex; width: 100%; - `),de("dashed",[X("border, state-border",{borderStyle:"dashed !important"})]),de("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),D("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),D("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),q0=Object.assign(Object.assign({},nt.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!D0}}),G0=$e({name:"Button",props:q0,setup(e){const t=oe(null),n=oe(null),r=oe(!1),o=$i(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=ze(N0,{}),{mergedSizeRef:s}=Wg({},{defaultSize:"medium",mergedSize:_=>{const{size:P}=e;if(P)return P;const{size:k}=i;if(k)return k;const{mergedSize:b}=_||{};return b?b.value:"medium"}}),l=q(()=>e.focusable&&!e.disabled),a=_=>{var P;l.value||_.preventDefault(),!e.nativeFocusBehavior&&(_.preventDefault(),!e.disabled&&l.value&&((P=t.value)===null||P===void 0||P.focus({preventScroll:!0})))},c=_=>{var P;if(!e.disabled&&!e.loading){const{onClick:k}=e;k&&cn(k,_),e.text||(P=n.value)===null||P===void 0||P.play()}},u=_=>{switch(_.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=_=>{switch(_.key){case"Enter":if(!e.keyboard||e.loading){_.preventDefault();return}r.value=!0}},d=()=>{r.value=!1},{inlineThemeDisabled:v,mergedClsPrefixRef:p,mergedRtlRef:w}=Cn(e),y=nt("Button","-button",V0,Qu,e,p),m=Lo("Button",w,p),S=q(()=>{const _=y.value,{common:{cubicBezierEaseInOut:P,cubicBezierEaseOut:k},self:b}=_,{rippleDuration:C,opacityDisabled:T,fontWeight:L,fontWeightStrong:N}=b,A=s.value,{dashed:ee,type:se,ghost:ae,text:V,color:K,round:ne,circle:Ce,textColor:we,secondary:Se,tertiary:Te,quaternary:rt,strong:ht}=e,Xe={"font-weight":ht?N:L};let fe={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const R=se==="tertiary",U=se==="default",I=R?"default":se;if(V){const M=we||K;fe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":M||b[re("textColorText",I)],"--n-text-color-hover":M?Qt(M):b[re("textColorTextHover",I)],"--n-text-color-pressed":M?to(M):b[re("textColorTextPressed",I)],"--n-text-color-focus":M?Qt(M):b[re("textColorTextHover",I)],"--n-text-color-disabled":M||b[re("textColorTextDisabled",I)]}}else if(ae||ee){const M=we||K;fe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":K||b[re("rippleColor",I)],"--n-text-color":M||b[re("textColorGhost",I)],"--n-text-color-hover":M?Qt(M):b[re("textColorGhostHover",I)],"--n-text-color-pressed":M?to(M):b[re("textColorGhostPressed",I)],"--n-text-color-focus":M?Qt(M):b[re("textColorGhostHover",I)],"--n-text-color-disabled":M||b[re("textColorGhostDisabled",I)]}}else if(Se){const M=U?b.textColor:R?b.textColorTertiary:b[re("color",I)],O=K||M,J=se!=="default"&&se!=="tertiary";fe={"--n-color":J?Vr(O,{alpha:Number(b.colorOpacitySecondary)}):b.colorSecondary,"--n-color-hover":J?Vr(O,{alpha:Number(b.colorOpacitySecondaryHover)}):b.colorSecondaryHover,"--n-color-pressed":J?Vr(O,{alpha:Number(b.colorOpacitySecondaryPressed)}):b.colorSecondaryPressed,"--n-color-focus":J?Vr(O,{alpha:Number(b.colorOpacitySecondaryHover)}):b.colorSecondaryHover,"--n-color-disabled":b.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":O,"--n-text-color-hover":O,"--n-text-color-pressed":O,"--n-text-color-focus":O,"--n-text-color-disabled":O}}else if(Te||rt){const M=U?b.textColor:R?b.textColorTertiary:b[re("color",I)],O=K||M;Te?(fe["--n-color"]=b.colorTertiary,fe["--n-color-hover"]=b.colorTertiaryHover,fe["--n-color-pressed"]=b.colorTertiaryPressed,fe["--n-color-focus"]=b.colorSecondaryHover,fe["--n-color-disabled"]=b.colorTertiary):(fe["--n-color"]=b.colorQuaternary,fe["--n-color-hover"]=b.colorQuaternaryHover,fe["--n-color-pressed"]=b.colorQuaternaryPressed,fe["--n-color-focus"]=b.colorQuaternaryHover,fe["--n-color-disabled"]=b.colorQuaternary),fe["--n-ripple-color"]="#0000",fe["--n-text-color"]=O,fe["--n-text-color-hover"]=O,fe["--n-text-color-pressed"]=O,fe["--n-text-color-focus"]=O,fe["--n-text-color-disabled"]=O}else fe={"--n-color":K||b[re("color",I)],"--n-color-hover":K?Qt(K):b[re("colorHover",I)],"--n-color-pressed":K?to(K):b[re("colorPressed",I)],"--n-color-focus":K?Qt(K):b[re("colorFocus",I)],"--n-color-disabled":K||b[re("colorDisabled",I)],"--n-ripple-color":K||b[re("rippleColor",I)],"--n-text-color":we||(K?b.textColorPrimary:R?b.textColorTertiary:b[re("textColor",I)]),"--n-text-color-hover":we||(K?b.textColorHoverPrimary:b[re("textColorHover",I)]),"--n-text-color-pressed":we||(K?b.textColorPressedPrimary:b[re("textColorPressed",I)]),"--n-text-color-focus":we||(K?b.textColorFocusPrimary:b[re("textColorFocus",I)]),"--n-text-color-disabled":we||(K?b.textColorDisabledPrimary:b[re("textColorDisabled",I)])};let Y={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};V?Y={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:Y={"--n-border":b[re("border",I)],"--n-border-hover":b[re("borderHover",I)],"--n-border-pressed":b[re("borderPressed",I)],"--n-border-focus":b[re("borderFocus",I)],"--n-border-disabled":b[re("borderDisabled",I)]};const{[re("height",A)]:pe,[re("fontSize",A)]:h,[re("padding",A)]:g,[re("paddingRound",A)]:x,[re("iconSize",A)]:E,[re("borderRadius",A)]:z,[re("iconMargin",A)]:B,waveOpacity:W}=b,j={"--n-width":Ce&&!V?pe:"initial","--n-height":V?"initial":pe,"--n-font-size":h,"--n-padding":Ce||V?"initial":ne?x:g,"--n-icon-size":E,"--n-icon-margin":B,"--n-border-radius":V?"initial":Ce||ne?pe:z};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":P,"--n-bezier-ease-out":k,"--n-ripple-duration":C,"--n-opacity-disabled":T,"--n-wave-opacity":W},Xe),fe),Y),j)}),F=v?Gn("button",q(()=>{let _="";const{dashed:P,type:k,ghost:b,text:C,color:T,round:L,circle:N,textColor:A,secondary:ee,tertiary:se,quaternary:ae,strong:V}=e;P&&(_+="a"),b&&(_+="b"),C&&(_+="c"),L&&(_+="d"),N&&(_+="e"),ee&&(_+="f"),se&&(_+="g"),ae&&(_+="h"),V&&(_+="i"),T&&(_+="j"+bl(T)),A&&(_+="k"+bl(A));const{value:K}=s;return _+="l"+K[0],_+="m"+k[0],_}),S,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:l,mergedSize:s,showBorder:o,enterPressed:r,rtlEnabled:m,handleMousedown:a,handleKeydown:f,handleBlur:d,handleKeyup:u,handleClick:c,customColorCssVars:q(()=>{const{color:_}=e;if(!_)return null;const P=Qt(_);return{"--n-border-color":_,"--n-border-color-hover":P,"--n-border-color-pressed":to(_),"--n-border-color-focus":P,"--n-border-color-disabled":_}}),cssVars:v?void 0:S,themeClass:F==null?void 0:F.themeClass,onRender:F==null?void 0:F.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=yt(this.$slots.default,o=>o&&$("span",{class:`${e}-button__content`},o));return $(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,$(qu,{width:!0},{default:()=>yt(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&$("span",{class:`${e}-button__icon`,style:{margin:Sp(this.$slots.default)?"0":""}},$(xs,null,{default:()=>this.loading?$(Gu,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):$("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:$(B0,{ref:"waveElRef",clsPrefix:e}),this.showBorder?$("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?$("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),ha=G0,X0={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},Y0=e=>{const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:s,textColor1:l,dividerColor:a,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,closeColorHover:v,closeColorPressed:p,modalColor:w,boxShadow1:y,popoverColor:m,actionColor:S}=e;return Object.assign(Object.assign({},X0),{lineHeight:r,color:i,colorModal:w,colorPopover:m,colorTarget:t,colorEmbedded:S,colorEmbeddedModal:S,colorEmbeddedPopover:S,textColor:s,titleTextColor:l,borderColor:a,actionColor:S,titleFontWeight:c,closeColorHover:v,closeColorPressed:p,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:y,borderRadius:n})},Z0={name:"Card",common:Xn,self:Y0},ef=Z0,J0=D([xe("card",` + `),de("dashed",[G("border, state-border",{borderStyle:"dashed !important"})]),de("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),D("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),D("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),q0=Object.assign(Object.assign({},nt.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!D0}}),G0=$e({name:"Button",props:q0,setup(e){const t=oe(null),n=oe(null),r=oe(!1),o=$i(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=ze(N0,{}),{mergedSizeRef:s}=Wg({},{defaultSize:"medium",mergedSize:_=>{const{size:P}=e;if(P)return P;const{size:k}=i;if(k)return k;const{mergedSize:b}=_||{};return b?b.value:"medium"}}),l=X(()=>e.focusable&&!e.disabled),a=_=>{var P;l.value||_.preventDefault(),!e.nativeFocusBehavior&&(_.preventDefault(),!e.disabled&&l.value&&((P=t.value)===null||P===void 0||P.focus({preventScroll:!0})))},c=_=>{var P;if(!e.disabled&&!e.loading){const{onClick:k}=e;k&&an(k,_),e.text||(P=n.value)===null||P===void 0||P.play()}},u=_=>{switch(_.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=_=>{switch(_.key){case"Enter":if(!e.keyboard||e.loading){_.preventDefault();return}r.value=!0}},d=()=>{r.value=!1},{inlineThemeDisabled:v,mergedClsPrefixRef:p,mergedRtlRef:w}=Cn(e),y=nt("Button","-button",V0,ef,e,p),m=Lo("Button",w,p),S=X(()=>{const _=y.value,{common:{cubicBezierEaseInOut:P,cubicBezierEaseOut:k},self:b}=_,{rippleDuration:C,opacityDisabled:R,fontWeight:L,fontWeightStrong:N}=b,A=s.value,{dashed:ee,type:se,ghost:ae,text:V,color:K,round:ne,circle:Ce,textColor:we,secondary:Se,tertiary:Te,quaternary:rt,strong:ht}=e,Xe={"font-weight":ht?N:L};let fe={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const T=se==="tertiary",U=se==="default",I=T?"default":se;if(V){const M=we||K;fe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":M||b[re("textColorText",I)],"--n-text-color-hover":M?Jt(M):b[re("textColorTextHover",I)],"--n-text-color-pressed":M?to(M):b[re("textColorTextPressed",I)],"--n-text-color-focus":M?Jt(M):b[re("textColorTextHover",I)],"--n-text-color-disabled":M||b[re("textColorTextDisabled",I)]}}else if(ae||ee){const M=we||K;fe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":K||b[re("rippleColor",I)],"--n-text-color":M||b[re("textColorGhost",I)],"--n-text-color-hover":M?Jt(M):b[re("textColorGhostHover",I)],"--n-text-color-pressed":M?to(M):b[re("textColorGhostPressed",I)],"--n-text-color-focus":M?Jt(M):b[re("textColorGhostHover",I)],"--n-text-color-disabled":M||b[re("textColorGhostDisabled",I)]}}else if(Se){const M=U?b.textColor:T?b.textColorTertiary:b[re("color",I)],O=K||M,J=se!=="default"&&se!=="tertiary";fe={"--n-color":J?Vr(O,{alpha:Number(b.colorOpacitySecondary)}):b.colorSecondary,"--n-color-hover":J?Vr(O,{alpha:Number(b.colorOpacitySecondaryHover)}):b.colorSecondaryHover,"--n-color-pressed":J?Vr(O,{alpha:Number(b.colorOpacitySecondaryPressed)}):b.colorSecondaryPressed,"--n-color-focus":J?Vr(O,{alpha:Number(b.colorOpacitySecondaryHover)}):b.colorSecondaryHover,"--n-color-disabled":b.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":O,"--n-text-color-hover":O,"--n-text-color-pressed":O,"--n-text-color-focus":O,"--n-text-color-disabled":O}}else if(Te||rt){const M=U?b.textColor:T?b.textColorTertiary:b[re("color",I)],O=K||M;Te?(fe["--n-color"]=b.colorTertiary,fe["--n-color-hover"]=b.colorTertiaryHover,fe["--n-color-pressed"]=b.colorTertiaryPressed,fe["--n-color-focus"]=b.colorSecondaryHover,fe["--n-color-disabled"]=b.colorTertiary):(fe["--n-color"]=b.colorQuaternary,fe["--n-color-hover"]=b.colorQuaternaryHover,fe["--n-color-pressed"]=b.colorQuaternaryPressed,fe["--n-color-focus"]=b.colorQuaternaryHover,fe["--n-color-disabled"]=b.colorQuaternary),fe["--n-ripple-color"]="#0000",fe["--n-text-color"]=O,fe["--n-text-color-hover"]=O,fe["--n-text-color-pressed"]=O,fe["--n-text-color-focus"]=O,fe["--n-text-color-disabled"]=O}else fe={"--n-color":K||b[re("color",I)],"--n-color-hover":K?Jt(K):b[re("colorHover",I)],"--n-color-pressed":K?to(K):b[re("colorPressed",I)],"--n-color-focus":K?Jt(K):b[re("colorFocus",I)],"--n-color-disabled":K||b[re("colorDisabled",I)],"--n-ripple-color":K||b[re("rippleColor",I)],"--n-text-color":we||(K?b.textColorPrimary:T?b.textColorTertiary:b[re("textColor",I)]),"--n-text-color-hover":we||(K?b.textColorHoverPrimary:b[re("textColorHover",I)]),"--n-text-color-pressed":we||(K?b.textColorPressedPrimary:b[re("textColorPressed",I)]),"--n-text-color-focus":we||(K?b.textColorFocusPrimary:b[re("textColorFocus",I)]),"--n-text-color-disabled":we||(K?b.textColorDisabledPrimary:b[re("textColorDisabled",I)])};let Y={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};V?Y={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:Y={"--n-border":b[re("border",I)],"--n-border-hover":b[re("borderHover",I)],"--n-border-pressed":b[re("borderPressed",I)],"--n-border-focus":b[re("borderFocus",I)],"--n-border-disabled":b[re("borderDisabled",I)]};const{[re("height",A)]:pe,[re("fontSize",A)]:h,[re("padding",A)]:g,[re("paddingRound",A)]:x,[re("iconSize",A)]:E,[re("borderRadius",A)]:z,[re("iconMargin",A)]:B,waveOpacity:W}=b,j={"--n-width":Ce&&!V?pe:"initial","--n-height":V?"initial":pe,"--n-font-size":h,"--n-padding":Ce||V?"initial":ne?x:g,"--n-icon-size":E,"--n-icon-margin":B,"--n-border-radius":V?"initial":Ce||ne?pe:z};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":P,"--n-bezier-ease-out":k,"--n-ripple-duration":C,"--n-opacity-disabled":R,"--n-wave-opacity":W},Xe),fe),Y),j)}),F=v?Gn("button",X(()=>{let _="";const{dashed:P,type:k,ghost:b,text:C,color:R,round:L,circle:N,textColor:A,secondary:ee,tertiary:se,quaternary:ae,strong:V}=e;P&&(_+="a"),b&&(_+="b"),C&&(_+="c"),L&&(_+="d"),N&&(_+="e"),ee&&(_+="f"),se&&(_+="g"),ae&&(_+="h"),V&&(_+="i"),R&&(_+="j"+bl(R)),A&&(_+="k"+bl(A));const{value:K}=s;return _+="l"+K[0],_+="m"+k[0],_}),S,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:l,mergedSize:s,showBorder:o,enterPressed:r,rtlEnabled:m,handleMousedown:a,handleKeydown:f,handleBlur:d,handleKeyup:u,handleClick:c,customColorCssVars:X(()=>{const{color:_}=e;if(!_)return null;const P=Jt(_);return{"--n-border-color":_,"--n-border-color-hover":P,"--n-border-color-pressed":to(_),"--n-border-color-focus":P,"--n-border-color-disabled":_}}),cssVars:v?void 0:S,themeClass:F==null?void 0:F.themeClass,onRender:F==null?void 0:F.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=yt(this.$slots.default,o=>o&&$("span",{class:`${e}-button__content`},o));return $(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,$(Gu,{width:!0},{default:()=>yt(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&$("span",{class:`${e}-button__icon`,style:{margin:Sp(this.$slots.default)?"0":""}},$(xs,null,{default:()=>this.loading?$(Xu,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):$("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:$(B0,{ref:"waveElRef",clsPrefix:e}),this.showBorder?$("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?$("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),ha=G0,X0={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},Y0=e=>{const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:s,textColor1:l,dividerColor:a,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,closeColorHover:v,closeColorPressed:p,modalColor:w,boxShadow1:y,popoverColor:m,actionColor:S}=e;return Object.assign(Object.assign({},X0),{lineHeight:r,color:i,colorModal:w,colorPopover:m,colorTarget:t,colorEmbedded:S,colorEmbeddedModal:S,colorEmbeddedPopover:S,textColor:s,titleTextColor:l,borderColor:a,actionColor:S,titleFontWeight:c,closeColorHover:v,closeColorPressed:p,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:y,borderRadius:n})},Z0={name:"Card",common:Xn,self:Y0},tf=Z0,J0=D([xe("card",` font-size: var(--n-font-size); line-height: var(--n-line-height); display: flex; @@ -405,10 +405,10 @@ ${t} background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[Jc({background:"var(--n-color-modal)"}),de("hoverable",[D("&:hover","box-shadow: var(--n-box-shadow);")]),de("content-segmented",[D(">",[X("content",{paddingTop:"var(--n-padding-bottom)"})])]),de("content-soft-segmented",[D(">",[X("content",` + `,[Qc({background:"var(--n-color-modal)"}),de("hoverable",[D("&:hover","box-shadow: var(--n-box-shadow);")]),de("content-segmented",[D(">",[G("content",{paddingTop:"var(--n-padding-bottom)"})])]),de("content-soft-segmented",[D(">",[G("content",` margin: 0 var(--n-padding-left); padding: var(--n-padding-bottom) 0; - `)])]),de("footer-segmented",[D(">",[X("footer",{paddingTop:"var(--n-padding-bottom)"})])]),de("footer-soft-segmented",[D(">",[X("footer",` + `)])]),de("footer-segmented",[D(">",[G("footer",{paddingTop:"var(--n-padding-bottom)"})])]),de("footer-soft-segmented",[D(">",[G("footer",` padding: var(--n-padding-bottom) 0; margin: 0 var(--n-padding-left); `)])]),D(">",[xe("card-header",` @@ -421,36 +421,36 @@ ${t} var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - `,[X("main",` + `,[G("main",` font-weight: var(--n-title-font-weight); transition: color .3s var(--n-bezier); flex: 1; min-width: 0; color: var(--n-title-text-color); - `),X("extra",` + `),G("extra",` display: flex; align-items: center; font-size: var(--n-font-size); font-weight: 400; transition: color .3s var(--n-bezier); color: var(--n-text-color); - `),X("close",` + `),G("close",` margin: 0 0 0 8px; transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `)]),X("action",` + `)]),G("action",` box-sizing: border-box; transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); background-clip: padding-box; background-color: var(--n-action-color); - `),X("content","flex: 1; min-width: 0;"),X("content, footer",` + `),G("content","flex: 1; min-width: 0;"),G("content, footer",` box-sizing: border-box; padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); font-size: var(--n-font-size); - `,[D("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),X("action",` + `,[D("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),G("action",` background-color: var(--n-action-color); padding: var(--n-padding-bottom) var(--n-padding-left); border-bottom-left-radius: var(--n-border-radius); @@ -464,9 +464,9 @@ ${t} width: 100%; `)]),de("bordered",` border: 1px solid var(--n-border-color); - `,[D("&:target","border-color: var(--n-color-target);")]),de("action-segmented",[D(">",[X("action",[D("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),de("content-segmented, content-soft-segmented",[D(">",[X("content",{transition:"border-color 0.3s var(--n-bezier)"},[D("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),de("footer-segmented, footer-soft-segmented",[D(">",[X("footer",{transition:"border-color 0.3s var(--n-bezier)"},[D("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),de("embedded",` + `,[D("&:target","border-color: var(--n-color-target);")]),de("action-segmented",[D(">",[G("action",[D("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),de("content-segmented, content-soft-segmented",[D(">",[G("content",{transition:"border-color 0.3s var(--n-bezier)"},[D("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),de("footer-segmented, footer-soft-segmented",[D(">",[G("footer",{transition:"border-color 0.3s var(--n-bezier)"},[D("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),de("embedded",` background-color: var(--n-color-embedded); - `)]),Zc(xe("card",` + `)]),Jc(xe("card",` background: var(--n-color-modal); `,[de("embedded",` background-color: var(--n-color-embedded-modal); @@ -474,7 +474,7 @@ ${t} background: var(--n-color-popover); `,[de("embedded",` background-color: var(--n-color-embedded-popover); - `)]))]),Ss={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},Q0=hs(Ss),ey=Object.assign(Object.assign({},nt.props),Ss),ty=$e({name:"Card",props:ey,setup(e){const t=()=>{const{onClose:c}=e;c&&cn(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=Cn(e),i=nt("Card","-card",J0,ef,e,r),s=Lo("Card",o,r),l=q(()=>{const{size:c}=e,{self:{color:u,colorModal:f,colorTarget:d,textColor:v,titleTextColor:p,titleFontWeight:w,borderColor:y,actionColor:m,borderRadius:S,lineHeight:F,closeIconColor:_,closeIconColorHover:P,closeIconColorPressed:k,closeColorHover:b,closeColorPressed:C,closeBorderRadius:T,closeIconSize:L,closeSize:N,boxShadow:A,colorPopover:ee,colorEmbedded:se,colorEmbeddedModal:ae,colorEmbeddedPopover:V,[re("padding",c)]:K,[re("fontSize",c)]:ne,[re("titleFontSize",c)]:Ce},common:{cubicBezierEaseInOut:we}}=i.value,{top:Se,left:Te,bottom:rt}=dp(K);return{"--n-bezier":we,"--n-border-radius":S,"--n-color":u,"--n-color-modal":f,"--n-color-popover":ee,"--n-color-embedded":se,"--n-color-embedded-modal":ae,"--n-color-embedded-popover":V,"--n-color-target":d,"--n-text-color":v,"--n-line-height":F,"--n-action-color":m,"--n-title-text-color":p,"--n-title-font-weight":w,"--n-close-icon-color":_,"--n-close-icon-color-hover":P,"--n-close-icon-color-pressed":k,"--n-close-color-hover":b,"--n-close-color-pressed":C,"--n-border-color":y,"--n-box-shadow":A,"--n-padding-top":Se,"--n-padding-bottom":rt,"--n-padding-left":Te,"--n-font-size":ne,"--n-title-font-size":Ce,"--n-close-size":N,"--n-close-icon-size":L,"--n-close-border-radius":T}}),a=n?Gn("card",q(()=>e.size[0]),l,e):void 0;return{rtlEnabled:s,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:s,tag:l,$slots:a}=this;return i==null||i(),$(l,{class:[`${r}-card`,this.themeClass,s&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},yt(a.cover,c=>c&&$("div",{class:`${r}-card-cover`,role:"none"},c)),yt(a.header,c=>c||this.title||this.closable?$("div",{class:`${r}-card-header`,style:this.headerStyle},$("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),yt(a["header-extra"],u=>u&&$("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},u)),this.closable?$(ws,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),yt(a.default,c=>c&&$("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},c)),yt(a.footer,c=>c&&[$("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},c)]),yt(a.action,c=>c&&$("div",{class:`${r}-card__action`,role:"none"},c)))}}),ny={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(po("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},ry=$e({name:"ConfigProvider",alias:["App"],props:ny,setup(e){const t=ze(vn,null),n=q(()=>{const{theme:p}=e;if(p===null)return;const w=t==null?void 0:t.mergedThemeRef.value;return p===void 0?w:w===void 0?p:Object.assign({},w,p)}),r=q(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const w=t==null?void 0:t.mergedThemeOverridesRef.value;return w===void 0?p:sr({},w,p)}}}),o=$i(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=$i(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),s=q(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),l=q(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),a=q(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t==null?void 0:t.mergedClsPrefixRef.value}),c=q(()=>{var p;const{rtl:w}=e;if(w===void 0)return t==null?void 0:t.mergedRtlRef.value;const y={};for(const m of w)y[m.name]=kn(m),(p=m.peers)===null||p===void 0||p.forEach(S=>{S.name in y||(y[S.name]=kn(S))});return y}),u=q(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),d=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),v=q(()=>{const{value:p}=n,{value:w}=r,y=w&&Object.keys(w).length!==0,m=p==null?void 0:p.name;return m?y?`${m}-${Rr(JSON.stringify(r.value))}`:m:y?Rr(JSON.stringify(r.value)):""});return qe(vn,{mergedThemeHashRef:v,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:s,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:a,mergedLocaleRef:q(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:q(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:q(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:q(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:d||!1}),{mergedClsPrefix:a,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):$(this.as||this.tag,{class:`${this.mergedClsPrefix||Wu}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),oy={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},iy=e=>{const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:s,closeColorHover:l,closeColorPressed:a,infoColor:c,successColor:u,warningColor:f,errorColor:d,primaryColor:v,dividerColor:p,borderRadius:w,fontWeightStrong:y,lineHeight:m,fontSize:S}=e;return Object.assign(Object.assign({},oy),{fontSize:S,lineHeight:m,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:a,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:s,closeBorderRadius:w,iconColor:v,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:d,borderRadius:w,titleFontWeight:y})},sy={name:"Dialog",common:Xn,peers:{Button:Qu},self:iy},tf=sy,jo={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},nf=hs(jo),ly=D([xe("dialog",` + `)]))]),Ss={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},Q0=hs(Ss),ey=Object.assign(Object.assign({},nt.props),Ss),ty=$e({name:"Card",props:ey,setup(e){const t=()=>{const{onClose:c}=e;c&&an(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=Cn(e),i=nt("Card","-card",J0,tf,e,r),s=Lo("Card",o,r),l=X(()=>{const{size:c}=e,{self:{color:u,colorModal:f,colorTarget:d,textColor:v,titleTextColor:p,titleFontWeight:w,borderColor:y,actionColor:m,borderRadius:S,lineHeight:F,closeIconColor:_,closeIconColorHover:P,closeIconColorPressed:k,closeColorHover:b,closeColorPressed:C,closeBorderRadius:R,closeIconSize:L,closeSize:N,boxShadow:A,colorPopover:ee,colorEmbedded:se,colorEmbeddedModal:ae,colorEmbeddedPopover:V,[re("padding",c)]:K,[re("fontSize",c)]:ne,[re("titleFontSize",c)]:Ce},common:{cubicBezierEaseInOut:we}}=i.value,{top:Se,left:Te,bottom:rt}=dp(K);return{"--n-bezier":we,"--n-border-radius":S,"--n-color":u,"--n-color-modal":f,"--n-color-popover":ee,"--n-color-embedded":se,"--n-color-embedded-modal":ae,"--n-color-embedded-popover":V,"--n-color-target":d,"--n-text-color":v,"--n-line-height":F,"--n-action-color":m,"--n-title-text-color":p,"--n-title-font-weight":w,"--n-close-icon-color":_,"--n-close-icon-color-hover":P,"--n-close-icon-color-pressed":k,"--n-close-color-hover":b,"--n-close-color-pressed":C,"--n-border-color":y,"--n-box-shadow":A,"--n-padding-top":Se,"--n-padding-bottom":rt,"--n-padding-left":Te,"--n-font-size":ne,"--n-title-font-size":Ce,"--n-close-size":N,"--n-close-icon-size":L,"--n-close-border-radius":R}}),a=n?Gn("card",X(()=>e.size[0]),l,e):void 0;return{rtlEnabled:s,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:s,tag:l,$slots:a}=this;return i==null||i(),$(l,{class:[`${r}-card`,this.themeClass,s&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},yt(a.cover,c=>c&&$("div",{class:`${r}-card-cover`,role:"none"},c)),yt(a.header,c=>c||this.title||this.closable?$("div",{class:`${r}-card-header`,style:this.headerStyle},$("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),yt(a["header-extra"],u=>u&&$("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},u)),this.closable?$(ws,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),yt(a.default,c=>c&&$("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},c)),yt(a.footer,c=>c&&[$("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},c)]),yt(a.action,c=>c&&$("div",{class:`${r}-card__action`,role:"none"},c)))}}),ny={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(po("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},ry=$e({name:"ConfigProvider",alias:["App"],props:ny,setup(e){const t=ze(gn,null),n=X(()=>{const{theme:p}=e;if(p===null)return;const w=t==null?void 0:t.mergedThemeRef.value;return p===void 0?w:w===void 0?p:Object.assign({},w,p)}),r=X(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const w=t==null?void 0:t.mergedThemeOverridesRef.value;return w===void 0?p:sr({},w,p)}}}),o=$i(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=$i(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),s=X(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),l=X(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),a=X(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t==null?void 0:t.mergedClsPrefixRef.value}),c=X(()=>{var p;const{rtl:w}=e;if(w===void 0)return t==null?void 0:t.mergedRtlRef.value;const y={};for(const m of w)y[m.name]=kn(m),(p=m.peers)===null||p===void 0||p.forEach(S=>{S.name in y||(y[S.name]=kn(S))});return y}),u=X(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),d=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),v=X(()=>{const{value:p}=n,{value:w}=r,y=w&&Object.keys(w).length!==0,m=p==null?void 0:p.name;return m?y?`${m}-${Rr(JSON.stringify(r.value))}`:m:y?Rr(JSON.stringify(r.value)):""});return qe(gn,{mergedThemeHashRef:v,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:s,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:a,mergedLocaleRef:X(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:X(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:X(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:X(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:d||!1}),{mergedClsPrefix:a,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):$(this.as||this.tag,{class:`${this.mergedClsPrefix||Uu}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),oy={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},iy=e=>{const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:s,closeColorHover:l,closeColorPressed:a,infoColor:c,successColor:u,warningColor:f,errorColor:d,primaryColor:v,dividerColor:p,borderRadius:w,fontWeightStrong:y,lineHeight:m,fontSize:S}=e;return Object.assign(Object.assign({},oy),{fontSize:S,lineHeight:m,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:a,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:s,closeBorderRadius:w,iconColor:v,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:d,borderRadius:w,titleFontWeight:y})},sy={name:"Dialog",common:Xn,peers:{Button:ef},self:iy},nf=sy,jo={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},rf=hs(jo),ly=D([xe("dialog",` word-break: break-word; line-height: var(--n-line-height); position: relative; @@ -488,9 +488,9 @@ ${t} border-color .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `,[X("icon",{color:"var(--n-icon-color)"}),de("bordered",{border:"var(--n-border)"}),de("icon-top",[X("close",{margin:"var(--n-close-margin)"}),X("icon",{margin:"var(--n-icon-margin)"}),X("content",{textAlign:"center"}),X("title",{justifyContent:"center"}),X("action",{justifyContent:"center"})]),de("icon-left",[X("icon",{margin:"var(--n-icon-margin)"}),de("closable",[X("title",` + `,[G("icon",{color:"var(--n-icon-color)"}),de("bordered",{border:"var(--n-border)"}),de("icon-top",[G("close",{margin:"var(--n-close-margin)"}),G("icon",{margin:"var(--n-icon-margin)"}),G("content",{textAlign:"center"}),G("title",{justifyContent:"center"}),G("action",{justifyContent:"center"})]),de("icon-left",[G("icon",{margin:"var(--n-icon-margin)"}),de("closable",[G("title",` padding-right: calc(var(--n-close-size) + 6px); - `)])]),X("close",` + `)])]),G("close",` position: absolute; right: 0; top: 0; @@ -499,28 +499,28 @@ ${t} background-color .3s var(--n-bezier), color .3s var(--n-bezier); z-index: 1; - `),X("content",` + `),G("content",` font-size: var(--n-font-size); margin: var(--n-content-margin); position: relative; word-break: break-word; - `,[de("last","margin-bottom: 0;")]),X("action",` + `,[de("last","margin-bottom: 0;")]),G("action",` display: flex; justify-content: flex-end; - `,[D("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),X("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),X("title",` + `,[D("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),G("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),G("title",` transition: color .3s var(--n-bezier); display: flex; align-items: center; font-size: var(--n-title-font-size); font-weight: var(--n-title-font-weight); color: var(--n-title-text-color); - `),xe("dialog-icon-container",{display:"flex",justifyContent:"center"})]),Zc(xe("dialog",` + `),xe("dialog-icon-container",{display:"flex",justifyContent:"center"})]),Jc(xe("dialog",` width: 446px; max-width: calc(100vw - 32px); - `)),xe("dialog",[Jc(` + `)),xe("dialog",[Qc(` width: 446px; max-width: calc(100vw - 32px); - `)])]),ay={default:()=>$(Ai,null),info:()=>$(Ai,null),success:()=>$(Ku,null),warning:()=>$(Vu,null),error:()=>$(Uu,null)},rf=$e({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},nt.props),jo),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=Cn(e),o=q(()=>{var f,d;const{iconPlacement:v}=e;return v||((d=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||d===void 0?void 0:d.iconPlacement)||"left"});function i(f){const{onPositiveClick:d}=e;d&&d(f)}function s(f){const{onNegativeClick:d}=e;d&&d(f)}function l(){const{onClose:f}=e;f&&f()}const a=nt("Dialog","-dialog",ly,tf,e,n),c=q(()=>{const{type:f}=e,d=o.value,{common:{cubicBezierEaseInOut:v},self:{fontSize:p,lineHeight:w,border:y,titleTextColor:m,textColor:S,color:F,closeBorderRadius:_,closeColorHover:P,closeColorPressed:k,closeIconColor:b,closeIconColorHover:C,closeIconColorPressed:T,closeIconSize:L,borderRadius:N,titleFontWeight:A,titleFontSize:ee,padding:se,iconSize:ae,actionSpace:V,contentMargin:K,closeSize:ne,[d==="top"?"iconMarginIconTop":"iconMargin"]:Ce,[d==="top"?"closeMarginIconTop":"closeMargin"]:we,[re("iconColor",f)]:Se}}=a.value;return{"--n-font-size":p,"--n-icon-color":Se,"--n-bezier":v,"--n-close-margin":we,"--n-icon-margin":Ce,"--n-icon-size":ae,"--n-close-size":ne,"--n-close-icon-size":L,"--n-close-border-radius":_,"--n-close-color-hover":P,"--n-close-color-pressed":k,"--n-close-icon-color":b,"--n-close-icon-color-hover":C,"--n-close-icon-color-pressed":T,"--n-color":F,"--n-text-color":S,"--n-border-radius":N,"--n-padding":se,"--n-line-height":w,"--n-border":y,"--n-content-margin":K,"--n-title-font-size":ee,"--n-title-font-weight":A,"--n-title-text-color":m,"--n-action-space":V}}),u=r?Gn("dialog",q(()=>`${e.type[0]}${o.value[0]}`),c,e):void 0;return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:a,handlePositiveClick:i,handleNegativeClick:s,handleCloseClick:l,cssVars:r?void 0:c,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:s,content:l,action:a,negativeText:c,positiveText:u,positiveButtonProps:f,negativeButtonProps:d,handlePositiveClick:v,handleNegativeClick:p,mergedTheme:w,loading:y,type:m,mergedClsPrefix:S}=this;(e=this.onRender)===null||e===void 0||e.call(this);const F=i?$(Cs,{clsPrefix:S,class:`${S}-dialog__icon`},{default:()=>yt(this.$slots.icon,P=>P||(this.icon?en(this.icon):ay[this.type]()))}):null,_=yt(this.$slots.action,P=>P||u||c||a?$("div",{class:`${S}-dialog__action`},P||(a?[en(a)]:[this.negativeText&&$(ha,Object.assign({theme:w.peers.Button,themeOverrides:w.peerOverrides.Button,ghost:!0,size:"small",onClick:p},d),{default:()=>en(this.negativeText)}),this.positiveText&&$(ha,Object.assign({theme:w.peers.Button,themeOverrides:w.peerOverrides.Button,size:"small",type:m==="default"?"primary":m,disabled:y,loading:y,onClick:v},f),{default:()=>en(this.positiveText)})])):null);return $("div",{class:[`${S}-dialog`,this.themeClass,this.closable&&`${S}-dialog--closable`,`${S}-dialog--icon-${n}`,t&&`${S}-dialog--bordered`],style:r,role:"dialog"},o?$(ws,{clsPrefix:S,class:`${S}-dialog__close`,onClick:this.handleCloseClick}):null,i&&n==="top"?$("div",{class:`${S}-dialog-icon-container`},F):null,$("div",{class:`${S}-dialog__title`},i&&n==="left"?F:null,vl(this.$slots.header,()=>[en(s)])),$("div",{class:[`${S}-dialog__content`,_?"":`${S}-dialog__content--last`]},vl(this.$slots.default,()=>[en(l)])),_)}}),of="n-dialog-provider",cy="n-dialog-api",uy="n-dialog-reactive-list",fy=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},dy={name:"Modal",common:Xn,peers:{Scrollbar:Yu,Dialog:tf,Card:ef},self:fy},hy=dy,_s=Object.assign(Object.assign({},Ss),jo),py=hs(_s),gy=$e({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},_s),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=oe(null),n=oe(null),r=oe(e.show),o=oe(null),i=oe(null);ut(zt(e,"show"),y=>{y&&(r.value=!0)}),jg(q(()=>e.blockScroll&&r.value));const s=ze(iu);function l(){if(s.transformOriginRef.value==="center")return"";const{value:y}=o,{value:m}=i;if(y===null||m===null)return"";if(n.value){const S=n.value.containerScrollTop;return`${y}px ${m+S}px`}return""}function a(y){if(s.transformOriginRef.value==="center")return;const m=s.getMousePosition();if(!m||!n.value)return;const S=n.value.containerScrollTop,{offsetLeft:F,offsetTop:_}=y;if(m){const P=m.y,k=m.x;o.value=-(F-k),i.value=-(_-P-S)}y.style.transformOrigin=l()}function c(y){Bn(()=>{a(y)})}function u(y){y.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function d(){const{onClose:y}=e;y&&y()}function v(){e.onNegativeClick()}function p(){e.onPositiveClick()}const w=oe(null);return ut(w,y=>{y&&Bn(()=>{const m=y.el;m&&t.value!==m&&(t.value=m)})}),qe(rg,t),qe(og,null),qe(ig,null),{mergedTheme:s.mergedThemeRef,appear:s.appearRef,isMounted:s.isMountedRef,mergedClsPrefix:s.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:w,handlePositiveClick:p,handleNegativeClick:v,handleCloseClick:d,handleAfterLeave:f,handleBeforeLeave:u,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:o,preset:i,mergedClsPrefix:s}=this;let l=null;if(!i){if(l=wp(e),!l){po("modal","default slot is empty");return}l=It(l),l.props=as({class:`${s}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?fi($("div",{role:"none",class:`${s}-modal-body-wrapper`},$(I0,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${s}-modal-scroll-content`},{default:()=>{var a;return[(a=this.renderMask)===null||a===void 0?void 0:a.call(this),$(Lg,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return $(qt,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:o},{default:()=>{const u=[[cl,this.show]],{onClickoutside:f}=this;return f&&u.push([lg,this.onClickoutside,void 0,{capture:!0}]),fi(this.preset==="confirm"||this.preset==="dialog"?$(rf,Object.assign({},this.$attrs,{class:[`${s}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},ho(this.$props,nf),{"aria-modal":"true"}),e):this.preset==="card"?$(ty,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${s}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},ho(this.$props,Q0),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,u)}})}})]}})),[[cl,this.displayDirective==="if"||this.displayed||this.show]]):null}}),vy=D([xe("modal-container",` + `)])]),ay={default:()=>$(Ai,null),info:()=>$(Ai,null),success:()=>$(Vu,null),warning:()=>$(qu,null),error:()=>$(Ku,null)},of=$e({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},nt.props),jo),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=Cn(e),o=X(()=>{var f,d;const{iconPlacement:v}=e;return v||((d=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||d===void 0?void 0:d.iconPlacement)||"left"});function i(f){const{onPositiveClick:d}=e;d&&d(f)}function s(f){const{onNegativeClick:d}=e;d&&d(f)}function l(){const{onClose:f}=e;f&&f()}const a=nt("Dialog","-dialog",ly,nf,e,n),c=X(()=>{const{type:f}=e,d=o.value,{common:{cubicBezierEaseInOut:v},self:{fontSize:p,lineHeight:w,border:y,titleTextColor:m,textColor:S,color:F,closeBorderRadius:_,closeColorHover:P,closeColorPressed:k,closeIconColor:b,closeIconColorHover:C,closeIconColorPressed:R,closeIconSize:L,borderRadius:N,titleFontWeight:A,titleFontSize:ee,padding:se,iconSize:ae,actionSpace:V,contentMargin:K,closeSize:ne,[d==="top"?"iconMarginIconTop":"iconMargin"]:Ce,[d==="top"?"closeMarginIconTop":"closeMargin"]:we,[re("iconColor",f)]:Se}}=a.value;return{"--n-font-size":p,"--n-icon-color":Se,"--n-bezier":v,"--n-close-margin":we,"--n-icon-margin":Ce,"--n-icon-size":ae,"--n-close-size":ne,"--n-close-icon-size":L,"--n-close-border-radius":_,"--n-close-color-hover":P,"--n-close-color-pressed":k,"--n-close-icon-color":b,"--n-close-icon-color-hover":C,"--n-close-icon-color-pressed":R,"--n-color":F,"--n-text-color":S,"--n-border-radius":N,"--n-padding":se,"--n-line-height":w,"--n-border":y,"--n-content-margin":K,"--n-title-font-size":ee,"--n-title-font-weight":A,"--n-title-text-color":m,"--n-action-space":V}}),u=r?Gn("dialog",X(()=>`${e.type[0]}${o.value[0]}`),c,e):void 0;return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:a,handlePositiveClick:i,handleNegativeClick:s,handleCloseClick:l,cssVars:r?void 0:c,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:s,content:l,action:a,negativeText:c,positiveText:u,positiveButtonProps:f,negativeButtonProps:d,handlePositiveClick:v,handleNegativeClick:p,mergedTheme:w,loading:y,type:m,mergedClsPrefix:S}=this;(e=this.onRender)===null||e===void 0||e.call(this);const F=i?$(Cs,{clsPrefix:S,class:`${S}-dialog__icon`},{default:()=>yt(this.$slots.icon,P=>P||(this.icon?Qt(this.icon):ay[this.type]()))}):null,_=yt(this.$slots.action,P=>P||u||c||a?$("div",{class:`${S}-dialog__action`},P||(a?[Qt(a)]:[this.negativeText&&$(ha,Object.assign({theme:w.peers.Button,themeOverrides:w.peerOverrides.Button,ghost:!0,size:"small",onClick:p},d),{default:()=>Qt(this.negativeText)}),this.positiveText&&$(ha,Object.assign({theme:w.peers.Button,themeOverrides:w.peerOverrides.Button,size:"small",type:m==="default"?"primary":m,disabled:y,loading:y,onClick:v},f),{default:()=>Qt(this.positiveText)})])):null);return $("div",{class:[`${S}-dialog`,this.themeClass,this.closable&&`${S}-dialog--closable`,`${S}-dialog--icon-${n}`,t&&`${S}-dialog--bordered`],style:r,role:"dialog"},o?$(ws,{clsPrefix:S,class:`${S}-dialog__close`,onClick:this.handleCloseClick}):null,i&&n==="top"?$("div",{class:`${S}-dialog-icon-container`},F):null,$("div",{class:`${S}-dialog__title`},i&&n==="left"?F:null,vl(this.$slots.header,()=>[Qt(s)])),$("div",{class:[`${S}-dialog__content`,_?"":`${S}-dialog__content--last`]},vl(this.$slots.default,()=>[Qt(l)])),_)}}),sf="n-dialog-provider",cy="n-dialog-api",uy="n-dialog-reactive-list",fy=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},dy={name:"Modal",common:Xn,peers:{Scrollbar:Zu,Dialog:nf,Card:tf},self:fy},hy=dy,_s=Object.assign(Object.assign({},Ss),jo),py=hs(_s),gy=$e({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},_s),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=oe(null),n=oe(null),r=oe(e.show),o=oe(null),i=oe(null);ut(zt(e,"show"),y=>{y&&(r.value=!0)}),jg(X(()=>e.blockScroll&&r.value));const s=ze(su);function l(){if(s.transformOriginRef.value==="center")return"";const{value:y}=o,{value:m}=i;if(y===null||m===null)return"";if(n.value){const S=n.value.containerScrollTop;return`${y}px ${m+S}px`}return""}function a(y){if(s.transformOriginRef.value==="center")return;const m=s.getMousePosition();if(!m||!n.value)return;const S=n.value.containerScrollTop,{offsetLeft:F,offsetTop:_}=y;if(m){const P=m.y,k=m.x;o.value=-(F-k),i.value=-(_-P-S)}y.style.transformOrigin=l()}function c(y){Bn(()=>{a(y)})}function u(y){y.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function d(){const{onClose:y}=e;y&&y()}function v(){e.onNegativeClick()}function p(){e.onPositiveClick()}const w=oe(null);return ut(w,y=>{y&&Bn(()=>{const m=y.el;m&&t.value!==m&&(t.value=m)})}),qe(rg,t),qe(og,null),qe(ig,null),{mergedTheme:s.mergedThemeRef,appear:s.appearRef,isMounted:s.isMountedRef,mergedClsPrefix:s.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:w,handlePositiveClick:p,handleNegativeClick:v,handleCloseClick:d,handleAfterLeave:f,handleBeforeLeave:u,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:o,preset:i,mergedClsPrefix:s}=this;let l=null;if(!i){if(l=wp(e),!l){po("modal","default slot is empty");return}l=It(l),l.props=as({class:`${s}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?fi($("div",{role:"none",class:`${s}-modal-body-wrapper`},$(I0,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${s}-modal-scroll-content`},{default:()=>{var a;return[(a=this.renderMask)===null||a===void 0?void 0:a.call(this),$(Lg,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return $(qt,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:o},{default:()=>{const u=[[cl,this.show]],{onClickoutside:f}=this;return f&&u.push([lg,this.onClickoutside,void 0,{capture:!0}]),fi(this.preset==="confirm"||this.preset==="dialog"?$(of,Object.assign({},this.$attrs,{class:[`${s}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},ho(this.$props,rf),{"aria-modal":"true"}),e):this.preset==="card"?$(ty,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${s}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},ho(this.$props,Q0),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,u)}})}})]}})),[[cl,this.displayDirective==="if"||this.displayed||this.show]]):null}}),vy=D([xe("modal-container",` position: fixed; left: 0; top: 0; @@ -534,7 +534,7 @@ ${t} top: 0; bottom: 0; background-color: rgba(0, 0, 0, .4); - `,[Zu({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),xe("modal-body-wrapper",` + `,[Ju({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),xe("modal-body-wrapper",` position: fixed; left: 0; right: 0; @@ -551,7 +551,7 @@ ${t} color: var(--n-text-color); margin: auto; box-shadow: var(--n-box-shadow); - `,[A0({duration:".25s",enterScale:".5"})])]),my=Object.assign(Object.assign(Object.assign(Object.assign({},nt.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),_s),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),by=$e({name:"Modal",inheritAttrs:!1,props:my,setup(e){const t=oe(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=Cn(e),i=nt("Modal","-modal",vy,hy,e,n),s=ru(64),l=nu(),a=ou(),c=e.internalDialog?ze(of,null):null,u=Dg();function f(P){const{onUpdateShow:k,"onUpdate:show":b,onHide:C}=e;k&&cn(k,P),b&&cn(b,P),C&&!P&&C(P)}function d(){const{onClose:P}=e;P?Promise.resolve(P()).then(k=>{k!==!1&&f(!1)}):f(!1)}function v(){const{onPositiveClick:P}=e;P?Promise.resolve(P()).then(k=>{k!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:P}=e;P?Promise.resolve(P()).then(k=>{k!==!1&&f(!1)}):f(!1)}function w(){const{onBeforeLeave:P,onBeforeHide:k}=e;P&&cn(P),k&&k()}function y(){const{onAfterLeave:P,onAfterHide:k}=e;P&&cn(P),k&&k()}function m(P){var k;const{onMaskClick:b}=e;b&&b(P),e.maskClosable&&!((k=t.value)===null||k===void 0)&&k.contains(us(P))&&f(!1)}function S(P){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&qp(P)&&!u.value&&f(!1)}qe(iu,{getMousePosition:()=>{if(c){const{clickedRef:P,clickPositionRef:k}=c;if(P.value&&k.value)return k.value}return s.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:a,appearRef:zt(e,"internalAppear"),transformOriginRef:zt(e,"transformOrigin")});const F=q(()=>{const{common:{cubicBezierEaseOut:P},self:{boxShadow:k,color:b,textColor:C}}=i.value;return{"--n-bezier-ease-out":P,"--n-box-shadow":k,"--n-color":b,"--n-text-color":C}}),_=o?Gn("theme-class",void 0,F,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:a,containerRef:t,presetProps:q(()=>ho(e,py)),handleEsc:S,handleAfterLeave:y,handleClickoutside:m,handleBeforeLeave:w,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:v,handleCloseClick:d,cssVars:o?void 0:F,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedClsPrefix:e}=this;return $(gg,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return fi($("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},$(gy,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return $(qt,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?$("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[fg,{zIndex:this.zIndex,enabled:this.show}]])}})}}),yy=Object.assign(Object.assign({},jo),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),xy=$e({name:"DialogEnvironment",props:Object.assign(Object.assign({},yy),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=oe(!0);function n(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:d}=e;u&&u(f),d&&d()}function r(u){const{onPositiveClick:f}=e;f?Promise.resolve(f(u)).then(d=>{d!==!1&&a()}):a()}function o(u){const{onNegativeClick:f}=e;f?Promise.resolve(f(u)).then(d=>{d!==!1&&a()}):a()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&a()}):a()}function s(u){const{onMaskClick:f,maskClosable:d}=e;f&&(f(u),d&&a())}function l(){const{onEsc:u}=e;u&&u()}function a(){t.value=!1}function c(u){t.value=u}return{show:t,hide:a,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:s,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:s,to:l,maskClosable:a,show:c}=this;return $(by,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:s,to:l,maskClosable:a,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>$(rf,Object.assign({},ho(this.$props,nf),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),Cy={injectionKey:String,to:[String,Object]},wy=$e({name:"DialogProvider",props:Cy,setup(){const e=oe([]),t={};function n(l={}){const a=ds(),c=Gt(Object.assign(Object.assign({},l),{key:a,destroy:()=>{t[`n-dialog-${a}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>a=>n(Object.assign(Object.assign({},a),{type:l})));function o(l){const{value:a}=e;a.splice(a.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>{l.hide()})}const s={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return qe(cy,s),qe(of,{clickedRef:ru(64),clickPositionRef:nu()}),qe(uy,e),Object.assign(Object.assign({},s),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return $(Me,null,[this.dialogList.map(n=>$(xy,Uc(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}}),Sy={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},_y=e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:s,errorColor:l,warningColor:a,popoverColor:c,boxShadow2:u,primaryColor:f,lineHeight:d,borderRadius:v,closeColorHover:p,closeColorPressed:w}=e;return Object.assign(Object.assign({},Sy),{closeBorderRadius:v,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:s,iconColorWarning:a,iconColorError:l,iconColorLoading:f,closeColorHover:p,closeColorPressed:w,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:w,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:w,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:w,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:w,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:w,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:d,borderRadius:v})},$y={name:"Message",common:Xn,self:_y},Ey=$y,sf={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},Py="n-message-api",lf="n-message-provider",Ry=D([xe("message-wrapper",` + `,[A0({duration:".25s",enterScale:".5"})])]),my=Object.assign(Object.assign(Object.assign(Object.assign({},nt.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),_s),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),by=$e({name:"Modal",inheritAttrs:!1,props:my,setup(e){const t=oe(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=Cn(e),i=nt("Modal","-modal",vy,hy,e,n),s=ou(64),l=ru(),a=iu(),c=e.internalDialog?ze(sf,null):null,u=Dg();function f(P){const{onUpdateShow:k,"onUpdate:show":b,onHide:C}=e;k&&an(k,P),b&&an(b,P),C&&!P&&C(P)}function d(){const{onClose:P}=e;P?Promise.resolve(P()).then(k=>{k!==!1&&f(!1)}):f(!1)}function v(){const{onPositiveClick:P}=e;P?Promise.resolve(P()).then(k=>{k!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:P}=e;P?Promise.resolve(P()).then(k=>{k!==!1&&f(!1)}):f(!1)}function w(){const{onBeforeLeave:P,onBeforeHide:k}=e;P&&an(P),k&&k()}function y(){const{onAfterLeave:P,onAfterHide:k}=e;P&&an(P),k&&k()}function m(P){var k;const{onMaskClick:b}=e;b&&b(P),e.maskClosable&&!((k=t.value)===null||k===void 0)&&k.contains(us(P))&&f(!1)}function S(P){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&qp(P)&&!u.value&&f(!1)}qe(su,{getMousePosition:()=>{if(c){const{clickedRef:P,clickPositionRef:k}=c;if(P.value&&k.value)return k.value}return s.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:a,appearRef:zt(e,"internalAppear"),transformOriginRef:zt(e,"transformOrigin")});const F=X(()=>{const{common:{cubicBezierEaseOut:P},self:{boxShadow:k,color:b,textColor:C}}=i.value;return{"--n-bezier-ease-out":P,"--n-box-shadow":k,"--n-color":b,"--n-text-color":C}}),_=o?Gn("theme-class",void 0,F,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:a,containerRef:t,presetProps:X(()=>ho(e,py)),handleEsc:S,handleAfterLeave:y,handleClickoutside:m,handleBeforeLeave:w,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:v,handleCloseClick:d,cssVars:o?void 0:F,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedClsPrefix:e}=this;return $(gg,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return fi($("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},$(gy,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return $(qt,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?$("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[fg,{zIndex:this.zIndex,enabled:this.show}]])}})}}),yy=Object.assign(Object.assign({},jo),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),xy=$e({name:"DialogEnvironment",props:Object.assign(Object.assign({},yy),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=oe(!0);function n(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:d}=e;u&&u(f),d&&d()}function r(u){const{onPositiveClick:f}=e;f?Promise.resolve(f(u)).then(d=>{d!==!1&&a()}):a()}function o(u){const{onNegativeClick:f}=e;f?Promise.resolve(f(u)).then(d=>{d!==!1&&a()}):a()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&a()}):a()}function s(u){const{onMaskClick:f,maskClosable:d}=e;f&&(f(u),d&&a())}function l(){const{onEsc:u}=e;u&&u()}function a(){t.value=!1}function c(u){t.value=u}return{show:t,hide:a,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:s,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:s,to:l,maskClosable:a,show:c}=this;return $(by,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:s,to:l,maskClosable:a,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>$(of,Object.assign({},ho(this.$props,rf),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),Cy={injectionKey:String,to:[String,Object]},wy=$e({name:"DialogProvider",props:Cy,setup(){const e=oe([]),t={};function n(l={}){const a=ds(),c=mn(Object.assign(Object.assign({},l),{key:a,destroy:()=>{t[`n-dialog-${a}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>a=>n(Object.assign(Object.assign({},a),{type:l})));function o(l){const{value:a}=e;a.splice(a.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>{l.hide()})}const s={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return qe(cy,s),qe(sf,{clickedRef:ou(64),clickPositionRef:ru()}),qe(uy,e),Object.assign(Object.assign({},s),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return $(Me,null,[this.dialogList.map(n=>$(xy,Kc(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}}),Sy={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},_y=e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:s,errorColor:l,warningColor:a,popoverColor:c,boxShadow2:u,primaryColor:f,lineHeight:d,borderRadius:v,closeColorHover:p,closeColorPressed:w}=e;return Object.assign(Object.assign({},Sy),{closeBorderRadius:v,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:s,iconColorWarning:a,iconColorError:l,iconColorLoading:f,closeColorHover:p,closeColorPressed:w,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:w,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:w,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:w,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:w,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:w,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:d,borderRadius:v})},$y={name:"Message",common:Xn,self:_y},Ey=$y,lf={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},Py="n-message-api",af="n-message-provider",Ry=D([xe("message-wrapper",` margin: var(--n-margin); z-index: 0; transform-origin: top center; @@ -575,11 +575,11 @@ ${t} color: var(--n-text-color); background-color: var(--n-color); box-shadow: var(--n-box-shadow); - `,[X("content",` + `,[G("content",` display: inline-block; line-height: var(--n-line-height); font-size: var(--n-font-size); - `),X("icon",` + `),G("icon",` position: relative; margin: var(--n-icon-margin); height: var(--n-icon-size); @@ -595,7 +595,7 @@ ${t} top: 0; right: 0; bottom: 0; - `,[mo()])]),X("close",` + `,[mo()])]),G("close",` margin: var(--n-close-margin); transition: background-color .3s var(--n-bezier), @@ -644,8 +644,8 @@ ${t} right: 12px; justify-content: flex-end; align-items: flex-end; - `)])]),Ty={info:()=>$(Ai,null),success:()=>$(Ku,null),warning:()=>$(Vu,null),error:()=>$(Uu,null),default:()=>null},Oy=$e({name:"Message",props:Object.assign(Object.assign({},sf),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=Cn(e),{props:r,mergedClsPrefixRef:o}=ze(lf),i=Lo("Message",n,o),s=nt("Message","-message",Ry,Ey,r,o),l=q(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:f,margin:d,maxWidth:v,iconMargin:p,closeMargin:w,closeSize:y,iconSize:m,fontSize:S,lineHeight:F,borderRadius:_,iconColorInfo:P,iconColorSuccess:k,iconColorWarning:b,iconColorError:C,iconColorLoading:T,closeIconSize:L,closeBorderRadius:N,[re("textColor",c)]:A,[re("boxShadow",c)]:ee,[re("color",c)]:se,[re("closeColorHover",c)]:ae,[re("closeColorPressed",c)]:V,[re("closeIconColor",c)]:K,[re("closeIconColorPressed",c)]:ne,[re("closeIconColorHover",c)]:Ce}}=s.value;return{"--n-bezier":u,"--n-margin":d,"--n-padding":f,"--n-max-width":v,"--n-font-size":S,"--n-icon-margin":p,"--n-icon-size":m,"--n-close-icon-size":L,"--n-close-border-radius":N,"--n-close-size":y,"--n-close-margin":w,"--n-text-color":A,"--n-color":se,"--n-box-shadow":ee,"--n-icon-color-info":P,"--n-icon-color-success":k,"--n-icon-color-warning":b,"--n-icon-color-error":C,"--n-icon-color-loading":T,"--n-close-color-hover":ae,"--n-close-color-pressed":V,"--n-close-icon-color":K,"--n-close-icon-color-pressed":ne,"--n-close-icon-color-hover":Ce,"--n-line-height":F,"--n-border-radius":_}}),a=t?Gn("message",q(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:s,onRender:l,icon:a,handleClose:c,showIcon:u}=this;l==null||l();let f;return $("div",{class:[`${o}-message-wrapper`,s],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):$("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=zy(a,t,o))&&u?$("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},$(xs,null,{default:()=>f})):null,$("div",{class:`${o}-message__content`},en(r)),n?$(ws,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function zy(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?$(Gu,{clsPrefix:n,strokeWidth:24,scale:.85}):Ty[t]();return r?$(Cs,{clsPrefix:n,key:t},{default:()=>r}):null}}const Iy=$e({name:"MessageEnvironment",props:Object.assign(Object.assign({},sf),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=oe(!0);Xt(()=>{r()});function r(){const{duration:u}=e;u&&(t=window.setTimeout(s,u))}function o(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&r()}function s(){const{onHide:u}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function l(){const{onClose:u}=e;u&&u(),s()}function a(){const{onAfterLeave:u,onInternalAfterLeave:f,onAfterHide:d,internalKey:v}=e;u&&u(),f&&f(v),d&&d()}function c(){s()}return{show:n,hide:s,handleClose:l,handleAfterLeave:a,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return $(qu,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?$(Oy,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),Ay=Object.assign(Object.assign({},nt.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),ky=$e({name:"MessageProvider",props:Ay,setup(e){const{mergedClsPrefixRef:t}=Cn(e),n=oe([]),r=oe({}),o={create(a,c){return i(a,Object.assign({type:"default"},c))},info(a,c){return i(a,Object.assign(Object.assign({},c),{type:"info"}))},success(a,c){return i(a,Object.assign(Object.assign({},c),{type:"success"}))},warning(a,c){return i(a,Object.assign(Object.assign({},c),{type:"warning"}))},error(a,c){return i(a,Object.assign(Object.assign({},c),{type:"error"}))},loading(a,c){return i(a,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};qe(lf,{props:e,mergedClsPrefixRef:t}),qe(Py,o);function i(a,c){const u=ds(),f=Gt(Object.assign(Object.assign({},c),{content:a,key:u,destroy:()=>{var v;(v=r.value[u])===null||v===void 0||v.hide()}})),{max:d}=e;return d&&n.value.length>=d&&n.value.shift(),n.value.push(f),f}function s(a){n.value.splice(n.value.findIndex(c=>c.key===a),1),delete r.value[a]}function l(){Object.values(r.value).forEach(a=>{a.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:s},o)},render(){var e,t,n;return $(Me,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?$($c,{to:(n=this.to)!==null&&n!==void 0?n:"body"},$("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>$(Iy,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Uc(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});/*! - * vue-router v4.2.2 + `)])]),Ty={info:()=>$(Ai,null),success:()=>$(Vu,null),warning:()=>$(qu,null),error:()=>$(Ku,null),default:()=>null},Oy=$e({name:"Message",props:Object.assign(Object.assign({},lf),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=Cn(e),{props:r,mergedClsPrefixRef:o}=ze(af),i=Lo("Message",n,o),s=nt("Message","-message",Ry,Ey,r,o),l=X(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:f,margin:d,maxWidth:v,iconMargin:p,closeMargin:w,closeSize:y,iconSize:m,fontSize:S,lineHeight:F,borderRadius:_,iconColorInfo:P,iconColorSuccess:k,iconColorWarning:b,iconColorError:C,iconColorLoading:R,closeIconSize:L,closeBorderRadius:N,[re("textColor",c)]:A,[re("boxShadow",c)]:ee,[re("color",c)]:se,[re("closeColorHover",c)]:ae,[re("closeColorPressed",c)]:V,[re("closeIconColor",c)]:K,[re("closeIconColorPressed",c)]:ne,[re("closeIconColorHover",c)]:Ce}}=s.value;return{"--n-bezier":u,"--n-margin":d,"--n-padding":f,"--n-max-width":v,"--n-font-size":S,"--n-icon-margin":p,"--n-icon-size":m,"--n-close-icon-size":L,"--n-close-border-radius":N,"--n-close-size":y,"--n-close-margin":w,"--n-text-color":A,"--n-color":se,"--n-box-shadow":ee,"--n-icon-color-info":P,"--n-icon-color-success":k,"--n-icon-color-warning":b,"--n-icon-color-error":C,"--n-icon-color-loading":R,"--n-close-color-hover":ae,"--n-close-color-pressed":V,"--n-close-icon-color":K,"--n-close-icon-color-pressed":ne,"--n-close-icon-color-hover":Ce,"--n-line-height":F,"--n-border-radius":_}}),a=t?Gn("message",X(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:s,onRender:l,icon:a,handleClose:c,showIcon:u}=this;l==null||l();let f;return $("div",{class:[`${o}-message-wrapper`,s],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):$("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=zy(a,t,o))&&u?$("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},$(xs,null,{default:()=>f})):null,$("div",{class:`${o}-message__content`},Qt(r)),n?$(ws,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function zy(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?$(Xu,{clsPrefix:n,strokeWidth:24,scale:.85}):Ty[t]();return r?$(Cs,{clsPrefix:n,key:t},{default:()=>r}):null}}const Iy=$e({name:"MessageEnvironment",props:Object.assign(Object.assign({},lf),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=oe(!0);Gt(()=>{r()});function r(){const{duration:u}=e;u&&(t=window.setTimeout(s,u))}function o(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&r()}function s(){const{onHide:u}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function l(){const{onClose:u}=e;u&&u(),s()}function a(){const{onAfterLeave:u,onInternalAfterLeave:f,onAfterHide:d,internalKey:v}=e;u&&u(),f&&f(v),d&&d()}function c(){s()}return{show:n,hide:s,handleClose:l,handleAfterLeave:a,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return $(Gu,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?$(Oy,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),Ay=Object.assign(Object.assign({},nt.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),ky=$e({name:"MessageProvider",props:Ay,setup(e){const{mergedClsPrefixRef:t}=Cn(e),n=oe([]),r=oe({}),o={create(a,c){return i(a,Object.assign({type:"default"},c))},info(a,c){return i(a,Object.assign(Object.assign({},c),{type:"info"}))},success(a,c){return i(a,Object.assign(Object.assign({},c),{type:"success"}))},warning(a,c){return i(a,Object.assign(Object.assign({},c),{type:"warning"}))},error(a,c){return i(a,Object.assign(Object.assign({},c),{type:"error"}))},loading(a,c){return i(a,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};qe(af,{props:e,mergedClsPrefixRef:t}),qe(Py,o);function i(a,c){const u=ds(),f=mn(Object.assign(Object.assign({},c),{content:a,key:u,destroy:()=>{var v;(v=r.value[u])===null||v===void 0||v.hide()}})),{max:d}=e;return d&&n.value.length>=d&&n.value.shift(),n.value.push(f),f}function s(a){n.value.splice(n.value.findIndex(c=>c.key===a),1),delete r.value[a]}function l(){Object.values(r.value).forEach(a=>{a.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:s},o)},render(){var e,t,n;return $(Me,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?$(Ec,{to:(n=this.to)!==null&&n!==void 0?n:"body"},$("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>$(Iy,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Kc(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});/*! + * vue-router v4.2.4 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Pn=typeof window<"u";function By(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ye=Object.assign;function ri(e,t){const n={};for(const r in t){const o=t[r];n[r]=ft(o)?o.map(e):e(o)}return n}const gr=()=>{},ft=Array.isArray,My=/\/$/,Hy=e=>e.replace(My,"");function oi(e,t,n="/"){let r,o={},i="",s="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=Dy(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function Fy(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function pa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ly(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Fn(t.matched[r],n.matched[o])&&af(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Fn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function af(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!jy(e[n],t[n]))return!1;return!0}function jy(e,t){return ft(e)?ga(e,t):ft(t)?ga(t,e):e===t}function ga(e,t){return ft(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Dy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,l;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Ar;(function(e){e.pop="pop",e.push="push"})(Ar||(Ar={}));var vr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(vr||(vr={}));function Ny(e){if(!e)if(Pn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Hy(e)}const Wy=/^[^#]+#/;function Uy(e,t){return e.replace(Wy,"#")+t}function Ky(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 Do=()=>({left:window.pageXOffset,top:window.pageYOffset});function Vy(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Ky(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function va(e,t){return(history.state?history.state.position-t:-1)+e}const ki=new Map;function qy(e,t){ki.set(e,t)}function Gy(e){const t=ki.get(e);return ki.delete(e),t}let Xy=()=>location.protocol+"//"+location.host;function cf(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let l=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),pa(a,"")}return pa(n,e)+r+o}function Yy(e,t,n,r){let o=[],i=[],s=null;const l=({state:d})=>{const v=cf(e,location),p=n.value,w=t.value;let y=0;if(d){if(n.value=v,t.value=d,s&&s===p){s=null;return}y=w?d.position-w.position:0}else r(v);o.forEach(m=>{m(n.value,p,{delta:y,type:Ar.pop,direction:y?y>0?vr.forward:vr.back:vr.unknown})})};function a(){s=n.value}function c(d){o.push(d);const v=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(v),v}function u(){const{history:d}=window;d.state&&d.replaceState(ye({},d.state,{scroll:Do()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function ma(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Do():null}}function Zy(e){const{history:t,location:n}=window,r={value:cf(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:Xy()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(v){console.error(v),n[u?"replace":"assign"](d)}}function s(a,c){const u=ye({},t.state,ma(o.value.back,a,o.value.forward,!0),c,{position:o.value.position});i(a,u,!0),r.value=a}function l(a,c){const u=ye({},o.value,t.state,{forward:a,scroll:Do()});i(u.current,u,!0);const f=ye({},ma(r.value,a,null),{position:u.position+1},c);i(a,f,!1),r.value=a}return{location:r,state:o,push:l,replace:s}}function Jy(e){e=Ny(e);const t=Zy(e),n=Yy(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=ye({location:"",base:e,go:r,createHref:Uy.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Qy(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Jy(e)}function ex(e){return typeof e=="string"||e&&typeof e=="object"}function uf(e){return typeof e=="string"||typeof e=="symbol"}const Lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ff=Symbol("");var ba;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ba||(ba={}));function Ln(e,t){return ye(new Error,{type:e,[ff]:!0},t)}function $t(e,t){return e instanceof Error&&ff in e&&(t==null||!!(e.type&t))}const ya="[^/]+?",tx={sensitive:!1,strict:!1,start:!0,end:!0},nx=/[.+*?^${}()[\]/\\]/g;function rx(e,t){const n=ye({},tx,t),r=[];let o=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function ix(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const sx={type:0,value:""},lx=/[a-zA-Z0-9_]/;function ax(e){if(!e)return[[]];if(e==="/")return[[sx]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${c}": ${v}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l{s(S)}:gr}function s(u){if(uf(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function l(){return n}function a(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!df(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!wa(u)&&r.set(u.record.name,u)}function c(u,f){let d,v={},p,w;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw Ln(1,{location:u});w=d.record.name,v=ye(Ca(f.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Ca(u.params,d.keys.map(S=>S.name))),p=d.stringify(v)}else if("path"in u)p=u.path,d=n.find(S=>S.re.test(p)),d&&(v=d.parse(p),w=d.record.name);else{if(d=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!d)throw Ln(1,{location:u,currentLocation:f});w=d.record.name,v=ye({},f.params,u.params),p=d.stringify(v)}const y=[];let m=d;for(;m;)y.unshift(m.record),m=m.parent;return{name:w,path:p,params:v,matched:y,meta:hx(y)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function Ca(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function fx(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:dx(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function dx(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=="boolean"?n:n[r];return t}function wa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hx(e){return e.reduce((t,n)=>ye(t,n.meta),{})}function Sa(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function df(e,t){return t.children.some(n=>n===e||df(e,n))}const hf=/#/g,px=/&/g,gx=/\//g,vx=/=/g,mx=/\?/g,pf=/\+/g,bx=/%5B/g,yx=/%5D/g,gf=/%5E/g,xx=/%60/g,vf=/%7B/g,Cx=/%7C/g,mf=/%7D/g,wx=/%20/g;function $s(e){return encodeURI(""+e).replace(Cx,"|").replace(bx,"[").replace(yx,"]")}function Sx(e){return $s(e).replace(vf,"{").replace(mf,"}").replace(gf,"^")}function Bi(e){return $s(e).replace(pf,"%2B").replace(wx,"+").replace(hf,"%23").replace(px,"%26").replace(xx,"`").replace(vf,"{").replace(mf,"}").replace(gf,"^")}function _x(e){return Bi(e).replace(vx,"%3D")}function $x(e){return $s(e).replace(hf,"%23").replace(mx,"%3F")}function Ex(e){return e==null?"":$x(e).replace(gx,"%2F")}function bo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Px(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Bi(i)):[r&&Bi(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Rx(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ft(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Tx=Symbol(""),$a=Symbol(""),Es=Symbol(""),bf=Symbol(""),Mi=Symbol("");function nr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Wt(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const a=f=>{f===!1?l(Ln(4,{from:n,to:t})):f instanceof Error?l(f):ex(f)?l(Ln(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),s())},c=e.call(r&&r.instances[o],t,n,a);let u=Promise.resolve(c);e.length<3&&(u=u.then(a)),u.catch(f=>l(f))})}function ii(e,t,n,r){const o=[];for(const i of e)for(const s in i.components){let l=i.components[s];if(!(t!=="beforeRouteEnter"&&!i.instances[s]))if(Ox(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Wt(c,n,r,i,s))}else{let a=l();o.push(()=>a.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const u=By(c)?c.default:c;i.components[s]=u;const d=(u.__vccOpts||u)[t];return d&&Wt(d,n,r,i,s)()}))}}return o}function Ox(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ea(e){const t=ze(Es),n=ze(bf),r=q(()=>t.resolve(Ct(e.to))),o=q(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Fn.bind(null,u));if(d>-1)return d;const v=Pa(a[c-2]);return c>1&&Pa(u)===v&&f[f.length-1].path!==v?f.findIndex(Fn.bind(null,a[c-2])):d}),i=q(()=>o.value>-1&&kx(n.params,r.value.params)),s=q(()=>o.value>-1&&o.value===n.matched.length-1&&af(n.params,r.value.params));function l(a={}){return Ax(a)?t[Ct(e.replace)?"replace":"push"](Ct(e.to)).catch(gr):Promise.resolve()}return{route:r,href:q(()=>r.value.href),isActive:i,isExactActive:s,navigate:l}}const zx=$e({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"}},useLink:Ea,setup(e,{slots:t}){const n=Gt(Ea(e)),{options:r}=ze(Es),o=q(()=>({[Ra(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ra(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:$("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Ix=zx;function Ax(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 kx(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ft(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function Pa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ra=(e,t,n)=>e??t??n,Bx=$e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ze(Mi),o=q(()=>e.route||r.value),i=ze($a,0),s=q(()=>{let c=Ct(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=q(()=>o.value.matched[s.value]);qe($a,q(()=>s.value+1)),qe(Tx,l),qe(Mi,o);const a=oe();return ut(()=>[a.value,l.value,e.name],([c,u,f],[d,v,p])=>{u&&(u.instances[f]=c,v&&v!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),c&&u&&(!v||!Fn(u,v)||!d)&&(u.enterCallbacks[f]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Ta(n.default,{Component:d,route:c});const v=f.props[u],p=v?v===!0?c.params:typeof v=="function"?v(c):v:null,y=$(d,ye({},p,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Ta(n.default,{Component:y,route:c})||y}}});function Ta(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const yf=Bx;function Mx(e){const t=ux(e.routes,e),n=e.parseQuery||Px,r=e.stringifyQuery||_a,o=e.history,i=nr(),s=nr(),l=nr(),a=ud(Lt);let c=Lt;Pn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ri.bind(null,R=>""+R),f=ri.bind(null,Ex),d=ri.bind(null,bo);function v(R,U){let I,Y;return uf(R)?(I=t.getRecordMatcher(R),Y=U):Y=R,t.addRoute(Y,I)}function p(R){const U=t.getRecordMatcher(R);U&&t.removeRoute(U)}function w(){return t.getRoutes().map(R=>R.record)}function y(R){return!!t.getRecordMatcher(R)}function m(R,U){if(U=ye({},U||a.value),typeof R=="string"){const x=oi(n,R,U.path),E=t.resolve({path:x.path},U),z=o.createHref(x.fullPath);return ye(x,E,{params:d(E.params),hash:bo(x.hash),redirectedFrom:void 0,href:z})}let I;if("path"in R)I=ye({},R,{path:oi(n,R.path,U.path).path});else{const x=ye({},R.params);for(const E in x)x[E]==null&&delete x[E];I=ye({},R,{params:f(x)}),U.params=f(U.params)}const Y=t.resolve(I,U),pe=R.hash||"";Y.params=u(d(Y.params));const h=Fy(r,ye({},R,{hash:Sx(pe),path:Y.path})),g=o.createHref(h);return ye({fullPath:h,hash:pe,query:r===_a?Rx(R.query):R.query||{}},Y,{redirectedFrom:void 0,href:g})}function S(R){return typeof R=="string"?oi(n,R,a.value.path):ye({},R)}function F(R,U){if(c!==R)return Ln(8,{from:U,to:R})}function _(R){return b(R)}function P(R){return _(ye(S(R),{replace:!0}))}function k(R){const U=R.matched[R.matched.length-1];if(U&&U.redirect){const{redirect:I}=U;let Y=typeof I=="function"?I(R):I;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=S(Y):{path:Y},Y.params={}),ye({query:R.query,hash:R.hash,params:"path"in Y?{}:R.params},Y)}}function b(R,U){const I=c=m(R),Y=a.value,pe=R.state,h=R.force,g=R.replace===!0,x=k(I);if(x)return b(ye(S(x),{state:typeof x=="object"?ye({},pe,x.state):pe,force:h,replace:g}),U||I);const E=I;E.redirectedFrom=U;let z;return!h&&Ly(r,Y,I)&&(z=Ln(16,{to:E,from:Y}),Se(Y,Y,!0,!1)),(z?Promise.resolve(z):L(E,Y)).catch(B=>$t(B)?$t(B,2)?B:we(B):ne(B,E,Y)).then(B=>{if(B){if($t(B,2))return b(ye({replace:g},S(B.to),{state:typeof B.to=="object"?ye({},pe,B.to.state):pe,force:h}),U||E)}else B=A(E,Y,!0,g,pe);return N(E,Y,B),B})}function C(R,U){const I=F(R,U);return I?Promise.reject(I):Promise.resolve()}function T(R){const U=ht.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(R):R()}function L(R,U){let I;const[Y,pe,h]=Hx(R,U);I=ii(Y.reverse(),"beforeRouteLeave",R,U);for(const x of Y)x.leaveGuards.forEach(E=>{I.push(Wt(E,R,U))});const g=C.bind(null,R,U);return I.push(g),fe(I).then(()=>{I=[];for(const x of i.list())I.push(Wt(x,R,U));return I.push(g),fe(I)}).then(()=>{I=ii(pe,"beforeRouteUpdate",R,U);for(const x of pe)x.updateGuards.forEach(E=>{I.push(Wt(E,R,U))});return I.push(g),fe(I)}).then(()=>{I=[];for(const x of R.matched)if(x.beforeEnter&&!U.matched.includes(x))if(ft(x.beforeEnter))for(const E of x.beforeEnter)I.push(Wt(E,R,U));else I.push(Wt(x.beforeEnter,R,U));return I.push(g),fe(I)}).then(()=>(R.matched.forEach(x=>x.enterCallbacks={}),I=ii(h,"beforeRouteEnter",R,U),I.push(g),fe(I))).then(()=>{I=[];for(const x of s.list())I.push(Wt(x,R,U));return I.push(g),fe(I)}).catch(x=>$t(x,8)?x:Promise.reject(x))}function N(R,U,I){for(const Y of l.list())T(()=>Y(R,U,I))}function A(R,U,I,Y,pe){const h=F(R,U);if(h)return h;const g=U===Lt,x=Pn?history.state:{};I&&(Y||g?o.replace(R.fullPath,ye({scroll:g&&x&&x.scroll},pe)):o.push(R.fullPath,pe)),a.value=R,Se(R,U,I,g),we()}let ee;function se(){ee||(ee=o.listen((R,U,I)=>{if(!Xe.listening)return;const Y=m(R),pe=k(Y);if(pe){b(ye(pe,{replace:!0}),Y).catch(gr);return}c=Y;const h=a.value;Pn&&qy(va(h.fullPath,I.delta),Do()),L(Y,h).catch(g=>$t(g,12)?g:$t(g,2)?(b(g.to,Y).then(x=>{$t(x,20)&&!I.delta&&I.type===Ar.pop&&o.go(-1,!1)}).catch(gr),Promise.reject()):(I.delta&&o.go(-I.delta,!1),ne(g,Y,h))).then(g=>{g=g||A(Y,h,!1),g&&(I.delta&&!$t(g,8)?o.go(-I.delta,!1):I.type===Ar.pop&&$t(g,20)&&o.go(-1,!1)),N(Y,h,g)}).catch(gr)}))}let ae=nr(),V=nr(),K;function ne(R,U,I){we(R);const Y=V.list();return Y.length?Y.forEach(pe=>pe(R,U,I)):console.error(R),Promise.reject(R)}function Ce(){return K&&a.value!==Lt?Promise.resolve():new Promise((R,U)=>{ae.add([R,U])})}function we(R){return K||(K=!R,se(),ae.list().forEach(([U,I])=>R?I(R):U()),ae.reset()),R}function Se(R,U,I,Y){const{scrollBehavior:pe}=e;if(!Pn||!pe)return Promise.resolve();const h=!I&&Gy(va(R.fullPath,0))||(Y||!I)&&history.state&&history.state.scroll||null;return Bn().then(()=>pe(R,U,h)).then(g=>g&&Vy(g)).catch(g=>ne(g,R,U))}const Te=R=>o.go(R);let rt;const ht=new Set,Xe={currentRoute:a,listening:!0,addRoute:v,removeRoute:p,hasRoute:y,getRoutes:w,resolve:m,options:e,push:_,replace:P,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:V.add,isReady:Ce,install(R){const U=this;R.component("RouterLink",Ix),R.component("RouterView",yf),R.config.globalProperties.$router=U,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>Ct(a)}),Pn&&!rt&&a.value===Lt&&(rt=!0,_(o.location).catch(pe=>{}));const I={};for(const pe in Lt)I[pe]=q(()=>a.value[pe]);R.provide(Es,U),R.provide(bf,Gt(I)),R.provide(Mi,a);const Y=R.unmount;ht.add(R),R.unmount=function(){ht.delete(R),ht.size<1&&(c=Lt,ee&&ee(),ee=null,a.value=Lt,rt=!1,K=!1),Y()}}};function fe(R){return R.reduce((U,I)=>U.then(()=>T(I)),Promise.resolve())}return Xe}function Hx(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sFn(c,l))?r.push(l):n.push(l));const a=e.matched[s];a&&(t.matched.find(c=>Fn(c,a))||o.push(a))}return[n,r,o]}const Fx=$e({__name:"App",setup(e){const t={common:{primaryColor:"#2080F0FF",primaryColorHover:"#4098FCFF",primaryColorPressed:"#1060C9FF",primaryColorSuppl:"#4098FCFF"}};return(n,r)=>(is(),ss(Ct(ry),{"theme-overrides":t},{default:ro(()=>[Le(Ct(wy),null,{default:ro(()=>[Le(Ct(ky),null,{default:ro(()=>[Le(Ct(yf))]),_:1})]),_:1})]),_:1}))}}),Lx="modulepreload",jx=function(e){return"/web/"+e},Oa={},Dx=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=jx(i),i in Oa)return;Oa[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===i&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Lx,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Nx=Mx({history:Qy("/web"),routes:[{path:"/",name:"chat",component:()=>Dx(()=>import("./index-5dc69d8e.js"),["assets/index-5dc69d8e.js","assets/index-1dc749ba.css"])}]}),Ps=Yh(Fx);fp(Ps);Ps.use(Nx);Ps.mount("#app");export{wu as $,ou as A,$ as B,Lp as C,fg as D,Bn as E,ms as F,Un as G,Fm as H,Su as I,ys as J,Hm as K,gg as L,go as M,rv as N,Vn as O,gb as P,gv as Q,Mr as R,Ou as S,Hn as T,Bo as U,aa as V,Eu as W,qn as X,Ru as Y,Kn as Z,yn as _,dt as a,ds as a$,Cu as a0,Ri as a1,xu as a2,f0 as a3,ov as a4,vn as a5,Hr as a6,Xn as a7,xe as a8,X as a9,Lo as aA,ws as aB,bl as aC,mo as aD,Fo as aE,xs as aF,vl as aG,Gu as aH,t1 as aI,D0 as aJ,Wg as aK,I0 as aL,Ll as aM,dp as aN,Br as aO,i1 as aP,fs as aQ,hc as aR,po as aS,en as aT,A0 as aU,wi as aV,Qx as aW,Jx as aX,Qu as aY,Zu as aZ,Ni as a_,D as aa,Cn as ab,nt as ac,Gn as ad,Cs as ae,re as af,_i as ag,de as ah,r1 as ai,Qi as aj,qt as ak,lg as al,cl as am,us as an,Sp as ao,Lg as ap,as as aq,yt as ar,Me as as,s1 as at,wp as au,It as av,Ro as aw,ho as ax,cn as ay,Vr as az,Gt as b,Zc as b0,Kp as b1,Cp as b2,Py as b3,Ku as b4,Uu as b5,Vu as b6,Ai as b7,qu as b8,ha as b9,L0 as ba,$c as bb,Yx as bc,is as bd,qx as be,Wx as bf,ss as bg,ro as bh,Tc as bi,Le as bj,Xx as bk,Ct as bl,Er as bm,by as bn,Zx as bo,dc as bp,vc as bq,gc as br,Oe as bs,Vx as bt,Gx as bu,Wi as bv,Ux as bw,Kx as bx,q as c,bn as d,Ve as e,Ot as f,it as g,Qc as h,eu as i,e1 as j,ze as k,og as l,rg as m,$e as n,Xt as o,ig as p,qe as q,oe as r,Oo as s,El as t,$i as u,fi as v,ut as w,o1 as x,ko as y,zt as z}; + */const Pn=typeof window<"u";function By(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ye=Object.assign;function ri(e,t){const n={};for(const r in t){const o=t[r];n[r]=ft(o)?o.map(e):e(o)}return n}const gr=()=>{},ft=Array.isArray,My=/\/$/,Hy=e=>e.replace(My,"");function oi(e,t,n="/"){let r,o={},i="",s="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=Dy(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function Fy(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function pa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ly(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Fn(t.matched[r],n.matched[o])&&cf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Fn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function cf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!jy(e[n],t[n]))return!1;return!0}function jy(e,t){return ft(e)?ga(e,t):ft(t)?ga(t,e):e===t}function ga(e,t){return ft(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Dy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,l;for(s=0;s1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Ar;(function(e){e.pop="pop",e.push="push"})(Ar||(Ar={}));var vr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(vr||(vr={}));function Ny(e){if(!e)if(Pn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Hy(e)}const Wy=/^[^#]+#/;function Uy(e,t){return e.replace(Wy,"#")+t}function Ky(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 Do=()=>({left:window.pageXOffset,top:window.pageYOffset});function Vy(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Ky(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function va(e,t){return(history.state?history.state.position-t:-1)+e}const ki=new Map;function qy(e,t){ki.set(e,t)}function Gy(e){const t=ki.get(e);return ki.delete(e),t}let Xy=()=>location.protocol+"//"+location.host;function uf(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let l=o.includes(e.slice(i))?e.slice(i).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),pa(a,"")}return pa(n,e)+r+o}function Yy(e,t,n,r){let o=[],i=[],s=null;const l=({state:d})=>{const v=uf(e,location),p=n.value,w=t.value;let y=0;if(d){if(n.value=v,t.value=d,s&&s===p){s=null;return}y=w?d.position-w.position:0}else r(v);o.forEach(m=>{m(n.value,p,{delta:y,type:Ar.pop,direction:y?y>0?vr.forward:vr.back:vr.unknown})})};function a(){s=n.value}function c(d){o.push(d);const v=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(v),v}function u(){const{history:d}=window;d.state&&d.replaceState(ye({},d.state,{scroll:Do()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function ma(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Do():null}}function Zy(e){const{history:t,location:n}=window,r={value:uf(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:Xy()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(v){console.error(v),n[u?"replace":"assign"](d)}}function s(a,c){const u=ye({},t.state,ma(o.value.back,a,o.value.forward,!0),c,{position:o.value.position});i(a,u,!0),r.value=a}function l(a,c){const u=ye({},o.value,t.state,{forward:a,scroll:Do()});i(u.current,u,!0);const f=ye({},ma(r.value,a,null),{position:u.position+1},c);i(a,f,!1),r.value=a}return{location:r,state:o,push:l,replace:s}}function Jy(e){e=Ny(e);const t=Zy(e),n=Yy(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=ye({location:"",base:e,go:r,createHref:Uy.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Qy(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Jy(e)}function ex(e){return typeof e=="string"||e&&typeof e=="object"}function ff(e){return typeof e=="string"||typeof e=="symbol"}const Lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},df=Symbol("");var ba;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ba||(ba={}));function Ln(e,t){return ye(new Error,{type:e,[df]:!0},t)}function $t(e,t){return e instanceof Error&&df in e&&(t==null||!!(e.type&t))}const ya="[^/]+?",tx={sensitive:!1,strict:!1,start:!0,end:!0},nx=/[.+*?^${}()[\]/\\]/g;function rx(e,t){const n=ye({},tx,t),r=[];let o=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function ix(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const sx={type:0,value:""},lx=/[a-zA-Z0-9_]/;function ax(e){if(!e)return[[]];if(e==="/")return[[sx]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${c}": ${v}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l{s(S)}:gr}function s(u){if(ff(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function l(){return n}function a(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!hf(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!wa(u)&&r.set(u.record.name,u)}function c(u,f){let d,v={},p,w;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw Ln(1,{location:u});w=d.record.name,v=ye(Ca(f.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Ca(u.params,d.keys.map(S=>S.name))),p=d.stringify(v)}else if("path"in u)p=u.path,d=n.find(S=>S.re.test(p)),d&&(v=d.parse(p),w=d.record.name);else{if(d=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!d)throw Ln(1,{location:u,currentLocation:f});w=d.record.name,v=ye({},f.params,u.params),p=d.stringify(v)}const y=[];let m=d;for(;m;)y.unshift(m.record),m=m.parent;return{name:w,path:p,params:v,matched:y,meta:hx(y)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function Ca(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function fx(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:dx(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function dx(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 wa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hx(e){return e.reduce((t,n)=>ye(t,n.meta),{})}function Sa(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function hf(e,t){return t.children.some(n=>n===e||hf(e,n))}const pf=/#/g,px=/&/g,gx=/\//g,vx=/=/g,mx=/\?/g,gf=/\+/g,bx=/%5B/g,yx=/%5D/g,vf=/%5E/g,xx=/%60/g,mf=/%7B/g,Cx=/%7C/g,bf=/%7D/g,wx=/%20/g;function $s(e){return encodeURI(""+e).replace(Cx,"|").replace(bx,"[").replace(yx,"]")}function Sx(e){return $s(e).replace(mf,"{").replace(bf,"}").replace(vf,"^")}function Bi(e){return $s(e).replace(gf,"%2B").replace(wx,"+").replace(pf,"%23").replace(px,"%26").replace(xx,"`").replace(mf,"{").replace(bf,"}").replace(vf,"^")}function _x(e){return Bi(e).replace(vx,"%3D")}function $x(e){return $s(e).replace(pf,"%23").replace(mx,"%3F")}function Ex(e){return e==null?"":$x(e).replace(gx,"%2F")}function bo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Px(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Bi(i)):[r&&Bi(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Rx(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ft(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Tx=Symbol(""),$a=Symbol(""),Es=Symbol(""),yf=Symbol(""),Mi=Symbol("");function nr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Wt(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const a=f=>{f===!1?l(Ln(4,{from:n,to:t})):f instanceof Error?l(f):ex(f)?l(Ln(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),s())},c=e.call(r&&r.instances[o],t,n,a);let u=Promise.resolve(c);e.length<3&&(u=u.then(a)),u.catch(f=>l(f))})}function ii(e,t,n,r){const o=[];for(const i of e)for(const s in i.components){let l=i.components[s];if(!(t!=="beforeRouteEnter"&&!i.instances[s]))if(Ox(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Wt(c,n,r,i,s))}else{let a=l();o.push(()=>a.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const u=By(c)?c.default:c;i.components[s]=u;const d=(u.__vccOpts||u)[t];return d&&Wt(d,n,r,i,s)()}))}}return o}function Ox(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ea(e){const t=ze(Es),n=ze(yf),r=X(()=>t.resolve(Ct(e.to))),o=X(()=>{const{matched:a}=r.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Fn.bind(null,u));if(d>-1)return d;const v=Pa(a[c-2]);return c>1&&Pa(u)===v&&f[f.length-1].path!==v?f.findIndex(Fn.bind(null,a[c-2])):d}),i=X(()=>o.value>-1&&kx(n.params,r.value.params)),s=X(()=>o.value>-1&&o.value===n.matched.length-1&&cf(n.params,r.value.params));function l(a={}){return Ax(a)?t[Ct(e.replace)?"replace":"push"](Ct(e.to)).catch(gr):Promise.resolve()}return{route:r,href:X(()=>r.value.href),isActive:i,isExactActive:s,navigate:l}}const zx=$e({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"}},useLink:Ea,setup(e,{slots:t}){const n=mn(Ea(e)),{options:r}=ze(Es),o=X(()=>({[Ra(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ra(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:$("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Ix=zx;function Ax(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 kx(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ft(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function Pa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ra=(e,t,n)=>e??t??n,Bx=$e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ze(Mi),o=X(()=>e.route||r.value),i=ze($a,0),s=X(()=>{let c=Ct(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=X(()=>o.value.matched[s.value]);qe($a,X(()=>s.value+1)),qe(Tx,l),qe(Mi,o);const a=oe();return ut(()=>[a.value,l.value,e.name],([c,u,f],[d,v,p])=>{u&&(u.instances[f]=c,v&&v!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),c&&u&&(!v||!Fn(u,v)||!d)&&(u.enterCallbacks[f]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Ta(n.default,{Component:d,route:c});const v=f.props[u],p=v?v===!0?c.params:typeof v=="function"?v(c):v:null,y=$(d,ye({},p,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Ta(n.default,{Component:y,route:c})||y}}});function Ta(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const xf=Bx;function Mx(e){const t=ux(e.routes,e),n=e.parseQuery||Px,r=e.stringifyQuery||_a,o=e.history,i=nr(),s=nr(),l=nr(),a=ud(Lt);let c=Lt;Pn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ri.bind(null,T=>""+T),f=ri.bind(null,Ex),d=ri.bind(null,bo);function v(T,U){let I,Y;return ff(T)?(I=t.getRecordMatcher(T),Y=U):Y=T,t.addRoute(Y,I)}function p(T){const U=t.getRecordMatcher(T);U&&t.removeRoute(U)}function w(){return t.getRoutes().map(T=>T.record)}function y(T){return!!t.getRecordMatcher(T)}function m(T,U){if(U=ye({},U||a.value),typeof T=="string"){const x=oi(n,T,U.path),E=t.resolve({path:x.path},U),z=o.createHref(x.fullPath);return ye(x,E,{params:d(E.params),hash:bo(x.hash),redirectedFrom:void 0,href:z})}let I;if("path"in T)I=ye({},T,{path:oi(n,T.path,U.path).path});else{const x=ye({},T.params);for(const E in x)x[E]==null&&delete x[E];I=ye({},T,{params:f(x)}),U.params=f(U.params)}const Y=t.resolve(I,U),pe=T.hash||"";Y.params=u(d(Y.params));const h=Fy(r,ye({},T,{hash:Sx(pe),path:Y.path})),g=o.createHref(h);return ye({fullPath:h,hash:pe,query:r===_a?Rx(T.query):T.query||{}},Y,{redirectedFrom:void 0,href:g})}function S(T){return typeof T=="string"?oi(n,T,a.value.path):ye({},T)}function F(T,U){if(c!==T)return Ln(8,{from:U,to:T})}function _(T){return b(T)}function P(T){return _(ye(S(T),{replace:!0}))}function k(T){const U=T.matched[T.matched.length-1];if(U&&U.redirect){const{redirect:I}=U;let Y=typeof I=="function"?I(T):I;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=S(Y):{path:Y},Y.params={}),ye({query:T.query,hash:T.hash,params:"path"in Y?{}:T.params},Y)}}function b(T,U){const I=c=m(T),Y=a.value,pe=T.state,h=T.force,g=T.replace===!0,x=k(I);if(x)return b(ye(S(x),{state:typeof x=="object"?ye({},pe,x.state):pe,force:h,replace:g}),U||I);const E=I;E.redirectedFrom=U;let z;return!h&&Ly(r,Y,I)&&(z=Ln(16,{to:E,from:Y}),Se(Y,Y,!0,!1)),(z?Promise.resolve(z):L(E,Y)).catch(B=>$t(B)?$t(B,2)?B:we(B):ne(B,E,Y)).then(B=>{if(B){if($t(B,2))return b(ye({replace:g},S(B.to),{state:typeof B.to=="object"?ye({},pe,B.to.state):pe,force:h}),U||E)}else B=A(E,Y,!0,g,pe);return N(E,Y,B),B})}function C(T,U){const I=F(T,U);return I?Promise.reject(I):Promise.resolve()}function R(T){const U=ht.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(T):T()}function L(T,U){let I;const[Y,pe,h]=Hx(T,U);I=ii(Y.reverse(),"beforeRouteLeave",T,U);for(const x of Y)x.leaveGuards.forEach(E=>{I.push(Wt(E,T,U))});const g=C.bind(null,T,U);return I.push(g),fe(I).then(()=>{I=[];for(const x of i.list())I.push(Wt(x,T,U));return I.push(g),fe(I)}).then(()=>{I=ii(pe,"beforeRouteUpdate",T,U);for(const x of pe)x.updateGuards.forEach(E=>{I.push(Wt(E,T,U))});return I.push(g),fe(I)}).then(()=>{I=[];for(const x of h)if(x.beforeEnter)if(ft(x.beforeEnter))for(const E of x.beforeEnter)I.push(Wt(E,T,U));else I.push(Wt(x.beforeEnter,T,U));return I.push(g),fe(I)}).then(()=>(T.matched.forEach(x=>x.enterCallbacks={}),I=ii(h,"beforeRouteEnter",T,U),I.push(g),fe(I))).then(()=>{I=[];for(const x of s.list())I.push(Wt(x,T,U));return I.push(g),fe(I)}).catch(x=>$t(x,8)?x:Promise.reject(x))}function N(T,U,I){l.list().forEach(Y=>R(()=>Y(T,U,I)))}function A(T,U,I,Y,pe){const h=F(T,U);if(h)return h;const g=U===Lt,x=Pn?history.state:{};I&&(Y||g?o.replace(T.fullPath,ye({scroll:g&&x&&x.scroll},pe)):o.push(T.fullPath,pe)),a.value=T,Se(T,U,I,g),we()}let ee;function se(){ee||(ee=o.listen((T,U,I)=>{if(!Xe.listening)return;const Y=m(T),pe=k(Y);if(pe){b(ye(pe,{replace:!0}),Y).catch(gr);return}c=Y;const h=a.value;Pn&&qy(va(h.fullPath,I.delta),Do()),L(Y,h).catch(g=>$t(g,12)?g:$t(g,2)?(b(g.to,Y).then(x=>{$t(x,20)&&!I.delta&&I.type===Ar.pop&&o.go(-1,!1)}).catch(gr),Promise.reject()):(I.delta&&o.go(-I.delta,!1),ne(g,Y,h))).then(g=>{g=g||A(Y,h,!1),g&&(I.delta&&!$t(g,8)?o.go(-I.delta,!1):I.type===Ar.pop&&$t(g,20)&&o.go(-1,!1)),N(Y,h,g)}).catch(gr)}))}let ae=nr(),V=nr(),K;function ne(T,U,I){we(T);const Y=V.list();return Y.length?Y.forEach(pe=>pe(T,U,I)):console.error(T),Promise.reject(T)}function Ce(){return K&&a.value!==Lt?Promise.resolve():new Promise((T,U)=>{ae.add([T,U])})}function we(T){return K||(K=!T,se(),ae.list().forEach(([U,I])=>T?I(T):U()),ae.reset()),T}function Se(T,U,I,Y){const{scrollBehavior:pe}=e;if(!Pn||!pe)return Promise.resolve();const h=!I&&Gy(va(T.fullPath,0))||(Y||!I)&&history.state&&history.state.scroll||null;return Bn().then(()=>pe(T,U,h)).then(g=>g&&Vy(g)).catch(g=>ne(g,T,U))}const Te=T=>o.go(T);let rt;const ht=new Set,Xe={currentRoute:a,listening:!0,addRoute:v,removeRoute:p,hasRoute:y,getRoutes:w,resolve:m,options:e,push:_,replace:P,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:V.add,isReady:Ce,install(T){const U=this;T.component("RouterLink",Ix),T.component("RouterView",xf),T.config.globalProperties.$router=U,Object.defineProperty(T.config.globalProperties,"$route",{enumerable:!0,get:()=>Ct(a)}),Pn&&!rt&&a.value===Lt&&(rt=!0,_(o.location).catch(pe=>{}));const I={};for(const pe in Lt)Object.defineProperty(I,pe,{get:()=>a.value[pe],enumerable:!0});T.provide(Es,U),T.provide(yf,Za(I)),T.provide(Mi,a);const Y=T.unmount;ht.add(T),T.unmount=function(){ht.delete(T),ht.size<1&&(c=Lt,ee&&ee(),ee=null,a.value=Lt,rt=!1,K=!1),Y()}}};function fe(T){return T.reduce((U,I)=>U.then(()=>R(I)),Promise.resolve())}return Xe}function Hx(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sFn(c,l))?r.push(l):n.push(l));const a=e.matched[s];a&&(t.matched.find(c=>Fn(c,a))||o.push(a))}return[n,r,o]}const Fx=$e({__name:"App",setup(e){const t={common:{primaryColor:"#2080F0FF",primaryColorHover:"#4098FCFF",primaryColorPressed:"#1060C9FF",primaryColorSuppl:"#4098FCFF"}};return(n,r)=>(is(),ss(Ct(ry),{"theme-overrides":t},{default:ro(()=>[Le(Ct(wy),null,{default:ro(()=>[Le(Ct(ky),null,{default:ro(()=>[Le(Ct(xf))]),_:1})]),_:1})]),_:1}))}}),Lx="modulepreload",jx=function(e){return"/web/"+e},Oa={},Dx=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=jx(i),i in Oa)return;Oa[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===i&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Lx,s||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),s)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})},Nx=Mx({history:Qy("/web"),routes:[{path:"/",name:"chat",component:()=>Dx(()=>import("./index-ceb80788.js"),["assets/index-ceb80788.js","assets/index-1dc749ba.css"])}]}),Ps=Yh(Fx);fp(Ps);Ps.use(Nx);Ps.mount("#app");export{Su as $,iu as A,$ as B,Lp as C,fg as D,Bn as E,ms as F,Un as G,Fm as H,_u as I,ys as J,Hm as K,gg as L,go as M,rv as N,Vn as O,gb as P,gv as Q,Mr as R,zu as S,Hn as T,Bo as U,aa as V,Pu as W,qn as X,Tu as Y,Kn as Z,yn as _,dt as a,ds as a$,wu as a0,Ri as a1,Cu as a2,f0 as a3,ov as a4,gn as a5,Hr as a6,Xn as a7,xe as a8,G as a9,Lo as aA,ws as aB,bl as aC,mo as aD,Fo as aE,xs as aF,vl as aG,Xu as aH,t1 as aI,D0 as aJ,Wg as aK,I0 as aL,Ll as aM,dp as aN,Br as aO,i1 as aP,fs as aQ,pc as aR,po as aS,Qt as aT,A0 as aU,wi as aV,Qx as aW,Jx as aX,ef as aY,Ju as aZ,Ni as a_,D as aa,Cn as ab,nt as ac,Gn as ad,Cs as ae,re as af,_i as ag,de as ah,r1 as ai,Qi as aj,qt as ak,lg as al,cl as am,us as an,Sp as ao,Lg as ap,as as aq,yt as ar,Me as as,s1 as at,wp as au,It as av,Ro as aw,ho as ax,an as ay,Vr as az,mn as b,Jc as b0,Kp as b1,Cp as b2,Py as b3,Vu as b4,Ku as b5,qu as b6,Ai as b7,Gu as b8,ha as b9,L0 as ba,Ec as bb,Yx as bc,is as bd,qx as be,Wx as bf,ss as bg,ro as bh,Oc as bi,Le as bj,Xx as bk,Ct as bl,Er as bm,by as bn,Zx as bo,hc as bp,mc as bq,vc as br,Oe as bs,Vx as bt,Gx as bu,Wi as bv,Ux as bw,Kx as bx,X as c,bn as d,Ve as e,Ot as f,it as g,eu as h,tu as i,e1 as j,ze as k,og as l,rg as m,$e as n,Gt as o,ig as p,qe as q,oe as r,Oo as s,El as t,$i as u,fi as v,ut as w,o1 as x,ko as y,zt as z}; diff --git a/web/assets/index-5dc69d8e.js b/web/assets/index-ceb80788.js similarity index 96% rename from web/assets/index-5dc69d8e.js rename to web/assets/index-ceb80788.js index c20a67872a..9d21768d2c 100644 --- a/web/assets/index-5dc69d8e.js +++ b/web/assets/index-ceb80788.js @@ -1,4 +1,4 @@ -import{r as M,w as Ie,o as et,a as nt,i as Fa,c as D,b as Na,h as Ha,d as hn,e as _e,f as ja,g as Me,j as Ge,k as ue,m as Er,l as Ar,p as tr,u as We,n as q,q as Re,s as Dr,t as Ua,v as xt,x as vo,C as Wa,y as Va,z as ee,A as Fr,B as c,D as Nr,L as pn,E as Xt,F as rr,G as or,H as Ka,I as qa,J as Hr,K as Ga,M as rt,N as vn,O as jr,P as Ur,Q as St,R as gn,S as kr,T as go,U as Xa,V as mo,W as bo,X as Gt,Y as Ya,Z as yo,_ as Za,$ as Ja,a0 as Qa,a1 as el,a2 as tl,a3 as rl,a4 as ol,a5 as mn,a6 as Xe,a7 as Be,a8 as S,a9 as B,aa as L,ab as $e,ac as ae,ad as Fe,ae as pe,af as ie,ag as Te,ah as j,ai as nl,aj as ft,ak as bt,al as wo,am as bn,an as xo,ao as Co,ap as il,aq as Lt,ar as Ze,as as Ve,at as yn,au as So,av as al,aw as ll,ax as wn,ay as me,az as le,aA as kt,aB as sl,aC as ko,aD as xn,aE as Cn,aF as Sn,aG as yt,aH as dl,aI as cl,aJ as ul,aK as kn,aL as fl,aM as hl,aN as pl,aO as Wr,aP as Et,aQ as Ae,aR as vl,aS as Vr,aT as Yt,aU as Pn,aV as gl,aW as ml,aX as Po,aY as bl,aZ as $o,a_ as yl,a$ as Pr,b0 as $n,b1 as zn,b2 as Pt,b3 as wl,b4 as Kr,b5 as qr,b6 as Gr,b7 as Xr,b8 as Tn,b9 as ce,ba as zo,bb as xl,bc as Yr,bd as te,be as Se,bf as Ue,bg as ke,bh as X,bi as be,bj as G,bk as Cl,bl as E,bm as se,bn as ut,bo as ot,bp as Sl,bq as In,br as kl,bs as $r,bt as _n,bu as Je,bv as Rn,bw as Pl,bx as $l}from"./index-6fdcb9a0.js";let Zt=[];const On=new WeakMap;function zl(){Zt.forEach(e=>e(...On.get(e))),Zt=[]}function Mn(e,...t){On.set(e,t),!Zt.includes(e)&&Zt.push(e)===1&&requestAnimationFrame(zl)}function To(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function Tl(e,t="default",r=[]){const n=e.$slots[t];return n===void 0?r:n()}function Il(e){return t=>{t?e.value=t.$el:e.value=null}}const _l=/^(\d|\.)+$/,Io=/(\d|\.)+/;function qe(e,{c:t=1,offset:r=0,attachPx:o=!0}={}){if(typeof e=="number"){const n=(e+r)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(_l.test(e)){const n=(Number(e)+r)*t;return o?n===0?"0":`${n}px`:`${n}`}else{const n=Io.exec(e);return n?e.replace(Io,String((Number(n[0])+r)*t)):e}return e}let ur;function Rl(){return ur===void 0&&(ur=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),ur}function Ol(e,t,r){if(!t)return e;const o=M(e.value);let n=null;return Ie(e,i=>{n!==null&&window.clearTimeout(n),i===!0?r&&!r.value?o.value=!0:n=window.setTimeout(()=>{o.value=!0},t):o.value=!1}),o}let wt,Ot;const Ml=()=>{var e,t;wt=Fa?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Ot=!1,wt!==void 0?wt.then(()=>{Ot=!0}):Ot=!0};Ml();function Bl(e){if(Ot)return;let t=!1;et(()=>{Ot||wt==null||wt.then(()=>{t||e()})}),nt(()=>{t=!0})}function nr(e,t){return Ie(e,r=>{r!==void 0&&(t.value=r)}),D(()=>e.value===void 0?t.value:e.value)}function Ll(e,t){return D(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}function El(e={},t){const r=Na({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:n}=e,i=a=>{switch(a.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}o!==void 0&&Object.keys(o).forEach(s=>{if(s!==a.key)return;const u=o[s];if(typeof u=="function")u(a);else{const{stop:f=!1,prevent:h=!1}=u;f&&a.stopPropagation(),h&&a.preventDefault(),u.handler(a)}})},l=a=>{switch(a.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}n!==void 0&&Object.keys(n).forEach(s=>{if(s!==a.key)return;const u=n[s];if(typeof u=="function")u(a);else{const{stop:f=!1,prevent:h=!1}=u;f&&a.stopPropagation(),h&&a.preventDefault(),u.handler(a)}})},d=()=>{(t===void 0||t.value)&&(Me("keydown",document,i),Me("keyup",document,l)),t!==void 0&&Ie(t,a=>{a?(Me("keydown",document,i),Me("keyup",document,l)):(_e("keydown",document,i),_e("keyup",document,l))})};return Ha()?(hn(d),nt(()=>{(t===void 0||t.value)&&(_e("keydown",document,i),_e("keyup",document,l))})):d(),ja(r)}const Al=Ge("n-internal-select-menu-body"),Bn="__disabled__";function Ct(e){const t=ue(Er,null),r=ue(Ar,null),o=ue(tr,null),n=ue(Al,null),i=M();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};et(()=>{Me("fullscreenchange",document,l)}),nt(()=>{_e("fullscreenchange",document,l)})}return We(()=>{var l;const{to:d}=e;return d!==void 0?d===!1?Bn:d===!0?i.value||"body":d:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:n!=null&&n.value?n.value:d??(i.value||"body")})}Ct.tdkey=Bn;Ct.propTo={type:[String,Object,Boolean],default:void 0};let tt=null;function Ln(){if(tt===null&&(tt=document.getElementById("v-binder-view-measurer"),tt===null)){tt=document.createElement("div"),tt.id="v-binder-view-measurer";const{style:e}=tt;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(tt)}return tt.getBoundingClientRect()}function Dl(e,t){const r=Ln();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function fr(e){const t=e.getBoundingClientRect(),r=Ln();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function Fl(e){return e.nodeType===9?null:e.parentNode}function En(e){if(e===null)return null;const t=Fl(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:o,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+n+o))return t}return En(t)}const Nl=q({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Re("VBinder",(t=Dr())===null||t===void 0?void 0:t.proxy);const r=ue("VBinder",null),o=M(null),n=x=>{o.value=x,r&&e.syncTargetWithParent&&r.setTargetRef(x)};let i=[];const l=()=>{let x=o.value;for(;x=En(x),x!==null;)i.push(x);for(const P of i)Me("scroll",P,f,!0)},d=()=>{for(const x of i)_e("scroll",x,f,!0);i=[]},a=new Set,s=x=>{a.size===0&&l(),a.has(x)||a.add(x)},u=x=>{a.has(x)&&a.delete(x),a.size===0&&d()},f=()=>{Mn(h)},h=()=>{a.forEach(x=>x())},p=new Set,v=x=>{p.size===0&&Me("resize",window,w),p.has(x)||p.add(x)},y=x=>{p.has(x)&&p.delete(x),p.size===0&&_e("resize",window,w)},w=()=>{p.forEach(x=>x())};return nt(()=>{_e("resize",window,w),d()}),{targetRef:o,setTargetRef:n,addScrollListener:s,removeScrollListener:u,addResizeListener:v,removeResizeListener:y}},render(){return Ua("binder",this.$slots)}}),An=Nl,Dn=q({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=ue("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?xt(vo("follower",this.$slots),[[t]]):vo("follower",this.$slots)}}),pt="@@mmoContext",Hl={mounted(e,{value:t}){e[pt]={handler:void 0},typeof t=="function"&&(e[pt].handler=t,Me("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[pt];typeof t=="function"?r.handler?r.handler!==t&&(_e("mousemoveoutside",e,r.handler),r.handler=t,Me("mousemoveoutside",e,t)):(e[pt].handler=t,Me("mousemoveoutside",e,t)):r.handler&&(_e("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[pt];t&&_e("mousemoveoutside",e,t),e[pt].handler=void 0}},jl=Hl,{c:Ht}=Wa(),Ul="vueuc-style",jt={top:"bottom",bottom:"top",left:"right",right:"left"},_o={start:"end",center:"center",end:"start"},hr={top:"height",bottom:"height",left:"width",right:"width"},Wl={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Vl={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Kl={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Ro={top:!0,bottom:!1,left:!0,right:!1},Oo={top:"end",bottom:"start",left:"end",right:"start"};function ql(e,t,r,o,n,i){if(!n||i)return{placement:e,top:0,left:0};const[l,d]=e.split("-");let a=d??"center",s={top:0,left:0};const u=(p,v,y)=>{let w=0,x=0;const P=r[p]-t[v]-t[p];return P>0&&o&&(y?x=Ro[v]?P:-P:w=Ro[v]?P:-P),{left:w,top:x}},f=l==="left"||l==="right";if(a!=="center"){const p=Kl[e],v=jt[p],y=hr[p];if(r[y]>t[y]){if(t[p]+t[y]t[v]&&(a=_o[d])}else{const p=l==="bottom"||l==="top"?"left":"top",v=jt[p],y=hr[p],w=(r[y]-t[y])/2;(t[p]t[v]?(a=Oo[p],s=u(y,p,f)):(a=Oo[v],s=u(y,v,f)))}let h=l;return t[l] *",{pointerEvents:"all"})])]),Fn=q({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=ue("VBinder"),r=We(()=>e.enabled!==void 0?e.enabled:e.show),o=M(null),n=M(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(a),h.includes("resize")&&t.addResizeListener(a)},l=()=>{t.removeScrollListener(a),t.removeResizeListener(a)};et(()=>{r.value&&(a(),i())});const d=Va();Yl.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ul,ssr:d}),nt(()=>{l()}),Bl(()=>{r.value&&a()});const a=()=>{if(!r.value)return;const h=o.value;if(h===null)return;const p=t.targetRef,{x:v,y,overlap:w}=e,x=v!==void 0&&y!==void 0?Dl(v,y):fr(p);h.style.setProperty("--v-target-width",`${Math.round(x.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(x.height)}px`);const{width:P,minWidth:k,placement:b,internalShift:m,flip:R}=e;h.setAttribute("v-placement",b),w?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:z}=h;P==="target"?z.width=`${x.width}px`:P!==void 0?z.width=P:z.width="",k==="target"?z.minWidth=`${x.width}px`:k!==void 0?z.minWidth=k:z.minWidth="";const A=fr(h),$=fr(n.value),{left:_,top:K,placement:F}=ql(b,x,A,m,R,w),O=Gl(F,w),{left:C,top:T,transform:H}=Xl(F,$,x,K,_,w);h.setAttribute("v-placement",F),h.style.setProperty("--v-offset-left",`${Math.round(_)}px`),h.style.setProperty("--v-offset-top",`${Math.round(K)}px`),h.style.transform=`translateX(${C}) translateY(${T}) ${H}`,h.style.setProperty("--v-transform-origin",O),h.style.transformOrigin=O};Ie(r,h=>{h?(i(),s()):l()});const s=()=>{Xt().then(a).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{Ie(ee(e,h),a)}),["teleportDisabled"].forEach(h=>{Ie(ee(e,h),s)}),Ie(ee(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(a):t.removeResizeListener(a),h.includes("scroll")?t.addScrollListener(a):t.removeScrollListener(a)});const u=Fr(),f=We(()=>{const{to:h}=e;if(h!==void 0)return h;u.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:n,followerRef:o,mergedTo:f,syncPosition:a}},render(){return c(pn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=c("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[c("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?xt(r,[[Nr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var Zl=rr(or,"WeakMap");const zr=Zl;var Jl=Ka(Object.keys,Object);const Ql=Jl;var es=Object.prototype,ts=es.hasOwnProperty;function rs(e){if(!qa(e))return Ql(e);var t=[];for(var r in Object(e))ts.call(e,r)&&r!="constructor"&&t.push(r);return t}function Zr(e){return Hr(e)?Ga(e):rs(e)}var os=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ns=/^\w*$/;function Jr(e,t){if(rt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||vn(e)?!0:ns.test(e)||!os.test(e)||t!=null&&e in Object(t)}var is="Expected a function";function Qr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(is);var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],i=r.cache;if(i.has(n))return i.get(n);var l=e.apply(this,o);return r.cache=i.set(n,l)||i,l};return r.cache=new(Qr.Cache||jr),r}Qr.Cache=jr;var as=500;function ls(e){var t=Qr(e,function(o){return r.size===as&&r.clear(),o}),r=t.cache;return t}var ss=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ds=/\\(\\)?/g,cs=ls(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ss,function(r,o,n,i){t.push(n?i.replace(ds,"$1"):o||r)}),t});const us=cs;function Nn(e,t){return rt(e)?e:Jr(e,t)?[e]:us(Ur(e))}var fs=1/0;function ir(e){if(typeof e=="string"||vn(e))return e;var t=e+"";return t=="0"&&1/e==-fs?"-0":t}function Hn(e,t){t=Nn(t,e);for(var r=0,o=t.length;e!=null&&rd))return!1;var s=i.get(e),u=i.get(t);if(s&&u)return s==t&&u==e;var f=-1,h=!0,p=r&zd?new Jt:void 0;for(i.set(e,t),i.set(t,e);++f`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},xc=wc;function vr(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,o=e.formats[r]||e.formats[e.defaultWidth];return o}}function _t(e){return function(t,r){var o=r!=null&&r.context?String(r.context):"standalone",n;if(o==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):i;n=e.formattingValues[l]||e.formattingValues[i]}else{var d=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;n=e.values[a]||e.values[d]}var s=e.argumentCallback?e.argumentCallback(t):t;return n[s]}}function Rt(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.width,n=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var l=i[0],d=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(d)?Sc(d,function(f){return f.test(l)}):Cc(d,function(f){return f.test(l)}),s;s=e.valueCallback?e.valueCallback(a):a,s=r.valueCallback?r.valueCallback(s):s;var u=t.slice(l.length);return{value:s,rest:u}}}function Cc(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Sc(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var n=o[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];l=r.valueCallback?r.valueCallback(l):l;var d=t.slice(n.length);return{value:l,rest:d}}}var Pc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},$c=function(t,r,o){var n,i=Pc[t];return typeof i=="string"?n=i:r===1?n=i.one:n=i.other.replace("{{count}}",r.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n};const zc=$c;var Tc={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ic={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_c={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rc={date:vr({formats:Tc,defaultWidth:"full"}),time:vr({formats:Ic,defaultWidth:"full"}),dateTime:vr({formats:_c,defaultWidth:"full"})};const Oc=Rc;var Mc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Bc=function(t,r,o,n){return Mc[t]};const Lc=Bc;var Ec={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ac={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Dc={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Fc={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Nc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Hc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jc=function(t,r){var o=Number(t),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},Uc={ordinalNumber:jc,era:_t({values:Ec,defaultWidth:"wide"}),quarter:_t({values:Ac,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:_t({values:Dc,defaultWidth:"wide"}),day:_t({values:Fc,defaultWidth:"wide"}),dayPeriod:_t({values:Nc,defaultWidth:"wide",formattingValues:Hc,defaultFormattingWidth:"wide"})};const Wc=Uc;var Vc=/^(\d+)(th|st|nd|rd)?/i,Kc=/\d+/i,qc={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Gc={any:[/^b/i,/^(a|c)/i]},Xc={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Yc={any:[/1/i,/2/i,/3/i,/4/i]},Zc={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Jc={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Qc={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},eu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},tu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ru={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ou={ordinalNumber:kc({matchPattern:Vc,parsePattern:Kc,valueCallback:function(t){return parseInt(t,10)}}),era:Rt({matchPatterns:qc,defaultMatchWidth:"wide",parsePatterns:Gc,defaultParseWidth:"any"}),quarter:Rt({matchPatterns:Xc,defaultMatchWidth:"wide",parsePatterns:Yc,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Rt({matchPatterns:Zc,defaultMatchWidth:"wide",parsePatterns:Jc,defaultParseWidth:"any"}),day:Rt({matchPatterns:Qc,defaultMatchWidth:"wide",parsePatterns:eu,defaultParseWidth:"any"}),dayPeriod:Rt({matchPatterns:tu,defaultMatchWidth:"any",parsePatterns:ru,defaultParseWidth:"any"})};const nu=ou;var iu={code:"en-US",formatDistance:zc,formatLong:Oc,formatRelative:Lc,localize:Wc,match:nu,options:{weekStartsOn:0,firstWeekContainsDate:1}};const au=iu,lu={name:"en-US",locale:au},su=lu;function to(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=ue(mn,null)||{},o=D(()=>{var i,l;return(l=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&l!==void 0?l:xc[e]});return{dateLocaleRef:D(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:su}),localeRef:o}}const du=q({name:"Add",render(){return c("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),cu=Xe("attach",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),uu=q({name:"ChevronRight",render(){return c("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),ni=q({name:"Eye",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),c("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),fu=q({name:"EyeOff",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),c("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),c("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),c("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),c("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),hu=Xe("trash",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),pu=Xe("download",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),vu=q({name:"Empty",render(){return c("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),c("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),gu=Xe("cancel",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),mu=q({name:"ChevronDown",render(){return c("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),bu=Xe("clear",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),yu=Xe("retry",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),c("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),wu=Xe("rotateClockwise",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),c("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),xu=Xe("rotateClockwise",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),c("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),Cu=Xe("zoomIn",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),c("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),Su=Xe("zoomOut",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),c("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),ku=q({name:"ResizeSmall",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},c("g",{fill:"none"},c("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}});function Xo(e){return Array.isArray(e)?e:[e]}const Rr={STOP:"STOP"};function ii(e,t){const r=t(e);e.children!==void 0&&r!==Rr.STOP&&e.children.forEach(o=>ii(o,t))}function Pu(e,t={}){const{preserveGroup:r=!1}=t,o=[],n=r?l=>{l.isLeaf||(o.push(l.key),i(l.children))}:l=>{l.isLeaf||(l.isGroup||o.push(l.key),i(l.children))};function i(l){l.forEach(n)}return i(e),o}function $u(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function zu(e){return e.children}function Tu(e){return e.key}function Iu(){return!1}function _u(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function Ru(e){return e.disabled===!0}function Ou(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function gr(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function mr(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function Mu(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)||r.add(o)}),Array.from(r)}function Bu(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)&&r.delete(o)}),Array.from(r)}function Lu(e){return(e==null?void 0:e.type)==="group"}class Eu extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Au(e,t,r,o){return Qt(t.concat(e),r,o,!1)}function Du(e,t){const r=new Set;return e.forEach(o=>{const n=t.treeNodeMap.get(o);if(n!==void 0){let i=n.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function Fu(e,t,r,o){const n=Qt(t,r,o,!1),i=Qt(e,r,o,!0),l=Du(e,r),d=[];return n.forEach(a=>{(i.has(a)||l.has(a))&&d.push(a)}),d.forEach(a=>n.delete(a)),n}function br(e,t){const{checkedKeys:r,keysToCheck:o,keysToUncheck:n,indeterminateKeys:i,cascade:l,leafOnly:d,checkStrategy:a,allowNotLoaded:s}=e;if(!l)return o!==void 0?{checkedKeys:Mu(r,o),indeterminateKeys:Array.from(i)}:n!==void 0?{checkedKeys:Bu(r,n),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:u}=t;let f;n!==void 0?f=Fu(n,r,t,s):o!==void 0?f=Au(o,r,t,s):f=Qt(r,t,s,!1);const h=a==="parent",p=a==="child"||d,v=f,y=new Set,w=Math.max.apply(null,Array.from(u.keys()));for(let x=w;x>=0;x-=1){const P=x===0,k=u.get(x);for(const b of k){if(b.isLeaf)continue;const{key:m,shallowLoaded:R}=b;if(p&&R&&b.children.forEach(_=>{!_.disabled&&!_.isLeaf&&_.shallowLoaded&&v.has(_.key)&&v.delete(_.key)}),b.disabled||!R)continue;let z=!0,A=!1,$=!0;for(const _ of b.children){const K=_.key;if(!_.disabled){if($&&($=!1),v.has(K))A=!0;else if(y.has(K)){A=!0,z=!1;break}else if(z=!1,A)break}}z&&!$?(h&&b.children.forEach(_=>{!_.disabled&&v.has(_.key)&&v.delete(_.key)}),v.add(m)):A&&y.add(m),P&&p&&v.has(m)&&v.delete(m)}}return{checkedKeys:Array.from(v),indeterminateKeys:Array.from(y)}}function Qt(e,t,r,o){const{treeNodeMap:n,getChildren:i}=t,l=new Set,d=new Set(e);return e.forEach(a=>{const s=n.get(a);s!==void 0&&ii(s,u=>{if(u.disabled)return Rr.STOP;const{key:f}=u;if(!l.has(f)&&(l.add(f),d.add(f),Ou(u.rawNode,i))){if(o)return Rr.STOP;if(!r)throw new Eu}})}),d}function Nu(e,{includeGroup:t=!1,includeSelf:r=!0},o){var n;const i=o.treeNodeMap;let l=e==null?null:(n=i.get(e))!==null&&n!==void 0?n:null;const d={keyPath:[],treeNodePath:[],treeNode:l};if(l!=null&&l.ignored)return d.treeNode=null,d;for(;l;)!l.ignored&&(t||!l.isGroup)&&d.treeNodePath.push(l),l=l.parent;return d.treeNodePath.reverse(),r||d.treeNodePath.pop(),d.keyPath=d.treeNodePath.map(a=>a.key),d}function Hu(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function ju(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n+1)%o]:n===r.length-1?null:r[n+1]}function Yo(e,t,{loop:r=!1,includeDisabled:o=!1}={}){const n=t==="prev"?Uu:ju,i={reverse:t==="prev"};let l=!1,d=null;function a(s){if(s!==null){if(s===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){d=e;return}}else if((!s.disabled||o)&&!s.ignored&&!s.isGroup){d=s;return}if(s.isGroup){const u=ro(s,i);u!==null?d=u:a(n(s,r))}else{const u=n(s,!1);if(u!==null)a(u);else{const f=Wu(s);f!=null&&f.isGroup?a(n(f,r)):r&&a(n(s,!0))}}}}return a(e),d}function Uu(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n-1+o)%o]:n===0?null:r[n-1]}function Wu(e){return e.parent}function ro(e,t={}){const{reverse:r=!1}=t,{children:o}=e;if(o){const{length:n}=o,i=r?n-1:0,l=r?-1:n,d=r?-1:1;for(let a=i;a!==l;a+=d){const s=o[a];if(!s.disabled&&!s.ignored)if(s.isGroup){const u=ro(s,t);if(u!==null)return u}else return s}}return null}const Vu={getChild(){return this.ignored?null:ro(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Yo(this,"next",e)},getPrev(e={}){return Yo(this,"prev",e)}};function Ku(e,t){const r=t?new Set(t):void 0,o=[];function n(i){i.forEach(l=>{o.push(l),!(l.isLeaf||!l.children||l.ignored)&&(l.isGroup||r===void 0||r.has(l.key))&&n(l.children)})}return n(e),o}function qu(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function ai(e,t,r,o,n,i=null,l=0){const d=[];return e.forEach((a,s)=>{var u;const f=Object.create(o);if(f.rawNode=a,f.siblings=d,f.level=l,f.index=s,f.isFirstChild=s===0,f.isLastChild=s+1===e.length,f.parent=i,!f.ignored){const h=n(a);Array.isArray(h)&&(f.children=ai(h,t,r,o,n,f,l+1))}d.push(f),t.set(f.key,f),r.has(l)||r.set(l,[]),(u=r.get(l))===null||u===void 0||u.push(f)}),d}function Gu(e,t={}){var r;const o=new Map,n=new Map,{getDisabled:i=Ru,getIgnored:l=Iu,getIsGroup:d=Lu,getKey:a=Tu}=t,s=(r=t.getChildren)!==null&&r!==void 0?r:zu,u=t.ignoreEmptyChildren?b=>{const m=s(b);return Array.isArray(m)?m.length?m:null:m}:s,f=Object.assign({get key(){return a(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return d(this.rawNode)},get isLeaf(){return $u(this.rawNode,u)},get shallowLoaded(){return _u(this.rawNode,u)},get ignored(){return l(this.rawNode)},contains(b){return qu(this,b)}},Vu),h=ai(e,o,n,f,u);function p(b){if(b==null)return null;const m=o.get(b);return m&&!m.isGroup&&!m.ignored?m:null}function v(b){if(b==null)return null;const m=o.get(b);return m&&!m.ignored?m:null}function y(b,m){const R=v(b);return R?R.getPrev(m):null}function w(b,m){const R=v(b);return R?R.getNext(m):null}function x(b){const m=v(b);return m?m.getParent():null}function P(b){const m=v(b);return m?m.getChild():null}const k={treeNodes:h,treeNodeMap:o,levelTreeNodeMap:n,maxLevel:Math.max(...n.keys()),getChildren:u,getFlattenedNodes(b){return Ku(h,b)},getNode:p,getPrev:y,getNext:w,getParent:x,getChild:P,getFirstAvailableNode(){return Hu(h)},getPath(b,m={}){return Nu(b,m,k)},getCheckedKeys(b,m={}){const{cascade:R=!0,leafOnly:z=!1,checkStrategy:A="all",allowNotLoaded:$=!1}=m;return br({checkedKeys:gr(b),indeterminateKeys:mr(b),cascade:R,leafOnly:z,checkStrategy:A,allowNotLoaded:$},k)},check(b,m,R={}){const{cascade:z=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:_=!1}=R;return br({checkedKeys:gr(m),indeterminateKeys:mr(m),keysToCheck:b==null?[]:Xo(b),cascade:z,leafOnly:A,checkStrategy:$,allowNotLoaded:_},k)},uncheck(b,m,R={}){const{cascade:z=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:_=!1}=R;return br({checkedKeys:gr(m),indeterminateKeys:mr(m),keysToUncheck:b==null?[]:Xo(b),cascade:z,leafOnly:A,checkStrategy:$,allowNotLoaded:_},k)},getNonLeafKeys(b={}){return Pu(h,b)}};return k}const Xu={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},Yu=e=>{const{textColorDisabled:t,iconColor:r,textColor2:o,fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:d}=e;return Object.assign(Object.assign({},Xu),{fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:d,textColor:t,iconColor:r,extraTextColor:o})},Zu={name:"Empty",common:Be,self:Yu},Ju=Zu,Qu=S("empty",` +import{r as M,w as Ie,o as et,a as nt,i as Fa,c as D,b as Na,h as Ha,d as hn,e as _e,f as ja,g as Me,j as Ge,k as ue,m as Er,l as Ar,p as tr,u as We,n as q,q as Re,s as Dr,t as Ua,v as xt,x as vo,C as Wa,y as Va,z as ee,A as Fr,B as c,D as Nr,L as pn,E as Xt,F as rr,G as or,H as Ka,I as qa,J as Hr,K as Ga,M as rt,N as vn,O as jr,P as Ur,Q as St,R as gn,S as kr,T as go,U as Xa,V as mo,W as bo,X as Gt,Y as Ya,Z as yo,_ as Za,$ as Ja,a0 as Qa,a1 as el,a2 as tl,a3 as rl,a4 as ol,a5 as mn,a6 as Xe,a7 as Be,a8 as S,a9 as B,aa as L,ab as $e,ac as ae,ad as Fe,ae as pe,af as ie,ag as Te,ah as j,ai as nl,aj as ft,ak as bt,al as wo,am as bn,an as xo,ao as Co,ap as il,aq as Lt,ar as Ze,as as Ve,at as yn,au as So,av as al,aw as ll,ax as wn,ay as me,az as le,aA as kt,aB as sl,aC as ko,aD as xn,aE as Cn,aF as Sn,aG as yt,aH as dl,aI as cl,aJ as ul,aK as kn,aL as fl,aM as hl,aN as pl,aO as Wr,aP as Et,aQ as Ae,aR as vl,aS as Vr,aT as Yt,aU as Pn,aV as gl,aW as ml,aX as Po,aY as bl,aZ as $o,a_ as yl,a$ as Pr,b0 as $n,b1 as zn,b2 as Pt,b3 as wl,b4 as Kr,b5 as qr,b6 as Gr,b7 as Xr,b8 as Tn,b9 as ce,ba as zo,bb as xl,bc as Yr,bd as te,be as Se,bf as Ue,bg as ke,bh as X,bi as be,bj as G,bk as Cl,bl as E,bm as se,bn as ut,bo as ot,bp as Sl,bq as In,br as kl,bs as $r,bt as _n,bu as Je,bv as Rn,bw as Pl,bx as $l}from"./index-2fa7b466.js";let Zt=[];const On=new WeakMap;function zl(){Zt.forEach(e=>e(...On.get(e))),Zt=[]}function Mn(e,...t){On.set(e,t),!Zt.includes(e)&&Zt.push(e)===1&&requestAnimationFrame(zl)}function To(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function Tl(e,t="default",r=[]){const n=e.$slots[t];return n===void 0?r:n()}function Il(e){return t=>{t?e.value=t.$el:e.value=null}}const _l=/^(\d|\.)+$/,Io=/(\d|\.)+/;function qe(e,{c:t=1,offset:r=0,attachPx:o=!0}={}){if(typeof e=="number"){const n=(e+r)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(_l.test(e)){const n=(Number(e)+r)*t;return o?n===0?"0":`${n}px`:`${n}`}else{const n=Io.exec(e);return n?e.replace(Io,String((Number(n[0])+r)*t)):e}return e}let ur;function Rl(){return ur===void 0&&(ur=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),ur}function Ol(e,t,r){if(!t)return e;const o=M(e.value);let n=null;return Ie(e,i=>{n!==null&&window.clearTimeout(n),i===!0?r&&!r.value?o.value=!0:n=window.setTimeout(()=>{o.value=!0},t):o.value=!1}),o}let wt,Ot;const Ml=()=>{var e,t;wt=Fa?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Ot=!1,wt!==void 0?wt.then(()=>{Ot=!0}):Ot=!0};Ml();function Bl(e){if(Ot)return;let t=!1;et(()=>{Ot||wt==null||wt.then(()=>{t||e()})}),nt(()=>{t=!0})}function nr(e,t){return Ie(e,r=>{r!==void 0&&(t.value=r)}),D(()=>e.value===void 0?t.value:e.value)}function Ll(e,t){return D(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}function El(e={},t){const r=Na({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:n}=e,i=a=>{switch(a.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}o!==void 0&&Object.keys(o).forEach(s=>{if(s!==a.key)return;const u=o[s];if(typeof u=="function")u(a);else{const{stop:f=!1,prevent:h=!1}=u;f&&a.stopPropagation(),h&&a.preventDefault(),u.handler(a)}})},l=a=>{switch(a.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}n!==void 0&&Object.keys(n).forEach(s=>{if(s!==a.key)return;const u=n[s];if(typeof u=="function")u(a);else{const{stop:f=!1,prevent:h=!1}=u;f&&a.stopPropagation(),h&&a.preventDefault(),u.handler(a)}})},d=()=>{(t===void 0||t.value)&&(Me("keydown",document,i),Me("keyup",document,l)),t!==void 0&&Ie(t,a=>{a?(Me("keydown",document,i),Me("keyup",document,l)):(_e("keydown",document,i),_e("keyup",document,l))})};return Ha()?(hn(d),nt(()=>{(t===void 0||t.value)&&(_e("keydown",document,i),_e("keyup",document,l))})):d(),ja(r)}const Al=Ge("n-internal-select-menu-body"),Bn="__disabled__";function Ct(e){const t=ue(Er,null),r=ue(Ar,null),o=ue(tr,null),n=ue(Al,null),i=M();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};et(()=>{Me("fullscreenchange",document,l)}),nt(()=>{_e("fullscreenchange",document,l)})}return We(()=>{var l;const{to:d}=e;return d!==void 0?d===!1?Bn:d===!0?i.value||"body":d:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:n!=null&&n.value?n.value:d??(i.value||"body")})}Ct.tdkey=Bn;Ct.propTo={type:[String,Object,Boolean],default:void 0};let tt=null;function Ln(){if(tt===null&&(tt=document.getElementById("v-binder-view-measurer"),tt===null)){tt=document.createElement("div"),tt.id="v-binder-view-measurer";const{style:e}=tt;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(tt)}return tt.getBoundingClientRect()}function Dl(e,t){const r=Ln();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function fr(e){const t=e.getBoundingClientRect(),r=Ln();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function Fl(e){return e.nodeType===9?null:e.parentNode}function En(e){if(e===null)return null;const t=Fl(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:o,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+n+o))return t}return En(t)}const Nl=q({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Re("VBinder",(t=Dr())===null||t===void 0?void 0:t.proxy);const r=ue("VBinder",null),o=M(null),n=x=>{o.value=x,r&&e.syncTargetWithParent&&r.setTargetRef(x)};let i=[];const l=()=>{let x=o.value;for(;x=En(x),x!==null;)i.push(x);for(const P of i)Me("scroll",P,f,!0)},d=()=>{for(const x of i)_e("scroll",x,f,!0);i=[]},a=new Set,s=x=>{a.size===0&&l(),a.has(x)||a.add(x)},u=x=>{a.has(x)&&a.delete(x),a.size===0&&d()},f=()=>{Mn(h)},h=()=>{a.forEach(x=>x())},p=new Set,v=x=>{p.size===0&&Me("resize",window,w),p.has(x)||p.add(x)},y=x=>{p.has(x)&&p.delete(x),p.size===0&&_e("resize",window,w)},w=()=>{p.forEach(x=>x())};return nt(()=>{_e("resize",window,w),d()}),{targetRef:o,setTargetRef:n,addScrollListener:s,removeScrollListener:u,addResizeListener:v,removeResizeListener:y}},render(){return Ua("binder",this.$slots)}}),An=Nl,Dn=q({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=ue("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?xt(vo("follower",this.$slots),[[t]]):vo("follower",this.$slots)}}),pt="@@mmoContext",Hl={mounted(e,{value:t}){e[pt]={handler:void 0},typeof t=="function"&&(e[pt].handler=t,Me("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[pt];typeof t=="function"?r.handler?r.handler!==t&&(_e("mousemoveoutside",e,r.handler),r.handler=t,Me("mousemoveoutside",e,t)):(e[pt].handler=t,Me("mousemoveoutside",e,t)):r.handler&&(_e("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[pt];t&&_e("mousemoveoutside",e,t),e[pt].handler=void 0}},jl=Hl,{c:Ht}=Wa(),Ul="vueuc-style",jt={top:"bottom",bottom:"top",left:"right",right:"left"},_o={start:"end",center:"center",end:"start"},hr={top:"height",bottom:"height",left:"width",right:"width"},Wl={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Vl={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Kl={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Ro={top:!0,bottom:!1,left:!0,right:!1},Oo={top:"end",bottom:"start",left:"end",right:"start"};function ql(e,t,r,o,n,i){if(!n||i)return{placement:e,top:0,left:0};const[l,d]=e.split("-");let a=d??"center",s={top:0,left:0};const u=(p,v,y)=>{let w=0,x=0;const P=r[p]-t[v]-t[p];return P>0&&o&&(y?x=Ro[v]?P:-P:w=Ro[v]?P:-P),{left:w,top:x}},f=l==="left"||l==="right";if(a!=="center"){const p=Kl[e],v=jt[p],y=hr[p];if(r[y]>t[y]){if(t[p]+t[y]t[v]&&(a=_o[d])}else{const p=l==="bottom"||l==="top"?"left":"top",v=jt[p],y=hr[p],w=(r[y]-t[y])/2;(t[p]t[v]?(a=Oo[p],s=u(y,p,f)):(a=Oo[v],s=u(y,v,f)))}let h=l;return t[l] *",{pointerEvents:"all"})])]),Fn=q({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=ue("VBinder"),r=We(()=>e.enabled!==void 0?e.enabled:e.show),o=M(null),n=M(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(a),h.includes("resize")&&t.addResizeListener(a)},l=()=>{t.removeScrollListener(a),t.removeResizeListener(a)};et(()=>{r.value&&(a(),i())});const d=Va();Yl.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ul,ssr:d}),nt(()=>{l()}),Bl(()=>{r.value&&a()});const a=()=>{if(!r.value)return;const h=o.value;if(h===null)return;const p=t.targetRef,{x:v,y,overlap:w}=e,x=v!==void 0&&y!==void 0?Dl(v,y):fr(p);h.style.setProperty("--v-target-width",`${Math.round(x.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(x.height)}px`);const{width:P,minWidth:k,placement:b,internalShift:m,flip:R}=e;h.setAttribute("v-placement",b),w?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:z}=h;P==="target"?z.width=`${x.width}px`:P!==void 0?z.width=P:z.width="",k==="target"?z.minWidth=`${x.width}px`:k!==void 0?z.minWidth=k:z.minWidth="";const A=fr(h),$=fr(n.value),{left:_,top:K,placement:F}=ql(b,x,A,m,R,w),O=Gl(F,w),{left:C,top:T,transform:H}=Xl(F,$,x,K,_,w);h.setAttribute("v-placement",F),h.style.setProperty("--v-offset-left",`${Math.round(_)}px`),h.style.setProperty("--v-offset-top",`${Math.round(K)}px`),h.style.transform=`translateX(${C}) translateY(${T}) ${H}`,h.style.setProperty("--v-transform-origin",O),h.style.transformOrigin=O};Ie(r,h=>{h?(i(),s()):l()});const s=()=>{Xt().then(a).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{Ie(ee(e,h),a)}),["teleportDisabled"].forEach(h=>{Ie(ee(e,h),s)}),Ie(ee(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(a):t.removeResizeListener(a),h.includes("scroll")?t.addScrollListener(a):t.removeScrollListener(a)});const u=Fr(),f=We(()=>{const{to:h}=e;if(h!==void 0)return h;u.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:n,followerRef:o,mergedTo:f,syncPosition:a}},render(){return c(pn,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=c("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[c("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?xt(r,[[Nr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var Zl=rr(or,"WeakMap");const zr=Zl;var Jl=Ka(Object.keys,Object);const Ql=Jl;var es=Object.prototype,ts=es.hasOwnProperty;function rs(e){if(!qa(e))return Ql(e);var t=[];for(var r in Object(e))ts.call(e,r)&&r!="constructor"&&t.push(r);return t}function Zr(e){return Hr(e)?Ga(e):rs(e)}var os=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ns=/^\w*$/;function Jr(e,t){if(rt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||vn(e)?!0:ns.test(e)||!os.test(e)||t!=null&&e in Object(t)}var is="Expected a function";function Qr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(is);var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],i=r.cache;if(i.has(n))return i.get(n);var l=e.apply(this,o);return r.cache=i.set(n,l)||i,l};return r.cache=new(Qr.Cache||jr),r}Qr.Cache=jr;var as=500;function ls(e){var t=Qr(e,function(o){return r.size===as&&r.clear(),o}),r=t.cache;return t}var ss=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ds=/\\(\\)?/g,cs=ls(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ss,function(r,o,n,i){t.push(n?i.replace(ds,"$1"):o||r)}),t});const us=cs;function Nn(e,t){return rt(e)?e:Jr(e,t)?[e]:us(Ur(e))}var fs=1/0;function ir(e){if(typeof e=="string"||vn(e))return e;var t=e+"";return t=="0"&&1/e==-fs?"-0":t}function Hn(e,t){t=Nn(t,e);for(var r=0,o=t.length;e!=null&&rd))return!1;var s=i.get(e),u=i.get(t);if(s&&u)return s==t&&u==e;var f=-1,h=!0,p=r&zd?new Jt:void 0;for(i.set(e,t),i.set(t,e);++f`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},xc=wc;function vr(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,o=e.formats[r]||e.formats[e.defaultWidth];return o}}function _t(e){return function(t,r){var o=r!=null&&r.context?String(r.context):"standalone",n;if(o==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):i;n=e.formattingValues[l]||e.formattingValues[i]}else{var d=e.defaultWidth,a=r!=null&&r.width?String(r.width):e.defaultWidth;n=e.values[a]||e.values[d]}var s=e.argumentCallback?e.argumentCallback(t):t;return n[s]}}function Rt(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.width,n=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var l=i[0],d=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(d)?Sc(d,function(f){return f.test(l)}):Cc(d,function(f){return f.test(l)}),s;s=e.valueCallback?e.valueCallback(a):a,s=r.valueCallback?r.valueCallback(s):s;var u=t.slice(l.length);return{value:s,rest:u}}}function Cc(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Sc(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var n=o[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];l=r.valueCallback?r.valueCallback(l):l;var d=t.slice(n.length);return{value:l,rest:d}}}var Pc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},$c=function(t,r,o){var n,i=Pc[t];return typeof i=="string"?n=i:r===1?n=i.one:n=i.other.replace("{{count}}",r.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n};const zc=$c;var Tc={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ic={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_c={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rc={date:vr({formats:Tc,defaultWidth:"full"}),time:vr({formats:Ic,defaultWidth:"full"}),dateTime:vr({formats:_c,defaultWidth:"full"})};const Oc=Rc;var Mc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Bc=function(t,r,o,n){return Mc[t]};const Lc=Bc;var Ec={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ac={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Dc={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Fc={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Nc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Hc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jc=function(t,r){var o=Number(t),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},Uc={ordinalNumber:jc,era:_t({values:Ec,defaultWidth:"wide"}),quarter:_t({values:Ac,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:_t({values:Dc,defaultWidth:"wide"}),day:_t({values:Fc,defaultWidth:"wide"}),dayPeriod:_t({values:Nc,defaultWidth:"wide",formattingValues:Hc,defaultFormattingWidth:"wide"})};const Wc=Uc;var Vc=/^(\d+)(th|st|nd|rd)?/i,Kc=/\d+/i,qc={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Gc={any:[/^b/i,/^(a|c)/i]},Xc={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Yc={any:[/1/i,/2/i,/3/i,/4/i]},Zc={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Jc={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Qc={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},eu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},tu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ru={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ou={ordinalNumber:kc({matchPattern:Vc,parsePattern:Kc,valueCallback:function(t){return parseInt(t,10)}}),era:Rt({matchPatterns:qc,defaultMatchWidth:"wide",parsePatterns:Gc,defaultParseWidth:"any"}),quarter:Rt({matchPatterns:Xc,defaultMatchWidth:"wide",parsePatterns:Yc,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Rt({matchPatterns:Zc,defaultMatchWidth:"wide",parsePatterns:Jc,defaultParseWidth:"any"}),day:Rt({matchPatterns:Qc,defaultMatchWidth:"wide",parsePatterns:eu,defaultParseWidth:"any"}),dayPeriod:Rt({matchPatterns:tu,defaultMatchWidth:"any",parsePatterns:ru,defaultParseWidth:"any"})};const nu=ou;var iu={code:"en-US",formatDistance:zc,formatLong:Oc,formatRelative:Lc,localize:Wc,match:nu,options:{weekStartsOn:0,firstWeekContainsDate:1}};const au=iu,lu={name:"en-US",locale:au},su=lu;function to(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=ue(mn,null)||{},o=D(()=>{var i,l;return(l=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&l!==void 0?l:xc[e]});return{dateLocaleRef:D(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:su}),localeRef:o}}const du=q({name:"Add",render(){return c("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),cu=Xe("attach",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),uu=q({name:"ChevronRight",render(){return c("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),ni=q({name:"Eye",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),c("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),fu=q({name:"EyeOff",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),c("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),c("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),c("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),c("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),hu=Xe("trash",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),pu=Xe("download",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),vu=q({name:"Empty",render(){return c("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),c("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),gu=Xe("cancel",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),mu=q({name:"ChevronDown",render(){return c("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),bu=Xe("clear",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),yu=Xe("retry",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),c("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),wu=Xe("rotateClockwise",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),c("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),xu=Xe("rotateClockwise",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),c("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),Cu=Xe("zoomIn",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),c("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),Su=Xe("zoomOut",c("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),c("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),ku=q({name:"ResizeSmall",render(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},c("g",{fill:"none"},c("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}});function Xo(e){return Array.isArray(e)?e:[e]}const Rr={STOP:"STOP"};function ii(e,t){const r=t(e);e.children!==void 0&&r!==Rr.STOP&&e.children.forEach(o=>ii(o,t))}function Pu(e,t={}){const{preserveGroup:r=!1}=t,o=[],n=r?l=>{l.isLeaf||(o.push(l.key),i(l.children))}:l=>{l.isLeaf||(l.isGroup||o.push(l.key),i(l.children))};function i(l){l.forEach(n)}return i(e),o}function $u(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function zu(e){return e.children}function Tu(e){return e.key}function Iu(){return!1}function _u(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function Ru(e){return e.disabled===!0}function Ou(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function gr(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function mr(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function Mu(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)||r.add(o)}),Array.from(r)}function Bu(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)&&r.delete(o)}),Array.from(r)}function Lu(e){return(e==null?void 0:e.type)==="group"}class Eu extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Au(e,t,r,o){return Qt(t.concat(e),r,o,!1)}function Du(e,t){const r=new Set;return e.forEach(o=>{const n=t.treeNodeMap.get(o);if(n!==void 0){let i=n.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function Fu(e,t,r,o){const n=Qt(t,r,o,!1),i=Qt(e,r,o,!0),l=Du(e,r),d=[];return n.forEach(a=>{(i.has(a)||l.has(a))&&d.push(a)}),d.forEach(a=>n.delete(a)),n}function br(e,t){const{checkedKeys:r,keysToCheck:o,keysToUncheck:n,indeterminateKeys:i,cascade:l,leafOnly:d,checkStrategy:a,allowNotLoaded:s}=e;if(!l)return o!==void 0?{checkedKeys:Mu(r,o),indeterminateKeys:Array.from(i)}:n!==void 0?{checkedKeys:Bu(r,n),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:u}=t;let f;n!==void 0?f=Fu(n,r,t,s):o!==void 0?f=Au(o,r,t,s):f=Qt(r,t,s,!1);const h=a==="parent",p=a==="child"||d,v=f,y=new Set,w=Math.max.apply(null,Array.from(u.keys()));for(let x=w;x>=0;x-=1){const P=x===0,k=u.get(x);for(const b of k){if(b.isLeaf)continue;const{key:m,shallowLoaded:R}=b;if(p&&R&&b.children.forEach(_=>{!_.disabled&&!_.isLeaf&&_.shallowLoaded&&v.has(_.key)&&v.delete(_.key)}),b.disabled||!R)continue;let z=!0,A=!1,$=!0;for(const _ of b.children){const K=_.key;if(!_.disabled){if($&&($=!1),v.has(K))A=!0;else if(y.has(K)){A=!0,z=!1;break}else if(z=!1,A)break}}z&&!$?(h&&b.children.forEach(_=>{!_.disabled&&v.has(_.key)&&v.delete(_.key)}),v.add(m)):A&&y.add(m),P&&p&&v.has(m)&&v.delete(m)}}return{checkedKeys:Array.from(v),indeterminateKeys:Array.from(y)}}function Qt(e,t,r,o){const{treeNodeMap:n,getChildren:i}=t,l=new Set,d=new Set(e);return e.forEach(a=>{const s=n.get(a);s!==void 0&&ii(s,u=>{if(u.disabled)return Rr.STOP;const{key:f}=u;if(!l.has(f)&&(l.add(f),d.add(f),Ou(u.rawNode,i))){if(o)return Rr.STOP;if(!r)throw new Eu}})}),d}function Nu(e,{includeGroup:t=!1,includeSelf:r=!0},o){var n;const i=o.treeNodeMap;let l=e==null?null:(n=i.get(e))!==null&&n!==void 0?n:null;const d={keyPath:[],treeNodePath:[],treeNode:l};if(l!=null&&l.ignored)return d.treeNode=null,d;for(;l;)!l.ignored&&(t||!l.isGroup)&&d.treeNodePath.push(l),l=l.parent;return d.treeNodePath.reverse(),r||d.treeNodePath.pop(),d.keyPath=d.treeNodePath.map(a=>a.key),d}function Hu(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function ju(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n+1)%o]:n===r.length-1?null:r[n+1]}function Yo(e,t,{loop:r=!1,includeDisabled:o=!1}={}){const n=t==="prev"?Uu:ju,i={reverse:t==="prev"};let l=!1,d=null;function a(s){if(s!==null){if(s===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){d=e;return}}else if((!s.disabled||o)&&!s.ignored&&!s.isGroup){d=s;return}if(s.isGroup){const u=ro(s,i);u!==null?d=u:a(n(s,r))}else{const u=n(s,!1);if(u!==null)a(u);else{const f=Wu(s);f!=null&&f.isGroup?a(n(f,r)):r&&a(n(s,!0))}}}}return a(e),d}function Uu(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n-1+o)%o]:n===0?null:r[n-1]}function Wu(e){return e.parent}function ro(e,t={}){const{reverse:r=!1}=t,{children:o}=e;if(o){const{length:n}=o,i=r?n-1:0,l=r?-1:n,d=r?-1:1;for(let a=i;a!==l;a+=d){const s=o[a];if(!s.disabled&&!s.ignored)if(s.isGroup){const u=ro(s,t);if(u!==null)return u}else return s}}return null}const Vu={getChild(){return this.ignored?null:ro(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Yo(this,"next",e)},getPrev(e={}){return Yo(this,"prev",e)}};function Ku(e,t){const r=t?new Set(t):void 0,o=[];function n(i){i.forEach(l=>{o.push(l),!(l.isLeaf||!l.children||l.ignored)&&(l.isGroup||r===void 0||r.has(l.key))&&n(l.children)})}return n(e),o}function qu(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function ai(e,t,r,o,n,i=null,l=0){const d=[];return e.forEach((a,s)=>{var u;const f=Object.create(o);if(f.rawNode=a,f.siblings=d,f.level=l,f.index=s,f.isFirstChild=s===0,f.isLastChild=s+1===e.length,f.parent=i,!f.ignored){const h=n(a);Array.isArray(h)&&(f.children=ai(h,t,r,o,n,f,l+1))}d.push(f),t.set(f.key,f),r.has(l)||r.set(l,[]),(u=r.get(l))===null||u===void 0||u.push(f)}),d}function Gu(e,t={}){var r;const o=new Map,n=new Map,{getDisabled:i=Ru,getIgnored:l=Iu,getIsGroup:d=Lu,getKey:a=Tu}=t,s=(r=t.getChildren)!==null&&r!==void 0?r:zu,u=t.ignoreEmptyChildren?b=>{const m=s(b);return Array.isArray(m)?m.length?m:null:m}:s,f=Object.assign({get key(){return a(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return d(this.rawNode)},get isLeaf(){return $u(this.rawNode,u)},get shallowLoaded(){return _u(this.rawNode,u)},get ignored(){return l(this.rawNode)},contains(b){return qu(this,b)}},Vu),h=ai(e,o,n,f,u);function p(b){if(b==null)return null;const m=o.get(b);return m&&!m.isGroup&&!m.ignored?m:null}function v(b){if(b==null)return null;const m=o.get(b);return m&&!m.ignored?m:null}function y(b,m){const R=v(b);return R?R.getPrev(m):null}function w(b,m){const R=v(b);return R?R.getNext(m):null}function x(b){const m=v(b);return m?m.getParent():null}function P(b){const m=v(b);return m?m.getChild():null}const k={treeNodes:h,treeNodeMap:o,levelTreeNodeMap:n,maxLevel:Math.max(...n.keys()),getChildren:u,getFlattenedNodes(b){return Ku(h,b)},getNode:p,getPrev:y,getNext:w,getParent:x,getChild:P,getFirstAvailableNode(){return Hu(h)},getPath(b,m={}){return Nu(b,m,k)},getCheckedKeys(b,m={}){const{cascade:R=!0,leafOnly:z=!1,checkStrategy:A="all",allowNotLoaded:$=!1}=m;return br({checkedKeys:gr(b),indeterminateKeys:mr(b),cascade:R,leafOnly:z,checkStrategy:A,allowNotLoaded:$},k)},check(b,m,R={}){const{cascade:z=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:_=!1}=R;return br({checkedKeys:gr(m),indeterminateKeys:mr(m),keysToCheck:b==null?[]:Xo(b),cascade:z,leafOnly:A,checkStrategy:$,allowNotLoaded:_},k)},uncheck(b,m,R={}){const{cascade:z=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:_=!1}=R;return br({checkedKeys:gr(m),indeterminateKeys:mr(m),keysToUncheck:b==null?[]:Xo(b),cascade:z,leafOnly:A,checkStrategy:$,allowNotLoaded:_},k)},getNonLeafKeys(b={}){return Pu(h,b)}};return k}const Xu={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},Yu=e=>{const{textColorDisabled:t,iconColor:r,textColor2:o,fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:d}=e;return Object.assign(Object.assign({},Xu),{fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:l,fontSizeHuge:d,textColor:t,iconColor:r,extraTextColor:o})},Zu={name:"Empty",common:Be,self:Yu},Ju=Zu,Qu=S("empty",` display: flex; flex-direction: column; align-items: center; @@ -1247,7 +1247,7 @@ import{r as M,w as Ie,o as et,a as nt,i as Fa,c as D,b as Na,h as Ha,d as hn,e a width: 0; height: 0; opacity: 0; - `)]);var an=globalThis&&globalThis.__awaiter||function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(l){l(i)})}return new(r||(r=Promise))(function(i,l){function d(u){try{s(o.next(u))}catch(f){l(f)}}function a(u){try{s(o.throw(u))}catch(f){l(f)}}function s(u){u.done?i(u.value):n(u.value).then(d,a)}s((o=o.apply(e,t||[])).next())})};function zp(e,t,r){const{doChange:o,xhrMap:n}=e;let i=0;function l(a){var s;let u=Object.assign({},t,{status:"error",percentage:i});n.delete(t.id),u=Bt(((s=e.onError)===null||s===void 0?void 0:s.call(e,{file:u,event:a}))||u),o(u,a)}function d(a){var s;if(e.isErrorState){if(e.isErrorState(r)){l(a);return}}else if(r.status<200||r.status>=300){l(a);return}let u=Object.assign({},t,{status:"finished",percentage:i});n.delete(t.id),u=Bt(((s=e.onFinish)===null||s===void 0?void 0:s.call(e,{file:u,event:a}))||u),o(u,a)}return{handleXHRLoad:d,handleXHRError:l,handleXHRAbort(a){const s=Object.assign({},t,{status:"removed",file:null,percentage:i});n.delete(t.id),o(s,a)},handleXHRProgress(a){const s=Object.assign({},t,{status:"uploading"});if(a.lengthComputable){const u=Math.ceil(a.loaded/a.total*100);s.percentage=u,i=u}o(s,a)}}}function Tp(e){const{inst:t,file:r,data:o,headers:n,withCredentials:i,action:l,customRequest:d}=e,{doChange:a}=e.inst;let s=0;d({file:r,data:o,headers:n,withCredentials:i,action:l,onProgress(u){const f=Object.assign({},r,{status:"uploading"}),h=u.percent;f.percentage=h,s=h,a(f)},onFinish(){var u;let f=Object.assign({},r,{status:"finished",percentage:s});f=Bt(((u=t.onFinish)===null||u===void 0?void 0:u.call(t,{file:f}))||f),a(f)},onError(){var u;let f=Object.assign({},r,{status:"error",percentage:s});f=Bt(((u=t.onError)===null||u===void 0?void 0:u.call(t,{file:f}))||f),a(f)}})}function Ip(e,t,r){const o=zp(e,t,r);r.onabort=o.handleXHRAbort,r.onerror=o.handleXHRError,r.onload=o.handleXHRLoad,r.upload&&(r.upload.onprogress=o.handleXHRProgress)}function Ti(e,t){return typeof e=="function"?e({file:t}):e||{}}function _p(e,t,r){const o=Ti(t,r);o&&Object.keys(o).forEach(n=>{e.setRequestHeader(n,o[n])})}function Rp(e,t,r){const o=Ti(t,r);o&&Object.keys(o).forEach(n=>{e.append(n,o[n])})}function Op(e,t,r,{method:o,action:n,withCredentials:i,responseType:l,headers:d,data:a}){const s=new XMLHttpRequest;s.responseType=l,e.xhrMap.set(r.id,s),s.withCredentials=i;const u=new FormData;if(Rp(u,a,r),u.append(t,r.file),Ip(e,r,s),n!==void 0){s.open(o.toUpperCase(),n),_p(s,d,r),s.send(u);const f=Object.assign({},r,{status:"uploading"});e.doChange(f)}}const Mp=Object.assign(Object.assign({},ae.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>pp?$i(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),Bp=q({name:"Upload",props:Mp,setup(e){e.abstract&&e.listType==="image-card"&&Pt("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=$e(e),o=ae("Upload","-upload",$p,Mh,e,t),n=kn(e),i=D(()=>{const{max:$}=e;return $!==void 0?p.value.length>=$:!1}),l=M(e.defaultFileList),d=ee(e,"fileList"),a=M(null),s={value:!1},u=M(!1),f=new Map,h=nr(d,l),p=D(()=>h.value.map(Bt));function v(){var $;($=a.value)===null||$===void 0||$.click()}function y($){const _=$.target;P(_.files?Array.from(_.files).map(K=>({file:K,entry:null,source:"input"})):null,$),_.value=""}function w($){const{"onUpdate:fileList":_,onUpdateFileList:K}=e;_&&me(_,$),K&&me(K,$),l.value=$}const x=D(()=>e.multiple||e.directory);function P($,_){if(!$||$.length===0)return;const{onBeforeUpload:K}=e;$=x.value?$:[$[0]];const{max:F,accept:O}=e;$=$.filter(({file:T,source:H})=>H==="dnd"&&(O!=null&&O.trim())?bp(T.name,T.type,O):!0),F&&($=$.slice(0,F-p.value.length));const C=Pr();Promise.all($.map(({file:T,entry:H})=>an(this,void 0,void 0,function*(){var N;const Y={id:Pr(),batchId:C,name:T.name,status:"pending",percentage:0,file:T,url:null,type:T.type,thumbnailUrl:null,fullPath:(N=H==null?void 0:H.fullPath)!==null&&N!==void 0?N:`/${T.webkitRelativePath||T.name}`};return!K||(yield K({file:Y,fileList:p.value}))!==!1?Y:null}))).then(T=>an(this,void 0,void 0,function*(){let H=Promise.resolve();T.forEach(N=>{H=H.then(Xt).then(()=>{N&&b(N,_,{append:!0})})}),yield H})).then(()=>{e.defaultUpload&&k()})}function k($){const{method:_,action:K,withCredentials:F,headers:O,data:C,name:T}=e,H=$!==void 0?p.value.filter(Y=>Y.id===$):p.value,N=$!==void 0;H.forEach(Y=>{const{status:re}=Y;(re==="pending"||re==="error"&&N)&&(e.customRequest?Tp({inst:{doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:Y,action:K,withCredentials:F,headers:O,data:C,customRequest:e.customRequest}):Op({doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},T,Y,{method:_,action:K,withCredentials:F,responseType:e.responseType,headers:O,data:C}))})}const b=($,_,K={append:!1,remove:!1})=>{const{append:F,remove:O}=K,C=Array.from(p.value),T=C.findIndex(H=>H.id===$.id);if(F||O||~T){F?C.push($):O?C.splice(T,1):C.splice(T,1,$);const{onChange:H}=e;H&&H({file:$,fileList:C,event:_}),w(C)}};function m($){var _;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:K}=e;return K?(_=K($.file,$))!==null&&_!==void 0?_:$.url||"":$.url?$.url:$.file?hp($.file):""}const R=D(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:_,draggerBorder:K,draggerBorderHover:F,itemColorHover:O,itemColorHoverError:C,itemTextColorError:T,itemTextColorSuccess:H,itemTextColor:N,itemIconColor:Y,itemDisabledOpacity:re,lineHeight:ve,borderRadius:Ce,fontSize:W,itemBorderImageCardError:oe,itemBorderImageCard:Q}}=o.value;return{"--n-bezier":$,"--n-border-radius":Ce,"--n-dragger-border":K,"--n-dragger-border-hover":F,"--n-dragger-color":_,"--n-font-size":W,"--n-item-color-hover":O,"--n-item-color-hover-error":C,"--n-item-disabled-opacity":re,"--n-item-icon-color":Y,"--n-item-text-color":N,"--n-item-text-color-error":T,"--n-item-text-color-success":H,"--n-line-height":ve,"--n-item-border-image-card-error":oe,"--n-item-border-image-card":Q}}),z=r?Fe("upload",void 0,R,e):void 0;Re(zt,{mergedClsPrefixRef:t,mergedThemeRef:o,showCancelButtonRef:ee(e,"showCancelButton"),showDownloadButtonRef:ee(e,"showDownloadButton"),showRemoveButtonRef:ee(e,"showRemoveButton"),showRetryButtonRef:ee(e,"showRetryButton"),onRemoveRef:ee(e,"onRemove"),onDownloadRef:ee(e,"onDownload"),mergedFileListRef:p,triggerStyleRef:ee(e,"triggerStyle"),shouldUseThumbnailUrlRef:ee(e,"shouldUseThumbnailUrl"),renderIconRef:ee(e,"renderIcon"),xhrMap:f,submit:k,doChange:b,showPreviewButtonRef:ee(e,"showPreviewButton"),onPreviewRef:ee(e,"onPreview"),getFileThumbnailUrlResolver:m,listTypeRef:ee(e,"listType"),dragOverRef:u,openOpenFileDialog:v,draggerInsideRef:s,handleFileAddition:P,mergedDisabledRef:n.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:ee(e,"fileListStyle"),abstractRef:ee(e,"abstract"),acceptRef:ee(e,"accept"),cssVarsRef:r?void 0:R,themeClassRef:z==null?void 0:z.themeClass,onRender:z==null?void 0:z.onRender,showTriggerRef:ee(e,"showTrigger"),imageGroupPropsRef:ee(e,"imageGroupProps"),mergedDirectoryDndRef:D(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const A={clear:()=>{l.value=[]},submit:k,openOpenFileDialog:v};return Object.assign({mergedClsPrefix:t,draggerInsideRef:s,inputElRef:a,mergedTheme:o,dragOver:u,mergedMultiple:x,cssVars:r?void 0:R,themeClass:z==null?void 0:z.themeClass,onRender:z==null?void 0:z.onRender,handleFileInputChange:y},A)},render(){var e,t;const{draggerInsideRef:r,mergedClsPrefix:o,$slots:n,directory:i,onRender:l}=this;if(n.default&&!this.abstract){const a=n.default()[0];!((e=a==null?void 0:a.type)===null||e===void 0)&&e[Si]&&(r.value=!0)}const d=c("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${o}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?c(Ve,null,(t=n.default)===null||t===void 0?void 0:t.call(n),c(xl,{to:"body"},d)):(l==null||l(),c("div",{class:[`${o}-upload`,r.value&&`${o}-upload--dragger-inside`,this.dragOver&&`${o}-upload--drag-over`,this.themeClass],style:this.cssVars},d,this.showTrigger&&this.listType!=="image-card"&&c(zi,null,n),this.showFileList&&c(Pp,null,n)))}}),ln="/web/assets/setting-c6ca7b14.svg",At=Yr("prompt-store",()=>{const e=M([{type:1,name:"ChatGPT 中文调教指南 - 简体",url:"./data/prompts/prompts-zh.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"ChatGPT 中文调教指南 - 繁体",url:"./data/prompts/prompts-zh-TW.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"Awesome ChatGPT Prompts",url:"./data/prompts/prompts.csv",refer:"https://github.com/f/awesome-chatgpt-prompts"},{type:2,name:"",url:"",refer:""}]),t=M(!1),r=M(!1),o=M([]),n=M(""),i=M(0),l=M({isShow:!1,newPrompt:{act:"",prompt:""}}),d=D(()=>{var s;return n.value?(s=o.value)==null?void 0:s.filter(u=>u.act.includes(n.value)||u.prompt.includes(n.value)):o.value});function a(s){if(s instanceof Array&&s.every(u=>u.act&&u.prompt)){if(o.value.length===0)return o.value.push(...s),{result:!0,data:{successCount:s.length}};const u=s.filter(f=>{var h;return(h=o.value)==null?void 0:h.every(p=>f.act!==p.act&&f.prompt!==p.prompt)});return o.value.push(...u),{result:!0,data:{successCount:u.length}}}else return{result:!1,msg:"提示词格式有误"}}return{promptDownloadConfig:e,isShowPromptSotre:t,isShowChatPrompt:r,promptList:o,keyword:n,searchPromptList:d,selectedPromptIndex:i,optPromptConfig:l,addPrompt:a}},{persist:{key:"prompt-store",storage:localStorage,paths:["promptList"]}}),Lp=["href"],Ep={key:1},Ap=q({__name:"ChatNavItem",props:{navConfig:{}},setup(e){return(t,r)=>t.navConfig.url?(te(),Se("a",{key:0,href:t.navConfig.url,target:"_blank",rel:"noopener noreferrer"},Ue(t.navConfig.label),9,Lp)):(te(),Se("div",Ep,Ue(t.navConfig.label),1))}}),Ii=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),Dp=e=>new Promise((t,r)=>setTimeout(t,e)),Fp={class:"flex justify-center gap-3 px-8"},Np={class:"flex justify-center items-center"},Hp=["src"],jp=be("p",{class:"text-left"},"提示:形容词+名词+动词+风格,描述得越详细时,效果越好。",-1),sn="骑着摩托的小猫咪,疾驰在路上,动漫场景,详细的细节。",Up=q({__name:"CreateImage",props:{show:{type:Boolean}},emits:["update:show"],setup(e,{emit:t}){const r=e,o=$t(),n=M(""),i=M(""),l=M(!1),d=D({get:()=>r.show,set:f=>t("update:show",f)}),a=()=>{if(!n.value){o.error("请先输入关键词");return}l.value=!0,i.value=`/images/create?re=1&showselective=1&sude=1&kseed=7500&SFX=2&q=${encodeURIComponent(n.value)}&t=${Date.now()}`},s=()=>{n.value="",i.value=""},u=()=>(n.value=sn,a());return(f,h)=>(te(),ke(E(ut),{class:"w-11/12 lg:w-[540px] select-none",show:d.value,"onUpdate:show":h[2]||(h[2]=p=>d.value=p),"on-close":s,preset:"card",title:"图像创建"},{default:X(()=>[be("head",Fp,[G(E(Qe),{class:"flex-1",placeholder:"提示词",value:n.value,"onUpdate:value":h[0]||(h[0]=p=>n.value=p),clearable:!0,onKeyup:Cl(a,["enter"]),maxlength:"100"},null,8,["value","onKeyup"]),G(E(ce),{secondary:"",type:"info",onClick:a,loading:l.value},{default:X(()=>[se("开始创建")]),_:1},8,["loading"])]),be("main",Np,[i.value?(te(),Se("iframe",{key:0,class:"w-[310px] h-[350px] xl:w-[475px] xl:h-[520px] my-4",src:i.value,frameborder:"0",onLoad:h[1]||(h[1]=p=>l.value=!1)},null,40,Hp)):(te(),ke(E(oo),{key:1,class:"h-[40vh] xl:h-[60vh] flex justify-center items-center",description:"暂未创建"},{extra:X(()=>[G(E(ce),{secondary:"",type:"info",onClick:u},{default:X(()=>[se("使用示例创建")]),_:1}),be("div",{class:"text-[#c2c2c2] px-2 xl:px-10"},[jp,be("p",{class:"text-left"},"示例:"+Ue(sn))])]),_:1}))])]),_:1},8,["show"]))}}),so=Yr("chat-store",()=>{const e="/sydney/ChatHub",t=M(!1),r=M(""),o=M([{baseUrl:"https://sydney.bing.com",label:"Bing 官方"},{baseUrl:"https://sydney.vcanbb.chat",label:"Cloudflare"},{baseUrl:location.origin,label:"本站"},{baseUrl:"",label:"自定义",isCus:!0}]),n=3e3,i=async d=>{if(!d.baseUrl)return{isUsable:!1,errorMsg:"链接不可为空"};try{const a=Date.now(),s=new WebSocket(d.baseUrl.replace("http","ws")+e),u=setTimeout(()=>{s.close()},n);return await new Promise((f,h)=>{s.onopen=()=>{clearTimeout(u),f(s.close())},s.onerror=()=>{clearTimeout(u),h(new Error(`聊天服务器 ${d.baseUrl} 连接失败`))},s.onclose=()=>h(new Error(`聊天服务器 ${d.baseUrl} 连接超时`))}),{isUsable:!0,delay:Date.now()-a}}catch(a){return{isUsable:!1,errorMsg:a instanceof Error?a.message:""}}};return{isShowChatServiceSelectModal:t,sydneyConfigs:o,selectedSydneyBaseUrl:r,checkSydneyConfig:i,checkAllSydneyConfig:async()=>{const d=o.value.filter(a=>a.baseUrl).map(async a=>{const s=await i(a);a.isUsable=s.isUsable,a.delay=s.delay});await Promise.all(d)}}},{persist:{key:"chat-store",storage:localStorage,paths:["selectedSydneyBaseUrl","sydneyConfigs"]}});function Wp(e){const t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}function Vp(e,t,r=0,o="/",n=""){let i=e+"="+t+";path="+o;if(n&&(i+=";domain="+n),r>0){const l=new Date;l.setTime(l.getTime()+r*60*1e3),i+=";expires="+l.toUTCString()}document.cookie=i}const st={get:Wp,set:Vp};async function Kp(){return fetch("/sysconf",{credentials:"include"}).then(t=>t.json())}const qp={getSysConfig:Kp};var co=(e=>(e[e.OK=200]="OK",e[e.Unauthorized=401]="Unauthorized",e))(co||{});const _i=Yr("user-store",()=>{const t="_U",r="BingAI_Rand_IP",o="BingAI_Auth_Key",n=M(),i=async()=>{const v=await qp.getSysConfig();return v.code===co.OK&&(n.value={...n.value,...v.data}),v},l=()=>{const v=new Date;return v.setMinutes(v.getMinutes()+CIB.config.sydney.expiryInMinutes),v},d=async(v=0)=>{var w;if(v>=10){console.log(`已重试 ${v} 次,自动创建停止`);return}const y=await fetch("/turing/conversation/create",{credentials:"include"}).then(x=>x.json()).catch(x=>"error");((w=y==null?void 0:y.result)==null?void 0:w.value)==="Success"?(console.log("成功创建会话ID : ",y.conversationId),CIB.manager.conversation.updateId(y.conversationId,l(),y.clientId,y.conversationSignature)):(await Dp(300),v+=1,console.log(`开始第 ${v} 次重试创建会话ID`),st.set(r,"",-1),d(v))},a=()=>st.get(t)||"",s=()=>{a()||(CIB.config.features.enableGetChats=!1,CIB.vm.sidePanel.isVisibleMobile=!1,CIB.vm.sidePanel.isVisibleDesktop=!1),d()},u=v=>{st.set(t,v,7*24*60,"/")},f=v=>{st.set(o,v)},h=async()=>{localStorage.clear(),sessionStorage.clear();const v=await caches.keys();for(const y of v)await caches.delete(y),console.log("del cache : ",y)};return{sysConfig:n,getSysConfig:i,getUserToken:a,checkUserToken:s,saveUserToken:u,resetCache:async()=>{st.set(t,"",-1),st.set(r,"",-1),st.set(o,"",-1),await h()},setAuthKey:f}},{persist:{key:"user-store",storage:localStorage,paths:[]}}),Gp=be("div",{class:"text-3xl py-2"},"设置用户",-1),Xp=be("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),Yp=q({__name:"ChatNav",setup(e){const t=M(!1),r=M(!1),o=M(""),n=$t(),i=At(),{isShowPromptSotre:l}=ot(i),d=M(!1),a=M(!1),s=so(),{isShowChatServiceSelectModal:u}=ot(s),f=_i(),h={github:"github",version:"version",chatService:"chatService",promptStore:"promptStore",setToken:"setToken",compose:"compose",createImage:"createImage",reset:"reset"},p=[{key:h.github,label:"开源地址",url:"https://github.com/adams549659584/go-proxy-bingai"},{key:h.version,label:"版本信息"},{key:h.chatService,label:"服务选择"},{key:h.promptStore,label:"提示词库"},{key:h.setToken,label:"设置用户"},{key:h.compose,label:"撰写文章",url:"/web/compose.html"},{key:h.createImage,label:"图像创建"},{key:h.reset,label:"一键重置"}],v=P=>c(Ap,{navConfig:P}),y=P=>{var k;switch(P){case h.version:n.success("当前版本号为:1.9.0");break;case h.chatService:u.value=!0,s.checkAllSydneyConfig();break;case h.promptStore:l.value=!0;break;case h.setToken:o.value=f.getUserToken(),r.value=!0;break;case h.createImage:!((k=f.sysConfig)!=null&&k.isSysCK)&&!f.getUserToken()&&n.warning("体验画图功能需先登录"),a.value=!0;break;case h.reset:d.value=!0;break}},w=async()=>{d.value=!1,await f.resetCache(),n.success("清理完成"),window.location.reload()},x=()=>{if(!o.value){n.warning("请先填入用户 Cookie");return}f.saveUserToken(o.value),r.value=!1};return(P,k)=>(te(),Se(Ve,null,[E(Ii)()?(te(),ke(E(tn),{key:0,class:"select-none",show:t.value,options:p,"render-label":v,onSelect:y},{default:X(()=>[G(E(Br),{class:"fixed top-6 right-4 cursor-pointer z-50",src:E(ln),alt:"设置菜单","preview-disabled":!0,onClick:k[0]||(k[0]=b=>t.value=!t.value)},null,8,["src"])]),_:1},8,["show"])):(te(),ke(E(tn),{key:1,class:"select-none",trigger:"hover",options:p,"render-label":v,onSelect:y},{default:X(()=>[G(E(Br),{class:"fixed top-6 right-6 cursor-pointer z-50",src:E(ln),alt:"设置菜单","preview-disabled":!0},null,8,["src"])]),_:1})),G(E(ut),{show:r.value,"onUpdate:show":k[3]||(k[3]=b=>r.value=b),preset:"dialog","show-icon":!1},{header:X(()=>[Gp]),action:X(()=>[G(E(ce),{size:"large",onClick:k[2]||(k[2]=b=>r.value=!1)},{default:X(()=>[se("取消")]),_:1}),G(E(ce),{ghost:"",size:"large",type:"info",onClick:x},{default:X(()=>[se("保存")]),_:1})]),default:X(()=>[G(E(Qe),{size:"large",value:o.value,"onUpdate:value":k[1]||(k[1]=b=>o.value=b),type:"text",placeholder:"用户 Cookie ,仅需要 _U 的值"},null,8,["value"])]),_:1},8,["show"]),G(E(ut),{show:d.value,"onUpdate:show":k[5]||(k[5]=b=>d.value=b),preset:"dialog","show-icon":!1},{header:X(()=>[Xp]),action:X(()=>[G(E(ce),{size:"large",onClick:k[4]||(k[4]=b=>d.value=!1)},{default:X(()=>[se("取消")]),_:1}),G(E(ce),{ghost:"",size:"large",type:"error",onClick:w},{default:X(()=>[se("确定")]),_:1})]),_:1},8,["show"]),G(Up,{show:a.value,"onUpdate:show":k[6]||(k[6]=b=>a.value=b)},null,8,["show"])],64))}});function dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function qt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,o=new Array(t);r=300){l(a);return}let u=Object.assign({},t,{status:"finished",percentage:i});n.delete(t.id),u=Bt(((s=e.onFinish)===null||s===void 0?void 0:s.call(e,{file:u,event:a}))||u),o(u,a)}return{handleXHRLoad:d,handleXHRError:l,handleXHRAbort(a){const s=Object.assign({},t,{status:"removed",file:null,percentage:i});n.delete(t.id),o(s,a)},handleXHRProgress(a){const s=Object.assign({},t,{status:"uploading"});if(a.lengthComputable){const u=Math.ceil(a.loaded/a.total*100);s.percentage=u,i=u}o(s,a)}}}function Tp(e){const{inst:t,file:r,data:o,headers:n,withCredentials:i,action:l,customRequest:d}=e,{doChange:a}=e.inst;let s=0;d({file:r,data:o,headers:n,withCredentials:i,action:l,onProgress(u){const f=Object.assign({},r,{status:"uploading"}),h=u.percent;f.percentage=h,s=h,a(f)},onFinish(){var u;let f=Object.assign({},r,{status:"finished",percentage:s});f=Bt(((u=t.onFinish)===null||u===void 0?void 0:u.call(t,{file:f}))||f),a(f)},onError(){var u;let f=Object.assign({},r,{status:"error",percentage:s});f=Bt(((u=t.onError)===null||u===void 0?void 0:u.call(t,{file:f}))||f),a(f)}})}function Ip(e,t,r){const o=zp(e,t,r);r.onabort=o.handleXHRAbort,r.onerror=o.handleXHRError,r.onload=o.handleXHRLoad,r.upload&&(r.upload.onprogress=o.handleXHRProgress)}function Ti(e,t){return typeof e=="function"?e({file:t}):e||{}}function _p(e,t,r){const o=Ti(t,r);o&&Object.keys(o).forEach(n=>{e.setRequestHeader(n,o[n])})}function Rp(e,t,r){const o=Ti(t,r);o&&Object.keys(o).forEach(n=>{e.append(n,o[n])})}function Op(e,t,r,{method:o,action:n,withCredentials:i,responseType:l,headers:d,data:a}){const s=new XMLHttpRequest;s.responseType=l,e.xhrMap.set(r.id,s),s.withCredentials=i;const u=new FormData;if(Rp(u,a,r),u.append(t,r.file),Ip(e,r,s),n!==void 0){s.open(o.toUpperCase(),n),_p(s,d,r),s.send(u);const f=Object.assign({},r,{status:"uploading"});e.doChange(f)}}const Mp=Object.assign(Object.assign({},ae.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>pp?$i(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),Bp=q({name:"Upload",props:Mp,setup(e){e.abstract&&e.listType==="image-card"&&Pt("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=$e(e),o=ae("Upload","-upload",$p,Mh,e,t),n=kn(e),i=D(()=>{const{max:$}=e;return $!==void 0?p.value.length>=$:!1}),l=M(e.defaultFileList),d=ee(e,"fileList"),a=M(null),s={value:!1},u=M(!1),f=new Map,h=nr(d,l),p=D(()=>h.value.map(Bt));function v(){var $;($=a.value)===null||$===void 0||$.click()}function y($){const _=$.target;P(_.files?Array.from(_.files).map(K=>({file:K,entry:null,source:"input"})):null,$),_.value=""}function w($){const{"onUpdate:fileList":_,onUpdateFileList:K}=e;_&&me(_,$),K&&me(K,$),l.value=$}const x=D(()=>e.multiple||e.directory);function P($,_){if(!$||$.length===0)return;const{onBeforeUpload:K}=e;$=x.value?$:[$[0]];const{max:F,accept:O}=e;$=$.filter(({file:T,source:H})=>H==="dnd"&&(O!=null&&O.trim())?bp(T.name,T.type,O):!0),F&&($=$.slice(0,F-p.value.length));const C=Pr();Promise.all($.map(({file:T,entry:H})=>an(this,void 0,void 0,function*(){var N;const Y={id:Pr(),batchId:C,name:T.name,status:"pending",percentage:0,file:T,url:null,type:T.type,thumbnailUrl:null,fullPath:(N=H==null?void 0:H.fullPath)!==null&&N!==void 0?N:`/${T.webkitRelativePath||T.name}`};return!K||(yield K({file:Y,fileList:p.value}))!==!1?Y:null}))).then(T=>an(this,void 0,void 0,function*(){let H=Promise.resolve();T.forEach(N=>{H=H.then(Xt).then(()=>{N&&b(N,_,{append:!0})})}),yield H})).then(()=>{e.defaultUpload&&k()})}function k($){const{method:_,action:K,withCredentials:F,headers:O,data:C,name:T}=e,H=$!==void 0?p.value.filter(Y=>Y.id===$):p.value,N=$!==void 0;H.forEach(Y=>{const{status:re}=Y;(re==="pending"||re==="error"&&N)&&(e.customRequest?Tp({inst:{doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:Y,action:K,withCredentials:F,headers:O,data:C,customRequest:e.customRequest}):Op({doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},T,Y,{method:_,action:K,withCredentials:F,responseType:e.responseType,headers:O,data:C}))})}const b=($,_,K={append:!1,remove:!1})=>{const{append:F,remove:O}=K,C=Array.from(p.value),T=C.findIndex(H=>H.id===$.id);if(F||O||~T){F?C.push($):O?C.splice(T,1):C.splice(T,1,$);const{onChange:H}=e;H&&H({file:$,fileList:C,event:_}),w(C)}};function m($){var _;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:K}=e;return K?(_=K($.file,$))!==null&&_!==void 0?_:$.url||"":$.url?$.url:$.file?hp($.file):""}const R=D(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:_,draggerBorder:K,draggerBorderHover:F,itemColorHover:O,itemColorHoverError:C,itemTextColorError:T,itemTextColorSuccess:H,itemTextColor:N,itemIconColor:Y,itemDisabledOpacity:re,lineHeight:ve,borderRadius:Ce,fontSize:W,itemBorderImageCardError:oe,itemBorderImageCard:Q}}=o.value;return{"--n-bezier":$,"--n-border-radius":Ce,"--n-dragger-border":K,"--n-dragger-border-hover":F,"--n-dragger-color":_,"--n-font-size":W,"--n-item-color-hover":O,"--n-item-color-hover-error":C,"--n-item-disabled-opacity":re,"--n-item-icon-color":Y,"--n-item-text-color":N,"--n-item-text-color-error":T,"--n-item-text-color-success":H,"--n-line-height":ve,"--n-item-border-image-card-error":oe,"--n-item-border-image-card":Q}}),z=r?Fe("upload",void 0,R,e):void 0;Re(zt,{mergedClsPrefixRef:t,mergedThemeRef:o,showCancelButtonRef:ee(e,"showCancelButton"),showDownloadButtonRef:ee(e,"showDownloadButton"),showRemoveButtonRef:ee(e,"showRemoveButton"),showRetryButtonRef:ee(e,"showRetryButton"),onRemoveRef:ee(e,"onRemove"),onDownloadRef:ee(e,"onDownload"),mergedFileListRef:p,triggerStyleRef:ee(e,"triggerStyle"),shouldUseThumbnailUrlRef:ee(e,"shouldUseThumbnailUrl"),renderIconRef:ee(e,"renderIcon"),xhrMap:f,submit:k,doChange:b,showPreviewButtonRef:ee(e,"showPreviewButton"),onPreviewRef:ee(e,"onPreview"),getFileThumbnailUrlResolver:m,listTypeRef:ee(e,"listType"),dragOverRef:u,openOpenFileDialog:v,draggerInsideRef:s,handleFileAddition:P,mergedDisabledRef:n.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:ee(e,"fileListStyle"),abstractRef:ee(e,"abstract"),acceptRef:ee(e,"accept"),cssVarsRef:r?void 0:R,themeClassRef:z==null?void 0:z.themeClass,onRender:z==null?void 0:z.onRender,showTriggerRef:ee(e,"showTrigger"),imageGroupPropsRef:ee(e,"imageGroupProps"),mergedDirectoryDndRef:D(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const A={clear:()=>{l.value=[]},submit:k,openOpenFileDialog:v};return Object.assign({mergedClsPrefix:t,draggerInsideRef:s,inputElRef:a,mergedTheme:o,dragOver:u,mergedMultiple:x,cssVars:r?void 0:R,themeClass:z==null?void 0:z.themeClass,onRender:z==null?void 0:z.onRender,handleFileInputChange:y},A)},render(){var e,t;const{draggerInsideRef:r,mergedClsPrefix:o,$slots:n,directory:i,onRender:l}=this;if(n.default&&!this.abstract){const a=n.default()[0];!((e=a==null?void 0:a.type)===null||e===void 0)&&e[Si]&&(r.value=!0)}const d=c("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${o}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?c(Ve,null,(t=n.default)===null||t===void 0?void 0:t.call(n),c(xl,{to:"body"},d)):(l==null||l(),c("div",{class:[`${o}-upload`,r.value&&`${o}-upload--dragger-inside`,this.dragOver&&`${o}-upload--drag-over`,this.themeClass],style:this.cssVars},d,this.showTrigger&&this.listType!=="image-card"&&c(zi,null,n),this.showFileList&&c(Pp,null,n)))}}),ln="/web/assets/setting-c6ca7b14.svg",At=Yr("prompt-store",()=>{const e=M([{type:1,name:"ChatGPT 中文调教指南 - 简体",url:"./data/prompts/prompts-zh.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"ChatGPT 中文调教指南 - 繁体",url:"./data/prompts/prompts-zh-TW.json",refer:"https://github.com/PlexPt/awesome-chatgpt-prompts-zh"},{type:1,name:"Awesome ChatGPT Prompts",url:"./data/prompts/prompts.csv",refer:"https://github.com/f/awesome-chatgpt-prompts"},{type:2,name:"",url:"",refer:""}]),t=M(!1),r=M(!1),o=M([]),n=M(""),i=M(0),l=M({isShow:!1,newPrompt:{act:"",prompt:""}}),d=D(()=>{var s;return n.value?(s=o.value)==null?void 0:s.filter(u=>u.act.includes(n.value)||u.prompt.includes(n.value)):o.value});function a(s){if(s instanceof Array&&s.every(u=>u.act&&u.prompt)){if(o.value.length===0)return o.value.push(...s),{result:!0,data:{successCount:s.length}};const u=s.filter(f=>{var h;return(h=o.value)==null?void 0:h.every(p=>f.act!==p.act&&f.prompt!==p.prompt)});return o.value.push(...u),{result:!0,data:{successCount:u.length}}}else return{result:!1,msg:"提示词格式有误"}}return{promptDownloadConfig:e,isShowPromptSotre:t,isShowChatPrompt:r,promptList:o,keyword:n,searchPromptList:d,selectedPromptIndex:i,optPromptConfig:l,addPrompt:a}},{persist:{key:"prompt-store",storage:localStorage,paths:["promptList"]}}),Lp=["href"],Ep={key:1},Ap=q({__name:"ChatNavItem",props:{navConfig:{}},setup(e){return(t,r)=>t.navConfig.url?(te(),Se("a",{key:0,href:t.navConfig.url,target:"_blank",rel:"noopener noreferrer"},Ue(t.navConfig.label),9,Lp)):(te(),Se("div",Ep,Ue(t.navConfig.label),1))}}),Ii=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),Dp=e=>new Promise((t,r)=>setTimeout(t,e)),Fp={class:"flex justify-center gap-3 px-8"},Np={class:"flex justify-center items-center"},Hp=["src"],jp=be("p",{class:"text-left"},"提示:形容词+名词+动词+风格,描述得越详细时,效果越好。",-1),sn="骑着摩托的小猫咪,疾驰在路上,动漫场景,详细的细节。",Up=q({__name:"CreateImage",props:{show:{type:Boolean}},emits:["update:show"],setup(e,{emit:t}){const r=e,o=$t(),n=M(""),i=M(""),l=M(!1),d=D({get:()=>r.show,set:f=>t("update:show",f)}),a=()=>{if(!n.value){o.error("请先输入关键词");return}l.value=!0,i.value=`/images/create?re=1&showselective=1&sude=1&kseed=7500&SFX=2&q=${encodeURIComponent(n.value)}&t=${Date.now()}`},s=()=>{n.value="",i.value=""},u=()=>(n.value=sn,a());return(f,h)=>(te(),ke(E(ut),{class:"w-11/12 lg:w-[540px] select-none",show:d.value,"onUpdate:show":h[2]||(h[2]=p=>d.value=p),"on-close":s,preset:"card",title:"图像创建"},{default:X(()=>[be("head",Fp,[G(E(Qe),{class:"flex-1",placeholder:"提示词",value:n.value,"onUpdate:value":h[0]||(h[0]=p=>n.value=p),clearable:!0,onKeyup:Cl(a,["enter"]),maxlength:"100"},null,8,["value","onKeyup"]),G(E(ce),{secondary:"",type:"info",onClick:a,loading:l.value},{default:X(()=>[se("开始创建")]),_:1},8,["loading"])]),be("main",Np,[i.value?(te(),Se("iframe",{key:0,class:"w-[310px] h-[350px] xl:w-[475px] xl:h-[520px] my-4",src:i.value,frameborder:"0",onLoad:h[1]||(h[1]=p=>l.value=!1)},null,40,Hp)):(te(),ke(E(oo),{key:1,class:"h-[40vh] xl:h-[60vh] flex justify-center items-center",description:"暂未创建"},{extra:X(()=>[G(E(ce),{secondary:"",type:"info",onClick:u},{default:X(()=>[se("使用示例创建")]),_:1}),be("div",{class:"text-[#c2c2c2] px-2 xl:px-10"},[jp,be("p",{class:"text-left"},"示例:"+Ue(sn))])]),_:1}))])]),_:1},8,["show"]))}}),so=Yr("chat-store",()=>{const e="/sydney/ChatHub",t=M(!1),r=M(""),o=M([{baseUrl:"https://sydney.bing.com",label:"Bing 官方"},{baseUrl:"https://sydney.vcanbb.chat",label:"Cloudflare"},{baseUrl:location.origin,label:"本站"},{baseUrl:"",label:"自定义",isCus:!0}]),n=3e3,i=async d=>{if(!d.baseUrl)return{isUsable:!1,errorMsg:"链接不可为空"};try{const a=Date.now(),s=new WebSocket(d.baseUrl.replace("http","ws")+e),u=setTimeout(()=>{s.close()},n);return await new Promise((f,h)=>{s.onopen=()=>{clearTimeout(u),f(s.close())},s.onerror=()=>{clearTimeout(u),h(new Error(`聊天服务器 ${d.baseUrl} 连接失败`))},s.onclose=()=>h(new Error(`聊天服务器 ${d.baseUrl} 连接超时`))}),{isUsable:!0,delay:Date.now()-a}}catch(a){return{isUsable:!1,errorMsg:a instanceof Error?a.message:""}}};return{isShowChatServiceSelectModal:t,sydneyConfigs:o,selectedSydneyBaseUrl:r,checkSydneyConfig:i,checkAllSydneyConfig:async()=>{const d=o.value.filter(a=>a.baseUrl).map(async a=>{const s=await i(a);a.isUsable=s.isUsable,a.delay=s.delay});await Promise.all(d)}}},{persist:{key:"chat-store",storage:localStorage,paths:["selectedSydneyBaseUrl","sydneyConfigs"]}});function Wp(e){const t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}function Vp(e,t,r=0,o="/",n=""){let i=e+"="+t+";path="+o;if(n&&(i+=";domain="+n),r>0){const l=new Date;l.setTime(l.getTime()+r*60*1e3),i+=";expires="+l.toUTCString()}document.cookie=i}const st={get:Wp,set:Vp};async function Kp(){return fetch("/sysconf",{credentials:"include"}).then(t=>t.json())}const qp={getSysConfig:Kp};var co=(e=>(e[e.OK=200]="OK",e[e.Unauthorized=401]="Unauthorized",e))(co||{});const _i=Yr("user-store",()=>{const t="_U",r="BingAI_Rand_IP",o="BingAI_Auth_Key",n=M(),i=async()=>{const v=await qp.getSysConfig();return v.code===co.OK&&(n.value={...n.value,...v.data}),v},l=()=>{const v=new Date;return v.setMinutes(v.getMinutes()+CIB.config.sydney.expiryInMinutes),v},d=async(v=0)=>{var w;if(v>=10){console.log(`已重试 ${v} 次,自动创建停止`);return}const y=await fetch("/turing/conversation/create",{credentials:"include"}).then(x=>x.json()).catch(x=>"error");((w=y==null?void 0:y.result)==null?void 0:w.value)==="Success"?(console.log("成功创建会话ID : ",y.conversationId),CIB.manager.conversation.updateId(y.conversationId,l(),y.clientId,y.conversationSignature)):(await Dp(300),v+=1,console.log(`开始第 ${v} 次重试创建会话ID`),st.set(r,"",-1),d(v))},a=()=>st.get(t)||"",s=()=>{a()||(CIB.config.features.enableGetChats=!1,CIB.vm.sidePanel.isVisibleMobile=!1,CIB.vm.sidePanel.isVisibleDesktop=!1),d()},u=v=>{st.set(t,v,7*24*60,"/")},f=v=>{st.set(o,v)},h=async()=>{localStorage.clear(),sessionStorage.clear();const v=await caches.keys();for(const y of v)await caches.delete(y),console.log("del cache : ",y)};return{sysConfig:n,getSysConfig:i,getUserToken:a,checkUserToken:s,saveUserToken:u,resetCache:async()=>{st.set(t,"",-1),st.set(r,"",-1),st.set(o,"",-1),await h()},setAuthKey:f}},{persist:{key:"user-store",storage:localStorage,paths:[]}}),Gp=be("div",{class:"text-3xl py-2"},"设置用户",-1),Xp=be("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),Yp=q({__name:"ChatNav",setup(e){const t=M(!1),r=M(!1),o=M(""),n=$t(),i=At(),{isShowPromptSotre:l}=ot(i),d=M(!1),a=M(!1),s=so(),{isShowChatServiceSelectModal:u}=ot(s),f=_i(),h={github:"github",version:"version",chatService:"chatService",promptStore:"promptStore",setToken:"setToken",compose:"compose",createImage:"createImage",reset:"reset"},p=[{key:h.github,label:"开源地址",url:"https://github.com/adams549659584/go-proxy-bingai"},{key:h.version,label:"版本信息"},{key:h.chatService,label:"服务选择"},{key:h.promptStore,label:"提示词库"},{key:h.setToken,label:"设置用户"},{key:h.compose,label:"撰写文章",url:"/web/compose.html"},{key:h.createImage,label:"图像创建"},{key:h.reset,label:"一键重置"}],v=P=>c(Ap,{navConfig:P}),y=P=>{var k;switch(P){case h.version:n.success("当前版本号为:1.9.2");break;case h.chatService:u.value=!0,s.checkAllSydneyConfig();break;case h.promptStore:l.value=!0;break;case h.setToken:o.value=f.getUserToken(),r.value=!0;break;case h.createImage:!((k=f.sysConfig)!=null&&k.isSysCK)&&!f.getUserToken()&&n.warning("体验画图功能需先登录"),a.value=!0;break;case h.reset:d.value=!0;break}},w=async()=>{d.value=!1,await f.resetCache(),n.success("清理完成"),window.location.reload()},x=()=>{if(!o.value){n.warning("请先填入用户 Cookie");return}f.saveUserToken(o.value),r.value=!1};return(P,k)=>(te(),Se(Ve,null,[E(Ii)()?(te(),ke(E(tn),{key:0,class:"select-none",show:t.value,options:p,"render-label":v,onSelect:y},{default:X(()=>[G(E(Br),{class:"fixed top-6 right-4 cursor-pointer z-50",src:E(ln),alt:"设置菜单","preview-disabled":!0,onClick:k[0]||(k[0]=b=>t.value=!t.value)},null,8,["src"])]),_:1},8,["show"])):(te(),ke(E(tn),{key:1,class:"select-none",trigger:"hover",options:p,"render-label":v,onSelect:y},{default:X(()=>[G(E(Br),{class:"fixed top-6 right-6 cursor-pointer z-50",src:E(ln),alt:"设置菜单","preview-disabled":!0},null,8,["src"])]),_:1})),G(E(ut),{show:r.value,"onUpdate:show":k[3]||(k[3]=b=>r.value=b),preset:"dialog","show-icon":!1},{header:X(()=>[Gp]),action:X(()=>[G(E(ce),{size:"large",onClick:k[2]||(k[2]=b=>r.value=!1)},{default:X(()=>[se("取消")]),_:1}),G(E(ce),{ghost:"",size:"large",type:"info",onClick:x},{default:X(()=>[se("保存")]),_:1})]),default:X(()=>[G(E(Qe),{size:"large",value:o.value,"onUpdate:value":k[1]||(k[1]=b=>o.value=b),type:"text",placeholder:"用户 Cookie ,仅需要 _U 的值"},null,8,["value"])]),_:1},8,["show"]),G(E(ut),{show:d.value,"onUpdate:show":k[5]||(k[5]=b=>d.value=b),preset:"dialog","show-icon":!1},{header:X(()=>[Xp]),action:X(()=>[G(E(ce),{size:"large",onClick:k[4]||(k[4]=b=>d.value=!1)},{default:X(()=>[se("取消")]),_:1}),G(E(ce),{ghost:"",size:"large",type:"error",onClick:w},{default:X(()=>[se("确定")]),_:1})]),_:1},8,["show"]),G(Up,{show:a.value,"onUpdate:show":k[6]||(k[6]=b=>a.value=b)},null,8,["show"])],64))}});function dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function qt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,o=new Array(t);rthis.range.start)){var o=Math.max(r-this.param.buffer,0);this.checkRange(o,this.getEndByStart(o))}}},{key:"handleBehind",value:function(){var r=this.getScrollOvers();rr&&(l=n-1)}return o>0?--o:0}},{key:"getIndexOffset",value:function(r){if(!r)return 0;for(var o=0,n=0,i=0;i=H&&o("tobottom")},x=function(C){var T=p(),H=v(),N=y();T<0||T+H>N+1||!N||(f.handleScroll(T),w(T,H,N,C))},P=function(){var C=t.dataKey,T=t.dataSources,H=T===void 0?[]:T;return H.map(function(N){return typeof C=="function"?C(N):N[C]})},k=function(C){a.value=C},b=function(){f=new iv({slotHeaderSize:0,slotFooterSize:0,keeps:t.keeps,estimateSize:t.estimateSize,buffer:Math.round(t.keeps/3),uniqueIds:P()},k),a.value=f.getRange()},m=function(C){if(C>=t.dataSources.length-1)_();else{var T=f.getOffset(C);R(T)}},R=function(C){t.pageMode?(document.body[d]=C,document.documentElement[d]=C):s.value&&(s.value[d]=C)},z=function(){for(var C=[],T=a.value,H=T.start,N=T.end,Y=t.dataSources,re=t.dataKey,ve=t.itemClass,Ce=t.itemTag,W=t.itemStyle,oe=t.extraProps,Q=t.dataComponent,we=t.itemScopedSlots,ye=H;ye<=N;ye++){var ne=Y[ye];if(ne){var Le=typeof re=="function"?re(ne):ne[re];typeof Le=="string"||typeof Le=="number"?C.push(G(dv,{index:ye,tag:Ce,event:Mt.ITEM,horizontal:l,uniqueKey:Le,source:ne,extraProps:oe,component:Q,scopedSlots:we,style:W,class:"".concat(ve).concat(t.itemClassAdd?" "+t.itemClassAdd(ye):""),onItemResize:A},null)):console.warn("Cannot get the data-key '".concat(re,"' from data-sources."))}else console.warn("Cannot get the index '".concat(ye,"' from data-sources."))}return C},A=function(C,T){f.saveSize(C,T),o("resized",C,T)},$=function(C,T,H){C===mt.HEADER?f.updateParam("slotHeaderSize",T):C===mt.FOOTER&&f.updateParam("slotFooterSize",T),H&&f.handleSlotSizeChange()},_=function O(){if(u.value){var C=u.value[l?"offsetLeft":"offsetTop"];R(C),setTimeout(function(){p()+v(){o.value=o.value.filter(a=>a.act!==d.act&&a.prompt!==d.prompt),t.success("删除提示词成功")},l=d=>{n.value.isShow=!0,n.value.type="edit",n.value.title="编辑提示词",n.value.tmpPrompt=d,n.value.newPrompt={...d}};return(d,a)=>(te(),ke(E(Ci),{class:"hover:bg-gray-100 cursor-pointer p-5"},{description:X(()=>[G(E(er),{type:"info"},{default:X(()=>[be("span",cv,Ue(d.source.act),1)]),_:1}),be("div",uv,[G(E(ce),{secondary:"",type:"info",size:"small",onClick:a[0]||(a[0]=s=>l(d.source))},{default:X(()=>[se("编辑")]),_:1}),G(E(ce),{secondary:"",class:"ml-2",type:"error",size:"small",onClick:a[1]||(a[1]=s=>i(d.source))},{default:X(()=>[se("删除")]),_:1})])]),default:X(()=>[G(E(fi),{tooltip:!1,"line-clamp":2},{default:X(()=>[se(Ue(d.source.prompt),1)]),_:1})]),_:1}))}}),hv={class:"flex justify-start flex-wrap gap-2 px-5 pb-2"},pv=["href"],vv={class:"flex justify-center gap-5"},gv=["href"],mv=q({__name:"ChatPromptStore",setup(e){const t=$t(),r=At(),{promptDownloadConfig:o,isShowPromptSotre:n,promptList:i,keyword:l,searchPromptList:d,optPromptConfig:a}=ot(r),s=M(!1),u=M(!1),f=M(!1),h=()=>{a.value.isShow=!0,a.value.type="add",a.value.title="添加提示词",a.value.newPrompt={act:"",prompt:""}},p=()=>{const{type:k,tmpPrompt:b,newPrompt:m}=a.value;if(!m.act)return t.error("提示词标题不能为空");if(!m.prompt)return t.error("提示词描述不能为空");if(k==="add")i.value=[m,...i.value],t.success("添加提示词成功");else if(k==="edit"){if(m.act===(b==null?void 0:b.act)&&m.prompt===(b==null?void 0:b.prompt)){t.warning("提示词未变更"),a.value.isShow=!1;return}const R=i.value.findIndex(z=>z.act===(b==null?void 0:b.act)&&z.prompt===(b==null?void 0:b.prompt));R>-1?(i.value[R]=m,t.success("编辑提示词成功")):t.error("编辑提示词出错")}a.value.isShow=!1},v=k=>new Promise((b,m)=>{const R=new FileReader;R.onload=function(z){var A;b((A=z.target)==null?void 0:A.result)},R.onerror=m,R.readAsText(k)}),y=async k=>{var b;if(k.file.file){u.value=!0;const m=await v(k.file.file),R=JSON.parse(m),z=r.addPrompt(R);z.result?(t.info(`上传文件含 ${R.length} 条数据`),t.success(`成功导入 ${(b=z.data)==null?void 0:b.successCount} 条有效数据`)):t.error(z.msg||"提示词格式有误"),u.value=!1}else t.error("上传文件有误")},w=()=>{if(i.value.length===0)return t.error("暂无可导出的提示词数据");f.value=!0;const k=JSON.stringify(i.value),b=new Blob([k],{type:"application/json"}),m=URL.createObjectURL(b),R=document.createElement("a");R.href=m,R.download="BingAIPrompts.json",R.click(),URL.revokeObjectURL(m),t.success("导出提示词库成功"),f.value=!1},x=()=>{i.value=[],t.success("清空提示词库成功")},P=async k=>{var R;if(!k.url)return t.error("请先输入下载链接");k.isDownloading=!0;let b;if(k.url.endsWith(".json"))b=await fetch(k.url).then(z=>z.json());else if(k.url.endsWith(".csv")){const z=await fetch(k.url).then(A=>A.text());console.log(z),b=z.split(` `).filter(A=>A).map(A=>{var _;const $=A.split('","');return{act:$[0].slice(1),prompt:(_=$[1])==null?void 0:_.slice(1)}}),b.shift()}else return k.isDownloading=!1,t.error("暂不支持下载此后缀的提示词");k.isDownloading=!1;const m=r.addPrompt(b);m.result?(t.info(`下载文件含 ${b.length} 条数据`),t.success(`成功导入 ${(R=m.data)==null?void 0:R.successCount} 条有效数据`)):t.error(m.msg||"提示词格式有误")};return(k,b)=>(te(),Se(Ve,null,[G(E(ut),{class:"w-11/12 xl:w-[900px]",show:E(n),"onUpdate:show":b[3]||(b[3]=m=>$r(n)?n.value=m:null),preset:"card",title:"提示词库"},{default:X(()=>[be("div",hv,[G(E(Qe),{class:"basis-full xl:basis-0 xl:min-w-[300px]",placeholder:"搜索提示词",value:E(l),"onUpdate:value":b[0]||(b[0]=m=>$r(l)?l.value=m:null),clearable:!0},null,8,["value"]),G(E(ce),{secondary:"",type:"info",onClick:b[1]||(b[1]=m=>s.value=!0)},{default:X(()=>[se("下载")]),_:1}),G(E(ce),{secondary:"",type:"info",onClick:h},{default:X(()=>[se("添加")]),_:1}),G(E(Bp),{class:"w-[56px] xl:w-auto",accept:".json","default-upload":!1,"show-file-list":!1,onChange:y},{default:X(()=>[G(E(ce),{secondary:"",type:"success",loading:u.value},{default:X(()=>[se("导入")]),_:1},8,["loading"])]),_:1}),G(E(ce),{secondary:"",type:"success",onClick:w,loading:f.value},{default:X(()=>[se("导出")]),_:1},8,["loading"]),G(E(ce),{secondary:"",type:"error",onClick:x},{default:X(()=>[se("清空")]),_:1})]),E(d).length>0?(te(),ke(E(Oi),{key:0,class:"h-[40vh] xl:h-[60vh] overflow-y-auto","data-key":"prompt","data-sources":E(d),"data-component":fv,keeps:10},null,8,["data-sources"])):(te(),ke(E(oo),{key:1,class:"h-[40vh] xl:h-[60vh] flex justify-center items-center",description:"暂无数据"},{extra:X(()=>[G(E(ce),{secondary:"",type:"info",onClick:b[2]||(b[2]=m=>s.value=!0)},{default:X(()=>[se("下载提示词")]),_:1})]),_:1}))]),_:1},8,["show"]),G(E(ut),{class:"w-11/12 xl:w-[600px]",show:E(a).isShow,"onUpdate:show":b[6]||(b[6]=m=>E(a).isShow=m),preset:"card",title:E(a).title},{default:X(()=>[G(E(fh),{vertical:""},{default:X(()=>[se(" 标题 "),G(E(Qe),{placeholder:"请输入标题",value:E(a).newPrompt.act,"onUpdate:value":b[4]||(b[4]=m=>E(a).newPrompt.act=m)},null,8,["value"]),se(" 描述 "),G(E(Qe),{placeholder:"请输入描述",type:"textarea",value:E(a).newPrompt.prompt,"onUpdate:value":b[5]||(b[5]=m=>E(a).newPrompt.prompt=m)},null,8,["value"]),G(E(ce),{block:"",secondary:"",type:"info",onClick:p},{default:X(()=>[se("保存")]),_:1})]),_:1})]),_:1},8,["show","title"]),G(E(ut),{class:"w-11/12 xl:w-[600px]",show:s.value,"onUpdate:show":b[7]||(b[7]=m=>s.value=m),preset:"card",title:"下载提示词"},{default:X(()=>[G(E(Uh),{class:"overflow-y-auto rounded-lg",hoverable:"",clickable:""},{default:X(()=>[(te(!0),Se(Ve,null,_n(E(o),(m,R)=>(te(),ke(E(Wh),{key:R},{suffix:X(()=>[be("div",vv,[m.type===1?(te(),Se("a",{key:0,class:"no-underline",href:m.refer,target:"_blank",rel:"noopener noreferrer"},[G(E(ce),{secondary:""},{default:X(()=>[se("来源")]),_:1})],8,gv)):Je("",!0),G(E(ce),{secondary:"",type:"info",onClick:z=>P(m),loading:m.isDownloading},{default:X(()=>[se("下载")]),_:2},1032,["onClick","loading"])])]),default:X(()=>[m.type===1?(te(),Se("a",{key:0,class:"no-underline text-blue-500",href:m.url,target:"_blank",rel:"noopener noreferrer"},Ue(m.name),9,pv)):m.type===2?(te(),ke(E(Qe),{key:1,placeholder:"请输入下载链接,支持 json 及 csv ",value:m.url,"onUpdate:value":z=>m.url=z},null,8,["value","onUpdate:value"])):Je("",!0)]),_:2},1024))),128))]),_:1})]),_:1},8,["show"])],64))}}),bv=`/* 移除顶部背景遮挡 */\r .scroller>.top {\r @@ -1275,4 +1275,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho :host([side-panel]) {\r --side-panel-width: 0;\r }\r -}`,yv={class:"inline-block max-w-[310px] xl:max-w-[650px] overflow-hidden text-ellipsis"},wv=q({__name:"ChatPromptItem",props:{index:{},source:{}},setup(e){const t=At(),{selectedPromptIndex:r,isShowChatPrompt:o,keyword:n}=ot(t),i=l=>{l&&(n.value="",CIB.vm.actionBar.inputText=l.prompt,CIB.vm.actionBar.input.focus(),o.value=!1)};return(l,d)=>(te(),ke(E(Ci),{class:Rn(["hover:bg-gray-100 cursor-pointer px-5 h-[130px] flex justify-start items-center",{"bg-gray-100":l.index===E(r)}]),onClick:d[0]||(d[0]=a=>i(l.source))},{description:X(()=>[G(E(er),{type:"info"},{default:X(()=>[be("span",yv,Ue(l.source.act),1)]),_:1})]),default:X(()=>[G(E(fi),{tooltip:!1,"line-clamp":2},{default:X(()=>[se(Ue(l.source.prompt),1)]),_:1})]),_:1},8,["class"]))}}),uo=e=>(Pl("data-v-4813a901"),e=e(),$l(),e),xv={key:0,class:"loading-spinner"},Cv=uo(()=>be("div",{class:"bounce1"},null,-1)),Sv=uo(()=>be("div",{class:"bounce2"},null,-1)),kv=uo(()=>be("div",{class:"bounce3"},null,-1)),Pv=[Cv,Sv,kv],$v=q({__name:"LoadingSpinner",props:{isShow:{type:Boolean}},setup(e){return(t,r)=>(te(),ke(bt,{name:"fade"},{default:X(()=>[t.isShow?(te(),Se("div",xv,Pv)):Je("",!0)]),_:1}))}});const zv=(e,t)=>{const r=e.__vccOpts||e;for(const[o,n]of t)r[o]=n;return r},Tv=zv($v,[["__scopeId","data-v-4813a901"]]),Iv={key:0,class:"hidden lg:block"},_v={key:1},Rv={class:"hidden lg:table-cell"},Ov={key:1},Mv={key:0,class:"flex justify-center items-center flex-wrap gap-2"},Bv=["onClick"],Lv={class:"flex justify-center items-center flex-wrap gap-2"},Ev=q({__name:"ChatServiceSelect",setup(e){const t=so(),{isShowChatServiceSelectModal:r,sydneyConfigs:o,selectedSydneyBaseUrl:n}=ot(t),i=$t(),l=async s=>{s.isUsable=void 0,s.delay=void 0;const u=await t.checkSydneyConfig(s);u.errorMsg&&i.error(u.errorMsg),s.isUsable=u.isUsable,s.delay=u.delay},d=s=>{n.value=s.baseUrl,CIB.config.sydney.baseUrl=s.baseUrl,r.value=!1},a=s=>{if(s.baseUrl){if(!s.baseUrl.startsWith("https://")){i.error("请填写 https 开头的正确链接");return}return l(s)}};return(s,u)=>(te(),ke(E(ut),{class:"w-11/12 lg:w-[900px]",show:E(r),"onUpdate:show":u[0]||(u[0]=f=>$r(r)?r.value=f:null),preset:"card",title:"聊天服务器设置"},{default:X(()=>[G(E(dp),{striped:""},{default:X(()=>[be("tbody",null,[(te(!0),Se(Ve,null,_n(E(o),(f,h)=>(te(),Se("tr",{key:h},[be("td",null,[f.isCus?(te(),Se("span",Iv,Ue(f.label),1)):(te(),Se("span",_v,Ue(f.label),1)),f.isCus?(te(),ke(E(Qe),{key:2,class:"lg:hidden",value:f.baseUrl,"onUpdate:value":p=>f.baseUrl=p,placeholder:"自定义聊天服务器链接",onChange:p=>a(f)},null,8,["value","onUpdate:value","onChange"])):Je("",!0)]),be("td",Rv,[f.isCus?(te(),ke(E(Qe),{key:0,value:f.baseUrl,"onUpdate:value":p=>f.baseUrl=p,placeholder:"自定义聊天服务器链接",onChange:p=>a(f)},null,8,["value","onUpdate:value","onChange"])):(te(),Se("span",Ov,Ue(f.baseUrl),1))]),be("td",null,[f.baseUrl&&f.isUsable===void 0&&f.delay===void 0?(te(),Se("div",Mv,[G(E(ce),{tertiary:"",loading:!0,size:"small",type:"info"})])):f.baseUrl?(te(),Se("div",{key:1,class:"flex justify-center items-center flex-wrap gap-2",onClick:p=>l(f)},[f.isUsable===!1?(te(),ke(E(er),{key:0,type:"error",class:"cursor-pointer"},{default:X(()=>[se("不可用")]),_:1})):Je("",!0),f.delay?(te(),ke(E(er),{key:1,type:"success",class:"cursor-pointer"},{default:X(()=>[se(Ue(f.delay)+" ms",1)]),_:2},1024)):Je("",!0)],8,Bv)):Je("",!0)]),be("td",null,[be("div",Lv,[G(E(ce),{class:"hidden lg:table-cell",secondary:"",onClick:p=>l(f)},{default:X(()=>[se("检测")]),_:2},1032,["onClick"]),f.baseUrl===E(n)?(te(),ke(E(ce),{key:0,secondary:"",type:"success"},{default:X(()=>[se("当前")]),_:1})):(te(),ke(E(ce),{key:1,secondary:"",type:"info",onClick:p=>d(f)},{default:X(()=>[se("选择")]),_:2},1032,["onClick"]))])])]))),128))])]),_:1})]),_:1},8,["show"]))}}),Av=be("div",{class:"w-0 md:w-[60px]"},null,-1),Dv={key:0,class:"fixed top-0 left-0 w-screen h-screen flex justify-center items-center bg-black/40 z-50"},Fv=130,Nv=q({__name:"Chat",setup(e){const t=$t(),r=M(!0),o=At(),{isShowPromptSotre:n,isShowChatPrompt:i,keyword:l,promptList:d,searchPromptList:a,selectedPromptIndex:s}=ot(o),u=so(),{isShowChatServiceSelectModal:f,sydneyConfigs:h,selectedSydneyBaseUrl:p}=ot(u),v=_i(),y=M(),w=M(!1),x=M(!1),P=M(!1),k=M(""),b=M(!1),m=D(()=>CIB.vm.isMobile&&CIB.vm.sidePanel.isVisibleMobile||!CIB.vm.isMobile&&CIB.vm.sidePanel.isVisibleDesktop);et(async()=>{await _(),R(),SydneyFullScreenConv.initWithWaitlistUpdate({cookLoc:{}},10),A(),r.value=!1,K(),F()});const R=()=>{},z=()=>{if(p.value)CIB.config.sydney.baseUrl=p.value,f.value=!1;else{if(f.value=!0,p.value=CIB.config.sydney.baseUrl,h.value.filter(oe=>!oe.isCus).every(oe=>oe.baseUrl!==p.value)){const oe=h.value.find(Q=>Q.isCus);oe&&(oe.baseUrl=p.value)}u.checkAllSydneyConfig()}},A=async()=>{const W=await v.getSysConfig();switch(W.code){case co.OK:{if(!W.data.isAuth){P.value=!0;return}$(W.data)}break;default:t.error(`[${W.code}] ${W.message}`);break}},$=W=>{W.isSysCK||v.checkUserToken(),z()},_=async()=>new Promise((W,oe)=>{sj_evt.bind("sydFSC.init",W,!0),sj_evt.fire("showSydFSC")}),K=()=>{var ye,ne,Le,Ne,He,Ee,U,J,V;location.hostname==="localhost"&&(CIB.config.sydney.hostnamesToBypassSecureConnection=CIB.config.sydney.hostnamesToBypassSecureConnection.filter(de=>de!==location.hostname));const W=document.querySelector("cib-serp");W==null||W.setAttribute("alignment","center");const oe=(ye=W==null?void 0:W.shadowRoot)==null?void 0:ye.querySelector("cib-conversation"),Q=(ne=oe==null?void 0:oe.shadowRoot)==null?void 0:ne.querySelector("cib-welcome-container");(Ne=(Le=Q==null?void 0:Q.shadowRoot)==null?void 0:Le.querySelector(".learn-tog-item"))==null||Ne.remove(),(Ee=(He=W==null?void 0:W.shadowRoot)==null?void 0:He.querySelector("cib-serp-feedback"))==null||Ee.remove(),Ii()&&((J=(U=Q==null?void 0:Q.shadowRoot)==null?void 0:U.querySelector(".container-item"))==null||J.remove(),CIB.vm.actionBar.input.placeholder='有问题尽管问我...("/" 触发提示词)');const we=document.createElement("style");we.innerText=bv,(V=oe.shadowRoot)==null||V.append(we)},F=()=>{var Q,we;const W=(we=(Q=document.querySelector("#b_sydConvCont > cib-serp"))==null?void 0:Q.shadowRoot)==null?void 0:we.querySelector("#cib-action-bar-main"),oe=W.handleInputTextKey;W.handleInputTextKey=function(ye){if(!(ye.key==="Enter"&&i.value))return oe.apply(this,[ye])},CIB.vm.actionBar.input.addEventListener("compositionstart",O),CIB.vm.actionBar.input.addEventListener("compositionend",C),CIB.vm.actionBar.input.addEventListener("change",T),CIB.vm.actionBar.input.addEventListener("input",T),CIB.vm.actionBar.input.addEventListener("keydown",Y),CIB.vm.actionBar.input.addEventListener("focus",H),CIB.vm.actionBar.input.addEventListener("blur",N)},O=W=>{w.value=!0},C=W=>{w.value=!1,T(W)},T=W=>{var oe;w.value||(W instanceof InputEvent||W instanceof CompositionEvent)&&W.target instanceof HTMLTextAreaElement&&((oe=W.target.value)!=null&&oe.startsWith("/")?(i.value=!0,l.value=W.target.value.slice(1),s.value=0):(l.value="",i.value=!1))},H=W=>{},N=W=>{setTimeout(()=>{i.value=!1},200)},Y=W=>{switch(W.key){case"ArrowUp":s.value>0&&(s.value--,y.value&&y.value.scrollToIndex(s.value));break;case"ArrowDown":s.value{W&&(l.value="",CIB.vm.actionBar.inputText=W.prompt,i.value=!1)},ve=()=>{x.value=!0,setTimeout(()=>{var W;if(x.value===!0){x.value=!1;const oe=((W=y.value)==null?void 0:W.getOffset())||0;s.value=Math.round(oe/Fv)}},100)},Ce=async()=>{if(!k.value){t.error("请先输入授权码");return}b.value=!0,v.setAuthKey(k.value);const W=await v.getSysConfig();W.data.isAuth?(t.success("授权成功"),P.value=!1,$(W.data)):t.error("授权码有误"),b.value=!1};return(W,oe)=>(te(),Se(Ve,null,[G(Tv,{"is-show":r.value},null,8,["is-show"]),be("main",null,[E(i)?(te(),Se("div",{key:0,class:Rn(["box-border fixed bottom-[110px] w-full flex justify-center px-[14px] md:px-[34px] z-999",{"md:px-[170px]":m.value,"xl:px-[220px]":m.value}])},[Av,E(d).length>0?(te(),ke(E(Oi),{key:0,ref_key:"scrollbarRef",ref:y,class:"bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl overflow-y-auto","data-key":"prompt","data-sources":E(a),"data-component":wv,keeps:10,onScroll:ve},null,8,["data-sources"])):(te(),ke(E(oo),{key:1,class:"bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl py-6",description:"暂未设置提示词数据"},{extra:X(()=>[G(E(ce),{secondary:"",type:"info",onClick:oe[0]||(oe[0]=Q=>n.value=!0)},{default:X(()=>[se("去提示词库添加")]),_:1})]),_:1}))],2)):Je("",!0)]),be("footer",null,[G(Ev),P.value?(te(),Se("div",Dv,[G(E(ap),{class:"box-border w-11/12 lg:w-[400px] px-4 py-4 bg-white rounded-md",status:"403",title:"401 未授权"},{footer:X(()=>[G(E(Qe),{class:"w-11/12",value:k.value,"onUpdate:value":oe[1]||(oe[1]=Q=>k.value=Q),type:"password",placeholder:"请输入授权码",maxlength:"60",clearable:""},null,8,["value"]),G(E(ce),{class:"mt-4",secondary:"",type:"info",loading:b.value,onClick:Ce},{default:X(()=>[se("授权")]),_:1},8,["loading"])]),_:1})])):Je("",!0)])],64))}}),jv=q({__name:"index",setup(e){return(t,r)=>(te(),Se("main",null,[G(Yp),G(mv),G(Nv)]))}});export{jv as default}; +}`,yv={class:"inline-block max-w-[310px] xl:max-w-[650px] overflow-hidden text-ellipsis"},wv=q({__name:"ChatPromptItem",props:{index:{},source:{}},setup(e){const t=At(),{selectedPromptIndex:r,isShowChatPrompt:o,keyword:n}=ot(t),i=l=>{l&&(n.value="",CIB.vm.actionBar.textInput.value=l.prompt,CIB.vm.actionBar.input.focus(),o.value=!1)};return(l,d)=>(te(),ke(E(Ci),{class:Rn(["hover:bg-gray-100 cursor-pointer px-5 h-[130px] flex justify-start items-center",{"bg-gray-100":l.index===E(r)}]),onClick:d[0]||(d[0]=a=>i(l.source))},{description:X(()=>[G(E(er),{type:"info"},{default:X(()=>[be("span",yv,Ue(l.source.act),1)]),_:1})]),default:X(()=>[G(E(fi),{tooltip:!1,"line-clamp":2},{default:X(()=>[se(Ue(l.source.prompt),1)]),_:1})]),_:1},8,["class"]))}}),uo=e=>(Pl("data-v-4813a901"),e=e(),$l(),e),xv={key:0,class:"loading-spinner"},Cv=uo(()=>be("div",{class:"bounce1"},null,-1)),Sv=uo(()=>be("div",{class:"bounce2"},null,-1)),kv=uo(()=>be("div",{class:"bounce3"},null,-1)),Pv=[Cv,Sv,kv],$v=q({__name:"LoadingSpinner",props:{isShow:{type:Boolean}},setup(e){return(t,r)=>(te(),ke(bt,{name:"fade"},{default:X(()=>[t.isShow?(te(),Se("div",xv,Pv)):Je("",!0)]),_:1}))}});const zv=(e,t)=>{const r=e.__vccOpts||e;for(const[o,n]of t)r[o]=n;return r},Tv=zv($v,[["__scopeId","data-v-4813a901"]]),Iv={key:0,class:"hidden lg:block"},_v={key:1},Rv={class:"hidden lg:table-cell"},Ov={key:1},Mv={key:0,class:"flex justify-center items-center flex-wrap gap-2"},Bv=["onClick"],Lv={class:"flex justify-center items-center flex-wrap gap-2"},Ev=q({__name:"ChatServiceSelect",setup(e){const t=so(),{isShowChatServiceSelectModal:r,sydneyConfigs:o,selectedSydneyBaseUrl:n}=ot(t),i=$t(),l=async s=>{s.isUsable=void 0,s.delay=void 0;const u=await t.checkSydneyConfig(s);u.errorMsg&&i.error(u.errorMsg),s.isUsable=u.isUsable,s.delay=u.delay},d=s=>{n.value=s.baseUrl,CIB.config.sydney.baseUrl=s.baseUrl,r.value=!1},a=s=>{if(s.baseUrl){if(!s.baseUrl.startsWith("https://")){i.error("请填写 https 开头的正确链接");return}return l(s)}};return(s,u)=>(te(),ke(E(ut),{class:"w-11/12 lg:w-[900px]",show:E(r),"onUpdate:show":u[0]||(u[0]=f=>$r(r)?r.value=f:null),preset:"card",title:"聊天服务器设置"},{default:X(()=>[G(E(dp),{striped:""},{default:X(()=>[be("tbody",null,[(te(!0),Se(Ve,null,_n(E(o),(f,h)=>(te(),Se("tr",{key:h},[be("td",null,[f.isCus?(te(),Se("span",Iv,Ue(f.label),1)):(te(),Se("span",_v,Ue(f.label),1)),f.isCus?(te(),ke(E(Qe),{key:2,class:"lg:hidden",value:f.baseUrl,"onUpdate:value":p=>f.baseUrl=p,placeholder:"自定义聊天服务器链接",onChange:p=>a(f)},null,8,["value","onUpdate:value","onChange"])):Je("",!0)]),be("td",Rv,[f.isCus?(te(),ke(E(Qe),{key:0,value:f.baseUrl,"onUpdate:value":p=>f.baseUrl=p,placeholder:"自定义聊天服务器链接",onChange:p=>a(f)},null,8,["value","onUpdate:value","onChange"])):(te(),Se("span",Ov,Ue(f.baseUrl),1))]),be("td",null,[f.baseUrl&&f.isUsable===void 0&&f.delay===void 0?(te(),Se("div",Mv,[G(E(ce),{tertiary:"",loading:!0,size:"small",type:"info"})])):f.baseUrl?(te(),Se("div",{key:1,class:"flex justify-center items-center flex-wrap gap-2",onClick:p=>l(f)},[f.isUsable===!1?(te(),ke(E(er),{key:0,type:"error",class:"cursor-pointer"},{default:X(()=>[se("不可用")]),_:1})):Je("",!0),f.delay?(te(),ke(E(er),{key:1,type:"success",class:"cursor-pointer"},{default:X(()=>[se(Ue(f.delay)+" ms",1)]),_:2},1024)):Je("",!0)],8,Bv)):Je("",!0)]),be("td",null,[be("div",Lv,[G(E(ce),{class:"hidden lg:table-cell",secondary:"",onClick:p=>l(f)},{default:X(()=>[se("检测")]),_:2},1032,["onClick"]),f.baseUrl===E(n)?(te(),ke(E(ce),{key:0,secondary:"",type:"success"},{default:X(()=>[se("当前")]),_:1})):(te(),ke(E(ce),{key:1,secondary:"",type:"info",onClick:p=>d(f)},{default:X(()=>[se("选择")]),_:2},1032,["onClick"]))])])]))),128))])]),_:1})]),_:1},8,["show"]))}}),Av=be("div",{class:"w-0 md:w-[60px]"},null,-1),Dv={key:0,class:"fixed top-0 left-0 w-screen h-screen flex justify-center items-center bg-black/40 z-50"},Fv=130,Nv=q({__name:"Chat",setup(e){const t=$t(),r=M(!0),o=At(),{isShowPromptSotre:n,isShowChatPrompt:i,keyword:l,promptList:d,searchPromptList:a,selectedPromptIndex:s}=ot(o),u=so(),{isShowChatServiceSelectModal:f,sydneyConfigs:h,selectedSydneyBaseUrl:p}=ot(u),v=_i(),y=M(),w=M(!1),x=M(!1),P=M(!1),k=M(""),b=M(!1),m=D(()=>CIB.vm.isMobile&&CIB.vm.sidePanel.isVisibleMobile||!CIB.vm.isMobile&&CIB.vm.sidePanel.isVisibleDesktop);et(async()=>{await _(),R(),SydneyFullScreenConv.initWithWaitlistUpdate({cookLoc:{}},10),A(),r.value=!1,K(),F()});const R=()=>{},z=()=>{if(p.value)CIB.config.sydney.baseUrl=p.value,f.value=!1;else{if(f.value=!0,p.value=CIB.config.sydney.baseUrl,h.value.filter(oe=>!oe.isCus).every(oe=>oe.baseUrl!==p.value)){const oe=h.value.find(Q=>Q.isCus);oe&&(oe.baseUrl=p.value)}u.checkAllSydneyConfig()}},A=async()=>{const W=await v.getSysConfig();switch(W.code){case co.OK:{if(!W.data.isAuth){P.value=!0;return}$(W.data)}break;default:t.error(`[${W.code}] ${W.message}`);break}},$=W=>{W.isSysCK||v.checkUserToken(),z()},_=async()=>new Promise((W,oe)=>{sj_evt.bind("sydFSC.init",W,!0),sj_evt.fire("showSydFSC")}),K=()=>{var ye,ne,Le,Ne,He,Ee,U,J,V;location.hostname==="localhost"&&(CIB.config.sydney.hostnamesToBypassSecureConnection=CIB.config.sydney.hostnamesToBypassSecureConnection.filter(de=>de!==location.hostname));const W=document.querySelector("cib-serp");W==null||W.setAttribute("alignment","center");const oe=(ye=W==null?void 0:W.shadowRoot)==null?void 0:ye.querySelector("cib-conversation"),Q=(ne=oe==null?void 0:oe.shadowRoot)==null?void 0:ne.querySelector("cib-welcome-container");(Ne=(Le=Q==null?void 0:Q.shadowRoot)==null?void 0:Le.querySelector(".footer"))==null||Ne.remove(),(Ee=(He=W==null?void 0:W.shadowRoot)==null?void 0:He.querySelector("cib-serp-feedback"))==null||Ee.remove(),Ii()&&((J=(U=Q==null?void 0:Q.shadowRoot)==null?void 0:U.querySelector(".container-item"))==null||J.remove(),CIB.vm.actionBar.input.placeholder='有问题尽管问我...("/" 触发提示词)');const we=document.createElement("style");we.innerText=bv,(V=oe.shadowRoot)==null||V.append(we)},F=()=>{var Q,we;const W=(we=(Q=document.querySelector("#b_sydConvCont > cib-serp"))==null?void 0:Q.shadowRoot)==null?void 0:we.querySelector("#cib-action-bar-main"),oe=W.handleInputTextKey;W.handleInputTextKey=function(ye){if(!(ye.key==="Enter"&&i.value))return oe.apply(this,[ye])},CIB.vm.actionBar.input.addEventListener("compositionstart",O),CIB.vm.actionBar.input.addEventListener("compositionend",C),CIB.vm.actionBar.input.addEventListener("change",T),CIB.vm.actionBar.input.addEventListener("input",T),CIB.vm.actionBar.input.addEventListener("keydown",Y),CIB.vm.actionBar.input.addEventListener("focus",H),CIB.vm.actionBar.input.addEventListener("blur",N)},O=W=>{w.value=!0},C=W=>{w.value=!1,T(W)},T=W=>{var oe;w.value||(W instanceof InputEvent||W instanceof CompositionEvent)&&W.target instanceof HTMLTextAreaElement&&((oe=W.target.value)!=null&&oe.startsWith("/")?(i.value=!0,l.value=W.target.value.slice(1),s.value=0):(l.value="",i.value=!1))},H=W=>{},N=W=>{setTimeout(()=>{i.value=!1},200)},Y=W=>{switch(W.key){case"ArrowUp":s.value>0&&(s.value--,y.value&&y.value.scrollToIndex(s.value));break;case"ArrowDown":s.value{W&&(l.value="",CIB.vm.actionBar.textInput.value=W.prompt,i.value=!1)},ve=()=>{x.value=!0,setTimeout(()=>{var W;if(x.value===!0){x.value=!1;const oe=((W=y.value)==null?void 0:W.getOffset())||0;s.value=Math.round(oe/Fv)}},100)},Ce=async()=>{if(!k.value){t.error("请先输入授权码");return}b.value=!0,v.setAuthKey(k.value);const W=await v.getSysConfig();W.data.isAuth?(t.success("授权成功"),P.value=!1,$(W.data)):t.error("授权码有误"),b.value=!1};return(W,oe)=>(te(),Se(Ve,null,[G(Tv,{"is-show":r.value},null,8,["is-show"]),be("main",null,[E(i)?(te(),Se("div",{key:0,class:Rn(["box-border fixed bottom-[110px] w-full flex justify-center px-[14px] md:px-[34px] z-999",{"md:px-[170px]":m.value,"xl:px-[220px]":m.value}])},[Av,E(d).length>0?(te(),ke(E(Oi),{key:0,ref_key:"scrollbarRef",ref:y,class:"bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl overflow-y-auto","data-key":"prompt","data-sources":E(a),"data-component":wv,keeps:10,onScroll:ve},null,8,["data-sources"])):(te(),ke(E(oo),{key:1,class:"bg-white w-full max-w-[1060px] max-h-[390px] rounded-xl py-6",description:"暂未设置提示词数据"},{extra:X(()=>[G(E(ce),{secondary:"",type:"info",onClick:oe[0]||(oe[0]=Q=>n.value=!0)},{default:X(()=>[se("去提示词库添加")]),_:1})]),_:1}))],2)):Je("",!0)]),be("footer",null,[G(Ev),P.value?(te(),Se("div",Dv,[G(E(ap),{class:"box-border w-11/12 lg:w-[400px] px-4 py-4 bg-white rounded-md",status:"403",title:"401 未授权"},{footer:X(()=>[G(E(Qe),{class:"w-11/12",value:k.value,"onUpdate:value":oe[1]||(oe[1]=Q=>k.value=Q),type:"password",placeholder:"请输入授权码",maxlength:"60",clearable:""},null,8,["value"]),G(E(ce),{class:"mt-4",secondary:"",type:"info",loading:b.value,onClick:Ce},{default:X(()=>[se("授权")]),_:1},8,["loading"])]),_:1})])):Je("",!0)])],64))}}),jv=q({__name:"index",setup(e){return(t,r)=>(te(),Se("main",null,[G(Yp),G(mv),G(Nv)]))}});export{jv as default}; diff --git a/web/compose.html b/web/compose.html index 99c12f9cdc..1803227cc1 100644 --- a/web/compose.html +++ b/web/compose.html @@ -1,2694 +1,27 @@ - - - - - BingAI - 撰写 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
    -
  1. -
    - -
    -
    -
    -
    - - -
    -
    -
    -
    -
  2. -
  3. -
    -
  4. -
-
- - -
- - - - \ No newline at end of file +BingAI - 撰写
\ No newline at end of file diff --git a/web/index.html b/web/index.html index d6c2a43a62..ad25a40248 100644 --- a/web/index.html +++ b/web/index.html @@ -40,8 +40,8 @@ - - + + diff --git a/web/sw.js b/web/sw.js index 2b70eb7aff..ccb2a41d97 100644 --- a/web/sw.js +++ b/web/sw.js @@ -1,2 +1,2 @@ try{self["workbox:core:6.5.4"]&&_()}catch{}const z=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},J=z;class l extends Error{constructor(e,t){const n=J(e,t);super(n),this.name=e,this.details=t}}const d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},D=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),X=s=>{for(const e of Object.keys(d))s(e)},b={updateDetails:s=>{X(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||D(d.googleAnalytics),getPrecacheName:s=>s||D(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||D(d.runtime),getSuffix:()=>d.suffix};function O(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:6.5.4"]&&_()}catch{}const Y="__WB_REVISION__";function Z(s){if(!s)throw new l("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const r=new URL(s,location.href);return{cacheKey:r.href,url:r.href}}const{revision:e,url:t}=s;if(!t)throw new l("add-to-cache-list-unexpected-type",{entry:s});if(!e){const r=new URL(t,location.href);return{cacheKey:r.href,url:r.href}}const n=new URL(t,location.href),a=new URL(t,location.href);return n.searchParams.set(Y,e),{cacheKey:n.href,url:a.href}}class ee{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;n?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return n}}}class te{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:n})=>{const a=(n==null?void 0:n.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let w;function se(){if(w===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),w=!0}catch{w=!1}w=!1}return w}async function ne(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new l("cross-origin-copy-response",{origin:t});const n=s.clone(),a={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},r=e?e(a):a,i=se()?n.body:await n.blob();return new Response(i,r)}const ae=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function S(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function re(s,e,t,n){const a=S(e.url,t);if(e.url===a)return s.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,r);for(const c of i){const o=S(c.url,t);if(a===o)return s.match(c,n)}}class ie{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const F=new Set;async function ce(){for(const s of F)await s()}function oe(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:6.5.4"]&&_()}catch{}function C(s){return typeof s=="string"?new Request(s):s}class he{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new ie,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=C(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new l("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=C(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=C(e);await oe(0);const a=await this.getCacheKey(n,"write");if(!t)throw new l("cache-put-with-no-response",{url:ae(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),h=this.hasCallback("cacheDidUpdate"),m=h?await re(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,h?r.clone():r)}catch(u){if(u instanceof Error)throw u.name==="QuotaExceededError"&&await ce(),u}for(const u of this.iterateCallbacks("cacheDidUpdate"))await u({cacheName:i,oldResponse:m,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=C(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class N{constructor(e={}){this.cacheName=b.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new he(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new l("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}}class p extends N{constructor(e={}){e.cacheName=b.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(p.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const n=await t.cacheMatch(e);return n||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let n;const a=t.params||{};if(this._fallbackToNetwork){const r=a.integrity,i=e.integrity,c=!i||i===r;n=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?i||r:void 0})),r&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,n.clone()))}else throw new l("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const n=await t.fetch(e);if(!await t.cachePut(e,n.clone()))throw new l("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[n,a]of this.plugins.entries())a!==p.copyRedirectedCacheableResponsesPlugin&&(a===p.defaultPrecacheCacheabilityPlugin&&(e=n),a.cacheWillUpdate&&t++);t===0?this.plugins.push(p.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}p.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};p.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await ne(s):s}};class le{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new p({cacheName:b.getPrecacheName(e),plugins:[...t,new te({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const n of e){typeof n=="string"?t.push(n):n&&n.revision===void 0&&t.push(n.url);const{cacheKey:a,url:r}=Z(n),i=typeof n!="string"&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(r)&&this._urlsToCacheKeys.get(r)!==a)throw new l("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(r),secondEntry:a});if(typeof n!="string"&&n.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==n.integrity)throw new l("add-to-cache-list-conflicting-integrities",{url:r});this._cacheKeysToIntegrities.set(a,n.integrity)}if(this._urlsToCacheKeys.set(r,a),this._urlsToCacheModes.set(r,i),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")} -This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return O(e,async()=>{const t=new ee;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),h=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:h,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return O(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new l("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let L;const M=()=>(L||(L=new le),L);try{self["workbox:routing:6.5.4"]&&_()}catch{}const H="GET",x=s=>s&&typeof s=="object"?s:{handle:s};class g{constructor(e,t,n=H){this.handler=x(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=x(e)}}class ue extends g{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class de{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let h;try{h=c.handle({url:n,request:e,event:t,params:r})}catch(u){h=Promise.reject(u)}const m=i&&i.catchHandler;return h instanceof Promise&&(this._catchHandler||m)&&(h=h.catch(async u=>{if(m)try{return await m.handle({url:n,request:e,event:t,params:r})}catch(K){K instanceof Error&&(u=K)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw u})),h}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=H){this._defaultHandlerMap.set(t,x(e))}setCatchHandler(e){this._catchHandler=x(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new l("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new l("unregister-route-route-not-registered")}}let y;const fe=()=>(y||(y=new de,y.addFetchListener(),y.addCacheListener()),y);function E(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new g(i,e,t)}else if(s instanceof RegExp)n=new ue(s,e,t);else if(typeof s=="function")n=new g(s,e,t);else if(s instanceof g)n=s;else throw new l("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return fe().registerRoute(n),n}function pe(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*ge(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=pe(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class me extends g{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of ge(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function we(s){const e=M(),t=new me(e,s);E(t)}const ye="-precache-",_e=async(s,e=ye)=>{const n=(await self.caches.keys()).filter(a=>a.includes(e)&&a.includes(self.registration.scope)&&a!==s);return await Promise.all(n.map(a=>self.caches.delete(a))),n};function Re(){self.addEventListener("activate",s=>{const e=b.getPrecacheName();s.waitUntil(_e(e).then(t=>{}))})}function be(s){return M().createHandlerBoundToURL(s)}function Ce(s){M().precache(s)}function xe(s,e){Ce(s),we(e)}class Ee extends g{constructor(e,{allowlist:t=[/./],denylist:n=[]}={}){super(a=>this._match(a),e),this._allowlist=t,this._denylist=n}_match({url:e,request:t}){if(t&&t.mode!=="navigate")return!1;const n=e.pathname+e.search;for(const a of this._denylist)if(a.test(n))return!1;return!!this._allowlist.some(a=>a.test(n))}}class De extends N{async _handle(e,t){let n=await t.cacheMatch(e),a;if(!n)try{n=await t.fetchAndCachePut(e)}catch(r){r instanceof Error&&(a=r)}if(!n)throw new l("no-response",{url:e.url,error:a});return n}}const Le={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class Ue extends N{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(Le)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new l("no-response",{url:e.url,error:r});return a}}try{self["workbox:core:6.6.0"]&&_()}catch{}try{self["workbox:cacheable-response:6.6.0"]&&_()}catch{}class Te{constructor(e={}){this._statuses=e.statuses,this._headers=e.headers}isResponseCacheable(e){let t=!0;return this._statuses&&(t=this._statuses.includes(e.status)),this._headers&&t&&(t=Object.keys(this._headers).some(n=>e.headers.get(n)===this._headers[n])),t}}class q{constructor(e){this.cacheWillUpdate=async({response:t})=>this._cacheableResponse.isResponseCacheable(t)?t:null,this._cacheableResponse=new Te(e)}}function V(s){s.then(()=>{})}const ke=(s,e)=>e.some(t=>s instanceof t);let v,W;function Pe(){return v||(v=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ie(){return W||(W=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const $=new WeakMap,P=new WeakMap,G=new WeakMap,U=new WeakMap,A=new WeakMap;function Ne(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(f(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&$.set(t,s)}).catch(()=>{}),A.set(e,s),e}function Me(s){if(P.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});P.set(s,e)}let I={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return P.get(s);if(e==="objectStoreNames")return s.objectStoreNames||G.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return f(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Ae(s){I=s(I)}function Ke(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(T(this),e,...t);return G.set(n,e.sort?e.sort():[e]),f(n)}:Ie().includes(s)?function(...e){return s.apply(T(this),e),f($.get(this))}:function(...e){return f(s.apply(T(this),e))}}function Oe(s){return typeof s=="function"?Ke(s):(s instanceof IDBTransaction&&Me(s),ke(s,Pe())?new Proxy(s,I):s)}function f(s){if(s instanceof IDBRequest)return Ne(s);if(U.has(s))return U.get(s);const e=Oe(s);return e!==s&&(U.set(s,e),A.set(e,s)),e}const T=s=>A.get(s);function Se(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=f(i);return n&&i.addEventListener("upgradeneeded",o=>{n(f(i.result),o.oldVersion,o.newVersion,f(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",h=>a(h.oldVersion,h.newVersion,h))}).catch(()=>{}),c}function ve(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),f(t).then(()=>{})}const We=["get","getKey","getAll","getAllKeys","count"],Be=["put","add","delete","clear"],k=new Map;function B(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(k.get(e))return k.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=Be.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||We.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let h=o.store;return n&&(h=h.index(c.shift())),(await Promise.all([h[t](...c),a&&o.done]))[0]};return k.set(e,r),r}Ae(s=>({...s,get:(e,t,n)=>B(e,t)||s.get(e,t,n),has:(e,t)=>!!B(e,t)||s.has(e,t)}));try{self["workbox:expiration:6.5.4"]&&_()}catch{}const je="workbox-expiration",R="cache-entries",j=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class Fe{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(R,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&ve(this._cacheName)}async setTimestamp(e,t){e=j(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(R,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(R,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(R).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(R,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+j(e)}async getDb(){return this._db||(this._db=await Se(je,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class He{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new Fe(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,V(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);V(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&qe(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===b.getRuntimeName())throw new l("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new He(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}const Q="BingAI";self.addEventListener("message",s=>{s.data&&s.data.type==="SKIP_WAITING"&&self.skipWaiting()});xe([{"revision":null,"url":"assets/index-1dc749ba.css"},{"revision":null,"url":"assets/index-29dab197.css"},{"revision":null,"url":"assets/index-5dc69d8e.js"},{"revision":null,"url":"assets/index-6fdcb9a0.js"},{"revision":"18bd31f4fcc9ccffa524516977fa131f","url":"compose.html"},{"revision":"ce95fae05f78293d38a7a4774714fdca","url":"index.html"},{"revision":"cba1dae26839c5629da85ee6e065f87b","url":"js/bing/chat/amd.js"},{"revision":"c5b488205799bf7f1eec93801ab6414f","url":"js/bing/chat/config.js"},{"revision":"254b7b2d7a180cbcc2f3e544e4cbaaa5","url":"js/bing/chat/core.js"},{"revision":"b3cb248102cccc1609209d99d8bcb600","url":"js/bing/chat/global.js"},{"revision":"2cacc1c83189413a660fe9784a0956c0","url":"js/bing/chat/lib.js"},{"revision":"bf6c2f29aef95e09b1f72cf59f427a55","url":"registerSW.js"},{"revision":"1da58864f14c1a8c28f8587d6dcbc5d0","url":"img/logo.svg"},{"revision":"be40443731d9d4ead5e9b1f1a6070135","url":"./img/pwa/logo-192.png"},{"revision":"1217f1c90acb9f231e3135fa44af7efc","url":"./img/pwa/logo-512.png"},{"revision":"5e5048c8a928b9d4bd7d262e1f7a5976","url":"manifest.webmanifest"}]);Re();E(new Ee(be("./index.html")));E(({request:s,url:e})=>s.destination==="style"||s.destination==="manifest"||s.destination==="script"||s.destination==="worker",new Ue({cacheName:`${Q}-assets`,plugins:[new q({statuses:[200]})]}));E(({request:s,url:e})=>e.pathname.includes("hm.gif")||e.pathname.includes("/fd/ls/")?!1:s.destination==="image",new De({cacheName:`${Q}-images`,plugins:[new q({statuses:[200]}),new Ve({maxEntries:100,maxAgeSeconds:60*60*24*30})]}));self.addEventListener("install",s=>{self.skipWaiting()}); +This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return O(e,async()=>{const t=new ee;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),h=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:h,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return O(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new l("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let L;const M=()=>(L||(L=new le),L);try{self["workbox:routing:6.5.4"]&&_()}catch{}const H="GET",x=s=>s&&typeof s=="object"?s:{handle:s};class g{constructor(e,t,n=H){this.handler=x(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=x(e)}}class ue extends g{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class de{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let h;try{h=c.handle({url:n,request:e,event:t,params:r})}catch(u){h=Promise.reject(u)}const m=i&&i.catchHandler;return h instanceof Promise&&(this._catchHandler||m)&&(h=h.catch(async u=>{if(m)try{return await m.handle({url:n,request:e,event:t,params:r})}catch(K){K instanceof Error&&(u=K)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw u})),h}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=H){this._defaultHandlerMap.set(t,x(e))}setCatchHandler(e){this._catchHandler=x(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new l("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new l("unregister-route-route-not-registered")}}let y;const fe=()=>(y||(y=new de,y.addFetchListener(),y.addCacheListener()),y);function E(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new g(i,e,t)}else if(s instanceof RegExp)n=new ue(s,e,t);else if(typeof s=="function")n=new g(s,e,t);else if(s instanceof g)n=s;else throw new l("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return fe().registerRoute(n),n}function pe(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*ge(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=pe(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class me extends g{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of ge(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function we(s){const e=M(),t=new me(e,s);E(t)}const ye="-precache-",_e=async(s,e=ye)=>{const n=(await self.caches.keys()).filter(a=>a.includes(e)&&a.includes(self.registration.scope)&&a!==s);return await Promise.all(n.map(a=>self.caches.delete(a))),n};function Re(){self.addEventListener("activate",s=>{const e=b.getPrecacheName();s.waitUntil(_e(e).then(t=>{}))})}function be(s){return M().createHandlerBoundToURL(s)}function Ce(s){M().precache(s)}function xe(s,e){Ce(s),we(e)}class Ee extends g{constructor(e,{allowlist:t=[/./],denylist:n=[]}={}){super(a=>this._match(a),e),this._allowlist=t,this._denylist=n}_match({url:e,request:t}){if(t&&t.mode!=="navigate")return!1;const n=e.pathname+e.search;for(const a of this._denylist)if(a.test(n))return!1;return!!this._allowlist.some(a=>a.test(n))}}class De extends N{async _handle(e,t){let n=await t.cacheMatch(e),a;if(!n)try{n=await t.fetchAndCachePut(e)}catch(r){r instanceof Error&&(a=r)}if(!n)throw new l("no-response",{url:e.url,error:a});return n}}const Le={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class Ue extends N{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(Le)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new l("no-response",{url:e.url,error:r});return a}}try{self["workbox:core:6.6.0"]&&_()}catch{}try{self["workbox:cacheable-response:6.6.0"]&&_()}catch{}class Te{constructor(e={}){this._statuses=e.statuses,this._headers=e.headers}isResponseCacheable(e){let t=!0;return this._statuses&&(t=this._statuses.includes(e.status)),this._headers&&t&&(t=Object.keys(this._headers).some(n=>e.headers.get(n)===this._headers[n])),t}}class q{constructor(e){this.cacheWillUpdate=async({response:t})=>this._cacheableResponse.isResponseCacheable(t)?t:null,this._cacheableResponse=new Te(e)}}function V(s){s.then(()=>{})}const ke=(s,e)=>e.some(t=>s instanceof t);let v,W;function Pe(){return v||(v=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ie(){return W||(W=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const $=new WeakMap,P=new WeakMap,G=new WeakMap,U=new WeakMap,A=new WeakMap;function Ne(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(f(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&$.set(t,s)}).catch(()=>{}),A.set(e,s),e}function Me(s){if(P.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});P.set(s,e)}let I={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return P.get(s);if(e==="objectStoreNames")return s.objectStoreNames||G.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return f(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Ae(s){I=s(I)}function Ke(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(T(this),e,...t);return G.set(n,e.sort?e.sort():[e]),f(n)}:Ie().includes(s)?function(...e){return s.apply(T(this),e),f($.get(this))}:function(...e){return f(s.apply(T(this),e))}}function Oe(s){return typeof s=="function"?Ke(s):(s instanceof IDBTransaction&&Me(s),ke(s,Pe())?new Proxy(s,I):s)}function f(s){if(s instanceof IDBRequest)return Ne(s);if(U.has(s))return U.get(s);const e=Oe(s);return e!==s&&(U.set(s,e),A.set(e,s)),e}const T=s=>A.get(s);function Se(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=f(i);return n&&i.addEventListener("upgradeneeded",o=>{n(f(i.result),o.oldVersion,o.newVersion,f(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",h=>a(h.oldVersion,h.newVersion,h))}).catch(()=>{}),c}function ve(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),f(t).then(()=>{})}const We=["get","getKey","getAll","getAllKeys","count"],Be=["put","add","delete","clear"],k=new Map;function B(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(k.get(e))return k.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=Be.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||We.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let h=o.store;return n&&(h=h.index(c.shift())),(await Promise.all([h[t](...c),a&&o.done]))[0]};return k.set(e,r),r}Ae(s=>({...s,get:(e,t,n)=>B(e,t)||s.get(e,t,n),has:(e,t)=>!!B(e,t)||s.has(e,t)}));try{self["workbox:expiration:6.5.4"]&&_()}catch{}const je="workbox-expiration",R="cache-entries",j=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class Fe{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(R,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&ve(this._cacheName)}async setTimestamp(e,t){e=j(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(R,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(R,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(R).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(R,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+j(e)}async getDb(){return this._db||(this._db=await Se(je,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class He{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new Fe(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,V(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);V(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&qe(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===b.getRuntimeName())throw new l("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new He(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}const Q="BingAI";self.addEventListener("message",s=>{s.data&&s.data.type==="SKIP_WAITING"&&self.skipWaiting()});xe([{"revision":null,"url":"assets/index-07ea0599.css"},{"revision":null,"url":"assets/index-1dc749ba.css"},{"revision":null,"url":"assets/index-2fa7b466.js"},{"revision":null,"url":"assets/index-ceb80788.js"},{"revision":"544d0fbc10619f72224e256afbe5b419","url":"compose.html"},{"revision":"31a490f4a39ebed113f7a772c8fbc941","url":"index.html"},{"revision":"cba1dae26839c5629da85ee6e065f87b","url":"js/bing/chat/amd.js"},{"revision":"c5b488205799bf7f1eec93801ab6414f","url":"js/bing/chat/config.js"},{"revision":"254b7b2d7a180cbcc2f3e544e4cbaaa5","url":"js/bing/chat/core.js"},{"revision":"b3cb248102cccc1609209d99d8bcb600","url":"js/bing/chat/global.js"},{"revision":"2cacc1c83189413a660fe9784a0956c0","url":"js/bing/chat/lib.js"},{"revision":"bf6c2f29aef95e09b1f72cf59f427a55","url":"registerSW.js"},{"revision":"1da58864f14c1a8c28f8587d6dcbc5d0","url":"img/logo.svg"},{"revision":"be40443731d9d4ead5e9b1f1a6070135","url":"./img/pwa/logo-192.png"},{"revision":"1217f1c90acb9f231e3135fa44af7efc","url":"./img/pwa/logo-512.png"},{"revision":"5e5048c8a928b9d4bd7d262e1f7a5976","url":"manifest.webmanifest"}]);Re();E(new Ee(be("./index.html")));E(({request:s,url:e})=>s.destination==="style"||s.destination==="manifest"||s.destination==="script"||s.destination==="worker",new Ue({cacheName:`${Q}-assets`,plugins:[new q({statuses:[200]})]}));E(({request:s,url:e})=>e.pathname.includes("hm.gif")||e.pathname.includes("/fd/ls/")?!1:s.destination==="image",new De({cacheName:`${Q}-images`,plugins:[new q({statuses:[200]}),new Ve({maxEntries:100,maxAgeSeconds:60*60*24*30})]}));self.addEventListener("install",s=>{self.skipWaiting()});