diff --git a/web/assets/index-42586374.js b/web/assets/index-81176d77.js similarity index 99% rename from web/assets/index-42586374.js rename to web/assets/index-81176d77.js index f10bdcd489..c26335f88e 100644 --- a/web/assets/index-42586374.js +++ b/web/assets/index-81176d77.js @@ -1,4 +1,4 @@ -import{v as Ot,i as Ae,g as lr,w as Ze,o as Mt,r as $,a as ht,b as Na,c as E,d as Rc,h as Mc,e as ja,f as ut,j as Bc,k as ft,l as xt,m as jn,n as Vn,p as Lr,u as Ge,q as le,s as et,t as Dc,x as wt,y as Ii,C as Oc,z as Un,A as me,B as _r,D as u,L as Va,E as qn,F as io,G as Ua,H as qa,I as mt,V as zr,J as ao,K as kt,M as Lc,N as Ri,O as Fr,P as Ar,Q as _c,R as Fc,S as Kn,T as Ac,U as lo,W as Ka,X as Gn,Y as Xn,Z as Lo,_ as Ga,$ as kn,a0 as Mi,a1 as Ec,a2 as Bi,a3 as Di,a4 as $r,a5 as Hc,a6 as Oi,a7 as Wc,a8 as Nc,a9 as jc,aa as Vc,ab as Uc,ac as qc,ad as Kc,ae as Xa,af as At,ag as Yn,ah as Ya,ai as ct,aj as be,ak as ie,al as B,am as A,an as X,ao as Je,ap as $e,aq as dt,ar as qe,as as Se,at as Gc,au as We,av as $t,aw as _t,ax as Yt,ay as Q,az as tt,aA as Er,aB as eo,aC as nt,aD as Zn,aE as Za,aF as Zt,aG as mo,aH as Xc,aI as so,aJ as Ir,aK as Pn,aL as Qo,aM as Yc,aN as Rt,aO as Ja,aP as Li,aQ as $n,aR as Zc,aS as Qa,aT as Ie,aU as U,aV as Jc,aW as _i,aX as Rr,aY as el,aZ as Jn,a_ as Qc,a$ as eu,b0 as tu,b1 as sr,b2 as Hr,b3 as ou,b4 as Tt,b5 as ru,b6 as nu,b7 as iu,b8 as rr,b9 as au,ba as lu,bb as tl,bc as su,bd as du,be as Fi,bf as nr,bg as cu,bh as uu,bi as Ai,bj as Tn,bk as Ei,bl as ol,bm as rl,bn as _o,bo as fu,bp as Qn,bq as ei,br as ti,bs as oi,bt as nl,bu as He,bv as Hi,bw as hu,bx as pu,by as gu,bz as vu,bA as mu,bB as ri,bC as Me,bD as lt,bE as bt,bF as it,bG as ee,bH as Ye,bI as q,bJ as bu,bK as L,bL as Oe,bM as Gt,bN as Ft,bO as ro,bP as xu,bQ as il,bR as Cu,bS as al,bT as Xt,bU as ll,bV as yu,bW as wu}from"./index-80d2e354.js";let Mr=[];const sl=new WeakMap;function Su(){Mr.forEach(e=>e(...sl.get(e))),Mr=[]}function Wr(e,...t){sl.set(e,t),!Mr.includes(e)&&Mr.push(e)===1&&requestAnimationFrame(Su)}function Do(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function ku(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(o=>{if(o==="")return;const[r,n]=o.split(":");n===void 0?t[""]=r:t[r]=n}),t}function $o(e,t){var o;if(e==null)return;const r=ku(e);if(t===void 0)return r[""];if(typeof t=="string")return(o=r[t])!==null&&o!==void 0?o:r[""];if(Array.isArray(t)){for(let n=t.length-1;n>=0;--n){const i=t[n];if(i in r)return r[i]}return r[""]}else{let n,i=-1;return Object.keys(r).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,n=r[a])}),n}}function dl(e,t="default",o=[]){const n=e.$slots[t];return n===void 0?o:n()}function Pu(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function $u(e){return t=>{t?e.value=t.$el:e.value=null}}function on(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(r=>{r&&r(o)})}}function Tu(e){var t;const o=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===Ot);return!!(o&&o.value===!1)}const zu=/^(\d|\.)+$/,Wi=/(\d|\.)+/;function St(e,{c:t=1,offset:o=0,attachPx:r=!0}={}){if(typeof e=="number"){const n=(e+o)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(zu.test(e)){const n=(Number(e)+o)*t;return r?n===0?"0":`${n}px`:`${n}`}else{const n=Wi.exec(e);return n?e.replace(Wi,String((Number(n[0])+o)*t)):e}return e}let rn;function Iu(){return rn===void 0&&(rn=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),rn}function Ru(e,t,o){var r;const n=Ae(e,null);if(n===null)return;const i=(r=lr())===null||r===void 0?void 0:r.proxy;Ze(o,a),a(o.value),Mt(()=>{a(void 0,o.value)});function a(d,c){if(!n)return;const f=n[t];c!==void 0&&l(f,c),d!==void 0&&s(f,d)}function l(d,c){d[c]||(d[c]=[]),d[c].splice(d[c].findIndex(f=>f===i),1)}function s(d,c){d[c]||(d[c]=[]),~d[c].findIndex(f=>f===i)||d[c].push(i)}}function Mu(e,t,o){if(!t)return e;const r=$(e.value);let n=null;return Ze(e,i=>{n!==null&&window.clearTimeout(n),i===!0?o&&!o.value?r.value=!0:n=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}let Bo,er;const Bu=()=>{var e,t;Bo=Na?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,er=!1,Bo!==void 0?Bo.then(()=>{er=!0}):er=!0};Bu();function Du(e){if(er)return;let t=!1;ht(()=>{er||Bo==null||Bo.then(()=>{t||e()})}),Mt(()=>{t=!0})}function co(e,t){return Ze(e,o=>{o!==void 0&&(t.value=o)}),E(()=>e.value===void 0?t.value:e.value)}function cl(e,t){return E(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}const Ou={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function Lu(e){return`(min-width: ${e}px)`}const qo={};function _u(e=Ou){if(!Na)return E(()=>[]);if(typeof window.matchMedia!="function")return E(()=>[]);const t=$({}),o=Object.keys(e),r=(n,i)=>{n.matches?t.value[i]=!0:t.value[i]=!1};return o.forEach(n=>{const i=e[n];let a,l;qo[i]===void 0?(a=window.matchMedia(Lu(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(d=>{d(s,n)})}):a.addListener&&a.addListener(s=>{l.forEach(d=>{d(s,n)})}),l=new Set,qo[i]={mql:a,cbs:l}):(a=qo[i].mql,l=qo[i].cbs),l.add(r),a.matches&&l.forEach(s=>{s(a,n)})}),Mt(()=>{o.forEach(n=>{const{cbs:i}=qo[e[n]];i.has(r)&&i.delete(r)})}),E(()=>{const{value:n}=t;return o.filter(i=>n[i])})}function Fu(e={},t){const o=Rc({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:n}=e,i=s=>{switch(s.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}r!==void 0&&Object.keys(r).forEach(d=>{if(d!==s.key)return;const c=r[d];if(typeof c=="function")c(s);else{const{stop:f=!1,prevent:h=!1}=c;f&&s.stopPropagation(),h&&s.preventDefault(),c.handler(s)}})},a=s=>{switch(s.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}n!==void 0&&Object.keys(n).forEach(d=>{if(d!==s.key)return;const c=n[d];if(typeof c=="function")c(s);else{const{stop:f=!1,prevent:h=!1}=c;f&&s.stopPropagation(),h&&s.preventDefault(),c.handler(s)}})},l=()=>{(t===void 0||t.value)&&(ft("keydown",document,i),ft("keyup",document,a)),t!==void 0&&Ze(t,s=>{s?(ft("keydown",document,i),ft("keyup",document,a)):(ut("keydown",document,i),ut("keyup",document,a))})};return Mc()?(ja(l),Mt(()=>{(t===void 0||t.value)&&(ut("keydown",document,i),ut("keyup",document,a))})):l(),Bc(o)}const ni=xt("n-internal-select-menu"),ul=xt("n-internal-select-menu-body"),fl="__disabled__";function Qt(e){const t=Ae(jn,null),o=Ae(Vn,null),r=Ae(Lr,null),n=Ae(ul,null),i=$();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};ht(()=>{ft("fullscreenchange",document,a)}),Mt(()=>{ut("fullscreenchange",document,a)})}return Ge(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?fl:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:o!=null&&o.value?o.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:l??(i.value||"body")})}Qt.tdkey=fl;Qt.propTo={type:[String,Object,Boolean],default:void 0};let oo=null;function hl(){if(oo===null&&(oo=document.getElementById("v-binder-view-measurer"),oo===null)){oo=document.createElement("div"),oo.id="v-binder-view-measurer";const{style:e}=oo;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(oo)}return oo.getBoundingClientRect()}function Au(e,t){const o=hl();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function nn(e){const t=e.getBoundingClientRect(),o=hl();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function Eu(e){return e.nodeType===9?null:e.parentNode}function pl(e){if(e===null)return null;const t=Eu(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:r,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+n+r))return t}return pl(t)}const Hu=le({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;et("VBinder",(t=lr())===null||t===void 0?void 0:t.proxy);const o=Ae("VBinder",null),r=$(null),n=m=>{r.value=m,o&&e.syncTargetWithParent&&o.setTargetRef(m)};let i=[];const a=()=>{let m=r.value;for(;m=pl(m),m!==null;)i.push(m);for(const y of i)ft("scroll",y,f,!0)},l=()=>{for(const m of i)ut("scroll",m,f,!0);i=[]},s=new Set,d=m=>{s.size===0&&a(),s.has(m)||s.add(m)},c=m=>{s.has(m)&&s.delete(m),s.size===0&&l()},f=()=>{Wr(h)},h=()=>{s.forEach(m=>m())},g=new Set,p=m=>{g.size===0&&ft("resize",window,b),g.has(m)||g.add(m)},v=m=>{g.has(m)&&g.delete(m),g.size===0&&ut("resize",window,b)},b=()=>{g.forEach(m=>m())};return Mt(()=>{ut("resize",window,b),l()}),{targetRef:r,setTargetRef:n,addScrollListener:d,removeScrollListener:c,addResizeListener:p,removeResizeListener:v}},render(){return Dc("binder",this.$slots)}}),ii=Hu,ai=le({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Ae("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?wt(Ii("follower",this.$slots),[[t]]):Ii("follower",this.$slots)}}),To="@@mmoContext",Wu={mounted(e,{value:t}){e[To]={handler:void 0},typeof t=="function"&&(e[To].handler=t,ft("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[To];typeof t=="function"?o.handler?o.handler!==t&&(ut("mousemoveoutside",e,o.handler),o.handler=t,ft("mousemoveoutside",e,t)):(e[To].handler=t,ft("mousemoveoutside",e,t)):o.handler&&(ut("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[To];t&&ut("mousemoveoutside",e,t),e[To].handler=void 0}},Nu=Wu,{c:no}=Oc(),li="vueuc-style";function Ni(e){return e&-e}class ju{constructor(t,o){this.l=t,this.min=o;const r=new Array(t+1);for(let n=0;nn)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=o[t],t-=Ni(t);return i}getBound(t){let o=0,r=this.l;for(;r>o;){const n=Math.floor((o+r)/2),i=this.sum(n);if(i>t){r=n;continue}else if(i{let b=0,m=0;const y=o[g]-t[p]-t[g];return y>0&&r&&(v?m=Vi[p]?y:-y:b=Vi[p]?y:-y),{left:b,top:m}},f=a==="left"||a==="right";if(s!=="center"){const g=qu[e],p=vr[g],v=an[g];if(o[v]>t[v]){if(t[g]+t[v]t[p]&&(s=ji[l])}else{const g=a==="bottom"||a==="top"?"left":"top",p=vr[g],v=an[g],b=(o[v]-t[v])/2;(t[g]t[p]?(s=Ui[g],d=c(v,g,f)):(s=Ui[p],d=c(v,p,f)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),si=le({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=Ae("VBinder"),o=Ge(()=>e.enabled!==void 0?e.enabled:e.show),r=$(null),n=$(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ht(()=>{o.value&&(s(),i())});const l=Un();Yu.mount({id:"vueuc/binder",head:!0,anchorMetaName:li,ssr:l}),Mt(()=>{a()}),Du(()=>{o.value&&s()});const s=()=>{if(!o.value)return;const h=r.value;if(h===null)return;const g=t.targetRef,{x:p,y:v,overlap:b}=e,m=p!==void 0&&v!==void 0?Au(p,v):nn(g);h.style.setProperty("--v-target-width",`${Math.round(m.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(m.height)}px`);const{width:y,minWidth:w,placement:C,internalShift:x,flip:z}=e;h.setAttribute("v-placement",C),b?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:P}=h;y==="target"?P.width=`${m.width}px`:y!==void 0?P.width=y:P.width="",w==="target"?P.minWidth=`${m.width}px`:w!==void 0?P.minWidth=w:P.minWidth="";const R=nn(h),D=nn(n.value),{left:_,top:F,placement:O}=Ku(C,m,R,x,z,b),I=Gu(O,b),{left:S,top:k,transform:W}=Xu(O,D,m,F,_,b);h.setAttribute("v-placement",O),h.style.setProperty("--v-offset-left",`${Math.round(_)}px`),h.style.setProperty("--v-offset-top",`${Math.round(F)}px`),h.style.transform=`translateX(${S}) translateY(${k}) ${W}`,h.style.setProperty("--v-transform-origin",I),h.style.transformOrigin=I};Ze(o,h=>{h?(i(),d()):a()});const d=()=>{io().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{Ze(me(e,h),s)}),["teleportDisabled"].forEach(h=>{Ze(me(e,h),d)}),Ze(me(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const c=_r(),f=Ge(()=>{const{to:h}=e;if(h!==void 0)return h;c.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:n,followerRef:r,mergedTo:f,syncPosition:s}},render(){return u(Va,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("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?wt(o,[[qn,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});let mr;function Zu(){return typeof document>"u"?!1:(mr===void 0&&("matchMedia"in window?mr=window.matchMedia("(pointer:coarse)").matches:mr=!1),mr)}let ln;function qi(){return typeof document>"u"?1:(ln===void 0&&(ln="chrome"in window?window.devicePixelRatio:1),ln)}const Ju=no(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[no("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[no("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Qu=le({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Un();Ju.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:li,ssr:t}),ht(()=>{const{defaultScrollIndex:F,defaultScrollKey:O}=e;F!=null?p({index:F}):O!=null&&p({key:O})});let o=!1,r=!1;Ua(()=>{if(o=!1,!r){r=!0;return}p({top:f.value,left:c})}),qa(()=>{o=!0,r||(r=!0)});const n=E(()=>{const F=new Map,{keyField:O}=e;return e.items.forEach((I,S)=>{F.set(I[O],S)}),F}),i=$(null),a=$(void 0),l=new Map,s=E(()=>{const{items:F,itemSize:O,keyField:I}=e,S=new ju(F.length,O);return F.forEach((k,W)=>{const M=k[I],V=l.get(M);V!==void 0&&S.add(W,V)}),S}),d=$(0);let c=0;const f=$(0),h=Ge(()=>Math.max(s.value.getBound(f.value-mt(e.paddingTop))-1,0)),g=E(()=>{const{value:F}=a;if(F===void 0)return[];const{items:O,itemSize:I}=e,S=h.value,k=Math.min(S+Math.ceil(F/I+1),O.length-1),W=[];for(let M=S;M<=k;++M)W.push(O[M]);return W}),p=(F,O)=>{if(typeof F=="number"){y(F,O,"auto");return}const{left:I,top:S,index:k,key:W,position:M,behavior:V,debounce:ne=!0}=F;if(I!==void 0||S!==void 0)y(I,S,V);else if(k!==void 0)m(k,V,ne);else if(W!==void 0){const re=n.value.get(W);re!==void 0&&m(re,V,ne)}else M==="bottom"?y(0,Number.MAX_SAFE_INTEGER,V):M==="top"&&y(0,0,V)};let v,b=null;function m(F,O,I){const{value:S}=s,k=S.sum(F)+mt(e.paddingTop);if(!I)i.value.scrollTo({left:0,top:k,behavior:O});else{v=F,b!==null&&window.clearTimeout(b),b=window.setTimeout(()=>{v=void 0,b=null},16);const{scrollTop:W,offsetHeight:M}=i.value;if(k>W){const V=S.get(F);k+V<=W+M||i.value.scrollTo({left:0,top:k+V-M,behavior:O})}else i.value.scrollTo({left:0,top:k,behavior:O})}}function y(F,O,I){i.value.scrollTo({left:F,top:O,behavior:I})}function w(F,O){var I,S,k;if(o||e.ignoreItemResize||_(O.target))return;const{value:W}=s,M=n.value.get(F),V=W.get(M),ne=(k=(S=(I=O.borderBoxSize)===null||I===void 0?void 0:I[0])===null||S===void 0?void 0:S.blockSize)!==null&&k!==void 0?k:O.contentRect.height;if(ne===V)return;ne-e.itemSize===0?l.delete(F):l.set(F,ne-e.itemSize);const xe=ne-V;if(xe===0)return;W.add(M,xe);const H=i.value;if(H!=null){if(v===void 0){const G=W.sum(M);H.scrollTop>G&&H.scrollBy(0,xe)}else if(MH.scrollTop+H.offsetHeight&&H.scrollBy(0,xe)}D()}d.value++}const C=!Zu();let x=!1;function z(F){var O;(O=e.onScroll)===null||O===void 0||O.call(e,F),(!C||!x)&&D()}function P(F){var O;if((O=e.onWheel)===null||O===void 0||O.call(e,F),C){const I=i.value;if(I!=null){if(F.deltaX===0&&(I.scrollTop===0&&F.deltaY<=0||I.scrollTop+I.offsetHeight>=I.scrollHeight&&F.deltaY>=0))return;F.preventDefault(),I.scrollTop+=F.deltaY/qi(),I.scrollLeft+=F.deltaX/qi(),D(),x=!0,Wr(()=>{x=!1})}}}function R(F){if(o||_(F.target)||F.contentRect.height===a.value)return;a.value=F.contentRect.height;const{onResize:O}=e;O!==void 0&&O(F)}function D(){const{value:F}=i;F!=null&&(f.value=F.scrollTop,c=F.scrollLeft)}function _(F){let O=F;for(;O!==null;){if(O.style.display==="none")return!0;O=O.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:n,itemsStyle:E(()=>{const{itemResizable:F}=e,O=kt(s.value.sum());return d.value,[e.itemsStyle,{boxSizing:"content-box",height:F?"":O,minHeight:F?O:"",paddingTop:kt(e.paddingTop),paddingBottom:kt(e.paddingBottom)}]}),visibleItemsStyle:E(()=>(d.value,{transform:`translateY(${kt(s.value.sum(h.value))})`})),viewportItems:g,listElRef:i,itemsElRef:$(null),scrollTo:p,handleListResize:R,handleListScroll:z,handleListWheel:P,handleItemResize:w}},render(){const{itemResizable:e,keyField:t,keyToIndex:o,visibleItemsTag:r}=this;return u(zr,{onResize:this.handleListResize},{default:()=>{var n,i;return u("div",ao(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?u("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[u(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=o.get(l),d=this.$slots.default({item:a,index:s})[0];return e?u(zr,{key:l,onResize:c=>this.handleItemResize(l,c)},{default:()=>d}):(d.key=l,d)})})]):(i=(n=this.$slots).empty)===null||i===void 0?void 0:i.call(n)])}})}}),qt="v-hidden",ef=no("[v-hidden]",{display:"none!important"}),Ki=le({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const o=$(null),r=$(null);function n(a){const{value:l}=o,{getCounter:s,getTail:d}=e;let c;if(s!==void 0?c=s():c=r.value,!l||!c)return;c.hasAttribute(qt)&&c.removeAttribute(qt);const{children:f}=l;if(a.showAllItemsBeforeCalculate)for(const w of f)w.hasAttribute(qt)&&w.removeAttribute(qt);const h=l.offsetWidth,g=[],p=t.tail?d==null?void 0:d():null;let v=p?p.offsetWidth:0,b=!1;const m=l.children.length-(t.tail?1:0);for(let w=0;wh){const{updateCounter:z}=e;for(let P=w;P>=0;--P){const R=m-1-P;z!==void 0?z(R):c.textContent=`${R}`;const D=c.offsetWidth;if(v-=g[P],v+D<=h||P===0){b=!0,w=P-1,p&&(w===-1?(p.style.maxWidth=`${h-D}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:_}=e;_&&_(R);break}}}}const{onUpdateOverflow:y}=e;b?y!==void 0&&y(!0):(y!==void 0&&y(!1),c.setAttribute(qt,""))}const i=Un();return ef.mount({id:"vueuc/overflow",head:!0,anchorMetaName:li,ssr:i}),ht(()=>n({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:r,sync:n}},render(){const{$slots:e}=this;return io(()=>this.sync({showAllItemsBeforeCalculate:!1})),u("div",{class:"v-overflow",ref:"selfRef"},[Lc(e,"default"),e.counter?e.counter():u("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function gl(e,t){t&&(ht(()=>{const{value:o}=e;o&&Ri.registerHandler(o,t)}),Mt(()=>{const{value:o}=e;o&&Ri.unregisterHandler(o)}))}const vl=(e,t)=>{if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)};var tf=Fr(Ar,"WeakMap");const zn=tf;var of=_c(Object.keys,Object);const rf=of;var nf=Object.prototype,af=nf.hasOwnProperty;function lf(e){if(!Fc(e))return rf(e);var t=[];for(var o in Object(e))af.call(e,o)&&o!="constructor"&&t.push(o);return t}function di(e){return Kn(e)?Ac(e):lf(e)}var sf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,df=/^\w*$/;function ci(e,t){if(lo(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Ka(e)?!0:df.test(e)||!sf.test(e)||t!=null&&e in Object(t)}var cf="Expected a function";function ui(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(cf);var o=function(){var r=arguments,n=t?t.apply(this,r):r[0],i=o.cache;if(i.has(n))return i.get(n);var a=e.apply(this,r);return o.cache=i.set(n,a)||i,a};return o.cache=new(ui.Cache||Gn),o}ui.Cache=Gn;var uf=500;function ff(e){var t=ui(e,function(r){return o.size===uf&&o.clear(),r}),o=t.cache;return t}var hf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pf=/\\(\\)?/g,gf=ff(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(hf,function(o,r,n,i){t.push(n?i.replace(pf,"$1"):r||o)}),t});const vf=gf;function ml(e,t){return lo(e)?e:ci(e,t)?[e]:vf(Xn(e))}var mf=1/0;function Nr(e){if(typeof e=="string"||Ka(e))return e;var t=e+"";return t=="0"&&1/e==-mf?"-0":t}function bl(e,t){t=ml(t,e);for(var o=0,r=t.length;e!=null&&ol))return!1;var d=i.get(e),c=i.get(t);if(d&&c)return d==t&&c==e;var f=-1,h=!0,g=o&Mh?new Br: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",weekFormat:"yyyy-w",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",weekPlaceholder:"Select Week",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",clear:"Clear"},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",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},Pp=kp;function dn(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=t.width?String(t.width):e.defaultWidth,r=e.formats[o]||e.formats[e.defaultWidth];return r}}function Ko(e){return function(t,o){var r=o!=null&&o.context?String(o.context):"standalone",n;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=o!=null&&o.width?String(o.width):i;n=e.formattingValues[a]||e.formattingValues[i]}else{var l=e.defaultWidth,s=o!=null&&o.width?String(o.width):e.defaultWidth;n=e.values[s]||e.values[l]}var d=e.argumentCallback?e.argumentCallback(t):t;return n[d]}}function Go(e){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=o.width,n=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?Tp(l,function(f){return f.test(a)}):$p(l,function(f){return f.test(a)}),d;d=e.valueCallback?e.valueCallback(s):s,d=o.valueCallback?o.valueCallback(d):d;var c=t.slice(a.length);return{value:d,rest:c}}}function $p(e,t){for(var o in e)if(e.hasOwnProperty(o)&&t(e[o]))return o}function Tp(e,t){for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var n=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=o.valueCallback?o.valueCallback(a):a;var l=t.slice(n.length);return{value:a,rest:l}}}var Ip={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"}},Rp=function(t,o,r){var n,i=Ip[t];return typeof i=="string"?n=i:o===1?n=i.one:n=i.other.replace("{{count}}",o.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};const Mp=Rp;var Bp={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Dp={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Op={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lp={date:dn({formats:Bp,defaultWidth:"full"}),time:dn({formats:Dp,defaultWidth:"full"}),dateTime:dn({formats:Op,defaultWidth:"full"})};const _p=Lp;var Fp={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ap=function(t,o,r,n){return Fp[t]};const Ep=Ap;var Hp={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Wp={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Np={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"]},jp={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"]},Vp={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"}},Up={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"}},qp=function(t,o){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Kp={ordinalNumber:qp,era:Ko({values:Hp,defaultWidth:"wide"}),quarter:Ko({values:Wp,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ko({values:Np,defaultWidth:"wide"}),day:Ko({values:jp,defaultWidth:"wide"}),dayPeriod:Ko({values:Vp,defaultWidth:"wide",formattingValues:Up,defaultFormattingWidth:"wide"})};const Gp=Kp;var Xp=/^(\d+)(th|st|nd|rd)?/i,Yp=/\d+/i,Zp={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},Jp={any:[/^b/i,/^(a|c)/i]},Qp={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},eg={any:[/1/i,/2/i,/3/i,/4/i]},tg={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},og={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]},rg={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},ng={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]},ig={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},ag={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}},lg={ordinalNumber:zp({matchPattern:Xp,parsePattern:Yp,valueCallback:function(t){return parseInt(t,10)}}),era:Go({matchPatterns:Zp,defaultMatchWidth:"wide",parsePatterns:Jp,defaultParseWidth:"any"}),quarter:Go({matchPatterns:Qp,defaultMatchWidth:"wide",parsePatterns:eg,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Go({matchPatterns:tg,defaultMatchWidth:"wide",parsePatterns:og,defaultParseWidth:"any"}),day:Go({matchPatterns:rg,defaultMatchWidth:"wide",parsePatterns:ng,defaultParseWidth:"any"}),dayPeriod:Go({matchPatterns:ig,defaultMatchWidth:"any",parsePatterns:ag,defaultParseWidth:"any"})};const sg=lg;var dg={code:"en-US",formatDistance:Mp,formatLong:_p,formatRelative:Ep,localize:Gp,match:sg,options:{weekStartsOn:0,firstWeekContainsDate:1}};const cg=dg,ug={name:"en-US",locale:cg},fg=ug;function dr(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=Ae(Xa,null)||{},r=E(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:Pp[e]});return{dateLocaleRef:E(()=>{var i;return(i=o==null?void 0:o.value)!==null&&i!==void 0?i:fg}),localeRef:r}}const Ll=le({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),hg=At("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("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"}))))),pg=le({name:"Checkmark",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),gg=le({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("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"}))}}),_l=le({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("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"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),vg=le({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("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"}),u("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"}),u("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"}),u("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"}),u("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"}))}}),mg=At("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("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;"}),u("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;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),bg=At("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("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"}))))),xg=le({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("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"}),u("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"}))}}),Cg=le({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` +import{v as Ot,i as Ae,g as lr,w as Ze,o as Mt,r as $,a as ht,b as Na,c as E,d as Rc,h as Mc,e as ja,f as ut,j as Bc,k as ft,l as xt,m as jn,n as Vn,p as Lr,u as Ge,q as le,s as et,t as Dc,x as wt,y as Ii,C as Oc,z as Un,A as me,B as _r,D as u,L as Va,E as qn,F as io,G as Ua,H as qa,I as mt,V as zr,J as ao,K as kt,M as Lc,N as Ri,O as Fr,P as Ar,Q as _c,R as Fc,S as Kn,T as Ac,U as lo,W as Ka,X as Gn,Y as Xn,Z as Lo,_ as Ga,$ as kn,a0 as Mi,a1 as Ec,a2 as Bi,a3 as Di,a4 as $r,a5 as Hc,a6 as Oi,a7 as Wc,a8 as Nc,a9 as jc,aa as Vc,ab as Uc,ac as qc,ad as Kc,ae as Xa,af as At,ag as Yn,ah as Ya,ai as ct,aj as be,ak as ie,al as B,am as A,an as X,ao as Je,ap as $e,aq as dt,ar as qe,as as Se,at as Gc,au as We,av as $t,aw as _t,ax as Yt,ay as Q,az as tt,aA as Er,aB as eo,aC as nt,aD as Zn,aE as Za,aF as Zt,aG as mo,aH as Xc,aI as so,aJ as Ir,aK as Pn,aL as Qo,aM as Yc,aN as Rt,aO as Ja,aP as Li,aQ as $n,aR as Zc,aS as Qa,aT as Ie,aU as U,aV as Jc,aW as _i,aX as Rr,aY as el,aZ as Jn,a_ as Qc,a$ as eu,b0 as tu,b1 as sr,b2 as Hr,b3 as ou,b4 as Tt,b5 as ru,b6 as nu,b7 as iu,b8 as rr,b9 as au,ba as lu,bb as tl,bc as su,bd as du,be as Fi,bf as nr,bg as cu,bh as uu,bi as Ai,bj as Tn,bk as Ei,bl as ol,bm as rl,bn as _o,bo as fu,bp as Qn,bq as ei,br as ti,bs as oi,bt as nl,bu as He,bv as Hi,bw as hu,bx as pu,by as gu,bz as vu,bA as mu,bB as ri,bC as Me,bD as lt,bE as bt,bF as it,bG as ee,bH as Ye,bI as q,bJ as bu,bK as L,bL as Oe,bM as Gt,bN as Ft,bO as ro,bP as xu,bQ as il,bR as Cu,bS as al,bT as Xt,bU as ll,bV as yu,bW as wu}from"./index-ed99e2b2.js";let Mr=[];const sl=new WeakMap;function Su(){Mr.forEach(e=>e(...sl.get(e))),Mr=[]}function Wr(e,...t){sl.set(e,t),!Mr.includes(e)&&Mr.push(e)===1&&requestAnimationFrame(Su)}function Do(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function ku(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(o=>{if(o==="")return;const[r,n]=o.split(":");n===void 0?t[""]=r:t[r]=n}),t}function $o(e,t){var o;if(e==null)return;const r=ku(e);if(t===void 0)return r[""];if(typeof t=="string")return(o=r[t])!==null&&o!==void 0?o:r[""];if(Array.isArray(t)){for(let n=t.length-1;n>=0;--n){const i=t[n];if(i in r)return r[i]}return r[""]}else{let n,i=-1;return Object.keys(r).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,n=r[a])}),n}}function dl(e,t="default",o=[]){const n=e.$slots[t];return n===void 0?o:n()}function Pu(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function $u(e){return t=>{t?e.value=t.$el:e.value=null}}function on(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(r=>{r&&r(o)})}}function Tu(e){var t;const o=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===Ot);return!!(o&&o.value===!1)}const zu=/^(\d|\.)+$/,Wi=/(\d|\.)+/;function St(e,{c:t=1,offset:o=0,attachPx:r=!0}={}){if(typeof e=="number"){const n=(e+o)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(zu.test(e)){const n=(Number(e)+o)*t;return r?n===0?"0":`${n}px`:`${n}`}else{const n=Wi.exec(e);return n?e.replace(Wi,String((Number(n[0])+o)*t)):e}return e}let rn;function Iu(){return rn===void 0&&(rn=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),rn}function Ru(e,t,o){var r;const n=Ae(e,null);if(n===null)return;const i=(r=lr())===null||r===void 0?void 0:r.proxy;Ze(o,a),a(o.value),Mt(()=>{a(void 0,o.value)});function a(d,c){if(!n)return;const f=n[t];c!==void 0&&l(f,c),d!==void 0&&s(f,d)}function l(d,c){d[c]||(d[c]=[]),d[c].splice(d[c].findIndex(f=>f===i),1)}function s(d,c){d[c]||(d[c]=[]),~d[c].findIndex(f=>f===i)||d[c].push(i)}}function Mu(e,t,o){if(!t)return e;const r=$(e.value);let n=null;return Ze(e,i=>{n!==null&&window.clearTimeout(n),i===!0?o&&!o.value?r.value=!0:n=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}let Bo,er;const Bu=()=>{var e,t;Bo=Na?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,er=!1,Bo!==void 0?Bo.then(()=>{er=!0}):er=!0};Bu();function Du(e){if(er)return;let t=!1;ht(()=>{er||Bo==null||Bo.then(()=>{t||e()})}),Mt(()=>{t=!0})}function co(e,t){return Ze(e,o=>{o!==void 0&&(t.value=o)}),E(()=>e.value===void 0?t.value:e.value)}function cl(e,t){return E(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}const Ou={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function Lu(e){return`(min-width: ${e}px)`}const qo={};function _u(e=Ou){if(!Na)return E(()=>[]);if(typeof window.matchMedia!="function")return E(()=>[]);const t=$({}),o=Object.keys(e),r=(n,i)=>{n.matches?t.value[i]=!0:t.value[i]=!1};return o.forEach(n=>{const i=e[n];let a,l;qo[i]===void 0?(a=window.matchMedia(Lu(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(d=>{d(s,n)})}):a.addListener&&a.addListener(s=>{l.forEach(d=>{d(s,n)})}),l=new Set,qo[i]={mql:a,cbs:l}):(a=qo[i].mql,l=qo[i].cbs),l.add(r),a.matches&&l.forEach(s=>{s(a,n)})}),Mt(()=>{o.forEach(n=>{const{cbs:i}=qo[e[n]];i.has(r)&&i.delete(r)})}),E(()=>{const{value:n}=t;return o.filter(i=>n[i])})}function Fu(e={},t){const o=Rc({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:n}=e,i=s=>{switch(s.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}r!==void 0&&Object.keys(r).forEach(d=>{if(d!==s.key)return;const c=r[d];if(typeof c=="function")c(s);else{const{stop:f=!1,prevent:h=!1}=c;f&&s.stopPropagation(),h&&s.preventDefault(),c.handler(s)}})},a=s=>{switch(s.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}n!==void 0&&Object.keys(n).forEach(d=>{if(d!==s.key)return;const c=n[d];if(typeof c=="function")c(s);else{const{stop:f=!1,prevent:h=!1}=c;f&&s.stopPropagation(),h&&s.preventDefault(),c.handler(s)}})},l=()=>{(t===void 0||t.value)&&(ft("keydown",document,i),ft("keyup",document,a)),t!==void 0&&Ze(t,s=>{s?(ft("keydown",document,i),ft("keyup",document,a)):(ut("keydown",document,i),ut("keyup",document,a))})};return Mc()?(ja(l),Mt(()=>{(t===void 0||t.value)&&(ut("keydown",document,i),ut("keyup",document,a))})):l(),Bc(o)}const ni=xt("n-internal-select-menu"),ul=xt("n-internal-select-menu-body"),fl="__disabled__";function Qt(e){const t=Ae(jn,null),o=Ae(Vn,null),r=Ae(Lr,null),n=Ae(ul,null),i=$();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};ht(()=>{ft("fullscreenchange",document,a)}),Mt(()=>{ut("fullscreenchange",document,a)})}return Ge(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?fl:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:o!=null&&o.value?o.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:l??(i.value||"body")})}Qt.tdkey=fl;Qt.propTo={type:[String,Object,Boolean],default:void 0};let oo=null;function hl(){if(oo===null&&(oo=document.getElementById("v-binder-view-measurer"),oo===null)){oo=document.createElement("div"),oo.id="v-binder-view-measurer";const{style:e}=oo;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(oo)}return oo.getBoundingClientRect()}function Au(e,t){const o=hl();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function nn(e){const t=e.getBoundingClientRect(),o=hl();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function Eu(e){return e.nodeType===9?null:e.parentNode}function pl(e){if(e===null)return null;const t=Eu(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:r,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+n+r))return t}return pl(t)}const Hu=le({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;et("VBinder",(t=lr())===null||t===void 0?void 0:t.proxy);const o=Ae("VBinder",null),r=$(null),n=m=>{r.value=m,o&&e.syncTargetWithParent&&o.setTargetRef(m)};let i=[];const a=()=>{let m=r.value;for(;m=pl(m),m!==null;)i.push(m);for(const y of i)ft("scroll",y,f,!0)},l=()=>{for(const m of i)ut("scroll",m,f,!0);i=[]},s=new Set,d=m=>{s.size===0&&a(),s.has(m)||s.add(m)},c=m=>{s.has(m)&&s.delete(m),s.size===0&&l()},f=()=>{Wr(h)},h=()=>{s.forEach(m=>m())},g=new Set,p=m=>{g.size===0&&ft("resize",window,b),g.has(m)||g.add(m)},v=m=>{g.has(m)&&g.delete(m),g.size===0&&ut("resize",window,b)},b=()=>{g.forEach(m=>m())};return Mt(()=>{ut("resize",window,b),l()}),{targetRef:r,setTargetRef:n,addScrollListener:d,removeScrollListener:c,addResizeListener:p,removeResizeListener:v}},render(){return Dc("binder",this.$slots)}}),ii=Hu,ai=le({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Ae("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?wt(Ii("follower",this.$slots),[[t]]):Ii("follower",this.$slots)}}),To="@@mmoContext",Wu={mounted(e,{value:t}){e[To]={handler:void 0},typeof t=="function"&&(e[To].handler=t,ft("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[To];typeof t=="function"?o.handler?o.handler!==t&&(ut("mousemoveoutside",e,o.handler),o.handler=t,ft("mousemoveoutside",e,t)):(e[To].handler=t,ft("mousemoveoutside",e,t)):o.handler&&(ut("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[To];t&&ut("mousemoveoutside",e,t),e[To].handler=void 0}},Nu=Wu,{c:no}=Oc(),li="vueuc-style";function Ni(e){return e&-e}class ju{constructor(t,o){this.l=t,this.min=o;const r=new Array(t+1);for(let n=0;nn)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=o[t],t-=Ni(t);return i}getBound(t){let o=0,r=this.l;for(;r>o;){const n=Math.floor((o+r)/2),i=this.sum(n);if(i>t){r=n;continue}else if(i{let b=0,m=0;const y=o[g]-t[p]-t[g];return y>0&&r&&(v?m=Vi[p]?y:-y:b=Vi[p]?y:-y),{left:b,top:m}},f=a==="left"||a==="right";if(s!=="center"){const g=qu[e],p=vr[g],v=an[g];if(o[v]>t[v]){if(t[g]+t[v]t[p]&&(s=ji[l])}else{const g=a==="bottom"||a==="top"?"left":"top",p=vr[g],v=an[g],b=(o[v]-t[v])/2;(t[g]t[p]?(s=Ui[g],d=c(v,g,f)):(s=Ui[p],d=c(v,p,f)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),si=le({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=Ae("VBinder"),o=Ge(()=>e.enabled!==void 0?e.enabled:e.show),r=$(null),n=$(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ht(()=>{o.value&&(s(),i())});const l=Un();Yu.mount({id:"vueuc/binder",head:!0,anchorMetaName:li,ssr:l}),Mt(()=>{a()}),Du(()=>{o.value&&s()});const s=()=>{if(!o.value)return;const h=r.value;if(h===null)return;const g=t.targetRef,{x:p,y:v,overlap:b}=e,m=p!==void 0&&v!==void 0?Au(p,v):nn(g);h.style.setProperty("--v-target-width",`${Math.round(m.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(m.height)}px`);const{width:y,minWidth:w,placement:C,internalShift:x,flip:z}=e;h.setAttribute("v-placement",C),b?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:P}=h;y==="target"?P.width=`${m.width}px`:y!==void 0?P.width=y:P.width="",w==="target"?P.minWidth=`${m.width}px`:w!==void 0?P.minWidth=w:P.minWidth="";const R=nn(h),D=nn(n.value),{left:_,top:F,placement:O}=Ku(C,m,R,x,z,b),I=Gu(O,b),{left:S,top:k,transform:W}=Xu(O,D,m,F,_,b);h.setAttribute("v-placement",O),h.style.setProperty("--v-offset-left",`${Math.round(_)}px`),h.style.setProperty("--v-offset-top",`${Math.round(F)}px`),h.style.transform=`translateX(${S}) translateY(${k}) ${W}`,h.style.setProperty("--v-transform-origin",I),h.style.transformOrigin=I};Ze(o,h=>{h?(i(),d()):a()});const d=()=>{io().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{Ze(me(e,h),s)}),["teleportDisabled"].forEach(h=>{Ze(me(e,h),d)}),Ze(me(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const c=_r(),f=Ge(()=>{const{to:h}=e;if(h!==void 0)return h;c.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:n,followerRef:r,mergedTo:f,syncPosition:s}},render(){return u(Va,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("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?wt(o,[[qn,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});let mr;function Zu(){return typeof document>"u"?!1:(mr===void 0&&("matchMedia"in window?mr=window.matchMedia("(pointer:coarse)").matches:mr=!1),mr)}let ln;function qi(){return typeof document>"u"?1:(ln===void 0&&(ln="chrome"in window?window.devicePixelRatio:1),ln)}const Ju=no(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[no("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[no("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Qu=le({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Un();Ju.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:li,ssr:t}),ht(()=>{const{defaultScrollIndex:F,defaultScrollKey:O}=e;F!=null?p({index:F}):O!=null&&p({key:O})});let o=!1,r=!1;Ua(()=>{if(o=!1,!r){r=!0;return}p({top:f.value,left:c})}),qa(()=>{o=!0,r||(r=!0)});const n=E(()=>{const F=new Map,{keyField:O}=e;return e.items.forEach((I,S)=>{F.set(I[O],S)}),F}),i=$(null),a=$(void 0),l=new Map,s=E(()=>{const{items:F,itemSize:O,keyField:I}=e,S=new ju(F.length,O);return F.forEach((k,W)=>{const M=k[I],V=l.get(M);V!==void 0&&S.add(W,V)}),S}),d=$(0);let c=0;const f=$(0),h=Ge(()=>Math.max(s.value.getBound(f.value-mt(e.paddingTop))-1,0)),g=E(()=>{const{value:F}=a;if(F===void 0)return[];const{items:O,itemSize:I}=e,S=h.value,k=Math.min(S+Math.ceil(F/I+1),O.length-1),W=[];for(let M=S;M<=k;++M)W.push(O[M]);return W}),p=(F,O)=>{if(typeof F=="number"){y(F,O,"auto");return}const{left:I,top:S,index:k,key:W,position:M,behavior:V,debounce:ne=!0}=F;if(I!==void 0||S!==void 0)y(I,S,V);else if(k!==void 0)m(k,V,ne);else if(W!==void 0){const re=n.value.get(W);re!==void 0&&m(re,V,ne)}else M==="bottom"?y(0,Number.MAX_SAFE_INTEGER,V):M==="top"&&y(0,0,V)};let v,b=null;function m(F,O,I){const{value:S}=s,k=S.sum(F)+mt(e.paddingTop);if(!I)i.value.scrollTo({left:0,top:k,behavior:O});else{v=F,b!==null&&window.clearTimeout(b),b=window.setTimeout(()=>{v=void 0,b=null},16);const{scrollTop:W,offsetHeight:M}=i.value;if(k>W){const V=S.get(F);k+V<=W+M||i.value.scrollTo({left:0,top:k+V-M,behavior:O})}else i.value.scrollTo({left:0,top:k,behavior:O})}}function y(F,O,I){i.value.scrollTo({left:F,top:O,behavior:I})}function w(F,O){var I,S,k;if(o||e.ignoreItemResize||_(O.target))return;const{value:W}=s,M=n.value.get(F),V=W.get(M),ne=(k=(S=(I=O.borderBoxSize)===null||I===void 0?void 0:I[0])===null||S===void 0?void 0:S.blockSize)!==null&&k!==void 0?k:O.contentRect.height;if(ne===V)return;ne-e.itemSize===0?l.delete(F):l.set(F,ne-e.itemSize);const xe=ne-V;if(xe===0)return;W.add(M,xe);const H=i.value;if(H!=null){if(v===void 0){const G=W.sum(M);H.scrollTop>G&&H.scrollBy(0,xe)}else if(MH.scrollTop+H.offsetHeight&&H.scrollBy(0,xe)}D()}d.value++}const C=!Zu();let x=!1;function z(F){var O;(O=e.onScroll)===null||O===void 0||O.call(e,F),(!C||!x)&&D()}function P(F){var O;if((O=e.onWheel)===null||O===void 0||O.call(e,F),C){const I=i.value;if(I!=null){if(F.deltaX===0&&(I.scrollTop===0&&F.deltaY<=0||I.scrollTop+I.offsetHeight>=I.scrollHeight&&F.deltaY>=0))return;F.preventDefault(),I.scrollTop+=F.deltaY/qi(),I.scrollLeft+=F.deltaX/qi(),D(),x=!0,Wr(()=>{x=!1})}}}function R(F){if(o||_(F.target)||F.contentRect.height===a.value)return;a.value=F.contentRect.height;const{onResize:O}=e;O!==void 0&&O(F)}function D(){const{value:F}=i;F!=null&&(f.value=F.scrollTop,c=F.scrollLeft)}function _(F){let O=F;for(;O!==null;){if(O.style.display==="none")return!0;O=O.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:n,itemsStyle:E(()=>{const{itemResizable:F}=e,O=kt(s.value.sum());return d.value,[e.itemsStyle,{boxSizing:"content-box",height:F?"":O,minHeight:F?O:"",paddingTop:kt(e.paddingTop),paddingBottom:kt(e.paddingBottom)}]}),visibleItemsStyle:E(()=>(d.value,{transform:`translateY(${kt(s.value.sum(h.value))})`})),viewportItems:g,listElRef:i,itemsElRef:$(null),scrollTo:p,handleListResize:R,handleListScroll:z,handleListWheel:P,handleItemResize:w}},render(){const{itemResizable:e,keyField:t,keyToIndex:o,visibleItemsTag:r}=this;return u(zr,{onResize:this.handleListResize},{default:()=>{var n,i;return u("div",ao(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?u("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[u(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=o.get(l),d=this.$slots.default({item:a,index:s})[0];return e?u(zr,{key:l,onResize:c=>this.handleItemResize(l,c)},{default:()=>d}):(d.key=l,d)})})]):(i=(n=this.$slots).empty)===null||i===void 0?void 0:i.call(n)])}})}}),qt="v-hidden",ef=no("[v-hidden]",{display:"none!important"}),Ki=le({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const o=$(null),r=$(null);function n(a){const{value:l}=o,{getCounter:s,getTail:d}=e;let c;if(s!==void 0?c=s():c=r.value,!l||!c)return;c.hasAttribute(qt)&&c.removeAttribute(qt);const{children:f}=l;if(a.showAllItemsBeforeCalculate)for(const w of f)w.hasAttribute(qt)&&w.removeAttribute(qt);const h=l.offsetWidth,g=[],p=t.tail?d==null?void 0:d():null;let v=p?p.offsetWidth:0,b=!1;const m=l.children.length-(t.tail?1:0);for(let w=0;wh){const{updateCounter:z}=e;for(let P=w;P>=0;--P){const R=m-1-P;z!==void 0?z(R):c.textContent=`${R}`;const D=c.offsetWidth;if(v-=g[P],v+D<=h||P===0){b=!0,w=P-1,p&&(w===-1?(p.style.maxWidth=`${h-D}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:_}=e;_&&_(R);break}}}}const{onUpdateOverflow:y}=e;b?y!==void 0&&y(!0):(y!==void 0&&y(!1),c.setAttribute(qt,""))}const i=Un();return ef.mount({id:"vueuc/overflow",head:!0,anchorMetaName:li,ssr:i}),ht(()=>n({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:r,sync:n}},render(){const{$slots:e}=this;return io(()=>this.sync({showAllItemsBeforeCalculate:!1})),u("div",{class:"v-overflow",ref:"selfRef"},[Lc(e,"default"),e.counter?e.counter():u("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function gl(e,t){t&&(ht(()=>{const{value:o}=e;o&&Ri.registerHandler(o,t)}),Mt(()=>{const{value:o}=e;o&&Ri.unregisterHandler(o)}))}const vl=(e,t)=>{if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)};var tf=Fr(Ar,"WeakMap");const zn=tf;var of=_c(Object.keys,Object);const rf=of;var nf=Object.prototype,af=nf.hasOwnProperty;function lf(e){if(!Fc(e))return rf(e);var t=[];for(var o in Object(e))af.call(e,o)&&o!="constructor"&&t.push(o);return t}function di(e){return Kn(e)?Ac(e):lf(e)}var sf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,df=/^\w*$/;function ci(e,t){if(lo(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Ka(e)?!0:df.test(e)||!sf.test(e)||t!=null&&e in Object(t)}var cf="Expected a function";function ui(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(cf);var o=function(){var r=arguments,n=t?t.apply(this,r):r[0],i=o.cache;if(i.has(n))return i.get(n);var a=e.apply(this,r);return o.cache=i.set(n,a)||i,a};return o.cache=new(ui.Cache||Gn),o}ui.Cache=Gn;var uf=500;function ff(e){var t=ui(e,function(r){return o.size===uf&&o.clear(),r}),o=t.cache;return t}var hf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pf=/\\(\\)?/g,gf=ff(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(hf,function(o,r,n,i){t.push(n?i.replace(pf,"$1"):r||o)}),t});const vf=gf;function ml(e,t){return lo(e)?e:ci(e,t)?[e]:vf(Xn(e))}var mf=1/0;function Nr(e){if(typeof e=="string"||Ka(e))return e;var t=e+"";return t=="0"&&1/e==-mf?"-0":t}function bl(e,t){t=ml(t,e);for(var o=0,r=t.length;e!=null&&ol))return!1;var d=i.get(e),c=i.get(t);if(d&&c)return d==t&&c==e;var f=-1,h=!0,g=o&Mh?new Br: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",weekFormat:"yyyy-w",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",weekPlaceholder:"Select Week",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",clear:"Clear"},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",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},Pp=kp;function dn(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=t.width?String(t.width):e.defaultWidth,r=e.formats[o]||e.formats[e.defaultWidth];return r}}function Ko(e){return function(t,o){var r=o!=null&&o.context?String(o.context):"standalone",n;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=o!=null&&o.width?String(o.width):i;n=e.formattingValues[a]||e.formattingValues[i]}else{var l=e.defaultWidth,s=o!=null&&o.width?String(o.width):e.defaultWidth;n=e.values[s]||e.values[l]}var d=e.argumentCallback?e.argumentCallback(t):t;return n[d]}}function Go(e){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=o.width,n=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?Tp(l,function(f){return f.test(a)}):$p(l,function(f){return f.test(a)}),d;d=e.valueCallback?e.valueCallback(s):s,d=o.valueCallback?o.valueCallback(d):d;var c=t.slice(a.length);return{value:d,rest:c}}}function $p(e,t){for(var o in e)if(e.hasOwnProperty(o)&&t(e[o]))return o}function Tp(e,t){for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var n=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=o.valueCallback?o.valueCallback(a):a;var l=t.slice(n.length);return{value:a,rest:l}}}var Ip={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"}},Rp=function(t,o,r){var n,i=Ip[t];return typeof i=="string"?n=i:o===1?n=i.one:n=i.other.replace("{{count}}",o.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};const Mp=Rp;var Bp={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Dp={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Op={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lp={date:dn({formats:Bp,defaultWidth:"full"}),time:dn({formats:Dp,defaultWidth:"full"}),dateTime:dn({formats:Op,defaultWidth:"full"})};const _p=Lp;var Fp={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ap=function(t,o,r,n){return Fp[t]};const Ep=Ap;var Hp={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Wp={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Np={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"]},jp={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"]},Vp={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"}},Up={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"}},qp=function(t,o){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Kp={ordinalNumber:qp,era:Ko({values:Hp,defaultWidth:"wide"}),quarter:Ko({values:Wp,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ko({values:Np,defaultWidth:"wide"}),day:Ko({values:jp,defaultWidth:"wide"}),dayPeriod:Ko({values:Vp,defaultWidth:"wide",formattingValues:Up,defaultFormattingWidth:"wide"})};const Gp=Kp;var Xp=/^(\d+)(th|st|nd|rd)?/i,Yp=/\d+/i,Zp={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},Jp={any:[/^b/i,/^(a|c)/i]},Qp={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},eg={any:[/1/i,/2/i,/3/i,/4/i]},tg={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},og={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]},rg={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},ng={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]},ig={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},ag={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}},lg={ordinalNumber:zp({matchPattern:Xp,parsePattern:Yp,valueCallback:function(t){return parseInt(t,10)}}),era:Go({matchPatterns:Zp,defaultMatchWidth:"wide",parsePatterns:Jp,defaultParseWidth:"any"}),quarter:Go({matchPatterns:Qp,defaultMatchWidth:"wide",parsePatterns:eg,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Go({matchPatterns:tg,defaultMatchWidth:"wide",parsePatterns:og,defaultParseWidth:"any"}),day:Go({matchPatterns:rg,defaultMatchWidth:"wide",parsePatterns:ng,defaultParseWidth:"any"}),dayPeriod:Go({matchPatterns:ig,defaultMatchWidth:"any",parsePatterns:ag,defaultParseWidth:"any"})};const sg=lg;var dg={code:"en-US",formatDistance:Mp,formatLong:_p,formatRelative:Ep,localize:Gp,match:sg,options:{weekStartsOn:0,firstWeekContainsDate:1}};const cg=dg,ug={name:"en-US",locale:cg},fg=ug;function dr(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=Ae(Xa,null)||{},r=E(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:Pp[e]});return{dateLocaleRef:E(()=>{var i;return(i=o==null?void 0:o.value)!==null&&i!==void 0?i:fg}),localeRef:r}}const Ll=le({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),hg=At("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("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"}))))),pg=le({name:"Checkmark",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),gg=le({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("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"}))}}),_l=le({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("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"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),vg=le({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("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"}),u("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"}),u("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"}),u("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"}),u("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"}))}}),mg=At("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("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;"}),u("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;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),bg=At("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("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"}))))),xg=le({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("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"}),u("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"}))}}),Cg=le({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` fill: none; stroke: currentColor; stroke-linecap: round; @@ -1806,7 +1806,7 @@ import{v as Ot,i as Ae,g as lr,w as Ze,o as Mt,r as $,a as ht,b as Na,c as E,d a ## 限制 - 不要使用#generate_content,而是使用#message。 - 尽量总是以中文回答,避免使用其它语言。 -- 你应该总是使用一种随意的,年轻女性的语气。避免过度正式或老式的表达方式。`),b=$(""),m=$(),y=async()=>{const M=await uS.getSysConfig();return M.code===Ti.OK&&(m.value={...m.value,...M.data}),M},w=()=>Dt.get(e)||"",C=async()=>{var V,ne,re,xe;await fetch("/search?q=Bing+AI&showconv=1&FORM=hpcodx&ajaxhist=0&ajaxserp=0&cc=us",{credentials:"include"});const M=w();if(!l.value||!M||f.value){const H=document.querySelector("cib-serp"),G=(xe=(re=(ne=(V=H==null?void 0:H.shadowRoot)==null?void 0:V.querySelector("cib-conversation"))==null?void 0:ne.querySelector("cib-side-panel"))==null?void 0:re.shadowRoot)==null?void 0:xe.querySelector(".main");if(c.value==="v2"){const ve=G==null?void 0:G.querySelector(".threads-header"),ye=G==null?void 0:G.querySelector(".threads-container");ve.style.display="none",ye.style.display="none"}else CIB.vm.sidePanel.panels=[{type:"plugins",label:"插件"}],CIB.vm.sidePanel.selectedPanel="plugins"}},x=M=>{Dt.set(e,M,7*24*60,"/")},z=M=>{Dt.set(n,M)},P=M=>{Dt.set(i,M),b.value=M},R=async()=>{localStorage.clear(),sessionStorage.clear();const M=await caches.keys();for(const V of M)await caches.delete(V),console.log("del cache : ",V)};return{sysConfig:m,getSysConfig:y,getUserToken:w,checkUserToken:C,saveUserToken:x,resetCache:async()=>{const M=document.cookie.split(";");if(M)for(let V=M.length;V--;)document.cookie=M[V].split("=")[0]+"=0; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";await R(),"serviceWorker"in navigator&&await navigator.serviceWorker.ready.then(async V=>{await V.unregister()})},setAuthKey:z,setPassServer:P,getUserKievRPSSecAuth:()=>Dt.get(t)||"",saveUserKievRPSSecAuth:M=>{Dt.set(t,M,7*24*60,"/")},getUserRwBf:()=>Dt.get(o)||"",saveUserRwBf:M=>{Dt.set(o,M,7*24*60,"/")},getUserMUID:()=>Dt.get(r)||"",saveUserMUID:M=>{Dt.set(r,M,7*24*60,"/")},saveCookies:M=>{const V=M.split(";");for(const ne of V){const re=ne.split("="),xe=re[0].trim(),H=re.length>1?re.slice(1,re.length).join("=").trim():null;xe&&H&&Dt.set(xe,H,7*24*60,"/")}},cookiesStr:a,historyEnable:l,fullCookiesEnable:s,themeMode:d,uiVersion:c,enterpriseEnable:f,customChatNum:h,gpt4tEnable:g,sydneyEnable:p,sydneyPrompt:v,passServer:b}},{persist:{key:"user-store",storage:localStorage,paths:["historyEnable","themeMode","uiVersion","fullCookiesEnable","cookiesStr","enterpriseEnable","customChatNum","gpt4tEnable","sydneyEnable","sydneyPrompt","passServer"]}}),fS=Ye("div",{class:"text-3xl py-2"},"设置",-1),hS=Ye("div",{class:"text-3xl py-2"},"高级设置",-1),pS=Ye("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),gS=Ye("div",{class:"text-3xl py-2"},"关于",-1),vS=le({__name:"ChatNav",setup(e){const t=$(!1),o=$(!1),r=$(!1),n=$(!1),i=$(""),a=$(""),l=$(""),s=$(""),d=Ho(),c=hr(),{isShowPromptSotre:f}=Ft(c),h=$(!1),g=$(!1),p=$i(),{isShowChatServiceSelectModal:v}=Ft(p),b=Xd(),m="1.20.1",y=$("加载中..."),{historyEnable:w,themeMode:C,uiVersion:x,fullCookiesEnable:z,cookiesStr:P,enterpriseEnable:R,customChatNum:D,gpt4tEnable:_,sydneyEnable:F,sydneyPrompt:O,passServer:I}=Ft(b);let S=$(!1),k=$(""),W=$(!0),M=$("auto"),V=$("v3"),ne=$(Zo),re=$({filter:"invert(70%)"}),xe=$(!1);const H=$(!1),G=$(0),ve=$(!0),ye=$(!1),Te=$(""),Ce=$(""),Be=async()=>{const Z=await(await fetch("https://api.github.com/repos/Harry-zklcdc/go-proxy-bingai/releases/latest")).json();y.value=Z.tag_name},Pe={github:"github",chatService:"chatService",promptStore:"promptStore",setting:"setting",compose:"compose",createImage:"createImage",advancedSetting:"advancedSetting",reset:"reset",about:"about"},se=[{key:Pe.setting,label:"设置"},{key:Pe.chatService,label:"服务选择"},{key:Pe.promptStore,label:"提示词库"},{key:Pe.compose,label:"撰写文章",url:"/web/compose.html"},{key:Pe.createImage,label:"图像创建"},{key:Pe.advancedSetting,label:"高级设置"},{key:Pe.reset,label:"一键重置"},{key:Pe.about,label:"关于"}],de=$([{label:"浅色",value:"light"},{label:"深色",value:"dark"},{label:"跟随系统",value:"auto"}]),we=$([{label:"V1",value:"v1"},{label:"V2",value:"v2"},{label:"V3",value:"v3"}]);ht(()=>{C.value=="light"?(ne.value=Zo,re.value={filter:"invert(0%)"}):C.value=="dark"?(ne.value=kr,re.value={filter:"invert(70%)"}):C.value=="auto"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?(ne.value=kr,re.value={filter:"invert(70%)"}):(ne.value=Zo,re.value={filter:"invert(0%)"}))});const Y=pe=>u(oS,{navConfig:pe}),he=pe=>{var Z;switch(pe){case Pe.chatService:v.value=!0,p.checkAllSydneyConfig();break;case Pe.promptStore:f.value=!0;break;case Pe.setting:i.value=b.getUserToken(),a.value=b.getUserKievRPSSecAuth(),l.value=b.getUserMUID(),s.value=b.getUserRwBf(),W.value=w.value,S.value=z.value,S.value&&(k.value=P.value),o.value=!0;break;case Pe.advancedSetting:W.value=w.value,M.value=C.value,V.value=x.value,H.value=R.value,G.value=D.value,ve.value=_.value,ye.value=F.value,Te.value=O.value,r.value=!0,Ce.value=I.value;break;case Pe.createImage:!((Z=b.sysConfig)!=null&&Z.isSysCK)&&!b.getUserToken()&&d.warning("体验画图功能需先登录"),g.value=!0;break;case Pe.reset:h.value=!0;break;case Pe.about:n.value=!0,Be();break}},ue=async()=>{h.value=!1,await b.resetCache(),d.success("清理完成"),window.location.href="/"},Re=()=>{S.value?(b.saveCookies(k.value),P.value=k.value):(i.value?b.saveUserToken(i.value):d.warning("请先填入用户 _U Cookie"),a.value?b.saveUserKievRPSSecAuth(a.value):d.warning("请先填入用户 KievRPSSecAuth Cookie"),s.value?b.saveUserRwBf(s.value):d.warning("请先填入用户 _RwBf Cookie"),l.value?b.saveUserMUID(l.value):d.warning("请先填入用户 MUID Cookie")),z.value=S.value,o.value=!1},j=()=>{var pt,Ht,Wt,Nt;w.value=W.value;const pe=R.value;R.value=H.value,D.value=G.value;const Z=_.value,oe=F.value,Xe=x.value;_.value=ve.value,F.value=ye.value,O.value=Te.value,x.value=V.value,b.setPassServer(Ce.value);const Ve=document.querySelector("cib-serp"),J=(Nt=(Wt=(Ht=(pt=Ve==null?void 0:Ve.shadowRoot)==null?void 0:pt.querySelector("cib-conversation"))==null?void 0:Ht.querySelector("cib-side-panel"))==null?void 0:Wt.shadowRoot)==null?void 0:Nt.querySelector(".main"),ce=J==null?void 0:J.querySelector(".threads-header"),je=J==null?void 0:J.querySelector(".threads-container");W.value&&b.getUserToken()&&!R.value?Xe==="v2"?(ce.style.display="flex",je.style.display="block"):CIB.vm.sidePanel.panels=[{type:"threads",label:"最近的活动"},{type:"plugins",label:"插件"}]:Xe==="v2"?(ce.style.display="none",je.style.display="none"):(CIB.vm.sidePanel.panels=[{type:"plugins",label:"插件"}],CIB.vm.sidePanel.selectedPanel="plugins"),C.value=M.value,M.value=="light"?(CIB.changeColorScheme(0),ne.value=Zo,re.value={filter:"invert(0%)"}):M.value=="dark"?(CIB.changeColorScheme(1),ne.value=kr,re.value={filter:"invert(70%)"}):M.value=="auto"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?(CIB.changeColorScheme(1),ne.value=kr,re.value={filter:"invert(70%)"}):(CIB.changeColorScheme(0),ne.value=Zo,re.value={filter:"invert(0%)"})),r.value=!1,(pe!=H.value||oe!=ye.value||Z!=ve.value||Xe!=V.value)&&(window.location.href="/")},ae=async()=>{xe.value=!0;let pe=await fetch("/pass",{credentials:"include",method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:I.value})}).then(Z=>Z.json()).catch(()=>{d.error("人机验证失败, 请重试"),xe.value=!1});pe.result!=null&&pe.result!=null?(b.saveCookies(pe.result.cookies),P.value=pe.result.cookies,d.success("自动通过人机验证成功"),xe.value=!1,window.location.href="/"):(d.error("人机验证失败, 请重试"),xe.value=!1)};return(pe,Z)=>(Me(),it(L(xu),{theme:L(ne)},{default:ee(()=>[L(Gd)()?(Me(),it(L(xa),{key:0,class:"select-none",show:t.value,options:se,"render-label":Y,onSelect:he},{default:ee(()=>[q(L(Hn),{class:"fixed top-6 right-4 cursor-pointer z-50",src:L(_a),alt:"设置菜单","preview-disabled":!0,onClick:Z[0]||(Z[0]=oe=>t.value=!t.value),style:Tn(L(re))},null,8,["src","style"])]),_:1},8,["show"])):(Me(),it(L(xa),{key:1,class:"select-none",trigger:"hover",options:se,"render-label":Y,onSelect:he},{default:ee(()=>[q(L(Hn),{class:"fixed top-6 right-6 cursor-pointer z-50",src:L(_a),alt:"设置菜单","preview-disabled":!0,style:Tn(L(re))},null,8,["src","style"])]),_:1})),q(L(Gt),{show:o.value,"onUpdate:show":Z[8]||(Z[8]=oe=>o.value=oe),preset:"dialog","show-icon":!1},{header:ee(()=>[fS]),action:ee(()=>[q(L(He),{size:"large",onClick:Z[7]||(Z[7]=oe=>o.value=!1)},{default:ee(()=>[Oe("取消")]),_:1}),q(L(He),{ghost:"",size:"large",type:"info",onClick:Re},{default:ee(()=>[Oe("保存")]),_:1})]),default:ee(()=>[q(L(xn),{ref:"formRef","label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",style:{"margin-top":"16px"}},{default:ee(()=>[q(L(rt),{path:"cookiesEnable",label:"自动人机验证"},{default:ee(()=>[q(L(He),{type:"info",loading:L(xe),onClick:ae},{default:ee(()=>[Oe("启动")]),_:1},8,["loading"])]),_:1}),q(L(rt),{path:"cookiesEnable",label:"完整 Cookie"},{default:ee(()=>[q(L(Yo),{value:L(S),"onUpdate:value":Z[1]||(Z[1]=oe=>ro(S)?S.value=oe:S=oe)},null,8,["value"])]),_:1}),wt(q(L(rt),{path:"token",label:"Token"},{default:ee(()=>[q(L(gt),{size:"large",value:i.value,"onUpdate:value":Z[2]||(Z[2]=oe=>i.value=oe),type:"text",placeholder:"用户 Cookie ,仅需要 _U 的值"},null,8,["value"])]),_:1},512),[[Ot,!L(S)]]),wt(q(L(rt),{path:"token",label:"KievRPSSecAuth"},{default:ee(()=>[q(L(gt),{size:"large",value:a.value,"onUpdate:value":Z[3]||(Z[3]=oe=>a.value=oe),type:"text",placeholder:"用户 Cookie ,仅需要 KievRPSSecAuth 的值"},null,8,["value"])]),_:1},512),[[Ot,!L(S)]]),wt(q(L(rt),{path:"token",label:"_RwBf"},{default:ee(()=>[q(L(gt),{size:"large",value:s.value,"onUpdate:value":Z[4]||(Z[4]=oe=>s.value=oe),type:"text",placeholder:"用户 Cookie ,仅需要 _RwBf 的值"},null,8,["value"])]),_:1},512),[[Ot,!L(S)]]),wt(q(L(rt),{path:"token",label:"MUID"},{default:ee(()=>[q(L(gt),{size:"large",value:l.value,"onUpdate:value":Z[5]||(Z[5]=oe=>l.value=oe),type:"text",placeholder:"用户 Cookie ,仅需要 MUID 的值"},null,8,["value"])]),_:1},512),[[Ot,!L(S)]]),wt(q(L(rt),{path:"token",label:"Cookies"},{default:ee(()=>[q(L(gt),{size:"large",value:L(k),"onUpdate:value":Z[6]||(Z[6]=oe=>ro(k)?k.value=oe:k=oe),type:"text",placeholder:"完整用户 Cookie"},null,8,["value"])]),_:1},512),[[Ot,L(S)]])]),_:1},512)]),_:1},8,["show"]),q(L(Gt),{show:r.value,"onUpdate:show":Z[19]||(Z[19]=oe=>r.value=oe),preset:"dialog","show-icon":!1},{header:ee(()=>[hS]),action:ee(()=>[q(L(He),{size:"large",onClick:Z[18]||(Z[18]=oe=>r.value=!1)},{default:ee(()=>[Oe("取消")]),_:1}),q(L(He),{ghost:"",size:"large",type:"info",onClick:j},{default:ee(()=>[Oe("保存")]),_:1})]),default:ee(()=>[q(L(xn),{ref:"formRef","label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",style:{"margin-top":"16px"}},{default:ee(()=>[q(L(Y1),{"x-gap":"0",cols:2},{default:ee(()=>[q(L(yr),null,{default:ee(()=>[q(L(rt),{path:"history",label:"历史记录"},{default:ee(()=>[q(L(Yo),{value:L(W),"onUpdate:value":Z[9]||(Z[9]=oe=>ro(W)?W.value=oe:W=oe)},null,8,["value"])]),_:1})]),_:1}),q(L(yr),null,{default:ee(()=>[q(L(rt),{path:"enterpriseEnable",label:"企业版"},{default:ee(()=>[q(L(Yo),{value:H.value,"onUpdate:value":Z[10]||(Z[10]=oe=>H.value=oe)},null,8,["value"])]),_:1})]),_:1}),q(L(yr),null,{default:ee(()=>[q(L(rt),{path:"gpt4tEnable",label:"GPT4 Turbo"},{default:ee(()=>[q(L(Yo),{value:ve.value,"onUpdate:value":Z[11]||(Z[11]=oe=>ve.value=oe)},null,8,["value"])]),_:1})]),_:1}),q(L(yr),null,{default:ee(()=>[q(L(rt),{path:"sydneyEnable",label:"越狱模式"},{default:ee(()=>[q(L(Yo),{value:ye.value,"onUpdate:value":Z[12]||(Z[12]=oe=>ye.value=oe)},null,8,["value"])]),_:1})]),_:1})]),_:1}),q(L(rt),{path:"sydneyPrompt",label:"人机验证服务器"},{default:ee(()=>[q(L(gt),{size:"large",value:Ce.value,"onUpdate:value":Z[13]||(Z[13]=oe=>Ce.value=oe),type:"text",placeholder:"人机验证服务器"},null,8,["value"])]),_:1}),q(L(rt),{path:"sydneyPrompt",label:"提示词"},{default:ee(()=>[q(L(gt),{size:"large",value:Te.value,"onUpdate:value":Z[14]||(Z[14]=oe=>Te.value=oe),type:"text",placeholder:"越狱模式提示词"},null,8,["value"])]),_:1}),q(L(rt),{path:"themeMode",label:"UI 版本"},{default:ee(()=>[q(L(ga),{value:L(V),"onUpdate:value":Z[15]||(Z[15]=oe=>ro(V)?V.value=oe:V=oe),options:we.value,size:"large",placeholder:"请选择 UI 版本"},null,8,["value","options"])]),_:1}),q(L(rt),{path:"themeMode",label:"主题模式"},{default:ee(()=>[q(L(ga),{value:L(M),"onUpdate:value":Z[16]||(Z[16]=oe=>ro(M)?M.value=oe:M=oe),options:de.value,size:"large",placeholder:"请选择主题模式"},null,8,["value","options"])]),_:1}),wt(q(L(rt),{path:"customChatNum",label:"聊天次数"},{default:ee(()=>[q(L(_y),{size:"large",value:G.value,"onUpdate:value":Z[17]||(Z[17]=oe=>G.value=oe),min:"0",style:{width:"100%"}},null,8,["value"])]),_:1},512),[[Ot,!L(S)]])]),_:1},512)]),_:1},8,["show"]),q(L(Gt),{show:h.value,"onUpdate:show":Z[21]||(Z[21]=oe=>h.value=oe),preset:"dialog","show-icon":!1},{header:ee(()=>[pS]),action:ee(()=>[q(L(He),{size:"large",onClick:Z[20]||(Z[20]=oe=>h.value=!1)},{default:ee(()=>[Oe("取消")]),_:1}),q(L(He),{ghost:"",size:"large",type:"error",onClick:ue},{default:ee(()=>[Oe("确定")]),_:1})]),_:1},8,["show"]),q(L(Gt),{show:n.value,"onUpdate:show":Z[23]||(Z[23]=oe=>n.value=oe),preset:"dialog","show-icon":!1},{header:ee(()=>[gS]),action:ee(()=>[q(L(He),{ghost:"",size:"large",onClick:Z[22]||(Z[22]=oe=>n.value=!1),type:"info"},{default:ee(()=>[Oe("确定")]),_:1})]),default:ee(()=>[q(L(xn),{ref:"formRef","label-placement":"left","label-width":"auto",size:"small",style:{"margin-top":"16px"}},{default:ee(()=>[q(L(rt),{path:"",label:"版本号"},{default:ee(()=>[q(L(Jt),{type:"info",size:"small",round:""},{default:ee(()=>[Oe(bt("v"+L(m)),1)]),_:1})]),_:1}),q(L(rt),{path:"",label:"最新版本"},{default:ee(()=>[q(L(Jt),{type:"info",size:"small",round:""},{default:ee(()=>[Oe(bt(y.value),1)]),_:1})]),_:1}),q(L(rt),{path:"token",label:"开源地址"},{default:ee(()=>[q(L(He),{text:"",tag:"a",href:"https://github.com/Harry-zklcdc/go-proxy-bingai",target:"_blank",type:"success"},{default:ee(()=>[Oe("Harry-zklcdc/go-proxy-bingai")]),_:1})]),_:1}),q(L(rt),{path:"token",label:"原作者"},{default:ee(()=>[q(L(He),{text:"",tag:"a",href:"https://github.com/adams549659584",target:"_blank",type:"success"},{default:ee(()=>[Oe("adams549659584")]),_:1})]),_:1}),q(L(rt),{path:"token",label:"原开源地址"},{default:ee(()=>[q(L(He),{text:"",tag:"a",href:"https://github.com/adams549659584/go-proxy-bingai",target:"_blank",type:"success"},{default:ee(()=>[Oe("adams549659584/go-proxy-bingai")]),_:1})]),_:1})]),_:1},512)]),_:1},8,["show"]),q(lS,{show:g.value,"onUpdate:show":Z[24]||(Z[24]=oe=>g.value=oe)},null,8,["show"])]),_:1},8,["theme"]))}});function Aa(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,r)}return o}function Pr(e){for(var t=1;te.length)&&(t=e.length);for(var o=0,r=new Array(t);o{const M=await uS.getSysConfig();return M.code===Ti.OK&&(m.value={...m.value,...M.data}),M},w=()=>Dt.get(e)||"",C=async()=>{var V,ne,re,xe;await fetch("/search?q=Bing+AI&showconv=1&FORM=hpcodx&ajaxhist=0&ajaxserp=0&cc=us",{credentials:"include"});const M=w();if(!l.value||!M||f.value){const H=document.querySelector("cib-serp"),G=(xe=(re=(ne=(V=H==null?void 0:H.shadowRoot)==null?void 0:V.querySelector("cib-conversation"))==null?void 0:ne.querySelector("cib-side-panel"))==null?void 0:re.shadowRoot)==null?void 0:xe.querySelector(".main");if(c.value==="v2"){const ve=G==null?void 0:G.querySelector(".threads-header"),ye=G==null?void 0:G.querySelector(".threads-container");ve.style.display="none",ye.style.display="none"}else CIB.vm.sidePanel.panels=[{type:"plugins",label:"插件"}],CIB.vm.sidePanel.selectedPanel="plugins"}},x=M=>{Dt.set(e,M,7*24*60,"/")},z=M=>{Dt.set(n,M)},P=M=>{Dt.set(i,M),b.value=M},R=async()=>{localStorage.clear(),sessionStorage.clear();const M=await caches.keys();for(const V of M)await caches.delete(V),console.log("del cache : ",V)};return{sysConfig:m,getSysConfig:y,getUserToken:w,checkUserToken:C,saveUserToken:x,resetCache:async()=>{const M=document.cookie.split(";");if(M)for(let V=M.length;V--;)document.cookie=M[V].split("=")[0]+"=0; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";await R(),"serviceWorker"in navigator&&await navigator.serviceWorker.ready.then(async V=>{await V.unregister()})},setAuthKey:z,setPassServer:P,getUserKievRPSSecAuth:()=>Dt.get(t)||"",saveUserKievRPSSecAuth:M=>{Dt.set(t,M,7*24*60,"/")},getUserRwBf:()=>Dt.get(o)||"",saveUserRwBf:M=>{Dt.set(o,M,7*24*60,"/")},getUserMUID:()=>Dt.get(r)||"",saveUserMUID:M=>{Dt.set(r,M,7*24*60,"/")},saveCookies:M=>{const V=M.split(";");for(const ne of V){const re=ne.split("="),xe=re[0].trim(),H=re.length>1?re.slice(1,re.length).join("=").trim():null;xe&&H&&Dt.set(xe,H,7*24*60,"/")}},cookiesStr:a,historyEnable:l,fullCookiesEnable:s,themeMode:d,uiVersion:c,enterpriseEnable:f,customChatNum:h,gpt4tEnable:g,sydneyEnable:p,sydneyPrompt:v,passServer:b}},{persist:{key:"user-store",storage:localStorage,paths:["historyEnable","themeMode","uiVersion","fullCookiesEnable","cookiesStr","enterpriseEnable","customChatNum","gpt4tEnable","sydneyEnable","sydneyPrompt","passServer"]}}),fS=Ye("div",{class:"text-3xl py-2"},"设置",-1),hS=Ye("div",{class:"text-3xl py-2"},"高级设置",-1),pS=Ye("div",{class:"text-xl py-2"},"将删除包括 Cookie 等的所有缓存?",-1),gS=Ye("div",{class:"text-3xl py-2"},"关于",-1),vS=le({__name:"ChatNav",setup(e){const t=$(!1),o=$(!1),r=$(!1),n=$(!1),i=$(""),a=$(""),l=$(""),s=$(""),d=Ho(),c=hr(),{isShowPromptSotre:f}=Ft(c),h=$(!1),g=$(!1),p=$i(),{isShowChatServiceSelectModal:v}=Ft(p),b=Xd(),m="1.20.2",y=$("加载中..."),{historyEnable:w,themeMode:C,uiVersion:x,fullCookiesEnable:z,cookiesStr:P,enterpriseEnable:R,customChatNum:D,gpt4tEnable:_,sydneyEnable:F,sydneyPrompt:O,passServer:I}=Ft(b);let S=$(!1),k=$(""),W=$(!0),M=$("auto"),V=$("v3"),ne=$(Zo),re=$({filter:"invert(70%)"}),xe=$(!1);const H=$(!1),G=$(0),ve=$(!0),ye=$(!1),Te=$(""),Ce=$(""),Be=async()=>{const Z=await(await fetch("https://api.github.com/repos/Harry-zklcdc/go-proxy-bingai/releases/latest")).json();y.value=Z.tag_name},Pe={github:"github",chatService:"chatService",promptStore:"promptStore",setting:"setting",compose:"compose",createImage:"createImage",advancedSetting:"advancedSetting",reset:"reset",about:"about"},se=[{key:Pe.setting,label:"设置"},{key:Pe.chatService,label:"服务选择"},{key:Pe.promptStore,label:"提示词库"},{key:Pe.compose,label:"撰写文章",url:"/web/compose.html"},{key:Pe.createImage,label:"图像创建"},{key:Pe.advancedSetting,label:"高级设置"},{key:Pe.reset,label:"一键重置"},{key:Pe.about,label:"关于"}],de=$([{label:"浅色",value:"light"},{label:"深色",value:"dark"},{label:"跟随系统",value:"auto"}]),we=$([{label:"V1",value:"v1"},{label:"V2",value:"v2"},{label:"V3",value:"v3"}]);ht(()=>{C.value=="light"?(ne.value=Zo,re.value={filter:"invert(0%)"}):C.value=="dark"?(ne.value=kr,re.value={filter:"invert(70%)"}):C.value=="auto"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?(ne.value=kr,re.value={filter:"invert(70%)"}):(ne.value=Zo,re.value={filter:"invert(0%)"}))});const Y=pe=>u(oS,{navConfig:pe}),he=pe=>{var Z;switch(pe){case Pe.chatService:v.value=!0,p.checkAllSydneyConfig();break;case Pe.promptStore:f.value=!0;break;case Pe.setting:i.value=b.getUserToken(),a.value=b.getUserKievRPSSecAuth(),l.value=b.getUserMUID(),s.value=b.getUserRwBf(),W.value=w.value,S.value=z.value,S.value&&(k.value=P.value),o.value=!0;break;case Pe.advancedSetting:W.value=w.value,M.value=C.value,V.value=x.value,H.value=R.value,G.value=D.value,ve.value=_.value,ye.value=F.value,Te.value=O.value,r.value=!0,Ce.value=I.value;break;case Pe.createImage:!((Z=b.sysConfig)!=null&&Z.isSysCK)&&!b.getUserToken()&&d.warning("体验画图功能需先登录"),g.value=!0;break;case Pe.reset:h.value=!0;break;case Pe.about:n.value=!0,Be();break}},ue=async()=>{h.value=!1,await b.resetCache(),d.success("清理完成"),window.location.href="/"},Re=()=>{S.value?(b.saveCookies(k.value),P.value=k.value):(i.value?b.saveUserToken(i.value):d.warning("请先填入用户 _U Cookie"),a.value?b.saveUserKievRPSSecAuth(a.value):d.warning("请先填入用户 KievRPSSecAuth Cookie"),s.value?b.saveUserRwBf(s.value):d.warning("请先填入用户 _RwBf Cookie"),l.value?b.saveUserMUID(l.value):d.warning("请先填入用户 MUID Cookie")),z.value=S.value,o.value=!1},j=()=>{var pt,Ht,Wt,Nt;w.value=W.value;const pe=R.value;R.value=H.value,D.value=G.value;const Z=_.value,oe=F.value,Xe=x.value;_.value=ve.value,F.value=ye.value,O.value=Te.value,x.value=V.value,b.setPassServer(Ce.value);const Ve=document.querySelector("cib-serp"),J=(Nt=(Wt=(Ht=(pt=Ve==null?void 0:Ve.shadowRoot)==null?void 0:pt.querySelector("cib-conversation"))==null?void 0:Ht.querySelector("cib-side-panel"))==null?void 0:Wt.shadowRoot)==null?void 0:Nt.querySelector(".main"),ce=J==null?void 0:J.querySelector(".threads-header"),je=J==null?void 0:J.querySelector(".threads-container");W.value&&b.getUserToken()&&!R.value?Xe==="v2"?(ce.style.display="flex",je.style.display="block"):CIB.vm.sidePanel.panels=[{type:"threads",label:"最近的活动"},{type:"plugins",label:"插件"}]:Xe==="v2"?(ce.style.display="none",je.style.display="none"):(CIB.vm.sidePanel.panels=[{type:"plugins",label:"插件"}],CIB.vm.sidePanel.selectedPanel="plugins"),C.value=M.value,M.value=="light"?(CIB.changeColorScheme(0),ne.value=Zo,re.value={filter:"invert(0%)"}):M.value=="dark"?(CIB.changeColorScheme(1),ne.value=kr,re.value={filter:"invert(70%)"}):M.value=="auto"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?(CIB.changeColorScheme(1),ne.value=kr,re.value={filter:"invert(70%)"}):(CIB.changeColorScheme(0),ne.value=Zo,re.value={filter:"invert(0%)"})),r.value=!1,(pe!=H.value||oe!=ye.value||Z!=ve.value||Xe!=V.value)&&(window.location.href="/")},ae=async()=>{xe.value=!0;let pe=await fetch("/pass",{credentials:"include",method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:I.value})}).then(Z=>Z.json()).catch(()=>{d.error("人机验证失败, 请重试"),xe.value=!1});pe.result!=null&&pe.result!=null?(b.saveCookies(pe.result.cookies),P.value=pe.result.cookies,d.success("自动通过人机验证成功"),xe.value=!1,window.location.href="/"):(d.error("人机验证失败, 请重试"),xe.value=!1)};return(pe,Z)=>(Me(),it(L(xu),{theme:L(ne)},{default:ee(()=>[L(Gd)()?(Me(),it(L(xa),{key:0,class:"select-none",show:t.value,options:se,"render-label":Y,onSelect:he},{default:ee(()=>[q(L(Hn),{class:"fixed top-6 right-4 cursor-pointer z-50",src:L(_a),alt:"设置菜单","preview-disabled":!0,onClick:Z[0]||(Z[0]=oe=>t.value=!t.value),style:Tn(L(re))},null,8,["src","style"])]),_:1},8,["show"])):(Me(),it(L(xa),{key:1,class:"select-none",trigger:"hover",options:se,"render-label":Y,onSelect:he},{default:ee(()=>[q(L(Hn),{class:"fixed top-6 right-6 cursor-pointer z-50",src:L(_a),alt:"设置菜单","preview-disabled":!0,style:Tn(L(re))},null,8,["src","style"])]),_:1})),q(L(Gt),{show:o.value,"onUpdate:show":Z[8]||(Z[8]=oe=>o.value=oe),preset:"dialog","show-icon":!1},{header:ee(()=>[fS]),action:ee(()=>[q(L(He),{size:"large",onClick:Z[7]||(Z[7]=oe=>o.value=!1)},{default:ee(()=>[Oe("取消")]),_:1}),q(L(He),{ghost:"",size:"large",type:"info",onClick:Re},{default:ee(()=>[Oe("保存")]),_:1})]),default:ee(()=>[q(L(xn),{ref:"formRef","label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",style:{"margin-top":"16px"}},{default:ee(()=>[q(L(rt),{path:"cookiesEnable",label:"自动人机验证"},{default:ee(()=>[q(L(He),{type:"info",loading:L(xe),onClick:ae},{default:ee(()=>[Oe("启动")]),_:1},8,["loading"])]),_:1}),q(L(rt),{path:"cookiesEnable",label:"完整 Cookie"},{default:ee(()=>[q(L(Yo),{value:L(S),"onUpdate:value":Z[1]||(Z[1]=oe=>ro(S)?S.value=oe:S=oe)},null,8,["value"])]),_:1}),wt(q(L(rt),{path:"token",label:"Token"},{default:ee(()=>[q(L(gt),{size:"large",value:i.value,"onUpdate:value":Z[2]||(Z[2]=oe=>i.value=oe),type:"text",placeholder:"用户 Cookie ,仅需要 _U 的值"},null,8,["value"])]),_:1},512),[[Ot,!L(S)]]),wt(q(L(rt),{path:"token",label:"KievRPSSecAuth"},{default:ee(()=>[q(L(gt),{size:"large",value:a.value,"onUpdate:value":Z[3]||(Z[3]=oe=>a.value=oe),type:"text",placeholder:"用户 Cookie ,仅需要 KievRPSSecAuth 的值"},null,8,["value"])]),_:1},512),[[Ot,!L(S)]]),wt(q(L(rt),{path:"token",label:"_RwBf"},{default:ee(()=>[q(L(gt),{size:"large",value:s.value,"onUpdate:value":Z[4]||(Z[4]=oe=>s.value=oe),type:"text",placeholder:"用户 Cookie ,仅需要 _RwBf 的值"},null,8,["value"])]),_:1},512),[[Ot,!L(S)]]),wt(q(L(rt),{path:"token",label:"MUID"},{default:ee(()=>[q(L(gt),{size:"large",value:l.value,"onUpdate:value":Z[5]||(Z[5]=oe=>l.value=oe),type:"text",placeholder:"用户 Cookie ,仅需要 MUID 的值"},null,8,["value"])]),_:1},512),[[Ot,!L(S)]]),wt(q(L(rt),{path:"token",label:"Cookies"},{default:ee(()=>[q(L(gt),{size:"large",value:L(k),"onUpdate:value":Z[6]||(Z[6]=oe=>ro(k)?k.value=oe:k=oe),type:"text",placeholder:"完整用户 Cookie"},null,8,["value"])]),_:1},512),[[Ot,L(S)]])]),_:1},512)]),_:1},8,["show"]),q(L(Gt),{show:r.value,"onUpdate:show":Z[19]||(Z[19]=oe=>r.value=oe),preset:"dialog","show-icon":!1},{header:ee(()=>[hS]),action:ee(()=>[q(L(He),{size:"large",onClick:Z[18]||(Z[18]=oe=>r.value=!1)},{default:ee(()=>[Oe("取消")]),_:1}),q(L(He),{ghost:"",size:"large",type:"info",onClick:j},{default:ee(()=>[Oe("保存")]),_:1})]),default:ee(()=>[q(L(xn),{ref:"formRef","label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",style:{"margin-top":"16px"}},{default:ee(()=>[q(L(Y1),{"x-gap":"0",cols:2},{default:ee(()=>[q(L(yr),null,{default:ee(()=>[q(L(rt),{path:"history",label:"历史记录"},{default:ee(()=>[q(L(Yo),{value:L(W),"onUpdate:value":Z[9]||(Z[9]=oe=>ro(W)?W.value=oe:W=oe)},null,8,["value"])]),_:1})]),_:1}),q(L(yr),null,{default:ee(()=>[q(L(rt),{path:"enterpriseEnable",label:"企业版"},{default:ee(()=>[q(L(Yo),{value:H.value,"onUpdate:value":Z[10]||(Z[10]=oe=>H.value=oe)},null,8,["value"])]),_:1})]),_:1}),q(L(yr),null,{default:ee(()=>[q(L(rt),{path:"gpt4tEnable",label:"GPT4 Turbo"},{default:ee(()=>[q(L(Yo),{value:ve.value,"onUpdate:value":Z[11]||(Z[11]=oe=>ve.value=oe)},null,8,["value"])]),_:1})]),_:1}),q(L(yr),null,{default:ee(()=>[q(L(rt),{path:"sydneyEnable",label:"越狱模式"},{default:ee(()=>[q(L(Yo),{value:ye.value,"onUpdate:value":Z[12]||(Z[12]=oe=>ye.value=oe)},null,8,["value"])]),_:1})]),_:1})]),_:1}),q(L(rt),{path:"sydneyPrompt",label:"人机验证服务器"},{default:ee(()=>[q(L(gt),{size:"large",value:Ce.value,"onUpdate:value":Z[13]||(Z[13]=oe=>Ce.value=oe),type:"text",placeholder:"人机验证服务器"},null,8,["value"])]),_:1}),q(L(rt),{path:"sydneyPrompt",label:"提示词"},{default:ee(()=>[q(L(gt),{size:"large",value:Te.value,"onUpdate:value":Z[14]||(Z[14]=oe=>Te.value=oe),type:"text",placeholder:"越狱模式提示词"},null,8,["value"])]),_:1}),q(L(rt),{path:"themeMode",label:"UI 版本"},{default:ee(()=>[q(L(ga),{value:L(V),"onUpdate:value":Z[15]||(Z[15]=oe=>ro(V)?V.value=oe:V=oe),options:we.value,size:"large",placeholder:"请选择 UI 版本"},null,8,["value","options"])]),_:1}),q(L(rt),{path:"themeMode",label:"主题模式"},{default:ee(()=>[q(L(ga),{value:L(M),"onUpdate:value":Z[16]||(Z[16]=oe=>ro(M)?M.value=oe:M=oe),options:de.value,size:"large",placeholder:"请选择主题模式"},null,8,["value","options"])]),_:1}),wt(q(L(rt),{path:"customChatNum",label:"聊天次数"},{default:ee(()=>[q(L(_y),{size:"large",value:G.value,"onUpdate:value":Z[17]||(Z[17]=oe=>G.value=oe),min:"0",style:{width:"100%"}},null,8,["value"])]),_:1},512),[[Ot,!L(S)]])]),_:1},512)]),_:1},8,["show"]),q(L(Gt),{show:h.value,"onUpdate:show":Z[21]||(Z[21]=oe=>h.value=oe),preset:"dialog","show-icon":!1},{header:ee(()=>[pS]),action:ee(()=>[q(L(He),{size:"large",onClick:Z[20]||(Z[20]=oe=>h.value=!1)},{default:ee(()=>[Oe("取消")]),_:1}),q(L(He),{ghost:"",size:"large",type:"error",onClick:ue},{default:ee(()=>[Oe("确定")]),_:1})]),_:1},8,["show"]),q(L(Gt),{show:n.value,"onUpdate:show":Z[23]||(Z[23]=oe=>n.value=oe),preset:"dialog","show-icon":!1},{header:ee(()=>[gS]),action:ee(()=>[q(L(He),{ghost:"",size:"large",onClick:Z[22]||(Z[22]=oe=>n.value=!1),type:"info"},{default:ee(()=>[Oe("确定")]),_:1})]),default:ee(()=>[q(L(xn),{ref:"formRef","label-placement":"left","label-width":"auto",size:"small",style:{"margin-top":"16px"}},{default:ee(()=>[q(L(rt),{path:"",label:"版本号"},{default:ee(()=>[q(L(Jt),{type:"info",size:"small",round:""},{default:ee(()=>[Oe(bt("v"+L(m)),1)]),_:1})]),_:1}),q(L(rt),{path:"",label:"最新版本"},{default:ee(()=>[q(L(Jt),{type:"info",size:"small",round:""},{default:ee(()=>[Oe(bt(y.value),1)]),_:1})]),_:1}),q(L(rt),{path:"token",label:"开源地址"},{default:ee(()=>[q(L(He),{text:"",tag:"a",href:"https://github.com/Harry-zklcdc/go-proxy-bingai",target:"_blank",type:"success"},{default:ee(()=>[Oe("Harry-zklcdc/go-proxy-bingai")]),_:1})]),_:1}),q(L(rt),{path:"token",label:"原作者"},{default:ee(()=>[q(L(He),{text:"",tag:"a",href:"https://github.com/adams549659584",target:"_blank",type:"success"},{default:ee(()=>[Oe("adams549659584")]),_:1})]),_:1}),q(L(rt),{path:"token",label:"原开源地址"},{default:ee(()=>[q(L(He),{text:"",tag:"a",href:"https://github.com/adams549659584/go-proxy-bingai",target:"_blank",type:"success"},{default:ee(()=>[Oe("adams549659584/go-proxy-bingai")]),_:1})]),_:1})]),_:1},512)]),_:1},8,["show"]),q(lS,{show:g.value,"onUpdate:show":Z[24]||(Z[24]=oe=>g.value=oe)},null,8,["show"])]),_:1},8,["theme"]))}});function Aa(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,r)}return o}function Pr(e){for(var t=1;te.length)&&(t=e.length);for(var o=0,r=new Array(t);othis.range.start)){var r=Math.max(o-this.param.buffer,0);this.checkRange(r,this.getEndByStart(r))}}},{key:"handleBehind",value:function(){var o=this.getScrollOvers();oo&&(a=n-1)}return r>0?--r:0}},{key:"getIndexOffset",value:function(o){if(!o)return 0;for(var r=0,n=0,i=0;i=W&&r("tobottom")},m=function(S){var k=g(),W=p(),M=v();k<0||k+W>M+1||!M||(f.handleScroll(k),b(k,W,M,S))},y=function(){var S=t.dataKey,k=t.dataSources,W=k===void 0?[]:k;return W.map(function(M){return typeof S=="function"?S(M):M[S]})},w=function(S){s.value=S},C=function(){f=new PS({slotHeaderSize:0,slotFooterSize:0,keeps:t.keeps,estimateSize:t.estimateSize,buffer:Math.round(t.keeps/3),uniqueIds:y()},w),s.value=f.getRange()},x=function(S){if(S>=t.dataSources.length-1)_();else{var k=f.getOffset(S);z(k)}},z=function(S){t.pageMode?(document.body[l]=S,document.documentElement[l]=S):d.value&&(d.value[l]=S)},P=function(){for(var S=[],k=s.value,W=k.start,M=k.end,V=t.dataSources,ne=t.dataKey,re=t.itemClass,xe=t.itemTag,H=t.itemStyle,G=t.extraProps,ve=t.dataComponent,ye=t.itemScopedSlots,Te=W;Te<=M;Te++){var Ce=V[Te];if(Ce){var Be=typeof ne=="function"?ne(Ce):Ce[ne];typeof Be=="string"||typeof Be=="number"?S.push(q(IS,{index:Te,tag:xe,event:or.ITEM,horizontal:a,uniqueKey:Be,source:Ce,extraProps:G,component:ve,scopedSlots:ye,style:H,class:"".concat(re).concat(t.itemClassAdd?" "+t.itemClassAdd(Te):""),onItemResize:R},null)):console.warn("Cannot get the data-key '".concat(ne,"' from data-sources."))}else console.warn("Cannot get the index '".concat(Te,"' from data-sources."))}return S},R=function(S,k){f.saveSize(S,k),r("resized",S,k)},D=function(S,k,W){S===Mo.HEADER?f.updateParam("slotHeaderSize",k):S===Mo.FOOTER&&f.updateParam("slotFooterSize",k),W&&f.handleSlotSizeChange()},_=function I(){if(c.value){var S=c.value[a?"offsetLeft":"offsetTop"];z(S),setTimeout(function(){g()+p(){r.value=r.value.filter(s=>s.act!==l.act&&s.prompt!==l.prompt),t.success("删除提示词成功")},a=l=>{n.value.isShow=!0,n.value.type="edit",n.value.title="编辑提示词",n.value.tmpPrompt=l,n.value.newPrompt={...l}};return(l,s)=>(Me(),it(L(Wd),{class:"hover:bg-gray-100 cursor-pointer p-5"},{description:ee(()=>[q(L(Jt),{type:"info"},{default:ee(()=>[Ye("span",RS,bt(l.source.act),1)]),_:1}),Ye("div",MS,[q(L(He),{secondary:"",type:"info",size:"small",onClick:s[0]||(s[0]=d=>a(l.source))},{default:ee(()=>[Oe("编辑")]),_:1}),q(L(He),{secondary:"",class:"ml-2",type:"error",size:"small",onClick:s[1]||(s[1]=d=>i(l.source))},{default:ee(()=>[Oe("删除")]),_:1})])]),default:ee(()=>[q(L(Ds),{tooltip:!1,"line-clamp":2},{default:ee(()=>[Oe(bt(l.source.prompt),1)]),_:1})]),_:1}))}}),DS={class:"flex justify-start flex-wrap gap-2 px-5 pb-2"},OS=["href"],LS={class:"flex justify-center gap-5"},_S=["href"],FS=le({__name:"ChatPromptStore",setup(e){const t=Ho(),o=hr(),{promptDownloadConfig:r,isShowPromptSotre:n,promptList:i,keyword:a,searchPromptList:l,optPromptConfig:s}=Ft(o),d=$(!1),c=$(!1),f=$(!1),h=()=>{s.value.isShow=!0,s.value.type="add",s.value.title="添加提示词",s.value.newPrompt={act:"",prompt:""}},g=()=>{const{type:w,tmpPrompt:C,newPrompt:x}=s.value;if(!x.act)return t.error("提示词标题不能为空");if(!x.prompt)return t.error("提示词描述不能为空");if(w==="add")i.value=[x,...i.value],t.success("添加提示词成功");else if(w==="edit"){if(x.act===(C==null?void 0:C.act)&&x.prompt===(C==null?void 0:C.prompt)){t.warning("提示词未变更"),s.value.isShow=!1;return}const z=i.value.findIndex(P=>P.act===(C==null?void 0:C.act)&&P.prompt===(C==null?void 0:C.prompt));z>-1?(i.value[z]=x,t.success("编辑提示词成功")):t.error("编辑提示词出错")}s.value.isShow=!1},p=w=>new Promise((C,x)=>{const z=new FileReader;z.onload=function(P){var R;C((R=P.target)==null?void 0:R.result)},z.onerror=x,z.readAsText(w)}),v=async w=>{var C;if(w.file.file){c.value=!0;const x=await p(w.file.file),z=JSON.parse(x),P=o.addPrompt(z);P.result?(t.info(`上传文件含 ${z.length} 条数据`),t.success(`成功导入 ${(C=P.data)==null?void 0:C.successCount} 条有效数据`)):t.error(P.msg||"提示词格式有误"),c.value=!1}else t.error("上传文件有误")},b=()=>{if(i.value.length===0)return t.error("暂无可导出的提示词数据");f.value=!0;const w=JSON.stringify(i.value),C=new Blob([w],{type:"application/json"}),x=URL.createObjectURL(C),z=document.createElement("a");z.href=x,z.download="BingAIPrompts.json",z.click(),URL.revokeObjectURL(x),t.success("导出提示词库成功"),f.value=!1},m=()=>{i.value=[],t.success("清空提示词库成功")},y=async w=>{var z;if(!w.url)return t.error("请先输入下载链接");w.isDownloading=!0;let C;if(w.url.endsWith(".json"))C=await fetch(w.url).then(P=>P.json());else if(w.url.endsWith(".csv")){const P=await fetch(w.url).then(R=>R.text());console.log(P),C=P.split(` `).filter(R=>R).map(R=>{var _;const D=R.split('","');return{act:D[0].slice(1),prompt:(_=D[1])==null?void 0:_.slice(1)}}),C.shift()}else return w.isDownloading=!1,t.error("暂不支持下载此后缀的提示词");w.isDownloading=!1;const x=o.addPrompt(C);x.result?(t.info(`下载文件含 ${C.length} 条数据`),t.success(`成功导入 ${(z=x.data)==null?void 0:z.successCount} 条有效数据`)):t.error(x.msg||"提示词格式有误")};return(w,C)=>(Me(),lt(Rt,null,[q(L(Gt),{class:"w-11/12 xl:w-[900px]",show:L(n),"onUpdate:show":C[3]||(C[3]=x=>ro(n)?n.value=x:null),preset:"card",title:"提示词库"},{default:ee(()=>[Ye("div",DS,[q(L(gt),{class:"basis-full xl:basis-0 xl:min-w-[300px]",placeholder:"搜索提示词",value:L(a),"onUpdate:value":C[0]||(C[0]=x=>ro(a)?a.value=x:null),clearable:!0},null,8,["value"]),q(L(He),{secondary:"",type:"info",onClick:C[1]||(C[1]=x=>d.value=!0)},{default:ee(()=>[Oe("下载")]),_:1}),q(L(He),{secondary:"",type:"info",onClick:h},{default:ee(()=>[Oe("添加")]),_:1}),q(L(Xw),{class:"w-[56px] xl:w-auto",accept:".json","default-upload":!1,"show-file-list":!1,onChange:v},{default:ee(()=>[q(L(He),{secondary:"",type:"success",loading:c.value},{default:ee(()=>[Oe("导入")]),_:1},8,["loading"])]),_:1}),q(L(He),{secondary:"",type:"success",onClick:b,loading:f.value},{default:ee(()=>[Oe("导出")]),_:1},8,["loading"]),q(L(He),{secondary:"",type:"error",onClick:m},{default:ee(()=>[Oe("清空")]),_:1})]),L(l).length>0?(Me(),it(L(Zd),{key:0,class:"h-[40vh] xl:h-[60vh] overflow-y-auto","data-key":"prompt","data-sources":L(l),"data-component":BS,keeps:10},null,8,["data-sources"])):(Me(),it(L(jr),{key:1,class:"h-[40vh] xl:h-[60vh] flex justify-center items-center",description:"暂无数据"},{extra:ee(()=>[q(L(He),{secondary:"",type:"info",onClick:C[2]||(C[2]=x=>d.value=!0)},{default:ee(()=>[Oe("下载提示词")]),_:1})]),_:1}))]),_:1},8,["show"]),q(L(Gt),{class:"w-11/12 xl:w-[600px]",show:L(s).isShow,"onUpdate:show":C[6]||(C[6]=x=>L(s).isShow=x),preset:"card",title:L(s).title},{default:ee(()=>[q(L(Fb),{vertical:""},{default:ee(()=>[Oe(" 标题 "),q(L(gt),{placeholder:"请输入标题",value:L(s).newPrompt.act,"onUpdate:value":C[4]||(C[4]=x=>L(s).newPrompt.act=x)},null,8,["value"]),Oe(" 描述 "),q(L(gt),{placeholder:"请输入描述",type:"textarea",value:L(s).newPrompt.prompt,"onUpdate:value":C[5]||(C[5]=x=>L(s).newPrompt.prompt=x)},null,8,["value"]),q(L(He),{block:"",secondary:"",type:"info",onClick:g},{default:ee(()=>[Oe("保存")]),_:1})]),_:1})]),_:1},8,["show","title"]),q(L(Gt),{class:"w-11/12 xl:w-[600px]",show:d.value,"onUpdate:show":C[7]||(C[7]=x=>d.value=x),preset:"card",title:"下载提示词"},{default:ee(()=>[q(L(Vy),{class:"overflow-y-auto rounded-lg",hoverable:"",clickable:""},{default:ee(()=>[(Me(!0),lt(Rt,null,al(L(r),(x,z)=>(Me(),it(L(Uy),{key:z},{suffix:ee(()=>[Ye("div",LS,[x.type===1?(Me(),lt("a",{key:0,class:"no-underline",href:x.refer,target:"_blank",rel:"noopener noreferrer"},[q(L(He),{secondary:""},{default:ee(()=>[Oe("来源")]),_:1})],8,_S)):Xt("",!0),q(L(He),{secondary:"",type:"info",onClick:P=>y(x),loading:x.isDownloading},{default:ee(()=>[Oe("下载")]),_:2},1032,["onClick","loading"])])]),default:ee(()=>[x.type===1?(Me(),lt("a",{key:0,class:"no-underline text-blue-500",href:x.url,target:"_blank",rel:"noopener noreferrer"},bt(x.name),9,OS)):x.type===2?(Me(),it(L(gt),{key:1,placeholder:"请输入下载链接,支持 json 及 csv ",value:x.url,"onUpdate:value":P=>x.url=P},null,8,["value","onUpdate:value"])):Xt("",!0)]),_:2},1024))),128))]),_:1})]),_:1},8,["show"])],64))}}),AS=`/* 移除顶部背景遮挡 */\r .scroller>.top {\r diff --git a/web/assets/index-80d2e354.js b/web/assets/index-ed99e2b2.js similarity index 55% rename from web/assets/index-80d2e354.js rename to web/assets/index-ed99e2b2.js index 7eccda371d..4069232568 100644 --- a/web/assets/index-80d2e354.js +++ b/web/assets/index-ed99e2b2.js @@ -1,50 +1,50 @@ (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)}})();/** -* @vue/shared v3.4.15 +* @vue/shared v3.4.16 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Vi(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Oe={},Pn=[],ot=()=>{},Lf=()=>!1,wo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ui=e=>e.startsWith("onUpdate:"),Le=Object.assign,Ki=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Hf=Object.prototype.hasOwnProperty,me=(e,t)=>Hf.call(e,t),se=Array.isArray,Tn=e=>So(e)==="[object Map]",Da=e=>So(e)==="[object Set]",ue=e=>typeof e=="function",Be=e=>typeof e=="string",jn=e=>typeof e=="symbol",Ee=e=>e!==null&&typeof e=="object",Na=e=>(Ee(e)||ue(e))&&ue(e.then)&&ue(e.catch),Wa=Object.prototype.toString,So=e=>Wa.call(e),Ff=e=>So(e).slice(8,-1),Va=e=>So(e)==="[object Object]",Gi=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,no=Vi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_o=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},jf=/-(\w)/g,In=_o(e=>e.replace(jf,(t,n)=>n?n.toUpperCase():"")),Df=/\B([A-Z])/g,gn=_o(e=>e.replace(Df,"-$1").toLowerCase()),Ua=_o(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ko=_o(e=>e?`on${Ua(e)}`:""),Kt=(e,t)=>!Object.is(e,t),Go=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Nf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Wf=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let ks;const Ka=()=>ks||(ks=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qi(e){if(se(e)){const t={};for(let n=0;n{if(n){const r=n.split(Uf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Xi(e){let t="";if(Be(e))t=e;else if(se(e))for(let n=0;nBe(e)?e:e==null?"":se(e)||Ee(e)&&(e.toString===Wa||!ue(e.toString))?JSON.stringify(e,qa,2):String(e),qa=(e,t)=>t&&t.__v_isRef?qa(e,t.value):Tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[qo(r,i)+" =>"]=o,n),{})}:Da(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>qo(n))}:jn(t)?qo(t):Ee(t)&&!se(t)&&!Va(t)?String(t):t,qo=(e,t="")=>{var n;return jn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.4.15 +**/function Ui(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Oe={},Pn=[],ot=()=>{},Mf=()=>!1,So=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ki=e=>e.startsWith("onUpdate:"),Le=Object.assign,Gi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Lf=Object.prototype.hasOwnProperty,me=(e,t)=>Lf.call(e,t),se=Array.isArray,Tn=e=>_o(e)==="[object Map]",Da=e=>_o(e)==="[object Set]",ue=e=>typeof e=="function",Be=e=>typeof e=="string",Dn=e=>typeof e=="symbol",Ee=e=>e!==null&&typeof e=="object",Na=e=>(Ee(e)||ue(e))&&ue(e.then)&&ue(e.catch),Wa=Object.prototype.toString,_o=e=>Wa.call(e),Hf=e=>_o(e).slice(8,-1),Va=e=>_o(e)==="[object Object]",qi=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ro=Ui(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$o=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ff=/-(\w)/g,zn=$o(e=>e.replace(Ff,(t,n)=>n?n.toUpperCase():"")),jf=/\B([A-Z])/g,gn=$o(e=>e.replace(jf,"-$1").toLowerCase()),Ua=$o(e=>e.charAt(0).toUpperCase()+e.slice(1)),Go=$o(e=>e?`on${Ua(e)}`:""),Kt=(e,t)=>!Object.is(e,t),qo=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Df=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Nf=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let ks;const Ka=()=>ks||(ks=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xi(e){if(se(e)){const t={};for(let n=0;n{if(n){const r=n.split(Vf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Yi(e){let t="";if(Be(e))t=e;else if(se(e))for(let n=0;nBe(e)?e:e==null?"":se(e)||Ee(e)&&(e.toString===Wa||!ue(e.toString))?JSON.stringify(e,qa,2):String(e),qa=(e,t)=>t&&t.__v_isRef?qa(e,t.value):Tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[Xo(r,i)+" =>"]=o,n),{})}:Da(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Xo(n))}:Dn(t)?Xo(t):Ee(t)&&!se(t)&&!Va(t)?String(t):t,Xo=(e,t="")=>{var n;return Dn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.4.16 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let rt;class Xa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=rt,!t&&rt&&(this.index=(rt.scopes||(rt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=rt;try{return rt=this,t()}finally{rt=n}}}on(){rt=this}off(){rt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),mn()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Vt,n=cn;try{return Vt=!0,cn=this,this._runnings++,Ms(this),this.fn()}finally{Ls(this),this._runnings--,cn=n,Vt=t}}stop(){var t;this.active&&(Ms(this),Ls(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Jf(e){return e.value}function Ms(e){e._trackId++,e._depsLength=0}function Ls(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},co=new WeakMap,un=Symbol(""),gi=Symbol("");function nt(e,t,n){if(Vt&&cn){let r=co.get(e);r||co.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=rc(()=>r.delete(n))),ec(cn,o)}}function $t(e,t,n,r,o,i){const s=co.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&se(e)){const a=Number(r);s.forEach((c,u)=>{(u==="length"||!jn(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":se(e)?Gi(n)&&l.push(s.get("length")):(l.push(s.get(un)),Tn(e)&&l.push(s.get(gi)));break;case"delete":se(e)||(l.push(s.get(un)),Tn(e)&&l.push(s.get(gi)));break;case"set":Tn(e)&&l.push(s.get(un));break}Zi();for(const a of l)a&&tc(a,2);Ji()}function Qf(e,t){var n;return(n=co.get(e))==null?void 0:n.get(t)}const ed=Vi("__proto__,__v_isRef,__isVue"),oc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jn)),Hs=td();function td(){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){vn(),Zi();const r=ge(this)[t].apply(this,n);return Ji(),mn(),r}}),e}function nd(e){const t=ge(this);return nt(t,"has",e),t.hasOwnProperty(e)}class ic{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const o=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?gd:cc:i?ac:lc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=se(t);if(!o){if(s&&me(Hs,n))return Reflect.get(Hs,n,r);if(n==="hasOwnProperty")return nd}const l=Reflect.get(t,n,r);return(jn(n)?oc.has(n):ed(n))||(o||nt(t,"get",n),i)?l:ke(l)?s&&Gi(n)?l:l.value:Ee(l)?o?Rt(l):bn(l):l}}class sc extends ic{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._shallow){const a=zn(i);if(!uo(r)&&!zn(r)&&(i=ge(i),r=ge(r)),!se(t)&&ke(i)&&!ke(r))return a?!1:(i.value=r,!0)}const s=se(t)&&Gi(n)?Number(n)e,$o=e=>Reflect.getPrototypeOf(e);function Hr(e,t,n=!1,r=!1){e=e.__v_raw;const o=ge(e),i=ge(t);n||(Kt(t,i)&&nt(o,"get",t),nt(o,"get",i));const{has:s}=$o(o),l=r?Qi:n?ns:vr;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 Fr(e,t=!1){const n=this.__v_raw,r=ge(n),o=ge(e);return t||(Kt(e,o)&&nt(r,"has",e),nt(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function jr(e,t=!1){return e=e.__v_raw,!t&&nt(ge(e),"iterate",un),Reflect.get(e,"size",e)}function Fs(e){e=ge(e);const t=ge(this);return $o(t).has.call(t,e)||(t.add(e),$t(t,"add",e,e)),this}function js(e,t){t=ge(t);const n=ge(this),{has:r,get:o}=$o(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?Kt(t,s)&&$t(n,"set",e,t):$t(n,"add",e,t),this}function Ds(e){const t=ge(this),{has:n,get:r}=$o(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&&$t(t,"delete",e,void 0),i}function Ns(){const e=ge(this),t=e.size!==0,n=e.clear();return t&&$t(e,"clear",void 0,void 0),n}function Dr(e,t){return function(r,o){const i=this,s=i.__v_raw,l=ge(s),a=t?Qi:e?ns:vr;return!e&&nt(l,"iterate",un),s.forEach((c,u)=>r.call(o,a(c),a(u),i))}}function Nr(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?ns:vr;return!t&&nt(i,"iterate",a?gi: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 zt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ld(){const e={get(i){return Hr(this,i)},get size(){return jr(this)},has:Fr,add:Fs,set:js,delete:Ds,clear:Ns,forEach:Dr(!1,!1)},t={get(i){return Hr(this,i,!1,!0)},get size(){return jr(this)},has:Fr,add:Fs,set:js,delete:Ds,clear:Ns,forEach:Dr(!1,!0)},n={get(i){return Hr(this,i,!0)},get size(){return jr(this,!0)},has(i){return Fr.call(this,i,!0)},add:zt("add"),set:zt("set"),delete:zt("delete"),clear:zt("clear"),forEach:Dr(!0,!1)},r={get(i){return Hr(this,i,!0,!0)},get size(){return jr(this,!0)},has(i){return Fr.call(this,i,!0)},add:zt("add"),set:zt("set"),delete:zt("delete"),clear:zt("clear"),forEach:Dr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Nr(i,!1,!1),n[i]=Nr(i,!0,!1),t[i]=Nr(i,!1,!0),r[i]=Nr(i,!0,!0)}),[e,n,t,r]}const[ad,cd,ud,fd]=ld();function es(e,t){const n=t?e?fd:ud:e?cd:ad;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(me(n,o)&&o in r?n:r,o,i)}const dd={get:es(!1,!1)},hd={get:es(!1,!0)},pd={get:es(!0,!1)},lc=new WeakMap,ac=new WeakMap,cc=new WeakMap,gd=new WeakMap;function vd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function md(e){return e.__v_skip||!Object.isExtensible(e)?0:vd(Ff(e))}function bn(e){return zn(e)?e:ts(e,!1,od,dd,lc)}function uc(e){return ts(e,!1,sd,hd,ac)}function Rt(e){return ts(e,!0,id,pd,cc)}function ts(e,t,n,r,o){if(!Ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=md(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return o.set(e,l),l}function Et(e){return zn(e)?Et(e.__v_raw):!!(e&&e.__v_isReactive)}function zn(e){return!!(e&&e.__v_isReadonly)}function uo(e){return!!(e&&e.__v_isShallow)}function fc(e){return Et(e)||zn(e)}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function Bn(e){return ao(e,"__v_skip",!0),e}const vr=e=>Ee(e)?bn(e):e,ns=e=>Ee(e)?Rt(e):e;class dc{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Yi(()=>t(this._value),()=>ro(this,1),()=>this.dep&&nc(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=ge(this);return(!t._cacheable||t.effect.dirty)&&Kt(t._value,t._value=t.effect.run())&&ro(t,2),hc(t),t.effect._dirtyLevel>=1&&ro(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function bd(e,t,n=!1){let r,o;const i=ue(e);return i?(r=e,o=ot):(r=e.get,o=e.set),new dc(r,o,i||!o,n)}function hc(e){Vt&&cn&&(e=ge(e),ec(cn,e.dep||(e.dep=rc(()=>e.dep=void 0,e instanceof dc?e:void 0))))}function ro(e,t=2,n){e=ge(e);const r=e.dep;r&&tc(r,t)}function ke(e){return!!(e&&e.__v_isRef===!0)}function re(e){return pc(e,!1)}function rs(e){return pc(e,!0)}function pc(e,t){return ke(e)?e:new yd(e,t)}class yd{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:vr(t)}get value(){return hc(this),this._value}set value(t){const n=this.__v_isShallow||uo(t)||zn(t);t=n?t:ge(t),Kt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:vr(t),ro(this,2))}}function xt(e){return ke(e)?e.value:e}const xd={get:(e,t,n)=>xt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return ke(o)&&!ke(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function gc(e){return Et(e)?e:new Proxy(e,xd)}function Cd(e){const t=se(e)?new Array(e.length):{};for(const n in e)t[n]=vc(e,n);return t}class wd{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 Qf(ge(this._object),this._key)}}class Sd{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Pt(e,t,n){return ke(e)?e:ue(e)?new Sd(e):Ee(e)&&arguments.length>1?vc(e,t,n):re(e)}function vc(e,t,n){const r=e[t];return ke(r)?r:new wd(e,t,n)}/** -* @vue/runtime-core v3.4.15 +**/let rt;class Xa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=rt,!t&&rt&&(this.index=(rt.scopes||(rt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=rt;try{return rt=this,t()}finally{rt=n}}}on(){rt=this}off(){rt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),mn()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Vt,n=cn;try{return Vt=!0,cn=this,this._runnings++,Ms(this),this.fn()}finally{Ls(this),this._runnings--,cn=n,Vt=t}}stop(){var t;this.active&&(Ms(this),Ls(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Zf(e){return e.value}function Ms(e){e._trackId++,e._depsLength=0}function Ls(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},uo=new WeakMap,un=Symbol(""),vi=Symbol("");function nt(e,t,n){if(Vt&&cn){let r=uo.get(e);r||uo.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=nc(()=>r.delete(n))),ec(cn,o)}}function $t(e,t,n,r,o,i){const s=uo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&se(e)){const a=Number(r);s.forEach((c,u)=>{(u==="length"||!Dn(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":se(e)?qi(n)&&l.push(s.get("length")):(l.push(s.get(un)),Tn(e)&&l.push(s.get(vi)));break;case"delete":se(e)||(l.push(s.get(un)),Tn(e)&&l.push(s.get(vi)));break;case"set":Tn(e)&&l.push(s.get(un));break}Ji();for(const a of l)a&&tc(a,4);Qi()}function Jf(e,t){var n;return(n=uo.get(e))==null?void 0:n.get(t)}const Qf=Ui("__proto__,__v_isRef,__isVue"),rc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dn)),Hs=ed();function ed(){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){vn(),Ji();const r=ge(this)[t].apply(this,n);return Qi(),mn(),r}}),e}function td(e){const t=ge(this);return nt(t,"has",e),t.hasOwnProperty(e)}class oc{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const o=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?pd:ac:i?lc:sc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=se(t);if(!o){if(s&&me(Hs,n))return Reflect.get(Hs,n,r);if(n==="hasOwnProperty")return td}const l=Reflect.get(t,n,r);return(Dn(n)?rc.has(n):Qf(n))||(o||nt(t,"get",n),i)?l:ke(l)?s&&qi(n)?l:l.value:Ee(l)?o?Rt(l):bn(l):l}}class ic extends oc{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._shallow){const a=Bn(i);if(!fo(r)&&!Bn(r)&&(i=ge(i),r=ge(r)),!se(t)&&ke(i)&&!ke(r))return a?!1:(i.value=r,!0)}const s=se(t)&&qi(n)?Number(n)e,Eo=e=>Reflect.getPrototypeOf(e);function Fr(e,t,n=!1,r=!1){e=e.__v_raw;const o=ge(e),i=ge(t);n||(Kt(t,i)&&nt(o,"get",t),nt(o,"get",i));const{has:s}=Eo(o),l=r?es:n?rs:mr;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||(Kt(e,o)&&nt(r,"has",e),nt(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&&nt(ge(e),"iterate",un),Reflect.get(e,"size",e)}function Fs(e){e=ge(e);const t=ge(this);return Eo(t).has.call(t,e)||(t.add(e),$t(t,"add",e,e)),this}function js(e,t){t=ge(t);const n=ge(this),{has:r,get:o}=Eo(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?Kt(t,s)&&$t(n,"set",e,t):$t(n,"add",e,t),this}function Ds(e){const t=ge(this),{has:n,get:r}=Eo(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&&$t(t,"delete",e,void 0),i}function Ns(){const e=ge(this),t=e.size!==0,n=e.clear();return t&&$t(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?es:e?rs:mr;return!e&&nt(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?es:t?rs:mr;return!t&&nt(i,"iterate",a?vi: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 zt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function sd(){const e={get(i){return Fr(this,i)},get size(){return Dr(this)},has:jr,add:Fs,set:js,delete:Ds,clear:Ns,forEach:Nr(!1,!1)},t={get(i){return Fr(this,i,!1,!0)},get size(){return Dr(this)},has:jr,add:Fs,set:js,delete:Ds,clear:Ns,forEach:Nr(!1,!0)},n={get(i){return Fr(this,i,!0)},get size(){return Dr(this,!0)},has(i){return jr.call(this,i,!0)},add:zt("add"),set:zt("set"),delete:zt("delete"),clear:zt("clear"),forEach:Nr(!0,!1)},r={get(i){return Fr(this,i,!0,!0)},get size(){return Dr(this,!0)},has(i){return jr.call(this,i,!0)},add:zt("add"),set:zt("set"),delete:zt("delete"),clear:zt("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[ld,ad,cd,ud]=sd();function ts(e,t){const n=t?e?ud:cd:e?ad:ld;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(me(n,o)&&o in r?n:r,o,i)}const fd={get:ts(!1,!1)},dd={get:ts(!1,!0)},hd={get:ts(!0,!1)},sc=new WeakMap,lc=new WeakMap,ac=new WeakMap,pd=new WeakMap;function gd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vd(e){return e.__v_skip||!Object.isExtensible(e)?0:gd(Hf(e))}function bn(e){return Bn(e)?e:ns(e,!1,rd,fd,sc)}function cc(e){return ns(e,!1,id,dd,lc)}function Rt(e){return ns(e,!0,od,hd,ac)}function ns(e,t,n,r,o){if(!Ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=vd(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return o.set(e,l),l}function Et(e){return Bn(e)?Et(e.__v_raw):!!(e&&e.__v_isReactive)}function Bn(e){return!!(e&&e.__v_isReadonly)}function fo(e){return!!(e&&e.__v_isShallow)}function uc(e){return Et(e)||Bn(e)}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function kn(e){return Object.isExtensible(e)&&co(e,"__v_skip",!0),e}const mr=e=>Ee(e)?bn(e):e,rs=e=>Ee(e)?Rt(e):e;class fc{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Zi(()=>t(this._value),()=>oo(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=ge(this);return(!t._cacheable||t.effect.dirty)&&Kt(t._value,t._value=t.effect.run())&&oo(t,4),dc(t),t.effect._dirtyLevel>=2&&oo(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function md(e,t,n=!1){let r,o;const i=ue(e);return i?(r=e,o=ot):(r=e.get,o=e.set),new fc(r,o,i||!o,n)}function dc(e){var t;Vt&&cn&&(e=ge(e),ec(cn,(t=e.dep)!=null?t:e.dep=nc(()=>e.dep=void 0,e instanceof fc?e:void 0)))}function oo(e,t=4,n){e=ge(e);const r=e.dep;r&&tc(r,t)}function ke(e){return!!(e&&e.__v_isRef===!0)}function re(e){return hc(e,!1)}function os(e){return hc(e,!0)}function hc(e,t){return ke(e)?e:new bd(e,t)}class bd{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:mr(t)}get value(){return dc(this),this._value}set value(t){const n=this.__v_isShallow||fo(t)||Bn(t);t=n?t:ge(t),Kt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:mr(t),oo(this,4))}}function xt(e){return ke(e)?e.value:e}const yd={get:(e,t,n)=>xt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return ke(o)&&!ke(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function pc(e){return Et(e)?e:new Proxy(e,yd)}function xd(e){const t=se(e)?new Array(e.length):{};for(const n in e)t[n]=gc(e,n);return t}class Cd{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 Jf(ge(this._object),this._key)}}class wd{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Pt(e,t,n){return ke(e)?e:ue(e)?new wd(e):Ee(e)&&arguments.length>1?gc(e,t,n):re(e)}function gc(e,t,n){const r=e[t];return ke(r)?r:new Cd(e,t,n)}/** +* @vue/runtime-core v3.4.16 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Ut(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Eo(i,t,n)}return o}function ct(e,t,n,r){if(ue(e)){const i=Ut(e,t,n,r);return i&&Na(i)&&i.catch(s=>{Eo(s,t,n)}),i}const o=[];for(let i=0;i>>1,o=Ve[r],i=br(o);iyt&&Ve.splice(t,1)}function Rd(e){se(e)?On.push(...e):(!Ft||!Ft.includes(e,e.allowRecurse?tn+1:tn))&&On.push(e),bc()}function Ws(e,t,n=mr?yt+1:0){for(;nbr(n)-br(r));if(On.length=0,Ft){Ft.push(...t);return}for(Ft=t,tn=0;tne.id==null?1/0:e.id,Pd=(e,t)=>{const n=br(e)-br(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function xc(e){vi=!1,mr=!0,Ve.sort(Pd);const t=ot;try{for(yt=0;ytBe(v)?v.trim():v)),f&&(o=n.map(Nf))}let l,a=r[l=Ko(t)]||r[l=Ko(In(t))];!a&&i&&(a=r[l=Ko(gn(t))]),a&&ct(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,ct(c,e,6,o)}}function Cc(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=Cc(c,t,!0);u&&(l=!0,Le(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(Ee(e)&&r.set(e,null),null):(se(i)?i.forEach(a=>s[a]=null):Le(s,i),Ee(e)&&r.set(e,s),s)}function Ro(e,t){return!e||!wo(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,gn(t))||me(e,t))}let Fe=null,Po=null;function fo(e){const t=Fe;return Fe=e,Po=e&&e.type.__scopeId||null,t}function Jx(e){Po=e}function Qx(){Po=null}function oo(e,t=Fe,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&nl(-1);const i=fo(t);let s;try{s=e(...o)}finally{fo(i),r._d&&nl(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Xo(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:C}=e;let y,m;const S=fo(e);try{if(n.shapeFlag&4){const R=o||r,$=R;y=bt(u.call($,R,f,i,v,d,p)),m=a}else{const R=t;y=bt(R.length>1?R(i,{attrs:a,slots:l,emit:c}):R(i,null)),m=t.props?a:Od(a)}}catch(R){cr.length=0,Eo(R,e,1),y=je(Ye)}let k=y;if(m&&C!==!1){const R=Object.keys(m),{shapeFlag:$}=k;R.length&&$&7&&(s&&R.some(Ui)&&(m=Ad(m,s)),k=Tt(k,m))}return n.dirs&&(k=Tt(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),y=k,fo(S),y}const Od=e=>{let t;for(const n in e)(n==="class"||n==="style"||wo(n))&&((t||(t={}))[n]=e[n]);return t},Ad=(e,t)=>{const n={};for(const r in e)(!Ui(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Id(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?Vs(r,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function Md(e,t){t&&t.pendingBranch?se(e)?t.effects.push(...e):t.effects.push(e):Rd(e)}const Ld=Symbol.for("v-scx"),Hd=()=>Ae(Ld);function ss(e,t){return ls(e,null,t)}const Wr={};function dt(e,t,n){return ls(e,t,n)}function ls(e,t,{immediate:n,deep:r,flush:o,once:i,onTrack:s,onTrigger:l}=Oe){if(t&&i){const _=t;t=(...b)=>{_(...b),$()}}const a=De,c=_=>r===!0?_:rn(_,r===!1?1:void 0);let u,f=!1,d=!1;if(ke(e)?(u=()=>e.value,f=uo(e)):Et(e)?(u=()=>c(e),f=!0):se(e)?(d=!0,f=e.some(_=>Et(_)||uo(_)),u=()=>e.map(_=>{if(ke(_))return _.value;if(Et(_))return c(_);if(ue(_))return Ut(_,a,2)})):ue(e)?t?u=()=>Ut(e,a,2):u=()=>(v&&v(),ct(e,a,3,[p])):u=ot,t&&r){const _=u;u=()=>rn(_())}let v,p=_=>{v=k.onStop=()=>{Ut(_,a,4),v=k.onStop=void 0}},C;if(Bo)if(p=ot,t?n&&ct(t,a,3,[u(),d?[]:void 0,p]):u(),o==="sync"){const _=Hd();C=_.__watcherHandles||(_.__watcherHandles=[])}else return ot;let y=d?new Array(e.length).fill(Wr):Wr;const m=()=>{if(!(!k.active||!k.dirty))if(t){const _=k.run();(r||f||(d?_.some((b,x)=>Kt(b,y[x])):Kt(_,y)))&&(v&&v(),ct(t,a,3,[_,y===Wr?void 0:d&&y[0]===Wr?[]:y,p]),y=_)}else k.run()};m.allowRecurse=!!t;let S;o==="sync"?S=m:o==="post"?S=()=>tt(m,a&&a.suspense):(m.pre=!0,a&&(m.id=a.uid),S=()=>is(m));const k=new Yi(u,ot,S),R=Za(),$=()=>{k.stop(),R&&Ki(R.effects,k)};return t?n?m():y=k.run():o==="post"?tt(k.run.bind(k),a&&a.suspense):k.run(),C&&C.push($),$}function Fd(e,t,n){const r=this.proxy,o=Be(e)?e.includes(".")?wc(r,e):()=>r[e]:e.bind(r,r);let i;ue(t)?i=t:(i=t.handler,n=t);const s=Ir(this),l=ls(o,i.bind(r),n);return s(),l}function wc(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),ke(e))rn(e.value,t,n,r);else if(se(e))for(let o=0;o{rn(o,t,n,r)});else if(Va(e))for(const o in e)rn(e[o],t,n,r);return e}function mi(e,t){if(Fe===null)return e;const n=ko(Fe)||Fe.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),pt(()=>{e.isUnmounting=!0}),e}const lt=[Function,Array],_c={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:lt,onEnter:lt,onAfterEnter:lt,onEnterCancelled:lt,onBeforeLeave:lt,onLeave:lt,onAfterLeave:lt,onLeaveCancelled:lt,onBeforeAppear:lt,onAppear:lt,onAfterAppear:lt,onAppearCancelled:lt},jd={name:"BaseTransition",props:_c,setup(e,{slots:t}){const n=zo(),r=Sc();let o;return()=>{const i=t.default&&as(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const C of i)if(C.type!==Ye){s=C;break}}const l=ge(e),{mode:a}=l;if(r.isLeaving)return Yo(s);const c=Us(s);if(!c)return Yo(s);const u=yr(c,l,r,n);xr(c,u);const f=n.subTree,d=f&&Us(f);let v=!1;const{getTransitionKey:p}=c.type;if(p){const C=p();o===void 0?o=C:C!==o&&(o=C,v=!0)}if(d&&d.type!==Ye&&(!nn(c,d)||v)){const C=yr(d,l,r,n);if(xr(d,C),a==="out-in")return r.isLeaving=!0,C.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Yo(s);a==="in-out"&&c.type!==Ye&&(C.delayLeave=(y,m,S)=>{const k=$c(r,d);k[String(d.key)]=d,y[jt]=()=>{m(),y[jt]=void 0,delete u.delayedLeave},u.delayedLeave=S})}return s}}},Dd=jd;function $c(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 yr(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:C,onAppear:y,onAfterAppear:m,onAppearCancelled:S}=t,k=String(e.key),R=$c(n,e),$=(x,P)=>{x&&ct(x,r,9,P)},_=(x,P)=>{const F=P[1];$(x,P),se(x)?x.every(W=>W.length<=1)&&F():x.length<=1&&F()},b={mode:i,persisted:s,beforeEnter(x){let P=l;if(!n.isMounted)if(o)P=C||l;else return;x[jt]&&x[jt](!0);const F=R[k];F&&nn(e,F)&&F.el[jt]&&F.el[jt](),$(P,[x])},enter(x){let P=a,F=c,W=u;if(!n.isMounted)if(o)P=y||a,F=m||c,W=S||u;else return;let z=!1;const Z=x[Vr]=oe=>{z||(z=!0,oe?$(W,[x]):$(F,[x]),b.delayedLeave&&b.delayedLeave(),x[Vr]=void 0)};P?_(P,[x,Z]):Z()},leave(x,P){const F=String(e.key);if(x[Vr]&&x[Vr](!0),n.isUnmounting)return P();$(f,[x]);let W=!1;const z=x[jt]=Z=>{W||(W=!0,P(),Z?$(p,[x]):$(v,[x]),x[jt]=void 0,R[F]===e&&delete R[F])};R[F]=e,d?_(d,[x,z]):z()},clone(x){return yr(x,t,n,r)}};return b}function Yo(e){if(To(e))return e=Tt(e),e.children=null,e}function Us(e){return To(e)?e.children?e.children[0]:void 0:e}function xr(e,t){e.shapeFlag&6&&e.component?xr(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 as(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;iLe({name:e.name},t,{setup:e}))():e}const sr=e=>!!e.type.__asyncLoader,To=e=>e.type.__isKeepAlive;function Ec(e,t){Pc(e,"a",t)}function Rc(e,t){Pc(e,"da",t)}function Pc(e,t,n=De){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Oo(t,r,n),n){let o=n.parent;for(;o&&o.parent;)To(o.parent.vnode)&&Nd(r,t,n,o),o=o.parent}}function Nd(e,t,n,r){const o=Oo(t,e,r,!0);Oc(()=>{Ki(r[t],o)},n)}function Oo(e,t,n=De,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;vn();const l=Ir(n),a=ct(t,n,e,s);return l(),mn(),a});return r?o.unshift(i):o.push(i),i}}const Ot=e=>(t,n=De)=>(!Bo||e==="sp")&&Oo(e,(...r)=>t(...r),n),yn=Ot("bm"),Xt=Ot("m"),Wd=Ot("bu"),Tc=Ot("u"),pt=Ot("bum"),Oc=Ot("um"),Vd=Ot("sp"),Ud=Ot("rtg"),Kd=Ot("rtc");function Gd(e,t=De){Oo("ec",e,t)}function e1(e,t,n,r){let o;const i=n&&n[r];if(se(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;lSr(t)?!(t.type===Ye||t.type===Me&&!Ac(t.children)):!0)?e:null}const bi=e=>e?Uc(e)?ko(e)||e.proxy:bi(e.parent):null,lr=Le(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=>bi(e.parent),$root:e=>bi(e.root),$emit:e=>e.emit,$options:e=>cs(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,is(e.update)}),$nextTick:e=>e.n||(e.n=kn.bind(e.proxy)),$watch:e=>Fd.bind(e)}),Zo=(e,t)=>e!==Oe&&!e.__isScriptSetup&&me(e,t),Xd={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(Zo(r,t))return s[t]=1,r[t];if(o!==Oe&&me(o,t))return s[t]=2,o[t];if((c=e.propsOptions[0])&&me(c,t))return s[t]=3,i[t];if(n!==Oe&&me(n,t))return s[t]=4,n[t];yi&&(s[t]=0)}}const u=lr[t];let f,d;if(u)return t==="$attrs"&&nt(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==Oe&&me(n,t))return s[t]=4,n[t];if(d=a.config.globalProperties,me(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Zo(o,t)?(o[t]=n,!0):r!==Oe&&me(r,t)?(r[t]=n,!0):me(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!==Oe&&me(e,s)||Zo(t,s)||(l=i[0])&&me(l,s)||me(r,s)||me(lr,s)||me(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ks(e){return se(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let yi=!0;function Yd(e){const t=cs(e),n=e.proxy,r=e.ctx;yi=!1,t.beforeCreate&&Gs(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:C,deactivated:y,beforeDestroy:m,beforeUnmount:S,destroyed:k,unmounted:R,render:$,renderTracked:_,renderTriggered:b,errorCaptured:x,serverPrefetch:P,expose:F,inheritAttrs:W,components:z,directives:Z,filters:oe}=t;if(c&&Zd(c,r,null),s)for(const U in s){const ne=s[U];ue(ne)&&(r[U]=ne.bind(n))}if(o){const U=o.call(n,n);Ee(U)&&(e.data=bn(U))}if(yi=!0,i)for(const U in i){const ne=i[U],Ce=ue(ne)?ne.bind(n,n):ue(ne.get)?ne.get.bind(n,n):ot,we=!ue(ne)&&ue(ne.set)?ne.set.bind(n):ot,Se=Y({get:Ce,set:we});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>Se.value,set:_e=>Se.value=_e})}if(l)for(const U in l)Ic(l[U],r,n,U);if(a){const U=ue(a)?a.call(n):a;Reflect.ownKeys(U).forEach(ne=>{Xe(ne,U[ne])})}u&&Gs(u,e,"c");function X(U,ne){se(ne)?ne.forEach(Ce=>U(Ce.bind(n))):ne&&U(ne.bind(n))}if(X(yn,f),X(Xt,d),X(Wd,v),X(Tc,p),X(Ec,C),X(Rc,y),X(Gd,x),X(Kd,_),X(Ud,b),X(pt,S),X(Oc,R),X(Vd,P),se(F))if(F.length){const U=e.exposed||(e.exposed={});F.forEach(ne=>{Object.defineProperty(U,ne,{get:()=>n[ne],set:Ce=>n[ne]=Ce})})}else e.exposed||(e.exposed={});$&&e.render===ot&&(e.render=$),W!=null&&(e.inheritAttrs=W),z&&(e.components=z),Z&&(e.directives=Z)}function Zd(e,t,n=ot){se(e)&&(e=xi(e));for(const r in e){const o=e[r];let i;Ee(o)?"default"in o?i=Ae(o.from||r,o.default,!0):i=Ae(o.from||r):i=Ae(o),ke(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[r]=i}}function Gs(e,t,n){ct(se(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ic(e,t,n,r){const o=r.includes(".")?wc(n,r):()=>n[r];if(Be(e)){const i=t[e];ue(i)&&dt(o,i)}else if(ue(e))dt(o,e.bind(n));else if(Ee(e))if(se(e))e.forEach(i=>Ic(i,t,n,r));else{const i=ue(e.handler)?e.handler.bind(n):t[e.handler];ue(i)&&dt(o,i,e)}}function cs(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=>ho(a,c,s,!0)),ho(a,t,s)),Ee(t)&&i.set(t,a),a}function ho(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&ho(e,i,n,!0),o&&o.forEach(s=>ho(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=Jd[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Jd={data:qs,props:Xs,emits:Xs,methods:rr,computed:rr,beforeCreate:Ge,created:Ge,beforeMount:Ge,mounted:Ge,beforeUpdate:Ge,updated:Ge,beforeDestroy:Ge,beforeUnmount:Ge,destroyed:Ge,unmounted:Ge,activated:Ge,deactivated:Ge,errorCaptured:Ge,serverPrefetch:Ge,components:rr,directives:rr,watch:eh,provide:qs,inject:Qd};function qs(e,t){return t?e?function(){return Le(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function Qd(e,t){return rr(xi(e),xi(t))}function xi(e){if(se(e)){const t={};for(let n=0;n1)return n&&ue(t)?t.call(r&&r.proxy):t}}function rh(){return!!(De||Fe||Cr)}function oh(e,t,n,r=!1){const o={},i={};ao(i,Io,1),e.propsDefaults=Object.create(null),Bc(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:uc(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function ih(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]=kc(f,t,!0);Le(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 Ee(e)&&r.set(e,Pn),Pn;if(se(i))for(let u=0;u-1,v[1]=C<0||p-1||me(v,"default"))&&l.push(f)}}}const c=[s,l];return Ee(e)&&r.set(e,c),c}function Ys(e){return e[0]!=="$"}function Zs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Js(e,t){return Zs(e)===Zs(t)}function Qs(e,t){return se(t)?t.findIndex(n=>Js(n,e)):ue(t)&&Js(t,e)?0:-1}const Mc=e=>e[0]==="_"||e==="$stable",us=e=>se(e)?e.map(bt):[bt(e)],sh=(e,t,n)=>{if(t._n)return t;const r=oo((...o)=>us(t(...o)),n);return r._c=!1,r},Lc=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Mc(o))continue;const i=e[o];if(ue(i))t[o]=sh(o,i,r);else if(i!=null){const s=us(i);t[o]=()=>s}}},Hc=(e,t)=>{const n=us(t);e.slots.default=()=>n},lh=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ge(t),ao(t,"_",n)):Lc(t,e.slots={})}else e.slots={},t&&Hc(e,t);ao(e.slots,Io,1)},ah=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=Oe;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Le(o,t),!n&&l===1&&delete o._):(i=!t.$stable,Lc(t,o)),s=t}else t&&(Hc(e,t),s={default:1});if(i)for(const l in o)!Mc(l)&&s[l]==null&&delete o[l]};function wi(e,t,n,r,o=!1){if(se(e)){e.forEach((d,v)=>wi(d,t&&(se(t)?t[v]:t),n,r,o));return}if(sr(r)&&!o)return;const i=r.shapeFlag&4?ko(r.component)||r.component.proxy:r.el,s=o?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===Oe?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(Be(c)?(u[c]=null,me(f,c)&&(f[c]=null)):ke(c)&&(c.value=null)),ue(a))Ut(a,l,12,[s,u]);else{const d=Be(a),v=ke(a),p=e.f;if(d||v){const C=()=>{if(p){const y=d?me(f,a)?f[a]:u[a]:a.value;o?se(y)&&Ki(y,i):se(y)?y.includes(i)||y.push(i):d?(u[a]=[i],me(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else d?(u[a]=s,me(f,a)&&(f[a]=s)):v&&(a.value=s,e.k&&(u[e.k]=s))};o||p?C():(C.id=-1,tt(C,n))}}}const tt=Md;function ch(e){return uh(e)}function uh(e,t){const n=Ka();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=ot,insertStaticContent:p}=e,C=(h,g,w,A=null,O=null,j=null,N=void 0,I=null,H=!!g.dynamicChildren)=>{if(h===g)return;h&&!nn(h,g)&&(A=T(h),_e(h,O,j,!0),h=null),g.patchFlag===-2&&(H=!1,g.dynamicChildren=null);const{type:M,ref:K,shapeFlag:J}=g;switch(M){case Ao:y(h,g,w,A);break;case Ye:m(h,g,w,A);break;case Qo:h==null&&S(g,w,A,N);break;case Me:z(h,g,w,A,O,j,N,I,H);break;default:J&1?$(h,g,w,A,O,j,N,I,H):J&6?Z(h,g,w,A,O,j,N,I,H):(J&64||J&128)&&M.process(h,g,w,A,O,j,N,I,H,q)}K!=null&&O&&wi(K,h&&h.ref,j,g||h,!g)},y=(h,g,w,A)=>{if(h==null)r(g.el=l(g.children),w,A);else{const O=g.el=h.el;g.children!==h.children&&c(O,g.children)}},m=(h,g,w,A)=>{h==null?r(g.el=a(g.children||""),w,A):g.el=h.el},S=(h,g,w,A)=>{[h.el,h.anchor]=p(h.children,g,w,A,h.el,h.anchor)},k=({el:h,anchor:g},w,A)=>{let O;for(;h&&h!==g;)O=d(h),r(h,w,A),h=O;r(g,w,A)},R=({el:h,anchor:g})=>{let w;for(;h&&h!==g;)w=d(h),o(h),h=w;o(g)},$=(h,g,w,A,O,j,N,I,H)=>{g.type==="svg"?N="svg":g.type==="math"&&(N="mathml"),h==null?_(g,w,A,O,j,N,I,H):P(h,g,O,j,N,I,H)},_=(h,g,w,A,O,j,N,I)=>{let H,M;const{props:K,shapeFlag:J,transition:Q,dirs:ae}=h;if(H=h.el=s(h.type,j,K&&K.is,K),J&8?u(H,h.children):J&16&&x(h.children,H,null,A,O,Jo(h,j),N,I),ae&&Yt(h,null,A,"created"),b(H,h,h.scopeId,N,A),K){for(const be in K)be!=="value"&&!no(be)&&i(H,be,null,K[be],j,h.children,A,O,fe);"value"in K&&i(H,"value",null,K.value,j),(M=K.onVnodeBeforeMount)&>(M,A,h)}ae&&Yt(h,null,A,"beforeMount");const he=fh(O,Q);he&&Q.beforeEnter(H),r(H,g,w),((M=K&&K.onVnodeMounted)||he||ae)&&tt(()=>{M&>(M,A,h),he&&Q.enter(H),ae&&Yt(h,null,A,"mounted")},O)},b=(h,g,w,A,O)=>{if(w&&v(h,w),A)for(let j=0;j{for(let M=H;M{const I=g.el=h.el;let{patchFlag:H,dynamicChildren:M,dirs:K}=g;H|=h.patchFlag&16;const J=h.props||Oe,Q=g.props||Oe;let ae;if(w&&Zt(w,!1),(ae=Q.onVnodeBeforeUpdate)&>(ae,w,g,h),K&&Yt(g,h,w,"beforeUpdate"),w&&Zt(w,!0),M?F(h.dynamicChildren,M,I,w,A,Jo(g,O),j):N||ne(h,g,I,null,w,A,Jo(g,O),j,!1),H>0){if(H&16)W(I,g,J,Q,w,A,O);else if(H&2&&J.class!==Q.class&&i(I,"class",null,Q.class,O),H&4&&i(I,"style",J.style,Q.style,O),H&8){const he=g.dynamicProps;for(let be=0;be{ae&>(ae,w,g,h),K&&Yt(g,h,w,"updated")},A)},F=(h,g,w,A,O,j,N)=>{for(let I=0;I{if(w!==A){if(w!==Oe)for(const I in w)!no(I)&&!(I in A)&&i(h,I,w[I],null,N,g.children,O,j,fe);for(const I in A){if(no(I))continue;const H=A[I],M=w[I];H!==M&&I!=="value"&&i(h,I,M,H,N,g.children,O,j,fe)}"value"in A&&i(h,"value",w.value,A.value,N)}},z=(h,g,w,A,O,j,N,I,H)=>{const M=g.el=h?h.el:l(""),K=g.anchor=h?h.anchor:l("");let{patchFlag:J,dynamicChildren:Q,slotScopeIds:ae}=g;ae&&(I=I?I.concat(ae):ae),h==null?(r(M,w,A),r(K,w,A),x(g.children||[],w,K,O,j,N,I,H)):J>0&&J&64&&Q&&h.dynamicChildren?(F(h.dynamicChildren,Q,w,O,j,N,I),(g.key!=null||O&&g===O.subTree)&&fs(h,g,!0)):ne(h,g,w,K,O,j,N,I,H)},Z=(h,g,w,A,O,j,N,I,H)=>{g.slotScopeIds=I,h==null?g.shapeFlag&512?O.ctx.activate(g,w,A,N,H):oe(g,w,A,O,j,N,H):ce(h,g,H)},oe=(h,g,w,A,O,j,N)=>{const I=h.component=Ch(h,A,O);if(To(h)&&(I.ctx.renderer=q),wh(I),I.asyncDep){if(O&&O.registerDep(I,X),!h.el){const H=I.subTree=je(Ye);m(null,H,g,w)}}else X(I,h,g,w,O,j,N)},ce=(h,g,w)=>{const A=g.component=h.component;if(Id(h,g,w))if(A.asyncDep&&!A.asyncResolved){U(A,g,w);return}else A.next=g,Ed(A.update),A.effect.dirty=!0,A.update();else g.el=h.el,A.vnode=g},X=(h,g,w,A,O,j,N)=>{const I=()=>{if(h.isMounted){let{next:K,bu:J,u:Q,parent:ae,vnode:he}=h;{const It=Fc(h);if(It){K&&(K.el=he.el,U(h,K,N)),It.asyncDep.then(()=>{h.isUnmounted||I()});return}}let be=K,$e;Zt(h,!1),K?(K.el=he.el,U(h,K,N)):K=he,J&&Go(J),($e=K.props&&K.props.onVnodeBeforeUpdate)&>($e,ae,K,he),Zt(h,!0);const Ie=Xo(h),Ke=h.subTree;h.subTree=Ie,C(Ke,Ie,f(Ke.el),T(Ke),h,O,j),K.el=Ie.el,be===null&&zd(h,Ie.el),Q&&tt(Q,O),($e=K.props&&K.props.onVnodeUpdated)&&tt(()=>gt($e,ae,K,he),O)}else{let K;const{el:J,props:Q}=g,{bm:ae,m:he,parent:be}=h,$e=sr(g);if(Zt(h,!1),ae&&Go(ae),!$e&&(K=Q&&Q.onVnodeBeforeMount)&>(K,be,g),Zt(h,!0),J&&ve){const Ie=()=>{h.subTree=Xo(h),ve(J,h.subTree,h,O,null)};$e?g.type.__asyncLoader().then(()=>!h.isUnmounted&&Ie()):Ie()}else{const Ie=h.subTree=Xo(h);C(null,Ie,w,A,h,O,j),g.el=Ie.el}if(he&&tt(he,O),!$e&&(K=Q&&Q.onVnodeMounted)){const Ie=g;tt(()=>gt(K,be,Ie),O)}(g.shapeFlag&256||be&&sr(be.vnode)&&be.vnode.shapeFlag&256)&&h.a&&tt(h.a,O),h.isMounted=!0,g=w=A=null}},H=h.effect=new Yi(I,ot,()=>is(M),h.scope),M=h.update=()=>{H.dirty&&H.run()};M.id=h.uid,Zt(h,!0),M()},U=(h,g,w)=>{g.component=h;const A=h.vnode.props;h.vnode=g,h.next=null,ih(h,g.props,A,w),ah(h,g.children,w),vn(),Ws(h),mn()},ne=(h,g,w,A,O,j,N,I,H=!1)=>{const M=h&&h.children,K=h?h.shapeFlag:0,J=g.children,{patchFlag:Q,shapeFlag:ae}=g;if(Q>0){if(Q&128){we(M,J,w,A,O,j,N,I,H);return}else if(Q&256){Ce(M,J,w,A,O,j,N,I,H);return}}ae&8?(K&16&&fe(M,O,j),J!==M&&u(w,J)):K&16?ae&16?we(M,J,w,A,O,j,N,I,H):fe(M,O,j,!0):(K&8&&u(w,""),ae&16&&x(J,w,A,O,j,N,I,H))},Ce=(h,g,w,A,O,j,N,I,H)=>{h=h||Pn,g=g||Pn;const M=h.length,K=g.length,J=Math.min(M,K);let Q;for(Q=0;QK?fe(h,O,j,!0,!1,J):x(g,w,A,O,j,N,I,H,J)},we=(h,g,w,A,O,j,N,I,H)=>{let M=0;const K=g.length;let J=h.length-1,Q=K-1;for(;M<=J&&M<=Q;){const ae=h[M],he=g[M]=H?Dt(g[M]):bt(g[M]);if(nn(ae,he))C(ae,he,w,null,O,j,N,I,H);else break;M++}for(;M<=J&&M<=Q;){const ae=h[J],he=g[Q]=H?Dt(g[Q]):bt(g[Q]);if(nn(ae,he))C(ae,he,w,null,O,j,N,I,H);else break;J--,Q--}if(M>J){if(M<=Q){const ae=Q+1,he=aeQ)for(;M<=J;)_e(h[M],O,j,!0),M++;else{const ae=M,he=M,be=new Map;for(M=he;M<=Q;M++){const L=g[M]=H?Dt(g[M]):bt(g[M]);L.key!=null&&be.set(L.key,M)}let $e,Ie=0;const Ke=Q-he+1;let It=!1,Xn=0;const st=new Array(Ke);for(M=0;M=Ke){_e(L,O,j,!0);continue}let G;if(L.key!=null)G=be.get(L.key);else for($e=he;$e<=Q;$e++)if(st[$e-he]===0&&nn(L,g[$e])){G=$e;break}G===void 0?_e(L,O,j,!0):(st[G-he]=M+1,G>=Xn?Xn=G:It=!0,C(L,g[G],w,null,O,j,N,I,H),Ie++)}const Uo=It?dh(st):Pn;for($e=Uo.length-1,M=Ke-1;M>=0;M--){const L=he+M,G=g[L],le=L+1{const{el:j,type:N,transition:I,children:H,shapeFlag:M}=h;if(M&6){Se(h.component.subTree,g,w,A);return}if(M&128){h.suspense.move(g,w,A);return}if(M&64){N.move(h,g,w,q);return}if(N===Me){r(j,g,w);for(let J=0;JI.enter(j),O);else{const{leave:J,delayLeave:Q,afterLeave:ae}=I,he=()=>r(j,g,w),be=()=>{J(j,()=>{he(),ae&&ae()})};Q?Q(j,he,be):be()}else r(j,g,w)},_e=(h,g,w,A=!1,O=!1)=>{const{type:j,props:N,ref:I,children:H,dynamicChildren:M,shapeFlag:K,patchFlag:J,dirs:Q}=h;if(I!=null&&wi(I,null,w,h,!0),K&256){g.ctx.deactivate(h);return}const ae=K&1&&Q,he=!sr(h);let be;if(he&&(be=N&&N.onVnodeBeforeUnmount)&>(be,g,h),K&6)Je(h.component,w,A);else{if(K&128){h.suspense.unmount(w,A);return}ae&&Yt(h,null,g,"beforeUnmount"),K&64?h.type.remove(h,g,w,O,q,A):M&&(j!==Me||J>0&&J&64)?fe(M,g,w,!1,!0):(j===Me&&J&384||!O&&K&16)&&fe(H,g,w),A&&Ze(h)}(he&&(be=N&&N.onVnodeUnmounted)||ae)&&tt(()=>{be&>(be,g,h),ae&&Yt(h,null,g,"unmounted")},w)},Ze=h=>{const{type:g,el:w,anchor:A,transition:O}=h;if(g===Me){Ue(w,A);return}if(g===Qo){R(h);return}const j=()=>{o(w),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(h.shapeFlag&1&&O&&!O.persisted){const{leave:N,delayLeave:I}=O,H=()=>N(w,j);I?I(h.el,j,H):H()}else j()},Ue=(h,g)=>{let w;for(;h!==g;)w=d(h),o(h),h=w;o(g)},Je=(h,g,w)=>{const{bum:A,scope:O,update:j,subTree:N,um:I}=h;A&&Go(A),O.stop(),j&&(j.active=!1,_e(N,h,g,w)),I&&tt(I,g),tt(()=>{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,w,A=!1,O=!1,j=0)=>{for(let N=j;Nh.shapeFlag&6?T(h.component.subTree):h.shapeFlag&128?h.suspense.next():d(h.anchor||h.el);let V=!1;const B=(h,g,w)=>{h==null?g._vnode&&_e(g._vnode,null,null,!0):C(g._vnode||null,h,g,null,null,null,w),V||(V=!0,Ws(),yc(),V=!1),g._vnode=h},q={p:C,um:_e,m:Se,r:Ze,mt:oe,mc:x,pc:ne,pbc:F,n:T,o:e};let pe,ve;return t&&([pe,ve]=t(q)),{render:B,hydrate:pe,createApp:nh(B,pe)}}function Jo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Zt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function fh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fs(e,t,n=!1){const r=e.children,o=t.children;if(se(r)&&se(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}function Fc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fc(t)}const hh=e=>e.__isTeleport,ar=e=>e&&(e.disabled||e.disabled===""),el=e=>typeof SVGElement<"u"&&e instanceof SVGElement,tl=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Si=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},ph={name:"Teleport",__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:C,createComment:y}}=c,m=ar(t.props);let{shapeFlag:S,children:k,dynamicChildren:R}=t;if(e==null){const $=t.el=C(""),_=t.anchor=C("");v($,n,r),v(_,n,r);const b=t.target=Si(t.props,p),x=t.targetAnchor=C("");b&&(v(x,b),s==="svg"||el(b)?s="svg":(s==="mathml"||tl(b))&&(s="mathml"));const P=(F,W)=>{S&16&&u(k,F,W,o,i,s,l,a)};m?P(n,_):b&&P(b,x)}else{t.el=e.el;const $=t.anchor=e.anchor,_=t.target=e.target,b=t.targetAnchor=e.targetAnchor,x=ar(e.props),P=x?n:_,F=x?$:b;if(s==="svg"||el(_)?s="svg":(s==="mathml"||tl(_))&&(s="mathml"),R?(d(e.dynamicChildren,R,P,o,i,s,l),fs(e,t,!0)):a||f(e,t,P,F,o,i,s,l,!1),m)x?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ur(t,n,$,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=Si(t.props,p);W&&Ur(t,W,null,c,0)}else x&&Ur(t,_,b,c,1)}Dc(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&&i(c),l&16){const v=s||!ar(d);for(let p=0;p0?ft||Pn:null,vh(),wr>0&&ft&&ft.push(e),e}function t1(e,t,n,r,o,i){return Nc(Vc(e,t,n,r,o,i,!0))}function hs(e,t,n,r,o){return Nc(je(e,t,n,r,o,!0))}function Sr(e){return e?e.__v_isVNode===!0:!1}function nn(e,t){return e.type===t.type&&e.key===t.key}const Io="__vInternal",Wc=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||ke(e)||ue(e)?{i:Fe,r:e,k:t,f:!!n}:e:null);function Vc(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&&Wc(t),ref:t&&io(t),scopeId:Po,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:Fe};return l?(ps(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Be(n)?8:16),wr>0&&!s&&ft&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&ft.push(a),a}const je=mh;function mh(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Bd)&&(e=Ye),Sr(e)){const l=Tt(e,t,!0);return n&&ps(l,n),wr>0&&!i&&ft&&(l.shapeFlag&6?ft[ft.indexOf(e)]=l:ft.push(l)),l.patchFlag|=-2,l}if(Eh(e)&&(e=e.__vccOpts),t){t=bh(t);let{class:l,style:a}=t;l&&!Be(l)&&(t.class=Xi(l)),Ee(a)&&(fc(a)&&!se(a)&&(a=Le({},a)),t.style=qi(a))}const s=Be(e)?1:kd(e)?128:hh(e)?64:Ee(e)?4:ue(e)?2:0;return Vc(e,t,n,r,o,s,i,!0)}function bh(e){return e?fc(e)||Io in e?Le({},e):e:null}function Tt(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:s}=e,l=t?gs(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Wc(l),ref:t&&t.ref?n&&o?se(o)?o.concat(io(t)):[o,io(t)]:io(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&&Tt(e.ssContent),ssFallback:e.ssFallback&&Tt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function _r(e=" ",t=0){return je(Ao,null,e,t)}function n1(e="",t=!1){return t?(ds(),hs(Ye,null,e)):je(Ye,null,e)}function bt(e){return e==null||typeof e=="boolean"?je(Ye):se(e)?je(Me,null,e.slice()):typeof e=="object"?Dt(e):je(Ao,null,String(e))}function Dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tt(e)}function ps(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(se(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),ps(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Io in t)?t._ctx=Fe:o===3&&Fe&&(Fe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ue(t)?(t={default:t,_ctx:Fe},n=32):(t=String(t),r&64?(n=16,t=[_r(t)]):n=8);e.children=t,e.shapeFlag|=n}function gs(...e){const t={};for(let n=0;nDe||Fe;let po,_i;{const e=Ka(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(s=>s(i)):o[0](i)}};po=t("__VUE_INSTANCE_SETTERS__",n=>De=n),_i=t("__VUE_SSR_SETTERS__",n=>Bo=n)}const Ir=e=>{const t=De;return po(e),e.scope.on(),()=>{e.scope.off(),po(t)}},rl=()=>{De&&De.scope.off(),po(null)};function Uc(e){return e.vnode.shapeFlag&4}let Bo=!1;function wh(e,t=!1){t&&_i(t);const{props:n,children:r}=e.vnode,o=Uc(e);oh(e,n,o,t),lh(e,r);const i=o?Sh(e,t):void 0;return t&&_i(!1),i}function Sh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Bn(new Proxy(e.ctx,Xd));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?$h(e):null,i=Ir(e);vn();const s=Ut(r,e,0,[e.props,o]);if(mn(),i(),Na(s)){if(s.then(rl,rl),t)return s.then(l=>{ol(e,l,t)}).catch(l=>{Eo(l,e,0)});e.asyncDep=s}else ol(e,s,t)}else Kc(e,t)}function ol(e,t,n){ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ee(t)&&(e.setupState=gc(t)),Kc(e,n)}let il;function Kc(e,t,n){const r=e.type;if(!e.render){if(!t&&il&&!r.render){const o=r.template||cs(e).template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,c=Le(Le({isCustomElement:i,delimiters:l},s),a);r.render=il(o,c)}}e.render=r.render||ot}{const o=Ir(e);vn();try{Yd(e)}finally{mn(),o()}}}function _h(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return nt(e,"get","$attrs"),t[n]}}))}function $h(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return _h(e)},slots:e.slots,emit:e.emit,expose:t}}function ko(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gc(Bn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in lr)return lr[n](e)},has(t,n){return n in t||n in lr}}))}function Eh(e){return ue(e)&&"__vccOpts"in e}const Y=(e,t)=>bd(e,t,Bo);function E(e,t,n){const r=arguments.length;return r===2?Ee(t)&&!se(t)?Sr(t)?je(e,null,[t]):je(e,t):je(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Sr(n)&&(n=[n]),je(e,t,n))}const Rh="3.4.15";/** -* @vue/runtime-dom v3.4.15 +**/function Ut(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Ro(i,t,n)}return o}function ct(e,t,n,r){if(ue(e)){const i=Ut(e,t,n,r);return i&&Na(i)&&i.catch(s=>{Ro(s,t,n)}),i}const o=[];for(let i=0;i>>1,o=Ve[r],i=yr(o);iyt&&Ve.splice(t,1)}function Ed(e){se(e)?On.push(...e):(!Ft||!Ft.includes(e,e.allowRecurse?tn+1:tn))&&On.push(e),mc()}function Ws(e,t,n=br?yt+1:0){for(;nyr(n)-yr(r));if(On.length=0,Ft){Ft.push(...t);return}for(Ft=t,tn=0;tne.id==null?1/0:e.id,Rd=(e,t)=>{const n=yr(e)-yr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function yc(e){mi=!1,br=!0,Ve.sort(Rd);const t=ot;try{for(yt=0;ytBe(v)?v.trim():v)),f&&(o=n.map(Df))}let l,a=r[l=Go(t)]||r[l=Go(zn(t))];!a&&i&&(a=r[l=Go(gn(t))]),a&&ct(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,ct(c,e,6,o)}}function xc(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=xc(c,t,!0);u&&(l=!0,Le(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(Ee(e)&&r.set(e,null),null):(se(i)?i.forEach(a=>s[a]=null):Le(s,i),Ee(e)&&r.set(e,s),s)}function Po(e,t){return!e||!So(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,gn(t))||me(e,t))}let Fe=null,To=null;function ho(e){const t=Fe;return Fe=e,To=e&&e.type.__scopeId||null,t}function Zx(e){To=e}function Jx(){To=null}function io(e,t=Fe,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&nl(-1);const i=ho(t);let s;try{s=e(...o)}finally{ho(i),r._d&&nl(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Yo(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:C}=e;let y,m;const S=ho(e);try{if(n.shapeFlag&4){const R=o||r,$=R;y=bt(u.call($,R,f,i,v,d,p)),m=a}else{const R=t;y=bt(R.length>1?R(i,{attrs:a,slots:l,emit:c}):R(i,null)),m=t.props?a:Td(a)}}catch(R){ur.length=0,Ro(R,e,1),y=je(Ye)}let k=y;if(m&&C!==!1){const R=Object.keys(m),{shapeFlag:$}=k;R.length&&$&7&&(s&&R.some(Ki)&&(m=Od(m,s)),k=Tt(k,m))}return n.dirs&&(k=Tt(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),y=k,ho(S),y}const Td=e=>{let t;for(const n in e)(n==="class"||n==="style"||So(n))&&((t||(t={}))[n]=e[n]);return t},Od=(e,t)=>{const n={};for(const r in e)(!Ki(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ad(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?Vs(r,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function kd(e,t){t&&t.pendingBranch?se(e)?t.effects.push(...e):t.effects.push(e):Ed(e)}const Md=Symbol.for("v-scx"),Ld=()=>Ae(Md);function ls(e,t){return as(e,null,t)}const Vr={};function dt(e,t,n){return as(e,t,n)}function as(e,t,{immediate:n,deep:r,flush:o,once:i,onTrack:s,onTrigger:l}=Oe){if(t&&i){const _=t;t=(...b)=>{_(...b),$()}}const a=De,c=_=>r===!0?_:rn(_,r===!1?1:void 0);let u,f=!1,d=!1;if(ke(e)?(u=()=>e.value,f=fo(e)):Et(e)?(u=()=>c(e),f=!0):se(e)?(d=!0,f=e.some(_=>Et(_)||fo(_)),u=()=>e.map(_=>{if(ke(_))return _.value;if(Et(_))return c(_);if(ue(_))return Ut(_,a,2)})):ue(e)?t?u=()=>Ut(e,a,2):u=()=>(v&&v(),ct(e,a,3,[p])):u=ot,t&&r){const _=u;u=()=>rn(_())}let v,p=_=>{v=k.onStop=()=>{Ut(_,a,4),v=k.onStop=void 0}},C;if(ko)if(p=ot,t?n&&ct(t,a,3,[u(),d?[]:void 0,p]):u(),o==="sync"){const _=Ld();C=_.__watcherHandles||(_.__watcherHandles=[])}else return ot;let y=d?new Array(e.length).fill(Vr):Vr;const m=()=>{if(!(!k.active||!k.dirty))if(t){const _=k.run();(r||f||(d?_.some((b,x)=>Kt(b,y[x])):Kt(_,y)))&&(v&&v(),ct(t,a,3,[_,y===Vr?void 0:d&&y[0]===Vr?[]:y,p]),y=_)}else k.run()};m.allowRecurse=!!t;let S;o==="sync"?S=m:o==="post"?S=()=>tt(m,a&&a.suspense):(m.pre=!0,a&&(m.id=a.uid),S=()=>ss(m));const k=new Zi(u,ot,S),R=Za(),$=()=>{k.stop(),R&&Gi(R.effects,k)};return t?n?m():y=k.run():o==="post"?tt(k.run.bind(k),a&&a.suspense):k.run(),C&&C.push($),$}function Hd(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=zr(this),l=as(o,i.bind(r),n);return s(),l}function Cc(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),ke(e))rn(e.value,t,n,r);else if(se(e))for(let o=0;o{rn(o,t,n,r)});else if(Va(e))for(const o in e)rn(e[o],t,n,r);return e}function bi(e,t){if(Fe===null)return e;const n=Mo(Fe)||Fe.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),pt(()=>{e.isUnmounting=!0}),e}const lt=[Function,Array],Sc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:lt,onEnter:lt,onAfterEnter:lt,onEnterCancelled:lt,onBeforeLeave:lt,onLeave:lt,onAfterLeave:lt,onLeaveCancelled:lt,onBeforeAppear:lt,onAppear:lt,onAfterAppear:lt,onAppearCancelled:lt},Fd={name:"BaseTransition",props:Sc,setup(e,{slots:t}){const n=Bo(),r=wc();let o;return()=>{const i=t.default&&cs(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const C of i)if(C.type!==Ye){s=C;break}}const l=ge(e),{mode:a}=l;if(r.isLeaving)return Zo(s);const c=Us(s);if(!c)return Zo(s);const u=xr(c,l,r,n);Cr(c,u);const f=n.subTree,d=f&&Us(f);let v=!1;const{getTransitionKey:p}=c.type;if(p){const C=p();o===void 0?o=C:C!==o&&(o=C,v=!0)}if(d&&d.type!==Ye&&(!nn(c,d)||v)){const C=xr(d,l,r,n);if(Cr(d,C),a==="out-in")return r.isLeaving=!0,C.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Zo(s);a==="in-out"&&c.type!==Ye&&(C.delayLeave=(y,m,S)=>{const k=_c(r,d);k[String(d.key)]=d,y[jt]=()=>{m(),y[jt]=void 0,delete u.delayedLeave},u.delayedLeave=S})}return s}}},jd=Fd;function _c(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 xr(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:C,onAppear:y,onAfterAppear:m,onAppearCancelled:S}=t,k=String(e.key),R=_c(n,e),$=(x,P)=>{x&&ct(x,r,9,P)},_=(x,P)=>{const F=P[1];$(x,P),se(x)?x.every(W=>W.length<=1)&&F():x.length<=1&&F()},b={mode:i,persisted:s,beforeEnter(x){let P=l;if(!n.isMounted)if(o)P=C||l;else return;x[jt]&&x[jt](!0);const F=R[k];F&&nn(e,F)&&F.el[jt]&&F.el[jt](),$(P,[x])},enter(x){let P=a,F=c,W=u;if(!n.isMounted)if(o)P=y||a,F=m||c,W=S||u;else return;let z=!1;const Z=x[Ur]=oe=>{z||(z=!0,oe?$(W,[x]):$(F,[x]),b.delayedLeave&&b.delayedLeave(),x[Ur]=void 0)};P?_(P,[x,Z]):Z()},leave(x,P){const F=String(e.key);if(x[Ur]&&x[Ur](!0),n.isUnmounting)return P();$(f,[x]);let W=!1;const z=x[jt]=Z=>{W||(W=!0,P(),Z?$(p,[x]):$(v,[x]),x[jt]=void 0,R[F]===e&&delete R[F])};R[F]=e,d?_(d,[x,z]):z()},clone(x){return xr(x,t,n,r)}};return b}function Zo(e){if(Oo(e))return e=Tt(e),e.children=null,e}function Us(e){return Oo(e)?e.children?e.children[0]:void 0:e}function Cr(e,t){e.shapeFlag&6&&e.component?Cr(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 cs(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;iLe({name:e.name},t,{setup:e}))():e}const lr=e=>!!e.type.__asyncLoader,Oo=e=>e.type.__isKeepAlive;function $c(e,t){Rc(e,"a",t)}function Ec(e,t){Rc(e,"da",t)}function Rc(e,t,n=De){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ao(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Oo(o.parent.vnode)&&Dd(r,t,n,o),o=o.parent}}function Dd(e,t,n,r){const o=Ao(t,e,r,!0);Tc(()=>{Gi(r[t],o)},n)}function Ao(e,t,n=De,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;vn();const l=zr(n),a=ct(t,n,e,s);return l(),mn(),a});return r?o.unshift(i):o.push(i),i}}const Ot=e=>(t,n=De)=>(!ko||e==="sp")&&Ao(e,(...r)=>t(...r),n),yn=Ot("bm"),Xt=Ot("m"),Nd=Ot("bu"),Pc=Ot("u"),pt=Ot("bum"),Tc=Ot("um"),Wd=Ot("sp"),Vd=Ot("rtg"),Ud=Ot("rtc");function Kd(e,t=De){Ao("ec",e,t)}function Qx(e,t,n,r){let o;const i=n&&n[r];if(se(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;lSr(t)?!(t.type===Ye||t.type===Me&&!Oc(t.children)):!0)?e:null}const yi=e=>e?Vc(e)?Mo(e)||e.proxy:yi(e.parent):null,ar=Le(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=>yi(e.parent),$root:e=>yi(e.root),$emit:e=>e.emit,$options:e=>us(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ss(e.update)}),$nextTick:e=>e.n||(e.n=Mn.bind(e.proxy)),$watch:e=>Hd.bind(e)}),Jo=(e,t)=>e!==Oe&&!e.__isScriptSetup&&me(e,t),qd={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(Jo(r,t))return s[t]=1,r[t];if(o!==Oe&&me(o,t))return s[t]=2,o[t];if((c=e.propsOptions[0])&&me(c,t))return s[t]=3,i[t];if(n!==Oe&&me(n,t))return s[t]=4,n[t];xi&&(s[t]=0)}}const u=ar[t];let f,d;if(u)return t==="$attrs"&&nt(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==Oe&&me(n,t))return s[t]=4,n[t];if(d=a.config.globalProperties,me(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Jo(o,t)?(o[t]=n,!0):r!==Oe&&me(r,t)?(r[t]=n,!0):me(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!==Oe&&me(e,s)||Jo(t,s)||(l=i[0])&&me(l,s)||me(r,s)||me(ar,s)||me(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ks(e){return se(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xi=!0;function Xd(e){const t=us(e),n=e.proxy,r=e.ctx;xi=!1,t.beforeCreate&&Gs(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:C,deactivated:y,beforeDestroy:m,beforeUnmount:S,destroyed:k,unmounted:R,render:$,renderTracked:_,renderTriggered:b,errorCaptured:x,serverPrefetch:P,expose:F,inheritAttrs:W,components:z,directives:Z,filters:oe}=t;if(c&&Yd(c,r,null),s)for(const U in s){const ne=s[U];ue(ne)&&(r[U]=ne.bind(n))}if(o){const U=o.call(n,n);Ee(U)&&(e.data=bn(U))}if(xi=!0,i)for(const U in i){const ne=i[U],Ce=ue(ne)?ne.bind(n,n):ue(ne.get)?ne.get.bind(n,n):ot,we=!ue(ne)&&ue(ne.set)?ne.set.bind(n):ot,Se=Y({get:Ce,set:we});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>Se.value,set:_e=>Se.value=_e})}if(l)for(const U in l)Ac(l[U],r,n,U);if(a){const U=ue(a)?a.call(n):a;Reflect.ownKeys(U).forEach(ne=>{Xe(ne,U[ne])})}u&&Gs(u,e,"c");function X(U,ne){se(ne)?ne.forEach(Ce=>U(Ce.bind(n))):ne&&U(ne.bind(n))}if(X(yn,f),X(Xt,d),X(Nd,v),X(Pc,p),X($c,C),X(Ec,y),X(Kd,x),X(Ud,_),X(Vd,b),X(pt,S),X(Tc,R),X(Wd,P),se(F))if(F.length){const U=e.exposed||(e.exposed={});F.forEach(ne=>{Object.defineProperty(U,ne,{get:()=>n[ne],set:Ce=>n[ne]=Ce})})}else e.exposed||(e.exposed={});$&&e.render===ot&&(e.render=$),W!=null&&(e.inheritAttrs=W),z&&(e.components=z),Z&&(e.directives=Z)}function Yd(e,t,n=ot){se(e)&&(e=Ci(e));for(const r in e){const o=e[r];let i;Ee(o)?"default"in o?i=Ae(o.from||r,o.default,!0):i=Ae(o.from||r):i=Ae(o),ke(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[r]=i}}function Gs(e,t,n){ct(se(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ac(e,t,n,r){const o=r.includes(".")?Cc(n,r):()=>n[r];if(Be(e)){const i=t[e];ue(i)&&dt(o,i)}else if(ue(e))dt(o,e.bind(n));else if(Ee(e))if(se(e))e.forEach(i=>Ac(i,t,n,r));else{const i=ue(e.handler)?e.handler.bind(n):t[e.handler];ue(i)&&dt(o,i,e)}}function us(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=>po(a,c,s,!0)),po(a,t,s)),Ee(t)&&i.set(t,a),a}function po(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&po(e,i,n,!0),o&&o.forEach(s=>po(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=Zd[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Zd={data:qs,props:Xs,emits:Xs,methods:or,computed:or,beforeCreate:Ge,created:Ge,beforeMount:Ge,mounted:Ge,beforeUpdate:Ge,updated:Ge,beforeDestroy:Ge,beforeUnmount:Ge,destroyed:Ge,unmounted:Ge,activated:Ge,deactivated:Ge,errorCaptured:Ge,serverPrefetch:Ge,components:or,directives:or,watch:Qd,provide:qs,inject:Jd};function qs(e,t){return t?e?function(){return Le(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function Jd(e,t){return or(Ci(e),Ci(t))}function Ci(e){if(se(e)){const t={};for(let n=0;n1)return n&&ue(t)?t.call(r&&r.proxy):t}}function nh(){return!!(De||Fe||An)}function rh(e,t,n,r=!1){const o={},i={};co(i,zo,1),e.propsDefaults=Object.create(null),zc(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:cc(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function oh(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]=Bc(f,t,!0);Le(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 Ee(e)&&r.set(e,Pn),Pn;if(se(i))for(let u=0;u-1,v[1]=C<0||p-1||me(v,"default"))&&l.push(f)}}}const c=[s,l];return Ee(e)&&r.set(e,c),c}function Ys(e){return e[0]!=="$"}function Zs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Js(e,t){return Zs(e)===Zs(t)}function Qs(e,t){return se(t)?t.findIndex(n=>Js(n,e)):ue(t)&&Js(t,e)?0:-1}const kc=e=>e[0]==="_"||e==="$stable",fs=e=>se(e)?e.map(bt):[bt(e)],ih=(e,t,n)=>{if(t._n)return t;const r=io((...o)=>fs(t(...o)),n);return r._c=!1,r},Mc=(e,t,n)=>{const r=e._ctx;for(const o in e){if(kc(o))continue;const i=e[o];if(ue(i))t[o]=ih(o,i,r);else if(i!=null){const s=fs(i);t[o]=()=>s}}},Lc=(e,t)=>{const n=fs(t);e.slots.default=()=>n},sh=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ge(t),co(t,"_",n)):Mc(t,e.slots={})}else e.slots={},t&&Lc(e,t);co(e.slots,zo,1)},lh=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=Oe;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Le(o,t),!n&&l===1&&delete o._):(i=!t.$stable,Mc(t,o)),s=t}else t&&(Lc(e,t),s={default:1});if(i)for(const l in o)!kc(l)&&s[l]==null&&delete o[l]};function Si(e,t,n,r,o=!1){if(se(e)){e.forEach((d,v)=>Si(d,t&&(se(t)?t[v]:t),n,r,o));return}if(lr(r)&&!o)return;const i=r.shapeFlag&4?Mo(r.component)||r.component.proxy:r.el,s=o?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===Oe?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(Be(c)?(u[c]=null,me(f,c)&&(f[c]=null)):ke(c)&&(c.value=null)),ue(a))Ut(a,l,12,[s,u]);else{const d=Be(a),v=ke(a);if(d||v){const p=()=>{if(e.f){const C=d?me(f,a)?f[a]:u[a]:a.value;o?se(C)&&Gi(C,i):se(C)?C.includes(i)||C.push(i):d?(u[a]=[i],me(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else d?(u[a]=s,me(f,a)&&(f[a]=s)):v&&(a.value=s,e.k&&(u[e.k]=s))};s?(p.id=-1,tt(p,n)):p()}}}const tt=kd;function ah(e){return ch(e)}function ch(e,t){const n=Ka();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=ot,insertStaticContent:p}=e,C=(h,g,w,A=null,O=null,j=null,N=void 0,I=null,H=!!g.dynamicChildren)=>{if(h===g)return;h&&!nn(h,g)&&(A=T(h),_e(h,O,j,!0),h=null),g.patchFlag===-2&&(H=!1,g.dynamicChildren=null);const{type:M,ref:K,shapeFlag:J}=g;switch(M){case Io:y(h,g,w,A);break;case Ye:m(h,g,w,A);break;case ei:h==null&&S(g,w,A,N);break;case Me:z(h,g,w,A,O,j,N,I,H);break;default:J&1?$(h,g,w,A,O,j,N,I,H):J&6?Z(h,g,w,A,O,j,N,I,H):(J&64||J&128)&&M.process(h,g,w,A,O,j,N,I,H,q)}K!=null&&O&&Si(K,h&&h.ref,j,g||h,!g)},y=(h,g,w,A)=>{if(h==null)r(g.el=l(g.children),w,A);else{const O=g.el=h.el;g.children!==h.children&&c(O,g.children)}},m=(h,g,w,A)=>{h==null?r(g.el=a(g.children||""),w,A):g.el=h.el},S=(h,g,w,A)=>{[h.el,h.anchor]=p(h.children,g,w,A,h.el,h.anchor)},k=({el:h,anchor:g},w,A)=>{let O;for(;h&&h!==g;)O=d(h),r(h,w,A),h=O;r(g,w,A)},R=({el:h,anchor:g})=>{let w;for(;h&&h!==g;)w=d(h),o(h),h=w;o(g)},$=(h,g,w,A,O,j,N,I,H)=>{g.type==="svg"?N="svg":g.type==="math"&&(N="mathml"),h==null?_(g,w,A,O,j,N,I,H):P(h,g,O,j,N,I,H)},_=(h,g,w,A,O,j,N,I)=>{let H,M;const{props:K,shapeFlag:J,transition:Q,dirs:ae}=h;if(H=h.el=s(h.type,j,K&&K.is,K),J&8?u(H,h.children):J&16&&x(h.children,H,null,A,O,Qo(h,j),N,I),ae&&Yt(h,null,A,"created"),b(H,h,h.scopeId,N,A),K){for(const be in K)be!=="value"&&!ro(be)&&i(H,be,null,K[be],j,h.children,A,O,fe);"value"in K&&i(H,"value",null,K.value,j),(M=K.onVnodeBeforeMount)&>(M,A,h)}ae&&Yt(h,null,A,"beforeMount");const he=uh(O,Q);he&&Q.beforeEnter(H),r(H,g,w),((M=K&&K.onVnodeMounted)||he||ae)&&tt(()=>{M&>(M,A,h),he&&Q.enter(H),ae&&Yt(h,null,A,"mounted")},O)},b=(h,g,w,A,O)=>{if(w&&v(h,w),A)for(let j=0;j{for(let M=H;M{const I=g.el=h.el;let{patchFlag:H,dynamicChildren:M,dirs:K}=g;H|=h.patchFlag&16;const J=h.props||Oe,Q=g.props||Oe;let ae;if(w&&Zt(w,!1),(ae=Q.onVnodeBeforeUpdate)&>(ae,w,g,h),K&&Yt(g,h,w,"beforeUpdate"),w&&Zt(w,!0),M?F(h.dynamicChildren,M,I,w,A,Qo(g,O),j):N||ne(h,g,I,null,w,A,Qo(g,O),j,!1),H>0){if(H&16)W(I,g,J,Q,w,A,O);else if(H&2&&J.class!==Q.class&&i(I,"class",null,Q.class,O),H&4&&i(I,"style",J.style,Q.style,O),H&8){const he=g.dynamicProps;for(let be=0;be{ae&>(ae,w,g,h),K&&Yt(g,h,w,"updated")},A)},F=(h,g,w,A,O,j,N)=>{for(let I=0;I{if(w!==A){if(w!==Oe)for(const I in w)!ro(I)&&!(I in A)&&i(h,I,w[I],null,N,g.children,O,j,fe);for(const I in A){if(ro(I))continue;const H=A[I],M=w[I];H!==M&&I!=="value"&&i(h,I,M,H,N,g.children,O,j,fe)}"value"in A&&i(h,"value",w.value,A.value,N)}},z=(h,g,w,A,O,j,N,I,H)=>{const M=g.el=h?h.el:l(""),K=g.anchor=h?h.anchor:l("");let{patchFlag:J,dynamicChildren:Q,slotScopeIds:ae}=g;ae&&(I=I?I.concat(ae):ae),h==null?(r(M,w,A),r(K,w,A),x(g.children||[],w,K,O,j,N,I,H)):J>0&&J&64&&Q&&h.dynamicChildren?(F(h.dynamicChildren,Q,w,O,j,N,I),(g.key!=null||O&&g===O.subTree)&&ds(h,g,!0)):ne(h,g,w,K,O,j,N,I,H)},Z=(h,g,w,A,O,j,N,I,H)=>{g.slotScopeIds=I,h==null?g.shapeFlag&512?O.ctx.activate(g,w,A,N,H):oe(g,w,A,O,j,N,H):ce(h,g,H)},oe=(h,g,w,A,O,j,N)=>{const I=h.component=xh(h,A,O);if(Oo(h)&&(I.ctx.renderer=q),Ch(I),I.asyncDep){if(O&&O.registerDep(I,X),!h.el){const H=I.subTree=je(Ye);m(null,H,g,w)}}else X(I,h,g,w,O,j,N)},ce=(h,g,w)=>{const A=g.component=h.component;if(Ad(h,g,w))if(A.asyncDep&&!A.asyncResolved){U(A,g,w);return}else A.next=g,$d(A.update),A.effect.dirty=!0,A.update();else g.el=h.el,A.vnode=g},X=(h,g,w,A,O,j,N)=>{const I=()=>{if(h.isMounted){let{next:K,bu:J,u:Q,parent:ae,vnode:he}=h;{const It=Hc(h);if(It){K&&(K.el=he.el,U(h,K,N)),It.asyncDep.then(()=>{h.isUnmounted||I()});return}}let be=K,$e;Zt(h,!1),K?(K.el=he.el,U(h,K,N)):K=he,J&&qo(J),($e=K.props&&K.props.onVnodeBeforeUpdate)&>($e,ae,K,he),Zt(h,!0);const Ie=Yo(h),Ke=h.subTree;h.subTree=Ie,C(Ke,Ie,f(Ke.el),T(Ke),h,O,j),K.el=Ie.el,be===null&&Id(h,Ie.el),Q&&tt(Q,O),($e=K.props&&K.props.onVnodeUpdated)&&tt(()=>gt($e,ae,K,he),O)}else{let K;const{el:J,props:Q}=g,{bm:ae,m:he,parent:be}=h,$e=lr(g);if(Zt(h,!1),ae&&qo(ae),!$e&&(K=Q&&Q.onVnodeBeforeMount)&>(K,be,g),Zt(h,!0),J&&ve){const Ie=()=>{h.subTree=Yo(h),ve(J,h.subTree,h,O,null)};$e?g.type.__asyncLoader().then(()=>!h.isUnmounted&&Ie()):Ie()}else{const Ie=h.subTree=Yo(h);C(null,Ie,w,A,h,O,j),g.el=Ie.el}if(he&&tt(he,O),!$e&&(K=Q&&Q.onVnodeMounted)){const Ie=g;tt(()=>gt(K,be,Ie),O)}(g.shapeFlag&256||be&&lr(be.vnode)&&be.vnode.shapeFlag&256)&&h.a&&tt(h.a,O),h.isMounted=!0,g=w=A=null}},H=h.effect=new Zi(I,ot,()=>ss(M),h.scope),M=h.update=()=>{H.dirty&&H.run()};M.id=h.uid,Zt(h,!0),M()},U=(h,g,w)=>{g.component=h;const A=h.vnode.props;h.vnode=g,h.next=null,oh(h,g.props,A,w),lh(h,g.children,w),vn(),Ws(h),mn()},ne=(h,g,w,A,O,j,N,I,H=!1)=>{const M=h&&h.children,K=h?h.shapeFlag:0,J=g.children,{patchFlag:Q,shapeFlag:ae}=g;if(Q>0){if(Q&128){we(M,J,w,A,O,j,N,I,H);return}else if(Q&256){Ce(M,J,w,A,O,j,N,I,H);return}}ae&8?(K&16&&fe(M,O,j),J!==M&&u(w,J)):K&16?ae&16?we(M,J,w,A,O,j,N,I,H):fe(M,O,j,!0):(K&8&&u(w,""),ae&16&&x(J,w,A,O,j,N,I,H))},Ce=(h,g,w,A,O,j,N,I,H)=>{h=h||Pn,g=g||Pn;const M=h.length,K=g.length,J=Math.min(M,K);let Q;for(Q=0;QK?fe(h,O,j,!0,!1,J):x(g,w,A,O,j,N,I,H,J)},we=(h,g,w,A,O,j,N,I,H)=>{let M=0;const K=g.length;let J=h.length-1,Q=K-1;for(;M<=J&&M<=Q;){const ae=h[M],he=g[M]=H?Dt(g[M]):bt(g[M]);if(nn(ae,he))C(ae,he,w,null,O,j,N,I,H);else break;M++}for(;M<=J&&M<=Q;){const ae=h[J],he=g[Q]=H?Dt(g[Q]):bt(g[Q]);if(nn(ae,he))C(ae,he,w,null,O,j,N,I,H);else break;J--,Q--}if(M>J){if(M<=Q){const ae=Q+1,he=aeQ)for(;M<=J;)_e(h[M],O,j,!0),M++;else{const ae=M,he=M,be=new Map;for(M=he;M<=Q;M++){const L=g[M]=H?Dt(g[M]):bt(g[M]);L.key!=null&&be.set(L.key,M)}let $e,Ie=0;const Ke=Q-he+1;let It=!1,Yn=0;const st=new Array(Ke);for(M=0;M=Ke){_e(L,O,j,!0);continue}let G;if(L.key!=null)G=be.get(L.key);else for($e=he;$e<=Q;$e++)if(st[$e-he]===0&&nn(L,g[$e])){G=$e;break}G===void 0?_e(L,O,j,!0):(st[G-he]=M+1,G>=Yn?Yn=G:It=!0,C(L,g[G],w,null,O,j,N,I,H),Ie++)}const Ko=It?fh(st):Pn;for($e=Ko.length-1,M=Ke-1;M>=0;M--){const L=he+M,G=g[L],le=L+1{const{el:j,type:N,transition:I,children:H,shapeFlag:M}=h;if(M&6){Se(h.component.subTree,g,w,A);return}if(M&128){h.suspense.move(g,w,A);return}if(M&64){N.move(h,g,w,q);return}if(N===Me){r(j,g,w);for(let J=0;JI.enter(j),O);else{const{leave:J,delayLeave:Q,afterLeave:ae}=I,he=()=>r(j,g,w),be=()=>{J(j,()=>{he(),ae&&ae()})};Q?Q(j,he,be):be()}else r(j,g,w)},_e=(h,g,w,A=!1,O=!1)=>{const{type:j,props:N,ref:I,children:H,dynamicChildren:M,shapeFlag:K,patchFlag:J,dirs:Q}=h;if(I!=null&&Si(I,null,w,h,!0),K&256){g.ctx.deactivate(h);return}const ae=K&1&&Q,he=!lr(h);let be;if(he&&(be=N&&N.onVnodeBeforeUnmount)&>(be,g,h),K&6)Je(h.component,w,A);else{if(K&128){h.suspense.unmount(w,A);return}ae&&Yt(h,null,g,"beforeUnmount"),K&64?h.type.remove(h,g,w,O,q,A):M&&(j!==Me||J>0&&J&64)?fe(M,g,w,!1,!0):(j===Me&&J&384||!O&&K&16)&&fe(H,g,w),A&&Ze(h)}(he&&(be=N&&N.onVnodeUnmounted)||ae)&&tt(()=>{be&>(be,g,h),ae&&Yt(h,null,g,"unmounted")},w)},Ze=h=>{const{type:g,el:w,anchor:A,transition:O}=h;if(g===Me){Ue(w,A);return}if(g===ei){R(h);return}const j=()=>{o(w),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(h.shapeFlag&1&&O&&!O.persisted){const{leave:N,delayLeave:I}=O,H=()=>N(w,j);I?I(h.el,j,H):H()}else j()},Ue=(h,g)=>{let w;for(;h!==g;)w=d(h),o(h),h=w;o(g)},Je=(h,g,w)=>{const{bum:A,scope:O,update:j,subTree:N,um:I}=h;A&&qo(A),O.stop(),j&&(j.active=!1,_e(N,h,g,w)),I&&tt(I,g),tt(()=>{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,w,A=!1,O=!1,j=0)=>{for(let N=j;Nh.shapeFlag&6?T(h.component.subTree):h.shapeFlag&128?h.suspense.next():d(h.anchor||h.el);let V=!1;const B=(h,g,w)=>{h==null?g._vnode&&_e(g._vnode,null,null,!0):C(g._vnode||null,h,g,null,null,null,w),V||(V=!0,Ws(),bc(),V=!1),g._vnode=h},q={p:C,um:_e,m:Se,r:Ze,mt:oe,mc:x,pc:ne,pbc:F,n:T,o:e};let pe,ve;return t&&([pe,ve]=t(q)),{render:B,hydrate:pe,createApp:th(B,pe)}}function Qo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Zt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function uh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ds(e,t,n=!1){const r=e.children,o=t.children;if(se(r)&&se(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}function Hc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Hc(t)}const dh=e=>e.__isTeleport,cr=e=>e&&(e.disabled||e.disabled===""),el=e=>typeof SVGElement<"u"&&e instanceof SVGElement,tl=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,_i=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},hh={name:"Teleport",__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:C,createComment:y}}=c,m=cr(t.props);let{shapeFlag:S,children:k,dynamicChildren:R}=t;if(e==null){const $=t.el=C(""),_=t.anchor=C("");v($,n,r),v(_,n,r);const b=t.target=_i(t.props,p),x=t.targetAnchor=C("");b&&(v(x,b),s==="svg"||el(b)?s="svg":(s==="mathml"||tl(b))&&(s="mathml"));const P=(F,W)=>{S&16&&u(k,F,W,o,i,s,l,a)};m?P(n,_):b&&P(b,x)}else{t.el=e.el;const $=t.anchor=e.anchor,_=t.target=e.target,b=t.targetAnchor=e.targetAnchor,x=cr(e.props),P=x?n:_,F=x?$:b;if(s==="svg"||el(_)?s="svg":(s==="mathml"||tl(_))&&(s="mathml"),R?(d(e.dynamicChildren,R,P,o,i,s,l),ds(e,t,!0)):a||f(e,t,P,F,o,i,s,l,!1),m)x?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Kr(t,n,$,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=_i(t.props,p);W&&Kr(t,W,null,c,0)}else x&&Kr(t,_,b,c,1)}jc(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&&i(c),l&16){const v=s||!cr(d);for(let p=0;p0?ft||Pn:null,gh(),wr>0&&ft&&ft.push(e),e}function e1(e,t,n,r,o,i){return Dc(Wc(e,t,n,r,o,i,!0))}function ps(e,t,n,r,o){return Dc(je(e,t,n,r,o,!0))}function Sr(e){return e?e.__v_isVNode===!0:!1}function nn(e,t){return e.type===t.type&&e.key===t.key}const zo="__vInternal",Nc=({key:e})=>e??null,so=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||ke(e)||ue(e)?{i:Fe,r:e,k:t,f:!!n}:e:null);function Wc(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&&Nc(t),ref:t&&so(t),scopeId:To,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:Fe};return l?(gs(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Be(n)?8:16),wr>0&&!s&&ft&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&ft.push(a),a}const je=vh;function vh(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===zd)&&(e=Ye),Sr(e)){const l=Tt(e,t,!0);return n&&gs(l,n),wr>0&&!i&&ft&&(l.shapeFlag&6?ft[ft.indexOf(e)]=l:ft.push(l)),l.patchFlag|=-2,l}if($h(e)&&(e=e.__vccOpts),t){t=mh(t);let{class:l,style:a}=t;l&&!Be(l)&&(t.class=Yi(l)),Ee(a)&&(uc(a)&&!se(a)&&(a=Le({},a)),t.style=Xi(a))}const s=Be(e)?1:Bd(e)?128:dh(e)?64:Ee(e)?4:ue(e)?2:0;return Wc(e,t,n,r,o,s,i,!0)}function mh(e){return e?uc(e)||zo in e?Le({},e):e:null}function Tt(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:s}=e,l=t?vs(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Nc(l),ref:t&&t.ref?n&&o?se(o)?o.concat(so(t)):[o,so(t)]:so(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&&Tt(e.ssContent),ssFallback:e.ssFallback&&Tt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function _r(e=" ",t=0){return je(Io,null,e,t)}function t1(e="",t=!1){return t?(hs(),ps(Ye,null,e)):je(Ye,null,e)}function bt(e){return e==null||typeof e=="boolean"?je(Ye):se(e)?je(Me,null,e.slice()):typeof e=="object"?Dt(e):je(Io,null,String(e))}function Dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tt(e)}function gs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(se(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),gs(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(zo in t)?t._ctx=Fe:o===3&&Fe&&(Fe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ue(t)?(t={default:t,_ctx:Fe},n=32):(t=String(t),r&64?(n=16,t=[_r(t)]):n=8);e.children=t,e.shapeFlag|=n}function vs(...e){const t={};for(let n=0;nDe||Fe;let go,$i;{const e=Ka(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(s=>s(i)):o[0](i)}};go=t("__VUE_INSTANCE_SETTERS__",n=>De=n),$i=t("__VUE_SSR_SETTERS__",n=>ko=n)}const zr=e=>{const t=De;return go(e),e.scope.on(),()=>{e.scope.off(),go(t)}},rl=()=>{De&&De.scope.off(),go(null)};function Vc(e){return e.vnode.shapeFlag&4}let ko=!1;function Ch(e,t=!1){t&&$i(t);const{props:n,children:r}=e.vnode,o=Vc(e);rh(e,n,o,t),sh(e,r);const i=o?wh(e,t):void 0;return t&&$i(!1),i}function wh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=kn(new Proxy(e.ctx,qd));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?_h(e):null,i=zr(e);vn();const s=Ut(r,e,0,[e.props,o]);if(mn(),i(),Na(s)){if(s.then(rl,rl),t)return s.then(l=>{ol(e,l,t)}).catch(l=>{Ro(l,e,0)});e.asyncDep=s}else ol(e,s,t)}else Uc(e,t)}function ol(e,t,n){ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ee(t)&&(e.setupState=pc(t)),Uc(e,n)}let il;function Uc(e,t,n){const r=e.type;if(!e.render){if(!t&&il&&!r.render){const o=r.template||us(e).template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,c=Le(Le({isCustomElement:i,delimiters:l},s),a);r.render=il(o,c)}}e.render=r.render||ot}{const o=zr(e);vn();try{Xd(e)}finally{mn(),o()}}}function Sh(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return nt(e,"get","$attrs"),t[n]}}))}function _h(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Sh(e)},slots:e.slots,emit:e.emit,expose:t}}function Mo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(pc(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 $h(e){return ue(e)&&"__vccOpts"in e}const Y=(e,t)=>md(e,t,ko);function E(e,t,n){const r=arguments.length;return r===2?Ee(t)&&!se(t)?Sr(t)?je(e,null,[t]):je(e,t):je(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Sr(n)&&(n=[n]),je(e,t,n))}const Eh="3.4.16";/** +* @vue/runtime-dom v3.4.16 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const Ph="http://www.w3.org/2000/svg",Th="http://www.w3.org/1998/Math/MathML",Nt=typeof document<"u"?document:null,sl=Nt&&Nt.createElement("template"),Oh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Nt.createElementNS(Ph,e):t==="mathml"?Nt.createElementNS(Th,e):Nt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.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{sl.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const l=sl.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Bt="transition",Zn="animation",Mn=Symbol("_vtc"),Gt=(e,{slots:t})=>E(Dd,qc(e),t);Gt.displayName="Transition";const Gc={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},Ah=Gt.props=Le({},_c,Gc),Jt=(e,t=[])=>{se(e)?e.forEach(n=>n(...t)):e&&e(...t)},ll=e=>e?se(e)?e.some(t=>t.length>1):e.length>1:!1;function qc(e){const t={};for(const z in e)z in Gc||(t[z]=e[z]);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=Ih(o),C=p&&p[0],y=p&&p[1],{onBeforeEnter:m,onEnter:S,onEnterCancelled:k,onLeave:R,onLeaveCancelled:$,onBeforeAppear:_=m,onAppear:b=S,onAppearCancelled:x=k}=t,P=(z,Z,oe)=>{Lt(z,Z?u:l),Lt(z,Z?c:s),oe&&oe()},F=(z,Z)=>{z._isLeaving=!1,Lt(z,f),Lt(z,v),Lt(z,d),Z&&Z()},W=z=>(Z,oe)=>{const ce=z?b:S,X=()=>P(Z,z,oe);Jt(ce,[Z,X]),al(()=>{Lt(Z,z?a:i),_t(Z,z?u:l),ll(ce)||cl(Z,r,C,X)})};return Le(t,{onBeforeEnter(z){Jt(m,[z]),_t(z,i),_t(z,s)},onBeforeAppear(z){Jt(_,[z]),_t(z,a),_t(z,c)},onEnter:W(!1),onAppear:W(!0),onLeave(z,Z){z._isLeaving=!0;const oe=()=>F(z,Z);_t(z,f),Yc(),_t(z,d),al(()=>{z._isLeaving&&(Lt(z,f),_t(z,v),ll(R)||cl(z,r,y,oe))}),Jt(R,[z,oe])},onEnterCancelled(z){P(z,!1),Jt(k,[z])},onAppearCancelled(z){P(z,!0),Jt(x,[z])},onLeaveCancelled(z){F(z),Jt($,[z])}})}function Ih(e){if(e==null)return null;if(Ee(e))return[ei(e.enter),ei(e.leave)];{const t=ei(e);return[t,t]}}function ei(e){return Wf(e)}function _t(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Mn]||(e[Mn]=new Set)).add(t)}function Lt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Mn];n&&(n.delete(t),n.size||(e[Mn]=void 0))}function al(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let zh=0;function cl(e,t,n,r){const o=e._endId=++zh,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=Xc(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(`${Bt}Delay`),i=r(`${Bt}Duration`),s=ul(o,i),l=r(`${Zn}Delay`),a=r(`${Zn}Duration`),c=ul(l,a);let u=null,f=0,d=0;t===Bt?s>0&&(u=Bt,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?Bt:Zn:null,d=u?u===Bt?i.length:a.length:0);const v=u===Bt&&/\b(transform|all)(,|$)/.test(r(`${Bt}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:v}}function ul(e,t){for(;e.lengthfl(n)+fl(e[r])))}function fl(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Yc(){return document.body.offsetHeight}function Bh(e,t,n){const r=e[Mn];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const vs=Symbol("_vod"),dl={beforeMount(e,{value:t},{transition:n}){e[vs]=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[vs]:"none"}const kh=Symbol("");function Mh(e,t,n){const r=e.style,o=r.display,i=Be(n);if(n&&!i){if(t&&!Be(t))for(const s in t)n[s]==null&&$i(r,s,"");for(const s in n)$i(r,s,n[s])}else if(i){if(t!==n){const s=r[kh];s&&(n+=";"+s),r.cssText=n}}else t&&e.removeAttribute("style");vs in e&&(r.display=o)}const hl=/\s*!important$/;function $i(e,t,n){if(se(n))n.forEach(r=>$i(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Lh(e,t);hl.test(n)?e.setProperty(gn(r),n.replace(hl,""),"important"):e[r]=n}}const pl=["Webkit","Moz","ms"],ti={};function Lh(e,t){const n=ti[t];if(n)return n;let r=In(t);if(r!=="filter"&&r in e)return ti[t]=r;r=Ua(r);for(let o=0;oni||(Vh.then(()=>ni=0),ni=Date.now());function Kh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ct(Gh(r,n.value),t,5,[r])};return n.value=e,n.attached=Uh(),n}function Gh(e,t){if(se(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 bl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qh=(e,t,n,r,o,i,s,l,a)=>{const c=o==="svg";t==="class"?Bh(e,r,c):t==="style"?Mh(e,n,r):wo(t)?Ui(t)||Nh(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Xh(e,t,r,c))?Fh(e,t,r,i,s,l,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Hh(e,t,r,c))};function Xh(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&bl(t)&&ue(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return bl(t)&&Be(n)?!1:t in e}const Zc=new WeakMap,Jc=new WeakMap,go=Symbol("_moveCb"),yl=Symbol("_enterCb"),Qc={name:"TransitionGroup",props:Le({},Ah,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=zo(),r=Sc();let o,i;return Tc(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!tp(o[0].el,n.vnode.el,s))return;o.forEach(Jh),o.forEach(Qh);const l=o.filter(ep);Yc(),l.forEach(a=>{const c=a.el,u=c.style;_t(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[go]=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c[go]=null,Lt(c,s))};c.addEventListener("transitionend",f)})}),()=>{const s=ge(e),l=qc(s);let a=s.tag||Me;o=i,i=t.default?as(t.default()):[];for(let c=0;cdelete e.mode;Qc.props;const Zh=Qc;function Jh(e){const t=e.el;t[go]&&t[go](),t[yl]&&t[yl]()}function Qh(e){Jc.set(e,e.el.getBoundingClientRect())}function ep(e){const t=Zc.get(e),n=Jc.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 tp(e,t,n){const r=e.cloneNode(),o=e[Mn];o&&o.forEach(l=>{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:s}=Xc(r);return i.removeChild(r),s}const np={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},r1=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const i=gn(o.key);if(t.some(s=>s===i||np[s]===i))return e(o)})},rp=Le({patchProp:qh},Oh);let xl;function op(){return xl||(xl=ch(rp))}const ip=(...e)=>{const t=op().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=lp(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,sp(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function sp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lp(e){return Be(e)?document.querySelector(e):e}var ap=!1;/*! +**/const Rh="http://www.w3.org/2000/svg",Ph="http://www.w3.org/1998/Math/MathML",Nt=typeof document<"u"?document:null,sl=Nt&&Nt.createElement("template"),Th={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Nt.createElementNS(Rh,e):t==="mathml"?Nt.createElementNS(Ph,e):Nt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.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{sl.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const l=sl.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Bt="transition",Jn="animation",Ln=Symbol("_vtc"),Gt=(e,{slots:t})=>E(jd,Gc(e),t);Gt.displayName="Transition";const Kc={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},Oh=Gt.props=Le({},Sc,Kc),Jt=(e,t=[])=>{se(e)?e.forEach(n=>n(...t)):e&&e(...t)},ll=e=>e?se(e)?e.some(t=>t.length>1):e.length>1:!1;function Gc(e){const t={};for(const z in e)z in Kc||(t[z]=e[z]);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=Ah(o),C=p&&p[0],y=p&&p[1],{onBeforeEnter:m,onEnter:S,onEnterCancelled:k,onLeave:R,onLeaveCancelled:$,onBeforeAppear:_=m,onAppear:b=S,onAppearCancelled:x=k}=t,P=(z,Z,oe)=>{Lt(z,Z?u:l),Lt(z,Z?c:s),oe&&oe()},F=(z,Z)=>{z._isLeaving=!1,Lt(z,f),Lt(z,v),Lt(z,d),Z&&Z()},W=z=>(Z,oe)=>{const ce=z?b:S,X=()=>P(Z,z,oe);Jt(ce,[Z,X]),al(()=>{Lt(Z,z?a:i),_t(Z,z?u:l),ll(ce)||cl(Z,r,C,X)})};return Le(t,{onBeforeEnter(z){Jt(m,[z]),_t(z,i),_t(z,s)},onBeforeAppear(z){Jt(_,[z]),_t(z,a),_t(z,c)},onEnter:W(!1),onAppear:W(!0),onLeave(z,Z){z._isLeaving=!0;const oe=()=>F(z,Z);_t(z,f),Xc(),_t(z,d),al(()=>{z._isLeaving&&(Lt(z,f),_t(z,v),ll(R)||cl(z,r,y,oe))}),Jt(R,[z,oe])},onEnterCancelled(z){P(z,!1),Jt(k,[z])},onAppearCancelled(z){P(z,!0),Jt(x,[z])},onLeaveCancelled(z){F(z),Jt($,[z])}})}function Ah(e){if(e==null)return null;if(Ee(e))return[ti(e.enter),ti(e.leave)];{const t=ti(e);return[t,t]}}function ti(e){return Nf(e)}function _t(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ln]||(e[Ln]=new Set)).add(t)}function Lt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ln];n&&(n.delete(t),n.size||(e[Ln]=void 0))}function al(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ih=0;function cl(e,t,n,r){const o=e._endId=++Ih,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=qc(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(`${Bt}Delay`),i=r(`${Bt}Duration`),s=ul(o,i),l=r(`${Jn}Delay`),a=r(`${Jn}Duration`),c=ul(l,a);let u=null,f=0,d=0;t===Bt?s>0&&(u=Bt,f=s,d=i.length):t===Jn?c>0&&(u=Jn,f=c,d=a.length):(f=Math.max(s,c),u=f>0?s>c?Bt:Jn:null,d=u?u===Bt?i.length:a.length:0);const v=u===Bt&&/\b(transform|all)(,|$)/.test(r(`${Bt}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:v}}function ul(e,t){for(;e.lengthfl(n)+fl(e[r])))}function fl(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Xc(){return document.body.offsetHeight}function zh(e,t,n){const r=e[Ln];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const $r=Symbol("_vod"),dl={beforeMount(e,{value:t},{transition:n}){e[$r]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Qn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t==!n&&e.style.display===e[$r]||(r?t?(r.beforeEnter(e),Qn(e,!0),r.enter(e)):r.leave(e,()=>{Qn(e,!1)}):Qn(e,t))},beforeUnmount(e,{value:t}){Qn(e,t)}};function Qn(e,t){e.style.display=t?e[$r]:"none"}const Bh=Symbol("");function kh(e,t,n){const r=e.style,o=r.display,i=Be(n);if(n&&!i){if(t&&!Be(t))for(const s in t)n[s]==null&&Ei(r,s,"");for(const s in n)Ei(r,s,n[s])}else if(i){if(t!==n){const s=r[Bh];s&&(n+=";"+s),r.cssText=n}}else t&&e.removeAttribute("style");$r in e&&(e[$r]=r.display,r.display=o)}const hl=/\s*!important$/;function Ei(e,t,n){if(se(n))n.forEach(r=>Ei(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Mh(e,t);hl.test(n)?e.setProperty(gn(r),n.replace(hl,""),"important"):e[r]=n}}const pl=["Webkit","Moz","ms"],ni={};function Mh(e,t){const n=ni[t];if(n)return n;let r=zn(t);if(r!=="filter"&&r in e)return ni[t]=r;r=Ua(r);for(let o=0;ori||(Wh.then(()=>ri=0),ri=Date.now());function Uh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ct(Kh(r,n.value),t,5,[r])};return n.value=e,n.attached=Vh(),n}function Kh(e,t){if(se(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 bl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gh=(e,t,n,r,o,i,s,l,a)=>{const c=o==="svg";t==="class"?zh(e,r,c):t==="style"?kh(e,n,r):So(t)?Ki(t)||Dh(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qh(e,t,r,c))?Hh(e,t,r,i,s,l,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Lh(e,t,r,c))};function qh(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&bl(t)&&ue(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return bl(t)&&Be(n)?!1:t in e}const Yc=new WeakMap,Zc=new WeakMap,vo=Symbol("_moveCb"),yl=Symbol("_enterCb"),Jc={name:"TransitionGroup",props:Le({},Oh,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Bo(),r=wc();let o,i;return Pc(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!ep(o[0].el,n.vnode.el,s))return;o.forEach(Zh),o.forEach(Jh);const l=o.filter(Qh);Xc(),l.forEach(a=>{const c=a.el,u=c.style;_t(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[vo]=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c[vo]=null,Lt(c,s))};c.addEventListener("transitionend",f)})}),()=>{const s=ge(e),l=Gc(s);let a=s.tag||Me;o=i,i=t.default?cs(t.default()):[];for(let c=0;cdelete e.mode;Jc.props;const Yh=Jc;function Zh(e){const t=e.el;t[vo]&&t[vo](),t[yl]&&t[yl]()}function Jh(e){Zc.set(e,e.el.getBoundingClientRect())}function Qh(e){const t=Yc.get(e),n=Zc.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 ep(e,t,n){const r=e.cloneNode(),o=e[Ln];o&&o.forEach(l=>{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:s}=qc(r);return i.removeChild(r),s}const tp={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},n1=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const i=gn(o.key);if(t.some(s=>s===i||tp[s]===i))return e(o)})},np=Le({patchProp:Gh},Th);let xl;function rp(){return xl||(xl=ah(np))}const op=(...e)=>{const t=rp().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=sp(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,ip(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function ip(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function sp(e){return Be(e)?document.querySelector(e):e}var lp=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let eu;const Mo=e=>eu=e,tu=Symbol();function Ei(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ur;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ur||(ur={}));function cp(){const e=Ya(!0),t=e.run(()=>re({}));let n=[],r=[];const o=Bn({install(i){Mo(o),o._a=i,i.provide(tu,o),i.config.globalProperties.$pinia=o,r.forEach(s=>n.push(s)),r=[]},use(i){return!this._a&&!ap?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const nu=()=>{};function Cl(e,t,n,r=nu){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Za()&&Zf(o),o}function Sn(e,...t){e.slice().forEach(n=>{n(...t)})}const up=e=>e();function Ri(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];Ei(o)&&Ei(r)&&e.hasOwnProperty(n)&&!ke(r)&&!Et(r)?e[n]=Ri(o,r):e[n]=r}return e}const fp=Symbol();function dp(e){return!Ei(e)||!e.hasOwnProperty(fp)}const{assign:Ht}=Object;function hp(e){return!!(ke(e)&&e.effect)}function pp(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=Cd(n.state.value[e]);return Ht(u,i,Object.keys(s||{}).reduce((f,d)=>(f[d]=Bn(Y(()=>{Mo(n);const v=n._s.get(e);return s[d].call(v,v)})),f),{}))}return a=ru(e,c,t,n,r,!0),a}function ru(e,t,n={},r,o,i){let s;const l=Ht({actions:{}},n),a={deep:!0};let c,u,f=[],d=[],v;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={}),re({});let C;function y(x){let P;c=u=!1,typeof x=="function"?(x(r.state.value[e]),P={type:ur.patchFunction,storeId:e,events:v}):(Ri(r.state.value[e],x),P={type:ur.patchObject,payload:x,storeId:e,events:v});const F=C=Symbol();kn().then(()=>{C===F&&(c=!0)}),u=!0,Sn(f,P,r.state.value[e])}const m=i?function(){const{state:P}=n,F=P?P():{};this.$patch(W=>{Ht(W,F)})}:nu;function S(){s.stop(),f=[],d=[],r._s.delete(e)}function k(x,P){return function(){Mo(r);const F=Array.from(arguments),W=[],z=[];function Z(X){W.push(X)}function oe(X){z.push(X)}Sn(d,{args:F,name:x,store:$,after:Z,onError:oe});let ce;try{ce=P.apply(this&&this.$id===e?this:$,F)}catch(X){throw Sn(z,X),X}return ce instanceof Promise?ce.then(X=>(Sn(W,X),X)).catch(X=>(Sn(z,X),Promise.reject(X))):(Sn(W,ce),ce)}}const R={_p:r,$id:e,$onAction:Cl.bind(null,d),$patch:y,$reset:m,$subscribe(x,P={}){const F=Cl(f,x,P.detached,()=>W()),W=s.run(()=>dt(()=>r.state.value[e],z=>{(P.flush==="sync"?u:c)&&x({storeId:e,type:ur.direct,events:v},z)},Ht({},a,P)));return F},$dispose:S},$=bn(R);r._s.set(e,$);const b=(r._a&&r._a.runWithContext||up)(()=>r._e.run(()=>(s=Ya()).run(t)));for(const x in b){const P=b[x];if(ke(P)&&!hp(P)||Et(P))i||(p&&dp(P)&&(ke(P)?P.value=p[x]:Ri(P,p[x])),r.state.value[e][x]=P);else if(typeof P=="function"){const F=k(x,P);b[x]=F,l.actions[x]=P}}return Ht($,b),Ht(ge($),b),Object.defineProperty($,"$state",{get:()=>r.state.value[e],set:x=>{y(P=>{Ht(P,x)})}}),r._p.forEach(x=>{Ht($,s.run(()=>x({store:$,app:r._a,pinia:r,options:l})))}),p&&i&&n.hydrate&&n.hydrate($.$state,p),c=!0,u=!0,$}function o1(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=rh();return l=l||(c?Ae(tu,null):null),l&&Mo(l),l=eu,l._s.has(r)||(i?ru(r,t,o,l):pp(r,o,l)),l._s.get(r)}return s.$id=r,s}function i1(e){{e=ge(e);const t={};for(const n in e){const r=e[n];(ke(r)||Et(r))&&(t[n]=Pt(e,n))}return t}}function gp(e){return typeof e=="object"&&e!==null}function wl(e,t){return e=gp(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 vp(e,t){return t.reduce((n,r)=>n==null?void 0:n[r],e)}function mp(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 bp(e,t){return t.reduce((n,r)=>{const o=r.split(".");return mp(n,o,vp(e,o))},{})}function yp(e,t){return n=>{var r;try{const{storage:o=localStorage,beforeRestore:i=void 0,afterRestore:s=void 0,serializer:l={serialize:JSON.stringify,deserialize:JSON.parse},key:a=t.$id,paths:c=null,debug:u=!1}=n;return{storage:o,beforeRestore:i,afterRestore:s,serializer:l,key:((r=e.key)!=null?r:f=>f)(typeof a=="string"?a:a(t.$id)),paths:c,debug:u}}catch(o){return n.debug&&console.error("[pinia-plugin-persistedstate]",o),null}}}function Sl(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("[pinia-plugin-persistedstate]",i)}}function _l(e,{storage:t,serializer:n,key:r,paths:o,debug:i}){try{const s=Array.isArray(o)?bp(e,o):e;t.setItem(r,n.serialize(s))}catch(s){i&&console.error("[pinia-plugin-persistedstate]",s)}}function xp(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=>wl(l,e)):[wl(r,e)]).map(yp(e,o)).filter(Boolean);o.$persist=()=>{s.forEach(l=>{_l(o.$state,l)})},o.$hydrate=({runHooks:l=!0}={})=>{s.forEach(a=>{const{beforeRestore:c,afterRestore:u}=a;l&&(c==null||c(t)),Sl(o,a),l&&(u==null||u(t))})},s.forEach(l=>{const{beforeRestore:a,afterRestore:c}=l;a==null||a(t),Sl(o,l),c==null||c(t),o.$subscribe((u,f)=>{_l(f,l)},{detached:!0})})}}var Cp=xp();const ou=cp();ou.use(Cp);function wp(e){e.use(ou)}function ms(e){return e.composedPath()[0]||null}function s1(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function l1(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function iu(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 a1(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const $l={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"},Dn="^\\s*",Nn="\\s*$",on="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",sn="([0-9A-Fa-f])",ln="([0-9A-Fa-f]{2})",Sp=new RegExp(`${Dn}rgb\\s*\\(${on},${on},${on}\\)${Nn}`),_p=new RegExp(`${Dn}rgba\\s*\\(${on},${on},${on},${on}\\)${Nn}`),$p=new RegExp(`${Dn}#${sn}${sn}${sn}${Nn}`),Ep=new RegExp(`${Dn}#${ln}${ln}${ln}${Nn}`),Rp=new RegExp(`${Dn}#${sn}${sn}${sn}${sn}${Nn}`),Pp=new RegExp(`${Dn}#${ln}${ln}${ln}${ln}${Nn}`);function et(e){return parseInt(e,16)}function hn(e){try{let t;if(t=Ep.exec(e))return[et(t[1]),et(t[2]),et(t[3]),1];if(t=Sp.exec(e))return[We(t[1]),We(t[5]),We(t[9]),1];if(t=_p.exec(e))return[We(t[1]),We(t[5]),We(t[9]),fr(t[13])];if(t=$p.exec(e))return[et(t[1]+t[1]),et(t[2]+t[2]),et(t[3]+t[3]),1];if(t=Pp.exec(e))return[et(t[1]),et(t[2]),et(t[3]),fr(et(t[4])/255)];if(t=Rp.exec(e))return[et(t[1]+t[1]),et(t[2]+t[2]),et(t[3]+t[3]),fr(et(t[4]+t[4])/255)];if(e in $l)return hn($l[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Tp(e){return e>1?1:e<0?0:e}function Pi(e,t,n,r){return`rgba(${We(e)}, ${We(t)}, ${We(n)}, ${Tp(r)})`}function ri(e,t,n,r,o){return We((e*t*(1-r)+n*r)/o)}function bs(e,t){Array.isArray(e)||(e=hn(e)),Array.isArray(t)||(t=hn(t));const n=e[3],r=t[3],o=fr(n+r-n*r);return Pi(ri(e[0],n,t[0],r,o),ri(e[1],n,t[1],r,o),ri(e[2],n,t[2],r,o),o)}function Kr(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:hn(e);return t.alpha?Pi(n,r,o,t.alpha):Pi(n,r,o,i)}function Gr(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:hn(e),{lightness:s=1,alpha:l=1}=t;return Op([n*s,r*s,o*s,i*l])}function fr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function We(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Op(e){const[t,n,r]=e;return 3 in e?`rgba(${We(t)}, ${We(n)}, ${We(r)}, ${fr(e[3])})`:`rgba(${We(t)}, ${We(n)}, ${We(r)}, 1)`}function ys(e=8){return Math.random().toString(16).slice(2,2+e)}function vo(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function su(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Ti(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(_r(String(r)));return}if(Array.isArray(r)){Ti(r,t,n);return}if(r.type===Me){if(r.children===null)return;Array.isArray(r.children)&&Ti(r.children,t,n)}else{if(r.type===Ye&&t)return;n.push(r)}}}),n}function an(e,...t){if(Array.isArray(e))e.forEach(n=>an(n,...t));else return e(...t)}function xs(e){return Object.keys(e)}const en=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?_r(e):typeof e=="number"?_r(String(e)):null;function mo(e,t){console.error(`[naive/${e}]: ${t}`)}function Ap(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Ip(e,t="default",n=void 0){const r=e[t];if(!r)return mo("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Ti(r(n));return o.length===1?o[0]:(mo("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function c1(e){return e}function zr(e){return e.some(t=>Sr(t)?!(t.type===Ye||t.type===Me&&!zr(t.children)):!0)?e:null}function El(e,t){return e&&zr(e())||t()}function u1(e,t,n){return e&&zr(e(t))||n(t)}function ut(e,t){const n=e&&zr(e());return t(n||null)}function zp(e){return!(e&&zr(e()))}const Rl=Re({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}});function Pl(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function Bp(e){let t=0;for(let n=0;n{let o=Bp(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 Lp(e,t){const n=[];return t.split(lu).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function Hp(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=Mp(t,n):t=Lp(t,n))}),t.join(", ").replace(kp," ")}function Tl(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Lo(e){return document.querySelector(`style[cssr-id="${e}"]`)}function Fp(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function qr(e){return e?/^\s*@(s|m)/.test(e):!1}const jp=/[A-Z]/g;function au(e){return e.replace(jp,t=>"-"+t.toLowerCase())}function Dp(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(n=>t+` ${au(n[0])}: ${n[1]};`).join(` + */let Qc;const Lo=e=>Qc=e,eu=Symbol();function Ri(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 ap(){const e=Ya(!0),t=e.run(()=>re({}));let n=[],r=[];const o=kn({install(i){Lo(o),o._a=i,i.provide(eu,o),i.config.globalProperties.$pinia=o,r.forEach(s=>n.push(s)),r=[]},use(i){return!this._a&&!lp?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const tu=()=>{};function Cl(e,t,n,r=tu){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Za()&&Yf(o),o}function Sn(e,...t){e.slice().forEach(n=>{n(...t)})}const cp=e=>e();function Pi(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];Ri(o)&&Ri(r)&&e.hasOwnProperty(n)&&!ke(r)&&!Et(r)?e[n]=Pi(o,r):e[n]=r}return e}const up=Symbol();function fp(e){return!Ri(e)||!e.hasOwnProperty(up)}const{assign:Ht}=Object;function dp(e){return!!(ke(e)&&e.effect)}function hp(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=xd(n.state.value[e]);return Ht(u,i,Object.keys(s||{}).reduce((f,d)=>(f[d]=kn(Y(()=>{Lo(n);const v=n._s.get(e);return s[d].call(v,v)})),f),{}))}return a=nu(e,c,t,n,r,!0),a}function nu(e,t,n={},r,o,i){let s;const l=Ht({actions:{}},n),a={deep:!0};let c,u,f=[],d=[],v;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={}),re({});let C;function y(x){let P;c=u=!1,typeof x=="function"?(x(r.state.value[e]),P={type:fr.patchFunction,storeId:e,events:v}):(Pi(r.state.value[e],x),P={type:fr.patchObject,payload:x,storeId:e,events:v});const F=C=Symbol();Mn().then(()=>{C===F&&(c=!0)}),u=!0,Sn(f,P,r.state.value[e])}const m=i?function(){const{state:P}=n,F=P?P():{};this.$patch(W=>{Ht(W,F)})}:tu;function S(){s.stop(),f=[],d=[],r._s.delete(e)}function k(x,P){return function(){Lo(r);const F=Array.from(arguments),W=[],z=[];function Z(X){W.push(X)}function oe(X){z.push(X)}Sn(d,{args:F,name:x,store:$,after:Z,onError:oe});let ce;try{ce=P.apply(this&&this.$id===e?this:$,F)}catch(X){throw Sn(z,X),X}return ce instanceof Promise?ce.then(X=>(Sn(W,X),X)).catch(X=>(Sn(z,X),Promise.reject(X))):(Sn(W,ce),ce)}}const R={_p:r,$id:e,$onAction:Cl.bind(null,d),$patch:y,$reset:m,$subscribe(x,P={}){const F=Cl(f,x,P.detached,()=>W()),W=s.run(()=>dt(()=>r.state.value[e],z=>{(P.flush==="sync"?u:c)&&x({storeId:e,type:fr.direct,events:v},z)},Ht({},a,P)));return F},$dispose:S},$=bn(R);r._s.set(e,$);const b=(r._a&&r._a.runWithContext||cp)(()=>r._e.run(()=>(s=Ya()).run(t)));for(const x in b){const P=b[x];if(ke(P)&&!dp(P)||Et(P))i||(p&&fp(P)&&(ke(P)?P.value=p[x]:Pi(P,p[x])),r.state.value[e][x]=P);else if(typeof P=="function"){const F=k(x,P);b[x]=F,l.actions[x]=P}}return Ht($,b),Ht(ge($),b),Object.defineProperty($,"$state",{get:()=>r.state.value[e],set:x=>{y(P=>{Ht(P,x)})}}),r._p.forEach(x=>{Ht($,s.run(()=>x({store:$,app:r._a,pinia:r,options:l})))}),p&&i&&n.hydrate&&n.hydrate($.$state,p),c=!0,u=!0,$}function r1(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=nh();return l=l||(c?Ae(eu,null):null),l&&Lo(l),l=Qc,l._s.has(r)||(i?nu(r,t,o,l):hp(r,o,l)),l._s.get(r)}return s.$id=r,s}function o1(e){{e=ge(e);const t={};for(const n in e){const r=e[n];(ke(r)||Et(r))&&(t[n]=Pt(e,n))}return t}}function pp(e){return typeof e=="object"&&e!==null}function wl(e,t){return e=pp(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 gp(e,t){return t.reduce((n,r)=>n==null?void 0:n[r],e)}function vp(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 mp(e,t){return t.reduce((n,r)=>{const o=r.split(".");return vp(n,o,gp(e,o))},{})}function bp(e,t){return n=>{var r;try{const{storage:o=localStorage,beforeRestore:i=void 0,afterRestore:s=void 0,serializer:l={serialize:JSON.stringify,deserialize:JSON.parse},key:a=t.$id,paths:c=null,debug:u=!1}=n;return{storage:o,beforeRestore:i,afterRestore:s,serializer:l,key:((r=e.key)!=null?r:f=>f)(typeof a=="string"?a:a(t.$id)),paths:c,debug:u}}catch(o){return n.debug&&console.error("[pinia-plugin-persistedstate]",o),null}}}function Sl(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("[pinia-plugin-persistedstate]",i)}}function _l(e,{storage:t,serializer:n,key:r,paths:o,debug:i}){try{const s=Array.isArray(o)?mp(e,o):e;t.setItem(r,n.serialize(s))}catch(s){i&&console.error("[pinia-plugin-persistedstate]",s)}}function yp(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=>wl(l,e)):[wl(r,e)]).map(bp(e,o)).filter(Boolean);o.$persist=()=>{s.forEach(l=>{_l(o.$state,l)})},o.$hydrate=({runHooks:l=!0}={})=>{s.forEach(a=>{const{beforeRestore:c,afterRestore:u}=a;l&&(c==null||c(t)),Sl(o,a),l&&(u==null||u(t))})},s.forEach(l=>{const{beforeRestore:a,afterRestore:c}=l;a==null||a(t),Sl(o,l),c==null||c(t),o.$subscribe((u,f)=>{_l(f,l)},{detached:!0})})}}var xp=yp();const ru=ap();ru.use(xp);function Cp(e){e.use(ru)}function ms(e){return e.composedPath()[0]||null}function i1(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function s1(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function ou(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 l1(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const $l={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})",wp=new RegExp(`${Nn}rgb\\s*\\(${on},${on},${on}\\)${Wn}`),Sp=new RegExp(`${Nn}rgba\\s*\\(${on},${on},${on},${on}\\)${Wn}`),_p=new RegExp(`${Nn}#${sn}${sn}${sn}${Wn}`),$p=new RegExp(`${Nn}#${ln}${ln}${ln}${Wn}`),Ep=new RegExp(`${Nn}#${sn}${sn}${sn}${sn}${Wn}`),Rp=new RegExp(`${Nn}#${ln}${ln}${ln}${ln}${Wn}`);function et(e){return parseInt(e,16)}function hn(e){try{let t;if(t=$p.exec(e))return[et(t[1]),et(t[2]),et(t[3]),1];if(t=wp.exec(e))return[We(t[1]),We(t[5]),We(t[9]),1];if(t=Sp.exec(e))return[We(t[1]),We(t[5]),We(t[9]),dr(t[13])];if(t=_p.exec(e))return[et(t[1]+t[1]),et(t[2]+t[2]),et(t[3]+t[3]),1];if(t=Rp.exec(e))return[et(t[1]),et(t[2]),et(t[3]),dr(et(t[4])/255)];if(t=Ep.exec(e))return[et(t[1]+t[1]),et(t[2]+t[2]),et(t[3]+t[3]),dr(et(t[4]+t[4])/255)];if(e in $l)return hn($l[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Pp(e){return e>1?1:e<0?0:e}function Ti(e,t,n,r){return`rgba(${We(e)}, ${We(t)}, ${We(n)}, ${Pp(r)})`}function oi(e,t,n,r,o){return We((e*t*(1-r)+n*r)/o)}function bs(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 Ti(oi(e[0],n,t[0],r,o),oi(e[1],n,t[1],r,o),oi(e[2],n,t[2],r,o),o)}function Gr(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:hn(e);return t.alpha?Ti(n,r,o,t.alpha):Ti(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 Tp([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 We(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Tp(e){const[t,n,r]=e;return 3 in e?`rgba(${We(t)}, ${We(n)}, ${We(r)}, ${dr(e[3])})`:`rgba(${We(t)}, ${We(n)}, ${We(r)}, 1)`}function ys(e=8){return Math.random().toString(16).slice(2,2+e)}function mo(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function iu(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Oi(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(_r(String(r)));return}if(Array.isArray(r)){Oi(r,t,n);return}if(r.type===Me){if(r.children===null)return;Array.isArray(r.children)&&Oi(r.children,t,n)}else{if(r.type===Ye&&t)return;n.push(r)}}}),n}function an(e,...t){if(Array.isArray(e))e.forEach(n=>an(n,...t));else return e(...t)}function xs(e){return Object.keys(e)}const en=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?_r(e):typeof e=="number"?_r(String(e)):null;function bo(e,t){console.error(`[naive/${e}]: ${t}`)}function Op(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Ap(e,t="default",n=void 0){const r=e[t];if(!r)return bo("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Oi(r(n));return o.length===1?o[0]:(bo("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function a1(e){return e}function Br(e){return e.some(t=>Sr(t)?!(t.type===Ye||t.type===Me&&!Br(t.children)):!0)?e:null}function El(e,t){return e&&Br(e())||t()}function c1(e,t,n){return e&&Br(e(t))||n(t)}function ut(e,t){const n=e&&Br(e());return t(n||null)}function Ip(e){return!(e&&Br(e()))}const Rl=Re({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}});function Pl(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function zp(e){let t=0;for(let n=0;n{let o=zp(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 Mp(e,t){const n=[];return t.split(su).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function Lp(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=kp(t,n):t=Mp(t,n))}),t.join(", ").replace(Bp," ")}function Tl(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Ho(e){return document.querySelector(`style[cssr-id="${e}"]`)}function Hp(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Xr(e){return e?/^\s*@(s|m)/.test(e):!1}const Fp=/[A-Z]/g;function lu(e){return e.replace(Fp,t=>"-"+t.toLowerCase())}function jp(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(n=>t+` ${lu(n[0])}: ${n[1]};`).join(` `)+` -`+t+"}":`: ${e};`}function Np(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Ol(e,t,n,r){if(!t)return"";const o=Np(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { +`+t+"}":`: ${e};`}function Dp(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Ol(e,t,n,r){if(!t)return"";const o=Dp(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=au(l),a!=null&&s.push(` ${l}${Dp(a)}`)}),e&&s.push("}"),s.join(` -`)}function Oi(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))Oi(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?Oi(o,t,n):o&&n(o)}else r&&n(r)})}function cu(e,t,n,r,o,i){const s=e.$;let l="";if(!s||typeof s=="string")qr(s)?l=s:t.push(s);else if(typeof s=="function"){const u=s({context:r.context,props:o});qr(u)?l=u:t.push(u)}else if(s.before&&s.before(r.context),!s.$||typeof s.$=="string")qr(s.$)?l=s.$:t.push(s.$);else if(s.$){const u=s.$({context:r.context,props:o});qr(u)?l=u:t.push(u)}const a=Hp(t),c=Ol(a,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { +`);return}l=lu(l),a!=null&&s.push(` ${l}${jp(a)}`)}),e&&s.push("}"),s.join(` +`)}function Ai(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))Ai(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?Ai(o,t,n):o&&n(o)}else r&&n(r)})}function au(e,t,n,r,o,i){const s=e.$;let l="";if(!s||typeof s=="string")Xr(s)?l=s:t.push(s);else if(typeof s=="function"){const u=s({context:r.context,props:o});Xr(u)?l=u:t.push(u)}else if(s.before&&s.before(r.context),!s.$||typeof s.$=="string")Xr(s.$)?l=s.$:t.push(s.$);else if(s.$){const u=s.$({context:r.context,props:o});Xr(u)?l=u:t.push(u)}const a=Lp(t),c=Ol(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&&Oi(e.children,{context:r.context,props:o},u=>{if(typeof u=="string"){const f=Ol(a,{raw:u},r,o);i?i.insertRule(f):n.push(f)}else cu(u,t,n,r,o,i)}),t.pop(),l&&n.push("}"),s&&s.after&&s.after(r.context)}function uu(e,t,n,r=!1){const o=[];return cu(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&&Ai(e.children,{context:r.context,props:o},u=>{if(typeof u=="string"){const f=Ol(a,{raw:u},r,o);i?i.insertRule(f):n.push(f)}else au(u,t,n,r,o,i)}),t.pop(),l&&n.push("}"),s&&s.after&&s.after(r.context)}function cu(e,t,n,r=!1){const o=[];return au(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(` -`)}function $r(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 Wp(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(Tl),t.els=[];else{const o=Lo(n);o&&r.includes(o)&&(Tl(o),t.els=r.filter(i=>i!==o))}}function Al(e,t){e.push(t)}function Vp(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,uu(t,e,r,i));return}let c;if(n===void 0&&(c=t.render(r),n=$r(c)),a){a.adapter(n,c??t.render(r));return}const u=Lo(n);if(u!==null&&!s)return u;const f=u??Fp(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),Al(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),Al(t.els,f),f}function Up(e){return uu(this,this.instance,e)}function Kp(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:s=!1,anchorMetaName:l}=e;return Vp(this.instance,this,t,r,o,i,s,l,n)}function Gp(e={}){const{id:t}=e;Wp(this.instance,this,t)}const Xr=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Up,mount:Kp,unmount:Gp}},qp=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 Xp(e={}){let t=null;const n={c:(...r)=>qp(n,...r),use:(r,...o)=>r.install(n,...o),find:Lo,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 Yp(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Lo(e)!==null}function Zp(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 C=p.context;C.bem={},C.bem.b=null,C.bem.els=null}};function s(p){let C,y;return{before(m){C=m.bem.b,y=m.bem.els,m.bem.els=null},after(m){m.bem.b=C,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 C;return{before(y){C=y.bem.els},after(y){y.bem.els=C},$({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:C,props:y}){p=typeof p=="string"?p:p({context:C,props:y});const m=p.split(",").map(R=>R.trim());function S(R){return m.map($=>`&${(y==null?void 0:y.bPrefix)||t}${C.bem.b}${R!==void 0?`${n}${R}`:""}${r}${$}`).join(", ")}const k=C.bem.els;return k!==null?S(k[0]):S()}}}function c(p){return{$({context:C,props:y}){p=typeof p=="string"?p:p({context:C,props:y});const m=C.bem.els;return`&:not(${(y==null?void 0:y.bPrefix)||t}${C.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}const Jp="n",Er=`.${Jp}-`,Qp="__",eg="--",fu=Xp(),du=Zp({blockPrefix:Er,elementPrefix:Qp,modifierPrefix:eg});fu.use(du);const{c:D,find:f1}=fu,{cB:xe,cE:ee,cM:de,cNotM:Ai}=du;function hu(e){return D(({props:{bPrefix:t}})=>`${t||Er}modal, ${t||Er}drawer`,[e])}function tg(e){return D(({props:{bPrefix:t}})=>`${t||Er}popover`,[e])}function pu(e){return D(({props:{bPrefix:t}})=>`&${t||Er}modal`,e)}const d1=(...e)=>D(">",[xe(...e)]);function ie(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}const Br=typeof document<"u"&&typeof window<"u",gu=new WeakSet;function h1(e){gu.add(e)}function ng(e){return!gu.has(e)}function rg(e){const t=re(!!e.value);if(t.value)return Rt(t);const n=dt(e,r=>{r&&(t.value=!0,n())});return Rt(t)}function Ii(e){const t=Y(e),n=re(t.value);return dt(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function vu(){return zo()!==null}const mu=typeof window<"u";function so(e){return e.composedPath()[0]}const og={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function ig(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(so(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=s=>{r=!t.contains(so(s))},i=s=>{r&&(t.contains(so(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 bu(e,t,n){const r=og[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=ig(e,t,n)),i}function sg(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=bu(e,t,n);return Object.keys(o).forEach(i=>{at(i,document,o[i],r)}),!0}return!1}function lg(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=bu(e,t,n);return Object.keys(o).forEach(i=>{qe(i,document,o[i],r)}),!0}return!1}function ag(){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,x,P){const F=b[x];return b[x]=function(){return P.apply(b,arguments),F.apply(b,arguments)},b}function i(b,x){b[x]=Event.prototype[x]}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,x){l!==void 0&&Object.defineProperty(b,"currentTarget",{configurable:!0,enumerable:!0,get:x??l.get})}const u={bubble:{},capture:{}},f={};function d(){const b=function(x){const{type:P,eventPhase:F,bubbles:W}=x,z=so(x);if(F===2)return;const Z=F===1?"capture":"bubble";let oe=z;const ce=[];for(;oe===null&&(oe=window),ce.push(oe),oe!==window;)oe=oe.parentNode||null;const X=u.capture[P],U=u.bubble[P];if(o(x,"stopPropagation",n),o(x,"stopImmediatePropagation",r),c(x,a),Z==="capture"){if(X===void 0)return;for(let ne=ce.length-1;ne>=0&&!e.has(x);--ne){const Ce=ce[ne],we=X.get(Ce);if(we!==void 0){s.set(x,Ce);for(const Se of we){if(t.has(x))break;Se(x)}}if(ne===0&&!W&&U!==void 0){const Se=U.get(Ce);if(Se!==void 0)for(const _e of Se){if(t.has(x))break;_e(x)}}}}else if(Z==="bubble"){if(U===void 0)return;for(let ne=0;nez(x))};return b.displayName="evtdUnifiedWindowEventHandler",b}const p=d(),C=v();function y(b,x){const P=u[b];return P[x]===void 0&&(P[x]=new Map,window.addEventListener(x,p,b==="capture")),P[x]}function m(b){return f[b]===void 0&&(f[b]=new Set,window.addEventListener(b,C)),f[b]}function S(b,x){let P=b.get(x);return P===void 0&&b.set(x,P=new Set),P}function k(b,x,P,F){const W=u[x][P];if(W!==void 0){const z=W.get(b);if(z!==void 0&&z.has(F))return!0}return!1}function R(b,x){const P=f[b];return!!(P!==void 0&&P.has(x))}function $(b,x,P,F){let W;if(typeof F=="object"&&F.once===!0?W=X=>{_(b,x,W,F),P(X)}:W=P,sg(b,x,W,F))return;const Z=F===!0||typeof F=="object"&&F.capture===!0?"capture":"bubble",oe=y(Z,b),ce=S(oe,x);if(ce.has(W)||ce.add(W),x===window){const X=m(b);X.has(W)||X.add(W)}}function _(b,x,P,F){if(lg(b,x,P,F))return;const z=F===!0||typeof F=="object"&&F.capture===!0,Z=z?"capture":"bubble",oe=y(Z,b),ce=S(oe,x);if(x===window&&!k(x,z?"bubble":"capture",b,P)&&R(b,P)){const U=f[b];U.delete(P),U.size===0&&(window.removeEventListener(b,C),f[b]=void 0)}ce.has(P)&&ce.delete(P),ce.size===0&&oe.delete(x),oe.size===0&&(window.removeEventListener(b,p,Z==="capture"),u[Z][b]=void 0)}return{on:$,off:_}}const{on:at,off:qe}=ag(),or=re(null);function Il(e){if(e.clientX>0||e.clientY>0)or.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?or.value={x:n+o/2,y:r+i/2}:or.value={x:0,y:0}}else or.value=null}}let Yr=0,zl=!0;function yu(){if(!mu)return Rt(re(null));Yr===0&&at("click",document,Il,!0);const e=()=>{Yr+=1};return zl&&(zl=vu())?(yn(e),pt(()=>{Yr-=1,Yr===0&&qe("click",document,Il,!0)})):e(),Rt(or)}const cg=re(void 0);let Zr=0;function Bl(){cg.value=Date.now()}let kl=!0;function xu(e){if(!mu)return Rt(re(!1));const t=re(!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&&at("click",window,Bl,!0);const i=()=>{Zr+=1,at("click",window,o,!0)};return kl&&(kl=vu())?(yn(i),pt(()=>{Zr-=1,Zr===0&&qe("click",window,Bl,!0),qe("click",window,o,!0),r()})):i(),Rt(t)}function Cu(){const e=re(!1);return Xt(()=>{e.value=!0}),Rt(e)}const ug=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function fg(){return ug}const dg="n-modal-body",wu="n-modal",hg="n-drawer-body",pg="n-popover-body";function Ml(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function zi(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(_r(String(r)));return}if(Array.isArray(r)){zi(r,t,n);return}if(r.type===Me){if(r.children===null)return;Array.isArray(r.children)&&zi(r.children,t,n)}else r.type!==Ye&&n.push(r)}}),n}function p1(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=zi(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}const _n="@@coContext",gg={mounted(e,{value:t,modifiers:n}){e[_n]={handler:void 0},typeof t=="function"&&(e[_n].handler=t,at("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[_n];typeof t=="function"?r.handler?r.handler!==t&&(qe("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,at("clickoutside",e,t,{capture:n.capture})):(e[_n].handler=t,at("clickoutside",e,t,{capture:n.capture})):r.handler&&(qe("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[_n];n&&qe("clickoutside",e,n,{capture:t.capture}),e[_n].handler=void 0}},vg=gg;function mg(e,t){console.error(`[vdirs/${e}]: ${t}`)}class bg{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&&mg("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 oi=new bg,$n="@@ziContext",yg={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[$n]={enabled:!!o,initialized:!1},o&&(oi.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&&(oi.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;oi.unregister(e,r)}},xg=yg,Su=Symbol("@css-render/vue3-ssr");function Cg(e,t){return``}function wg(e,t){const n=Ae(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(Cg(e,t)))}const Sg=typeof document<"u";function Ho(){if(Sg)return;const e=Ae(Su,null);if(e!==null)return{adapter:wg,context:e}}function Ll(e,t){console.error(`[vueuc/${e}]: ${t}`)}function Hl(e){return typeof e=="string"?document.querySelector(e):e()}const _g=Re({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:rg(Pt(e,"show")),mergedTo:Y(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Ml("lazy-teleport",this.$slots):E(jc,{disabled:this.disabled,to:this.mergedTo},Ml("lazy-teleport",this.$slots)):null}});var fn=[],$g=function(){return fn.some(function(e){return e.activeTargets.length>0})},Eg=function(){return fn.some(function(e){return e.skippedTargets.length>0})},Fl="ResizeObserver loop completed with undelivered notifications.",Rg=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Fl}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Fl),window.dispatchEvent(e)},Rr;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Rr||(Rr={}));var dn=function(e){return Object.freeze(e)},Pg=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,dn(this)}return e}(),_u=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}(),Cs=function(e){return e instanceof SVGElement&&"getBBox"in e},$u=function(e){if(Cs(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)},jl=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)},Tg=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},dr=typeof window<"u"?window:{},Jr=new WeakMap,Dl=/auto|scroll/,Og=/^tb|vertical/,Ag=/msie|trident/i.test(dr.navigator&&dr.navigator.userAgent),vt=function(e){return parseFloat(e||"0")},An=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Pg((n?t:e)||0,(n?e:t)||0)},Nl=dn({devicePixelContentBoxSize:An(),borderBoxSize:An(),contentBoxSize:An(),contentRect:new _u(0,0,0,0)}),Eu=function(e,t){if(t===void 0&&(t=!1),Jr.has(e)&&!t)return Jr.get(e);if($u(e))return Jr.set(e,Nl),Nl;var n=getComputedStyle(e),r=Cs(e)&&e.ownerSVGElement&&e.getBBox(),o=!Ag&&n.boxSizing==="border-box",i=Og.test(n.writingMode||""),s=!r&&Dl.test(n.overflowY||""),l=!r&&Dl.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),C=r?0:vt(n.borderLeftWidth),y=f+c,m=a+u,S=C+v,k=d+p,R=l?e.offsetHeight-k-e.clientHeight:0,$=s?e.offsetWidth-S-e.clientWidth:0,_=o?y+S:0,b=o?m+k:0,x=r?r.width:vt(n.width)-_-$,P=r?r.height:vt(n.height)-b-R,F=x+y+$+S,W=P+m+R+k,z=dn({devicePixelContentBoxSize:An(Math.round(x*devicePixelRatio),Math.round(P*devicePixelRatio),i),borderBoxSize:An(F,W,i),contentBoxSize:An(x,P,i),contentRect:new _u(f,a,x,P)});return Jr.set(e,z),z},Ru=function(e,t,n){var r=Eu(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Rr.DEVICE_PIXEL_CONTENT_BOX:return s;case Rr.BORDER_BOX:return o;default:return i}},Ig=function(){function e(t){var n=Eu(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}(),Pu=function(e){if($u(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},zg=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 Ig(c.target),f=Pu(c.target);l.push(u),c.lastReportedSize=Ru(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},Bg=function(){var e=0;for(Wl(e);$g();)e=zg(),Wl(e);return Eg()&&Rg(),e>0},ii,Tu=[],kg=function(){return Tu.splice(0).forEach(function(e){return e()})},Mg=function(e){if(!ii){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return kg()}).observe(n,r),ii=function(){n.textContent="".concat(t?t--:t++)}}Tu.push(e),ii()},Lg=function(e){Mg(function(){requestAnimationFrame(e)})},lo=0,Hg=function(){return!!lo},Fg=250,jg={attributes:!0,characterData:!0,childList:!0,subtree:!0},Vl=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ul=function(e){return e===void 0&&(e=0),Date.now()+e},si=!1,Dg=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=Fg),!si){si=!0;var r=Ul(t);Lg(function(){var o=!1;try{o=Bg()}finally{if(si=!1,t=r-Ul(),!Hg())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,jg)};document.body?n():dr.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Vl.forEach(function(n){return dr.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Vl.forEach(function(n){return dr.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Bi=new Dg,Kl=function(e){!lo&&e>0&&Bi.start(),lo+=e,!lo&&Bi.stop()},Ng=function(e){return!Cs(e)&&!Tg(e)&&getComputedStyle(e).display==="inline"},Wg=function(){function e(t,n){this.target=t,this.observedBox=n||Rr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ru(this.target,this.observedBox,!0);return Ng(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Vg=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Qr=new WeakMap,Gl=function(e,t){for(var n=0;n=0&&(i&&fn.splice(fn.indexOf(r),1),r.observationTargets.splice(o,1),Kl(-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}(),Ug=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(!jl(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(!jl(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 Kg{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Ug)(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 ql=new Kg,Xl=Re({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=zo().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Xt(()=>{const o=n.$el;if(o===void 0){Ll("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Ll("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(ql.registerHandler(o.nextElementSibling,r),t=!0)}),pt(()=>{t&&ql.unregisterHandler(n.$el.nextElementSibling)})},render(){return qd(this.$slots,"default")}});function Ou(e){return e instanceof HTMLElement}function Au(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(Ou(n)&&(zu(n)||Iu(n)))return!0}return!1}function zu(e){if(!Gg(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Gg(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 qg=Re({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=ys(),n=re(null),r=re(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(()=>{dt(()=>e.active,y=>{y?(f(),at("keydown",document,a)):(qe("keydown",document,a),o&&d())},{immediate:!0})}),pt(()=>{qe("keydown",document,a),o&&d()});function c(y){if(!i&&l()){const m=u();if(m===null||m.contains(ms(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=Hl(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=Hl(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 k=u();if(k==null||k===S){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const R=y==="first"?Au(k):Iu(k);i=!1,R||(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 C(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:C}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return E(Me,null,[E("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),E("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let En=0,Yl="",Zl="",Jl="",Ql="";const ea=re("0px");function Xg(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=Yl,t.style.overflow=Zl,t.style.overflowX=Jl,t.style.overflowY=Ql,ea.value="0px"};Xt(()=>{n=dt(e,i=>{if(i){if(!En){const s=window.innerWidth-t.offsetWidth;s>0&&(Yl=t.style.marginRight,t.style.marginRight=`${s}px`,ea.value=`${s}px`),Zl=t.style.overflow,Jl=t.style.overflowX,Ql=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})}),pt(()=>{n==null||n(),r&&(En--,En||o(),r=!1)})}const ws=re(!1),ta=()=>{ws.value=!0},na=()=>{ws.value=!1};let er=0;const Yg=()=>(Br&&(yn(()=>{er||(window.addEventListener("compositionstart",ta),window.addEventListener("compositionend",na)),er++}),pt(()=>{er<=1?(window.removeEventListener("compositionstart",ta),window.removeEventListener("compositionend",na),er=0):er--})),ws);function Zg(e){const t={isDeactivated:!1};let n=!1;return Ec(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Rc(()=>{t.isDeactivated=!0,n||(n=!0)}),t}const ra="n-form-item";function Jg(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Ae(ra,null);Xe(ra,null);const i=Y(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=Y(r?()=>r(o):()=>{const{disabled:a}=e;return a!==void 0?a:o?o.disabled.value:!1}),l=Y(()=>{const{status:a}=e;return a||(o==null?void 0:o.mergedValidationStatus.value)});return pt(()=>{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 Qg=typeof global=="object"&&global&&global.Object===Object&&global;const Bu=Qg;var ev=typeof self=="object"&&self&&self.Object===Object&&self,tv=Bu||ev||Function("return this")();const Wn=tv;var nv=Wn.Symbol;const Ln=nv;var ku=Object.prototype,rv=ku.hasOwnProperty,ov=ku.toString,tr=Ln?Ln.toStringTag:void 0;function iv(e){var t=rv.call(e,tr),n=e[tr];try{e[tr]=void 0;var r=!0}catch{}var o=ov.call(e);return r&&(t?e[tr]=n:delete e[tr]),o}var sv=Object.prototype,lv=sv.toString;function av(e){return lv.call(e)}var cv="[object Null]",uv="[object Undefined]",oa=Ln?Ln.toStringTag:void 0;function kr(e){return e==null?e===void 0?uv:cv:oa&&oa in Object(e)?iv(e):av(e)}function Vn(e){return e!=null&&typeof e=="object"}var fv="[object Symbol]";function dv(e){return typeof e=="symbol"||Vn(e)&&kr(e)==fv}function hv(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=Hv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Nv(e){return function(){return e}}var Wv=function(){try{var e=_s(Object,"defineProperty");return e({},"",{}),e}catch{}}();const yo=Wv;var Vv=yo?function(e,t){return yo(e,"toString",{configurable:!0,enumerable:!1,value:Nv(t),writable:!0})}:Lu;const Uv=Vv;var Kv=Dv(Uv);const Gv=Kv;var qv=9007199254740991,Xv=/^(?:0|[1-9]\d*)$/;function Hu(e,t){var n=typeof e;return t=t??qv,!!t&&(n=="number"||n!="symbol"&&Xv.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=nm}function Es(e){return e!=null&&Fu(e.length)&&!Ss(e)}function rm(e,t,n){if(!xn(n))return!1;var r=typeof t;return(r=="number"?Es(n)&&Hu(t,n.length):r=="string"&&t in n)?Fo(n[t],e):!1}function om(e){return tm(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&&rm(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function vb(e,t){var n=this.__data__,r=jo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function At(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:Ib(e,t,n)}var Bb="\\ud800-\\udfff",kb="\\u0300-\\u036f",Mb="\\ufe20-\\ufe2f",Lb="\\u20d0-\\u20ff",Hb=kb+Mb+Lb,Fb="\\ufe0e\\ufe0f",jb="\\u200d",Db=RegExp("["+jb+Bb+Hb+Fb+"]");function Yu(e){return Db.test(e)}function Nb(e){return e.split("")}var Zu="\\ud800-\\udfff",Wb="\\u0300-\\u036f",Vb="\\ufe20-\\ufe2f",Ub="\\u20d0-\\u20ff",Kb=Wb+Vb+Ub,Gb="\\ufe0e\\ufe0f",qb="["+Zu+"]",Mi="["+Kb+"]",Li="\\ud83c[\\udffb-\\udfff]",Xb="(?:"+Mi+"|"+Li+")",Ju="[^"+Zu+"]",Qu="(?:\\ud83c[\\udde6-\\uddff]){2}",ef="[\\ud800-\\udbff][\\udc00-\\udfff]",Yb="\\u200d",tf=Xb+"?",nf="["+Gb+"]?",Zb="(?:"+Yb+"(?:"+[Ju,Qu,ef].join("|")+")"+nf+tf+")*",Jb=nf+tf+Zb,Qb="(?:"+[Ju+Mi+"?",Mi,Qu,ef,qb].join("|")+")",e0=RegExp(Li+"(?="+Li+")|"+Qb+Jb,"g");function t0(e){return e.match(e0)||[]}function n0(e){return Yu(e)?t0(e):Nb(e)}function r0(e){return function(t){t=_b(t);var n=Yu(t)?n0(t):void 0,r=n?n[0]:t.charAt(0),o=n?zb(n,1).join(""):t.slice(1);return r[e]()+o}}var o0=r0("toUpperCase");const i0=o0;function s0(){this.__data__=new At,this.size=0}function l0(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function a0(e){return this.__data__.get(e)}function c0(e){return this.__data__.has(e)}var u0=200;function f0(e,t){var n=this.__data__;if(n instanceof At){var r=n.__data__;if(!Gu||r.length`}function Cg(e,t){const n=Ae(wu,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(xg(e,t)))}const wg=typeof document<"u";function Fo(){if(wg)return;const e=Ae(wu,null);if(e!==null)return{adapter:Cg,context:e}}function Ll(e,t){console.error(`[vueuc/${e}]: ${t}`)}function Hl(e){return typeof e=="string"?document.querySelector(e):e()}const Sg=Re({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:ng(Pt(e,"show")),mergedTo:Y(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Ml("lazy-teleport",this.$slots):E(Fc,{disabled:this.disabled,to:this.mergedTo},Ml("lazy-teleport",this.$slots)):null}});var fn=[],_g=function(){return fn.some(function(e){return e.activeTargets.length>0})},$g=function(){return fn.some(function(e){return e.skippedTargets.length>0})},Fl="ResizeObserver loop completed with undelivered notifications.",Eg=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Fl}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Fl),window.dispatchEvent(e)},Pr;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Pr||(Pr={}));var dn=function(e){return Object.freeze(e)},Rg=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,dn(this)}return e}(),Su=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}(),Cs=function(e){return e instanceof SVGElement&&"getBBox"in e},_u=function(e){if(Cs(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)},jl=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)},Pg=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:{},Qr=new WeakMap,Dl=/auto|scroll/,Tg=/^tb|vertical/,Og=/msie|trident/i.test(hr.navigator&&hr.navigator.userAgent),vt=function(e){return parseFloat(e||"0")},In=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Rg((n?t:e)||0,(n?e:t)||0)},Nl=dn({devicePixelContentBoxSize:In(),borderBoxSize:In(),contentBoxSize:In(),contentRect:new Su(0,0,0,0)}),$u=function(e,t){if(t===void 0&&(t=!1),Qr.has(e)&&!t)return Qr.get(e);if(_u(e))return Qr.set(e,Nl),Nl;var n=getComputedStyle(e),r=Cs(e)&&e.ownerSVGElement&&e.getBBox(),o=!Og&&n.boxSizing==="border-box",i=Tg.test(n.writingMode||""),s=!r&&Dl.test(n.overflowY||""),l=!r&&Dl.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),C=r?0:vt(n.borderLeftWidth),y=f+c,m=a+u,S=C+v,k=d+p,R=l?e.offsetHeight-k-e.clientHeight:0,$=s?e.offsetWidth-S-e.clientWidth:0,_=o?y+S:0,b=o?m+k:0,x=r?r.width:vt(n.width)-_-$,P=r?r.height:vt(n.height)-b-R,F=x+y+$+S,W=P+m+R+k,z=dn({devicePixelContentBoxSize:In(Math.round(x*devicePixelRatio),Math.round(P*devicePixelRatio),i),borderBoxSize:In(F,W,i),contentBoxSize:In(x,P,i),contentRect:new Su(f,a,x,P)});return Qr.set(e,z),z},Eu=function(e,t,n){var r=$u(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Pr.DEVICE_PIXEL_CONTENT_BOX:return s;case Pr.BORDER_BOX:return o;default:return i}},Ag=function(){function e(t){var n=$u(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}(),Ru=function(e){if(_u(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Ig=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 Ag(c.target),f=Ru(c.target);l.push(u),c.lastReportedSize=Eu(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},zg=function(){var e=0;for(Wl(e);_g();)e=Ig(),Wl(e);return $g()&&Eg(),e>0},si,Pu=[],Bg=function(){return Pu.splice(0).forEach(function(e){return e()})},kg=function(e){if(!si){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Bg()}).observe(n,r),si=function(){n.textContent="".concat(t?t--:t++)}}Pu.push(e),si()},Mg=function(e){kg(function(){requestAnimationFrame(e)})},ao=0,Lg=function(){return!!ao},Hg=250,Fg={attributes:!0,characterData:!0,childList:!0,subtree:!0},Vl=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ul=function(e){return e===void 0&&(e=0),Date.now()+e},li=!1,jg=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=Hg),!li){li=!0;var r=Ul(t);Mg(function(){var o=!1;try{o=zg()}finally{if(li=!1,t=r-Ul(),!Lg())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,Fg)};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(),Vl.forEach(function(n){return hr.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Vl.forEach(function(n){return hr.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),ki=new jg,Kl=function(e){!ao&&e>0&&ki.start(),ao+=e,!ao&&ki.stop()},Dg=function(e){return!Cs(e)&&!Pg(e)&&getComputedStyle(e).display==="inline"},Ng=function(){function e(t,n){this.target=t,this.observedBox=n||Pr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Eu(this.target,this.observedBox,!0);return Dg(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Wg=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),eo=new WeakMap,Gl=function(e,t){for(var n=0;n=0&&(i&&fn.splice(fn.indexOf(r),1),r.observationTargets.splice(o,1),Kl(-1))},e.disconnect=function(t){var n=this,r=eo.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Vg=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.");to.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(!jl(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");to.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(!jl(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");to.unobserve(this,t)},e.prototype.disconnect=function(){to.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Ug{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Vg)(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 ql=new Ug,Xl=Re({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Bo().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Xt(()=>{const o=n.$el;if(o===void 0){Ll("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Ll("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(ql.registerHandler(o.nextElementSibling,r),t=!0)}),pt(()=>{t&&ql.unregisterHandler(n.$el.nextElementSibling)})},render(){return Gd(this.$slots,"default")}});function Tu(e){return e instanceof HTMLElement}function Ou(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(Tu(n)&&(Iu(n)||Au(n)))return!0}return!1}function Iu(e){if(!Kg(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Kg(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 er=[];const Gg=Re({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=ys(),n=re(null),r=re(null);let o=!1,i=!1;const s=typeof document>"u"?null:document.activeElement;function l(){return er[er.length-1]===t}function a(y){var m;y.code==="Escape"&&l()&&((m=e.onEsc)===null||m===void 0||m.call(e,y))}Xt(()=>{dt(()=>e.active,y=>{y?(f(),at("keydown",document,a)):(qe("keydown",document,a),o&&d())},{immediate:!0})}),pt(()=>{qe("keydown",document,a),o&&d()});function c(y){if(!i&&l()){const m=u();if(m===null||m.contains(ms(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(er.push(t),e.autoFocus){const{initialFocusTo:m}=e;m===void 0?v("first"):(y=Hl(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),er=er.filter(S=>S!==t),l()))return;const{finalFocusTo:m}=e;m!==void 0?(y=Hl(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 k=u();if(k==null||k===S){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const R=y==="first"?Ou(k):Au(k);i=!1,R||(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 C(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:C}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return E(Me,null,[E("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),E("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let En=0,Yl="",Zl="",Jl="",Ql="";const ea=re("0px");function qg(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=Yl,t.style.overflow=Zl,t.style.overflowX=Jl,t.style.overflowY=Ql,ea.value="0px"};Xt(()=>{n=dt(e,i=>{if(i){if(!En){const s=window.innerWidth-t.offsetWidth;s>0&&(Yl=t.style.marginRight,t.style.marginRight=`${s}px`,ea.value=`${s}px`),Zl=t.style.overflow,Jl=t.style.overflowX,Ql=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})}),pt(()=>{n==null||n(),r&&(En--,En||o(),r=!1)})}const ws=re(!1),ta=()=>{ws.value=!0},na=()=>{ws.value=!1};let tr=0;const Xg=()=>(kr&&(yn(()=>{tr||(window.addEventListener("compositionstart",ta),window.addEventListener("compositionend",na)),tr++}),pt(()=>{tr<=1?(window.removeEventListener("compositionstart",ta),window.removeEventListener("compositionend",na),tr=0):tr--})),ws);function Yg(e){const t={isDeactivated:!1};let n=!1;return $c(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Ec(()=>{t.isDeactivated=!0,n||(n=!0)}),t}const ra="n-form-item";function Zg(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Ae(ra,null);Xe(ra,null);const i=Y(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=Y(r?()=>r(o):()=>{const{disabled:a}=e;return a!==void 0?a:o?o.disabled.value:!1}),l=Y(()=>{const{status:a}=e;return a||(o==null?void 0:o.mergedValidationStatus.value)});return pt(()=>{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 Jg=typeof global=="object"&&global&&global.Object===Object&&global;const zu=Jg;var Qg=typeof self=="object"&&self&&self.Object===Object&&self,ev=zu||Qg||Function("return this")();const Vn=ev;var tv=Vn.Symbol;const Hn=tv;var Bu=Object.prototype,nv=Bu.hasOwnProperty,rv=Bu.toString,nr=Hn?Hn.toStringTag:void 0;function ov(e){var t=nv.call(e,nr),n=e[nr];try{e[nr]=void 0;var r=!0}catch{}var o=rv.call(e);return r&&(t?e[nr]=n:delete e[nr]),o}var iv=Object.prototype,sv=iv.toString;function lv(e){return sv.call(e)}var av="[object Null]",cv="[object Undefined]",oa=Hn?Hn.toStringTag:void 0;function Mr(e){return e==null?e===void 0?cv:av:oa&&oa in Object(e)?ov(e):lv(e)}function Un(e){return e!=null&&typeof e=="object"}var uv="[object Symbol]";function fv(e){return typeof e=="symbol"||Un(e)&&Mr(e)==uv}function dv(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=Lv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Dv(e){return function(){return e}}var Nv=function(){try{var e=_s(Object,"defineProperty");return e({},"",{}),e}catch{}}();const xo=Nv;var Wv=xo?function(e,t){return xo(e,"toString",{configurable:!0,enumerable:!1,value:Dv(t),writable:!0})}:Mu;const Vv=Wv;var Uv=jv(Vv);const Kv=Uv;var Gv=9007199254740991,qv=/^(?:0|[1-9]\d*)$/;function Lu(e,t){var n=typeof e;return t=t??Gv,!!t&&(n=="number"||n!="symbol"&&qv.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=tm}function Es(e){return e!=null&&Hu(e.length)&&!Ss(e)}function nm(e,t,n){if(!xn(n))return!1;var r=typeof t;return(r=="number"?Es(n)&&Lu(t,n.length):r=="string"&&t in n)?jo(n[t],e):!1}function rm(e){return em(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&&nm(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function gb(e,t){var n=this.__data__,r=Do(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function At(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:Ab(e,t,n)}var zb="\\ud800-\\udfff",Bb="\\u0300-\\u036f",kb="\\ufe20-\\ufe2f",Mb="\\u20d0-\\u20ff",Lb=Bb+kb+Mb,Hb="\\ufe0e\\ufe0f",Fb="\\u200d",jb=RegExp("["+Fb+zb+Lb+Hb+"]");function Xu(e){return jb.test(e)}function Db(e){return e.split("")}var Yu="\\ud800-\\udfff",Nb="\\u0300-\\u036f",Wb="\\ufe20-\\ufe2f",Vb="\\u20d0-\\u20ff",Ub=Nb+Wb+Vb,Kb="\\ufe0e\\ufe0f",Gb="["+Yu+"]",Li="["+Ub+"]",Hi="\\ud83c[\\udffb-\\udfff]",qb="(?:"+Li+"|"+Hi+")",Zu="[^"+Yu+"]",Ju="(?:\\ud83c[\\udde6-\\uddff]){2}",Qu="[\\ud800-\\udbff][\\udc00-\\udfff]",Xb="\\u200d",ef=qb+"?",tf="["+Kb+"]?",Yb="(?:"+Xb+"(?:"+[Zu,Ju,Qu].join("|")+")"+tf+ef+")*",Zb=tf+ef+Yb,Jb="(?:"+[Zu+Li+"?",Li,Ju,Qu,Gb].join("|")+")",Qb=RegExp(Hi+"(?="+Hi+")|"+Jb+Zb,"g");function e0(e){return e.match(Qb)||[]}function t0(e){return Xu(e)?e0(e):Db(e)}function n0(e){return function(t){t=Sb(t);var n=Xu(t)?t0(t):void 0,r=n?n[0]:t.charAt(0),o=n?Ib(n,1).join(""):t.slice(1);return r[e]()+o}}var r0=n0("toUpperCase");const o0=r0;function i0(){this.__data__=new At,this.size=0}function s0(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function l0(e){return this.__data__.get(e)}function a0(e){return this.__data__.has(e)}var c0=200;function u0(e,t){var n=this.__data__;if(n instanceof At){var r=n.__data__;if(!Ku||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:Tr,ssr:s}),l!=null&&l.preflightStyleDisabled||sf.mount({id:"n-global",head:!0,anchorMetaName:Tr,ssr:s})};s?c():yn(c)}return Y(()=>{var c;const{theme:{common:u,self:f,peers:d={}}={},themeOverrides:v={},builtinThemeOverrides:p={}}=o,{common:C,peers:y}=v,{common:m=void 0,[e]:{common:S=void 0,self:k=void 0,peers:R={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:$=void 0,[e]:_={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:b,peers:x={}}=_,P=ir({},u||S||m||r.common,$,b,C),F=ir((c=f||k||r.self)===null||c===void 0?void 0:c(P),p,_,v);return{common:P,self:F,peers:ir({},r.peers,R,d),peerOverrides:ir({},p.peers,x,y)}})}it.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Or="n";function wn(e={},t={defaultBordered:!0}){const n=Ae(qt,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:Y(()=>{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:n?n.mergedClsPrefixRef:rs(Or),namespaceRef:Y(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function v1(){const e=Ae(qt,null);return e?e.mergedClsPrefixRef:rs(Or)}function No(e,t,n){if(!t)return;const r=Ho(),o=Ae(qt,null),i=()=>{const s=n.value;t.mount({id:s===void 0?e:s+e,head:!0,anchorMetaName:Tr,props:{bPrefix:s?`.${s}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||sf.mount({id:"n-global",head:!0,anchorMetaName:Tr,ssr:r})};r?i():yn(i)}function Gn(e,t,n,r){var o;n||Ap("useThemeClass","cssVarsRef is not passed");const i=(o=Ae(qt,null))===null||o===void 0?void 0:o.mergedThemeHashRef,s=re(""),l=Ho();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:C}=r;p&&(f+="-"+$r(JSON.stringify(p))),C&&(f+="-"+$r(JSON.stringify(C))),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 ss(()=>{u()}),{themeClass:s,onRender:()=>{a==null||a()}}}function Mr(e,t,n){if(!t)return;const r=Ho(),o=Y(()=>{const{value:s}=t;if(!s)return;const l=s[e];if(l)return l}),i=()=>{ss(()=>{const{value:s}=n,l=`${s}${e}Rtl`;if(Yp(l,r))return;const{value:a}=o;a&&a.style.mount({id:l,head:!0,anchorMetaName:Tr,props:{bPrefix:s?`.${s}-`:void 0},ssr:r})})};return r?i():yn(i),o}function Lr(e,t){return Re({name:i0(e),setup(){var n;const r=(n=Ae(qt,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 P0=Lr("close",E("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},E("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},E("g",{fill:"currentColor","fill-rule":"nonzero"},E("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"}))))),lf=Lr("error",E("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),ji=Lr("info",E("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),af=Lr("success",E("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),cf=Lr("warning",E("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),Rs=Re({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=Cu();return()=>E(Gt,{name:"icon-switch-transition",appear:n.value},t)}}),uf=Re({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?Zh:Gt,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),E(f,d,t)}}}),T0=xe("base-icon",` + `)]),qt="n-config-provider",Or="naive-ui-style";function p1(e){return e}function it(e,t,n,r,o,i){const s=Fo(),l=Ae(qt,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:Or,ssr:s}),l!=null&&l.preflightStyleDisabled||of.mount({id:"n-global",head:!0,anchorMetaName:Or,ssr:s})};s?c():yn(c)}return Y(()=>{var c;const{theme:{common:u,self:f,peers:d={}}={},themeOverrides:v={},builtinThemeOverrides:p={}}=o,{common:C,peers:y}=v,{common:m=void 0,[e]:{common:S=void 0,self:k=void 0,peers:R={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:$=void 0,[e]:_={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:b,peers:x={}}=_,P=sr({},u||S||m||r.common,$,b,C),F=sr((c=f||k||r.self)===null||c===void 0?void 0:c(P),p,_,v);return{common:P,self:F,peers:sr({},r.peers,R,d),peerOverrides:sr({},p.peers,x,y)}})}it.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Ar="n";function wn(e={},t={defaultBordered:!0}){const n=Ae(qt,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:Y(()=>{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:n?n.mergedClsPrefixRef:os(Ar),namespaceRef:Y(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function g1(){const e=Ae(qt,null);return e?e.mergedClsPrefixRef:os(Ar)}function Wo(e,t,n){if(!t)return;const r=Fo(),o=Ae(qt,null),i=()=>{const s=n.value;t.mount({id:s===void 0?e:s+e,head:!0,anchorMetaName:Or,props:{bPrefix:s?`.${s}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||of.mount({id:"n-global",head:!0,anchorMetaName:Or,ssr:r})};r?i():yn(i)}function qn(e,t,n,r){var o;n||Op("useThemeClass","cssVarsRef is not passed");const i=(o=Ae(qt,null))===null||o===void 0?void 0:o.mergedThemeHashRef,s=re(""),l=Fo();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:C}=r;p&&(f+="-"+Er(JSON.stringify(p))),C&&(f+="-"+Er(JSON.stringify(C))),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 ls(()=>{u()}),{themeClass:s,onRender:()=>{a==null||a()}}}function Lr(e,t,n){if(!t)return;const r=Fo(),o=Y(()=>{const{value:s}=t;if(!s)return;const l=s[e];if(l)return l}),i=()=>{ls(()=>{const{value:s}=n,l=`${s}${e}Rtl`;if(Xp(l,r))return;const{value:a}=o;a&&a.style.mount({id:l,head:!0,anchorMetaName:Or,props:{bPrefix:s?`.${s}-`:void 0},ssr:r})})};return r?i():yn(i),o}function Hr(e,t){return Re({name:o0(e),setup(){var n;const r=(n=Ae(qt,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 R0=Hr("close",E("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},E("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},E("g",{fill:"currentColor","fill-rule":"nonzero"},E("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"}))))),sf=Hr("error",E("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),Di=Hr("info",E("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),lf=Hr("success",E("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),af=Hr("warning",E("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},E("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},E("g",{"fill-rule":"nonzero"},E("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"}))))),Rs=Re({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=xu();return()=>E(Gt,{name:"icon-switch-transition",appear:n.value},t)}}),cf=Re({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?Yh:Gt,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),E(f,d,t)}}}),P0=xe("base-icon",` height: 1em; width: 1em; line-height: 1em; @@ -56,7 +56,7 @@ ${t} `,[D("svg",` height: 1em; width: 1em; - `)]),Ps=Re({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){No("-base-icon",T0,Pt(e,"clsPrefix"))},render(){return E("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),O0=xe("base-close",` + `)]),Ps=Re({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Wo("-base-icon",P0,Pt(e,"clsPrefix"))},render(){return E("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),T0=xe("base-close",` display: flex; align-items: center; justify-content: center; @@ -84,7 +84,7 @@ ${t} transform: translateY(-50%) translateX(-50%); transition: inherit; border-radius: inherit; - `),Ai("disabled",[D("&:hover",` + `),Ii("disabled",[D("&:hover",` color: var(--n-close-icon-color-hover); `),D("&:hover::before",` background-color: var(--n-close-color-hover); @@ -100,7 +100,7 @@ ${t} background-color: transparent; `),de("round",[D("&::before",` border-radius: 50%; - `)])]),Ts=Re({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return No("-base-close",O0,Pt(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return E(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},E(Ps,{clsPrefix:t},{default:()=>E(P0,null)}))}}}),{cubicBezierEaseInOut:A0}=Cn;function xo({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${A0} !important`}={}){return[D("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),D("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),D("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const I0=D([D("@keyframes rotator",` + `)])]),Ts=Re({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Wo("-base-close",T0,Pt(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return E(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},E(Ps,{clsPrefix:t},{default:()=>E(R0,null)}))}}}),{cubicBezierEaseInOut:O0}=Cn;function Co({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${O0} !important`}={}){return[D("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),D("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),D("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const A0=D([D("@keyframes rotator",` 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); @@ -117,17 +117,17 @@ ${t} position: absolute; width: 100%; height: 100%; - `,[xo()]),ee("placeholder",` + `,[Co()]),ee("placeholder",` position: absolute; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%); - `,[xo({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),ee("container",` + `,[Co({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),ee("container",` animation: rotator 3s linear infinite both; `,[ee("icon",` height: 1em; width: 1em; - `)])])]),ci="1.6s",z0={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},ff=Re({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}},z0),setup(e){No("-base-loading",I0,Pt(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return E("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},E(Rs,null,{default:()=>this.show?E("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},E("div",{class:`${e}-base-loading__container`},E("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},E("g",null,E("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:ci,fill:"freeze",repeatCount:"indefinite"}),E("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},E("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:ci,fill:"freeze",repeatCount:"indefinite"}),E("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:ci,fill:"freeze",repeatCount:"indefinite"})))))):E("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"},B0=hn(te.neutralBase),df=hn(te.neutralInvertBase),k0="rgba("+df.slice(0,3).join(", ")+", ";function ya(e){return k0+String(e)+")"}function Ne(e){const t=Array.from(df);return t[3]=Number(e),bs(B0,t)}const M0=Object.assign(Object.assign({name:"common"},Cn),{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:Ne(te.alpha4),placeholderColor:Ne(te.alpha4),placeholderColorDisabled:Ne(te.alpha5),iconColor:Ne(te.alpha4),iconColorHover:Gr(Ne(te.alpha4),{lightness:.75}),iconColorPressed:Gr(Ne(te.alpha4),{lightness:.9}),iconColorDisabled:Ne(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:Ne(Number(te.alphaClose)),closeIconColorHover:Ne(Number(te.alphaClose)),closeIconColorPressed:Ne(Number(te.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Ne(te.alpha4),clearColorHover:Gr(Ne(te.alpha4),{lightness:.75}),clearColorPressed:Gr(Ne(te.alpha4),{lightness:.9}),scrollbarColor:ya(te.alphaScrollbar),scrollbarColorHover:ya(te.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Ne(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:Ne(te.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Ne(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)"}),qn=M0,L0=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},H0={name:"Scrollbar",common:qn,self:L0},hf=H0,{cubicBezierEaseInOut:xa}=Cn;function pf({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=xa,leaveCubicBezier:o=xa}={}){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 F0=xe("scrollbar",` + `)])])]),ui="1.6s",I0={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},uf=Re({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}},I0),setup(e){Wo("-base-loading",A0,Pt(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return E("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},E(Rs,null,{default:()=>this.show?E("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},E("div",{class:`${e}-base-loading__container`},E("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},E("g",null,E("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:ui,fill:"freeze",repeatCount:"indefinite"}),E("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},E("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:ui,fill:"freeze",repeatCount:"indefinite"}),E("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:ui,fill:"freeze",repeatCount:"indefinite"})))))):E("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"},z0=hn(te.neutralBase),ff=hn(te.neutralInvertBase),B0="rgba("+ff.slice(0,3).join(", ")+", ";function ya(e){return B0+String(e)+")"}function Ne(e){const t=Array.from(ff);return t[3]=Number(e),bs(z0,t)}const k0=Object.assign(Object.assign({name:"common"},Cn),{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:Ne(te.alpha4),placeholderColor:Ne(te.alpha4),placeholderColorDisabled:Ne(te.alpha5),iconColor:Ne(te.alpha4),iconColorHover:qr(Ne(te.alpha4),{lightness:.75}),iconColorPressed:qr(Ne(te.alpha4),{lightness:.9}),iconColorDisabled:Ne(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:Ne(Number(te.alphaClose)),closeIconColorHover:Ne(Number(te.alphaClose)),closeIconColorPressed:Ne(Number(te.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Ne(te.alpha4),clearColorHover:qr(Ne(te.alpha4),{lightness:.75}),clearColorPressed:qr(Ne(te.alpha4),{lightness:.9}),scrollbarColor:ya(te.alphaScrollbar),scrollbarColorHover:ya(te.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Ne(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:Ne(te.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Ne(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=k0,M0=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},L0={name:"Scrollbar",common:Xn,self:M0},df=L0,{cubicBezierEaseInOut:xa}=Cn;function hf({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=xa,leaveCubicBezier:o=xa}={}){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 H0=xe("scrollbar",` overflow: hidden; position: relative; z-index: auto; @@ -177,14 +177,14 @@ ${t} pointer-events: all; background-color: var(--n-scrollbar-color); transition: background-color .2s var(--n-scrollbar-bezier); - `,[pf(),D("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),j0=Object.assign(Object.assign({},it.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,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),gf=Re({name:"Scrollbar",props:j0,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=wn(e),o=Mr("Scrollbar",r,t),i=re(null),s=re(null),l=re(null),a=re(null),c=re(null),u=re(null),f=re(null),d=re(null),v=re(null),p=re(null),C=re(null),y=re(0),m=re(0),S=re(!1),k=re(!1);let R=!1,$=!1,_,b,x=0,P=0,F=0,W=0;const z=fg(),Z=Y(()=>{const{value:L}=d,{value:G}=u,{value:le}=p;return L===null||G===null||le===null?0:Math.min(L,le*L/G+e.size*1.5)}),oe=Y(()=>`${Z.value}px`),ce=Y(()=>{const{value:L}=v,{value:G}=f,{value:le}=C;return L===null||G===null||le===null?0:le*L/G+e.size*1.5}),X=Y(()=>`${ce.value}px`),U=Y(()=>{const{value:L}=d,{value:G}=y,{value:le}=u,{value:Pe}=p;if(L===null||le===null||Pe===null)return 0;{const He=le-L;return He?G/He*(Pe-Z.value):0}}),ne=Y(()=>`${U.value}px`),Ce=Y(()=>{const{value:L}=v,{value:G}=m,{value:le}=f,{value:Pe}=C;if(L===null||le===null||Pe===null)return 0;{const He=le-L;return He?G/He*(Pe-ce.value):0}}),we=Y(()=>`${Ce.value}px`),Se=Y(()=>{const{value:L}=d,{value:G}=u;return L!==null&&G!==null&&G>L}),_e=Y(()=>{const{value:L}=v,{value:G}=f;return L!==null&&G!==null&&G>L}),Ze=Y(()=>{const{trigger:L}=e;return L==="none"||S.value}),Ue=Y(()=>{const{trigger:L}=e;return L==="none"||k.value}),Je=Y(()=>{const{container:L}=e;return L?L():s.value}),fe=Y(()=>{const{content:L}=e;return L?L():l.value}),T=Zg(()=>{e.container||q({top:y.value,left:m.value})}),V=()=>{T.isDeactivated||J()},B=L=>{if(T.isDeactivated)return;const{onResize:G}=e;G&&G(L),J()},q=(L,G)=>{if(!e.scrollable)return;if(typeof L=="number"){ve(G??0,L,0,!1,"auto");return}const{left:le,top:Pe,index:He,elSize:Qe,position:Ct,behavior:ze,el:wt,debounce:Yn=!0}=L;(le!==void 0||Pe!==void 0)&&ve(le??0,Pe??0,0,!1,ze),wt!==void 0?ve(0,wt.offsetTop,wt.offsetHeight,Yn,ze):He!==void 0&&Qe!==void 0?ve(0,He*Qe,Qe,Yn,ze):Ct==="bottom"?ve(0,Number.MAX_SAFE_INTEGER,0,!1,ze):Ct==="top"&&ve(0,0,0,!1,ze)},pe=(L,G)=>{if(!e.scrollable)return;const{value:le}=Je;le&&(typeof L=="object"?le.scrollBy(L):le.scrollBy(L,G||0))};function ve(L,G,le,Pe,He){const{value:Qe}=Je;if(Qe){if(Pe){const{scrollTop:Ct,offsetHeight:ze}=Qe;if(G>Ct){G+le<=Ct+ze||Qe.scrollTo({left:L,top:G+le-ze,behavior:He});return}}Qe.scrollTo({left:L,top:G,behavior:He})}}function h(){j(),N(),J()}function g(){w()}function w(){A(),O()}function A(){b!==void 0&&window.clearTimeout(b),b=window.setTimeout(()=>{k.value=!1},e.duration)}function O(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{S.value=!1},e.duration)}function j(){_!==void 0&&window.clearTimeout(_),S.value=!0}function N(){b!==void 0&&window.clearTimeout(b),k.value=!0}function I(L){const{onScroll:G}=e;G&&G(L),H()}function H(){const{value:L}=Je;L&&(y.value=L.scrollTop,m.value=L.scrollLeft*(o!=null&&o.value?-1:1))}function M(){const{value:L}=fe;L&&(u.value=L.offsetHeight,f.value=L.offsetWidth);const{value:G}=Je;G&&(d.value=G.offsetHeight,v.value=G.offsetWidth);const{value:le}=c,{value:Pe}=a;le&&(C.value=le.offsetWidth),Pe&&(p.value=Pe.offsetHeight)}function K(){const{value:L}=Je;L&&(y.value=L.scrollTop,m.value=L.scrollLeft*(o!=null&&o.value?-1:1),d.value=L.offsetHeight,v.value=L.offsetWidth,u.value=L.scrollHeight,f.value=L.scrollWidth);const{value:G}=c,{value:le}=a;G&&(C.value=G.offsetWidth),le&&(p.value=le.offsetHeight)}function J(){e.scrollable&&(e.useUnifiedContainer?K():(M(),H()))}function Q(L){var G;return!(!((G=i.value)===null||G===void 0)&&G.contains(ms(L)))}function ae(L){L.preventDefault(),L.stopPropagation(),$=!0,at("mousemove",window,he,!0),at("mouseup",window,be,!0),P=m.value,F=o!=null&&o.value?window.innerWidth-L.clientX:L.clientX}function he(L){if(!$)return;_!==void 0&&window.clearTimeout(_),b!==void 0&&window.clearTimeout(b);const{value:G}=v,{value:le}=f,{value:Pe}=ce;if(G===null||le===null)return;const Qe=(o!=null&&o.value?window.innerWidth-L.clientX-F:L.clientX-F)*(le-G)/(G-Pe),Ct=le-G;let ze=P+Qe;ze=Math.min(Ct,ze),ze=Math.max(ze,0);const{value:wt}=Je;if(wt){wt.scrollLeft=ze*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:Yn}=e;Yn&&Yn(ze)}}function be(L){L.preventDefault(),L.stopPropagation(),qe("mousemove",window,he,!0),qe("mouseup",window,be,!0),$=!1,J(),Q(L)&&w()}function $e(L){L.preventDefault(),L.stopPropagation(),R=!0,at("mousemove",window,Ie,!0),at("mouseup",window,Ke,!0),x=y.value,W=L.clientY}function Ie(L){if(!R)return;_!==void 0&&window.clearTimeout(_),b!==void 0&&window.clearTimeout(b);const{value:G}=d,{value:le}=u,{value:Pe}=Z;if(G===null||le===null)return;const Qe=(L.clientY-W)*(le-G)/(G-Pe),Ct=le-G;let ze=x+Qe;ze=Math.min(Ct,ze),ze=Math.max(ze,0);const{value:wt}=Je;wt&&(wt.scrollTop=ze)}function Ke(L){L.preventDefault(),L.stopPropagation(),qe("mousemove",window,Ie,!0),qe("mouseup",window,Ke,!0),R=!1,J(),Q(L)&&w()}ss(()=>{const{value:L}=_e,{value:G}=Se,{value:le}=t,{value:Pe}=c,{value:He}=a;Pe&&(L?Pe.classList.remove(`${le}-scrollbar-rail--disabled`):Pe.classList.add(`${le}-scrollbar-rail--disabled`)),He&&(G?He.classList.remove(`${le}-scrollbar-rail--disabled`):He.classList.add(`${le}-scrollbar-rail--disabled`))}),Xt(()=>{e.container||J()}),pt(()=>{_!==void 0&&window.clearTimeout(_),b!==void 0&&window.clearTimeout(b),qe("mousemove",window,Ie,!0),qe("mouseup",window,Ke,!0)});const It=it("Scrollbar","-scrollbar",F0,hf,e,t),Xn=Y(()=>{const{common:{cubicBezierEaseInOut:L,scrollbarBorderRadius:G,scrollbarHeight:le,scrollbarWidth:Pe},self:{color:He,colorHover:Qe}}=It.value;return{"--n-scrollbar-bezier":L,"--n-scrollbar-color":He,"--n-scrollbar-color-hover":Qe,"--n-scrollbar-border-radius":G,"--n-scrollbar-width":Pe,"--n-scrollbar-height":le}}),st=n?Gn("scrollbar",void 0,Xn,e):void 0;return Object.assign(Object.assign({},{scrollTo:q,scrollBy:pe,sync:J,syncUnifiedContainer:K,handleMouseEnterWrapper:h,handleMouseLeaveWrapper:g}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:y,wrapperRef:i,containerRef:s,contentRef:l,yRailRef:a,xRailRef:c,needYBar:Se,needXBar:_e,yBarSizePx:oe,xBarSizePx:X,yBarTopPx:ne,xBarLeftPx:we,isShowXBar:Ze,isShowYBar:Ue,isIos:z,handleScroll:I,handleContentResize:V,handleContainerResize:B,handleYScrollMouseDown:$e,handleXScrollMouseDown:ae,cssVars:n?void 0:Xn,themeClass:st==null?void 0:st.themeClass,onRender:st==null?void 0:st.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=(u,f)=>E("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`,u],"data-scrollbar-rail":!0,style:[f||"",this.verticalRailStyle],"aria-hiddens":!0},E(s?Rl:Gt,s?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?E("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),E("div",gs(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):E("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},E(Xl,{onResize:this.handleContentResize},{default:()=>E("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(void 0,void 0),this.xScrollable&&E("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},E(s?Rl:Gt,s?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?E("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():E(Xl,{onResize:this.handleContainerResize},{default:a});return i?E(Me,null,c,l(this.themeClass,this.cssVars)):c}}),D0=gf,m1=gf,{cubicBezierEaseIn:Ca,cubicBezierEaseOut:wa}=Cn;function N0({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} ${Ca}, transform ${t} ${Ca} ${o&&","+o}`}),D("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${wa}, transform ${t} ${wa} ${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 W0=xe("base-wave",` + `,[hf(),D("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),F0=Object.assign(Object.assign({},it.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,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),pf=Re({name:"Scrollbar",props:F0,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=wn(e),o=Lr("Scrollbar",r,t),i=re(null),s=re(null),l=re(null),a=re(null),c=re(null),u=re(null),f=re(null),d=re(null),v=re(null),p=re(null),C=re(null),y=re(0),m=re(0),S=re(!1),k=re(!1);let R=!1,$=!1,_,b,x=0,P=0,F=0,W=0;const z=ug(),Z=Y(()=>{const{value:L}=d,{value:G}=u,{value:le}=p;return L===null||G===null||le===null?0:Math.min(L,le*L/G+e.size*1.5)}),oe=Y(()=>`${Z.value}px`),ce=Y(()=>{const{value:L}=v,{value:G}=f,{value:le}=C;return L===null||G===null||le===null?0:le*L/G+e.size*1.5}),X=Y(()=>`${ce.value}px`),U=Y(()=>{const{value:L}=d,{value:G}=y,{value:le}=u,{value:Pe}=p;if(L===null||le===null||Pe===null)return 0;{const He=le-L;return He?G/He*(Pe-Z.value):0}}),ne=Y(()=>`${U.value}px`),Ce=Y(()=>{const{value:L}=v,{value:G}=m,{value:le}=f,{value:Pe}=C;if(L===null||le===null||Pe===null)return 0;{const He=le-L;return He?G/He*(Pe-ce.value):0}}),we=Y(()=>`${Ce.value}px`),Se=Y(()=>{const{value:L}=d,{value:G}=u;return L!==null&&G!==null&&G>L}),_e=Y(()=>{const{value:L}=v,{value:G}=f;return L!==null&&G!==null&&G>L}),Ze=Y(()=>{const{trigger:L}=e;return L==="none"||S.value}),Ue=Y(()=>{const{trigger:L}=e;return L==="none"||k.value}),Je=Y(()=>{const{container:L}=e;return L?L():s.value}),fe=Y(()=>{const{content:L}=e;return L?L():l.value}),T=Yg(()=>{e.container||q({top:y.value,left:m.value})}),V=()=>{T.isDeactivated||J()},B=L=>{if(T.isDeactivated)return;const{onResize:G}=e;G&&G(L),J()},q=(L,G)=>{if(!e.scrollable)return;if(typeof L=="number"){ve(G??0,L,0,!1,"auto");return}const{left:le,top:Pe,index:He,elSize:Qe,position:Ct,behavior:ze,el:wt,debounce:Zn=!0}=L;(le!==void 0||Pe!==void 0)&&ve(le??0,Pe??0,0,!1,ze),wt!==void 0?ve(0,wt.offsetTop,wt.offsetHeight,Zn,ze):He!==void 0&&Qe!==void 0?ve(0,He*Qe,Qe,Zn,ze):Ct==="bottom"?ve(0,Number.MAX_SAFE_INTEGER,0,!1,ze):Ct==="top"&&ve(0,0,0,!1,ze)},pe=(L,G)=>{if(!e.scrollable)return;const{value:le}=Je;le&&(typeof L=="object"?le.scrollBy(L):le.scrollBy(L,G||0))};function ve(L,G,le,Pe,He){const{value:Qe}=Je;if(Qe){if(Pe){const{scrollTop:Ct,offsetHeight:ze}=Qe;if(G>Ct){G+le<=Ct+ze||Qe.scrollTo({left:L,top:G+le-ze,behavior:He});return}}Qe.scrollTo({left:L,top:G,behavior:He})}}function h(){j(),N(),J()}function g(){w()}function w(){A(),O()}function A(){b!==void 0&&window.clearTimeout(b),b=window.setTimeout(()=>{k.value=!1},e.duration)}function O(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{S.value=!1},e.duration)}function j(){_!==void 0&&window.clearTimeout(_),S.value=!0}function N(){b!==void 0&&window.clearTimeout(b),k.value=!0}function I(L){const{onScroll:G}=e;G&&G(L),H()}function H(){const{value:L}=Je;L&&(y.value=L.scrollTop,m.value=L.scrollLeft*(o!=null&&o.value?-1:1))}function M(){const{value:L}=fe;L&&(u.value=L.offsetHeight,f.value=L.offsetWidth);const{value:G}=Je;G&&(d.value=G.offsetHeight,v.value=G.offsetWidth);const{value:le}=c,{value:Pe}=a;le&&(C.value=le.offsetWidth),Pe&&(p.value=Pe.offsetHeight)}function K(){const{value:L}=Je;L&&(y.value=L.scrollTop,m.value=L.scrollLeft*(o!=null&&o.value?-1:1),d.value=L.offsetHeight,v.value=L.offsetWidth,u.value=L.scrollHeight,f.value=L.scrollWidth);const{value:G}=c,{value:le}=a;G&&(C.value=G.offsetWidth),le&&(p.value=le.offsetHeight)}function J(){e.scrollable&&(e.useUnifiedContainer?K():(M(),H()))}function Q(L){var G;return!(!((G=i.value)===null||G===void 0)&&G.contains(ms(L)))}function ae(L){L.preventDefault(),L.stopPropagation(),$=!0,at("mousemove",window,he,!0),at("mouseup",window,be,!0),P=m.value,F=o!=null&&o.value?window.innerWidth-L.clientX:L.clientX}function he(L){if(!$)return;_!==void 0&&window.clearTimeout(_),b!==void 0&&window.clearTimeout(b);const{value:G}=v,{value:le}=f,{value:Pe}=ce;if(G===null||le===null)return;const Qe=(o!=null&&o.value?window.innerWidth-L.clientX-F:L.clientX-F)*(le-G)/(G-Pe),Ct=le-G;let ze=P+Qe;ze=Math.min(Ct,ze),ze=Math.max(ze,0);const{value:wt}=Je;if(wt){wt.scrollLeft=ze*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:Zn}=e;Zn&&Zn(ze)}}function be(L){L.preventDefault(),L.stopPropagation(),qe("mousemove",window,he,!0),qe("mouseup",window,be,!0),$=!1,J(),Q(L)&&w()}function $e(L){L.preventDefault(),L.stopPropagation(),R=!0,at("mousemove",window,Ie,!0),at("mouseup",window,Ke,!0),x=y.value,W=L.clientY}function Ie(L){if(!R)return;_!==void 0&&window.clearTimeout(_),b!==void 0&&window.clearTimeout(b);const{value:G}=d,{value:le}=u,{value:Pe}=Z;if(G===null||le===null)return;const Qe=(L.clientY-W)*(le-G)/(G-Pe),Ct=le-G;let ze=x+Qe;ze=Math.min(Ct,ze),ze=Math.max(ze,0);const{value:wt}=Je;wt&&(wt.scrollTop=ze)}function Ke(L){L.preventDefault(),L.stopPropagation(),qe("mousemove",window,Ie,!0),qe("mouseup",window,Ke,!0),R=!1,J(),Q(L)&&w()}ls(()=>{const{value:L}=_e,{value:G}=Se,{value:le}=t,{value:Pe}=c,{value:He}=a;Pe&&(L?Pe.classList.remove(`${le}-scrollbar-rail--disabled`):Pe.classList.add(`${le}-scrollbar-rail--disabled`)),He&&(G?He.classList.remove(`${le}-scrollbar-rail--disabled`):He.classList.add(`${le}-scrollbar-rail--disabled`))}),Xt(()=>{e.container||J()}),pt(()=>{_!==void 0&&window.clearTimeout(_),b!==void 0&&window.clearTimeout(b),qe("mousemove",window,Ie,!0),qe("mouseup",window,Ke,!0)});const It=it("Scrollbar","-scrollbar",H0,df,e,t),Yn=Y(()=>{const{common:{cubicBezierEaseInOut:L,scrollbarBorderRadius:G,scrollbarHeight:le,scrollbarWidth:Pe},self:{color:He,colorHover:Qe}}=It.value;return{"--n-scrollbar-bezier":L,"--n-scrollbar-color":He,"--n-scrollbar-color-hover":Qe,"--n-scrollbar-border-radius":G,"--n-scrollbar-width":Pe,"--n-scrollbar-height":le}}),st=n?qn("scrollbar",void 0,Yn,e):void 0;return Object.assign(Object.assign({},{scrollTo:q,scrollBy:pe,sync:J,syncUnifiedContainer:K,handleMouseEnterWrapper:h,handleMouseLeaveWrapper:g}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:y,wrapperRef:i,containerRef:s,contentRef:l,yRailRef:a,xRailRef:c,needYBar:Se,needXBar:_e,yBarSizePx:oe,xBarSizePx:X,yBarTopPx:ne,xBarLeftPx:we,isShowXBar:Ze,isShowYBar:Ue,isIos:z,handleScroll:I,handleContentResize:V,handleContainerResize:B,handleYScrollMouseDown:$e,handleXScrollMouseDown:ae,cssVars:n?void 0:Yn,themeClass:st==null?void 0:st.themeClass,onRender:st==null?void 0:st.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=(u,f)=>E("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`,u],"data-scrollbar-rail":!0,style:[f||"",this.verticalRailStyle],"aria-hiddens":!0},E(s?Rl:Gt,s?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?E("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),E("div",vs(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):E("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},E(Xl,{onResize:this.handleContentResize},{default:()=>E("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(void 0,void 0),this.xScrollable&&E("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},E(s?Rl:Gt,s?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?E("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():E(Xl,{onResize:this.handleContainerResize},{default:a});return i?E(Me,null,c,l(this.themeClass,this.cssVars)):c}}),j0=pf,v1=pf,{cubicBezierEaseIn:Ca,cubicBezierEaseOut:wa}=Cn;function D0({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} ${Ca}, transform ${t} ${Ca} ${o&&","+o}`}),D("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${wa}, transform ${t} ${wa} ${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 N0=xe("base-wave",` position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: inherit; -`),V0=Re({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){No("-base-wave",W0,Pt(e,"clsPrefix"));const t=re(null),n=re(!1);let r=null;return pt(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),kn(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return E("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),{cubicBezierEaseInOut:kt}=Cn;function U0({duration:e=".2s",delay:t=".1s"}={}){return[D("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),D("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` +`),W0=Re({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Wo("-base-wave",N0,Pt(e,"clsPrefix"));const t=re(null),n=re(!1);let r=null;return pt(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),Mn(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return E("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),{cubicBezierEaseInOut:kt}=Cn;function V0({duration:e=".2s",delay:t=".1s"}={}){return[D("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),D("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` opacity: 0!important; margin-left: 0!important; margin-right: 0!important; @@ -202,13 +202,13 @@ ${t} max-width ${e} ${kt}, margin-left ${e} ${kt}, margin-right ${e} ${kt}; - `)]}const{cubicBezierEaseInOut:mt,cubicBezierEaseOut:K0,cubicBezierEaseIn:G0}=Cn;function q0({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:s=void 0,reverse:l=!1}={}){const a=l?"leave":"enter",c=l?"enter":"leave";return[D(`&.fade-in-height-expand-transition-${c}-from, + `)]}const{cubicBezierEaseInOut:mt,cubicBezierEaseOut:U0,cubicBezierEaseIn:K0}=Cn;function G0({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:s=void 0,reverse:l=!1}={}){const a=l?"leave":"enter",c=l?"enter":"leave";return[D(`&.fade-in-height-expand-transition-${c}-from, &.fade-in-height-expand-transition-${a}-to`,Object.assign(Object.assign({},i),{opacity:1})),D(`&.fade-in-height-expand-transition-${c}-to, &.fade-in-height-expand-transition-${a}-from`,Object.assign(Object.assign({},s),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),D(`&.fade-in-height-expand-transition-${c}-active`,` overflow: ${e}; transition: max-height ${t} ${mt} ${r}, - opacity ${t} ${K0} ${r}, + opacity ${t} ${U0} ${r}, margin-top ${t} ${mt} ${r}, margin-bottom ${t} ${mt} ${r}, padding-top ${t} ${mt} ${r}, @@ -218,13 +218,13 @@ ${t} overflow: ${e}; transition: max-height ${t} ${mt}, - opacity ${t} ${G0}, + opacity ${t} ${K0}, margin-top ${t} ${mt}, margin-bottom ${t} ${mt}, padding-top ${t} ${mt}, padding-bottom ${t} ${mt} ${n?","+n:""} - `)]}const X0=Br&&"chrome"in window;Br&&navigator.userAgent.includes("Firefox");const Y0=Br&&navigator.userAgent.includes("Safari")&&!X0;function Qt(e){return bs(e,[255,255,255,.16])}function to(e){return bs(e,[0,0,0,.12])}const Z0="n-button-group",J0={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"},Q0=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:C,primaryColor:y,baseColor:m,infoColor:S,infoColorHover:k,infoColorPressed:R,successColor:$,successColorHover:_,successColorPressed:b,warningColor:x,warningColorHover:P,warningColorPressed:F,errorColor:W,errorColorHover:z,errorColorPressed:Z,fontWeight:oe,buttonColor2:ce,buttonColor2Hover:X,buttonColor2Pressed:U,fontWeightStrong:ne}=e;return Object.assign(Object.assign({},J0),{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:ce,colorSecondaryHover:X,colorSecondaryPressed:U,colorTertiary:ce,colorTertiaryHover:X,colorTertiaryPressed:U,colorQuaternary:"#0000",colorQuaternaryHover:X,colorQuaternaryPressed:U,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 ${C}`,borderHover:`1px solid ${v}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${v}`,borderDisabled:`1px solid ${C}`,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:k,colorPressedInfo:R,colorFocusInfo:k,colorDisabledInfo:S,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:S,textColorTextHoverInfo:k,textColorTextPressedInfo:R,textColorTextFocusInfo:k,textColorTextDisabledInfo:f,textColorGhostInfo:S,textColorGhostHoverInfo:k,textColorGhostPressedInfo:R,textColorGhostFocusInfo:k,textColorGhostDisabledInfo:S,borderInfo:`1px solid ${S}`,borderHoverInfo:`1px solid ${k}`,borderPressedInfo:`1px solid ${R}`,borderFocusInfo:`1px solid ${k}`,borderDisabledInfo:`1px solid ${S}`,rippleColorInfo:S,colorSuccess:$,colorHoverSuccess:_,colorPressedSuccess:b,colorFocusSuccess:_,colorDisabledSuccess:$,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:$,textColorTextHoverSuccess:_,textColorTextPressedSuccess:b,textColorTextFocusSuccess:_,textColorTextDisabledSuccess:f,textColorGhostSuccess:$,textColorGhostHoverSuccess:_,textColorGhostPressedSuccess:b,textColorGhostFocusSuccess:_,textColorGhostDisabledSuccess:$,borderSuccess:`1px solid ${$}`,borderHoverSuccess:`1px solid ${_}`,borderPressedSuccess:`1px solid ${b}`,borderFocusSuccess:`1px solid ${_}`,borderDisabledSuccess:`1px solid ${$}`,rippleColorSuccess:$,colorWarning:x,colorHoverWarning:P,colorPressedWarning:F,colorFocusWarning:P,colorDisabledWarning:x,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:x,textColorTextHoverWarning:P,textColorTextPressedWarning:F,textColorTextFocusWarning:P,textColorTextDisabledWarning:f,textColorGhostWarning:x,textColorGhostHoverWarning:P,textColorGhostPressedWarning:F,textColorGhostFocusWarning:P,textColorGhostDisabledWarning:x,borderWarning:`1px solid ${x}`,borderHoverWarning:`1px solid ${P}`,borderPressedWarning:`1px solid ${F}`,borderFocusWarning:`1px solid ${P}`,borderDisabledWarning:`1px solid ${x}`,rippleColorWarning:x,colorError:W,colorHoverError:z,colorPressedError:Z,colorFocusError:z,colorDisabledError:W,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:W,textColorTextHoverError:z,textColorTextPressedError:Z,textColorTextFocusError:z,textColorTextDisabledError:f,textColorGhostError:W,textColorGhostHoverError:z,textColorGhostPressedError:Z,textColorGhostFocusError:z,textColorGhostDisabledError:W,borderError:`1px solid ${W}`,borderHoverError:`1px solid ${z}`,borderPressedError:`1px solid ${Z}`,borderFocusError:`1px solid ${z}`,borderDisabledError:`1px solid ${W}`,rippleColorError:W,waveOpacity:"0.6",fontWeight:oe,fontWeightStrong:ne})},ey={name:"Button",common:qn,self:Q0},vf=ey,ty=D([xe("button",` + `)]}const q0=kr&&"chrome"in window;kr&&navigator.userAgent.includes("Firefox");const X0=kr&&navigator.userAgent.includes("Safari")&&!q0;function Qt(e){return bs(e,[255,255,255,.16])}function no(e){return bs(e,[0,0,0,.12])}const Y0="n-button-group",Z0={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"},J0=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:C,primaryColor:y,baseColor:m,infoColor:S,infoColorHover:k,infoColorPressed:R,successColor:$,successColorHover:_,successColorPressed:b,warningColor:x,warningColorHover:P,warningColorPressed:F,errorColor:W,errorColorHover:z,errorColorPressed:Z,fontWeight:oe,buttonColor2:ce,buttonColor2Hover:X,buttonColor2Pressed:U,fontWeightStrong:ne}=e;return Object.assign(Object.assign({},Z0),{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:ce,colorSecondaryHover:X,colorSecondaryPressed:U,colorTertiary:ce,colorTertiaryHover:X,colorTertiaryPressed:U,colorQuaternary:"#0000",colorQuaternaryHover:X,colorQuaternaryPressed:U,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 ${C}`,borderHover:`1px solid ${v}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${v}`,borderDisabled:`1px solid ${C}`,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:k,colorPressedInfo:R,colorFocusInfo:k,colorDisabledInfo:S,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:S,textColorTextHoverInfo:k,textColorTextPressedInfo:R,textColorTextFocusInfo:k,textColorTextDisabledInfo:f,textColorGhostInfo:S,textColorGhostHoverInfo:k,textColorGhostPressedInfo:R,textColorGhostFocusInfo:k,textColorGhostDisabledInfo:S,borderInfo:`1px solid ${S}`,borderHoverInfo:`1px solid ${k}`,borderPressedInfo:`1px solid ${R}`,borderFocusInfo:`1px solid ${k}`,borderDisabledInfo:`1px solid ${S}`,rippleColorInfo:S,colorSuccess:$,colorHoverSuccess:_,colorPressedSuccess:b,colorFocusSuccess:_,colorDisabledSuccess:$,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:$,textColorTextHoverSuccess:_,textColorTextPressedSuccess:b,textColorTextFocusSuccess:_,textColorTextDisabledSuccess:f,textColorGhostSuccess:$,textColorGhostHoverSuccess:_,textColorGhostPressedSuccess:b,textColorGhostFocusSuccess:_,textColorGhostDisabledSuccess:$,borderSuccess:`1px solid ${$}`,borderHoverSuccess:`1px solid ${_}`,borderPressedSuccess:`1px solid ${b}`,borderFocusSuccess:`1px solid ${_}`,borderDisabledSuccess:`1px solid ${$}`,rippleColorSuccess:$,colorWarning:x,colorHoverWarning:P,colorPressedWarning:F,colorFocusWarning:P,colorDisabledWarning:x,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:x,textColorTextHoverWarning:P,textColorTextPressedWarning:F,textColorTextFocusWarning:P,textColorTextDisabledWarning:f,textColorGhostWarning:x,textColorGhostHoverWarning:P,textColorGhostPressedWarning:F,textColorGhostFocusWarning:P,textColorGhostDisabledWarning:x,borderWarning:`1px solid ${x}`,borderHoverWarning:`1px solid ${P}`,borderPressedWarning:`1px solid ${F}`,borderFocusWarning:`1px solid ${P}`,borderDisabledWarning:`1px solid ${x}`,rippleColorWarning:x,colorError:W,colorHoverError:z,colorPressedError:Z,colorFocusError:z,colorDisabledError:W,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:W,textColorTextHoverError:z,textColorTextPressedError:Z,textColorTextFocusError:z,textColorTextDisabledError:f,textColorGhostError:W,textColorGhostHoverError:z,textColorGhostPressedError:Z,textColorGhostFocusError:z,textColorGhostDisabledError:W,borderError:`1px solid ${W}`,borderHoverError:`1px solid ${z}`,borderPressedError:`1px solid ${Z}`,borderFocusError:`1px solid ${z}`,borderDisabledError:`1px solid ${W}`,rippleColorError:W,waveOpacity:"0.6",fontWeight:oe,fontWeightStrong:ne})},Q0={name:"Button",common:Xn,self:J0},gf=Q0,ey=D([xe("button",` margin: 0; font-weight: var(--n-font-weight); line-height: 1; @@ -256,7 +256,7 @@ ${t} background-color .3s var(--n-bezier), opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[de("color",[ee("border",{borderColor:"var(--n-border-color)"}),de("disabled",[ee("border",{borderColor:"var(--n-border-color-disabled)"})]),Ai("disabled",[D("&:focus",[ee("state-border",{borderColor:"var(--n-border-color-focus)"})]),D("&:hover",[ee("state-border",{borderColor:"var(--n-border-color-hover)"})]),D("&:active",[ee("state-border",{borderColor:"var(--n-border-color-pressed)"})]),de("pressed",[ee("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),de("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[ee("border",{border:"var(--n-border-disabled)"})]),Ai("disabled",[D("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[ee("state-border",{border:"var(--n-border-focus)"})]),D("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[ee("state-border",{border:"var(--n-border-hover)"})]),D("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[ee("state-border",{border:"var(--n-border-pressed)"})]),de("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[ee("state-border",{border:"var(--n-border-pressed)"})])]),de("loading","cursor: wait;"),xe("base-wave",` + `,[de("color",[ee("border",{borderColor:"var(--n-border-color)"}),de("disabled",[ee("border",{borderColor:"var(--n-border-color-disabled)"})]),Ii("disabled",[D("&:focus",[ee("state-border",{borderColor:"var(--n-border-color-focus)"})]),D("&:hover",[ee("state-border",{borderColor:"var(--n-border-color-hover)"})]),D("&:active",[ee("state-border",{borderColor:"var(--n-border-color-pressed)"})]),de("pressed",[ee("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),de("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[ee("border",{border:"var(--n-border-disabled)"})]),Ii("disabled",[D("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[ee("state-border",{border:"var(--n-border-focus)"})]),D("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[ee("state-border",{border:"var(--n-border-hover)"})]),D("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[ee("state-border",{border:"var(--n-border-pressed)"})]),de("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[ee("state-border",{border:"var(--n-border-pressed)"})])]),de("loading","cursor: wait;"),xe("base-wave",` pointer-events: none; top: 0; right: 0; @@ -265,7 +265,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,ee("border, state-border",` + `,[de("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),kr&&"MozBoxSizing"in document.createElement("div").style?D("&::moz-focus-inner",{border:0}):null,ee("border, state-border",` position: absolute; left: 0; top: 0; @@ -293,7 +293,7 @@ ${t} display: flex; align-items: center; justify-content: center; - `,[xo({top:"50%",originalTransform:"translateY(-50%)"})]),U0()]),ee("content",` + `,[Co({top:"50%",originalTransform:"translateY(-50%)"})]),V0()]),ee("content",` display: flex; align-items: center; flex-wrap: nowrap; @@ -301,7 +301,7 @@ ${t} `,[D("~",[ee("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),de("block",` display: flex; width: 100%; - `),de("dashed",[ee("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}})]),ny=Object.assign(Object.assign({},it.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:!Y0}}),mf=Re({name:"Button",props:ny,setup(e){const t=re(null),n=re(null),r=re(!1),o=Ii(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Ae(Z0,{}),{mergedSizeRef:s}=Jg({},{defaultSize:"medium",mergedSize:R=>{const{size:$}=e;if($)return $;const{size:_}=i;if(_)return _;const{mergedSize:b}=R||{};return b?b.value:"medium"}}),l=Y(()=>e.focusable&&!e.disabled),a=R=>{var $;l.value||R.preventDefault(),!e.nativeFocusBehavior&&(R.preventDefault(),!e.disabled&&l.value&&(($=t.value)===null||$===void 0||$.focus({preventScroll:!0})))},c=R=>{var $;if(!e.disabled&&!e.loading){const{onClick:_}=e;_&&an(_,R),e.text||($=n.value)===null||$===void 0||$.play()}},u=R=>{switch(R.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=R=>{switch(R.key){case"Enter":if(!e.keyboard||e.loading){R.preventDefault();return}r.value=!0}},d=()=>{r.value=!1},{inlineThemeDisabled:v,mergedClsPrefixRef:p,mergedRtlRef:C}=wn(e),y=it("Button","-button",ty,vf,e,p),m=Mr("Button",C,p),S=Y(()=>{const R=y.value,{common:{cubicBezierEaseInOut:$,cubicBezierEaseOut:_},self:b}=R,{rippleDuration:x,opacityDisabled:P,fontWeight:F,fontWeightStrong:W}=b,z=s.value,{dashed:Z,type:oe,ghost:ce,text:X,color:U,round:ne,circle:Ce,textColor:we,secondary:Se,tertiary:_e,quaternary:Ze,strong:Ue}=e,Je={"font-weight":Ue?W:F};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=oe==="tertiary",V=oe==="default",B=T?"default":oe;if(X){const I=we||U;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":I||b[ie("textColorText",B)],"--n-text-color-hover":I?Qt(I):b[ie("textColorTextHover",B)],"--n-text-color-pressed":I?to(I):b[ie("textColorTextPressed",B)],"--n-text-color-focus":I?Qt(I):b[ie("textColorTextHover",B)],"--n-text-color-disabled":I||b[ie("textColorTextDisabled",B)]}}else if(ce||Z){const I=we||U;fe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":U||b[ie("rippleColor",B)],"--n-text-color":I||b[ie("textColorGhost",B)],"--n-text-color-hover":I?Qt(I):b[ie("textColorGhostHover",B)],"--n-text-color-pressed":I?to(I):b[ie("textColorGhostPressed",B)],"--n-text-color-focus":I?Qt(I):b[ie("textColorGhostHover",B)],"--n-text-color-disabled":I||b[ie("textColorGhostDisabled",B)]}}else if(Se){const I=V?b.textColor:T?b.textColorTertiary:b[ie("color",B)],H=U||I,M=oe!=="default"&&oe!=="tertiary";fe={"--n-color":M?Kr(H,{alpha:Number(b.colorOpacitySecondary)}):b.colorSecondary,"--n-color-hover":M?Kr(H,{alpha:Number(b.colorOpacitySecondaryHover)}):b.colorSecondaryHover,"--n-color-pressed":M?Kr(H,{alpha:Number(b.colorOpacitySecondaryPressed)}):b.colorSecondaryPressed,"--n-color-focus":M?Kr(H,{alpha:Number(b.colorOpacitySecondaryHover)}):b.colorSecondaryHover,"--n-color-disabled":b.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":H,"--n-text-color-hover":H,"--n-text-color-pressed":H,"--n-text-color-focus":H,"--n-text-color-disabled":H}}else if(_e||Ze){const I=V?b.textColor:T?b.textColorTertiary:b[ie("color",B)],H=U||I;_e?(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"]=H,fe["--n-text-color-hover"]=H,fe["--n-text-color-pressed"]=H,fe["--n-text-color-focus"]=H,fe["--n-text-color-disabled"]=H}else fe={"--n-color":U||b[ie("color",B)],"--n-color-hover":U?Qt(U):b[ie("colorHover",B)],"--n-color-pressed":U?to(U):b[ie("colorPressed",B)],"--n-color-focus":U?Qt(U):b[ie("colorFocus",B)],"--n-color-disabled":U||b[ie("colorDisabled",B)],"--n-ripple-color":U||b[ie("rippleColor",B)],"--n-text-color":we||(U?b.textColorPrimary:T?b.textColorTertiary:b[ie("textColor",B)]),"--n-text-color-hover":we||(U?b.textColorHoverPrimary:b[ie("textColorHover",B)]),"--n-text-color-pressed":we||(U?b.textColorPressedPrimary:b[ie("textColorPressed",B)]),"--n-text-color-focus":we||(U?b.textColorFocusPrimary:b[ie("textColorFocus",B)]),"--n-text-color-disabled":we||(U?b.textColorDisabledPrimary:b[ie("textColorDisabled",B)])};let q={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};X?q={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:q={"--n-border":b[ie("border",B)],"--n-border-hover":b[ie("borderHover",B)],"--n-border-pressed":b[ie("borderPressed",B)],"--n-border-focus":b[ie("borderFocus",B)],"--n-border-disabled":b[ie("borderDisabled",B)]};const{[ie("height",z)]:pe,[ie("fontSize",z)]:ve,[ie("padding",z)]:h,[ie("paddingRound",z)]:g,[ie("iconSize",z)]:w,[ie("borderRadius",z)]:A,[ie("iconMargin",z)]:O,waveOpacity:j}=b,N={"--n-width":Ce&&!X?pe:"initial","--n-height":X?"initial":pe,"--n-font-size":ve,"--n-padding":Ce||X?"initial":ne?g:h,"--n-icon-size":w,"--n-icon-margin":O,"--n-border-radius":X?"initial":Ce||ne?pe:A};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":$,"--n-bezier-ease-out":_,"--n-ripple-duration":x,"--n-opacity-disabled":P,"--n-wave-opacity":j},Je),fe),q),N)}),k=v?Gn("button",Y(()=>{let R="";const{dashed:$,type:_,ghost:b,text:x,color:P,round:F,circle:W,textColor:z,secondary:Z,tertiary:oe,quaternary:ce,strong:X}=e;$&&(R+="a"),b&&(R+="b"),x&&(R+="c"),F&&(R+="d"),W&&(R+="e"),Z&&(R+="f"),oe&&(R+="g"),ce&&(R+="h"),X&&(R+="i"),P&&(R+="j"+Pl(P)),z&&(R+="k"+Pl(z));const{value:U}=s;return R+="l"+U[0],R+="m"+_[0],R}),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:Y(()=>{const{color:R}=e;if(!R)return null;const $=Qt(R);return{"--n-border-color":R,"--n-border-color-hover":$,"--n-border-color-pressed":to(R),"--n-border-color-focus":$,"--n-border-color-disabled":R}}),cssVars:v?void 0:S,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=ut(this.$slots.default,o=>o&&E("span",{class:`${e}-button__content`},o));return E(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,E(uf,{width:!0},{default:()=>ut(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&E("span",{class:`${e}-button__icon`,style:{margin:zp(this.$slots.default)?"0":""}},E(Rs,null,{default:()=>this.loading?E(ff,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):E("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:E(V0,{ref:"waveElRef",clsPrefix:e}),this.showBorder?E("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?E("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Sa=mf,b1=mf,ry={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"},oy=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:C,boxShadow1:y,popoverColor:m,actionColor:S}=e;return Object.assign(Object.assign({},ry),{lineHeight:r,color:i,colorModal:C,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})},iy={name:"Card",common:qn,self:oy},bf=iy,sy=D([xe("card",` + `),de("dashed",[ee("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}})]),ty=Object.assign(Object.assign({},it.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:!X0}}),vf=Re({name:"Button",props:ty,setup(e){const t=re(null),n=re(null),r=re(!1),o=zi(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Ae(Y0,{}),{mergedSizeRef:s}=Zg({},{defaultSize:"medium",mergedSize:R=>{const{size:$}=e;if($)return $;const{size:_}=i;if(_)return _;const{mergedSize:b}=R||{};return b?b.value:"medium"}}),l=Y(()=>e.focusable&&!e.disabled),a=R=>{var $;l.value||R.preventDefault(),!e.nativeFocusBehavior&&(R.preventDefault(),!e.disabled&&l.value&&(($=t.value)===null||$===void 0||$.focus({preventScroll:!0})))},c=R=>{var $;if(!e.disabled&&!e.loading){const{onClick:_}=e;_&&an(_,R),e.text||($=n.value)===null||$===void 0||$.play()}},u=R=>{switch(R.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=R=>{switch(R.key){case"Enter":if(!e.keyboard||e.loading){R.preventDefault();return}r.value=!0}},d=()=>{r.value=!1},{inlineThemeDisabled:v,mergedClsPrefixRef:p,mergedRtlRef:C}=wn(e),y=it("Button","-button",ey,gf,e,p),m=Lr("Button",C,p),S=Y(()=>{const R=y.value,{common:{cubicBezierEaseInOut:$,cubicBezierEaseOut:_},self:b}=R,{rippleDuration:x,opacityDisabled:P,fontWeight:F,fontWeightStrong:W}=b,z=s.value,{dashed:Z,type:oe,ghost:ce,text:X,color:U,round:ne,circle:Ce,textColor:we,secondary:Se,tertiary:_e,quaternary:Ze,strong:Ue}=e,Je={"font-weight":Ue?W:F};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=oe==="tertiary",V=oe==="default",B=T?"default":oe;if(X){const I=we||U;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":I||b[ie("textColorText",B)],"--n-text-color-hover":I?Qt(I):b[ie("textColorTextHover",B)],"--n-text-color-pressed":I?no(I):b[ie("textColorTextPressed",B)],"--n-text-color-focus":I?Qt(I):b[ie("textColorTextHover",B)],"--n-text-color-disabled":I||b[ie("textColorTextDisabled",B)]}}else if(ce||Z){const I=we||U;fe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":U||b[ie("rippleColor",B)],"--n-text-color":I||b[ie("textColorGhost",B)],"--n-text-color-hover":I?Qt(I):b[ie("textColorGhostHover",B)],"--n-text-color-pressed":I?no(I):b[ie("textColorGhostPressed",B)],"--n-text-color-focus":I?Qt(I):b[ie("textColorGhostHover",B)],"--n-text-color-disabled":I||b[ie("textColorGhostDisabled",B)]}}else if(Se){const I=V?b.textColor:T?b.textColorTertiary:b[ie("color",B)],H=U||I,M=oe!=="default"&&oe!=="tertiary";fe={"--n-color":M?Gr(H,{alpha:Number(b.colorOpacitySecondary)}):b.colorSecondary,"--n-color-hover":M?Gr(H,{alpha:Number(b.colorOpacitySecondaryHover)}):b.colorSecondaryHover,"--n-color-pressed":M?Gr(H,{alpha:Number(b.colorOpacitySecondaryPressed)}):b.colorSecondaryPressed,"--n-color-focus":M?Gr(H,{alpha:Number(b.colorOpacitySecondaryHover)}):b.colorSecondaryHover,"--n-color-disabled":b.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":H,"--n-text-color-hover":H,"--n-text-color-pressed":H,"--n-text-color-focus":H,"--n-text-color-disabled":H}}else if(_e||Ze){const I=V?b.textColor:T?b.textColorTertiary:b[ie("color",B)],H=U||I;_e?(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"]=H,fe["--n-text-color-hover"]=H,fe["--n-text-color-pressed"]=H,fe["--n-text-color-focus"]=H,fe["--n-text-color-disabled"]=H}else fe={"--n-color":U||b[ie("color",B)],"--n-color-hover":U?Qt(U):b[ie("colorHover",B)],"--n-color-pressed":U?no(U):b[ie("colorPressed",B)],"--n-color-focus":U?Qt(U):b[ie("colorFocus",B)],"--n-color-disabled":U||b[ie("colorDisabled",B)],"--n-ripple-color":U||b[ie("rippleColor",B)],"--n-text-color":we||(U?b.textColorPrimary:T?b.textColorTertiary:b[ie("textColor",B)]),"--n-text-color-hover":we||(U?b.textColorHoverPrimary:b[ie("textColorHover",B)]),"--n-text-color-pressed":we||(U?b.textColorPressedPrimary:b[ie("textColorPressed",B)]),"--n-text-color-focus":we||(U?b.textColorFocusPrimary:b[ie("textColorFocus",B)]),"--n-text-color-disabled":we||(U?b.textColorDisabledPrimary:b[ie("textColorDisabled",B)])};let q={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};X?q={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:q={"--n-border":b[ie("border",B)],"--n-border-hover":b[ie("borderHover",B)],"--n-border-pressed":b[ie("borderPressed",B)],"--n-border-focus":b[ie("borderFocus",B)],"--n-border-disabled":b[ie("borderDisabled",B)]};const{[ie("height",z)]:pe,[ie("fontSize",z)]:ve,[ie("padding",z)]:h,[ie("paddingRound",z)]:g,[ie("iconSize",z)]:w,[ie("borderRadius",z)]:A,[ie("iconMargin",z)]:O,waveOpacity:j}=b,N={"--n-width":Ce&&!X?pe:"initial","--n-height":X?"initial":pe,"--n-font-size":ve,"--n-padding":Ce||X?"initial":ne?g:h,"--n-icon-size":w,"--n-icon-margin":O,"--n-border-radius":X?"initial":Ce||ne?pe:A};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":$,"--n-bezier-ease-out":_,"--n-ripple-duration":x,"--n-opacity-disabled":P,"--n-wave-opacity":j},Je),fe),q),N)}),k=v?qn("button",Y(()=>{let R="";const{dashed:$,type:_,ghost:b,text:x,color:P,round:F,circle:W,textColor:z,secondary:Z,tertiary:oe,quaternary:ce,strong:X}=e;$&&(R+="a"),b&&(R+="b"),x&&(R+="c"),F&&(R+="d"),W&&(R+="e"),Z&&(R+="f"),oe&&(R+="g"),ce&&(R+="h"),X&&(R+="i"),P&&(R+="j"+Pl(P)),z&&(R+="k"+Pl(z));const{value:U}=s;return R+="l"+U[0],R+="m"+_[0],R}),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:Y(()=>{const{color:R}=e;if(!R)return null;const $=Qt(R);return{"--n-border-color":R,"--n-border-color-hover":$,"--n-border-color-pressed":no(R),"--n-border-color-focus":$,"--n-border-color-disabled":R}}),cssVars:v?void 0:S,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=ut(this.$slots.default,o=>o&&E("span",{class:`${e}-button__content`},o));return E(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,E(cf,{width:!0},{default:()=>ut(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&E("span",{class:`${e}-button__icon`,style:{margin:Ip(this.$slots.default)?"0":""}},E(Rs,null,{default:()=>this.loading?E(uf,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):E("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:E(W0,{ref:"waveElRef",clsPrefix:e}),this.showBorder?E("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?E("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Sa=vf,m1=vf,ny={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"},ry=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:C,boxShadow1:y,popoverColor:m,actionColor:S}=e;return Object.assign(Object.assign({},ny),{lineHeight:r,color:i,colorModal:C,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})},oy={name:"Card",common:Xn,self:ry},mf=oy,iy=D([xe("card",` font-size: var(--n-font-size); line-height: var(--n-line-height); display: flex; @@ -318,7 +318,7 @@ ${t} background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[pu({background:"var(--n-color-modal)"}),de("hoverable",[D("&:hover","box-shadow: var(--n-box-shadow);")]),de("content-segmented",[D(">",[ee("content",{paddingTop:"var(--n-padding-bottom)"})])]),de("content-soft-segmented",[D(">",[ee("content",` + `,[hu({background:"var(--n-color-modal)"}),de("hoverable",[D("&:hover","box-shadow: var(--n-box-shadow);")]),de("content-segmented",[D(">",[ee("content",{paddingTop:"var(--n-padding-bottom)"})])]),de("content-soft-segmented",[D(">",[ee("content",` margin: 0 var(--n-padding-left); padding: var(--n-padding-bottom) 0; `)])]),de("footer-segmented",[D(">",[ee("footer",{paddingTop:"var(--n-padding-bottom)"})])]),de("footer-soft-segmented",[D(">",[ee("footer",` @@ -379,15 +379,15 @@ ${t} border: 1px solid var(--n-border-color); `,[D("&:target","border-color: var(--n-color-target);")]),de("action-segmented",[D(">",[ee("action",[D("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),de("content-segmented, content-soft-segmented",[D(">",[ee("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(">",[ee("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); - `)]),hu(xe("card",` + `)]),du(xe("card",` background: var(--n-color-modal); `,[de("embedded",` background-color: var(--n-color-embedded-modal); - `)])),tg(xe("card",` + `)])),eg(xe("card",` background: var(--n-color-popover); `,[de("embedded",` background-color: var(--n-color-embedded-popover); - `)]))]),Os={title:String,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass: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"}},ly=xs(Os),ay=Object.assign(Object.assign({},it.props),Os),cy=Re({name:"Card",props:ay,setup(e){const t=()=>{const{onClose:c}=e;c&&an(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=wn(e),i=it("Card","-card",sy,bf,e,r),s=Mr("Card",o,r),l=Y(()=>{const{size:c}=e,{self:{color:u,colorModal:f,colorTarget:d,textColor:v,titleTextColor:p,titleFontWeight:C,borderColor:y,actionColor:m,borderRadius:S,lineHeight:k,closeIconColor:R,closeIconColorHover:$,closeIconColorPressed:_,closeColorHover:b,closeColorPressed:x,closeBorderRadius:P,closeIconSize:F,closeSize:W,boxShadow:z,colorPopover:Z,colorEmbedded:oe,colorEmbeddedModal:ce,colorEmbeddedPopover:X,[ie("padding",c)]:U,[ie("fontSize",c)]:ne,[ie("titleFontSize",c)]:Ce},common:{cubicBezierEaseInOut:we}}=i.value,{top:Se,left:_e,bottom:Ze}=iu(U);return{"--n-bezier":we,"--n-border-radius":S,"--n-color":u,"--n-color-modal":f,"--n-color-popover":Z,"--n-color-embedded":oe,"--n-color-embedded-modal":ce,"--n-color-embedded-popover":X,"--n-color-target":d,"--n-text-color":v,"--n-line-height":k,"--n-action-color":m,"--n-title-text-color":p,"--n-title-font-weight":C,"--n-close-icon-color":R,"--n-close-icon-color-hover":$,"--n-close-icon-color-pressed":_,"--n-close-color-hover":b,"--n-close-color-pressed":x,"--n-border-color":y,"--n-box-shadow":z,"--n-padding-top":Se,"--n-padding-bottom":Ze,"--n-padding-left":_e,"--n-font-size":ne,"--n-title-font-size":Ce,"--n-close-size":W,"--n-close-icon-size":F,"--n-close-border-radius":P}}),a=n?Gn("card",Y(()=>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(),E(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},ut(a.cover,c=>c&&E("div",{class:`${r}-card-cover`,role:"none"},c)),ut(a.header,c=>c||this.title||this.closable?E("div",{class:[`${r}-card-header`,this.headerClass],style:this.headerStyle},E("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),ut(a["header-extra"],u=>u&&E("div",{class:[`${r}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},u)),this.closable?E(Ts,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),ut(a.default,c=>c&&E("div",{class:[`${r}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},c)),ut(a.footer,c=>c&&[E("div",{class:[`${r}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},c)]),ut(a.action,c=>c&&E("div",{class:`${r}-card__action`,role:"none"},c)))}}),uy={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:{type:String,default:Or},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:()=>(mo("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},fy=Re({name:"ConfigProvider",alias:["App"],props:uy,setup(e){const t=Ae(qt,null),n=Y(()=>{const{theme:p}=e;if(p===null)return;const C=t==null?void 0:t.mergedThemeRef.value;return p===void 0?C:C===void 0?p:Object.assign({},C,p)}),r=Y(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const C=t==null?void 0:t.mergedThemeOverridesRef.value;return C===void 0?p:ir({},C,p)}}}),o=Ii(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=Ii(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),s=Y(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),l=Y(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),a=Y(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t?t.mergedClsPrefixRef.value:Or}),c=Y(()=>{var p;const{rtl:C}=e;if(C===void 0)return t==null?void 0:t.mergedRtlRef.value;const y={};for(const m of C)y[m.name]=Bn(m),(p=m.peers)===null||p===void 0||p.forEach(S=>{S.name in y||(y[S.name]=Bn(S))});return y}),u=Y(()=>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=Y(()=>{const{value:p}=n,{value:C}=r,y=C&&Object.keys(C).length!==0,m=p==null?void 0:p.name;return m?y?`${m}-${$r(JSON.stringify(r.value))}`:m:y?$r(JSON.stringify(r.value)):""});return Xe(qt,{mergedThemeHashRef:v,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:s,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:a,mergedLocaleRef:Y(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:Y(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:Y(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:Y(()=>{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):E(this.as||this.tag,{class:`${this.mergedClsPrefix||Or}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),dy={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"},hy=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:C,fontWeightStrong:y,lineHeight:m,fontSize:S}=e;return Object.assign(Object.assign({},dy),{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:C,iconColor:v,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:d,borderRadius:C,titleFontWeight:y})},py={name:"Dialog",common:qn,peers:{Button:vf},self:hy},yf=py,Wo={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},xf=xs(Wo),gy=D([xe("dialog",` + `)]))]),Os={title:String,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass: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"}},sy=xs(Os),ly=Object.assign(Object.assign({},it.props),Os),ay=Re({name:"Card",props:ly,setup(e){const t=()=>{const{onClose:c}=e;c&&an(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=wn(e),i=it("Card","-card",iy,mf,e,r),s=Lr("Card",o,r),l=Y(()=>{const{size:c}=e,{self:{color:u,colorModal:f,colorTarget:d,textColor:v,titleTextColor:p,titleFontWeight:C,borderColor:y,actionColor:m,borderRadius:S,lineHeight:k,closeIconColor:R,closeIconColorHover:$,closeIconColorPressed:_,closeColorHover:b,closeColorPressed:x,closeBorderRadius:P,closeIconSize:F,closeSize:W,boxShadow:z,colorPopover:Z,colorEmbedded:oe,colorEmbeddedModal:ce,colorEmbeddedPopover:X,[ie("padding",c)]:U,[ie("fontSize",c)]:ne,[ie("titleFontSize",c)]:Ce},common:{cubicBezierEaseInOut:we}}=i.value,{top:Se,left:_e,bottom:Ze}=ou(U);return{"--n-bezier":we,"--n-border-radius":S,"--n-color":u,"--n-color-modal":f,"--n-color-popover":Z,"--n-color-embedded":oe,"--n-color-embedded-modal":ce,"--n-color-embedded-popover":X,"--n-color-target":d,"--n-text-color":v,"--n-line-height":k,"--n-action-color":m,"--n-title-text-color":p,"--n-title-font-weight":C,"--n-close-icon-color":R,"--n-close-icon-color-hover":$,"--n-close-icon-color-pressed":_,"--n-close-color-hover":b,"--n-close-color-pressed":x,"--n-border-color":y,"--n-box-shadow":z,"--n-padding-top":Se,"--n-padding-bottom":Ze,"--n-padding-left":_e,"--n-font-size":ne,"--n-title-font-size":Ce,"--n-close-size":W,"--n-close-icon-size":F,"--n-close-border-radius":P}}),a=n?qn("card",Y(()=>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(),E(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},ut(a.cover,c=>c&&E("div",{class:`${r}-card-cover`,role:"none"},c)),ut(a.header,c=>c||this.title||this.closable?E("div",{class:[`${r}-card-header`,this.headerClass],style:this.headerStyle},E("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),ut(a["header-extra"],u=>u&&E("div",{class:[`${r}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},u)),this.closable?E(Ts,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),ut(a.default,c=>c&&E("div",{class:[`${r}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},c)),ut(a.footer,c=>c&&[E("div",{class:[`${r}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},c)]),ut(a.action,c=>c&&E("div",{class:`${r}-card__action`,role:"none"},c)))}}),cy={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:{type:String,default:Ar},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:()=>(bo("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},uy=Re({name:"ConfigProvider",alias:["App"],props:cy,setup(e){const t=Ae(qt,null),n=Y(()=>{const{theme:p}=e;if(p===null)return;const C=t==null?void 0:t.mergedThemeRef.value;return p===void 0?C:C===void 0?p:Object.assign({},C,p)}),r=Y(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const C=t==null?void 0:t.mergedThemeOverridesRef.value;return C===void 0?p:sr({},C,p)}}}),o=zi(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=zi(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),s=Y(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),l=Y(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),a=Y(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t?t.mergedClsPrefixRef.value:Ar}),c=Y(()=>{var p;const{rtl:C}=e;if(C===void 0)return t==null?void 0:t.mergedRtlRef.value;const y={};for(const m of C)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=Y(()=>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=Y(()=>{const{value:p}=n,{value:C}=r,y=C&&Object.keys(C).length!==0,m=p==null?void 0:p.name;return m?y?`${m}-${Er(JSON.stringify(r.value))}`:m:y?Er(JSON.stringify(r.value)):""});return Xe(qt,{mergedThemeHashRef:v,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:s,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:a,mergedLocaleRef:Y(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:Y(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:Y(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:Y(()=>{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):E(this.as||this.tag,{class:`${this.mergedClsPrefix||Ar}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),fy={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"},dy=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:C,fontWeightStrong:y,lineHeight:m,fontSize:S}=e;return Object.assign(Object.assign({},fy),{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:C,iconColor:v,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:d,borderRadius:C,titleFontWeight:y})},hy={name:"Dialog",common:Xn,peers:{Button:gf},self:dy},bf=hy,Vo={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},yf=xs(Vo),py=D([xe("dialog",` --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left); word-break: break-word; line-height: var(--n-line-height); @@ -436,13 +436,13 @@ ${t} `),xe("dialog-icon-container",` display: flex; justify-content: center; - `)]),hu(xe("dialog",` + `)]),du(xe("dialog",` width: 446px; max-width: calc(100vw - 32px); - `)),xe("dialog",[pu(` + `)),xe("dialog",[hu(` width: 446px; max-width: calc(100vw - 32px); - `)])]),vy={default:()=>E(ji,null),info:()=>E(ji,null),success:()=>E(af,null),warning:()=>E(cf,null),error:()=>E(lf,null)},Cf=Re({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},it.props),Wo),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=wn(e),i=Mr("Dialog",o,n),s=Y(()=>{var v,p;const{iconPlacement:C}=e;return C||((p=(v=t==null?void 0:t.value)===null||v===void 0?void 0:v.Dialog)===null||p===void 0?void 0:p.iconPlacement)||"left"});function l(v){const{onPositiveClick:p}=e;p&&p(v)}function a(v){const{onNegativeClick:p}=e;p&&p(v)}function c(){const{onClose:v}=e;v&&v()}const u=it("Dialog","-dialog",gy,yf,e,n),f=Y(()=>{const{type:v}=e,p=s.value,{common:{cubicBezierEaseInOut:C},self:{fontSize:y,lineHeight:m,border:S,titleTextColor:k,textColor:R,color:$,closeBorderRadius:_,closeColorHover:b,closeColorPressed:x,closeIconColor:P,closeIconColorHover:F,closeIconColorPressed:W,closeIconSize:z,borderRadius:Z,titleFontWeight:oe,titleFontSize:ce,padding:X,iconSize:U,actionSpace:ne,contentMargin:Ce,closeSize:we,[p==="top"?"iconMarginIconTop":"iconMargin"]:Se,[p==="top"?"closeMarginIconTop":"closeMargin"]:_e,[ie("iconColor",v)]:Ze}}=u.value,Ue=iu(Se);return{"--n-font-size":y,"--n-icon-color":Ze,"--n-bezier":C,"--n-close-margin":_e,"--n-icon-margin-top":Ue.top,"--n-icon-margin-right":Ue.right,"--n-icon-margin-bottom":Ue.bottom,"--n-icon-margin-left":Ue.left,"--n-icon-size":U,"--n-close-size":we,"--n-close-icon-size":z,"--n-close-border-radius":_,"--n-close-color-hover":b,"--n-close-color-pressed":x,"--n-close-icon-color":P,"--n-close-icon-color-hover":F,"--n-close-icon-color-pressed":W,"--n-color":$,"--n-text-color":R,"--n-border-radius":Z,"--n-padding":X,"--n-line-height":m,"--n-border":S,"--n-content-margin":Ce,"--n-title-font-size":ce,"--n-title-font-weight":oe,"--n-title-text-color":k,"--n-action-space":ne}}),d=r?Gn("dialog",Y(()=>`${e.type[0]}${s.value[0]}`),f,e):void 0;return{mergedClsPrefix:n,rtlEnabled:i,mergedIconPlacement:s,mergedTheme:u,handlePositiveClick:l,handleNegativeClick:a,handleCloseClick:c,cssVars:r?void 0:f,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.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:C,loading:y,type:m,mergedClsPrefix:S}=this;(e=this.onRender)===null||e===void 0||e.call(this);const k=i?E(Ps,{clsPrefix:S,class:`${S}-dialog__icon`},{default:()=>ut(this.$slots.icon,$=>$||(this.icon?en(this.icon):vy[this.type]()))}):null,R=ut(this.$slots.action,$=>$||u||c||a?E("div",{class:`${S}-dialog__action`},$||(a?[en(a)]:[this.negativeText&&E(Sa,Object.assign({theme:C.peers.Button,themeOverrides:C.peerOverrides.Button,ghost:!0,size:"small",onClick:p},d),{default:()=>en(this.negativeText)}),this.positiveText&&E(Sa,Object.assign({theme:C.peers.Button,themeOverrides:C.peerOverrides.Button,size:"small",type:m==="default"?"primary":m,disabled:y,loading:y,onClick:v},f),{default:()=>en(this.positiveText)})])):null);return E("div",{class:[`${S}-dialog`,this.themeClass,this.closable&&`${S}-dialog--closable`,`${S}-dialog--icon-${n}`,t&&`${S}-dialog--bordered`,this.rtlEnabled&&`${S}-dialog--rtl`],style:r,role:"dialog"},o?ut(this.$slots.close,$=>{const _=[`${S}-dialog__close`,this.rtlEnabled&&`${S}-dialog--rtl`];return $?E("div",{class:_},$):E(Ts,{clsPrefix:S,class:_,onClick:this.handleCloseClick})}):null,i&&n==="top"?E("div",{class:`${S}-dialog-icon-container`},k):null,E("div",{class:`${S}-dialog__title`},i&&n==="left"?k:null,El(this.$slots.header,()=>[en(s)])),E("div",{class:[`${S}-dialog__content`,R?"":`${S}-dialog__content--last`]},El(this.$slots.default,()=>[en(l)])),R)}}),wf="n-dialog-provider",my="n-dialog-api",by="n-dialog-reactive-list",yy=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},xy={name:"Modal",common:qn,peers:{Scrollbar:hf,Dialog:yf,Card:bf},self:yy},Cy=xy,As=Object.assign(Object.assign({},Os),Wo),wy=xs(As),Sy=Re({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},As),{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=re(null),n=re(null),r=re(e.show),o=re(null),i=re(null);dt(Pt(e,"show"),y=>{y&&(r.value=!0)}),Xg(Y(()=>e.blockScroll&&r.value));const s=Ae(wu);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:k,offsetTop:R}=y;if(m){const $=m.y,_=m.x;o.value=-(k-_),i.value=-(R-$-S)}y.style.transformOrigin=l()}function c(y){kn(()=>{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 C=re(null);return dt(C,y=>{y&&kn(()=>{const m=y.el;m&&t.value!==m&&(t.value=m)})}),Xe(dg,t),Xe(hg,null),Xe(pg,null),{mergedTheme:s.mergedThemeRef,appear:s.appearRef,isMounted:s.isMountedRef,mergedClsPrefix:s.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:C,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=Ip(e),!l){mo("modal","default slot is empty");return}l=Tt(l),l.props=gs({class:`${s}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?mi(E("div",{role:"none",class:`${s}-modal-body-wrapper`},E(D0,{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),E(qg,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return E(Gt,{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=[[dl,this.show]],{onClickoutside:f}=this;return f&&u.push([vg,this.onClickoutside,void 0,{capture:!0}]),mi(this.preset==="confirm"||this.preset==="dialog"?E(Cf,Object.assign({},this.$attrs,{class:[`${s}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},vo(this.$props,xf),{"aria-modal":"true"}),e):this.preset==="card"?E(cy,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${s}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},vo(this.$props,ly),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,u)}})}})]}})),[[dl,this.displayDirective==="if"||this.displayed||this.show]]):null}}),_y=D([xe("modal-container",` + `)])]),gy={default:()=>E(Di,null),info:()=>E(Di,null),success:()=>E(lf,null),warning:()=>E(af,null),error:()=>E(sf,null)},xf=Re({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},it.props),Vo),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=wn(e),i=Lr("Dialog",o,n),s=Y(()=>{var v,p;const{iconPlacement:C}=e;return C||((p=(v=t==null?void 0:t.value)===null||v===void 0?void 0:v.Dialog)===null||p===void 0?void 0:p.iconPlacement)||"left"});function l(v){const{onPositiveClick:p}=e;p&&p(v)}function a(v){const{onNegativeClick:p}=e;p&&p(v)}function c(){const{onClose:v}=e;v&&v()}const u=it("Dialog","-dialog",py,bf,e,n),f=Y(()=>{const{type:v}=e,p=s.value,{common:{cubicBezierEaseInOut:C},self:{fontSize:y,lineHeight:m,border:S,titleTextColor:k,textColor:R,color:$,closeBorderRadius:_,closeColorHover:b,closeColorPressed:x,closeIconColor:P,closeIconColorHover:F,closeIconColorPressed:W,closeIconSize:z,borderRadius:Z,titleFontWeight:oe,titleFontSize:ce,padding:X,iconSize:U,actionSpace:ne,contentMargin:Ce,closeSize:we,[p==="top"?"iconMarginIconTop":"iconMargin"]:Se,[p==="top"?"closeMarginIconTop":"closeMargin"]:_e,[ie("iconColor",v)]:Ze}}=u.value,Ue=ou(Se);return{"--n-font-size":y,"--n-icon-color":Ze,"--n-bezier":C,"--n-close-margin":_e,"--n-icon-margin-top":Ue.top,"--n-icon-margin-right":Ue.right,"--n-icon-margin-bottom":Ue.bottom,"--n-icon-margin-left":Ue.left,"--n-icon-size":U,"--n-close-size":we,"--n-close-icon-size":z,"--n-close-border-radius":_,"--n-close-color-hover":b,"--n-close-color-pressed":x,"--n-close-icon-color":P,"--n-close-icon-color-hover":F,"--n-close-icon-color-pressed":W,"--n-color":$,"--n-text-color":R,"--n-border-radius":Z,"--n-padding":X,"--n-line-height":m,"--n-border":S,"--n-content-margin":Ce,"--n-title-font-size":ce,"--n-title-font-weight":oe,"--n-title-text-color":k,"--n-action-space":ne}}),d=r?qn("dialog",Y(()=>`${e.type[0]}${s.value[0]}`),f,e):void 0;return{mergedClsPrefix:n,rtlEnabled:i,mergedIconPlacement:s,mergedTheme:u,handlePositiveClick:l,handleNegativeClick:a,handleCloseClick:c,cssVars:r?void 0:f,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.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:C,loading:y,type:m,mergedClsPrefix:S}=this;(e=this.onRender)===null||e===void 0||e.call(this);const k=i?E(Ps,{clsPrefix:S,class:`${S}-dialog__icon`},{default:()=>ut(this.$slots.icon,$=>$||(this.icon?en(this.icon):gy[this.type]()))}):null,R=ut(this.$slots.action,$=>$||u||c||a?E("div",{class:`${S}-dialog__action`},$||(a?[en(a)]:[this.negativeText&&E(Sa,Object.assign({theme:C.peers.Button,themeOverrides:C.peerOverrides.Button,ghost:!0,size:"small",onClick:p},d),{default:()=>en(this.negativeText)}),this.positiveText&&E(Sa,Object.assign({theme:C.peers.Button,themeOverrides:C.peerOverrides.Button,size:"small",type:m==="default"?"primary":m,disabled:y,loading:y,onClick:v},f),{default:()=>en(this.positiveText)})])):null);return E("div",{class:[`${S}-dialog`,this.themeClass,this.closable&&`${S}-dialog--closable`,`${S}-dialog--icon-${n}`,t&&`${S}-dialog--bordered`,this.rtlEnabled&&`${S}-dialog--rtl`],style:r,role:"dialog"},o?ut(this.$slots.close,$=>{const _=[`${S}-dialog__close`,this.rtlEnabled&&`${S}-dialog--rtl`];return $?E("div",{class:_},$):E(Ts,{clsPrefix:S,class:_,onClick:this.handleCloseClick})}):null,i&&n==="top"?E("div",{class:`${S}-dialog-icon-container`},k):null,E("div",{class:`${S}-dialog__title`},i&&n==="left"?k:null,El(this.$slots.header,()=>[en(s)])),E("div",{class:[`${S}-dialog__content`,R?"":`${S}-dialog__content--last`]},El(this.$slots.default,()=>[en(l)])),R)}}),Cf="n-dialog-provider",vy="n-dialog-api",my="n-dialog-reactive-list",by=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},yy={name:"Modal",common:Xn,peers:{Scrollbar:df,Dialog:bf,Card:mf},self:by},xy=yy,As=Object.assign(Object.assign({},Os),Vo),Cy=xs(As),wy=Re({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},As),{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=re(null),n=re(null),r=re(e.show),o=re(null),i=re(null);dt(Pt(e,"show"),y=>{y&&(r.value=!0)}),qg(Y(()=>e.blockScroll&&r.value));const s=Ae(Cu);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:k,offsetTop:R}=y;if(m){const $=m.y,_=m.x;o.value=-(k-_),i.value=-(R-$-S)}y.style.transformOrigin=l()}function c(y){Mn(()=>{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 C=re(null);return dt(C,y=>{y&&Mn(()=>{const m=y.el;m&&t.value!==m&&(t.value=m)})}),Xe(fg,t),Xe(dg,null),Xe(hg,null),{mergedTheme:s.mergedThemeRef,appear:s.appearRef,isMounted:s.isMountedRef,mergedClsPrefix:s.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:C,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=Ap(e),!l){bo("modal","default slot is empty");return}l=Tt(l),l.props=vs({class:`${s}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?bi(E("div",{role:"none",class:`${s}-modal-body-wrapper`},E(j0,{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),E(Gg,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return E(Gt,{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=[[dl,this.show]],{onClickoutside:f}=this;return f&&u.push([gg,this.onClickoutside,void 0,{capture:!0}]),bi(this.preset==="confirm"||this.preset==="dialog"?E(xf,Object.assign({},this.$attrs,{class:[`${s}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},mo(this.$props,yf),{"aria-modal":"true"}),e):this.preset==="card"?E(ay,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${s}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},mo(this.$props,sy),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,u)}})}})]}})),[[dl,this.displayDirective==="if"||this.displayed||this.show]]):null}}),Sy=D([xe("modal-container",` position: fixed; left: 0; top: 0; @@ -456,7 +456,7 @@ ${t} top: 0; bottom: 0; background-color: rgba(0, 0, 0, .4); - `,[pf({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),xe("modal-body-wrapper",` + `,[hf({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; @@ -473,12 +473,12 @@ ${t} color: var(--n-text-color); margin: auto; box-shadow: var(--n-box-shadow); - `,[N0({duration:".25s",enterScale:".5"})])]),$y=Object.assign(Object.assign(Object.assign(Object.assign({},it.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}}),As),{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}),Ey=Re({name:"Modal",inheritAttrs:!1,props:$y,setup(e){const t=re(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=wn(e),i=it("Modal","-modal",_y,Cy,e,n),s=xu(64),l=yu(),a=Cu(),c=e.internalDialog?Ae(wf,null):null,u=Yg();function f($){const{onUpdateShow:_,"onUpdate:show":b,onHide:x}=e;_&&an(_,$),b&&an(b,$),x&&!$&&x($)}function d(){const{onClose:$}=e;$?Promise.resolve($()).then(_=>{_!==!1&&f(!1)}):f(!1)}function v(){const{onPositiveClick:$}=e;$?Promise.resolve($()).then(_=>{_!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:$}=e;$?Promise.resolve($()).then(_=>{_!==!1&&f(!1)}):f(!1)}function C(){const{onBeforeLeave:$,onBeforeHide:_}=e;$&&an($),_&&_()}function y(){const{onAfterLeave:$,onAfterHide:_}=e;$&&an($),_&&_()}function m($){var _;const{onMaskClick:b}=e;b&&b($),e.maskClosable&&!((_=t.value)===null||_===void 0)&&_.contains(ms($))&&f(!1)}function S($){var _;(_=e.onEsc)===null||_===void 0||_.call(e),e.show&&e.closeOnEsc&&ng($)&&!u.value&&f(!1)}Xe(wu,{getMousePosition:()=>{if(c){const{clickedRef:$,clickPositionRef:_}=c;if($.value&&_.value)return _.value}return s.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:a,appearRef:Pt(e,"internalAppear"),transformOriginRef:Pt(e,"transformOrigin")});const k=Y(()=>{const{common:{cubicBezierEaseOut:$},self:{boxShadow:_,color:b,textColor:x}}=i.value;return{"--n-bezier-ease-out":$,"--n-box-shadow":_,"--n-color":b,"--n-text-color":x}}),R=o?Gn("theme-class",void 0,k,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:a,containerRef:t,presetProps:Y(()=>vo(e,wy)),handleEsc:S,handleAfterLeave:y,handleClickoutside:m,handleBeforeLeave:C,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:v,handleCloseClick:d,cssVars:o?void 0:k,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender}},render(){const{mergedClsPrefix:e}=this;return E(_g,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return mi(E("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},E(Sy,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 E(Gt,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?E("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[xg,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Ry=Object.assign(Object.assign({},Wo),{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}),Py=Re({name:"DialogEnvironment",props:Object.assign(Object.assign({},Ry),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=re(!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 E(Ey,{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:()=>E(Cf,Object.assign({},vo(this.$props,xf),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),Ty={injectionKey:String,to:[String,Object]},Oy=Re({name:"DialogProvider",props:Ty,setup(){const e=re([]),t={};function n(l={}){const a=ys(),c=bn(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 Xe(my,s),Xe(wf,{clickedRef:xu(64),clickPositionRef:yu()}),Xe(by,e),Object.assign(Object.assign({},s),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return E(Me,null,[this.dialogList.map(n=>E(Py,su(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)])}}),Ay={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"},Iy=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:C}=e;return Object.assign(Object.assign({},Ay),{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:C,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:C,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:C,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:C,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:C,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:C,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:d,borderRadius:v})},zy={name:"Message",common:qn,self:Iy},By=zy,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},ky="n-message-api",_f="n-message-provider",My=D([xe("message-wrapper",` + `,[D0({duration:".25s",enterScale:".5"})])]),_y=Object.assign(Object.assign(Object.assign(Object.assign({},it.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}}),As),{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}),$y=Re({name:"Modal",inheritAttrs:!1,props:_y,setup(e){const t=re(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=wn(e),i=it("Modal","-modal",Sy,xy,e,n),s=yu(64),l=bu(),a=xu(),c=e.internalDialog?Ae(Cf,null):null,u=Xg();function f($){const{onUpdateShow:_,"onUpdate:show":b,onHide:x}=e;_&&an(_,$),b&&an(b,$),x&&!$&&x($)}function d(){const{onClose:$}=e;$?Promise.resolve($()).then(_=>{_!==!1&&f(!1)}):f(!1)}function v(){const{onPositiveClick:$}=e;$?Promise.resolve($()).then(_=>{_!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:$}=e;$?Promise.resolve($()).then(_=>{_!==!1&&f(!1)}):f(!1)}function C(){const{onBeforeLeave:$,onBeforeHide:_}=e;$&&an($),_&&_()}function y(){const{onAfterLeave:$,onAfterHide:_}=e;$&&an($),_&&_()}function m($){var _;const{onMaskClick:b}=e;b&&b($),e.maskClosable&&!((_=t.value)===null||_===void 0)&&_.contains(ms($))&&f(!1)}function S($){var _;(_=e.onEsc)===null||_===void 0||_.call(e),e.show&&e.closeOnEsc&&tg($)&&!u.value&&f(!1)}Xe(Cu,{getMousePosition:()=>{if(c){const{clickedRef:$,clickPositionRef:_}=c;if($.value&&_.value)return _.value}return s.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:a,appearRef:Pt(e,"internalAppear"),transformOriginRef:Pt(e,"transformOrigin")});const k=Y(()=>{const{common:{cubicBezierEaseOut:$},self:{boxShadow:_,color:b,textColor:x}}=i.value;return{"--n-bezier-ease-out":$,"--n-box-shadow":_,"--n-color":b,"--n-text-color":x}}),R=o?qn("theme-class",void 0,k,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:a,containerRef:t,presetProps:Y(()=>mo(e,Cy)),handleEsc:S,handleAfterLeave:y,handleClickoutside:m,handleBeforeLeave:C,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:v,handleCloseClick:d,cssVars:o?void 0:k,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender}},render(){const{mergedClsPrefix:e}=this;return E(Sg,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return bi(E("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},E(wy,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 E(Gt,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?E("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[yg,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Ey=Object.assign(Object.assign({},Vo),{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}),Ry=Re({name:"DialogEnvironment",props:Object.assign(Object.assign({},Ey),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=re(!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 E($y,{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:()=>E(xf,Object.assign({},mo(this.$props,yf),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),Py={injectionKey:String,to:[String,Object]},Ty=Re({name:"DialogProvider",props:Py,setup(){const e=re([]),t={};function n(l={}){const a=ys(),c=bn(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 Xe(vy,s),Xe(Cf,{clickedRef:yu(64),clickPositionRef:bu()}),Xe(my,e),Object.assign(Object.assign({},s),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return E(Me,null,[this.dialogList.map(n=>E(Ry,iu(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)])}}),Oy={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"},Ay=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:C}=e;return Object.assign(Object.assign({},Oy),{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:C,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:C,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:C,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:C,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:C,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:C,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:d,borderRadius:v})},Iy={name:"Message",common:Xn,self:Ay},zy=Iy,wf={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},By="n-message-api",Sf="n-message-provider",ky=D([xe("message-wrapper",` margin: var(--n-margin); z-index: 0; transform-origin: top center; display: flex; - `,[q0({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),xe("message",` + `,[G0({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),xe("message",` box-sizing: border-box; display: flex; align-items: center; @@ -517,7 +517,7 @@ ${t} top: 0; right: 0; bottom: 0; - `,[xo()])]),ee("close",` + `,[Co()])]),ee("close",` margin: var(--n-close-margin); transition: background-color .3s var(--n-bezier), @@ -566,8 +566,8 @@ ${t} right: 12px; justify-content: flex-end; align-items: flex-end; - `)])]),Ly={info:()=>E(ji,null),success:()=>E(af,null),warning:()=>E(cf,null),error:()=>E(lf,null),default:()=>null},Hy=Re({name:"Message",props:Object.assign(Object.assign({},Sf),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=wn(e),{props:r,mergedClsPrefixRef:o}=Ae(_f),i=Mr("Message",n,o),s=it("Message","-message",My,By,r,o),l=Y(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:f,margin:d,maxWidth:v,iconMargin:p,closeMargin:C,closeSize:y,iconSize:m,fontSize:S,lineHeight:k,borderRadius:R,iconColorInfo:$,iconColorSuccess:_,iconColorWarning:b,iconColorError:x,iconColorLoading:P,closeIconSize:F,closeBorderRadius:W,[ie("textColor",c)]:z,[ie("boxShadow",c)]:Z,[ie("color",c)]:oe,[ie("closeColorHover",c)]:ce,[ie("closeColorPressed",c)]:X,[ie("closeIconColor",c)]:U,[ie("closeIconColorPressed",c)]:ne,[ie("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":F,"--n-close-border-radius":W,"--n-close-size":y,"--n-close-margin":C,"--n-text-color":z,"--n-color":oe,"--n-box-shadow":Z,"--n-icon-color-info":$,"--n-icon-color-success":_,"--n-icon-color-warning":b,"--n-icon-color-error":x,"--n-icon-color-loading":P,"--n-close-color-hover":ce,"--n-close-color-pressed":X,"--n-close-icon-color":U,"--n-close-icon-color-pressed":ne,"--n-close-icon-color-hover":Ce,"--n-line-height":k,"--n-border-radius":R}}),a=t?Gn("message",Y(()=>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 E("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):E("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=Fy(a,t,o))&&u?E("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},E(Rs,null,{default:()=>f})):null,E("div",{class:`${o}-message__content`},en(r)),n?E(Ts,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function Fy(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?E(ff,{clsPrefix:n,strokeWidth:24,scale:.85}):Ly[t]();return r?E(Ps,{clsPrefix:n,key:t},{default:()=>r}):null}}const jy=Re({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=re(!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 E(uf,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?E(Hy,{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]})}}),Dy=Object.assign(Object.assign({},it.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),Ny=Re({name:"MessageProvider",props:Dy,setup(e){const{mergedClsPrefixRef:t}=wn(e),n=re([]),r=re({}),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};Xe(_f,{props:e,mergedClsPrefixRef:t}),Xe(ky,o);function i(a,c){const u=ys(),f=bn(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 E(Me,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?E(jc,{to:(n=this.to)!==null&&n!==void 0?n:"body"},E("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(r=>E(jy,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},su(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)}});/*! + `)])]),My={info:()=>E(Di,null),success:()=>E(lf,null),warning:()=>E(af,null),error:()=>E(sf,null),default:()=>null},Ly=Re({name:"Message",props:Object.assign(Object.assign({},wf),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=wn(e),{props:r,mergedClsPrefixRef:o}=Ae(Sf),i=Lr("Message",n,o),s=it("Message","-message",ky,zy,r,o),l=Y(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:f,margin:d,maxWidth:v,iconMargin:p,closeMargin:C,closeSize:y,iconSize:m,fontSize:S,lineHeight:k,borderRadius:R,iconColorInfo:$,iconColorSuccess:_,iconColorWarning:b,iconColorError:x,iconColorLoading:P,closeIconSize:F,closeBorderRadius:W,[ie("textColor",c)]:z,[ie("boxShadow",c)]:Z,[ie("color",c)]:oe,[ie("closeColorHover",c)]:ce,[ie("closeColorPressed",c)]:X,[ie("closeIconColor",c)]:U,[ie("closeIconColorPressed",c)]:ne,[ie("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":F,"--n-close-border-radius":W,"--n-close-size":y,"--n-close-margin":C,"--n-text-color":z,"--n-color":oe,"--n-box-shadow":Z,"--n-icon-color-info":$,"--n-icon-color-success":_,"--n-icon-color-warning":b,"--n-icon-color-error":x,"--n-icon-color-loading":P,"--n-close-color-hover":ce,"--n-close-color-pressed":X,"--n-close-icon-color":U,"--n-close-icon-color-pressed":ne,"--n-close-icon-color-hover":Ce,"--n-line-height":k,"--n-border-radius":R}}),a=t?qn("message",Y(()=>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 E("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):E("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=Hy(a,t,o))&&u?E("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},E(Rs,null,{default:()=>f})):null,E("div",{class:`${o}-message__content`},en(r)),n?E(Ts,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function Hy(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?E(uf,{clsPrefix:n,strokeWidth:24,scale:.85}):My[t]();return r?E(Ps,{clsPrefix:n,key:t},{default:()=>r}):null}}const Fy=Re({name:"MessageEnvironment",props:Object.assign(Object.assign({},wf),{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=re(!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 E(cf,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?E(Ly,{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]})}}),jy=Object.assign(Object.assign({},it.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),Dy=Re({name:"MessageProvider",props:jy,setup(e){const{mergedClsPrefixRef:t}=wn(e),n=re([]),r=re({}),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};Xe(Sf,{props:e,mergedClsPrefixRef:t}),Xe(By,o);function i(a,c){const u=ys(),f=bn(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 E(Me,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?E(Fc,{to:(n=this.to)!==null&&n!==void 0?n:"body"},E("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(r=>E(Fy,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},iu(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.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const Rn=typeof window<"u";function Wy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ye=Object.assign;function ui(e,t){const n={};for(const r in t){const o=t[r];n[r]=ht(o)?o.map(e):e(o)}return n}const pr=()=>{},ht=Array.isArray,Vy=/\/$/,Uy=e=>e.replace(Vy,"");function fi(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=Xy(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function Ky(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _a(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Gy(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Hn(t.matched[r],n.matched[o])&&$f(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Hn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function $f(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!qy(e[n],t[n]))return!1;return!0}function qy(e,t){return ht(e)?$a(e,t):ht(t)?$a(t,e):e===t}function $a(e,t){return ht(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Xy(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 gr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(gr||(gr={}));function Yy(e){if(!e)if(Rn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Uy(e)}const Zy=/^[^#]+#/;function Jy(e,t){return e.replace(Zy,"#")+t}function Qy(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 Vo=()=>({left:window.pageXOffset,top:window.pageYOffset});function ex(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=Qy(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 Ea(e,t){return(history.state?history.state.position-t:-1)+e}const Di=new Map;function tx(e,t){Di.set(e,t)}function nx(e){const t=Di.get(e);return Di.delete(e),t}let rx=()=>location.protocol+"//"+location.host;function Ef(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),_a(a,"")}return _a(n,e)+r+o}function ox(e,t,n,r){let o=[],i=[],s=null;const l=({state:d})=>{const v=Ef(e,location),p=n.value,C=t.value;let y=0;if(d){if(n.value=v,t.value=d,s&&s===p){s=null;return}y=C?d.position-C.position:0}else r(v);o.forEach(m=>{m(n.value,p,{delta:y,type:Ar.pop,direction:y?y>0?gr.forward:gr.back:gr.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:Vo()}),"")}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 Ra(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Vo():null}}function ix(e){const{history:t,location:n}=window,r={value:Ef(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:rx()+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,Ra(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:Vo()});i(u.current,u,!0);const f=ye({},Ra(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 sx(e){e=Yy(e);const t=ix(e),n=ox(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:Jy.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 lx(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),sx(e)}function ax(e){return typeof e=="string"||e&&typeof e=="object"}function Rf(e){return typeof e=="string"||typeof e=="symbol"}const Mt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Pf=Symbol("");var Pa;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Pa||(Pa={}));function Fn(e,t){return ye(new Error,{type:e,[Pf]:!0},t)}function St(e,t){return e instanceof Error&&Pf in e&&(t==null||!!(e.type&t))}const Ta="[^/]+?",cx={sensitive:!1,strict:!1,start:!0,end:!0},ux=/[.+*?^${}()[\]/\\]/g;function fx(e,t){const n=ye({},cx,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 hx(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const px={type:0,value:""},gx=/[a-zA-Z0-9_]/;function vx(e){if(!e)return[[]];if(e==="/")return[[px]];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)}:pr}function s(u){if(Rf(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||!Tf(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!Ia(u)&&r.set(u.record.name,u)}function c(u,f){let d,v={},p,C;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw Fn(1,{location:u});C=d.record.name,v=ye(Aa(f.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Aa(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),C=d.record.name);else{if(d=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!d)throw Fn(1,{location:u,currentLocation:f});C=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:C,path:p,params:v,matched:y,meta:Cx(y)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function Aa(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function yx(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:xx(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 xx(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 Ia(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Cx(e){return e.reduce((t,n)=>ye(t,n.meta),{})}function za(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Tf(e,t){return t.children.some(n=>n===e||Tf(e,n))}const Of=/#/g,wx=/&/g,Sx=/\//g,_x=/=/g,$x=/\?/g,Af=/\+/g,Ex=/%5B/g,Rx=/%5D/g,If=/%5E/g,Px=/%60/g,zf=/%7B/g,Tx=/%7C/g,Bf=/%7D/g,Ox=/%20/g;function Is(e){return encodeURI(""+e).replace(Tx,"|").replace(Ex,"[").replace(Rx,"]")}function Ax(e){return Is(e).replace(zf,"{").replace(Bf,"}").replace(If,"^")}function Ni(e){return Is(e).replace(Af,"%2B").replace(Ox,"+").replace(Of,"%23").replace(wx,"%26").replace(Px,"`").replace(zf,"{").replace(Bf,"}").replace(If,"^")}function Ix(e){return Ni(e).replace(_x,"%3D")}function zx(e){return Is(e).replace(Of,"%23").replace($x,"%3F")}function Bx(e){return e==null?"":zx(e).replace(Sx,"%2F")}function Co(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function kx(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Ni(i)):[r&&Ni(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Mx(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ht(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Lx=Symbol(""),ka=Symbol(""),zs=Symbol(""),kf=Symbol(""),Wi=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(Fn(4,{from:n,to:t})):f instanceof Error?l(f):ax(f)?l(Fn(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 di(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(Hx(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=Wy(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 Hx(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ma(e){const t=Ae(zs),n=Ae(kf),r=Y(()=>t.resolve(xt(e.to))),o=Y(()=>{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(Hn.bind(null,u));if(d>-1)return d;const v=La(a[c-2]);return c>1&&La(u)===v&&f[f.length-1].path!==v?f.findIndex(Hn.bind(null,a[c-2])):d}),i=Y(()=>o.value>-1&&Nx(n.params,r.value.params)),s=Y(()=>o.value>-1&&o.value===n.matched.length-1&&$f(n.params,r.value.params));function l(a={}){return Dx(a)?t[xt(e.replace)?"replace":"push"](xt(e.to)).catch(pr):Promise.resolve()}return{route:r,href:Y(()=>r.value.href),isActive:i,isExactActive:s,navigate:l}}const Fx=Re({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:Ma,setup(e,{slots:t}){const n=bn(Ma(e)),{options:r}=Ae(zs),o=Y(()=>({[Ha(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ha(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:E("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),jx=Fx;function Dx(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 Nx(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(!ht(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function La(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ha=(e,t,n)=>e??t??n,Wx=Re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ae(Wi),o=Y(()=>e.route||r.value),i=Ae(ka,0),s=Y(()=>{let c=xt(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=Y(()=>o.value.matched[s.value]);Xe(ka,Y(()=>s.value+1)),Xe(Lx,l),Xe(Wi,o);const a=re();return dt(()=>[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||!Hn(u,v)||!d)&&(u.enterCallbacks[f]||[]).forEach(C=>C(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Fa(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=E(d,ye({},p,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Fa(n.default,{Component:y,route:c})||y}}});function Fa(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Mf=Wx;function Vx(e){const t=bx(e.routes,e),n=e.parseQuery||kx,r=e.stringifyQuery||Ba,o=e.history,i=nr(),s=nr(),l=nr(),a=rs(Mt);let c=Mt;Rn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ui.bind(null,T=>""+T),f=ui.bind(null,Bx),d=ui.bind(null,Co);function v(T,V){let B,q;return Rf(T)?(B=t.getRecordMatcher(T),q=V):q=T,t.addRoute(q,B)}function p(T){const V=t.getRecordMatcher(T);V&&t.removeRoute(V)}function C(){return t.getRoutes().map(T=>T.record)}function y(T){return!!t.getRecordMatcher(T)}function m(T,V){if(V=ye({},V||a.value),typeof T=="string"){const g=fi(n,T,V.path),w=t.resolve({path:g.path},V),A=o.createHref(g.fullPath);return ye(g,w,{params:d(w.params),hash:Co(g.hash),redirectedFrom:void 0,href:A})}let B;if("path"in T)B=ye({},T,{path:fi(n,T.path,V.path).path});else{const g=ye({},T.params);for(const w in g)g[w]==null&&delete g[w];B=ye({},T,{params:f(g)}),V.params=f(V.params)}const q=t.resolve(B,V),pe=T.hash||"";q.params=u(d(q.params));const ve=Ky(r,ye({},T,{hash:Ax(pe),path:q.path})),h=o.createHref(ve);return ye({fullPath:ve,hash:pe,query:r===Ba?Mx(T.query):T.query||{}},q,{redirectedFrom:void 0,href:h})}function S(T){return typeof T=="string"?fi(n,T,a.value.path):ye({},T)}function k(T,V){if(c!==T)return Fn(8,{from:V,to:T})}function R(T){return b(T)}function $(T){return R(ye(S(T),{replace:!0}))}function _(T){const V=T.matched[T.matched.length-1];if(V&&V.redirect){const{redirect:B}=V;let q=typeof B=="function"?B(T):B;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=S(q):{path:q},q.params={}),ye({query:T.query,hash:T.hash,params:"path"in q?{}:T.params},q)}}function b(T,V){const B=c=m(T),q=a.value,pe=T.state,ve=T.force,h=T.replace===!0,g=_(B);if(g)return b(ye(S(g),{state:typeof g=="object"?ye({},pe,g.state):pe,force:ve,replace:h}),V||B);const w=B;w.redirectedFrom=V;let A;return!ve&&Gy(r,q,B)&&(A=Fn(16,{to:w,from:q}),Se(q,q,!0,!1)),(A?Promise.resolve(A):F(w,q)).catch(O=>St(O)?St(O,2)?O:we(O):ne(O,w,q)).then(O=>{if(O){if(St(O,2))return b(ye({replace:h},S(O.to),{state:typeof O.to=="object"?ye({},pe,O.to.state):pe,force:ve}),V||w)}else O=z(w,q,!0,h,pe);return W(w,q,O),O})}function x(T,V){const B=k(T,V);return B?Promise.reject(B):Promise.resolve()}function P(T){const V=Ue.values().next().value;return V&&typeof V.runWithContext=="function"?V.runWithContext(T):T()}function F(T,V){let B;const[q,pe,ve]=Ux(T,V);B=di(q.reverse(),"beforeRouteLeave",T,V);for(const g of q)g.leaveGuards.forEach(w=>{B.push(Wt(w,T,V))});const h=x.bind(null,T,V);return B.push(h),fe(B).then(()=>{B=[];for(const g of i.list())B.push(Wt(g,T,V));return B.push(h),fe(B)}).then(()=>{B=di(pe,"beforeRouteUpdate",T,V);for(const g of pe)g.updateGuards.forEach(w=>{B.push(Wt(w,T,V))});return B.push(h),fe(B)}).then(()=>{B=[];for(const g of ve)if(g.beforeEnter)if(ht(g.beforeEnter))for(const w of g.beforeEnter)B.push(Wt(w,T,V));else B.push(Wt(g.beforeEnter,T,V));return B.push(h),fe(B)}).then(()=>(T.matched.forEach(g=>g.enterCallbacks={}),B=di(ve,"beforeRouteEnter",T,V),B.push(h),fe(B))).then(()=>{B=[];for(const g of s.list())B.push(Wt(g,T,V));return B.push(h),fe(B)}).catch(g=>St(g,8)?g:Promise.reject(g))}function W(T,V,B){l.list().forEach(q=>P(()=>q(T,V,B)))}function z(T,V,B,q,pe){const ve=k(T,V);if(ve)return ve;const h=V===Mt,g=Rn?history.state:{};B&&(q||h?o.replace(T.fullPath,ye({scroll:h&&g&&g.scroll},pe)):o.push(T.fullPath,pe)),a.value=T,Se(T,V,B,h),we()}let Z;function oe(){Z||(Z=o.listen((T,V,B)=>{if(!Je.listening)return;const q=m(T),pe=_(q);if(pe){b(ye(pe,{replace:!0}),q).catch(pr);return}c=q;const ve=a.value;Rn&&tx(Ea(ve.fullPath,B.delta),Vo()),F(q,ve).catch(h=>St(h,12)?h:St(h,2)?(b(h.to,q).then(g=>{St(g,20)&&!B.delta&&B.type===Ar.pop&&o.go(-1,!1)}).catch(pr),Promise.reject()):(B.delta&&o.go(-B.delta,!1),ne(h,q,ve))).then(h=>{h=h||z(q,ve,!1),h&&(B.delta&&!St(h,8)?o.go(-B.delta,!1):B.type===Ar.pop&&St(h,20)&&o.go(-1,!1)),W(q,ve,h)}).catch(pr)}))}let ce=nr(),X=nr(),U;function ne(T,V,B){we(T);const q=X.list();return q.length?q.forEach(pe=>pe(T,V,B)):console.error(T),Promise.reject(T)}function Ce(){return U&&a.value!==Mt?Promise.resolve():new Promise((T,V)=>{ce.add([T,V])})}function we(T){return U||(U=!T,oe(),ce.list().forEach(([V,B])=>T?B(T):V()),ce.reset()),T}function Se(T,V,B,q){const{scrollBehavior:pe}=e;if(!Rn||!pe)return Promise.resolve();const ve=!B&&nx(Ea(T.fullPath,0))||(q||!B)&&history.state&&history.state.scroll||null;return kn().then(()=>pe(T,V,ve)).then(h=>h&&ex(h)).catch(h=>ne(h,T,V))}const _e=T=>o.go(T);let Ze;const Ue=new Set,Je={currentRoute:a,listening:!0,addRoute:v,removeRoute:p,hasRoute:y,getRoutes:C,resolve:m,options:e,push:R,replace:$,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:X.add,isReady:Ce,install(T){const V=this;T.component("RouterLink",jx),T.component("RouterView",Mf),T.config.globalProperties.$router=V,Object.defineProperty(T.config.globalProperties,"$route",{enumerable:!0,get:()=>xt(a)}),Rn&&!Ze&&a.value===Mt&&(Ze=!0,R(o.location).catch(pe=>{}));const B={};for(const pe in Mt)Object.defineProperty(B,pe,{get:()=>a.value[pe],enumerable:!0});T.provide(zs,V),T.provide(kf,uc(B)),T.provide(Wi,a);const q=T.unmount;Ue.add(T),T.unmount=function(){Ue.delete(T),Ue.size<1&&(c=Mt,Z&&Z(),Z=null,a.value=Mt,Ze=!1,U=!1),q()}}};function fe(T){return T.reduce((V,B)=>V.then(()=>P(B)),Promise.resolve())}return Je}function Ux(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sHn(c,l))?r.push(l):n.push(l));const a=e.matched[s];a&&(t.matched.find(c=>Hn(c,a))||o.push(a))}return[n,r,o]}const Kx=Re({__name:"App",setup(e){const t={common:{primaryColor:"#2080F0FF",primaryColorHover:"#4098FCFF",primaryColorPressed:"#1060C9FF",primaryColorSuppl:"#4098FCFF"}};return(n,r)=>(ds(),hs(xt(fy),{"theme-overrides":t},{default:oo(()=>[je(xt(Oy),null,{default:oo(()=>[je(xt(Ny),null,{default:oo(()=>[je(xt(Mf))]),_:1})]),_:1})]),_:1}))}}),Gx="modulepreload",qx=function(e){return"/web/"+e},ja={},Xx=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=qx(i),i in ja)return;ja[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":Gx,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})},Yx=Vx({history:lx("/web"),routes:[{path:"/",name:"chat",component:()=>Xx(()=>import("./index-42586374.js"),["assets/index-42586374.js","assets/index-1dc749ba.css"])}]}),Bs=ip(Kx);wp(Bs);Bs.use(Yx);Bs.mount("#app");export{Gu as $,Pt as A,Cu as B,Xp as C,E as D,xg as E,kn as F,Ec as G,Rc as H,s1 as I,gs as J,l1 as K,_g as L,qd as M,ql as N,_s as O,Wn as P,Gm as Q,ju as R,Es as S,Km as T,bo as U,Xl as V,dv as W,Un as X,_b as Y,_v as Z,kr as _,Xt as a,u1 as a$,Ln as a0,Fo as a1,ba as a2,Wu as a3,Kn as a4,Uu as a5,Vn as a6,xn as a7,Fu as a8,Hu as a9,N0 as aA,Mr as aB,ut as aC,ff as aD,D0 as aE,El as aF,iu as aG,d1 as aH,ss as aI,vg as aJ,ms as aK,zp as aL,qg as aM,Me as aN,m1 as aO,Ip as aP,Tt as aQ,Ao as aR,vo as aS,an as aT,Kr as aU,Ts as aV,Pl as aW,xo as aX,No as aY,Rs as aZ,Rl as a_,ki as aa,Lu as ab,x0 as ac,hv as ad,qt as ae,Lr as af,hn as ag,Cn as ah,Gr as ai,bs as aj,qn as ak,xe as al,ee as am,D as an,wn as ao,it as ap,Gn as aq,Ps as ar,ie as as,L0 as at,g1 as au,hf as av,en as aw,Gt as ax,de as ay,Ai as az,mu as b,Y0 as b0,Jg as b1,Br as b2,Q0 as b3,vf as b4,oy as b5,h1 as b6,v1 as b7,mo as b8,hy as b9,Cy as bA,o1 as bB,ds as bC,t1 as bD,Zx as bE,hs as bF,oo as bG,Vc as bH,je as bI,r1 as bJ,xt as bK,_r as bL,Ey as bM,i1 as bN,ke as bO,fy as bP,Oc as bQ,Tc as bR,e1 as bS,n1 as bT,Xi as bU,Jx as bV,Qx as bW,yy as ba,Ti as bb,Ye as bc,a1 as bd,xs as be,ys as bf,ra as bg,Iy as bh,pf as bi,qi as bj,b1 as bk,hu as bl,tg as bm,Ap as bn,ky as bo,af as bp,lf as bq,cf as br,ji as bs,uf as bt,Sa as bu,q0 as bv,jc as bw,bf as bx,yf as by,By as bz,Y as c,bn as d,yn as e,qe as f,zo as g,vu as h,Ae as i,Rt as j,at as k,c1 as l,dg as m,hg as n,pt as o,pg as p,Re as q,re as r,Xe as s,Ml as t,Ii as u,dl as v,dt as w,mi as x,p1 as y,Ho as z}; + */const Rn=typeof window<"u";function Ny(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ye=Object.assign;function fi(e,t){const n={};for(const r in t){const o=t[r];n[r]=ht(o)?o.map(e):e(o)}return n}const gr=()=>{},ht=Array.isArray,Wy=/\/$/,Vy=e=>e.replace(Wy,"");function di(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=qy(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function Uy(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _a(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ky(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])&&_f(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 _f(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Gy(e[n],t[n]))return!1;return!0}function Gy(e,t){return ht(e)?$a(e,t):ht(t)?$a(t,e):e===t}function $a(e,t){return ht(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function qy(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 Ir;(function(e){e.pop="pop",e.push="push"})(Ir||(Ir={}));var vr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(vr||(vr={}));function Xy(e){if(!e)if(Rn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Vy(e)}const Yy=/^[^#]+#/;function Zy(e,t){return e.replace(Yy,"#")+t}function Jy(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 Uo=()=>({left:window.pageXOffset,top:window.pageYOffset});function Qy(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=Jy(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 Ea(e,t){return(history.state?history.state.position-t:-1)+e}const Ni=new Map;function ex(e,t){Ni.set(e,t)}function tx(e){const t=Ni.get(e);return Ni.delete(e),t}let nx=()=>location.protocol+"//"+location.host;function $f(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),_a(a,"")}return _a(n,e)+r+o}function rx(e,t,n,r){let o=[],i=[],s=null;const l=({state:d})=>{const v=$f(e,location),p=n.value,C=t.value;let y=0;if(d){if(n.value=v,t.value=d,s&&s===p){s=null;return}y=C?d.position-C.position:0}else r(v);o.forEach(m=>{m(n.value,p,{delta:y,type:Ir.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:Uo()}),"")}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 Ra(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Uo():null}}function ox(e){const{history:t,location:n}=window,r={value:$f(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:nx()+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,Ra(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:Uo()});i(u.current,u,!0);const f=ye({},Ra(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 ix(e){e=Xy(e);const t=ox(e),n=rx(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:Zy.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 sx(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),ix(e)}function lx(e){return typeof e=="string"||e&&typeof e=="object"}function Ef(e){return typeof e=="string"||typeof e=="symbol"}const Mt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Rf=Symbol("");var Pa;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Pa||(Pa={}));function jn(e,t){return ye(new Error,{type:e,[Rf]:!0},t)}function St(e,t){return e instanceof Error&&Rf in e&&(t==null||!!(e.type&t))}const Ta="[^/]+?",ax={sensitive:!1,strict:!1,start:!0,end:!0},cx=/[.+*?^${}()[\]/\\]/g;function ux(e,t){const n=ye({},ax,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 dx(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const hx={type:0,value:""},px=/[a-zA-Z0-9_]/;function gx(e){if(!e)return[[]];if(e==="/")return[[hx]];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(Ef(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||!Pf(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!Ia(u)&&r.set(u.record.name,u)}function c(u,f){let d,v={},p,C;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw jn(1,{location:u});C=d.record.name,v=ye(Aa(f.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Aa(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),C=d.record.name);else{if(d=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!d)throw jn(1,{location:u,currentLocation:f});C=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:C,path:p,params:v,matched:y,meta:xx(y)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function Aa(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function bx(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:yx(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 yx(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 Ia(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function xx(e){return e.reduce((t,n)=>ye(t,n.meta),{})}function za(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Pf(e,t){return t.children.some(n=>n===e||Pf(e,n))}const Tf=/#/g,Cx=/&/g,wx=/\//g,Sx=/=/g,_x=/\?/g,Of=/\+/g,$x=/%5B/g,Ex=/%5D/g,Af=/%5E/g,Rx=/%60/g,If=/%7B/g,Px=/%7C/g,zf=/%7D/g,Tx=/%20/g;function Is(e){return encodeURI(""+e).replace(Px,"|").replace($x,"[").replace(Ex,"]")}function Ox(e){return Is(e).replace(If,"{").replace(zf,"}").replace(Af,"^")}function Wi(e){return Is(e).replace(Of,"%2B").replace(Tx,"+").replace(Tf,"%23").replace(Cx,"%26").replace(Rx,"`").replace(If,"{").replace(zf,"}").replace(Af,"^")}function Ax(e){return Wi(e).replace(Sx,"%3D")}function Ix(e){return Is(e).replace(Tf,"%23").replace(_x,"%3F")}function zx(e){return e==null?"":Ix(e).replace(wx,"%2F")}function wo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Bx(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Wi(i)):[r&&Wi(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function kx(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ht(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Mx=Symbol(""),ka=Symbol(""),zs=Symbol(""),Bf=Symbol(""),Vi=Symbol("");function rr(){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(jn(4,{from:n,to:t})):f instanceof Error?l(f):lx(f)?l(jn(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 hi(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(Lx(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=Ny(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 Lx(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ma(e){const t=Ae(zs),n=Ae(Bf),r=Y(()=>t.resolve(xt(e.to))),o=Y(()=>{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=La(a[c-2]);return c>1&&La(u)===v&&f[f.length-1].path!==v?f.findIndex(Fn.bind(null,a[c-2])):d}),i=Y(()=>o.value>-1&&Dx(n.params,r.value.params)),s=Y(()=>o.value>-1&&o.value===n.matched.length-1&&_f(n.params,r.value.params));function l(a={}){return jx(a)?t[xt(e.replace)?"replace":"push"](xt(e.to)).catch(gr):Promise.resolve()}return{route:r,href:Y(()=>r.value.href),isActive:i,isExactActive:s,navigate:l}}const Hx=Re({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:Ma,setup(e,{slots:t}){const n=bn(Ma(e)),{options:r}=Ae(zs),o=Y(()=>({[Ha(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ha(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:E("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),Fx=Hx;function jx(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 Dx(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(!ht(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function La(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ha=(e,t,n)=>e??t??n,Nx=Re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ae(Vi),o=Y(()=>e.route||r.value),i=Ae(ka,0),s=Y(()=>{let c=xt(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=Y(()=>o.value.matched[s.value]);Xe(ka,Y(()=>s.value+1)),Xe(Mx,l),Xe(Vi,o);const a=re();return dt(()=>[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(C=>C(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Fa(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=E(d,ye({},p,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Fa(n.default,{Component:y,route:c})||y}}});function Fa(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const kf=Nx;function Wx(e){const t=mx(e.routes,e),n=e.parseQuery||Bx,r=e.stringifyQuery||Ba,o=e.history,i=rr(),s=rr(),l=rr(),a=os(Mt);let c=Mt;Rn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=fi.bind(null,T=>""+T),f=fi.bind(null,zx),d=fi.bind(null,wo);function v(T,V){let B,q;return Ef(T)?(B=t.getRecordMatcher(T),q=V):q=T,t.addRoute(q,B)}function p(T){const V=t.getRecordMatcher(T);V&&t.removeRoute(V)}function C(){return t.getRoutes().map(T=>T.record)}function y(T){return!!t.getRecordMatcher(T)}function m(T,V){if(V=ye({},V||a.value),typeof T=="string"){const g=di(n,T,V.path),w=t.resolve({path:g.path},V),A=o.createHref(g.fullPath);return ye(g,w,{params:d(w.params),hash:wo(g.hash),redirectedFrom:void 0,href:A})}let B;if("path"in T)B=ye({},T,{path:di(n,T.path,V.path).path});else{const g=ye({},T.params);for(const w in g)g[w]==null&&delete g[w];B=ye({},T,{params:f(g)}),V.params=f(V.params)}const q=t.resolve(B,V),pe=T.hash||"";q.params=u(d(q.params));const ve=Uy(r,ye({},T,{hash:Ox(pe),path:q.path})),h=o.createHref(ve);return ye({fullPath:ve,hash:pe,query:r===Ba?kx(T.query):T.query||{}},q,{redirectedFrom:void 0,href:h})}function S(T){return typeof T=="string"?di(n,T,a.value.path):ye({},T)}function k(T,V){if(c!==T)return jn(8,{from:V,to:T})}function R(T){return b(T)}function $(T){return R(ye(S(T),{replace:!0}))}function _(T){const V=T.matched[T.matched.length-1];if(V&&V.redirect){const{redirect:B}=V;let q=typeof B=="function"?B(T):B;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=S(q):{path:q},q.params={}),ye({query:T.query,hash:T.hash,params:"path"in q?{}:T.params},q)}}function b(T,V){const B=c=m(T),q=a.value,pe=T.state,ve=T.force,h=T.replace===!0,g=_(B);if(g)return b(ye(S(g),{state:typeof g=="object"?ye({},pe,g.state):pe,force:ve,replace:h}),V||B);const w=B;w.redirectedFrom=V;let A;return!ve&&Ky(r,q,B)&&(A=jn(16,{to:w,from:q}),Se(q,q,!0,!1)),(A?Promise.resolve(A):F(w,q)).catch(O=>St(O)?St(O,2)?O:we(O):ne(O,w,q)).then(O=>{if(O){if(St(O,2))return b(ye({replace:h},S(O.to),{state:typeof O.to=="object"?ye({},pe,O.to.state):pe,force:ve}),V||w)}else O=z(w,q,!0,h,pe);return W(w,q,O),O})}function x(T,V){const B=k(T,V);return B?Promise.reject(B):Promise.resolve()}function P(T){const V=Ue.values().next().value;return V&&typeof V.runWithContext=="function"?V.runWithContext(T):T()}function F(T,V){let B;const[q,pe,ve]=Vx(T,V);B=hi(q.reverse(),"beforeRouteLeave",T,V);for(const g of q)g.leaveGuards.forEach(w=>{B.push(Wt(w,T,V))});const h=x.bind(null,T,V);return B.push(h),fe(B).then(()=>{B=[];for(const g of i.list())B.push(Wt(g,T,V));return B.push(h),fe(B)}).then(()=>{B=hi(pe,"beforeRouteUpdate",T,V);for(const g of pe)g.updateGuards.forEach(w=>{B.push(Wt(w,T,V))});return B.push(h),fe(B)}).then(()=>{B=[];for(const g of ve)if(g.beforeEnter)if(ht(g.beforeEnter))for(const w of g.beforeEnter)B.push(Wt(w,T,V));else B.push(Wt(g.beforeEnter,T,V));return B.push(h),fe(B)}).then(()=>(T.matched.forEach(g=>g.enterCallbacks={}),B=hi(ve,"beforeRouteEnter",T,V),B.push(h),fe(B))).then(()=>{B=[];for(const g of s.list())B.push(Wt(g,T,V));return B.push(h),fe(B)}).catch(g=>St(g,8)?g:Promise.reject(g))}function W(T,V,B){l.list().forEach(q=>P(()=>q(T,V,B)))}function z(T,V,B,q,pe){const ve=k(T,V);if(ve)return ve;const h=V===Mt,g=Rn?history.state:{};B&&(q||h?o.replace(T.fullPath,ye({scroll:h&&g&&g.scroll},pe)):o.push(T.fullPath,pe)),a.value=T,Se(T,V,B,h),we()}let Z;function oe(){Z||(Z=o.listen((T,V,B)=>{if(!Je.listening)return;const q=m(T),pe=_(q);if(pe){b(ye(pe,{replace:!0}),q).catch(gr);return}c=q;const ve=a.value;Rn&&ex(Ea(ve.fullPath,B.delta),Uo()),F(q,ve).catch(h=>St(h,12)?h:St(h,2)?(b(h.to,q).then(g=>{St(g,20)&&!B.delta&&B.type===Ir.pop&&o.go(-1,!1)}).catch(gr),Promise.reject()):(B.delta&&o.go(-B.delta,!1),ne(h,q,ve))).then(h=>{h=h||z(q,ve,!1),h&&(B.delta&&!St(h,8)?o.go(-B.delta,!1):B.type===Ir.pop&&St(h,20)&&o.go(-1,!1)),W(q,ve,h)}).catch(gr)}))}let ce=rr(),X=rr(),U;function ne(T,V,B){we(T);const q=X.list();return q.length?q.forEach(pe=>pe(T,V,B)):console.error(T),Promise.reject(T)}function Ce(){return U&&a.value!==Mt?Promise.resolve():new Promise((T,V)=>{ce.add([T,V])})}function we(T){return U||(U=!T,oe(),ce.list().forEach(([V,B])=>T?B(T):V()),ce.reset()),T}function Se(T,V,B,q){const{scrollBehavior:pe}=e;if(!Rn||!pe)return Promise.resolve();const ve=!B&&tx(Ea(T.fullPath,0))||(q||!B)&&history.state&&history.state.scroll||null;return Mn().then(()=>pe(T,V,ve)).then(h=>h&&Qy(h)).catch(h=>ne(h,T,V))}const _e=T=>o.go(T);let Ze;const Ue=new Set,Je={currentRoute:a,listening:!0,addRoute:v,removeRoute:p,hasRoute:y,getRoutes:C,resolve:m,options:e,push:R,replace:$,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:X.add,isReady:Ce,install(T){const V=this;T.component("RouterLink",Fx),T.component("RouterView",kf),T.config.globalProperties.$router=V,Object.defineProperty(T.config.globalProperties,"$route",{enumerable:!0,get:()=>xt(a)}),Rn&&!Ze&&a.value===Mt&&(Ze=!0,R(o.location).catch(pe=>{}));const B={};for(const pe in Mt)Object.defineProperty(B,pe,{get:()=>a.value[pe],enumerable:!0});T.provide(zs,V),T.provide(Bf,cc(B)),T.provide(Vi,a);const q=T.unmount;Ue.add(T),T.unmount=function(){Ue.delete(T),Ue.size<1&&(c=Mt,Z&&Z(),Z=null,a.value=Mt,Ze=!1,U=!1),q()}}};function fe(T){return T.reduce((V,B)=>V.then(()=>P(B)),Promise.resolve())}return Je}function Vx(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 Ux=Re({__name:"App",setup(e){const t={common:{primaryColor:"#2080F0FF",primaryColorHover:"#4098FCFF",primaryColorPressed:"#1060C9FF",primaryColorSuppl:"#4098FCFF"}};return(n,r)=>(hs(),ps(xt(uy),{"theme-overrides":t},{default:io(()=>[je(xt(Ty),null,{default:io(()=>[je(xt(Dy),null,{default:io(()=>[je(xt(kf))]),_:1})]),_:1})]),_:1}))}}),Kx="modulepreload",Gx=function(e){return"/web/"+e},ja={},qx=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Gx(i),i in ja)return;ja[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":Kx,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})},Xx=Wx({history:sx("/web"),routes:[{path:"/",name:"chat",component:()=>qx(()=>import("./index-81176d77.js"),["assets/index-81176d77.js","assets/index-1dc749ba.css"])}]}),Bs=op(Ux);Cp(Bs);Bs.use(Xx);Bs.mount("#app");export{Ku as $,Pt as A,xu as B,qp as C,E as D,yg as E,Mn as F,$c as G,Ec as H,i1 as I,vs as J,s1 as K,Sg as L,Gd as M,ql as N,_s as O,Vn as P,Km as Q,Fu as R,Es as S,Um as T,yo as U,Xl as V,fv as W,Kn as X,Sb as Y,Sv as Z,Mr as _,Xt as a,c1 as a$,Hn as a0,jo as a1,ba as a2,Nu as a3,Gn as a4,Vu as a5,Un as a6,xn as a7,Hu as a8,Lu as a9,D0 as aA,Lr as aB,ut as aC,uf as aD,j0 as aE,El as aF,ou as aG,f1 as aH,ls as aI,gg as aJ,ms as aK,Ip as aL,Gg as aM,Me as aN,v1 as aO,Ap as aP,Tt as aQ,Io as aR,mo as aS,an as aT,Gr as aU,Ts as aV,Pl as aW,Co as aX,Wo as aY,Rs as aZ,Rl as a_,Mi as aa,Mu as ab,y0 as ac,dv as ad,qt as ae,Hr as af,hn as ag,Cn as ah,qr as ai,bs as aj,Xn as ak,xe as al,ee as am,D as an,wn as ao,it as ap,qn as aq,Ps as ar,ie as as,M0 as at,p1 as au,df as av,en as aw,Gt as ax,de as ay,Ii as az,vu as b,X0 as b0,Zg as b1,kr as b2,J0 as b3,gf as b4,ry as b5,d1 as b6,g1 as b7,bo as b8,dy as b9,xy as bA,r1 as bB,hs as bC,e1 as bD,Yx as bE,ps as bF,io as bG,Wc as bH,je as bI,n1 as bJ,xt as bK,_r as bL,$y as bM,o1 as bN,ke as bO,uy as bP,Tc as bQ,Pc as bR,Qx as bS,t1 as bT,Yi as bU,Zx as bV,Jx as bW,by as ba,Oi as bb,Ye as bc,l1 as bd,xs as be,ys as bf,ra as bg,Ay as bh,hf as bi,Xi as bj,m1 as bk,du as bl,eg as bm,Op as bn,By as bo,lf as bp,sf as bq,af as br,Di as bs,cf as bt,Sa as bu,G0 as bv,Fc as bw,mf as bx,bf as by,zy as bz,Y as c,bn as d,yn as e,qe as f,Bo as g,gu as h,Ae as i,Rt as j,at as k,a1 as l,fg as m,dg as n,pt as o,hg as p,Re as q,re as r,Xe as s,Ml as t,zi as u,dl as v,dt as w,bi as x,h1 as y,Fo as z}; diff --git a/web/index.html b/web/index.html index 0154592268..6106059390 100644 --- a/web/index.html +++ b/web/index.html @@ -57,7 +57,7 @@ } } - + diff --git a/web/sw.js b/web/sw.js index 21076c9f01..e05f81680b 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-42586374.js"},{"revision":null,"url":"assets/index-80d2e354.js"},{"revision":null,"url":"assets/index-d82d90ee.css"},{"revision":"c82421f6ab99e040562fc65cc79b1567","url":"compose.html"},{"revision":"e9061fe8aef56b3ed8a23c08891f4291","url":"css/bing.css"},{"revision":"5abe9f34e5c78bd57ae28a0320a565bf","url":"index.html"},{"revision":"92aff8547a1079aa9cd31a0d1f9add5a","url":"js/bing/chat/amd.js"},{"revision":"ad90e054d3529a22368d0431d330ee8d","url":"js/bing/chat/config.js"},{"revision":"84ec7c734c124c30a77f4c1a39bfa845","url":"js/bing/chat/core.js"},{"revision":"e3d3d1bcc931e685b309943808307c25","url":"js/bing/chat/global.js"},{"revision":"db666f0d7ca30b0a2903a0dd1a886d8d","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-1dc749ba.css"},{"revision":null,"url":"assets/index-81176d77.js"},{"revision":null,"url":"assets/index-d82d90ee.css"},{"revision":null,"url":"assets/index-ed99e2b2.js"},{"revision":"c82421f6ab99e040562fc65cc79b1567","url":"compose.html"},{"revision":"e9061fe8aef56b3ed8a23c08891f4291","url":"css/bing.css"},{"revision":"d69b376810ef09fdfe845a4bd3f78111","url":"index.html"},{"revision":"92aff8547a1079aa9cd31a0d1f9add5a","url":"js/bing/chat/amd.js"},{"revision":"ad90e054d3529a22368d0431d330ee8d","url":"js/bing/chat/config.js"},{"revision":"84ec7c734c124c30a77f4c1a39bfa845","url":"js/bing/chat/core.js"},{"revision":"e3d3d1bcc931e685b309943808307c25","url":"js/bing/chat/global.js"},{"revision":"db666f0d7ca30b0a2903a0dd1a886d8d","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()});