diff --git a/index.html b/index.html index 31d47def..02001e3a 100644 --- a/index.html +++ b/index.html @@ -1,17 +1,6 @@ - - - - - - - - - - - Ray Template - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + - - + + + + + + + + + - - - - - - + + diff --git a/index.html.gz b/index.html.gz index 82cee308..c56b4a11 100644 Binary files a/index.html.gz and b/index.html.gz differ diff --git a/js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js b/js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js new file mode 100644 index 00000000..d510eae2 --- /dev/null +++ b/js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js @@ -0,0 +1 @@ +function z(f){let b=".",u="__",o="--",m;if(f){let e=f.blockPrefix;e&&(b=e),e=f.elementPrefix,e&&(u=e),e=f.modifierPrefix,e&&(o=e)}const c={install(e){m=e.c;const n=e.context;n.bem={},n.bem.b=null,n.bem.els=null}};function r(e){let n,l;return{before(i){n=i.bem.b,l=i.bem.els,i.bem.els=null},after(i){i.bem.b=n,i.bem.els=l},$({context:i,props:t}){return e=typeof e=="string"?e:e({context:i,props:t}),i.bem.b=e,`${(t==null?void 0:t.bPrefix)||b}${i.bem.b}`}}}function P(e){let n;return{before(l){n=l.bem.els},after(l){l.bem.els=n},$({context:l,props:i}){return e=typeof e=="string"?e:e({context:l,props:i}),l.bem.els=e.split(",").map(t=>t.trim()),l.bem.els.map(t=>`${(i==null?void 0:i.bPrefix)||b}${l.bem.b}${u}${t}`).join(", ")}}}function s(e){return{$({context:n,props:l}){e=typeof e=="string"?e:e({context:n,props:l});const i=e.split(",").map($=>$.trim());function t($){return i.map(_=>`&${(l==null?void 0:l.bPrefix)||b}${n.bem.b}${$!==void 0?`${u}${$}`:""}${o}${_}`).join(", ")}const d=n.bem.els;return d!==null?t(d[0]):t()}}}function v(e){return{$({context:n,props:l}){e=typeof e=="string"?e:e({context:n,props:l});const i=n.bem.els;return`&:not(${(l==null?void 0:l.bPrefix)||b}${n.bem.b}${i!==null&&i.length>0?`${u}${i[0]}`:""}${o}${e})`}}}return Object.assign(c,{cB:(...e)=>m(r(e[0]),e[1],e[2]),cE:(...e)=>m(P(e[0]),e[1],e[2]),cM:(...e)=>m(s(e[0]),e[1],e[2]),cNotM:(...e)=>m(v(e[0]),e[1],e[2])}),c}export{z as p}; diff --git a/js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js.gz b/js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js.gz new file mode 100644 index 00000000..28a130cc Binary files /dev/null and b/js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js.gz differ diff --git a/js/@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js b/js/@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js new file mode 100644 index 00000000..45e08d40 --- /dev/null +++ b/js/@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js @@ -0,0 +1,3 @@ +import{i as u}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";const i="@css-render/vue3-ssr";function o(e,n){return``}function c(e,n,t){const{styles:r,ids:s}=t;s.has(e)||r!==null&&(s.add(e),r.push(o(e,n)))}const d=typeof document<"u";function l(){if(d)return;const e=u(i,null);if(e!==null)return{adapter:(n,t)=>c(n,t,e),context:e}}export{l as u}; diff --git a/js/@emotion_hash@0.8.0-WldOFDRm.js b/js/@emotion_hash@0.8.0-WldOFDRm.js new file mode 100644 index 00000000..dd329898 --- /dev/null +++ b/js/@emotion_hash@0.8.0-WldOFDRm.js @@ -0,0 +1 @@ +function d(e){for(var f=0,x,a=0,c=e.length;c>=4;++a,c-=4)x=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,x=(x&65535)*1540483477+((x>>>16)*59797<<16),x^=x>>>24,f=(x&65535)*1540483477+((x>>>16)*59797<<16)^(f&65535)*1540483477+((f>>>16)*59797<<16);switch(c){case 3:f^=(e.charCodeAt(a+2)&255)<<16;case 2:f^=(e.charCodeAt(a+1)&255)<<8;case 1:f^=e.charCodeAt(a)&255,f=(f&65535)*1540483477+((f>>>16)*59797<<16)}return f^=f>>>13,f=(f&65535)*1540483477+((f>>>16)*59797<<16),((f^f>>>15)>>>0).toString(36)}export{d as m}; diff --git a/js/@intlify_core-base@9.13.1-C6DqbPB6.js b/js/@intlify_core-base@9.13.1-C6DqbPB6.js new file mode 100644 index 00000000..4ab65171 --- /dev/null +++ b/js/@intlify_core-base@9.13.1-C6DqbPB6.js @@ -0,0 +1,5 @@ +import{g as be,i as me,a as F,w as Ne,b as o,c as P,d as b,e as V,f as D,h as te,j as L,k as ae,l as I,m as q,n as Ae,o as Fe,p as Le,q as Me,t as De}from"./@intlify_shared@9.13.1-BxU0OzX2.js";import{C as Ie,a as Se,c as pe,d as ye,b as Re}from"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";/*! + * core-base v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function ke(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(be().__INTLIFY_PROD_DEVTOOLS__=!1)}const w=[];w[0]={w:[0],i:[3,0],"[":[4],o:[7]};w[1]={w:[1],".":[2],"[":[4],o:[7]};w[2]={w:[2],i:[3,0],0:[3,0]};w[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};w[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};w[5]={"'":[4,0],o:8,l:[5,0]};w[6]={'"':[4,0],o:8,l:[6,0]};const Pe=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function we(e){return Pe.test(e)}function ve(e){const t=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return t===r&&(t===34||t===39)?e.slice(1,-1):e}function We(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Ue(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:we(t)?ve(t):"*"+t}function Ve(e){const t=[];let r=-1,a=0,n=0,s,c,u,l,i,_,E;const d=[];d[0]=()=>{c===void 0?c=u:c+=u},d[1]=()=>{c!==void 0&&(t.push(c),c=void 0)},d[2]=()=>{d[0](),n++},d[3]=()=>{if(n>0)n--,a=4,d[0]();else{if(n=0,c===void 0||(c=Ue(c),c===!1))return!1;d[1]()}};function g(){const T=e[r+1];if(a===5&&T==="'"||a===6&&T==='"')return r++,u="\\"+T,d[0](),!0}for(;a!==null;)if(r++,s=e[r],!(s==="\\"&&g())){if(l=We(s),E=w[a],i=E[l]||E.l||8,i===8||(a=i[0],i[1]!==void 0&&(_=d[i[1]],_&&(u=s,_()===!1))))return;if(a===7)return t}}const re=new Map;function $e(e,t){return L(e)?e[t]:null}function Ct(e,t){if(!L(e))return null;let r=re.get(t);if(r||(r=Ve(t),r&&re.set(t,r)),!r)return null;const a=r.length;let n=e,s=0;for(;se,Ge=e=>"",Ye="text",je=e=>e.length===0?"":Me(e),ze=De;function ne(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Be(e){const t=I(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(I(e.named.count)||I(e.named.n))?I(e.named.count)?e.named.count:I(e.named.n)?e.named.n:t:t}function He(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Xe(e={}){const t=e.locale,r=Be(e),a=L(e.pluralRules)&&o(t)&&F(e.pluralRules[t])?e.pluralRules[t]:ne,n=L(e.pluralRules)&&o(t)&&F(e.pluralRules[t])?ne:void 0,s=f=>f[a(r,f.length,n)],c=e.list||[],u=f=>c[f],l=e.named||{};I(e.pluralIndex)&&He(r,l);const i=f=>l[f];function _(f){const O=F(e.messages)?e.messages(f):L(e.messages)?e.messages[f]:!1;return O||(e.parent?e.parent.message(f):Ge)}const E=f=>e.modifiers?e.modifiers[f]:Ke,d=b(e.processor)&&F(e.processor.normalize)?e.processor.normalize:je,g=b(e.processor)&&F(e.processor.interpolate)?e.processor.interpolate:ze,T=b(e.processor)&&o(e.processor.type)?e.processor.type:Ye,A={list:u,named:i,plural:s,linked:(f,...O)=>{const[M,m]=O;let h="text",C="";O.length===1?L(M)?(C=M.modifier||C,h=M.type||h):o(M)&&(C=M||C):O.length===2&&(o(M)&&(C=M||C),o(m)&&(h=m||h));const v=_(f)(A),S=h==="vnode"&&P(v)&&C?v[0]:v;return C?E(C)(S,h):S},message:_,type:T,interpolate:g,normalize:d,values:V({},c,l)};return A}let K=null;function bt(e){K=e}function Ze(e,t,r){K&&K.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const qe=xe("function:translate");function xe(e){return t=>K&&K.emit(e,t)}const fe=Ie.__EXTEND_POINT__,W=me(fe),Nt={NOT_FOUND_KEY:fe,FALLBACK_TO_TRANSLATE:W(),CANNOT_FORMAT_NUMBER:W(),FALLBACK_TO_NUMBER_FORMAT:W(),CANNOT_FORMAT_DATE:W(),FALLBACK_TO_DATE_FORMAT:W(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:W(),__EXTEND_POINT__:W()},_e=Se.__EXTEND_POINT__,U=me(_e),R={INVALID_ARGUMENT:_e,INVALID_DATE_ARGUMENT:U(),INVALID_ISO_DATE_ARGUMENT:U(),NOT_SUPPORT_NON_STRING_MESSAGE:U(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:U(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:U(),NOT_SUPPORT_LOCALE_TYPE:U(),__EXTEND_POINT__:U()};function k(e){return pe(e,null,void 0)}function x(e,t){return t.locale!=null?se(t.locale):se(e.locale)}let B;function se(e){if(o(e))return e;if(F(e)){if(e.resolvedOnce&&B!=null)return B;if(e.constructor.name==="Function"){const t=e();if(Le(t))throw k(R.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return B=t}else throw k(R.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw k(R.NOT_SUPPORT_LOCALE_TYPE)}function Je(e,t,r){return[...new Set([r,...P(t)?t:L(t)?Object.keys(t):o(t)?[t]:[r]])]}function At(e,t,r){const a=o(r)?r:X,n=e;n.__localeChainCache||(n.__localeChainCache=new Map);let s=n.__localeChainCache.get(a);if(!s){s=[];let c=[r];for(;P(c);)c=le(s,c,t);const u=P(t)||!b(t)?t:t.default?t.default:null;c=o(u)?[u]:u,P(c)&&le(s,c,!1),n.__localeChainCache.set(a,s)}return s}function le(e,t,r){let a=!0;for(let n=0;n`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function at(){return{upper:(e,t)=>t==="text"&&o(e)?e.toUpperCase():t==="vnode"&&L(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&o(e)?e.toLowerCase():t==="vnode"&&L(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&o(e)?ce(e):t==="vnode"&&L(e)&&"__v_isVNode"in e?ce(e.children):e}}let de;function Lt(e){de=e}let ge;function Mt(e){ge=e}let Te;function Dt(e){Te=e}let Ee=null;const It=e=>{Ee=e},rt=()=>Ee;let Oe=null;const St=e=>{Oe=e},pt=()=>Oe;let ie=0;function yt(e={}){const t=F(e.onWarn)?e.onWarn:Ne,r=o(e.version)?e.version:tt,a=o(e.locale)||F(e.locale)?e.locale:X,n=F(a)?X:a,s=P(e.fallbackLocale)||b(e.fallbackLocale)||o(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,c=b(e.messages)?e.messages:{[n]:{}},u=b(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},l=b(e.numberFormats)?e.numberFormats:{[n]:{}},i=V({},e.modifiers||{},at()),_=e.pluralRules||{},E=F(e.missing)?e.missing:null,d=D(e.missingWarn)||te(e.missingWarn)?e.missingWarn:!0,g=D(e.fallbackWarn)||te(e.fallbackWarn)?e.fallbackWarn:!0,T=!!e.fallbackFormat,N=!!e.unresolving,A=F(e.postTranslation)?e.postTranslation:null,f=b(e.processor)?e.processor:null,O=D(e.warnHtmlMessage)?e.warnHtmlMessage:!0,M=!!e.escapeParameter,m=F(e.messageCompiler)?e.messageCompiler:de,h=F(e.messageResolver)?e.messageResolver:ge||$e,C=F(e.localeFallbacker)?e.localeFallbacker:Te||Je,v=L(e.fallbackContext)?e.fallbackContext:void 0,S=e,j=L(S.__datetimeFormatters)?S.__datetimeFormatters:new Map,z=L(S.__numberFormatters)?S.__numberFormatters:new Map,$=L(S.__meta)?S.__meta:{};ie++;const y={version:r,cid:ie,locale:a,fallbackLocale:s,messages:c,modifiers:i,pluralRules:_,missing:E,missingWarn:d,fallbackWarn:g,fallbackFormat:T,unresolving:N,postTranslation:A,processor:f,warnHtmlMessage:O,escapeParameter:M,messageCompiler:m,messageResolver:h,localeFallbacker:C,fallbackContext:v,onWarn:t,__meta:$};return y.datetimeFormats=u,y.numberFormats=l,y.__datetimeFormatters=j,y.__numberFormatters=z,__INTLIFY_PROD_DEVTOOLS__&&Ze(y,r,$),y}function Q(e,t,r,a,n){const{missing:s,onWarn:c}=e;if(s!==null){const u=s(e,r,t,n);return o(u)?u:t}else return t}function Rt(e,t,r){const a=e;a.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function nt(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function st(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let a=r+1;alt(r,e)}function lt(e,t){const r=t.b||t.body;if((r.t||r.type)===1){const a=r,n=a.c||a.cases;return e.plural(n.reduce((s,c)=>[...s,oe(e,c)],[]))}else return oe(e,r)}function oe(e,t){const r=t.s||t.static;if(r)return e.type==="text"?r:e.normalize([r]);{const a=(t.i||t.items).reduce((n,s)=>[...n,Z(e,s)],[]);return e.normalize(a)}}function Z(e,t){const r=t.t||t.type;switch(r){case 3:{const a=t;return a.v||a.value}case 9:{const a=t;return a.v||a.value}case 4:{const a=t;return e.interpolate(e.named(a.k||a.key))}case 5:{const a=t;return e.interpolate(e.list(a.i!=null?a.i:a.index))}case 6:{const a=t,n=a.m||a.modifier;return e.linked(Z(e,a.k||a.key),n?Z(e,n):void 0,e.type)}case 7:{const a=t;return a.v||a.value}case 8:{const a=t;return a.v||a.value}default:throw new Error(`unhandled node type on format message part: ${r}`)}}const ct=e=>e;let Y=Object.create(null);const G=e=>L(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function it(e,t={}){let r=!1;const a=t.onError||ye;return t.onError=n=>{r=!0,a(n)},{...Re(e,t),detectError:r}}function kt(e,t){if(o(e)){D(t.warnHtmlMessage)&&t.warnHtmlMessage;const a=(t.onCacheKey||ct)(e),n=Y[a];if(n)return n;const{ast:s,detectError:c}=it(e,{...t,location:!1,jit:!0}),u=H(s);return c?u:Y[a]=u}else{const r=e.cacheKey;if(r){const a=Y[r];return a||(Y[r]=H(e))}else return H(e)}}const ue=()=>"",p=e=>F(e);function Pt(e,...t){const{fallbackFormat:r,postTranslation:a,unresolving:n,messageCompiler:s,fallbackLocale:c,messages:u}=e,[l,i]=mt(...t),_=D(i.missingWarn)?i.missingWarn:e.missingWarn,E=D(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,d=D(i.escapeParameter)?i.escapeParameter:e.escapeParameter,g=!!i.resolvedMessage,T=o(i.default)||D(i.default)?D(i.default)?s?l:()=>l:i.default:r?s?l:()=>l:"",N=r||T!=="",A=x(e,i);d&&ot(i);let[f,O,M]=g?[l,A,u[A]||{}]:he(e,l,A,c,E,_),m=f,h=l;if(!g&&!(o(m)||G(m)||p(m))&&N&&(m=T,h=m),!g&&(!(o(m)||G(m)||p(m))||!o(O)))return n?J:l;let C=!1;const v=()=>{C=!0},S=p(m)?m:Ce(e,l,O,m,h,v);if(C)return m;const j=_t(e,O,M,i),z=Xe(j),$=ut(e,S,z),y=a?a($,l):$;if(__INTLIFY_PROD_DEVTOOLS__){const ee={timestamp:Date.now(),key:o(l)?l:p(m)?m.key:"",locale:O||(p(m)?m.locale:""),format:o(m)?m:p(m)?m.source:"",message:y};ee.meta=V({},e.__meta,rt()||{}),qe(ee)}return y}function ot(e){P(e.list)?e.list=e.list.map(t=>o(t)?ae(t):t):L(e.named)&&Object.keys(e.named).forEach(t=>{o(e.named[t])&&(e.named[t]=ae(e.named[t]))})}function he(e,t,r,a,n,s){const{messages:c,onWarn:u,messageResolver:l,localeFallbacker:i}=e,_=i(e,a,r);let E={},d,g=null;const T="translate";for(let N=0;N<_.length&&(d=_[N],E=c[d]||{},(g=l(E,t))===null&&(g=E[t]),!(o(g)||G(g)||p(g)));N++)if(!st(d,_)){const A=Q(e,t,d,s,T);A!==t&&(g=A)}return[g,d,E]}function Ce(e,t,r,a,n,s){const{messageCompiler:c,warnHtmlMessage:u}=e;if(p(a)){const i=a;return i.locale=i.locale||r,i.key=i.key||t,i}if(c==null){const i=()=>a;return i.locale=r,i.key=t,i}const l=c(a,ft(e,r,n,a,u,s));return l.locale=r,l.key=t,l.source=a,l}function ut(e,t,r){return t(r)}function mt(...e){const[t,r,a]=e,n={};if(!o(t)&&!I(t)&&!p(t)&&!G(t))throw k(R.INVALID_ARGUMENT);const s=I(t)?String(t):(p(t),t);return I(r)?n.plural=r:o(r)?n.default=r:b(r)&&!q(r)?n.named=r:P(r)&&(n.list=r),I(a)?n.plural=a:o(a)?n.default=a:b(a)&&V(n,a),[s,n]}function ft(e,t,r,a,n,s){return{locale:t,key:r,warnHtmlMessage:n,onError:c=>{throw s&&s(c),c},onCacheKey:c=>Ae(t,r,c)}}function _t(e,t,r,a){const{modifiers:n,pluralRules:s,messageResolver:c,fallbackLocale:u,fallbackWarn:l,missingWarn:i,fallbackContext:_}=e,d={locale:t,modifiers:n,pluralRules:s,messages:g=>{let T=c(r,g);if(T==null&&_){const[,,N]=he(_,g,t,u,l,i);T=c(N,g)}if(o(T)||G(T)){let N=!1;const f=Ce(e,g,t,T,g,()=>{N=!0});return N?ue:f}else return p(T)?T:ue}};return e.processor&&(d.processor=e.processor),a.list&&(d.list=a.list),a.named&&(d.named=a.named),I(a.plural)&&(d.pluralIndex=a.plural),d}function wt(e,...t){const{datetimeFormats:r,unresolving:a,fallbackLocale:n,onWarn:s,localeFallbacker:c}=e,{__datetimeFormatters:u}=e,[l,i,_,E]=gt(...t),d=D(_.missingWarn)?_.missingWarn:e.missingWarn;D(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn;const g=!!_.part,T=x(e,_),N=c(e,n,T);if(!o(l)||l==="")return new Intl.DateTimeFormat(T,E).format(i);let A={},f,O=null;const M="datetime format";for(let C=0;C{dt.includes(l)?c[l]=r[l]:s[l]=r[l]}),o(a)?s.locale=a:b(a)&&(c=a),b(n)&&(c=n),[s.key||"",u,s,c]}function vt(e,t,r){const a=e;for(const n in r){const s=`${t}__${n}`;a.__datetimeFormatters.has(s)&&a.__datetimeFormatters.delete(s)}}function Wt(e,...t){const{numberFormats:r,unresolving:a,fallbackLocale:n,onWarn:s,localeFallbacker:c}=e,{__numberFormatters:u}=e,[l,i,_,E]=Et(...t),d=D(_.missingWarn)?_.missingWarn:e.missingWarn;D(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn;const g=!!_.part,T=x(e,_),N=c(e,n,T);if(!o(l)||l==="")return new Intl.NumberFormat(T,E).format(i);let A={},f,O=null;const M="number format";for(let C=0;C{Tt.includes(l)?c[l]=r[l]:s[l]=r[l]}),o(a)?s.locale=a:b(a)&&(c=a),b(n)&&(c=n),[s.key||"",u,s,c]}function Ut(e,t,r){const a=e;for(const n in r){const s=`${t}__${n}`;a.__numberFormatters.has(s)&&a.__numberFormatters.delete(s)}}ke();export{R as C,X as D,Ft as M,Tt as N,dt as a,vt as b,yt as c,Ut as d,It as e,J as f,pt as g,gt as h,wt as i,Et as j,G as k,p as l,At as m,Wt as n,Mt as o,mt as p,Dt as q,Lt as r,bt as s,Pt as t,Rt as u,Nt as v,St as w,kt as x,Ct as y}; diff --git a/js/@intlify_core-base@9.13.1-C6DqbPB6.js.gz b/js/@intlify_core-base@9.13.1-C6DqbPB6.js.gz new file mode 100644 index 00000000..8bb03d99 Binary files /dev/null and b/js/@intlify_core-base@9.13.1-C6DqbPB6.js.gz differ diff --git a/js/@intlify_message-compiler@9.13.1-GrLDMuy_.js b/js/@intlify_message-compiler@9.13.1-GrLDMuy_.js new file mode 100644 index 00000000..b1093da4 --- /dev/null +++ b/js/@intlify_message-compiler@9.13.1-GrLDMuy_.js @@ -0,0 +1,7 @@ +/*! + * message-compiler v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function me(r,n,u){return{line:r,column:n,offset:u}}function B(r,n,u){return{start:r,end:n}}const ye=/\{([0-9a-zA-Z]+)\}/g;function se(r,...n){return n.length===1&&be(n[0])&&(n=n[0]),(!n||!n.hasOwnProperty)&&(n={}),r.replace(ye,(u,l)=>n.hasOwnProperty(l)?n[l]:"")}const ue=Object.assign,te=r=>typeof r=="string",be=r=>r!==null&&typeof r=="object";function ce(r,n=""){return r.reduce((u,l,N)=>N===0?u+l:u+n+l,"")}const ae={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Ue={[ae.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Re(r,n,...u){const l=se(Ue[r],...u||[]),N={message:String(l),code:r};return n&&(N.location=n),N}const L={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Me={[L.EXPECTED_TOKEN]:"Expected token: '{0}'",[L.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[L.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[L.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[L.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[L.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[L.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[L.EMPTY_PLACEHOLDER]:"Empty placeholder",[L.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[L.INVALID_LINKED_FORMAT]:"Invalid linked format",[L.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[L.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[L.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[L.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[L.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[L.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function V(r,n,u={}){const{domain:l,messages:N,args:f}=u,C=se((N||Me)[r]||"",...f||[]),_=new SyntaxError(String(C));return _.code=r,n&&(_.location=n),_.domain=l,_}function nt(r){throw r}const g=" ",ve="\r",m=` +`,Xe="\u2028",we="\u2029";function Ye(r){const n=r;let u=0,l=1,N=1,f=0;const C=o=>n[o]===ve&&n[o+1]===m,_=o=>n[o]===m,I=o=>n[o]===we,U=o=>n[o]===Xe,y=o=>C(o)||_(o)||I(o)||U(o),T=()=>u,A=()=>l,R=()=>N,X=()=>f,D=o=>C(o)||I(o)||U(o)?m:n[o],h=()=>D(u),b=()=>D(u+f);function w(){return f=0,y(u)&&(l++,N=0),C(u)&&u++,u++,N++,n[u]}function s(){return C(u+f)&&f++,f++,n[u+f]}function a(){u=0,l=1,N=1,f=0}function d(o=0){f=o}function c(){const o=u+f;for(;o!==u;)w();f=0}return{index:T,line:A,column:R,peekOffset:X,charAt:D,currentChar:h,currentPeek:b,next:w,peek:s,reset:a,resetPeek:d,skipToPeek:c}}const H=void 0,ge=".",ne="'",Ke="tokenizer";function He(r,n={}){const u=n.location!==!1,l=Ye(r),N=()=>l.index(),f=()=>me(l.line(),l.column(),l.index()),C=f(),_=N(),I={currentType:14,offset:_,startLoc:C,endLoc:C,lastType:14,lastOffset:_,lastStartLoc:C,lastEndLoc:C,braceNest:0,inLinked:!1,text:""},U=()=>I,{onError:y}=n;function T(e,t,i,...E){const k=U();if(t.column+=i,t.offset+=i,y){const S=u?B(k.startLoc,t):null,K=V(e,S,{domain:Ke,args:E});y(K)}}function A(e,t,i){e.endLoc=f(),e.currentType=t;const E={type:t};return u&&(E.loc=B(e.startLoc,e.endLoc)),i!=null&&(E.value=i),E}const R=e=>A(e,14);function X(e,t){return e.currentChar()===t?(e.next(),t):(T(L.EXPECTED_TOKEN,f(),0,t),"")}function D(e){let t="";for(;e.currentPeek()===g||e.currentPeek()===m;)t+=e.currentPeek(),e.peek();return t}function h(e){const t=D(e);return e.skipToPeek(),t}function b(e){if(e===H)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function w(e){if(e===H)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function s(e,t){const{currentType:i}=t;if(i!==2)return!1;D(e);const E=b(e.currentPeek());return e.resetPeek(),E}function a(e,t){const{currentType:i}=t;if(i!==2)return!1;D(e);const E=e.currentPeek()==="-"?e.peek():e.currentPeek(),k=w(E);return e.resetPeek(),k}function d(e,t){const{currentType:i}=t;if(i!==2)return!1;D(e);const E=e.currentPeek()===ne;return e.resetPeek(),E}function c(e,t){const{currentType:i}=t;if(i!==8)return!1;D(e);const E=e.currentPeek()===".";return e.resetPeek(),E}function o(e,t){const{currentType:i}=t;if(i!==9)return!1;D(e);const E=b(e.currentPeek());return e.resetPeek(),E}function p(e,t){const{currentType:i}=t;if(!(i===8||i===12))return!1;D(e);const E=e.currentPeek()===":";return e.resetPeek(),E}function P(e,t){const{currentType:i}=t;if(i!==10)return!1;const E=()=>{const S=e.currentPeek();return S==="{"?b(e.peek()):S==="@"||S==="%"||S==="|"||S===":"||S==="."||S===g||!S?!1:S===m?(e.peek(),E()):O(e,!1)},k=E();return e.resetPeek(),k}function M(e){D(e);const t=e.currentPeek()==="|";return e.resetPeek(),t}function W(e){const t=D(e),i=e.currentPeek()==="%"&&e.peek()==="{";return e.resetPeek(),{isModulo:i,hasSpace:t.length>0}}function O(e,t=!0){const i=(k=!1,S="",K=!1)=>{const x=e.currentPeek();return x==="{"?S==="%"?!1:k:x==="@"||!x?S==="%"?!0:k:x==="%"?(e.peek(),i(k,"%",!0)):x==="|"?S==="%"||K?!0:!(S===g||S===m):x===g?(e.peek(),i(!0,g,K)):x===m?(e.peek(),i(!0,m,K)):!0},E=i();return t&&e.resetPeek(),E}function Y(e,t){const i=e.currentChar();return i===H?H:t(i)?(e.next(),i):null}function oe(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function le(e){return Y(e,oe)}function fe(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function Ee(e){return Y(e,fe)}function de(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function Le(e){return Y(e,de)}function Ne(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function _e(e){return Y(e,Ne)}function Z(e){let t="",i="";for(;t=Le(e);)i+=t;return i}function pe(e){h(e);const t=e.currentChar();return t!=="%"&&T(L.EXPECTED_TOKEN,f(),0,t),e.next(),"%"}function z(e){let t="";for(;;){const i=e.currentChar();if(i==="{"||i==="}"||i==="@"||i==="|"||!i)break;if(i==="%")if(O(e))t+=i,e.next();else break;else if(i===g||i===m)if(O(e))t+=i,e.next();else{if(M(e))break;t+=i,e.next()}else t+=i,e.next()}return t}function he(e){h(e);let t="",i="";for(;t=Ee(e);)i+=t;return e.currentChar()===H&&T(L.UNTERMINATED_CLOSING_BRACE,f(),0),i}function Ce(e){h(e);let t="";return e.currentChar()==="-"?(e.next(),t+=`-${Z(e)}`):t+=Z(e),e.currentChar()===H&&T(L.UNTERMINATED_CLOSING_BRACE,f(),0),t}function Ie(e){return e!==ne&&e!==m}function Te(e){h(e),X(e,"'");let t="",i="";for(;t=Y(e,Ie);)t==="\\"?i+=Ae(e):i+=t;const E=e.currentChar();return E===m||E===H?(T(L.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,f(),0),E===m&&(e.next(),X(e,"'")),i):(X(e,"'"),i)}function Ae(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return ee(e,t,4);case"U":return ee(e,t,6);default:return T(L.UNKNOWN_ESCAPE_SEQUENCE,f(),0,t),""}}function ee(e,t,i){X(e,t);let E="";for(let k=0;k{const E=e.currentChar();return E==="{"||E==="%"||E==="@"||E==="|"||E==="("||E===")"||!E||E===g?i:(i+=E,e.next(),t(i))};return t("")}function Q(e){h(e);const t=X(e,"|");return h(e),t}function q(e,t){let i=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&T(L.NOT_ALLOW_NEST_PLACEHOLDER,f(),0),e.next(),i=A(t,2,"{"),h(e),t.braceNest++,i;case"}":return t.braceNest>0&&t.currentType===2&&T(L.EMPTY_PLACEHOLDER,f(),0),e.next(),i=A(t,3,"}"),t.braceNest--,t.braceNest>0&&h(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),i;case"@":return t.braceNest>0&&T(L.UNTERMINATED_CLOSING_BRACE,f(),0),i=F(e,t)||R(t),t.braceNest=0,i;default:{let k=!0,S=!0,K=!0;if(M(e))return t.braceNest>0&&T(L.UNTERMINATED_CLOSING_BRACE,f(),0),i=A(t,1,Q(e)),t.braceNest=0,t.inLinked=!1,i;if(t.braceNest>0&&(t.currentType===5||t.currentType===6||t.currentType===7))return T(L.UNTERMINATED_CLOSING_BRACE,f(),0),t.braceNest=0,j(e,t);if(k=s(e,t))return i=A(t,5,he(e)),h(e),i;if(S=a(e,t))return i=A(t,6,Ce(e)),h(e),i;if(K=d(e,t))return i=A(t,7,Te(e)),h(e),i;if(!k&&!S&&!K)return i=A(t,13,ke(e)),T(L.INVALID_TOKEN_IN_PLACEHOLDER,f(),0,i.value),h(e),i;break}}return i}function F(e,t){const{currentType:i}=t;let E=null;const k=e.currentChar();switch((i===8||i===9||i===12||i===10)&&(k===m||k===g)&&T(L.INVALID_LINKED_FORMAT,f(),0),k){case"@":return e.next(),E=A(t,8,"@"),t.inLinked=!0,E;case".":return h(e),e.next(),A(t,9,".");case":":return h(e),e.next(),A(t,10,":");default:return M(e)?(E=A(t,1,Q(e)),t.braceNest=0,t.inLinked=!1,E):c(e,t)||p(e,t)?(h(e),F(e,t)):o(e,t)?(h(e),A(t,12,Pe(e))):P(e,t)?(h(e),k==="{"?q(e,t)||E:A(t,11,Oe(e))):(i===8&&T(L.INVALID_LINKED_FORMAT,f(),0),t.braceNest=0,t.inLinked=!1,j(e,t))}}function j(e,t){let i={type:14};if(t.braceNest>0)return q(e,t)||R(t);if(t.inLinked)return F(e,t)||R(t);switch(e.currentChar()){case"{":return q(e,t)||R(t);case"}":return T(L.UNBALANCED_CLOSING_BRACE,f(),0),e.next(),A(t,3,"}");case"@":return F(e,t)||R(t);default:{if(M(e))return i=A(t,1,Q(e)),t.braceNest=0,t.inLinked=!1,i;const{isModulo:k,hasSpace:S}=W(e);if(k)return S?A(t,0,z(e)):A(t,4,pe(e));if(O(e))return A(t,0,z(e));break}}return i}function De(){const{currentType:e,offset:t,startLoc:i,endLoc:E}=I;return I.lastType=e,I.lastOffset=t,I.lastStartLoc=i,I.lastEndLoc=E,I.offset=N(),I.startLoc=f(),l.currentChar()===H?A(I,14):j(l,I)}return{nextToken:De,currentOffset:N,currentPosition:f,context:U}}const xe="parser",$e=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ge(r,n,u){switch(r){case"\\\\":return"\\";case"\\'":return"'";default:{const l=parseInt(n||u,16);return l<=55295||l>=57344?String.fromCodePoint(l):"�"}}}function Fe(r={}){const n=r.location!==!1,{onError:u,onWarn:l}=r;function N(s,a,d,c,...o){const p=s.currentPosition();if(p.offset+=c,p.column+=c,u){const P=n?B(d,p):null,M=V(a,P,{domain:xe,args:o});u(M)}}function f(s,a,d,c,...o){const p=s.currentPosition();if(p.offset+=c,p.column+=c,l){const P=n?B(d,p):null;l(Re(a,P,o))}}function C(s,a,d){const c={type:s};return n&&(c.start=a,c.end=a,c.loc={start:d,end:d}),c}function _(s,a,d,c){n&&(s.end=a,s.loc&&(s.loc.end=d))}function I(s,a){const d=s.context(),c=C(3,d.offset,d.startLoc);return c.value=a,_(c,s.currentOffset(),s.currentPosition()),c}function U(s,a){const d=s.context(),{lastOffset:c,lastStartLoc:o}=d,p=C(5,c,o);return p.index=parseInt(a,10),s.nextToken(),_(p,s.currentOffset(),s.currentPosition()),p}function y(s,a,d){const c=s.context(),{lastOffset:o,lastStartLoc:p}=c,P=C(4,o,p);return P.key=a,d===!0&&(P.modulo=!0),s.nextToken(),_(P,s.currentOffset(),s.currentPosition()),P}function T(s,a){const d=s.context(),{lastOffset:c,lastStartLoc:o}=d,p=C(9,c,o);return p.value=a.replace($e,Ge),s.nextToken(),_(p,s.currentOffset(),s.currentPosition()),p}function A(s){const a=s.nextToken(),d=s.context(),{lastOffset:c,lastStartLoc:o}=d,p=C(8,c,o);return a.type!==12?(N(s,L.UNEXPECTED_EMPTY_LINKED_MODIFIER,d.lastStartLoc,0),p.value="",_(p,c,o),{nextConsumeToken:a,node:p}):(a.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,v(a)),p.value=a.value||"",_(p,s.currentOffset(),s.currentPosition()),{node:p})}function R(s,a){const d=s.context(),c=C(7,d.offset,d.startLoc);return c.value=a,_(c,s.currentOffset(),s.currentPosition()),c}function X(s){const a=s.context(),d=C(6,a.offset,a.startLoc);let c=s.nextToken();if(c.type===9){const o=A(s);d.modifier=o.node,c=o.nextConsumeToken||s.nextToken()}switch(c.type!==10&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,v(c)),c=s.nextToken(),c.type===2&&(c=s.nextToken()),c.type){case 11:c.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,v(c)),d.key=R(s,c.value||"");break;case 5:c.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,v(c)),d.key=y(s,c.value||"");break;case 6:c.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,v(c)),d.key=U(s,c.value||"");break;case 7:c.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,v(c)),d.key=T(s,c.value||"");break;default:{N(s,L.UNEXPECTED_EMPTY_LINKED_KEY,a.lastStartLoc,0);const o=s.context(),p=C(7,o.offset,o.startLoc);return p.value="",_(p,o.offset,o.startLoc),d.key=p,_(d,o.offset,o.startLoc),{nextConsumeToken:c,node:d}}}return _(d,s.currentOffset(),s.currentPosition()),{node:d}}function D(s){const a=s.context(),d=a.currentType===1?s.currentOffset():a.offset,c=a.currentType===1?a.endLoc:a.startLoc,o=C(2,d,c);o.items=[];let p=null,P=null;do{const O=p||s.nextToken();switch(p=null,O.type){case 0:O.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,v(O)),o.items.push(I(s,O.value||""));break;case 6:O.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,v(O)),o.items.push(U(s,O.value||""));break;case 4:P=!0;break;case 5:O.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,v(O)),o.items.push(y(s,O.value||"",!!P)),P&&(f(s,ae.USE_MODULO_SYNTAX,a.lastStartLoc,0,v(O)),P=null);break;case 7:O.value==null&&N(s,L.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,v(O)),o.items.push(T(s,O.value||""));break;case 8:{const Y=X(s);o.items.push(Y.node),p=Y.nextConsumeToken||null;break}}}while(a.currentType!==14&&a.currentType!==1);const M=a.currentType===1?a.lastOffset:s.currentOffset(),W=a.currentType===1?a.lastEndLoc:s.currentPosition();return _(o,M,W),o}function h(s,a,d,c){const o=s.context();let p=c.items.length===0;const P=C(1,a,d);P.cases=[],P.cases.push(c);do{const M=D(s);p||(p=M.items.length===0),P.cases.push(M)}while(o.currentType!==14);return p&&N(s,L.MUST_HAVE_MESSAGES_IN_PLURAL,d,0),_(P,s.currentOffset(),s.currentPosition()),P}function b(s){const a=s.context(),{offset:d,startLoc:c}=a,o=D(s);return a.currentType===14?o:h(s,d,c,o)}function w(s){const a=He(s,ue({},r)),d=a.context(),c=C(0,d.offset,d.startLoc);return n&&c.loc&&(c.loc.source=s),c.body=b(a),r.onCacheKey&&(c.cacheKey=r.onCacheKey(s)),d.currentType!==14&&N(a,L.UNEXPECTED_LEXICAL_ANALYSIS,d.lastStartLoc,0,s[d.offset]||""),_(c,a.currentOffset(),a.currentPosition()),c}return{parse:w}}function v(r){if(r.type===14)return"EOF";const n=(r.value||"").replace(/\r?\n/gu,"\\n");return n.length>10?n.slice(0,9)+"…":n}function Be(r,n={}){const u={ast:r,helpers:new Set};return{context:()=>u,helper:f=>(u.helpers.add(f),f)}}function re(r,n){for(let u=0;uie(u)),r}function ie(r){if(r.items.length===1){const n=r.items[0];(n.type===3||n.type===9)&&(r.static=n.value,delete n.value)}else{const n=[];for(let u=0;u_;function U(h,b){_.code+=h}function y(h,b=!0){const w=b?N:"";U(f?w+" ".repeat(h):w)}function T(h=!0){const b=++_.indentLevel;h&&y(b)}function A(h=!0){const b=--_.indentLevel;h&&y(b)}function R(){y(_.indentLevel)}return{context:I,push:U,indent:T,deindent:A,newline:R,helper:h=>`_${h}`,needIndent:()=>_.needIndent}}function Je(r,n){const{helper:u}=r;r.push(`${u("linked")}(`),G(r,n.key),n.modifier?(r.push(", "),G(r,n.modifier),r.push(", _type")):r.push(", undefined, _type"),r.push(")")}function Ze(r,n){const{helper:u,needIndent:l}=r;r.push(`${u("normalize")}([`),r.indent(l());const N=n.items.length;for(let f=0;f1){r.push(`${u("plural")}([`),r.indent(l());const N=n.cases.length;for(let f=0;f{const u=te(n.mode)?n.mode:"normal",l=te(n.filename)?n.filename:"message.intl",N=!!n.sourceMap,f=n.breakLineCode!=null?n.breakLineCode:u==="arrow"?";":` +`,C=n.needIndent?n.needIndent:u!=="arrow",_=r.helpers||[],I=je(r,{mode:u,filename:l,sourceMap:N,breakLineCode:f,needIndent:C});I.push(u==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),I.indent(C),_.length>0&&(I.push(`const { ${ce(_.map(T=>`${T}: _${T}`),", ")} } = ctx`),I.newline()),I.push("return "),G(I,r),I.deindent(C),I.push("}"),delete r.helpers;const{code:U,map:y}=I.context();return{ast:r,code:U,map:y?y.toJSON():void 0}};function rt(r,n={}){const u=ue({},n),l=!!u.jit,N=!!u.minify,f=u.optimize==null?!0:u.optimize,_=Fe(u).parse(r);return l?(f&&We(_),N&&$(_),{ast:_,code:""}):(Ve(_,u),tt(_,u))}export{ae as C,L as a,rt as b,V as c,nt as d}; diff --git a/js/@intlify_message-compiler@9.13.1-GrLDMuy_.js.gz b/js/@intlify_message-compiler@9.13.1-GrLDMuy_.js.gz new file mode 100644 index 00000000..c36ae743 Binary files /dev/null and b/js/@intlify_message-compiler@9.13.1-GrLDMuy_.js.gz differ diff --git a/js/@intlify_shared@9.13.1-BxU0OzX2.js b/js/@intlify_shared@9.13.1-BxU0OzX2.js new file mode 100644 index 00000000..d24446ad --- /dev/null +++ b/js/@intlify_shared@9.13.1-BxU0OzX2.js @@ -0,0 +1,5 @@ +/*! + * shared v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const d=typeof window<"u",O=(t,e=!1)=>e?Symbol.for(t):Symbol(t),h=(t,e,n)=>y({l:t,k:e,s:n}),y=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),j=t=>typeof t=="number"&&isFinite(t),w=t=>p(t)==="[object Date]",S=t=>p(t)==="[object RegExp]",m=t=>g(t)&&Object.keys(t).length===0,T=Object.assign;let a;const E=()=>a||(a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function N(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const b=Object.prototype.hasOwnProperty;function P(t,e){return b.call(t,e)}const f=Array.isArray,l=t=>typeof t=="function",A=t=>typeof t=="string",x=t=>typeof t=="boolean",i=t=>t!==null&&typeof t=="object",D=t=>i(t)&&l(t.then)&&l(t.catch),u=Object.prototype.toString,p=t=>u.call(t),g=t=>{if(!i(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},F=t=>t==null?"":f(t)||g(t)&&t.toString===u?JSON.stringify(t,null,2):String(t);function J(t,e=""){return t.reduce((n,o,r)=>r===0?n+o:n+e+o,"")}function k(t){let e=t;return()=>++e}function q(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const c=t=>!i(t)||f(t);function B(t,e){if(c(t)||c(e))throw new Error("Invalid value");const n=[{src:t,des:e}];for(;n.length;){const{src:o,des:r}=n.pop();Object.keys(o).forEach(s=>{c(o[s])||c(r[s])?r[s]=o[s]:n.push({src:o[s],des:r[s]})})}}export{l as a,A as b,f as c,g as d,T as e,x as f,E as g,S as h,k as i,i as j,N as k,j as l,m,h as n,w as o,D as p,J as q,O as r,d as s,F as t,B as u,P as v,q as w}; diff --git a/js/@intlify_shared@9.13.1-BxU0OzX2.js.gz b/js/@intlify_shared@9.13.1-BxU0OzX2.js.gz new file mode 100644 index 00000000..a3d38378 Binary files /dev/null and b/js/@intlify_shared@9.13.1-BxU0OzX2.js.gz differ diff --git a/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js b/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js new file mode 100644 index 00000000..61bd4dcb --- /dev/null +++ b/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js @@ -0,0 +1 @@ +var c=[],ne=function(){return c.some(function(e){return e.activeTargets.length>0})},oe=function(){return c.some(function(e){return e.skippedTargets.length>0})},P="ResizeObserver loop completed with undelivered notifications.",se=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:P}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=P),window.dispatchEvent(e)},b;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(b||(b={}));var u=function(e){return Object.freeze(e)},ae=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,u(this)}return e}(),q=function(){function e(t,r,i,n){return this.x=t,this.y=r,this.width=i,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,i=t.y,n=t.top,s=t.right,o=t.bottom,h=t.left,d=t.width,v=t.height;return{x:r,y:i,top:n,right:s,bottom:o,left:h,width:d,height:v}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),C=function(e){return e instanceof SVGElement&&"getBBox"in e},G=function(e){if(C(e)){var t=e.getBBox(),r=t.width,i=t.height;return!r&&!i}var n=e,s=n.offsetWidth,o=n.offsetHeight;return!(s||o||e.getClientRects().length)},I=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},ve=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},p=typeof window<"u"?window:{},z=new WeakMap,_=/auto|scroll/,ce=/^tb|vertical/,ue=/msie|trident/i.test(p.navigator&&p.navigator.userAgent),a=function(e){return parseFloat(e||"0")},f=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new ae((r?t:e)||0,(r?e:t)||0)},W=u({devicePixelContentBoxSize:f(),borderBoxSize:f(),contentBoxSize:f(),contentRect:new q(0,0,0,0)}),J=function(e,t){if(t===void 0&&(t=!1),z.has(e)&&!t)return z.get(e);if(G(e))return z.set(e,W),W;var r=getComputedStyle(e),i=C(e)&&e.ownerSVGElement&&e.getBBox(),n=!ue&&r.boxSizing==="border-box",s=ce.test(r.writingMode||""),o=!i&&_.test(r.overflowY||""),h=!i&&_.test(r.overflowX||""),d=i?0:a(r.paddingTop),v=i?0:a(r.paddingRight),R=i?0:a(r.paddingBottom),l=i?0:a(r.paddingLeft),Q=i?0:a(r.borderTopWidth),Z=i?0:a(r.borderRightWidth),$=i?0:a(r.borderBottomWidth),j=i?0:a(r.borderLeftWidth),D=l+v,k=d+R,y=j+Z,T=Q+$,N=h?e.offsetHeight-T-e.clientHeight:0,A=o?e.offsetWidth-y-e.clientWidth:0,ee=n?D+y:0,te=n?k+T:0,g=i?i.width:a(r.width)-ee-A,x=i?i.height:a(r.height)-te-N,re=g+D+A+y,ie=x+k+N+T,M=u({devicePixelContentBoxSize:f(Math.round(g*devicePixelRatio),Math.round(x*devicePixelRatio),s),borderBoxSize:f(re,ie,s),contentBoxSize:f(g,x,s),contentRect:new q(l,d,g,x)});return z.set(e,M),M},U=function(e,t,r){var i=J(e,r),n=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(t){case b.DEVICE_PIXEL_CONTENT_BOX:return o;case b.BORDER_BOX:return n;default:return s}},he=function(){function e(t){var r=J(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=u([r.borderBoxSize]),this.contentBoxSize=u([r.contentBoxSize]),this.devicePixelContentBoxSize=u([r.devicePixelContentBoxSize])}return e}(),Y=function(e){if(G(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},de=function(){var e=1/0,t=[];c.forEach(function(o){if(o.activeTargets.length!==0){var h=[];o.activeTargets.forEach(function(v){var R=new he(v.target),l=Y(v.target);h.push(R),v.lastReportedSize=U(v.target,v.observedBox),le?r.activeTargets.push(n):r.skippedTargets.push(n))})})},fe=function(){var e=0;for(L(e);ne();)e=de(),L(e);return oe()&&se(),e>0},m,K=[],le=function(){return K.splice(0).forEach(function(e){return e()})},pe=function(e){if(!m){var t=0,r=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return le()}).observe(r,i),m=function(){r.textContent="".concat(t?t--:t++)}}K.push(e),m()},be=function(e){pe(function(){requestAnimationFrame(e)})},w=0,ge=function(){return!!w},xe=250,ze={attributes:!0,characterData:!0,childList:!0,subtree:!0},F=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],H=function(e){return e===void 0&&(e=0),Date.now()+e},B=!1,Ee=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=xe),!B){B=!0;var i=H(t);be(function(){var n=!1;try{n=fe()}finally{if(B=!1,t=i-H(),!ge())return;n?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,ze)};document.body?r():p.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),F.forEach(function(r){return p.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),F.forEach(function(r){return p.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),S=new Ee,V=function(e){!w&&e>0&&S.start(),w+=e,!w&&S.stop()},Oe=function(e){return!C(e)&&!ve(e)&&getComputedStyle(e).display==="inline"},we=function(){function e(t,r){this.target=t,this.observedBox=r||b.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=U(this.target,this.observedBox,!0);return Oe(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Re=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),E=new WeakMap,X=function(e,t){for(var r=0;r=0&&(s&&c.splice(c.indexOf(i),1),i.observationTargets.splice(n,1),V(-1))},e.disconnect=function(t){var r=this,i=E.get(t);i.observationTargets.slice().forEach(function(n){return r.unobserve(t,n.target)}),i.activeTargets.splice(0,i.activeTargets.length)},e}(),ye=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.");O.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!I(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");O.observe(this,t,r)},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(!I(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");O.unobserve(this,t)},e.prototype.disconnect=function(){O.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();export{ye as R}; diff --git a/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js.gz b/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js.gz new file mode 100644 index 00000000..cc3e6f86 Binary files /dev/null and b/js/@juggle_resize-observer@3.4.0-C8OzoCMD.js.gz differ diff --git a/js/@vue_runtime-dom@3.5.6-l0sNRNKZ.js b/js/@vue_devtools-api@6.6.1-l0sNRNKZ.js similarity index 100% rename from js/@vue_runtime-dom@3.5.6-l0sNRNKZ.js rename to js/@vue_devtools-api@6.6.1-l0sNRNKZ.js diff --git a/js/@vue_reactivity@3.5.12-IcmYCeX3.js b/js/@vue_reactivity@3.5.12-IcmYCeX3.js new file mode 100644 index 00000000..8bd61cf2 --- /dev/null +++ b/js/@vue_reactivity@3.5.12-IcmYCeX3.js @@ -0,0 +1,5 @@ +import{i as F,a as j,h as I,b as Z,e as Yt,t as Bt,c as y,E as Ft,d as ut,f as $,g as Gt,j as C,N as zt,k as Jt,l as Ut,m as qt,r as Qt}from"./@vue_shared@3.5.12--5_uv9t5.js";/** +* @vue/reactivity v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let v;class Xt{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=v,!e&&v&&(this.index=(v.scopes||(v.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e0)return;if(V){let e=V;for(V=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;W;){let e=W;for(W=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=s}}if(t)throw t}function mt(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function xt(t){let e,s=t.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),dt(n),kt(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=e,t.depsTail=s}function at(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(yt(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function yt(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Y))return;t.globalVersion=Y;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!at(t)){t.flags&=-3;return}const s=h,n=R;h=t,R=!0;try{mt(t);const i=t.fn(t._value);(e.version===0||I(i,t._value))&&(t._value=i,e.version++)}catch(i){throw e.version++,i}finally{h=s,R=n,xt(t),t.flags&=-3}}function dt(t,e=!1){const{dep:s,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)dt(r,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function kt(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let R=!0;const Tt=[];function Dt(){Tt.push(R),R=!1}function It(){const t=Tt.pop();R=t===void 0?!0:t}function wt(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=h;h=void 0;try{e()}finally{h=s}}}let Y=0;class te{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class _t{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!h||!R||h===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==h)s=this.activeLink=new te(h,this),h.deps?(s.prevDep=h.depsTail,h.depsTail.nextDep=s,h.depsTail=s):h.deps=h.depsTail=s,Et(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=h.depsTail,s.nextDep=void 0,h.depsTail.nextDep=s,h.depsTail=s,h.deps===s&&(h.deps=n)}return s}trigger(e){this.version++,Y++,this.notify(e)}notify(e){ht();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{pt()}}}function Et(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)Et(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const k=new WeakMap,P=Symbol(""),ft=Symbol(""),B=Symbol("");function w(t,e,s){if(R&&h){let n=k.get(t);n||k.set(t,n=new Map);let i=n.get(s);i||(n.set(s,i=new _t),i.map=n,i.key=s),i.track()}}function T(t,e,s,n,i,r){const o=k.get(t);if(!o){Y++;return}const a=f=>{f&&f.trigger()};if(ht(),e==="clear")o.forEach(a);else{const f=y(t),d=f&&ut(s);if(f&&s==="length"){const c=Number(n);o.forEach((p,_)=>{(_==="length"||_===B||!F(_)&&_>=c)&&a(p)})}else switch((s!==void 0||o.has(void 0))&&a(o.get(s)),d&&a(o.get(B)),e){case"add":f?d&&a(o.get("length")):(a(o.get(P)),C(t)&&a(o.get(ft)));break;case"delete":f||(a(o.get(P)),C(t)&&a(o.get(ft)));break;case"set":C(t)&&a(o.get(P));break}}pt()}function ee(t,e){const s=k.get(t);return s&&s.get(e)}function L(t){const e=u(t);return e===t?e:(w(e,"iterate",B),S(t)?e:e.map(g))}function vt(t){return w(t=u(t),"iterate",B),t}const se={__proto__:null,[Symbol.iterator](){return rt(this,Symbol.iterator,g)},concat(...t){return L(this).concat(...t.map(e=>y(e)?L(e):e))},entries(){return rt(this,"entries",t=>(t[1]=g(t[1]),t))},every(t,e){return x(this,"every",t,e,void 0,arguments)},filter(t,e){return x(this,"filter",t,e,s=>s.map(g),arguments)},find(t,e){return x(this,"find",t,e,g,arguments)},findIndex(t,e){return x(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return x(this,"findLast",t,e,g,arguments)},findLastIndex(t,e){return x(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return x(this,"forEach",t,e,void 0,arguments)},includes(...t){return ot(this,"includes",t)},indexOf(...t){return ot(this,"indexOf",t)},join(t){return L(this).join(t)},lastIndexOf(...t){return ot(this,"lastIndexOf",t)},map(t,e){return x(this,"map",t,e,void 0,arguments)},pop(){return H(this,"pop")},push(...t){return H(this,"push",t)},reduce(t,...e){return bt(this,"reduce",t,e)},reduceRight(t,...e){return bt(this,"reduceRight",t,e)},shift(){return H(this,"shift")},some(t,e){return x(this,"some",t,e,void 0,arguments)},splice(...t){return H(this,"splice",t)},toReversed(){return L(this).toReversed()},toSorted(t){return L(this).toSorted(t)},toSpliced(...t){return L(this).toSpliced(...t)},unshift(...t){return H(this,"unshift",t)},values(){return rt(this,"values",g)}};function rt(t,e,s){const n=vt(t),i=n[e]();return n!==t&&!S(t)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.value&&(r.value=s(r.value)),r}),i}const ie=Array.prototype;function x(t,e,s,n,i,r){const o=vt(t),a=o!==t&&!S(t),f=o[e];if(f!==ie[e]){const p=f.apply(t,r);return a?g(p):p}let d=s;o!==t&&(a?d=function(p,_){return s.call(this,g(p),_,t)}:s.length>2&&(d=function(p,_){return s.call(this,p,_,t)}));const c=f.call(o,d,n);return a&&i?i(c):c}function bt(t,e,s,n){const i=vt(t);let r=s;return i!==t&&(S(t)?s.length>3&&(r=function(o,a,f){return s.call(this,o,a,f,t)}):r=function(o,a,f){return s.call(this,o,g(a),f,t)}),i[e](r,...n)}function ot(t,e,s){const n=u(t);w(n,"iterate",B);const i=n[e](...s);return(i===-1||i===!1)&&we(s[0])?(s[0]=u(s[0]),n[e](...s)):i}function H(t,e,s=[]){Dt(),ht();const n=u(t)[e].apply(t,s);return pt(),It(),n}const ne=qt("__proto__,__v_isRef,__isVue"),Mt=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(F));function re(t){F(t)||(t=String(t));const e=u(this);return w(e,"has",t),e.hasOwnProperty(t)}class Pt{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,n){const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?Ht:Kt:r?jt:Lt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=y(e);if(!i){let f;if(o&&(f=se[s]))return f;if(s==="hasOwnProperty")return re}const a=Reflect.get(e,s,b(e)?e:n);return(F(s)?Mt.has(s):ne(s))||(i||w(e,"get",s),r)?a:b(a)?o&&ut(s)?a:a.value:j(a)?i?Wt(a):Ct(a):a}}class Ot extends Pt{constructor(e=!1){super(!1,e)}set(e,s,n,i){let r=e[s];if(!this._isShallow){const f=O(r);if(!S(n)&&!O(n)&&(r=u(r),n=u(n)),!y(e)&&b(r)&&!b(n))return f?!1:(r.value=n,!0)}const o=y(e)&&ut(s)?Number(s)t,q=t=>Reflect.getPrototypeOf(t);function le(t,e,s){return function(...n){const i=this.__v_raw,r=u(i),o=C(r),a=t==="entries"||t===Symbol.iterator&&o,f=t==="keys"&&o,d=i[t](...n),c=s?ct:e?lt:g;return!e&&w(r,"iterate",f?ft:P),{next(){const{value:p,done:_}=d.next();return _?{value:p,done:_}:{value:a?[c(p[0]),c(p[1])]:c(p),done:_}},[Symbol.iterator](){return this}}}}function Q(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function ue(t,e){const s={get(i){const r=this.__v_raw,o=u(r),a=u(i);t||(I(i,a)&&w(o,"get",i),w(o,"get",a));const{has:f}=q(o),d=e?ct:t?lt:g;if(f.call(o,i))return d(r.get(i));if(f.call(o,a))return d(r.get(a));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!t&&w(u(i),"iterate",P),Reflect.get(i,"size",i)},has(i){const r=this.__v_raw,o=u(r),a=u(i);return t||(I(i,a)&&w(o,"has",i),w(o,"has",a)),i===a?r.has(i):r.has(i)||r.has(a)},forEach(i,r){const o=this,a=o.__v_raw,f=u(a),d=e?ct:t?lt:g;return!t&&w(f,"iterate",P),a.forEach((c,p)=>i.call(r,d(c),d(p),o))}};return Yt(s,t?{add:Q("add"),set:Q("set"),delete:Q("delete"),clear:Q("clear")}:{add(i){!e&&!S(i)&&!O(i)&&(i=u(i));const r=u(this);return q(r).has.call(r,i)||(r.add(i),T(r,"add",i,i)),this},set(i,r){!e&&!S(r)&&!O(r)&&(r=u(r));const o=u(this),{has:a,get:f}=q(o);let d=a.call(o,i);d||(i=u(i),d=a.call(o,i));const c=f.call(o,i);return o.set(i,r),d?I(r,c)&&T(o,"set",i,r):T(o,"add",i,r),this},delete(i){const r=u(this),{has:o,get:a}=q(r);let f=o.call(r,i);f||(i=u(i),f=o.call(r,i)),a&&a.call(r,i);const d=r.delete(i);return f&&T(r,"delete",i,void 0),d},clear(){const i=u(this),r=i.size!==0,o=i.clear();return r&&T(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=le(i,t,e)}),s}function et(t,e){const s=ue(t,e);return(n,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get($(s,i)&&i in n?s:n,i,r)}const he={get:et(!1,!1)},pe={get:et(!1,!0)},de={get:et(!0,!1)},_e={get:et(!0,!0)},Lt=new WeakMap,jt=new WeakMap,Kt=new WeakMap,Ht=new WeakMap;function ve(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ge(t){return t.__v_skip||!Object.isExtensible(t)?0:ve(Bt(t))}function Ct(t){return O(t)?t:st(t,!1,oe,he,Lt)}function Pe(t){return st(t,!1,fe,pe,jt)}function Wt(t){return st(t,!0,ae,de,Kt)}function Oe(t){return st(t,!0,ce,_e,Ht)}function st(t,e,s,n,i){if(!j(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=i.get(t);if(r)return r;const o=ge(t);if(o===0)return t;const a=new Proxy(t,o===2?n:s);return i.set(t,a),a}function N(t){return O(t)?N(t.__v_raw):!!(t&&t.__v_isReactive)}function O(t){return!!(t&&t.__v_isReadonly)}function S(t){return!!(t&&t.__v_isShallow)}function we(t){return t?!!t.__v_raw:!1}function u(t){const e=t&&t.__v_raw;return e?u(e):t}function Ae(t){return!$(t,"__v_skip")&&Object.isExtensible(t)&&Gt(t,"__v_skip",!0),t}const g=t=>j(t)?Ct(t):t,lt=t=>j(t)?Wt(t):t;function b(t){return t?t.__v_isRef===!0:!1}function be(t){return Vt(t,!1)}function Le(t){return Vt(t,!0)}function Vt(t,e){return b(t)?t:new Re(t,e)}class Re{constructor(e,s){this.dep=new _t,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:u(e),this._value=s?e:g(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||S(e)||O(e);e=n?e:u(e),I(e,s)&&(this._rawValue=e,this._value=n?e:g(e),this.dep.trigger())}}function Se(t){return b(t)?t.value:t}const me={get:(t,e,s)=>e==="__v_raw"?t:Se(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const i=t[e];return b(i)&&!b(s)?(i.value=s,!0):Reflect.set(t,e,s,n)}};function je(t){return N(t)?t:new Proxy(t,me)}function Ke(t){const e=y(t)?new Array(t.length):{};for(const s in t)e[s]=Nt(t,s);return e}class xe{constructor(e,s,n){this._object=e,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return ee(u(this._object),this._key)}}class ye{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function He(t,e,s){return b(t)?t:Z(t)?new ye(t):j(t)&&arguments.length>1?Nt(t,e,s):be(t)}function Nt(t,e,s){const n=t[e];return b(n)?n:new xe(t,e,s)}class Te{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new _t(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Y-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&h!==this)return St(this,!0),!0}get value(){const e=this.dep.track();return yt(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ce(t,e,s=!1){let n,i;return Z(t)?n=t:(n=t.get,i=t.set),new Te(n,i,s)}const X={},tt=new WeakMap;let M;function De(t,e=!1,s=M){if(s){let n=tt.get(s);n||tt.set(s,n=[]),n.push(t)}}function We(t,e,s=Ft){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:a,call:f}=s,d=l=>i?l:S(l)||i===!1||i===0?D(l,1):D(l);let c,p,_,G,z=!1,J=!1;if(b(t)?(p=()=>t.value,z=S(t)):N(t)?(p=()=>d(t),z=!0):y(t)?(J=!0,z=t.some(l=>N(l)||S(l)),p=()=>t.map(l=>{if(b(l))return l.value;if(N(l))return d(l);if(Z(l))return f?f(l,2):l()})):Z(t)?e?p=f?()=>f(t,2):t:p=()=>{if(_){Dt();try{_()}finally{It()}}const l=M;M=c;try{return f?f(t,3,[G]):t(G)}finally{M=l}}:p=zt,e&&i){const l=p,m=i===!0?1/0:i;p=()=>D(l(),m)}const gt=Zt(),A=()=>{c.stop(),gt&&Qt(gt.effects,c)};if(r&&e){const l=e;e=(...m)=>{l(...m),A()}}let E=J?new Array(t.length).fill(X):X;const K=l=>{if(!(!(c.flags&1)||!c.dirty&&!l))if(e){const m=c.run();if(i||z||(J?m.some((it,U)=>I(it,E[U])):I(m,E))){_&&_();const it=M;M=c;try{const U=[m,E===X?void 0:J&&E[0]===X?[]:E,G];f?f(e,3,U):e(...U),E=m}finally{M=it}}}else c.run()};return a&&a(K),c=new $t(p),c.scheduler=o?()=>o(K,!1):K,G=l=>De(l,!1,c),_=c.onStop=()=>{const l=tt.get(c);if(l){if(f)f(l,4);else for(const m of l)m();tt.delete(c)}},e?n?K(!0):E=c.run():o?o(K.bind(null,!0),!0):c.run(),A.pause=c.pause.bind(c),A.resume=c.resume.bind(c),A.stop=A,A}function D(t,e=1/0,s){if(e<=0||!j(t)||t.__v_skip||(s=s||new Set,s.has(t)))return t;if(s.add(t),e--,b(t))D(t.value,e,s);else if(y(t))for(let n=0;n{D(n,e,s)});else if(Ut(t)){for(const n in t)D(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&D(t[n],e,s)}return t}export{Xt as E,$t as R,b as a,Dt as b,Ce as c,u as d,Ct as e,w as f,Pe as g,T as h,we as i,Oe as j,be as k,Wt as l,Ae as m,Zt as n,Me as o,je as p,He as q,It as r,Le as s,D as t,Se as u,Ke as v,We as w,Ee as x,N as y}; diff --git a/js/@vue_reactivity@3.5.12-IcmYCeX3.js.gz b/js/@vue_reactivity@3.5.12-IcmYCeX3.js.gz new file mode 100644 index 00000000..945f294d Binary files /dev/null and b/js/@vue_reactivity@3.5.12-IcmYCeX3.js.gz differ diff --git a/js/@vue_reactivity@3.5.6-CXMPYrvZ.js b/js/@vue_reactivity@3.5.6-CXMPYrvZ.js deleted file mode 100644 index 34f274b6..00000000 --- a/js/@vue_reactivity@3.5.6-CXMPYrvZ.js +++ /dev/null @@ -1,5 +0,0 @@ -import{i as r}from"./@vue_shared@3.5.6-6BrT-eFF.js";/** -* @vue/reactivity v3.5.6 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(r));function i(e){return e?!!e.__v_raw:!1}function s(e){return e?e.__v_isRef===!0:!1}export{i as a,s as i}; diff --git a/js/@vue_runtime-core@3.5.12-o4JnKqGq.js b/js/@vue_runtime-core@3.5.12-o4JnKqGq.js new file mode 100644 index 00000000..91b3647c --- /dev/null +++ b/js/@vue_runtime-core@3.5.12-o4JnKqGq.js @@ -0,0 +1,5 @@ +import{w as wl,i as Ls,c as Hl,s as Nl,a as Ft,t as $l,p as Vs,m as Ll,b as Ge,r as Je,d as Bt,e as Vl,R as Ul,E as Dl,f as Us,g as Sl,h as jl}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{b as L,e as ie,n as Pt,E as q,o as be,p as Ds,a as pe,c as R,q as Ss,s as ns,u as js,r as Rs,i as Rl,N as Ie,v as ke,w as Ks,x as je,y as et,z as Kl,A as Wl,B as tt,f as Q,C as ql,D as ft,g as Gl,F as Jl,G as Vt,H as Ws}from"./@vue_shared@3.5.12--5_uv9t5.js";/** +* @vue/runtime-core v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function ct(e,t,s,l){try{return l?e(...l):e()}catch(n){ut(n,t,s)}}function Ee(e,t,s,l){if(L(e)){const n=ct(e,t,s,l);return n&&js(n)&&n.catch(r=>{ut(r,t,s)}),n}if(R(e)){const n=[];for(let r=0;r>>1,n=ce[l],r=rt(n);r=rt(s)?ce.push(e):ce.splice(Xl(t),0,e),e.flags|=1,Gs()}}function Gs(){vt||(vt=qs.then(Ys))}function Kt(e){R(e)?Re.push(...e):Pe&&e.id===-1?Pe.splice(Se+1,0,e):e.flags&1||(Re.push(e),e.flags|=1),Gs()}function vs(e,t,s=Te+1){for(;srt(s)-rt(l));if(Re.length=0,Pe){Pe.push(...t);return}for(Pe=t,Se=0;See.id==null?e.flags&2?-1:1/0:e.id;function Ys(e){try{for(Te=0;Te{l._d&&Hs(-1);const r=Tt(t);let i;try{i=e(...n)}finally{Tt(r),l._d&&Hs(1)}return i};return l._n=!0,l._c=!0,l._d=!0,l}function gr(e,t){if(z===null)return e;const s=$t(z),l=e.dirs||(e.dirs=[]);for(let n=0;ne.__isTeleport,st=e=>e&&(e.disabled||e.disabled===""),zl=e=>e&&(e.defer||e.defer===""),Ts=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ks=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Wt=(e,t)=>{const s=e&&e.to;return be(s)?t?t(s):null:s},en={name:"Teleport",__isTeleport:!0,process(e,t,s,l,n,r,i,c,u,g){const{mc:d,pc:a,pbc:m,o:{insert:x,querySelector:A,createText:O,createComment:W}}=g,V=st(t.props);let{shapeFlag:E,children:P,dynamicChildren:B}=t;if(e==null){const k=t.el=O(""),M=t.anchor=O("");x(k,s,l),x(M,s,l);const D=(I,H)=>{E&16&&(n&&n.isCE&&(n.ce._teleportTarget=I),d(P,I,H,n,r,i,c,u))},U=()=>{const I=t.target=Wt(t.props,A),H=zs(I,t,O,x);I&&(i!=="svg"&&Ts(I)?i="svg":i!=="mathml"&&ks(I)&&(i="mathml"),V||(D(I,H),yt(t,!1)))};V&&(D(s,M),yt(t,!0)),zl(t.props)?te(U,r):U()}else{t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,M=t.target=e.target,D=t.targetAnchor=e.targetAnchor,U=st(e.props),I=U?s:M,H=U?k:D;if(i==="svg"||Ts(M)?i="svg":(i==="mathml"||ks(M))&&(i="mathml"),B?(m(e.dynamicChildren,B,I,n,r,i,c),ds(e,t,!0)):u||a(e,t,I,H,n,r,i,c,!1),V)U?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):gt(t,s,k,g,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const S=t.target=Wt(t.props,A);S&>(t,S,null,g,0)}else U&>(t,M,D,g,1);yt(t,V)}},remove(e,t,s,{um:l,o:{remove:n}},r){const{shapeFlag:i,children:c,anchor:u,targetStart:g,targetAnchor:d,target:a,props:m}=e;if(a&&(n(g),n(d)),r&&n(u),i&16){const x=r||!st(m);for(let A=0;A{e.isMounted=!0}),os(()=>{e.isUnmounting=!0}),e}const me=[Function,Array],ln={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:me,onEnter:me,onAfterEnter:me,onEnterCancelled:me,onBeforeLeave:me,onLeave:me,onAfterLeave:me,onLeaveCancelled:me,onBeforeAppear:me,onAppear:me,onAfterAppear:me,onAppearCancelled:me},el=e=>{const t=e.subTree;return t.component?el(t.component):t},nn={name:"BaseTransition",props:ln,setup(e,{slots:t}){const s=ms(),l=sn();return()=>{const n=t.default&&ll(t.default(),!0);if(!n||!n.length)return;const r=tl(n),i=Bt(e),{mode:c}=i;if(l.isLeaving)return Ut(r);const u=Es(r);if(!u)return Ut(r);let g=qt(u,i,l,s,m=>g=m);u.type!==se&&We(u,g);const d=s.subTree,a=d&&Es(d);if(a&&a.type!==se&&!Ce(u,a)&&el(s).type!==se){const m=qt(a,i,l,s);if(We(a,m),c==="out-in"&&u.type!==se)return l.isLeaving=!0,m.afterLeave=()=>{l.isLeaving=!1,s.job.flags&8||s.update(),delete m.afterLeave},Ut(r);c==="in-out"&&u.type!==se&&(m.delayLeave=(x,A,O)=>{const W=sl(l,a);W[String(a.key)]=a,x[Me]=()=>{A(),x[Me]=void 0,delete g.delayedLeave},g.delayedLeave=O})}return r}}};function tl(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==se){t=s;break}}return t}const mr=nn;function sl(e,t){const{leavingVNodes:s}=e;let l=s.get(t.type);return l||(l=Object.create(null),s.set(t.type,l)),l}function qt(e,t,s,l,n){const{appear:r,mode:i,persisted:c=!1,onBeforeEnter:u,onEnter:g,onAfterEnter:d,onEnterCancelled:a,onBeforeLeave:m,onLeave:x,onAfterLeave:A,onLeaveCancelled:O,onBeforeAppear:W,onAppear:V,onAfterAppear:E,onAppearCancelled:P}=t,B=String(e.key),k=sl(s,e),M=(I,H)=>{I&&Ee(I,l,9,H)},D=(I,H)=>{const S=H[1];M(I,H),R(I)?I.every(X=>X.length<=1)&&S():I.length<=1&&S()},U={mode:i,persisted:c,beforeEnter(I){let H=u;if(!s.isMounted)if(r)H=W||u;else return;I[Me]&&I[Me](!0);const S=k[B];S&&Ce(e,S)&&S.el[Me]&&S.el[Me](),M(H,[I])},enter(I){let H=g,S=d,X=a;if(!s.isMounted)if(r)H=V||g,S=E||d,X=P||a;else return;let ee=!1;const oe=I[pt]=Ae=>{ee||(ee=!0,Ae?M(X,[I]):M(S,[I]),U.delayedLeave&&U.delayedLeave(),I[pt]=void 0)};H?D(H,[I,oe]):oe()},leave(I,H){const S=String(e.key);if(I[pt]&&I[pt](!0),s.isUnmounting)return H();M(m,[I]);let X=!1;const ee=I[Me]=oe=>{X||(X=!0,H(),oe?M(O,[I]):M(A,[I]),I[Me]=void 0,k[S]===e&&delete k[S])};k[S]=e,x?D(x,[I,ee]):ee()},clone(I){const H=qt(I,t,s,l,n);return n&&n(H),H}};return U}function Ut(e){if(Mt(e))return e=Oe(e),e.children=null,e}function Es(e){if(!Mt(e))return Zs(e.type)&&e.children?tl(e.children):e;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&L(s.default))return s.default()}}function We(e,t){e.shapeFlag&6&&e.component?(e.transition=t,We(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 ll(e,t=!1,s){let l=[],n=0;for(let r=0;r1)for(let r=0;rs.value,set:r=>s.value=r})}return s}function Gt(e,t,s,l,n=!1){if(R(e)){e.forEach((A,O)=>Gt(A,t&&(R(t)?t[O]:t),s,l,n));return}if(Ve(l)&&!n)return;const r=l.shapeFlag&4?$t(l.component):l.el,i=n?null:r,{i:c,r:u}=e,g=t&&t.r,d=c.refs===q?c.refs={}:c.refs,a=c.setupState,m=Bt(a),x=a===q?()=>!1:A=>Q(m,A);if(g!=null&&g!==u&&(be(g)?(d[g]=null,x(g)&&(a[g]=null)):Ft(g)&&(g.value=null)),L(u))ct(u,c,12,[i,d]);else{const A=be(u),O=Ft(u);if(A||O){const W=()=>{if(e.f){const V=A?x(u)?a[u]:d[u]:u.value;n?R(V)&&Rs(V,r):R(V)?V.includes(r)||V.push(r):A?(d[u]=[r],x(u)&&(a[u]=d[u])):(u.value=[r],e.k&&(d[e.k]=u.value))}else A?(d[u]=i,x(u)&&(a[u]=i)):O&&(u.value=i,e.k&&(d[e.k]=i))};i?(W.id=-1,te(W,s)):W()}}}Pt().requestIdleCallback;Pt().cancelIdleCallback;const Ve=e=>!!e.type.__asyncLoader,Mt=e=>e.type.__isKeepAlive,rn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=ms(),l=s.ctx;if(!l.renderer)return()=>{const E=t.default&&t.default();return E&&E.length===1?E[0]:E};const n=new Map,r=new Set;let i=null;const c=s.suspense,{renderer:{p:u,m:g,um:d,o:{createElement:a}}}=l,m=a("div");l.activate=(E,P,B,k,M)=>{const D=E.component;g(E,P,B,0,c),u(D.vnode,E,P,B,D,c,k,E.slotScopeIds,M),te(()=>{D.isDeactivated=!1,D.a&&et(D.a);const U=E.props&&E.props.onVnodeMounted;U&&ye(U,D.parent,E)},c)},l.deactivate=E=>{const P=E.component;Et(P.m),Et(P.a),g(E,m,null,1,c),te(()=>{P.da&&et(P.da);const B=E.props&&E.props.onVnodeUnmounted;B&&ye(B,P.parent,E),P.isDeactivated=!0},c)};function x(E){Dt(E),d(E,s,c,!0)}function A(E){n.forEach((P,B)=>{const k=ls(P.type);k&&!E(k)&&O(B)})}function O(E){const P=n.get(E);P&&(!i||!Ce(P,i))?x(P):i&&Dt(i),n.delete(E),r.delete(E)}_t(()=>[e.include,e.exclude],([E,P])=>{E&&A(B=>Ze(E,B)),P&&A(B=>!Ze(P,B))},{flush:"post",deep:!0});let W=null;const V=()=>{W!=null&&(At(s.subTree.type)?te(()=>{n.set(W,mt(s.subTree))},s.subTree.suspense):n.set(W,mt(s.subTree)))};return is(V),il(V),os(()=>{n.forEach(E=>{const{subTree:P,suspense:B}=s,k=mt(P);if(E.type===k.type&&E.key===k.key){Dt(k);const M=k.component.da;M&&te(M,B);return}x(E)})}),()=>{if(W=null,!t.default)return i=null;const E=t.default(),P=E[0];if(E.length>1)return i=null,E;if(!De(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return i=null,P;let B=mt(P);if(B.type===se)return i=null,B;const k=B.type,M=ls(Ve(B)?B.type.__asyncResolved||{}:k),{include:D,exclude:U,max:I}=e;if(D&&(!M||!Ze(D,M))||U&&M&&Ze(U,M))return B.shapeFlag&=-257,i=B,P;const H=B.key==null?k:B.key,S=n.get(H);return B.el&&(B=Oe(B),P.shapeFlag&128&&(P.ssContent=B)),W=H,S?(B.el=S.el,B.component=S.component,B.transition&&We(B,B.transition),B.shapeFlag|=512,r.delete(H),r.add(H)):(r.add(H),I&&r.size>parseInt(I,10)&&O(r.values().next().value)),B.shapeFlag|=256,i=B,At(P.type)?P:B}}},_r=rn;function Ze(e,t){return R(e)?e.some(s=>Ze(s,t)):be(e)?e.split(",").includes(t):Kl(e)?(e.lastIndex=0,e.test(t)):!1}function on(e,t){rl(e,"a",t)}function fn(e,t){rl(e,"da",t)}function rl(e,t,s=le){const l=e.__wdc||(e.__wdc=()=>{let n=s;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(wt(t,l,s),s){let n=s.parent;for(;n&&n.parent;)Mt(n.parent.vnode)&&cn(l,t,s,n),n=n.parent}}function cn(e,t,s,l){const n=wt(t,e,l,!0);ol(()=>{Rs(l[t],n)},s)}function Dt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function mt(e){return e.shapeFlag&128?e.ssContent:e}function wt(e,t,s=le,l=!1){if(s){const n=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ge();const c=at(s),u=Ee(t,s,e,i);return c(),Je(),u});return l?n.unshift(r):n.push(r),r}}const Be=e=>(t,s=le)=>{(!ot||e==="sp")&&wt(e,(...l)=>t(...l),s)},un=Be("bm"),is=Be("m"),an=Be("bu"),il=Be("u"),os=Be("bum"),ol=Be("um"),dn=Be("sp"),hn=Be("rtg"),gn=Be("rtc");function pn(e,t=le){wt("ec",e,t)}const fs="components",mn="directives";function xr(e,t){return cs(fs,e,!0,t)||e}const fl=Symbol.for("v-ndc");function Cr(e){return be(e)?cs(fs,e,!1)||e:e||fl}function Fr(e){return cs(mn,e)}function cs(e,t,s=!0,l=!1){const n=z||le;if(n){const r=n.type;if(e===fs){const c=ls(r,!1);if(c&&(c===t||c===ke(t)||c===Ks(ke(t))))return r}const i=As(n[e]||r[e],t)||As(n.appContext[e],t);return!i&&l?r:i}}function As(e,t){return e&&(e[t]||e[ke(t)]||e[Ks(ke(t))])}function vr(e,t,s={},l,n){if(z.ce||z.parent&&Ve(z.parent)&&z.parent.ce)return t!=="default"&&(s.name=t),It(),es(ge,null,[re("slot",s,l)],64);let r=e[t];r&&r._c&&(r._d=!1),It();const i=r&&cl(r(s)),c=s.key||i&&i.key,u=es(ge,{key:(c&&!Rl(c)?c:`_${t}`)+(!i&&l?"_fb":"")},i||[],i&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),r&&r._c&&(r._d=!0),u}function cl(e){return e.some(t=>De(t)?!(t.type===se||t.type===ge&&!cl(t.children)):!0)?e:null}const Jt=e=>e?Ol(e)?$t(e):Jt(e.parent):null,lt=ie(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=>Jt(e.parent),$root:e=>Jt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>us(e),$forceUpdate:e=>e.f||(e.f=()=>{rs(e.update)}),$nextTick:e=>e.n||(e.n=Ql.bind(e.proxy)),$watch:e=>Ln.bind(e)}),St=(e,t)=>e!==q&&!e.__isScriptSetup&&Q(e,t),yn={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:n,props:r,accessCache:i,type:c,appContext:u}=e;let g;if(t[0]!=="$"){const x=i[t];if(x!==void 0)switch(x){case 1:return l[t];case 2:return n[t];case 4:return s[t];case 3:return r[t]}else{if(St(l,t))return i[t]=1,l[t];if(n!==q&&Q(n,t))return i[t]=2,n[t];if((g=e.propsOptions[0])&&Q(g,t))return i[t]=3,r[t];if(s!==q&&Q(s,t))return i[t]=4,s[t];Qt&&(i[t]=0)}}const d=lt[t];let a,m;if(d)return t==="$attrs"&&Us(e.attrs,"get",""),d(e);if((a=c.__cssModules)&&(a=a[t]))return a;if(s!==q&&Q(s,t))return i[t]=4,s[t];if(m=u.config.globalProperties,Q(m,t))return m[t]},set({_:e},t,s){const{data:l,setupState:n,ctx:r}=e;return St(n,t)?(n[t]=s,!0):l!==q&&Q(l,t)?(l[t]=s,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:n,propsOptions:r}},i){let c;return!!s[i]||e!==q&&Q(e,i)||St(t,i)||(c=r[0])&&Q(c,i)||Q(l,i)||Q(lt,i)||Q(n.config.globalProperties,i)},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Q(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Yt(e){return R(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function Tr(e,t){const s=Yt(e);for(const l in t){if(l.startsWith("__skip"))continue;let n=s[l];n?R(n)||L(n)?n=s[l]={type:n,default:t[l]}:n.default=t[l]:n===null&&(n=s[l]={default:t[l]}),n&&t[`__skip_${l}`]&&(n.skipFactory=!0)}return s}let Qt=!0;function bn(e){const t=us(e),s=e.proxy,l=e.ctx;Qt=!1,t.beforeCreate&&Is(t.beforeCreate,e,"bc");const{data:n,computed:r,methods:i,watch:c,provide:u,inject:g,created:d,beforeMount:a,mounted:m,beforeUpdate:x,updated:A,activated:O,deactivated:W,beforeDestroy:V,beforeUnmount:E,destroyed:P,unmounted:B,render:k,renderTracked:M,renderTriggered:D,errorCaptured:U,serverPrefetch:I,expose:H,inheritAttrs:S,components:X,directives:ee,filters:oe}=t;if(g&&_n(g,l,null),i)for(const G in i){const J=i[G];L(J)&&(l[G]=J.bind(s))}if(n){const G=n.call(s,s);pe(G)&&(e.data=Vl(G))}if(Qt=!0,r)for(const G in r){const J=r[G],He=L(J)?J.bind(s,s):L(J.get)?J.get.bind(s,s):Ie,dt=!L(J)&&L(J.set)?J.set.bind(s):Ie,Ne=cr({get:He,set:dt});Object.defineProperty(l,G,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:Fe=>Ne.value=Fe})}if(c)for(const G in c)ul(c[G],l,s,G);if(u){const G=L(u)?u.call(s):u;Reflect.ownKeys(G).forEach(J=>{kn(J,G[J])})}d&&Is(d,e,"c");function Z(G,J){R(J)?J.forEach(He=>G(He.bind(s))):J&&G(J.bind(s))}if(Z(un,a),Z(is,m),Z(an,x),Z(il,A),Z(on,O),Z(fn,W),Z(pn,U),Z(gn,M),Z(hn,D),Z(os,E),Z(ol,B),Z(dn,I),R(H))if(H.length){const G=e.exposed||(e.exposed={});H.forEach(J=>{Object.defineProperty(G,J,{get:()=>s[J],set:He=>s[J]=He})})}else e.exposed||(e.exposed={});k&&e.render===Ie&&(e.render=k),S!=null&&(e.inheritAttrs=S),X&&(e.components=X),ee&&(e.directives=ee),I&&nl(e)}function _n(e,t,s=Ie){R(e)&&(e=Xt(e));for(const l in e){const n=e[l];let r;pe(n)?"default"in n?r=bt(n.from||l,n.default,!0):r=bt(n.from||l):r=bt(n),Ft(r)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[l]=r}}function Is(e,t,s){Ee(R(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function ul(e,t,s,l){let n=l.includes(".")?Fl(s,l):()=>s[l];if(be(e)){const r=t[e];L(r)&&_t(n,r)}else if(L(e))_t(n,e.bind(s));else if(pe(e))if(R(e))e.forEach(r=>ul(r,t,s,l));else{const r=L(e.handler)?e.handler.bind(s):t[e.handler];L(r)&&_t(n,r,e)}}function us(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:n,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,c=r.get(t);let u;return c?u=c:!n.length&&!s&&!l?u=t:(u={},n.length&&n.forEach(g=>kt(u,g,i,!0)),kt(u,t,i)),pe(t)&&r.set(t,u),u}function kt(e,t,s,l=!1){const{mixins:n,extends:r}=t;r&&kt(e,r,s,!0),n&&n.forEach(i=>kt(e,i,s,!0));for(const i in t)if(!(l&&i==="expose")){const c=xn[i]||s&&s[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const xn={data:Os,props:Bs,emits:Bs,methods:ze,computed:ze,beforeCreate:fe,created:fe,beforeMount:fe,mounted:fe,beforeUpdate:fe,updated:fe,beforeDestroy:fe,beforeUnmount:fe,destroyed:fe,unmounted:fe,activated:fe,deactivated:fe,errorCaptured:fe,serverPrefetch:fe,components:ze,directives:ze,watch:Fn,provide:Os,inject:Cn};function Os(e,t){return t?e?function(){return ie(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function Cn(e,t){return ze(Xt(e),Xt(t))}function Xt(e){if(R(e)){const t={};for(let s=0;s1)return s&&L(t)?t.call(l&&l.proxy):t}}function kr(){return!!(le||z||Ue)}const dl={},hl=()=>Object.create(dl),gl=e=>Object.getPrototypeOf(e)===dl;function En(e,t,s,l=!1){const n={},r=hl();e.propsDefaults=Object.create(null),pl(e,t,n,r);for(const i in e.propsOptions[0])i in n||(n[i]=void 0);s?e.props=l?n:Sl(n):e.type.props?e.props=n:e.props=r,e.attrs=r}function An(e,t,s,l){const{props:n,attrs:r,vnode:{patchFlag:i}}=e,c=Bt(n),[u]=e.propsOptions;let g=!1;if((l||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let a=0;a{u=!0;const[m,x]=ml(a,t,!0);ie(i,m),x&&c.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!u)return pe(e)&&l.set(e,je),je;if(R(r))for(let d=0;de[0]==="_"||e==="$stable",as=e=>R(e)?e.map(xe):[xe(e)],On=(e,t,s)=>{if(t._n)return t;const l=Zl((...n)=>as(t(...n)),s);return l._c=!1,l},bl=(e,t,s)=>{const l=e._ctx;for(const n in e){if(yl(n))continue;const r=e[n];if(L(r))t[n]=On(n,r,l);else if(r!=null){const i=as(r);t[n]=()=>i}}},_l=(e,t)=>{const s=as(t);e.slots.default=()=>s},xl=(e,t,s)=>{for(const l in t)(s||l!=="_")&&(e[l]=t[l])},Bn=(e,t,s)=>{const l=e.slots=hl();if(e.vnode.shapeFlag&32){const n=t._;n?(xl(l,t,s),s&&Gl(l,"_",n,!0)):bl(t,l)}else t&&_l(e,t)},Pn=(e,t,s)=>{const{vnode:l,slots:n}=e;let r=!0,i=q;if(l.shapeFlag&32){const c=t._;c?s&&c===1?r=!1:xl(n,t,s):(r=!t.$stable,bl(t,n)),i=t}else t&&(_l(e,t),i={default:1});if(r)for(const c in n)!yl(c)&&i[c]==null&&delete n[c]},te=Yn;function Er(e){return Mn(e)}function Mn(e,t){const s=Pt();s.__VUE__=!0;const{insert:l,remove:n,patchProp:r,createElement:i,createText:c,createComment:u,setText:g,setElementText:d,parentNode:a,nextSibling:m,setScopeId:x=Ie,insertStaticContent:A}=e,O=(o,f,h,b=null,p=null,y=null,v=void 0,F=null,C=!!f.dynamicChildren)=>{if(o===f)return;o&&!Ce(o,f)&&(b=ht(o),Fe(o,p,y,!0),o=null),f.patchFlag===-2&&(C=!1,f.dynamicChildren=null);const{type:_,ref:N,shapeFlag:T}=f;switch(_){case Nt:W(o,f,h,b);break;case se:V(o,f,h,b);break;case xt:o==null&&E(f,h,b,v);break;case ge:X(o,f,h,b,p,y,v,F,C);break;default:T&1?k(o,f,h,b,p,y,v,F,C):T&6?ee(o,f,h,b,p,y,v,F,C):(T&64||T&128)&&_.process(o,f,h,b,p,y,v,F,C,Qe)}N!=null&&p&&Gt(N,o&&o.ref,y,f||o,!f)},W=(o,f,h,b)=>{if(o==null)l(f.el=c(f.children),h,b);else{const p=f.el=o.el;f.children!==o.children&&g(p,f.children)}},V=(o,f,h,b)=>{o==null?l(f.el=u(f.children||""),h,b):f.el=o.el},E=(o,f,h,b)=>{[o.el,o.anchor]=A(o.children,f,h,b,o.el,o.anchor)},P=({el:o,anchor:f},h,b)=>{let p;for(;o&&o!==f;)p=m(o),l(o,h,b),o=p;l(f,h,b)},B=({el:o,anchor:f})=>{let h;for(;o&&o!==f;)h=m(o),n(o),o=h;n(f)},k=(o,f,h,b,p,y,v,F,C)=>{f.type==="svg"?v="svg":f.type==="math"&&(v="mathml"),o==null?M(f,h,b,p,y,v,F,C):I(o,f,p,y,v,F,C)},M=(o,f,h,b,p,y,v,F)=>{let C,_;const{props:N,shapeFlag:T,transition:w,dirs:$}=o;if(C=o.el=i(o.type,y,N&&N.is,N),T&8?d(C,o.children):T&16&&U(o.children,C,null,b,p,jt(o,y),v,F),$&&$e(o,null,b,"created"),D(C,o,o.scopeId,v,b),N){for(const Y in N)Y!=="value"&&!tt(Y)&&r(C,Y,null,N[Y],y,b);"value"in N&&r(C,"value",null,N.value,y),(_=N.onVnodeBeforeMount)&&ye(_,b,o)}$&&$e(o,null,b,"beforeMount");const j=wn(p,w);j&&w.beforeEnter(C),l(C,f,h),((_=N&&N.onVnodeMounted)||j||$)&&te(()=>{_&&ye(_,b,o),j&&w.enter(C),$&&$e(o,null,b,"mounted")},p)},D=(o,f,h,b,p)=>{if(h&&x(o,h),b)for(let y=0;y{for(let _=C;_{const F=f.el=o.el;let{patchFlag:C,dynamicChildren:_,dirs:N}=f;C|=o.patchFlag&16;const T=o.props||q,w=f.props||q;let $;if(h&&Le(h,!1),($=w.onVnodeBeforeUpdate)&&ye($,h,f,o),N&&$e(f,o,h,"beforeUpdate"),h&&Le(h,!0),(T.innerHTML&&w.innerHTML==null||T.textContent&&w.textContent==null)&&d(F,""),_?H(o.dynamicChildren,_,F,h,b,jt(f,p),y):v||J(o,f,F,null,h,b,jt(f,p),y,!1),C>0){if(C&16)S(F,T,w,h,p);else if(C&2&&T.class!==w.class&&r(F,"class",null,w.class,p),C&4&&r(F,"style",T.style,w.style,p),C&8){const j=f.dynamicProps;for(let Y=0;Y{$&&ye($,h,f,o),N&&$e(f,o,h,"updated")},b)},H=(o,f,h,b,p,y,v)=>{for(let F=0;F{if(f!==h){if(f!==q)for(const y in f)!tt(y)&&!(y in h)&&r(o,y,f[y],null,p,b);for(const y in h){if(tt(y))continue;const v=h[y],F=f[y];v!==F&&y!=="value"&&r(o,y,F,v,p,b)}"value"in h&&r(o,"value",f.value,h.value,p)}},X=(o,f,h,b,p,y,v,F,C)=>{const _=f.el=o?o.el:c(""),N=f.anchor=o?o.anchor:c("");let{patchFlag:T,dynamicChildren:w,slotScopeIds:$}=f;$&&(F=F?F.concat($):$),o==null?(l(_,h,b),l(N,h,b),U(f.children||[],h,N,p,y,v,F,C)):T>0&&T&64&&w&&o.dynamicChildren?(H(o.dynamicChildren,w,h,p,y,v,F),(f.key!=null||p&&f===p.subTree)&&ds(o,f,!0)):J(o,f,h,N,p,y,v,F,C)},ee=(o,f,h,b,p,y,v,F,C)=>{f.slotScopeIds=F,o==null?f.shapeFlag&512?p.ctx.activate(f,h,b,v,C):oe(f,h,b,p,y,v,C):Ae(o,f,C)},oe=(o,f,h,b,p,y,v)=>{const F=o.component=lr(o,b,p);if(Mt(o)&&(F.ctx.renderer=Qe),nr(F,!1,v),F.asyncDep){if(p&&p.registerDep(F,Z,v),!o.el){const C=F.subTree=re(se);V(null,C,f,h)}}else Z(F,o,f,h,p,y,v)},Ae=(o,f,h)=>{const b=f.component=o.component;if(Rn(o,f,h))if(b.asyncDep&&!b.asyncResolved){G(b,f,h);return}else b.next=f,b.update();else f.el=o.el,b.vnode=f},Z=(o,f,h,b,p,y,v)=>{const F=()=>{if(o.isMounted){let{next:T,bu:w,u:$,parent:j,vnode:Y}=o;{const de=Cl(o);if(de){T&&(T.el=Y.el,G(o,T,v)),de.asyncDep.then(()=>{o.isUnmounted||F()});return}}let K=T,ae;Le(o,!1),T?(T.el=Y.el,G(o,T,v)):T=Y,w&&et(w),(ae=T.props&&T.props.onVnodeBeforeUpdate)&&ye(ae,j,T,Y),Le(o,!0);const ne=Rt(o),_e=o.subTree;o.subTree=ne,O(_e,ne,a(_e.el),ht(_e),o,p,y),T.el=ne.el,K===null&&gs(o,ne.el),$&&te($,p),(ae=T.props&&T.props.onVnodeUpdated)&&te(()=>ye(ae,j,T,Y),p)}else{let T;const{el:w,props:$}=f,{bm:j,m:Y,parent:K,root:ae,type:ne}=o,_e=Ve(f);if(Le(o,!1),j&&et(j),!_e&&(T=$&&$.onVnodeBeforeMount)&&ye(T,K,f),Le(o,!0),w&&xs){const de=()=>{o.subTree=Rt(o),xs(w,o.subTree,o,p,null)};_e&&ne.__asyncHydrate?ne.__asyncHydrate(w,o,de):de()}else{ae.ce&&ae.ce._injectChildStyle(ne);const de=o.subTree=Rt(o);O(null,de,h,b,o,p,y),f.el=de.el}if(Y&&te(Y,p),!_e&&(T=$&&$.onVnodeMounted)){const de=f;te(()=>ye(T,K,de),p)}(f.shapeFlag&256||K&&Ve(K.vnode)&&K.vnode.shapeFlag&256)&&o.a&&te(o.a,p),o.isMounted=!0,f=h=b=null}};o.scope.on();const C=o.effect=new Ul(F);o.scope.off();const _=o.update=C.run.bind(C),N=o.job=C.runIfDirty.bind(C);N.i=o,N.id=o.uid,C.scheduler=()=>rs(N),Le(o,!0),_()},G=(o,f,h)=>{f.component=o;const b=o.vnode.props;o.vnode=f,o.next=null,An(o,f.props,b,h),Pn(o,f.children,h),Ge(),vs(o),Je()},J=(o,f,h,b,p,y,v,F,C=!1)=>{const _=o&&o.children,N=o?o.shapeFlag:0,T=f.children,{patchFlag:w,shapeFlag:$}=f;if(w>0){if(w&128){dt(_,T,h,b,p,y,v,F,C);return}else if(w&256){He(_,T,h,b,p,y,v,F,C);return}}$&8?(N&16&&Ye(_,p,y),T!==_&&d(h,T)):N&16?$&16?dt(_,T,h,b,p,y,v,F,C):Ye(_,p,y,!0):(N&8&&d(h,""),$&16&&U(T,h,b,p,y,v,F,C))},He=(o,f,h,b,p,y,v,F,C)=>{o=o||je,f=f||je;const _=o.length,N=f.length,T=Math.min(_,N);let w;for(w=0;wN?Ye(o,p,y,!0,!1,T):U(f,h,b,p,y,v,F,C,T)},dt=(o,f,h,b,p,y,v,F,C)=>{let _=0;const N=f.length;let T=o.length-1,w=N-1;for(;_<=T&&_<=w;){const $=o[_],j=f[_]=C?we(f[_]):xe(f[_]);if(Ce($,j))O($,j,h,null,p,y,v,F,C);else break;_++}for(;_<=T&&_<=w;){const $=o[T],j=f[w]=C?we(f[w]):xe(f[w]);if(Ce($,j))O($,j,h,null,p,y,v,F,C);else break;T--,w--}if(_>T){if(_<=w){const $=w+1,j=$w)for(;_<=T;)Fe(o[_],p,y,!0),_++;else{const $=_,j=_,Y=new Map;for(_=j;_<=w;_++){const he=f[_]=C?we(f[_]):xe(f[_]);he.key!=null&&Y.set(he.key,_)}let K,ae=0;const ne=w-j+1;let _e=!1,de=0;const Xe=new Array(ne);for(_=0;_=ne){Fe(he,p,y,!0);continue}let ve;if(he.key!=null)ve=Y.get(he.key);else for(K=j;K<=w;K++)if(Xe[K-j]===0&&Ce(he,f[K])){ve=K;break}ve===void 0?Fe(he,p,y,!0):(Xe[ve-j]=_+1,ve>=de?de=ve:_e=!0,O(he,f[ve],h,null,p,y,v,F,C),ae++)}const Cs=_e?Hn(Xe):je;for(K=Cs.length-1,_=ne-1;_>=0;_--){const he=j+_,ve=f[he],Fs=he+1{const{el:y,type:v,transition:F,children:C,shapeFlag:_}=o;if(_&6){Ne(o.component.subTree,f,h,b);return}if(_&128){o.suspense.move(f,h,b);return}if(_&64){v.move(o,f,h,Qe);return}if(v===ge){l(y,f,h);for(let T=0;TF.enter(y),p);else{const{leave:T,delayLeave:w,afterLeave:$}=F,j=()=>l(y,f,h),Y=()=>{T(y,()=>{j(),$&&$()})};w?w(y,j,Y):Y()}else l(y,f,h)},Fe=(o,f,h,b=!1,p=!1)=>{const{type:y,props:v,ref:F,children:C,dynamicChildren:_,shapeFlag:N,patchFlag:T,dirs:w,cacheIndex:$}=o;if(T===-2&&(p=!1),F!=null&&Gt(F,null,h,o,!0),$!=null&&(f.renderCache[$]=void 0),N&256){f.ctx.deactivate(o);return}const j=N&1&&w,Y=!Ve(o);let K;if(Y&&(K=v&&v.onVnodeBeforeUnmount)&&ye(K,f,o),N&6)Ml(o.component,h,b);else{if(N&128){o.suspense.unmount(h,b);return}j&&$e(o,null,f,"beforeUnmount"),N&64?o.type.remove(o,f,h,Qe,b):_&&!_.hasOnce&&(y!==ge||T>0&&T&64)?Ye(_,f,h,!1,!0):(y===ge&&T&384||!p&&N&16)&&Ye(C,f,h),b&&ys(o)}(Y&&(K=v&&v.onVnodeUnmounted)||j)&&te(()=>{K&&ye(K,f,o),j&&$e(o,null,f,"unmounted")},h)},ys=o=>{const{type:f,el:h,anchor:b,transition:p}=o;if(f===ge){Pl(h,b);return}if(f===xt){B(o);return}const y=()=>{n(h),p&&!p.persisted&&p.afterLeave&&p.afterLeave()};if(o.shapeFlag&1&&p&&!p.persisted){const{leave:v,delayLeave:F}=p,C=()=>v(h,y);F?F(o.el,y,C):C()}else y()},Pl=(o,f)=>{let h;for(;o!==f;)h=m(o),n(o),o=h;n(f)},Ml=(o,f,h)=>{const{bum:b,scope:p,job:y,subTree:v,um:F,m:C,a:_}=o;Et(C),Et(_),b&&et(b),p.stop(),y&&(y.flags|=8,Fe(v,o,f,h)),F&&te(F,f),te(()=>{o.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&o.asyncDep&&!o.asyncResolved&&o.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},Ye=(o,f,h,b=!1,p=!1,y=0)=>{for(let v=y;v{if(o.shapeFlag&6)return ht(o.component.subTree);if(o.shapeFlag&128)return o.suspense.next();const f=m(o.anchor||o.el),h=f&&f[Xs];return h?m(h):f};let Lt=!1;const bs=(o,f,h)=>{o==null?f._vnode&&Fe(f._vnode,null,null,!0):O(f._vnode||null,o,f,null,null,null,h),f._vnode=o,Lt||(Lt=!0,vs(),Js(),Lt=!1)},Qe={p:O,um:Fe,m:Ne,r:ys,mt:oe,mc:U,pc:J,pbc:H,n:ht,o:e};let _s,xs;return{render:bs,hydrate:_s,createApp:Tn(bs,_s)}}function jt({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Le({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function wn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ds(e,t,s=!1){const l=e.children,n=t.children;if(R(l)&&R(n))for(let r=0;r>1,e[s[c]]0&&(t[l]=s[r-1]),s[r]=l)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function Cl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Cl(t)}function Et(e){if(e)for(let t=0;tbt(Nn);function Ar(e,t){return hs(e,null,t)}function _t(e,t,s){return hs(e,t,s)}function hs(e,t,s=q){const{immediate:l,deep:n,flush:r,once:i}=s,c=ie({},s),u=t&&l||!t&&r!=="post";let g;if(ot){if(r==="sync"){const x=$n();g=x.__watcherHandles||(x.__watcherHandles=[])}else if(!u){const x=()=>{};return x.stop=Ie,x.resume=Ie,x.pause=Ie,x}}const d=le;c.call=(x,A,O)=>Ee(x,d,A,O);let a=!1;r==="post"?c.scheduler=x=>{te(x,d&&d.suspense)}:r!=="sync"&&(a=!0,c.scheduler=(x,A)=>{A?x():rs(x)}),c.augmentJob=x=>{t&&(x.flags|=4),a&&(x.flags|=2,d&&(x.id=d.uid,x.i=d))};const m=wl(e,t,c);return ot&&(g?g.push(m):u&&m()),m}function Ln(e,t,s){const l=this.proxy,n=be(e)?e.includes(".")?Fl(l,e):()=>l[e]:e.bind(l,l);let r;L(t)?r=t:(r=t.handler,s=t);const i=at(this),c=hs(n,r.bind(l),s);return i(),c}function Fl(e,t){const s=t.split(".");return()=>{let l=e;for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ke(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function Un(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||q;let n=s;const r=t.startsWith("update:"),i=r&&Vn(l,t.slice(7));i&&(i.trim&&(n=s.map(d=>be(d)?d.trim():d)),i.number&&(n=s.map(Jl)));let c,u=l[c=Vt(t)]||l[c=Vt(ke(t))];!u&&r&&(u=l[c=Vt(ft(t))]),u&&Ee(u,e,6,n);const g=l[c+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ee(g,e,6,n)}}function vl(e,t,s=!1){const l=t.emitsCache,n=l.get(e);if(n!==void 0)return n;const r=e.emits;let i={},c=!1;if(!L(e)){const u=g=>{const d=vl(g,t,!0);d&&(c=!0,ie(i,d))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!c?(pe(e)&&l.set(e,null),null):(R(r)?r.forEach(u=>i[u]=null):ie(i,r),pe(e)&&l.set(e,i),i)}function Ht(e,t){return!e||!ns(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ft(t))||Q(e,t))}function Rt(e){const{type:t,vnode:s,proxy:l,withProxy:n,propsOptions:[r],slots:i,attrs:c,emit:u,render:g,renderCache:d,props:a,data:m,setupState:x,ctx:A,inheritAttrs:O}=e,W=Tt(e);let V,E;try{if(s.shapeFlag&4){const B=n||l,k=B;V=xe(g.call(k,B,d,a,x,m,A)),E=c}else{const B=t;V=xe(B.length>1?B(a,{attrs:c,slots:i,emit:u}):B(a,null)),E=t.props?c:Sn(c)}}catch(B){nt.length=0,ut(B,e,1),V=re(se)}let P=V;if(E&&O!==!1){const B=Object.keys(E),{shapeFlag:k}=P;B.length&&k&7&&(r&&B.some(Ws)&&(E=jn(E,r)),P=Oe(P,E,!1,!0))}return s.dirs&&(P=Oe(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(s.dirs):s.dirs),s.transition&&We(P,s.transition),V=P,Tt(W),V}function Dn(e,t=!0){let s;for(let l=0;l{let t;for(const s in e)(s==="class"||s==="style"||ns(s))&&((t||(t={}))[s]=e[s]);return t},jn=(e,t)=>{const s={};for(const l in e)(!Ws(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Rn(e,t,s){const{props:l,children:n,component:r}=e,{props:i,children:c,patchFlag:u}=t,g=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return l?Ms(l,i,g):!!i;if(u&8){const d=t.dynamicProps;for(let a=0;ae.__isSuspense;let zt=0;const Kn={name:"Suspense",__isSuspense:!0,process(e,t,s,l,n,r,i,c,u,g){if(e==null)Wn(t,s,l,n,r,i,c,u,g);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}qn(e,t,s,l,n,i,c,u,g)}},hydrate:Gn,normalize:Jn},Ir=Kn;function it(e,t){const s=e.props&&e.props[t];L(s)&&s()}function Wn(e,t,s,l,n,r,i,c,u){const{p:g,o:{createElement:d}}=u,a=d("div"),m=e.suspense=Tl(e,n,l,t,a,s,r,i,c,u);g(null,m.pendingBranch=e.ssContent,a,null,l,m,r,i),m.deps>0?(it(e,"onPending"),it(e,"onFallback"),g(null,e.ssFallback,t,s,l,null,r,i),Ke(m,e.ssFallback)):m.resolve(!1,!0)}function qn(e,t,s,l,n,r,i,c,{p:u,um:g,o:{createElement:d}}){const a=t.suspense=e.suspense;a.vnode=t,t.el=e.el;const m=t.ssContent,x=t.ssFallback,{activeBranch:A,pendingBranch:O,isInFallback:W,isHydrating:V}=a;if(O)a.pendingBranch=m,Ce(m,O)?(u(O,m,a.hiddenContainer,null,n,a,r,i,c),a.deps<=0?a.resolve():W&&(V||(u(A,x,s,l,n,null,r,i,c),Ke(a,x)))):(a.pendingId=zt++,V?(a.isHydrating=!1,a.activeBranch=O):g(O,n,a),a.deps=0,a.effects.length=0,a.hiddenContainer=d("div"),W?(u(null,m,a.hiddenContainer,null,n,a,r,i,c),a.deps<=0?a.resolve():(u(A,x,s,l,n,null,r,i,c),Ke(a,x))):A&&Ce(m,A)?(u(A,m,s,l,n,a,r,i,c),a.resolve(!0)):(u(null,m,a.hiddenContainer,null,n,a,r,i,c),a.deps<=0&&a.resolve()));else if(A&&Ce(m,A))u(A,m,s,l,n,a,r,i,c),Ke(a,m);else if(it(t,"onPending"),a.pendingBranch=m,m.shapeFlag&512?a.pendingId=m.component.suspenseId:a.pendingId=zt++,u(null,m,a.hiddenContainer,null,n,a,r,i,c),a.deps<=0)a.resolve();else{const{timeout:E,pendingId:P}=a;E>0?setTimeout(()=>{a.pendingId===P&&a.fallback(x)},E):E===0&&a.fallback(x)}}function Tl(e,t,s,l,n,r,i,c,u,g,d=!1){const{p:a,m,um:x,n:A,o:{parentNode:O,remove:W}}=g;let V;const E=Qn(e);E&&t&&t.pendingBranch&&(V=t.pendingId,t.deps++);const P=e.props?Wl(e.props.timeout):void 0,B=r,k={vnode:e,parent:t,parentComponent:s,namespace:i,container:l,hiddenContainer:n,deps:0,pendingId:zt++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(M=!1,D=!1){const{vnode:U,activeBranch:I,pendingBranch:H,pendingId:S,effects:X,parentComponent:ee,container:oe}=k;let Ae=!1;k.isHydrating?k.isHydrating=!1:M||(Ae=I&&H.transition&&H.transition.mode==="out-in",Ae&&(I.transition.afterLeave=()=>{S===k.pendingId&&(m(H,oe,r===B?A(I):r,0),Kt(X))}),I&&(O(I.el)===oe&&(r=A(I)),x(I,ee,k,!0)),Ae||m(H,oe,r,0)),Ke(k,H),k.pendingBranch=null,k.isInFallback=!1;let Z=k.parent,G=!1;for(;Z;){if(Z.pendingBranch){Z.effects.push(...X),G=!0;break}Z=Z.parent}!G&&!Ae&&Kt(X),k.effects=[],E&&t&&t.pendingBranch&&V===t.pendingId&&(t.deps--,t.deps===0&&!D&&t.resolve()),it(U,"onResolve")},fallback(M){if(!k.pendingBranch)return;const{vnode:D,activeBranch:U,parentComponent:I,container:H,namespace:S}=k;it(D,"onFallback");const X=A(U),ee=()=>{k.isInFallback&&(a(null,M,H,X,I,null,S,c,u),Ke(k,M))},oe=M.transition&&M.transition.mode==="out-in";oe&&(U.transition.afterLeave=ee),k.isInFallback=!0,x(U,I,null,!0),oe||ee()},move(M,D,U){k.activeBranch&&m(k.activeBranch,M,D,U),k.container=M},next(){return k.activeBranch&&A(k.activeBranch)},registerDep(M,D,U){const I=!!k.pendingBranch;I&&k.deps++;const H=M.vnode.el;M.asyncDep.catch(S=>{ut(S,M,0)}).then(S=>{if(M.isUnmounted||k.isUnmounted||k.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:X}=M;ss(M,S,!1),H&&(X.el=H);const ee=!H&&M.subTree.el;D(M,X,O(H||M.subTree.el),H?null:A(M.subTree),k,i,U),ee&&W(ee),gs(M,X.el),I&&--k.deps===0&&k.resolve()})},unmount(M,D){k.isUnmounted=!0,k.activeBranch&&x(k.activeBranch,s,M,D),k.pendingBranch&&x(k.pendingBranch,s,M,D)}};return k}function Gn(e,t,s,l,n,r,i,c,u){const g=t.suspense=Tl(t,l,s,e.parentNode,document.createElement("div"),null,n,r,i,c,!0),d=u(e,g.pendingBranch=t.ssContent,s,g,r,i);return g.deps===0&&g.resolve(!1,!0),d}function Jn(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=ws(l?s.default:s),e.ssFallback=l?ws(s.fallback):re(se)}function ws(e){let t;if(L(e)){const s=qe&&e._c;s&&(e._d=!1,It()),e=e(),s&&(e._d=!0,t=ue,kl())}return R(e)&&(e=Dn(e)),e=xe(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Yn(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):Kt(e)}function Ke(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let n=t.el;for(;!n&&t.component;)t=t.component.subTree,n=t.el;s.el=n,l&&l.subTree===s&&(l.vnode.el=n,gs(l,n))}function Qn(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ge=Symbol.for("v-fgt"),Nt=Symbol.for("v-txt"),se=Symbol.for("v-cmt"),xt=Symbol.for("v-stc"),nt=[];let ue=null;function It(e=!1){nt.push(ue=e?null:[])}function kl(){nt.pop(),ue=nt[nt.length-1]||null}let qe=1;function Hs(e){qe+=e,e<0&&ue&&(ue.hasOnce=!0)}function El(e){return e.dynamicChildren=qe>0?ue||je:null,kl(),qe>0&&ue&&ue.push(e),e}function Or(e,t,s,l,n,r){return El(Il(e,t,s,l,n,r,!0))}function es(e,t,s,l,n){return El(re(e,t,s,l,n,!0))}function De(e){return e?e.__v_isVNode===!0:!1}function Ce(e,t){return e.type===t.type&&e.key===t.key}const Al=({key:e})=>e??null,Ct=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||Ft(e)||L(e)?{i:z,r:e,k:t,f:!!s}:e:null);function Il(e,t=null,s=null,l=0,n=null,r=e===ge?0:1,i=!1,c=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Al(t),ref:t&&Ct(t),scopeId:Qs,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:l,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:z};return c?(ps(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=be(s)?8:16),qe>0&&!i&&ue&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&ue.push(u),u}const re=Xn;function Xn(e,t=null,s=null,l=0,n=null,r=!1){if((!e||e===fl)&&(e=se),De(e)){const c=Oe(e,t,!0);return s&&ps(c,s),qe>0&&!r&&ue&&(c.shapeFlag&6?ue[ue.indexOf(e)]=c:ue.push(c)),c.patchFlag=-2,c}if(fr(e)&&(e=e.__vccOpts),t){t=Zn(t);let{class:c,style:u}=t;c&&!be(c)&&(t.class=Ds(c)),pe(u)&&(Ls(u)&&!R(u)&&(u=ie({},u)),t.style=Ss(u))}const i=be(e)?1:At(e)?128:Zs(e)?64:pe(e)?4:L(e)?2:0;return Il(e,t,s,l,n,i,r,!0)}function Zn(e){return e?Ls(e)||gl(e)?ie({},e):e:null}function Oe(e,t,s=!1,l=!1){const{props:n,ref:r,patchFlag:i,children:c,transition:u}=e,g=t?er(n||{},t):n,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Al(g),ref:t&&t.ref?s&&r?R(r)?r.concat(Ct(t)):[r,Ct(t)]:Ct(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Oe(e.ssContent),ssFallback:e.ssFallback&&Oe(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&l&&We(d,u.clone(d)),d}function zn(e=" ",t=0){return re(Nt,null,e,t)}function Br(e,t){const s=re(xt,null,e);return s.staticCount=t,s}function Pr(e="",t=!1){return t?(It(),es(se,null,e)):re(se,null,e)}function xe(e){return e==null||typeof e=="boolean"?re(se):R(e)?re(ge,null,e.slice()):De(e)?we(e):re(Nt,null,String(e))}function we(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Oe(e)}function ps(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(R(t))s=16;else if(typeof t=="object")if(l&65){const n=t.default;n&&(n._c&&(n._d=!1),ps(e,n()),n._c&&(n._d=!0));return}else{s=32;const n=t._;!n&&!gl(t)?t._ctx=z:n===3&&z&&(z.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else L(t)?(t={default:t,_ctx:z},s=32):(t=String(t),l&64?(s=16,t=[zn(t)]):s=8);e.children=t,e.shapeFlag|=s}function er(...e){const t={};for(let s=0;sle||z;let Ot,ts;{const e=Pt(),t=(s,l)=>{let n;return(n=e[s])||(n=e[s]=[]),n.push(l),r=>{n.length>1?n.forEach(i=>i(r)):n[0](r)}};Ot=t("__VUE_INSTANCE_SETTERS__",s=>le=s),ts=t("__VUE_SSR_SETTERS__",s=>ot=s)}const at=e=>{const t=le;return Ot(e),e.scope.on(),()=>{e.scope.off(),Ot(t)}},Ns=()=>{le&&le.scope.off(),Ot(null)};function Ol(e){return e.vnode.shapeFlag&4}let ot=!1;function nr(e,t=!1,s=!1){t&&ts(t);const{props:l,children:n}=e.vnode,r=Ol(e);En(e,l,r,t),Bn(e,n,s);const i=r?rr(e,t):void 0;return t&&ts(!1),i}function rr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,yn);const{setup:l}=s;if(l){Ge();const n=e.setupContext=l.length>1?or(e):null,r=at(e),i=ct(l,e,0,[e.props,n]),c=js(i);if(Je(),r(),(c||e.sp)&&!Ve(e)&&nl(e),c){if(i.then(Ns,Ns),t)return i.then(u=>{ss(e,u,t)}).catch(u=>{ut(u,e,0)});e.asyncDep=i}else ss(e,i,t)}else Bl(e,t)}function ss(e,t,s){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Vs(t)),Bl(e,s)}let $s;function Bl(e,t,s){const l=e.type;if(!e.render){if(!t&&$s&&!l.render){const n=l.template||us(e).template;if(n){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:u}=l,g=ie(ie({isCustomElement:r,delimiters:c},i),u);l.render=$s(n,g)}}e.render=l.render||Ie}{const n=at(e);Ge();try{bn(e)}finally{Je(),n()}}}const ir={get(e,t){return Us(e,"get",""),e[t]}};function or(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ir),slots:e.slots,emit:e.emit,expose:t}}function $t(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vs(Ll(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in lt)return lt[s](e)},has(t,s){return s in t||s in lt}})):e.proxy}function ls(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function fr(e){return L(e)&&"__vccOpts"in e}const cr=(e,t)=>Hl(e,t,ot);function Mr(e,t,s){const l=arguments.length;return l===2?pe(t)&&!R(t)?De(t)?re(e,null,[t]):re(e,t):re(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&De(s)&&(s=[s]),re(e,t,s))}const ur="3.5.12";export{Or as A,mr as B,Zl as C,xr as D,es as E,ge as F,Cr as G,Pr as H,zn as I,Br as J,_r as K,se as L,on as M,fn as N,gr as O,Oe as P,ol as Q,vr as R,Ir as S,Nt as T,pr as U,kr as V,Fr as W,ln as a,re as b,Er as c,ms as d,Ee as e,Ar as f,ll as g,Mr as h,bt as i,cr as j,is as k,yr as l,br as m,Ql as n,il as o,un as p,os as q,qt as r,We as s,er as t,sn as u,De as v,_t as w,kn as x,Tr as y,It as z}; diff --git a/js/@vue_runtime-core@3.5.12-o4JnKqGq.js.gz b/js/@vue_runtime-core@3.5.12-o4JnKqGq.js.gz new file mode 100644 index 00000000..3167ae90 Binary files /dev/null and b/js/@vue_runtime-core@3.5.12-o4JnKqGq.js.gz differ diff --git a/js/@vue_runtime-core@3.5.6-CUaD_-7Q.js b/js/@vue_runtime-core@3.5.6-CUaD_-7Q.js deleted file mode 100644 index 20d25bf3..00000000 --- a/js/@vue_runtime-core@3.5.6-CUaD_-7Q.js +++ /dev/null @@ -1,5 +0,0 @@ -import{i as A,a as k}from"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import{a as g,b as m,c as S,g as z,E as j,n as T,d as N,e as y,f as h,h as B}from"./@vue_shared@3.5.6-6BrT-eFF.js";/** -* @vue/runtime-core v3.5.6 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let r=null,M=null;const P=t=>t.__isTeleport;function E(t,s){t.shapeFlag&6&&t.component?(t.transition=s,E(t.component.subTree,s)):t.shapeFlag&128?(t.ssContent.transition=s.clone(t.ssContent),t.ssFallback.transition=s.clone(t.ssFallback)):t.transition=s}const U=Symbol.for("v-ndc"),G={},V=t=>Object.getPrototypeOf(t)===G,L=t=>t.__isSuspense,I=Symbol.for("v-fgt"),Y=Symbol.for("v-txt"),D=Symbol.for("v-cmt"),H=Symbol.for("v-stc"),f=[];let u=null;function v(t=!1){f.push(u=t?null:[])}function K(){f.pop(),u=f[f.length-1]||null}function q(t){return t.dynamicChildren=u||j,K(),u&&u.push(t),t}function tt(t,s,l,a,n,e){return q(x(t,s,l,a,n,e,!0))}function w(t){return t?t.__v_isVNode===!0:!1}const O=({key:t})=>t??null,_=({ref:t,ref_key:s,ref_for:l})=>(typeof t=="number"&&(t=""+t),t!=null?g(t)||A(t)||S(t)?{i:r,r:t,k:s,f:!!l}:t:null);function x(t,s=null,l=null,a=0,n=null,e=t===I?0:1,i=!1,o=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:s,key:s&&O(s),ref:s&&_(s),scopeId:M,slotScopeIds:null,children:l,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:e,patchFlag:a,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:r};return o?(p(c,l),e&128&&t.normalize(c)):l&&(c.shapeFlag|=g(l)?8:16),!i&&u&&(c.patchFlag>0||e&6)&&c.patchFlag!==32&&u.push(c),c}const R=J;function J(t,s=null,l=null,a=0,n=null,e=!1){if((!t||t===U)&&(t=D),w(t)){const o=F(t,s,!0);return l&&p(o,l),!e&&u&&(o.shapeFlag&6?u[u.indexOf(t)]=o:u.push(o)),o.patchFlag=-2,o}if(Z(t)&&(t=t.__vccOpts),s){s=Q(s);let{class:o,style:c}=s;o&&!g(o)&&(s.class=T(o)),N(c)&&(k(c)&&!m(c)&&(c=y({},c)),s.style=h(c))}const i=g(t)?1:L(t)?128:P(t)?64:N(t)?4:S(t)?2:0;return x(t,s,l,a,n,i,e,!0)}function Q(t){return t?k(t)||V(t)?y({},t):t:null}function F(t,s,l=!1,a=!1){const{props:n,ref:e,patchFlag:i,children:o,transition:c}=t,C=s?X(n||{},s):n,b={__v_isVNode:!0,__v_skip:!0,type:t.type,props:C,key:C&&O(C),ref:s&&s.ref?l&&e?m(e)?e.concat(_(s)):[e,_(s)]:_(s):e,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:s&&t.type!==I?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:c,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&F(t.ssContent),ssFallback:t.ssFallback&&F(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return c&&a&&E(b,c.clone(b)),b}function W(t=" ",s=0){return R(Y,null,t,s)}function st(t,s){const l=R(H,null,t);return l.staticCount=s,l}function p(t,s){let l=0;const{shapeFlag:a}=t;if(s==null)s=null;else if(m(s))l=16;else if(typeof s=="object")if(a&65){const n=s.default;n&&(n._c&&(n._d=!1),p(t,n()),n._c&&(n._d=!0));return}else{l=32;const n=s._;!n&&!V(s)?s._ctx=r:n===3&&r&&(r.slots._===1?s._=1:(s._=2,t.patchFlag|=1024))}else S(s)?(s={default:s,_ctx:r},l=32):(s=String(s),a&64?(l=16,s=[W(s)]):l=8);t.children=s,t.shapeFlag|=l}function X(...t){const s={};for(let l=0;l{let n;return(n=t[l])||(n=t[l]=[]),n.push(a),e=>{n.length>1?n.forEach(i=>i(e)):n[0](e)}};s("__VUE_INSTANCE_SETTERS__",l=>l),s("__VUE_SSR_SETTERS__",l=>l)}function Z(t){return S(t)&&"__vccOpts"in t}export{st as a,tt as c,v as o}; diff --git a/js/@vue_runtime-core@3.5.6-CUaD_-7Q.js.gz b/js/@vue_runtime-core@3.5.6-CUaD_-7Q.js.gz deleted file mode 100644 index 229d9c5e..00000000 Binary files a/js/@vue_runtime-core@3.5.6-CUaD_-7Q.js.gz and /dev/null differ diff --git a/js/@vue_runtime-dom@3.5.12-CgYSV3BI.js b/js/@vue_runtime-dom@3.5.12-CgYSV3BI.js new file mode 100644 index 00000000..ff440269 --- /dev/null +++ b/js/@vue_runtime-dom@3.5.12-CgYSV3BI.js @@ -0,0 +1,5 @@ +import{h as _t,B as Dt,a as It,c as yt,u as $t,o as Ot,F as Rt,g as Ht,s as U,r as j,b as Bt,d as xt,e as Ft}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{e as D,a as Gt,b as ft,o as N,c as I,A as zt,s as Wt,H as qt,v as ut,D as dt,w as Kt,I as pt,i as Ut,J as jt}from"./@vue_shared@3.5.12--5_uv9t5.js";import{d as Vt}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";/** +* @vue/runtime-dom v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let H;const V=typeof window<"u"&&window.trustedTypes;if(V)try{H=V.createPolicy("vue",{createHTML:t=>t})}catch{}const mt=H?t=>H.createHTML(t):t=>t,Xt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1998/Math/MathML",g=typeof document<"u"?document:null,X=g&&g.createElement("template"),Zt={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const o=e==="svg"?g.createElementNS(Xt,t):e==="mathml"?g.createElementNS(Jt,t):n?g.createElement(t,{is:n}):g.createElement(t);return t==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:t=>g.createTextNode(t),createComment:t=>g.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>g.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,o,i){const r=n?n.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{X.innerHTML=mt(s==="svg"?`${t}`:s==="mathml"?`${t}`:t);const c=X.content;if(s==="svg"||s==="mathml"){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}e.insertBefore(c,n)}return[r?r.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},v="transition",w="animation",A=Symbol("_vtc"),ht={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},gt=D({},It,ht),Qt=t=>(t.displayName="Transition",t.props=gt,t),Pe=Qt((t,{slots:e})=>_t(Dt,vt(t),e)),T=(t,e=[])=>{I(t)?t.forEach(n=>n(...e)):t&&t(...e)},J=t=>t?I(t)?t.some(e=>e.length>1):t.length>1:!1;function vt(t){const e={};for(const a in t)a in ht||(e[a]=t[a]);if(t.css===!1)return e;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:u=i,appearActiveClass:l=r,appearToClass:f=c,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=t,E=Yt(o),At=E&&E[0],wt=E&&E[1],{onBeforeEnter:B,onEnter:x,onEnterCancelled:F,onLeave:G,onLeaveCancelled:Lt,onBeforeAppear:Nt=B,onAppear:Mt=x,onAppearCancelled:Pt=F}=e,y=(a,m,S)=>{C(a,m?f:c),C(a,m?l:r),S&&S()},z=(a,m)=>{a._isLeaving=!1,C(a,d),C(a,b),C(a,p),m&&m()},W=a=>(m,S)=>{const q=a?Mt:x,K=()=>y(m,a,S);T(q,[m,K]),Z(()=>{C(m,a?u:i),h(m,a?f:c),J(q)||Q(m,s,At,K)})};return D(e,{onBeforeEnter(a){T(B,[a]),h(a,i),h(a,r)},onBeforeAppear(a){T(Nt,[a]),h(a,u),h(a,l)},onEnter:W(!1),onAppear:W(!0),onLeave(a,m){a._isLeaving=!0;const S=()=>z(a,m);h(a,d),h(a,p),St(),Z(()=>{a._isLeaving&&(C(a,d),h(a,b),J(G)||Q(a,s,wt,S))}),T(G,[a,S])},onEnterCancelled(a){y(a,!1),T(F,[a])},onAppearCancelled(a){y(a,!0),T(Pt,[a])},onLeaveCancelled(a){z(a),T(Lt,[a])}})}function Yt(t){if(t==null)return null;if(Gt(t))return[$(t.enter),$(t.leave)];{const e=$(t);return[e,e]}}function $(t){return zt(t)}function h(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[A]||(t[A]=new Set)).add(e)}function C(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const n=t[A];n&&(n.delete(e),n.size||(t[A]=void 0))}function Z(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let kt=0;function Q(t,e,n,s){const o=t._endId=++kt,i=()=>{o===t._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:r,timeout:c,propCount:u}=Ct(t,e);if(!r)return s();const l=r+"end";let f=0;const d=()=>{t.removeEventListener(l,p),i()},p=b=>{b.target===t&&++f>=u&&d()};setTimeout(()=>{f(n[E]||"").split(", "),o=s(`${v}Delay`),i=s(`${v}Duration`),r=Y(o,i),c=s(`${w}Delay`),u=s(`${w}Duration`),l=Y(c,u);let f=null,d=0,p=0;e===v?r>0&&(f=v,d=r,p=i.length):e===w?l>0&&(f=w,d=l,p=u.length):(d=Math.max(r,l),f=d>0?r>l?v:w:null,p=f?f===v?i.length:u.length:0);const b=f===v&&/\b(transform|all)(,|$)/.test(s(`${v}Property`).toString());return{type:f,timeout:d,propCount:p,hasTransform:b}}function Y(t,e){for(;t.lengthk(n)+k(t[s])))}function k(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function St(){return document.body.offsetHeight}function te(t,e,n){const s=t[A];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const P=Symbol("_vod"),Tt=Symbol("_vsh"),_e={beforeMount(t,{value:e},{transition:n}){t[P]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):L(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),L(t,!0),s.enter(t)):s.leave(t,()=>{L(t,!1)}):L(t,e))},beforeUnmount(t,{value:e}){L(t,e)}};function L(t,e){t.style.display=e?t[P]:"none",t[Tt]=!e}const ee=Symbol(""),ne=/(^|;)\s*display\s*:/;function se(t,e,n){const s=t.style,o=N(n);let i=!1;if(n&&!o){if(e)if(N(e))for(const r of e.split(";")){const c=r.slice(0,r.indexOf(":")).trim();n[c]==null&&M(s,c,"")}else for(const r in e)n[r]==null&&M(s,r,"");for(const r in n)r==="display"&&(i=!0),M(s,r,n[r])}else if(o){if(e!==n){const r=s[ee];r&&(n+=";"+r),s.cssText=n,i=ne.test(n)}}else e&&t.removeAttribute("style");P in t&&(t[P]=i?s.display:"",t[Tt]&&(s.display="none"))}const tt=/\s*!important$/;function M(t,e,n){if(I(n))n.forEach(s=>M(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=oe(t,e);tt.test(n)?t.setProperty(dt(s),n.replace(tt,""),"important"):t[s]=n}}const et=["Webkit","Moz","ms"],O={};function oe(t,e){const n=O[e];if(n)return n;let s=ut(e);if(s!=="filter"&&s in t)return O[e]=s;s=Kt(s);for(let o=0;oR||(le.then(()=>R=0),R=Date.now());function ue(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ft(de(s,n.value),e,5,[s])};return n.value=t,n.attached=fe(),n}function de(t,e){if(I(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>o=>!o._stopped&&s&&s(o))}else return e}const at=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,pe=(t,e,n,s,o,i)=>{const r=o==="svg";e==="class"?te(t,s,r):e==="style"?se(t,n,s):Wt(e)?qt(e)||ae(t,e,n,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):me(t,e,s,r))?(ot(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&st(t,e,s,r,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!N(s))?ot(t,ut(e),s,i,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),st(t,e,s,r))};function me(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&at(e)&&ft(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return at(e)&&N(n)?!1:e in t}const bt=new WeakMap,Et=new WeakMap,_=Symbol("_moveCb"),ct=Symbol("_enterCb"),he=t=>(delete t.props.mode,t),ge=he({name:"TransitionGroup",props:D({},gt,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=xt(),s=$t();let o,i;return Ot(()=>{if(!o.length)return;const r=t.moveClass||`${t.name||"v"}-move`;if(!Te(o[0].el,n.vnode.el,r))return;o.forEach(ve),o.forEach(Ce);const c=o.filter(Se);St(),c.forEach(u=>{const l=u.el,f=l.style;h(l,r),f.transform=f.webkitTransform=f.transitionDuration="";const d=l[_]=p=>{p&&p.target!==l||(!p||/transform$/.test(p.propertyName))&&(l.removeEventListener("transitionend",d),l[_]=null,C(l,r))};l.addEventListener("transitionend",d)})}),()=>{const r=Vt(t),c=vt(r);let u=r.tag||Rt;if(o=[],i)for(let l=0;l{c.split(/\s+/).forEach(u=>u&&s.classList.remove(u))}),n.split(/\s+/).forEach(c=>c&&s.classList.add(c)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:r}=Ct(s);return i.removeChild(s),r}const be=D({patchProp:pe},Zt);let lt;function Ee(){return lt||(lt=yt(be))}const Ie=(...t)=>{const e=Ee().createApp(...t),{mount:n}=e;return e.mount=s=>{const o=we(s);if(!o)return;const i=e._component;!ft(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,Ae(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},e};function Ae(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function we(t){return N(t)?document.querySelector(t):t}export{Pe as T,De as a,Ie as c,_e as v}; diff --git a/js/@vue_runtime-dom@3.5.12-CgYSV3BI.js.gz b/js/@vue_runtime-dom@3.5.12-CgYSV3BI.js.gz new file mode 100644 index 00000000..05776f53 Binary files /dev/null and b/js/@vue_runtime-dom@3.5.12-CgYSV3BI.js.gz differ diff --git a/js/@vue_shared@3.5.12--5_uv9t5.js b/js/@vue_shared@3.5.12--5_uv9t5.js new file mode 100644 index 00000000..aa29c6bd --- /dev/null +++ b/js/@vue_shared@3.5.12--5_uv9t5.js @@ -0,0 +1,5 @@ +/** +* @vue/shared v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function d(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const E={},R=[],T=()=>{},B=()=>!1,P=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),z=t=>t.startsWith("onUpdate:"),M=Object.assign,U=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},u=Object.prototype.hasOwnProperty,x=(t,e)=>u.call(t,e),m=Array.isArray,V=t=>r(t)==="[object Map]",_=t=>r(t)==="[object Set]",F=t=>r(t)==="[object RegExp]",a=t=>typeof t=="function",s=t=>typeof t=="string",D=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object",I=t=>(l(t)||a(t))&&a(t.then)&&a(t.catch),h=Object.prototype.toString,r=t=>h.call(t),G=t=>r(t).slice(8,-1),H=t=>r(t)==="[object Object]",J=t=>s(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,K=d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),c=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},b=/-(\w)/g,L=c(t=>t.replace(b,(e,n)=>n?n.toUpperCase():"")),g=/\B([A-Z])/g,Y=c(t=>t.replace(g,"-$1").toLowerCase()),y=c(t=>t.charAt(0).toUpperCase()+t.slice(1)),$=c(t=>t?`on${y(t)}`:""),q=(t,e)=>!Object.is(t,e),W=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:o,value:n})},k=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Q=t=>{const e=s(t)?Number(t):NaN;return isNaN(e)?t:e};let p;const X=()=>p||(p=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function O(t){if(m(t)){const e={};for(let n=0;n{if(n){const o=n.split(A);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function S(t){let e="";if(s(t))e=t;else if(m(t))for(let n=0;nt.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),A=Object.assign,f=Array.isArray,C=t=>typeof t=="function",i=t=>typeof t=="string",E=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object";let c;const R=()=>c||(c=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function a(t){if(f(t)){const o={};for(let n=0;n{if(n){const s=n.split(g);s.length>1&&(o[s[0].trim()]=s[1].trim())}}),o}function y(t){let o="";if(i(t))o=t;else if(f(t))for(let n=0;n{s.forEach(m=>m()),s.length=0},f=(m,u,t,o)=>(m.addEventListener(u,t,o),()=>m.removeEventListener(u,t,o)),p=VueDemi.watch(()=>[b(r),E(a)],([m,u])=>{if(l(),!m)return;const t=H(u)?{...u}:u;s.push(...n.flatMap(o=>i.map(c=>f(m,o,c,t))))},{immediate:!0,flush:"post"}),v=()=>{p(),l()};return N(v),v}let T=!1;function ne(e,r,n={}){const{window:i=g,ignore:a=[],capture:s=!0,detectIframe:l=!1}=n;if(!i)return D;Q&&!T&&(T=!0,Array.from(i.document.body.children).forEach(t=>t.addEventListener("click",D)),i.document.documentElement.addEventListener("click",D));let f=!0;const p=t=>a.some(o=>{if(typeof o=="string")return Array.from(i.document.querySelectorAll(o)).some(c=>c===t.target||t.composedPath().includes(c));{const c=b(o);return c&&(t.target===c||t.composedPath().includes(c))}}),m=[V(i,"click",t=>{const o=b(e);if(!(!o||o===t.target||t.composedPath().includes(o))){if(t.detail===0&&(f=!p(t)),!f){f=!0;return}r(t)}},{passive:!0,capture:s}),V(i,"pointerdown",t=>{const o=b(e);f=!p(t)&&!!(o&&!t.composedPath().includes(o))},{passive:!0}),l&&V(i,"blur",t=>{setTimeout(()=>{var o;const c=b(e);((o=i.document.activeElement)==null?void 0:o.tagName)==="IFRAME"&&!(c!=null&&c.contains(i.document.activeElement))&&r(t)},0)})].filter(Boolean);return()=>m.forEach(t=>t())}function Y(){const e=VueDemi.ref(!1),r=VueDemi.getCurrentInstance();return r&&VueDemi.onMounted(()=>{e.value=!0},VueDemi.isVue2?null:r),e}function W(e){const r=Y();return VueDemi.computed(()=>(r.value,!!e()))}function q(e,r={}){const{window:n=g}=r,i=W(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const s=VueDemi.ref(!1),l=v=>{s.value=v.matches},f=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",l):a.removeListener(l))},p=VueDemi.watchEffect(()=>{i.value&&(f(),a=n.matchMedia(E(e)),"addEventListener"in a?a.addEventListener("change",l):a.addListener(l),s.value=a.matches)});return N(()=>{p(),f(),a=void 0}),s}const M=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_="__vueuse_ssr_handlers__",K=$();function $(){return _ in M||(M[_]=M[_]||{}),M[_]}function G(e,r){return K[e]||r}function U(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const X={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},C="vueuse-storage";function re(e,r,n,i={}){var a;const{flush:s="pre",deep:l=!0,listenToStorageChanges:f=!0,writeDefaults:p=!0,mergeDefaults:v=!1,shallow:m,window:u=g,eventFilter:t,onError:o=d=>{console.error(d)},initOnMounted:c}=i,y=(m?VueDemi.shallowRef:VueDemi.ref)(r);if(!n)try{n=G("getDefaultStorage",()=>{var d;return(d=g)==null?void 0:d.localStorage})()}catch(d){o(d)}if(!n)return y;const h=E(r),O=U(h),A=(a=i.serializer)!=null?a:X[O],{pause:P,resume:L}=k(y,()=>J(y.value),{flush:s,deep:l,eventFilter:t});u&&f&&z(()=>{V(u,"storage",I),V(u,C,x),c&&I()}),c||I();function R(d,w){u&&u.dispatchEvent(new CustomEvent(C,{detail:{key:e,oldValue:d,newValue:w,storageArea:n}}))}function J(d){try{const w=n.getItem(e);if(d==null)R(w,null),n.removeItem(e);else{const S=A.write(d);w!==S&&(n.setItem(e,S),R(w,S))}}catch(w){o(w)}}function j(d){const w=d?d.newValue:n.getItem(e);if(w==null)return p&&h!=null&&n.setItem(e,A.write(h)),h;if(!d&&v){const S=A.read(w);return typeof v=="function"?v(S,h):O==="object"&&!Array.isArray(S)?{...h,...S}:S}else return typeof w!="string"?w:A.read(w)}function I(d){if(!(d&&d.storageArea!==n)){if(d&&d.key==null){y.value=h;return}if(!(d&&d.key!==e)){P();try{(d==null?void 0:d.newValue)!==A.write(y.value)&&(y.value=j(d))}catch(w){o(w)}finally{d?VueDemi.nextTick(L):L()}}}}function x(d){I(d.detail)}return y}function Z(e,r,n={}){const{window:i=g,...a}=n;let s;const l=W(()=>i&&"MutationObserver"in i),f=()=>{s&&(s.disconnect(),s=void 0)},p=VueDemi.computed(()=>{const t=E(e),o=(Array.isArray(t)?t:[t]).map(b).filter(F);return new Set(o)}),v=VueDemi.watch(()=>p.value,t=>{f(),l.value&&i&&t.size&&(s=new MutationObserver(r),t.forEach(o=>s.observe(o,a)))},{immediate:!0,flush:"post"}),m=()=>s==null?void 0:s.takeRecords(),u=()=>{f(),v()};return N(u),{isSupported:l,stop:u,takeRecords:m}}function ee(e,r,n={}){const{window:i=g,...a}=n;let s;const l=W(()=>i&&"ResizeObserver"in i),f=()=>{s&&(s.disconnect(),s=void 0)},p=VueDemi.computed(()=>Array.isArray(e)?e.map(u=>b(u)):[b(e)]),v=VueDemi.watch(p,u=>{if(f(),l.value&&i){s=new ResizeObserver(r);for(const t of u)t&&s.observe(t,a)}},{immediate:!0,flush:"post"}),m=()=>{f(),v()};return N(m),{isSupported:l,stop:m}}function ie(e,r={}){const{reset:n=!0,windowResize:i=!0,windowScroll:a=!0,immediate:s=!0}=r,l=VueDemi.ref(0),f=VueDemi.ref(0),p=VueDemi.ref(0),v=VueDemi.ref(0),m=VueDemi.ref(0),u=VueDemi.ref(0),t=VueDemi.ref(0),o=VueDemi.ref(0);function c(){const y=b(e);if(!y){n&&(l.value=0,f.value=0,p.value=0,v.value=0,m.value=0,u.value=0,t.value=0,o.value=0);return}const h=y.getBoundingClientRect();l.value=h.height,f.value=h.bottom,p.value=h.left,v.value=h.right,m.value=h.top,u.value=h.width,t.value=h.x,o.value=h.y}return ee(e,c),VueDemi.watch(()=>b(e),y=>!y&&c()),Z(e,c,{attributeFilter:["style","class"]}),a&&V("scroll",c,{capture:!0,passive:!0}),i&&V("resize",c,{passive:!0}),z(()=>{s&&c()}),{height:l,bottom:f,left:p,right:v,top:m,width:u,x:t,y:o,update:c}}function oe(e,r,n={}){const{root:i,rootMargin:a="0px",threshold:s=.1,window:l=g,immediate:f=!0}=n,p=W(()=>l&&"IntersectionObserver"in l),v=VueDemi.computed(()=>{const c=E(e);return(Array.isArray(c)?c:[c]).map(b).filter(F)});let m=D;const u=VueDemi.ref(f),t=p.value?VueDemi.watch(()=>[v.value,b(i),u.value],([c,y])=>{if(m(),!u.value||!c.length)return;const h=new IntersectionObserver(r,{root:b(y),rootMargin:a,threshold:s});c.forEach(O=>O&&h.observe(O)),m=()=>{h.disconnect(),m=D}},{immediate:f,flush:"post"}):D,o=()=>{m(),t(),u.value=!1};return N(o),{isSupported:p,isActive:u,pause(){m(),u.value=!1},resume(){u.value=!0},stop:o}}function se(e={}){const{window:r=g,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:s=!0}=e,l=VueDemi.ref(n),f=VueDemi.ref(i),p=()=>{r&&(s?(l.value=r.innerWidth,f.value=r.innerHeight):(l.value=r.document.documentElement.clientWidth,f.value=r.document.documentElement.clientHeight))};if(p(),z(p),V("resize",p,{passive:!0}),a){const v=q("(orientation: portrait)");VueDemi.watch(v,()=>p())}return{width:l,height:f}}export{oe as a,ee as b,ie as c,re as d,se as e,ne as o,V as u}; diff --git a/js/@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js.gz b/js/@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js.gz deleted file mode 100644 index 95f005eb..00000000 Binary files a/js/@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js.gz and /dev/null differ diff --git a/js/@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js b/js/@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js new file mode 100644 index 00000000..8123bac5 --- /dev/null +++ b/js/@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js @@ -0,0 +1 @@ +import{t as I,w as q,a as F,i as Q,n as M,b as Y,c as x,d as W,e as K}from"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import{s as $,k as b}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{n as G,w as _,f as U,j as R,k as X,d as Z}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";const A=Q?window:void 0;function S(e){var r;const n=I(e);return(r=n==null?void 0:n.$el)!=null?r:n}function N(...e){let r,n,o,u;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,u]=e,r=A):[r,n,o,u]=e,!r)return M;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],d=()=>{i.forEach(a=>a()),i.length=0},l=(a,s,m,t)=>(a.addEventListener(s,m,t),()=>a.removeEventListener(s,m,t)),v=_(()=>[S(r),I(u)],([a,s])=>{if(d(),!a)return;const m=Y(s)?{...s}:s;i.push(...n.flatMap(t=>o.map(c=>l(a,t,c,m))))},{immediate:!0,flush:"post"}),p=()=>{v(),d()};return W(p),p}let V=!1;function de(e,r,n={}){const{window:o=A,ignore:u=[],capture:i=!0,detectIframe:d=!1}=n;if(!o)return M;K&&!V&&(V=!0,Array.from(o.document.body.children).forEach(t=>t.addEventListener("click",M)),o.document.documentElement.addEventListener("click",M));let l=!0;const v=t=>I(u).some(c=>{if(typeof c=="string")return Array.from(o.document.querySelectorAll(c)).some(h=>h===t.target||t.composedPath().includes(h));{const h=S(c);return h&&(t.target===h||t.composedPath().includes(h))}}),p=t=>{const c=S(e);if(!(!c||c===t.target||t.composedPath().includes(c))){if(t.detail===0&&(l=!v(t)),!l){l=!0;return}r(t)}};let a=!1;const s=[N(o,"click",t=>{a||(a=!0,setTimeout(()=>{a=!1},0),p(t))},{passive:!0,capture:i}),N(o,"pointerdown",t=>{const c=S(e);l=!v(t)&&!!(c&&!t.composedPath().includes(c))},{passive:!0}),d&&N(o,"blur",t=>{setTimeout(()=>{var c;const h=S(e);((c=o.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&r(t)},0)})].filter(Boolean);return()=>s.forEach(t=>t())}function ee(){const e=b(!1),r=Z();return r&&X(()=>{e.value=!0},r),e}function C(e){const r=ee();return R(()=>(r.value,!!e()))}function te(e,r,n={}){const{window:o=A,...u}=n;let i;const d=C(()=>o&&"MutationObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},v=R(()=>{const m=I(e),t=(Array.isArray(m)?m:[m]).map(S).filter(x);return new Set(t)}),p=_(()=>v.value,m=>{l(),d.value&&m.size&&(i=new MutationObserver(r),m.forEach(t=>i.observe(t,u)))},{immediate:!0,flush:"post"}),a=()=>i==null?void 0:i.takeRecords(),s=()=>{p(),l()};return W(s),{isSupported:d,stop:s,takeRecords:a}}function ne(e,r={}){const{window:n=A}=r,o=C(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let u;const i=b(!1),d=p=>{i.value=p.matches},l=()=>{u&&("removeEventListener"in u?u.removeEventListener("change",d):u.removeListener(d))},v=U(()=>{o.value&&(l(),u=n.matchMedia(I(e)),"addEventListener"in u?u.addEventListener("change",d):u.addListener(d),i.value=u.matches)});return W(()=>{v(),l(),u=void 0}),i}const L=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},T="__vueuse_ssr_handlers__",re=oe();function oe(){return T in L||(L[T]=L[T]||{}),L[T]}function se(e,r){return re[e]||r}function ie(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ae={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},j="vueuse-storage";function pe(e,r,n,o={}){var u;const{flush:i="pre",deep:d=!0,listenToStorageChanges:l=!0,writeDefaults:v=!0,mergeDefaults:p=!1,shallow:a,window:s=A,eventFilter:m,onError:t=f=>{console.error(f)},initOnMounted:c}=o,h=(a?$:b)(r);if(!n)try{n=se("getDefaultStorage",()=>{var f;return(f=A)==null?void 0:f.localStorage})()}catch(f){t(f)}if(!n)return h;const w=I(r),O=ie(w),y=(u=o.serializer)!=null?u:ae[O],{pause:D,resume:P}=q(h,()=>H(h.value),{flush:i,deep:d,eventFilter:m});s&&l&&F(()=>{n instanceof Storage?N(s,"storage",z):N(s,j,B),c&&z()}),c||z();function k(f,g){if(s){const E={key:e,oldValue:f,newValue:g,storageArea:n};s.dispatchEvent(n instanceof Storage?new StorageEvent("storage",E):new CustomEvent(j,{detail:E}))}}function H(f){try{const g=n.getItem(e);if(f==null)k(g,null),n.removeItem(e);else{const E=y.write(f);g!==E&&(n.setItem(e,E),k(g,E))}}catch(g){t(g)}}function J(f){const g=f?f.newValue:n.getItem(e);if(g==null)return v&&w!=null&&n.setItem(e,y.write(w)),w;if(!f&&p){const E=y.read(g);return typeof p=="function"?p(E,w):O==="object"&&!Array.isArray(E)?{...w,...E}:E}else return typeof g!="string"?g:y.read(g)}function z(f){if(!(f&&f.storageArea!==n)){if(f&&f.key==null){h.value=w;return}if(!(f&&f.key!==e)){D();try{(f==null?void 0:f.newValue)!==y.write(h.value)&&(h.value=J(f))}catch(g){t(g)}finally{f?G(P):P()}}}}function B(f){z(f.detail)}return h}function ue(e,r,n={}){const{window:o=A,...u}=n;let i;const d=C(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},v=R(()=>{const s=I(e);return Array.isArray(s)?s.map(m=>S(m)):[S(s)]}),p=_(v,s=>{if(l(),d.value&&o){i=new ResizeObserver(r);for(const m of s)m&&i.observe(m,u)}},{immediate:!0,flush:"post"}),a=()=>{l(),p()};return W(a),{isSupported:d,stop:a}}function me(e,r={}){const{reset:n=!0,windowResize:o=!0,windowScroll:u=!0,immediate:i=!0,updateTiming:d="sync"}=r,l=b(0),v=b(0),p=b(0),a=b(0),s=b(0),m=b(0),t=b(0),c=b(0);function h(){const O=S(e);if(!O){n&&(l.value=0,v.value=0,p.value=0,a.value=0,s.value=0,m.value=0,t.value=0,c.value=0);return}const y=O.getBoundingClientRect();l.value=y.height,v.value=y.bottom,p.value=y.left,a.value=y.right,s.value=y.top,m.value=y.width,t.value=y.x,c.value=y.y}function w(){d==="sync"?h():d==="next-frame"&&requestAnimationFrame(()=>h())}return ue(e,w),_(()=>S(e),O=>!O&&w()),te(e,w,{attributeFilter:["style","class"]}),u&&N("scroll",w,{capture:!0,passive:!0}),o&&N("resize",w,{passive:!0}),F(()=>{i&&w()}),{height:l,bottom:v,left:p,right:a,top:s,width:m,x:t,y:c,update:w}}function ve(e,r,n={}){const{root:o,rootMargin:u="0px",threshold:i=0,window:d=A,immediate:l=!0}=n,v=C(()=>d&&"IntersectionObserver"in d),p=R(()=>{const c=I(e);return(Array.isArray(c)?c:[c]).map(S).filter(x)});let a=M;const s=b(l),m=v.value?_(()=>[p.value,S(o),s.value],([c,h])=>{if(a(),!s.value||!c.length)return;const w=new IntersectionObserver(r,{root:S(h),rootMargin:u,threshold:i});c.forEach(O=>O&&w.observe(O)),a=()=>{w.disconnect(),a=M}},{immediate:l,flush:"post"}):M,t=()=>{a(),m(),s.value=!1};return W(t),{isSupported:v,isActive:s,pause(){a(),s.value=!1},resume(){s.value=!0},stop:t}}function he(e={}){const{window:r=A,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:u=!0,includeScrollbar:i=!0,type:d="inner"}=e,l=b(n),v=b(o),p=()=>{r&&(d==="outer"?(l.value=r.outerWidth,v.value=r.outerHeight):i?(l.value=r.innerWidth,v.value=r.innerHeight):(l.value=r.document.documentElement.clientWidth,v.value=r.document.documentElement.clientHeight))};if(p(),F(p),N("resize",p,{passive:!0}),u){const a=ne("(orientation: portrait)");_(a,()=>p())}return{width:l,height:v}}export{ve as a,ue as b,me as c,he as d,pe as e,de as o,N as u}; diff --git a/js/@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js.gz b/js/@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js.gz new file mode 100644 index 00000000..aac23280 Binary files /dev/null and b/js/@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js.gz differ diff --git a/js/@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js b/js/@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js deleted file mode 100644 index e4a7a077..00000000 --- a/js/@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js +++ /dev/null @@ -1 +0,0 @@ -function P(e){return VueDemi.getCurrentScope()?(VueDemi.onScopeDispose(e),!0):!1}function g(e){return typeof e=="function"?e():VueDemi.unref(e)}const b=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const x=e=>e!=null,y=Object.prototype.toString,k=e=>y.call(e)==="[object Object]",w=()=>{},C=O();function O(){var e,t;return b&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function F(e,t){function n(...i){return new Promise((o,u)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(o).catch(u)})}return n}const h=e=>e();function S(...e){let t=0,n,i=!0,o=w,u,r,a,s,c;!VueDemi.isRef(e[0])&&typeof e[0]=="object"?{delay:r,trailing:a=!0,leading:s=!0,rejectOnCancel:c=!1}=e[0]:[r,a=!0,s=!0,c=!1]=e;const f=()=>{n&&(clearTimeout(n),n=void 0,o(),o=w)};return D=>{const l=g(r),p=Date.now()-t,d=()=>u=D();return f(),l<=0?(t=Date.now(),d()):(p>l&&(s||!i)?(t=Date.now(),d()):a&&(u=new Promise((m,V)=>{o=c?V:m,n=setTimeout(()=>{t=Date.now(),i=!0,m(d()),f()},Math.max(0,l-p))})),!s&&!n&&(n=setTimeout(()=>i=!0,l)),i=!1,u)}}function T(e=h){const t=VueDemi.ref(!0);function n(){t.value=!1}function i(){t.value=!0}const o=(...u)=>{t.value&&e(...u)};return{isActive:VueDemi.readonly(t),pause:n,resume:i,eventFilter:o}}VueDemi.isVue3,VueDemi.isVue3,VueDemi.isVue3;function j(e){return VueDemi.getCurrentInstance()}function v(e,t,n={}){const{eventFilter:i=h,...o}=n;return VueDemi.watch(e,F(i,t),o)}function I(e,t,n={}){const{eventFilter:i,...o}=n,{eventFilter:u,pause:r,resume:a,isActive:s}=T(i);return{stop:v(e,t,{...o,eventFilter:u}),pause:r,resume:a,isActive:s}}function M(e,t=!0,n){j()?VueDemi.onMounted(e,n):t?e():VueDemi.nextTick(e)}function W(e,t,n){const i=VueDemi.watch(e,(...o)=>(VueDemi.nextTick(()=>i()),t(...o)),n);return i}function G(e,t,n={}){const{throttle:i=0,trailing:o=!0,leading:u=!0,...r}=n;return v(e,t,{...r,eventFilter:S(i,o,u)})}export{P as a,M as b,b as c,x as d,C as e,W as f,G as g,k as i,w as n,g as t,I as w}; diff --git a/js/@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js.gz b/js/@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js.gz deleted file mode 100644 index d1f70dcd..00000000 Binary files a/js/@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js.gz and /dev/null differ diff --git a/js/@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js b/js/@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js new file mode 100644 index 00000000..a1043471 --- /dev/null +++ b/js/@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js @@ -0,0 +1 @@ +import{u as F,k as S,l as T,n as j,o as A,a as P}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{k,n as v,w as g,d as D}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";function N(t){return j()?(A(t),!0):!1}function x(t){return typeof t=="function"?t():F(t)}const C=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const q=t=>t!=null,I=Object.prototype.toString,z=t=>I.call(t)==="[object Object]",h=()=>{},B=M();function M(){var t,e;return C&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function W(t,e){function n(...o){return new Promise((i,r)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(i).catch(r)})}return n}const m=t=>t();function G(...t){let e=0,n,o=!0,i=h,r,s,u,a,l;!P(t[0])&&typeof t[0]=="object"?{delay:s,trailing:u=!0,leading:a=!0,rejectOnCancel:l=!1}=t[0]:[s,u=!0,a=!0,l=!1]=t;const d=()=>{n&&(clearTimeout(n),n=void 0,i(),i=h)};return y=>{const c=x(s),p=Date.now()-e,f=()=>r=y();return d(),c<=0?(e=Date.now(),f()):(p>c&&(a||!o)?(e=Date.now(),f()):u&&(r=new Promise((w,O)=>{i=l?O:w,n=setTimeout(()=>{e=Date.now(),o=!0,w(f()),d()},Math.max(0,c-p))})),!a&&!n&&(n=setTimeout(()=>o=!0,c)),o=!1,r)}}function L(t=m){const e=S(!0);function n(){e.value=!1}function o(){e.value=!0}const i=(...r)=>{e.value&&t(...r)};return{isActive:T(e),pause:n,resume:o,eventFilter:i}}function R(t){return D()}function b(t,e,n={}){const{eventFilter:o=m,...i}=n;return g(t,W(o,e),i)}function H(t,e,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:s,resume:u,isActive:a}=L(o);return{stop:b(t,e,{...i,eventFilter:r}),pause:s,resume:u,isActive:a}}function J(t,e=!0,n){R()?k(t,n):e?t():v(t)}function K(t,e,n){const o=g(t,(...i)=>(v(()=>o()),e(...i)),n);return o}function Q(t,e,n={}){const{throttle:o=0,trailing:i=!0,leading:r=!0,...s}=n;return b(t,e,{...s,eventFilter:G(o,i,r)})}export{J as a,z as b,q as c,N as d,B as e,K as f,Q as g,C as i,h as n,x as t,H as w}; diff --git a/js/@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js.gz b/js/@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js.gz new file mode 100644 index 00000000..3d06ac09 Binary files /dev/null and b/js/@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js.gz differ diff --git a/js/BarcodeDemo-BXJroooI.js b/js/BarcodeDemo-BXJroooI.js new file mode 100644 index 00000000..e47bc45a --- /dev/null +++ b/js/BarcodeDemo-BXJroooI.js @@ -0,0 +1 @@ +import{z as i}from"./hooks-Dx3WCPci.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{b as e,N as a,c as l,ad as p,D as s,M as n,a as c}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as F,b as t,I as u}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as m}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const mt=F({name:"BarcodeDemo",setup(){const r={width:4},o=m(!1),d=m("RayTemplate");return{baseOptions:r,loading:o,text:d}},render(){const{baseOptions:r}=this;return t(c,{cols:2,xGap:12,yGap:12},{default:()=>[t(e,{span:2},{default:()=>[t(a,{title:"详细配置项说明"},{default:()=>[u("点击查看详细配置项:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[u("js-barcode options")]),u("。")]})]}),t(e,{span:1},{default:()=>[t(a,{title:"基础条形码"},{default:()=>[t(i,{text:"RayTemplate",options:{...r}},null)]})]}),t(e,{span:1},{default:()=>[t(a,{title:"自定义颜色条形码"},{default:()=>[t(i,{text:"RayTemplate",options:{...r,lineColor:"red"}},null)]})]}),t(e,{span:1},{default:()=>[t(a,{title:"pharmacode 模式"},{default:()=>[t(l,{vertical:!0},{default:()=>[t(p,{type:"warning",title:"注意"},{default:()=>[u("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[u("pharmacode")]),u("。")]}),t(i,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(a,{title:"codabar 模式"},{default:()=>[t(l,{vertical:!0},{default:()=>[t(p,{type:"warning",title:"注意"},{default:()=>[u("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[u("codabar")]),u("。")]}),t(i,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(a,{title:"有状态的条形码"},{default:()=>[t(l,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[t(s,{value:this.loading,"onUpdate:value":o=>this.loading=o,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),t(i,{text:"RayTemplate",loading:this.loading},null)]})]})]}),t(e,{span:1},{default:()=>[t(a,{title:"watchText 主动监听 text 变化"},{default:()=>[t(l,{vertical:!0},{default:()=>[t(n,{value:this.text,"onUpdate:value":o=>this.text=o},null),t(i,{text:this.text,watchText:!0},null)]})]})]})]})}});export{mt as default}; diff --git a/js/BarcodeDemo-BXJroooI.js.gz b/js/BarcodeDemo-BXJroooI.js.gz new file mode 100644 index 00000000..a7a7b5ae Binary files /dev/null and b/js/BarcodeDemo-BXJroooI.js.gz differ diff --git a/js/BarcodeDemo-ChWYvWgI.js b/js/BarcodeDemo-ChWYvWgI.js deleted file mode 100644 index 945cc2b0..00000000 --- a/js/BarcodeDemo-ChWYvWgI.js +++ /dev/null @@ -1 +0,0 @@ -import{z as e}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const T=Vue.defineComponent({name:"BarcodeDemo",setup(){const u={width:4},t=Vue.ref(!1),a=Vue.ref("RayTemplate");return{baseOptions:u,loading:t,text:a}},render(){const{baseOptions:u}=this;return Vue.createVNode(naive.NGrid,{cols:2,xGap:12,yGap:12},{default:()=>[Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"详细配置项说明"},{default:()=>[Vue.createTextVNode("点击查看详细配置项:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[Vue.createTextVNode("js-barcode options")]),Vue.createTextVNode("。")]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"基础条形码"},{default:()=>[Vue.createVNode(e,{text:"RayTemplate",options:{...u}},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自定义颜色条形码"},{default:()=>[Vue.createVNode(e,{text:"RayTemplate",options:{...u,lineColor:"red"}},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"pharmacode 模式"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{type:"warning",title:"注意"},{default:()=>[Vue.createTextVNode("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[Vue.createTextVNode("pharmacode")]),Vue.createTextVNode("。")]}),Vue.createVNode(e,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"codabar 模式"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{type:"warning",title:"注意"},{default:()=>[Vue.createTextVNode("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[Vue.createTextVNode("codabar")]),Vue.createTextVNode("。")]}),Vue.createVNode(e,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"有状态的条形码"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.loading,"onUpdate:value":t=>this.loading=t,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),Vue.createVNode(e,{text:"RayTemplate",loading:this.loading},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"watchText 主动监听 text 变化"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.text,"onUpdate:value":t=>this.text=t},null),Vue.createVNode(e,{text:this.text,watchText:!0},null)]})]})]})]})}});export{T as default}; diff --git a/js/BarcodeDemo-ChWYvWgI.js.gz b/js/BarcodeDemo-ChWYvWgI.js.gz deleted file mode 100644 index 241f2670..00000000 Binary files a/js/BarcodeDemo-ChWYvWgI.js.gz and /dev/null differ diff --git a/js/TablePro-Bvcdca-s.js b/js/TablePro-Bvcdca-s.js new file mode 100644 index 00000000..83f74592 --- /dev/null +++ b/js/TablePro-Bvcdca-s.js @@ -0,0 +1 @@ +import{P as Z,Q as ee,J as te,G as ae,U as oe,V as ne,I as ue,K as se,W as re,X as le,t as _,Y as ie}from"./hooks-Dx3WCPci.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as L}from"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import{a as ce}from"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{l as M,b as e,t as Y,v as V,j as me,f as pe,k as de,F as fe,I as m}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{f as Q,u as ge}from"./utils-CozJMALc.js";import{o as ye}from"./lodash-es@4.17.21-CeZG2a4n.js";import"./instance-nIExQa9a.js";import{M as H}from"./mockjs@1.1.0-CxlURkif.js";import{ah as U,M as J,H as be,ai as Re,c as q,Q as g,N as z,a5 as W,aj as X,am as $,v as ke}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{k as E}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./axios@1.7.5-C8DqakIB.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function Ce(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!V(t)}const he=M({name:"RCollapse",props:Object.assign({},{...Z,open:{type:Boolean,default:!0},cols:{type:Number,default:4}},ee),render(){const{$slots:t,$props:d}=this,{labelPlacement:y,showFeedback:p,...f}=d;return e(ae,Y(f,{labelPlacement:"top",showFeedback:!1}),{default:()=>[e(te,f,Ce(t)?t:{default:()=>[t]})]})}}),Te={...ye(oe,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object,default:()=>({})},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0}},Pe=Te;function ve(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!V(t)}const Ee=M({name:"RTablePro",props:Pe,setup(t){const[d,{clearFilters:y,clearSorter:p,downloadCsv:f,filters:l,page:s,scrollTo:k,sort:C,print:F,filter:h}]=ne(),[w,{getPage:D,getPageSize:S,setCallback:B,setItemCount:N,resetPagination:T,getItemCount:n}]=ue(void 0,{prefix:a=>`共 ${a.itemCount} 条`}),b=me(()=>t.request),A=()=>({getItemCount:n,getPage:D,getPageSize:S}),P=()=>{const{onTablePaginationUpdate:a}=t;a&&Q(a,A())},j=a=>{const r=Object.assign({},t.requestConfig,a),{params:o,formatRangeTime:u}=r;return u!=null&&u.length&&o&&u.forEach(K=>{const{key:v,target:c}=K,i=o[v];if(i&&(c!=null&&c.length)){const[x,R]=i;o[c[0]]=x,o[c[1]]=R}else o[v]=null,o[c[0]]=null,o[c[1]]=null}),Object.assign({},o,{page:D(),pageSize:S()})},G=a=>{var o;T();const r=j(a);(o=b.value)==null||o.call(b,r)},I=a=>{var o;const r=j(a);(o=b.value)==null||o.call(b,r)};return pe(()=>{N(t.paginationCount),B(()=>{const{manual:a}=t;a||I(),P()})}),de(()=>{const{onRegister:a}=t;a&&Q(a,{getTablePagination:A,runTableRequest:G,clearFilters:y,clearSorter:p,downloadCsv:f,filters:l,page:s,scrollTo:k,sort:C,print:F,filter:h,getCurrentTableRequestParams:j})}),{register:d,paginationRef:w}},render(){const{register:t,$props:d,paginationRef:y,$slots:p}=this,{onRegister:f,showPagination:l,...s}=d;return e(se,Y(s,{onRegister:t,pagination:l?y:void 0}),ve(p)?p:{default:()=>[p]})}});function Fe(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!V(t)}const vt=M({name:"TableProDemo",setup(){const{format:t}=ie(),[d,{runTableRequest:y,getCurrentTableRequestParams:p,print:f,downloadCsv:l}]=re(),s=E([]),k=[{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:a=>t(a.signTimeStart)+" ~ "+t(a.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:a=>a.tags.map(o=>e(ke,{type:"info",bordered:!1,style:"margin-right: 6px"},Fe(o)?o:{default:()=>[o]}))},{title:"Remark",key:"remark"}],C=E(0),F=E({}),h=E((()=>{const r=[],o=L().valueOf();for(let u=0;u<30;u++)r.push({key:ge(),name:H.Random.cname(),age:u+20,address:H.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:u%2===0?"success":"error",statusText:u%2===0?"在线":"离线",signTimeStart:L(o).add(u*2,"year").valueOf(),signTimeEnd:L(o).add(u+5,"day").valueOf()});return r})()),w=E({pagination:!0,manual:!1}),[D,{checkedRowKeysBind:S,getKeys:B,getRows:N,clearKey:T,clearAll:n,selectKey:b}]=le(s,k,{rowKey:"key",onChange:(a,r,o)=>{}}),A=E(!0),P=a=>a==null,j=a=>new Promise(r=>{const{page:o=1,pageSize:u=10,name:O,status:K,signTimeStart:v,signTimeEnd:c}=a||{};let i=h.value;const x=h.value.length;O&&(i=i.filter(R=>R.name.includes(O))),K&&(i=i.filter(R=>R.status===K)),v&&c&&(i=i.filter(R=>R.signTimeStart>=v&&R.signTimeEnd<=c)),i=i.slice((o-1)*u,o*u),setTimeout(()=>{r({code:0,data:i,total:P(K)&&P(O)&&(P(v)||P(c))?x:i.length,message:"success",page:o,pageSize:u})},1e3)}),{run:G,loading:I}=ce(j,{onSuccess:a=>{const{data:r,total:o}=a;s.value=r,C.value=o}});return{tableDataRef:s,baseColumns:k,itemCountRef:C,loadingGetPersonList:I,runGetPersonList:G,conditionRef:F,radioRef:w,runTableRequest:y,tableProRegister:d,print:f,downloadCsv:l,checkedRowKeysBind:S,checkedRowKeys:D,getKeys:B,getRows:N,clearKey:T,clearAll:n,collapseRef:A,selectKey:b}},render(){const{tableDataRef:t,baseColumns:d,itemCountRef:y,loadingGetPersonList:p,runGetPersonList:f,conditionRef:l,radioRef:s,runTableRequest:k,tableProRegister:C,print:F,downloadCsv:h,checkedRowKeysBind:w,getKeys:D,getRows:S,clearKey:B,clearAll:N,selectKey:T}=this;return e(q,{vertical:!0},{default:()=>[e(he,{open:this.collapseRef},{default:()=>e(fe,null,[e(U,{label:"用户名"},{default:()=>[e(J,{value:l.name,"onUpdate:value":n=>l.name=n,clearable:!0},null)]}),e(U,{label:"状态"},{default:()=>[e(be,{value:l.status,"onUpdate:value":n=>l.status=n,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),e(U,{label:"登陆时间"},{default:()=>[e(Re,{type:"datetimerange",value:l.RangeTime,"onUpdate:value":n=>l.RangeTime=n,clearable:!0},null)]}),e(U,{label:"演示折叠的条件框"},{default:()=>[e(J,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>e(q,null,{default:()=>[e(g,{type:"primary",onClick:()=>k(),loading:p},{default:()=>[m("查询")]})]}),collapse:n=>n?e(g,{onClick:()=>this.collapseRef=!0,secondary:!0},{default:()=>"受控展开",icon:()=>e(_,{name:"dark",size:"18"},null)}):e(g,{onClick:()=>this.collapseRef=!1,secondary:!0},{default:()=>"受控收起",icon:()=>e(_,{name:"light",size:"18"},null)})}),e(z,{title:"常用高级拓展功能"},{default:()=>[e(q,null,{default:()=>[e(W,{label:"分页"},{default:()=>[e(X,{value:s.pagination,"onUpdate:value":n=>s.pagination=n},{default:()=>[e($,{value:!0},{default:()=>[m("显示分页")]}),e($,{value:!1},{default:()=>[m("隐藏分页")]})]})]}),e(W,{label:"自动更新"},{default:()=>[e(X,{value:s.manual,"onUpdate:value":n=>s.manual=n},{default:()=>[e($,{value:!1},{default:()=>[m("自动更新")]}),e($,{value:!0},{default:()=>[m("取消自动")]})]})]})]})]}),e(z,{title:"useTablePro 部分方法"},{default:()=>[e(q,null,{default:()=>[e(g,{type:"primary",onClick:()=>F()},{default:()=>[m("打印")]}),e(g,{type:"primary",onClick:()=>h()},{default:()=>[m("下载 csv")]})]})]}),e(z,{title:"useCheckedRowKeys 部分方法"},{default:()=>[e(q,null,{default:()=>[e(g,{type:"primary",onClick:()=>{const n=t[1].key;T(n)}},{default:()=>[m("选中第二行")]}),e(g,{type:"primary",onClick:()=>{const n=t[1].key;B(n)}},{default:()=>[m("取消选中第二行")]}),e(g,{type:"primary",onClick:()=>{t==null||t.forEach(n=>T(n.key))}},{default:()=>[m("选中当前页面所有行")]}),e(g,{type:"primary",onClick:()=>{N()}},{default:()=>[m("取消所有已选中行")]})]})]}),e(Ee,{onRegister:C,data:t,columns:d,loading:p,paginationCount:y,request:f,requestConfig:{params:l,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:s.pagination,manual:s.manual,rowKey:n=>n.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":n=>this.checkedRowKeys=n,onUpdateCheckedRowKeys:w},null)]})}});export{vt as default}; diff --git a/js/TablePro-Bvcdca-s.js.gz b/js/TablePro-Bvcdca-s.js.gz new file mode 100644 index 00000000..9b64aa17 Binary files /dev/null and b/js/TablePro-Bvcdca-s.js.gz differ diff --git a/js/TablePro-QnGoLe7d.js b/js/TablePro-QnGoLe7d.js deleted file mode 100644 index fb68e602..00000000 --- a/js/TablePro-QnGoLe7d.js +++ /dev/null @@ -1 +0,0 @@ -import{P as O,Q as G,G as I,J as U,U as $,V as L,I as z,K as M,W as _,X as J,t as K,Y as Q}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import{a as W}from"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{f as q,u as X}from"./utils-DvxnuKiq.js";import{o as Y}from"./lodash-es@4.17.21-BALnwRTu.js";import"./instance-Mlryd73B.js";import{M as A}from"./mockjs@1.1.0-CxlURkif.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";function H(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Z=Vue.defineComponent({name:"RCollapse",props:Object.assign({},{...O,open:{type:Boolean,default:!0},cols:{type:Number,default:4}},G),render(){const{$slots:e,$props:d}=this,{labelPlacement:p,showFeedback:c,...m}=d;return Vue.createVNode(I,Vue.mergeProps(m,{labelPlacement:"top",showFeedback:!1}),{default:()=>[Vue.createVNode(U,m,H(e)?e:{default:()=>[e]})]})}}),ee={...Y($,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object,default:()=>({})},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0}},te=ee;function ae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ue=Vue.defineComponent({name:"RTablePro",props:te,setup(e){const[d,{clearFilters:p,clearSorter:c,downloadCsv:m,filters:i,page:n,scrollTo:g,sort:N,print:b,filter:y}]=L(),[T,{getPage:k,getPageSize:P,setCallback:h,setItemCount:F,resetPagination:v,getItemCount:u}]=z(void 0,{prefix:t=>`共 ${t.itemCount} 条`}),V=Vue.computed(()=>e.request),w=()=>({getItemCount:u,getPage:k,getPageSize:P}),R=()=>{const{onTablePaginationUpdate:t}=e;t&&q(t,w())},E=t=>{const r=Object.assign({},e.requestConfig,t),{params:a,formatRangeTime:o}=r;return o!=null&&o.length&&a&&o.forEach(B=>{const{key:C,target:l}=B,s=a[C];if(s&&(l!=null&&l.length)){const[j,f]=s;a[l[0]]=j,a[l[1]]=f}else a[C]=null,a[l[0]]=null,a[l[1]]=null}),Object.assign({},a,{page:k(),pageSize:P()})},x=t=>{var a;v();const r=E(t);(a=V.value)==null||a.call(V,r)},S=t=>{var a;const r=E(t);(a=V.value)==null||a.call(V,r)};return Vue.watchEffect(()=>{F(e.paginationCount),h(()=>{const{manual:t}=e;t||S(),R()})}),Vue.onMounted(()=>{const{onRegister:t}=e;t&&q(t,{getTablePagination:w,runTableRequest:x,clearFilters:p,clearSorter:c,downloadCsv:m,filters:i,page:n,scrollTo:g,sort:N,print:b,filter:y,getCurrentTableRequestParams:E})}),{register:d,paginationRef:T}},render(){const{register:e,$props:d,paginationRef:p,$slots:c}=this,{onRegister:m,showPagination:i,...n}=d;return Vue.createVNode(M,Vue.mergeProps(n,{onRegister:e,pagination:i?p:void 0}),ae(c)?c:{default:()=>[c]})}});function oe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Be=Vue.defineComponent({name:"TableProDemo",setup(){const{format:e}=Q(),[d,{runTableRequest:p,getCurrentTableRequestParams:c,print:m,downloadCsv:i}]=_(),n=Vue.ref([]),g=[{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:t=>e(t.signTimeStart)+" ~ "+e(t.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(a=>Vue.createVNode(naive.NTag,{type:"info",bordered:!1,style:"margin-right: 6px"},oe(a)?a:{default:()=>[a]}))},{title:"Remark",key:"remark"}],N=Vue.ref(0),b=Vue.ref({}),y=Vue.ref((()=>{const r=[],a=dayjs().valueOf();for(let o=0;o<30;o++)r.push({key:X(),name:A.Random.cname(),age:o+20,address:A.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:o%2===0?"success":"error",statusText:o%2===0?"在线":"离线",signTimeStart:dayjs(a).add(o*2,"year").valueOf(),signTimeEnd:dayjs(a).add(o+5,"day").valueOf()});return r})()),T=Vue.ref({pagination:!0,manual:!1}),[k,{checkedRowKeysBind:P,getKeys:h,getRows:F,clearKey:v,clearAll:u,selectKey:V}]=J(n,g,{rowKey:"key",onChange:(t,r,a)=>{}}),w=Vue.ref(!0),R=t=>t==null,E=t=>new Promise(r=>{const{page:a=1,pageSize:o=10,name:D,status:B,signTimeStart:C,signTimeEnd:l}=t||{};let s=y.value;const j=y.value.length;D&&(s=s.filter(f=>f.name.includes(D))),B&&(s=s.filter(f=>f.status===B)),C&&l&&(s=s.filter(f=>f.signTimeStart>=C&&f.signTimeEnd<=l)),s=s.slice((a-1)*o,a*o),setTimeout(()=>{r({code:0,data:s,total:R(B)&&R(D)&&(R(C)||R(l))?j:s.length,message:"success",page:a,pageSize:o})},1e3)}),{run:x,loading:S}=W(E,{onSuccess:t=>{const{data:r,total:a}=t;n.value=r,N.value=a}});return{tableDataRef:n,baseColumns:g,itemCountRef:N,loadingGetPersonList:S,runGetPersonList:x,conditionRef:b,radioRef:T,runTableRequest:p,tableProRegister:d,print:m,downloadCsv:i,checkedRowKeysBind:P,checkedRowKeys:k,getKeys:h,getRows:F,clearKey:v,clearAll:u,collapseRef:w,selectKey:V}},render(){const{tableDataRef:e,baseColumns:d,itemCountRef:p,loadingGetPersonList:c,runGetPersonList:m,conditionRef:i,radioRef:n,runTableRequest:g,tableProRegister:N,print:b,downloadCsv:y,checkedRowKeysBind:T,getKeys:k,getRows:P,clearKey:h,clearAll:F,selectKey:v}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(Z,{open:this.collapseRef},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NFormItemGi,{label:"用户名"},{default:()=>[Vue.createVNode(naive.NInput,{value:i.name,"onUpdate:value":u=>i.name=u,clearable:!0},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"状态"},{default:()=>[Vue.createVNode(naive.NSelect,{value:i.status,"onUpdate:value":u=>i.status=u,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"登陆时间"},{default:()=>[Vue.createVNode(naive.NDatePicker,{type:"datetimerange",value:i.RangeTime,"onUpdate:value":u=>i.RangeTime=u,clearable:!0},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"演示折叠的条件框"},{default:()=>[Vue.createVNode(naive.NInput,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>g(),loading:c},{default:()=>[Vue.createTextVNode("查询")]})]}),collapse:u=>u?Vue.createVNode(naive.NButton,{onClick:()=>this.collapseRef=!0,secondary:!0},{default:()=>"受控展开",icon:()=>Vue.createVNode(K,{name:"dark",size:"18"},null)}):Vue.createVNode(naive.NButton,{onClick:()=>this.collapseRef=!1,secondary:!0},{default:()=>"受控收起",icon:()=>Vue.createVNode(K,{name:"light",size:"18"},null)})}),Vue.createVNode(naive.NCard,{title:"常用高级拓展功能"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NFormItem,{label:"分页"},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:n.pagination,"onUpdate:value":u=>n.pagination=u},{default:()=>[Vue.createVNode(naive.NRadioButton,{value:!0},{default:()=>[Vue.createTextVNode("显示分页")]}),Vue.createVNode(naive.NRadioButton,{value:!1},{default:()=>[Vue.createTextVNode("隐藏分页")]})]})]}),Vue.createVNode(naive.NFormItem,{label:"自动更新"},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:n.manual,"onUpdate:value":u=>n.manual=u},{default:()=>[Vue.createVNode(naive.NRadioButton,{value:!1},{default:()=>[Vue.createTextVNode("自动更新")]}),Vue.createVNode(naive.NRadioButton,{value:!0},{default:()=>[Vue.createTextVNode("取消自动")]})]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useTablePro 部分方法"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>b()},{default:()=>[Vue.createTextVNode("打印")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>y()},{default:()=>[Vue.createTextVNode("下载 csv")]})]})]}),Vue.createVNode(naive.NCard,{title:"useCheckedRowKeys 部分方法"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{const u=e[1].key;v(u)}},{default:()=>[Vue.createTextVNode("选中第二行")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{const u=e[1].key;h(u)}},{default:()=>[Vue.createTextVNode("取消选中第二行")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{e==null||e.forEach(u=>v(u.key))}},{default:()=>[Vue.createTextVNode("选中当前页面所有行")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{F()}},{default:()=>[Vue.createTextVNode("取消所有已选中行")]})]})]}),Vue.createVNode(ue,{onRegister:N,data:e,columns:d,loading:c,paginationCount:p,request:m,requestConfig:{params:i,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:n.pagination,manual:n.manual,rowKey:u=>u.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":u=>this.checkedRowKeys=u,onUpdateCheckedRowKeys:T},null)]})}});export{Be as default}; diff --git a/js/TablePro-QnGoLe7d.js.gz b/js/TablePro-QnGoLe7d.js.gz deleted file mode 100644 index 240d3406..00000000 Binary files a/js/TablePro-QnGoLe7d.js.gz and /dev/null differ diff --git a/js/async-validator@4.2.5-DKvM95Vc.js b/js/async-validator@4.2.5-DKvM95Vc.js new file mode 100644 index 00000000..1af9bf69 --- /dev/null +++ b/js/async-validator@4.2.5-DKvM95Vc.js @@ -0,0 +1,12 @@ +function R(){return R=Object.assign?Object.assign.bind():function(i){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function M(i,e,r){return re()?M=Reflect.construct.bind():M=function(n,f,a){var s=[null];s.push.apply(s,f);var d=Function.bind.apply(n,s),q=new d;return a&&T(q,a.prototype),q},M.apply(null,arguments)}function te(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function J(i){var e=typeof Map=="function"?new Map:void 0;return J=function(t){if(t===null||!te(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return M(t,arguments,U(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),T(n,t)},J(i)}var ne=/%[sdj%]/g,ie=function(){};function W(i){if(!i||!i.length)return null;var e={};return i.forEach(function(r){var t=r.field;e[t]=e[t]||[],e[t].push(r)}),e}function F(i){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t=f)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return s}});return a}return i}function ae(i){return i==="string"||i==="url"||i==="hex"||i==="email"||i==="date"||i==="pattern"}function h(i,e){return!!(i==null||e==="array"&&Array.isArray(i)&&!i.length||ae(e)&&typeof i=="string"&&!i)}function fe(i,e,r){var t=[],n=0,f=i.length;function a(s){t.push.apply(t,s||[]),n++,n===f&&r(t)}i.forEach(function(s){e(s,a)})}function G(i,e,r){var t=0,n=i.length;function f(a){if(a&&a.length){r(a);return}var s=t;t=t+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},D={integer:function(e){return D.number(e)&&parseInt(e,10)===e},float:function(e){return D.number(e)&&!D.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!D.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(X.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(pe())},hex:function(e){return typeof e=="string"&&!!e.match(X.hex)}},ye=function(e,r,t,n,f){if(e.required&&r===void 0){C(e,r,t,n,f);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?D[s](r)||n.push(F(f.messages.types[s],e.fullField,e.type)):s&&typeof r!==e.type&&n.push(F(f.messages.types[s],e.fullField,e.type))},ge=function(e,r,t,n,f){var a=typeof e.len=="number",s=typeof e.min=="number",d=typeof e.max=="number",q=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=r,m=null,l=typeof r=="number",O=typeof r=="string",x=Array.isArray(r);if(l?m="number":O?m="string":x&&(m="array"),!m)return!1;x&&(v=r.length),O&&(v=r.replace(q,"_").length),a?v!==e.len&&n.push(F(f.messages[m].len,e.fullField,e.len)):s&&!d&&ve.max?n.push(F(f.messages[m].max,e.fullField,e.max)):s&&d&&(ve.max)&&n.push(F(f.messages[m].range,e.fullField,e.min,e.max))},N="enum",ve=function(e,r,t,n,f){e[N]=Array.isArray(e[N])?e[N]:[],e[N].indexOf(r)===-1&&n.push(F(f.messages[N],e.fullField,e[N].join(", ")))},he=function(e,r,t,n,f){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(r)||n.push(F(f.messages.pattern.mismatch,e.fullField,r,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(r)||n.push(F(f.messages.pattern.mismatch,e.fullField,r,e.pattern))}}},c={required:C,whitespace:ce,type:ye,range:ge,enum:ve,pattern:he},me=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r,"string")&&!e.required)return t();c.required(e,r,n,a,f,"string"),h(r,"string")||(c.type(e,r,n,a,f),c.range(e,r,n,a,f),c.pattern(e,r,n,a,f),e.whitespace===!0&&c.whitespace(e,r,n,a,f))}t(a)},le=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&c.type(e,r,n,a,f)}t(a)},qe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(r===""&&(r=void 0),h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&(c.type(e,r,n,a,f),c.range(e,r,n,a,f))}t(a)},we=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&c.type(e,r,n,a,f)}t(a)},be=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),h(r)||c.type(e,r,n,a,f)}t(a)},Fe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&(c.type(e,r,n,a,f),c.range(e,r,n,a,f))}t(a)},xe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&(c.type(e,r,n,a,f),c.range(e,r,n,a,f))}t(a)},Oe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(r==null&&!e.required)return t();c.required(e,r,n,a,f,"array"),r!=null&&(c.type(e,r,n,a,f),c.range(e,r,n,a,f))}t(a)},Ee=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&c.type(e,r,n,a,f)}t(a)},Ae="enum",Pe=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f),r!==void 0&&c[Ae](e,r,n,a,f)}t(a)},je=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r,"string")&&!e.required)return t();c.required(e,r,n,a,f),h(r,"string")||c.pattern(e,r,n,a,f)}t(a)},_e=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r,"date")&&!e.required)return t();if(c.required(e,r,n,a,f),!h(r,"date")){var d;r instanceof Date?d=r:d=new Date(r),c.type(e,d,n,a,f),d&&c.range(e,d.getTime(),n,a,f)}}t(a)},Re=function(e,r,t,n,f){var a=[],s=Array.isArray(r)?"array":typeof r;c.required(e,r,n,a,f,s),t(a)},B=function(e,r,t,n,f){var a=e.type,s=[],d=e.required||!e.required&&n.hasOwnProperty(e.field);if(d){if(h(r,a)&&!e.required)return t();c.required(e,r,n,s,f,a),h(r,a)||c.type(e,r,n,s,f)}t(s)},Ne=function(e,r,t,n,f){var a=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(h(r)&&!e.required)return t();c.required(e,r,n,a,f)}t(a)},S={string:me,method:le,number:qe,boolean:we,regexp:be,integer:Fe,float:xe,array:Oe,object:Ee,enum:Pe,pattern:je,date:_e,url:B,hex:B,email:B,required:Re,any:Ne};function Z(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var I=Z(),L=function(){function i(r){this.rules=null,this._messages=I,this.define(r)}var e=i.prototype;return e.define=function(t){var n=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(f){var a=t[f];n.rules[f]=Array.isArray(a)?a:[a]})},e.messages=function(t){return t&&(this._messages=Q(Z(),t)),this._messages},e.validate=function(t,n,f){var a=this;n===void 0&&(n={}),f===void 0&&(f=function(){});var s=t,d=n,q=f;if(typeof d=="function"&&(q=d,d={}),!this.rules||Object.keys(this.rules).length===0)return q&&q(null,s),Promise.resolve(s);function v(u){var g=[],o={};function A(y){if(Array.isArray(y)){var b;g=(b=g).concat.apply(b,y)}else g.push(y)}for(var p=0;pt=>{const n=tt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),N=e=>(e=e.toLowerCase(),t=>W(t)===e),$=e=>t=>typeof t===e,{isArray:U}=Array,q=$("undefined");function nt(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Le=N("ArrayBuffer");function rt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Le(e.buffer),t}const st=$("string"),A=$("function"),Be=$("number"),K=e=>e!==null&&typeof e=="object",ot=e=>e===!0||e===!1,z=e=>{if(W(e)!=="object")return!1;const t=fe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},it=N("Date"),at=N("File"),ct=N("Blob"),ut=N("FileList"),lt=e=>K(e)&&A(e.pipe),ft=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=W(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},dt=N("URLSearchParams"),[pt,ht,mt,yt]=["ReadableStream","Request","Response","Headers"].map(N),wt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function H(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),U(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const F=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ue=e=>!q(e)&&e!==F;function re(){const{caseless:e}=Ue(this)&&this||{},t={},n=(r,s)=>{const o=e&&De(t,s)||s;z(t[o])&&z(r)?t[o]=re(t[o],r):z(r)?t[o]=re({},r):U(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(H(t,(s,o)=>{n&&A(s)?e[o]=Fe(s,n):e[o]=s},{allOwnKeys:r}),e),Et=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Rt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},St=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&fe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},gt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ot=e=>{if(!e)return null;if(U(e))return e;let t=e.length;if(!Be(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Tt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fe(Uint8Array)),At=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},xt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ct=N("HTMLFormElement"),Nt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),we=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Pt=N("RegExp"),ke=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};H(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},_t=e=>{ke(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ft=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return U(e)?r(e):r(String(e).split(t)),n},Lt=()=>{},Bt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Y="abcdefghijklmnopqrstuvwxyz",be="0123456789",je={DIGIT:be,ALPHA:Y,ALPHA_DIGIT:Y+Y.toUpperCase()+be},Dt=(e=16,t=je.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Ut(e){return!!(e&&A(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const kt=e=>{const t=new Array(10),n=(r,s)=>{if(K(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=U(r)?[]:{};return H(r,(i,c)=>{const f=n(i,s+1);!q(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},jt=N("AsyncFunction"),qt=e=>e&&(K(e)||A(e))&&A(e.then)&&A(e.catch),qe=((e,t)=>e?setImmediate:t?((n,r)=>(F.addEventListener("message",({source:s,data:o})=>{s===F&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),F.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(F.postMessage)),Ht=typeof queueMicrotask<"u"?queueMicrotask.bind(F):typeof process<"u"&&process.nextTick||qe,a={isArray:U,isArrayBuffer:Le,isBuffer:nt,isFormData:ft,isArrayBufferView:rt,isString:st,isNumber:Be,isBoolean:ot,isObject:K,isPlainObject:z,isReadableStream:pt,isRequest:ht,isResponse:mt,isHeaders:yt,isUndefined:q,isDate:it,isFile:at,isBlob:ct,isRegExp:Pt,isFunction:A,isStream:lt,isURLSearchParams:dt,isTypedArray:Tt,isFileList:ut,forEach:H,merge:re,extend:bt,trim:wt,stripBOM:Et,inherits:Rt,toFlatObject:St,kindOf:W,kindOfTest:N,endsWith:gt,toArray:Ot,forEachEntry:At,matchAll:xt,isHTMLForm:Ct,hasOwnProperty:we,hasOwnProp:we,reduceDescriptors:ke,freezeMethods:_t,toObjectSet:Ft,toCamelCase:Nt,noop:Lt,toFiniteNumber:Bt,findKey:De,global:F,isContextDefined:Ue,ALPHABET:je,generateString:Dt,isSpecCompliantForm:Ut,toJSONObject:kt,isAsyncFn:jt,isThenable:qt,setImmediate:qe,asap:Ht};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const He=m.prototype,Ie={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ie[e]={value:e}});Object.defineProperties(m,Ie);Object.defineProperty(He,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(He);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const It=null;function se(e){return a.isPlainObject(e)||a.isArray(e)}function Me(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ee(e,t,n){return e?e.concat(t).map(function(s,o){return s=Me(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Mt(e){return a.isArray(e)&&!e.some(se)}const zt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function G(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,d){return!a.isUndefined(d[y])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(a.isDate(h))return h.toISOString();if(!f&&a.isBlob(h))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(h)||a.isTypedArray(h)?f&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function l(h,y,d){let g=h;if(h&&!d&&typeof h=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),h=JSON.stringify(h);else if(a.isArray(h)&&Mt(h)||(a.isFileList(h)||a.endsWith(y,"[]"))&&(g=a.toArray(h)))return y=Me(y),g.forEach(function(w,S){!(a.isUndefined(w)||w===null)&&t.append(i===!0?Ee([y],S,o):i===null?y:y+"[]",u(w))}),!1}return se(h)?!0:(t.append(Ee(d,y,o),u(h)),!1)}const p=[],b=Object.assign(zt,{defaultVisitor:l,convertValue:u,isVisitable:se});function E(h,y){if(!a.isUndefined(h)){if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(h),a.forEach(h,function(g,T){(!(a.isUndefined(g)||g===null)&&s.call(t,g,a.isString(T)?T.trim():T,y,b))===!0&&E(g,y?y.concat(T):[T])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function de(e,t){this._pairs=[],e&&G(e,this,t)}const ze=de.prototype;ze.append=function(t,n){this._pairs.push([t,n])};ze.toString=function(t){const n=t?function(r){return t.call(this,r,Re)}:Re;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Jt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Je(e,t,n){if(!t)return e;const r=n&&n.encode||Jt,s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new de(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Se{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ve={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Vt=typeof URLSearchParams<"u"?URLSearchParams:de,vt=typeof FormData<"u"?FormData:null,Wt=typeof Blob<"u"?Blob:null,$t={isBrowser:!0,classes:{URLSearchParams:Vt,FormData:vt,Blob:Wt},protocols:["http","https","file","blob","url","data"]},pe=typeof window<"u"&&typeof document<"u",oe=typeof navigator=="object"&&navigator||void 0,Kt=pe&&(!oe||["ReactNative","NativeScript","NS"].indexOf(oe.product)<0),Gt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Xt=pe&&window.location.href||"http://localhost",Qt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pe,hasStandardBrowserEnv:Kt,hasStandardBrowserWebWorkerEnv:Gt,navigator:oe,origin:Xt},Symbol.toStringTag,{value:"Module"})),x={...Qt,...$t};function Zt(e,t){return G(e,new x.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return x.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Yt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function en(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=en(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Yt(r),s,n,0)}),n}return null}function tn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const I={transitional:Ve,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(ve(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Zt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return G(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),tn(t)):t}],transformResponse:[function(t){const n=this.transitional||I.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:x.classes.FormData,Blob:x.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{I.headers[e]={}});const nn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rn=e=>{const t={};let n,r,s;return e&&e.split(` +`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&nn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ge=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function J(e){return e===!1||e==null?e:a.isArray(e)?e.map(J):String(e)}function sn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const on=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ee(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function an(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function cn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class O{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,u){const l=j(f);if(!l)throw new Error("header name must be a non-empty string");const p=a.findKey(s,l);(!p||s[p]===void 0||u===!0||u===void 0&&s[p]!==!1)&&(s[p||f]=J(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!on(t))i(rn(t),n);else if(a.isHeaders(t))for(const[c,f]of t.entries())o(f,c,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=j(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return sn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ee(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=j(i),i){const c=a.findKey(r,i);c&&(!n||ee(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ee(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=J(s),delete n[o];return}const c=t?an(o):String(o).trim();c!==o&&delete n[o],n[c]=J(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ge]=this[ge]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=j(i);r[c]||(cn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}O.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(O.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(O);function te(e,t){const n=this||I,r=t||n,s=O.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function We(e){return!!(e&&e.__CANCEL__)}function k(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});function $e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function un(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ln(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=r[o];i||(i=u),n[s]=f,r[s]=u;let p=o,b=0;for(;p!==s;)b+=n[p++],p=p%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i{n=l,s=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),p=l-n;p>=r?i(u,l):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-p)))},()=>s&&i(s)]}const V=(e,t,n=3)=>{let r=0;const s=ln(50,250);return fn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,u=s(f),l=i<=c;r=i;const p={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},Oe=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Te=e=>(...t)=>a.asap(()=>e(...t)),dn=x.hasStandardBrowserEnv?function(){const t=x.navigator&&/(msie|trident)/i.test(x.navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const c=a.isString(i)?s(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),pn=x.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ke(e,t){return e&&!hn(t)?mn(e,t):t}const Ae=e=>e instanceof O?{...e}:e;function B(e,t){t=t||{};const n={};function r(u,l,p){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:p},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,p){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,p)}else return r(u,l,p)}function o(u,l){if(!a.isUndefined(l))return r(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,p){if(p in t)return r(u,l);if(p in e)return r(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(u,l)=>s(Ae(u),Ae(l),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const p=f[l]||s,b=p(e[l],t[l],l);a.isUndefined(b)&&p!==c||(n[l]=b)}),n}const Ge=e=>{const t=B({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=O.from(i),t.url=Je(Ke(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(x.hasStandardBrowserEnv||x.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...l]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...l].join("; "))}}if(x.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&dn(t.url))){const u=s&&o&&pn.read(o);u&&i.set(s,u)}return t},yn=typeof XMLHttpRequest<"u",wn=yn&&function(e){return new Promise(function(n,r){const s=Ge(e);let o=s.data;const i=O.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,p,b,E,h;function y(){E&&E(),h&&h(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let d=new XMLHttpRequest;d.open(s.method.toUpperCase(),s.url,!0),d.timeout=s.timeout;function g(){if(!d)return;const w=O.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),P={data:!c||c==="text"||c==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:w,config:e,request:d};$e(function(C){n(C),y()},function(C){r(C),y()},P),d=null}"onloadend"in d?d.onloadend=g:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(g)},d.onabort=function(){d&&(r(new m("Request aborted",m.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let S=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const P=s.transitional||Ve;s.timeoutErrorMessage&&(S=s.timeoutErrorMessage),r(new m(S,P.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,d)),d=null},o===void 0&&i.setContentType(null),"setRequestHeader"in d&&a.forEach(i.toJSON(),function(S,P){d.setRequestHeader(P,S)}),a.isUndefined(s.withCredentials)||(d.withCredentials=!!s.withCredentials),c&&c!=="json"&&(d.responseType=s.responseType),u&&([b,h]=V(u,!0),d.addEventListener("progress",b)),f&&d.upload&&([p,E]=V(f),d.upload.addEventListener("progress",p),d.upload.addEventListener("loadend",E)),(s.cancelToken||s.signal)&&(l=w=>{d&&(r(!w||w.type?new k(null,e,d):w),d.abort(),d=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const T=un(s.url);if(T&&x.protocols.indexOf(T)===-1){r(new m("Unsupported protocol "+T+":",m.ERR_BAD_REQUEST,e));return}d.send(o||null)})},bn=(e,t)=>{let n=new AbortController,r;const s=function(f){if(!r){r=!0,i();const u=f instanceof Error?f:this.reason;n.abort(u instanceof m?u:new k(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{s(new m(`timeout ${t} of ms exceeded`,m.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f&&(f.removeEventListener?f.removeEventListener("abort",s):f.unsubscribe(s))}),e=null)};e.forEach(f=>f&&f.addEventListener&&f.addEventListener("abort",s));const{signal:c}=n;return c.unsubscribe=i,[c,()=>{o&&clearTimeout(o),o=null}]},En=function*(e,t){let n=e.byteLength;if(!t||n{const o=Rn(e,t,s);let i=0,c,f=u=>{c||(c=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:l,value:p}=await o.next();if(l){f(),u.close();return}let b=p.byteLength;if(n){let E=i+=b;n(E)}u.enqueue(new Uint8Array(p))}catch(l){throw f(l),l}},cancel(u){return f(u),o.return()}},{highWaterMark:2})},X=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Xe=X&&typeof ReadableStream=="function",ie=X&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Qe=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Sn=Xe&&Qe(()=>{let e=!1;const t=new Request(x.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ce=64*1024,ae=Xe&&Qe(()=>a.isReadableStream(new Response("").body)),v={stream:ae&&(e=>e.body)};X&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!v[t]&&(v[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new m(`Response type '${t}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const gn=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await ie(e)).byteLength},On=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??gn(t)},Tn=X&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:l,withCredentials:p="same-origin",fetchOptions:b}=Ge(e);u=u?(u+"").toLowerCase():"text";let[E,h]=s||o||i?bn([s,o],i):[],y,d;const g=()=>{!y&&setTimeout(()=>{E&&E.unsubscribe()}),y=!0};let T;try{if(f&&Sn&&n!=="get"&&n!=="head"&&(T=await On(l,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),D;if(a.isFormData(r)&&(D=C.headers.get("content-type"))&&l.setContentType(D),C.body){const[Z,M]=Oe(T,V(Te(f)));r=xe(C.body,Ce,Z,M,ie)}}a.isString(p)||(p=p?"include":"omit");const w="credentials"in Request.prototype;d=new Request(t,{...b,signal:E,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:w?p:void 0});let S=await fetch(d);const P=ae&&(u==="stream"||u==="response");if(ae&&(c||P)){const C={};["status","statusText","headers"].forEach(ye=>{C[ye]=S[ye]});const D=a.toFiniteNumber(S.headers.get("content-length")),[Z,M]=c&&Oe(D,V(Te(c),!0))||[];S=new Response(xe(S.body,Ce,Z,()=>{M&&M(),P&&g()},ie),C)}u=u||"text";let Q=await v[a.findKey(v,u)||"text"](S,e);return!P&&g(),h&&h(),await new Promise((C,D)=>{$e(C,D,{data:Q,headers:O.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:d})})}catch(w){throw g(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,e,d),{cause:w.cause||w}):m.from(w,w&&w.code,e,d)}}),ce={http:It,xhr:wn,fetch:Tn};a.forEach(ce,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ne=e=>`- ${e}`,An=e=>a.isFunction(e)||e===null||e===!1,Ze={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.map(Ne).join(` +`):" "+Ne(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ce};function ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k(null,e)}function Pe(e){return ne(e),e.headers=O.from(e.headers),e.data=te.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ze.getAdapter(e.adapter||I.adapter)(e).then(function(r){return ne(e),r.data=te.call(e,e.transformResponse,r),r.headers=O.from(r.headers),r},function(r){return We(r)||(ne(e),r&&r.response&&(r.response.data=te.call(e,e.transformResponse,r.response),r.response.headers=O.from(r.response.headers))),Promise.reject(r)})}const Ye="1.7.5",he={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{he[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const _e={};he.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Ye+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!_e[i]&&(_e[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function xn(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new m("option "+o+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const ue={assertOptions:xn,validators:he},_=ue.validators;class L{constructor(t){this.defaults=t,this.interceptors={request:new Se,response:new Se}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=B(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&ue.assertOptions(r,{silentJSONParsing:_.transitional(_.boolean),forcedJSONParsing:_.transitional(_.boolean),clarifyTimeoutError:_.transitional(_.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:ue.assertOptions(s,{encode:_.function,serialize:_.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=O.concat(i,o);const c=[];let f=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(f=f&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let l,p=0,b;if(!f){const h=[Pe.bind(this),void 0];for(h.unshift.apply(h,c),h.push.apply(h,u),b=h.length,l=Promise.resolve(n);p{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new k(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new me(function(s){t=s}),cancel:t}}}function Cn(e){return function(n){return e.apply(null,n)}}function Nn(e){return a.isObject(e)&&e.isAxiosError===!0}const le={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(le).forEach(([e,t])=>{le[t]=e});function et(e){const t=new L(e),n=Fe(L.prototype.request,t);return a.extend(n,L.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return et(B(e,s))},n}const R=et(I);R.Axios=L;R.CanceledError=k;R.CancelToken=me;R.isCancel=We;R.VERSION=Ye;R.toFormData=G;R.AxiosError=m;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=Cn;R.isAxiosError=Nn;R.mergeConfig=B;R.AxiosHeaders=O;R.formToJSON=e=>ve(a.isHTMLForm(e)?new FormData(e):e);R.getAdapter=Ze.getAdapter;R.HttpStatusCode=le;R.default=R;export{R as a}; diff --git a/js/axios@1.7.5-C8DqakIB.js.gz b/js/axios@1.7.5-C8DqakIB.js.gz new file mode 100644 index 00000000..de82e602 Binary files /dev/null and b/js/axios@1.7.5-C8DqakIB.js.gz differ diff --git a/js/css-render@0.15.14-C5toWlUr.js b/js/css-render@0.15.14-C5toWlUr.js new file mode 100644 index 00000000..cc6ba144 --- /dev/null +++ b/js/css-render@0.15.14-C5toWlUr.js @@ -0,0 +1,12 @@ +import{m as C}from"./@emotion_hash@0.8.0-WldOFDRm.js";function b(n){let e=0;for(let t=0;t{let f=b(r);if(f){if(f===1){n.forEach(i=>{t.push(r.replace("&",i))});return}}else{n.forEach(i=>{t.push((i&&i+" ")+r)});return}let u=[r];for(;f--;){const i=[];u.forEach(o=>{n.forEach(c=>{i.push(o.replace("&",c))})}),u=i}u.forEach(i=>t.push(i))}),t}function S(n,e){const t=[];return e.split($).forEach(r=>{n.forEach(f=>{t.push((f&&f+" ")+r)})}),t}function k(n){let e=[""];return n.forEach(t=>{t=t&&t.trim(),t&&(t.includes("&")?e=v(e,t):e=S(e,t))}),e.join(", ").replace(j," ")}function x(n){if(!n)return;const e=n.parentElement;e&&e.removeChild(n)}function d(n,e){return(e??document.head).querySelector(`style[cssr-id="${n}"]`)}function q(n){const e=document.createElement("style");return e.setAttribute("cssr-id",n),e}function h(n){return n?/^\s*@(s|m)/.test(n):!1}const R=/[A-Z]/g;function w(n){return n.replace(R,e=>"-"+e.toLowerCase())}function B(n,e=" "){return typeof n=="object"&&n!==null?` { +`+Object.entries(n).map(t=>e+` ${w(t[0])}: ${t[1]};`).join(` +`)+` +`+e+"}":`: ${n};`}function L(n,e,t){return typeof n=="function"?n({context:e.context,props:t}):n}function E(n,e,t,r){if(!e)return"";const f=L(e,t,r);if(!f)return"";if(typeof f=="string")return`${n} { +${f} +}`;const u=Object.keys(f);if(u.length===0)return t.config.keepEmptyBlock?n+` { +}`:"";const i=n?[n+" {"]:[];return u.forEach(o=>{const c=f[o];if(o==="raw"){i.push(` +`+c+` +`);return}o=w(o),c!=null&&i.push(` ${o}${B(c)}`)}),n&&i.push("}"),i.join(` +`)}function y(n,e,t){n&&n.forEach(r=>{if(Array.isArray(r))y(r,e,t);else if(typeof r=="function"){const f=r(e);Array.isArray(f)?y(f,e,t):f&&t(f)}else r&&t(r)})}function A(n,e,t,r,f){const u=n.$;let i="";if(!u||typeof u=="string")h(u)?i=u:e.push(u);else if(typeof u=="function"){const s=u({context:r.context,props:f});h(s)?i=s:e.push(s)}else if(u.before&&u.before(r.context),!u.$||typeof u.$=="string")h(u.$)?i=u.$:e.push(u.$);else if(u.$){const s=u.$({context:r.context,props:f});h(s)?i=s:e.push(s)}const o=k(e),c=E(o,n.props,r,f);i?t.push(`${i} {`):c.length&&t.push(c),n.children&&y(n.children,{context:r.context,props:f},s=>{if(typeof s=="string"){const l=E(o,{raw:s},r,f);t.push(l)}else A(s,e,t,r,f)}),e.pop(),i&&t.push("}"),u&&u.after&&u.after(r.context)}function M(n,e,t){const r=[];return A(n,[],r,e,t),r.join(` + +`)}typeof window<"u"&&(window.__cssrContext={});function O(n,e,t,r){const{els:f}=e;if(t===void 0)f.forEach(x),e.els=[];else{const u=d(t,r);u&&f.includes(u)&&(x(u),e.els=f.filter(i=>i!==u))}}function g(n,e){n.push(e)}function T(n,e,t,r,f,u,i,o,c){let s;if(t===void 0&&(s=e.render(r),t=C(s)),c){c.adapter(t,s??e.render(r));return}o===void 0&&(o=document.head);const l=d(t,o);if(l!==null&&!u)return l;const a=l??q(t);if(s===void 0&&(s=e.render(r)),a.textContent=s,l!==null)return l;if(i){const m=o.querySelector(`meta[name="${i}"]`);if(m)return o.insertBefore(a,m),g(e.els,a),a}return f?o.insertBefore(a,o.querySelector("style, link")):o.appendChild(a),g(e.els,a),a}function W(n){return M(this,this.instance,n)}function _(n={}){const{id:e,ssr:t,props:r,head:f=!1,force:u=!1,anchorMetaName:i,parent:o}=n;return T(this.instance,this,e,r,f,u,i,o,t)}function U(n={}){const{id:e,parent:t}=n;O(this.instance,this,e,t)}const p=function(n,e,t,r){return{instance:n,$:e,props:t,children:r,els:[],render:W,mount:_,unmount:U}},Z=function(n,e,t,r){return Array.isArray(e)?p(n,{$:null},null,e):Array.isArray(t)?p(n,e,null,t):Array.isArray(r)?p(n,e,t,r):p(n,e,t,null)};function D(n={}){const e={c:(...t)=>Z(e,...t),use:(t,...r)=>t.install(e,...r),find:d,context:{},config:n};return e}function F(n,e){if(n===void 0)return!1;if(e){const{context:{ids:t}}=e;return t.has(n)}return d(n)!==null}export{D as C,F as e}; diff --git a/js/css-render@0.15.14-C5toWlUr.js.gz b/js/css-render@0.15.14-C5toWlUr.js.gz new file mode 100644 index 00000000..256d0c75 Binary files /dev/null and b/js/css-render@0.15.14-C5toWlUr.js.gz differ diff --git a/js/date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js b/js/date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js new file mode 100644 index 00000000..d2b483ef --- /dev/null +++ b/js/date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js @@ -0,0 +1 @@ +import{f as b}from"./date-fns@3.6.0-q9PkOyxq.js";function w(e,t,n){const r=S(e,n.timeZone,n.locale);return"formatToParts"in r?y(r,t):_(r,t)}function y(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function _(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function S(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function E(e,t){const n=P(t);return"formatToParts"in n?X(n,e):A(n,e)}const L={year:0,month:1,day:2,hour:3,minute:4,second:5};function X(e,t){try{const n=e.formatToParts(t),r=[];for(let i=0;i=0?s:1e3+s,r-i}function k(e,t,n){let i=e.getTime()-t;const s=g(new Date(i),n);if(t===s)return t;i-=s-t;const o=g(new Date(i),n);return s===o?s:Math.max(s,o)}function h(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const M={};function j(e){if(M[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),M[e]=!0,!0}catch{return!1}}const R=60*1e3,G={X:function(e,t,n){const r=T(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return O(r);case"XXXX":case"XX":return l(r);case"XXXXX":case"XXX":default:return l(r,":")}},x:function(e,t,n){const r=T(n.timeZone,e);switch(t){case"x":return O(r);case"xxxx":case"xx":return l(r);case"xxxxx":case"xxx":default:return l(r,":")}},O:function(e,t,n){const r=T(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+q(r,":");case"OOOO":default:return"GMT"+l(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return w("short",e,n);case"zzzz":default:return w("long",e,n)}}};function T(e,t){const n=e?I(e,t,!0)/R:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function m(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length0?"-":"+",r=Math.abs(e),i=m(Math.floor(r/60),2),s=m(Math.floor(r%60),2);return n+i+t+s}function O(e,t){return e%60===0?(e>0?"-":"+")+m(Math.abs(e)/60,2):l(e,t)}function q(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=r%60;return s===0?n+String(i):n+String(i)+t+m(s,2)}function x(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const B=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,N=36e5,z=6e4,J=2,u={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:B};function F(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?J:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=Q(e),{year:i,restDateString:s}=V(r.date,n),o=K(s,i);if(o===null||isNaN(o.getTime()))return new Date(NaN);if(o){const a=o.getTime();let c=0,f;if(r.time&&(c=ee(r.time),c===null||isNaN(c)))return new Date(NaN);if(r.timeZone||t.timeZone){if(f=I(r.timeZone||t.timeZone,new Date(a+c)),isNaN(f))return new Date(NaN)}else f=x(new Date(a+c)),f=x(new Date(a+c+f));return new Date(a+c+f)}else return new Date(NaN)}function Q(e){const t={};let n=u.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=u.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const i=u.timeZone.exec(r);i?(t.time=r.replace(i[1],""),t.timeZone=i[1].trim()):t.time=r}return t}function V(e,t){if(e){const n=u.YYY[t],r=u.YYYYY[t];let i=u.YYYY.exec(e)||r.exec(e);if(i){const s=i[1];return{year:parseInt(s,10),restDateString:e.slice(s.length)}}if(i=u.YY.exec(e)||n.exec(e),i){const s=i[1];return{year:parseInt(s,10)*100,restDateString:e.slice(s.length)}}}return{year:null}}function K(e,t){if(t===null)return null;let n,r,i;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let s=u.MM.exec(e);if(s)return n=new Date(0),r=parseInt(s[1],10)-1,U(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(s=u.DDD.exec(e),s){n=new Date(0);const o=parseInt(s[1],10);return re(t,o)?(n.setUTCFullYear(t,0,o),n):new Date(NaN)}if(s=u.MMDD.exec(e),s){n=new Date(0),r=parseInt(s[1],10)-1;const o=parseInt(s[2],10);return U(t,r,o)?(n.setUTCFullYear(t,r,o),n):new Date(NaN)}if(s=u.Www.exec(e),s)return i=parseInt(s[1],10)-1,H(i)?C(t,i):new Date(NaN);if(s=u.WwwD.exec(e),s){i=parseInt(s[1],10)-1;const o=parseInt(s[2],10)-1;return H(i,o)?C(t,i,o):new Date(NaN)}return null}function ee(e){let t,n,r=u.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),p(t)?t%24*N:NaN;if(r=u.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),p(t,n)?t%24*N+n*z:NaN;if(r=u.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const i=parseFloat(r[3].replace(",","."));return p(t,n,i)?t%24*N+n*z+i*1e3:NaN}return null}function C(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,s=t*7+n+1-i;return r.setUTCDate(r.getUTCDate()+s),r}const te=[31,28,31,30,31,30,31,31,30,31,30,31],ne=[31,29,31,30,31,30,31,31,30,31,30,31];function $(e){return e%400===0||e%4===0&&e%100!==0}function U(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=$(e);if(r&&n>ne[t]||!r&&n>te[t])return!1}return!0}function re(e,t){if(t<1)return!1;const n=$(e);return!(n&&t>366||!n&&t>365)}function H(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function p(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const ie=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function se(e,t,n={}){t=String(t);const r=t.match(ie);if(r){const i=F(n.originalDate||e,n);t=r.reduce(function(s,o){if(o[0]==="'")return s;const a=s.indexOf(o),c=s[a-1]==="'",f=s.replace(o,"'"+G[o[0]](i,o,n)+"'");return c?f.substring(0,a-1)+f.substring(a+1):f},t)}return b(e,t,n)}function oe(e,t,n){e=F(e,n);const r=I(t,e,!0),i=new Date(e.getTime()-r),s=new Date(0);return s.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),s.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),s}function ue(e,t,n,r){return r={...r,timeZone:t,originalDate:e},se(oe(e,t,{timeZone:r.timeZone}),n,r)}export{ue as f}; diff --git a/js/date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js.gz b/js/date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js.gz new file mode 100644 index 00000000..fb513e9d Binary files /dev/null and b/js/date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js.gz differ diff --git a/js/date-fns@3.6.0-q9PkOyxq.js b/js/date-fns@3.6.0-q9PkOyxq.js new file mode 100644 index 00000000..a1014030 --- /dev/null +++ b/js/date-fns@3.6.0-q9PkOyxq.js @@ -0,0 +1 @@ +var Oe=Object.defineProperty;var Ye=(n,r,e)=>r in n?Oe(n,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[r]=e;var o=(n,r,e)=>Ye(n,typeof r!="symbol"?r+"":r,e);function Q(n){return(r={})=>{const e=r.width?String(r.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}function W(n){return(r,e)=>{const t=e!=null&&e.context?String(e.context):"standalone";let a;if(t==="formatting"&&n.formattingValues){const i=n.defaultFormattingWidth||n.defaultWidth,c=e!=null&&e.width?String(e.width):i;a=n.formattingValues[c]||n.formattingValues[i]}else{const i=n.defaultWidth,c=e!=null&&e.width?String(e.width):n.defaultWidth;a=n.values[c]||n.values[i]}const s=n.argumentCallback?n.argumentCallback(r):r;return a[s]}}function v(n){return(r,e={})=>{const t=e.width,a=t&&n.matchPatterns[t]||n.matchPatterns[n.defaultMatchWidth],s=r.match(a);if(!s)return null;const i=s[0],c=t&&n.parsePatterns[t]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(c)?ve(c,D=>D.test(i)):We(c,D=>D.test(i));let w;w=n.valueCallback?n.valueCallback(h):h,w=e.valueCallback?e.valueCallback(w):w;const P=r.slice(i.length);return{value:w,rest:P}}}function We(n,r){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&r(n[e]))return e}function ve(n,r){for(let e=0;e{const t=r.match(n.matchPattern);if(!t)return null;const a=t[0],s=r.match(n.parsePattern);if(!s)return null;let i=n.valueCallback?n.valueCallback(s[0]):s[0];i=e.valueCallback?e.valueCallback(i):i;const c=r.slice(a.length);return{value:i,rest:c}}}function u(n){const r=Object.prototype.toString.call(n);return n instanceof Date||typeof n=="object"&&r==="[object Date]"?new n.constructor(+n):typeof n=="number"||r==="[object Number]"||typeof n=="string"||r==="[object String]"?new Date(n):new Date(NaN)}let _e={};function R(){return _e}function E(n,r){var c,h,w,P;const e=R(),t=(r==null?void 0:r.weekStartsOn)??((h=(c=r==null?void 0:r.locale)==null?void 0:c.options)==null?void 0:h.weekStartsOn)??e.weekStartsOn??((P=(w=e.locale)==null?void 0:w.options)==null?void 0:P.weekStartsOn)??0,a=u(n),s=a.getDay(),i=(s{let t;const a=Ee[n];return typeof a=="string"?t=a:r===1?t=a.one:t=a.other.replace("{{count}}",r.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+t:t+" ago":t},He={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fe=(n,r,e,t)=>He[n],Le={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ce={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Qe={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"]},Ie={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"]},Re={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"}},$e={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"}},Xe=(n,r)=>{const e=Number(n),t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},Ge={ordinalNumber:Xe,era:W({values:Le,defaultWidth:"wide"}),quarter:W({values:Ce,defaultWidth:"wide",argumentCallback:n=>n-1}),month:W({values:Qe,defaultWidth:"wide"}),day:W({values:Ie,defaultWidth:"wide"}),dayPeriod:W({values:Re,defaultWidth:"wide",formattingValues:$e,defaultFormattingWidth:"wide"})},Be=/^(\d+)(th|st|nd|rd)?/i,Ae=/\d+/i,Ve={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},je={any:[/^b/i,/^(a|c)/i]},ze={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Je={any:[/1/i,/2/i,/3/i,/4/i]},Ke={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},Ze={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]},Se={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},Ue={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]},et={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},tt={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}},nt={ordinalNumber:de({matchPattern:Be,parsePattern:Ae,valueCallback:n=>parseInt(n,10)}),era:v({matchPatterns:Ve,defaultMatchWidth:"wide",parsePatterns:je,defaultParseWidth:"any"}),quarter:v({matchPatterns:ze,defaultMatchWidth:"wide",parsePatterns:Je,defaultParseWidth:"any",valueCallback:n=>n+1}),month:v({matchPatterns:Ke,defaultMatchWidth:"wide",parsePatterns:Ze,defaultParseWidth:"any"}),day:v({matchPatterns:Se,defaultMatchWidth:"wide",parsePatterns:Ue,defaultParseWidth:"any"}),dayPeriod:v({matchPatterns:et,defaultMatchWidth:"any",parsePatterns:tt,defaultParseWidth:"any"})},rt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},at={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},st={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ot={date:Q({formats:rt,defaultWidth:"full"}),time:Q({formats:at,defaultWidth:"full"}),dateTime:Q({formats:st,defaultWidth:"full"})},le={code:"en-US",formatDistance:qe,formatLong:ot,formatRelative:Fe,localize:Ge,match:nt,options:{weekStartsOn:0,firstWeekContainsDate:1}},it={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},ut=(n,r,e)=>{let t;const a=it[n];return typeof a=="string"?t=a:r===1?t=a.one:t=a.other.replace("{{count}}",String(r)),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?t+"内":t+"前":t},ct={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},dt={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},lt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},ft={date:Q({formats:ct,defaultWidth:"full"}),time:Q({formats:dt,defaultWidth:"full"}),dateTime:Q({formats:lt,defaultWidth:"full"})};function ae(n,r,e){const t="eeee p";return Ne(n,r,e)?t:n.getTime()>r.getTime()?"'下个'"+t:"'上个'"+t}const ht={lastWeek:ae,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:ae,other:"PP p"},mt=(n,r,e,t)=>{const a=ht[n];return typeof a=="function"?a(r,e,t):a},wt={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},gt={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},yt={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},bt={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},xt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Mt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Pt=(n,r)=>{const e=Number(n);switch(r==null?void 0:r.unit){case"date":return e.toString()+"日";case"hour":return e.toString()+"时";case"minute":return e.toString()+"分";case"second":return e.toString()+"秒";default:return"第 "+e.toString()}},pt={ordinalNumber:Pt,era:W({values:wt,defaultWidth:"wide"}),quarter:W({values:gt,defaultWidth:"wide",argumentCallback:n=>n-1}),month:W({values:yt,defaultWidth:"wide"}),day:W({values:bt,defaultWidth:"wide"}),dayPeriod:W({values:xt,defaultWidth:"wide",formattingValues:Mt,defaultFormattingWidth:"wide"})},Dt=/^(第\s*)?\d+(日|时|分|秒)?/i,kt=/\d+/i,Tt={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Ot={any:[/^(前)/i,/^(公元)/i]},Yt={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Wt={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},vt={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},_t={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Nt={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Et={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},qt={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Ht={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Ft={ordinalNumber:de({matchPattern:Dt,parsePattern:kt,valueCallback:n=>parseInt(n,10)}),era:v({matchPatterns:Tt,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any"}),quarter:v({matchPatterns:Yt,defaultMatchWidth:"wide",parsePatterns:Wt,defaultParseWidth:"any",valueCallback:n=>n+1}),month:v({matchPatterns:vt,defaultMatchWidth:"wide",parsePatterns:_t,defaultParseWidth:"any"}),day:v({matchPatterns:Nt,defaultMatchWidth:"wide",parsePatterns:Et,defaultParseWidth:"any"}),dayPeriod:v({matchPatterns:qt,defaultMatchWidth:"any",parsePatterns:Ht,defaultParseWidth:"any"})},rr={code:"zh-CN",formatDistance:ut,formatLong:ft,formatRelative:mt,localize:pt,match:Ft,options:{weekStartsOn:1,firstWeekContainsDate:4}};function m(n,r){return n instanceof Date?new n.constructor(r):new Date(r)}function fe(n,r){const e=u(n);return isNaN(r)?m(n,NaN):(r&&e.setDate(e.getDate()+r),e)}function he(n,r){const e=u(n);if(isNaN(r))return m(n,NaN);if(!r)return e;const t=e.getDate(),a=m(n,e.getTime());a.setMonth(e.getMonth()+r+1,0);const s=a.getDate();return t>=s?a:(e.setFullYear(a.getFullYear(),a.getMonth(),t),e)}const me=6048e5,Lt=864e5,Ct=6e4,Qt=36e5,It=1e3;function I(n){return E(n,{weekStartsOn:1})}function we(n){const r=u(n),e=r.getFullYear(),t=m(n,0);t.setFullYear(e+1,0,4),t.setHours(0,0,0,0);const a=I(t),s=m(n,0);s.setFullYear(e,0,4),s.setHours(0,0,0,0);const i=I(s);return r.getTime()>=a.getTime()?e+1:r.getTime()>=i.getTime()?e:e-1}function B(n){const r=u(n);return r.setHours(0,0,0,0),r}function A(n){const r=u(n),e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),+n-+e}function Rt(n,r){const e=B(n),t=B(r),a=+e-A(e),s=+t-A(t);return Math.round((a-s)/Lt)}function $t(n){const r=we(n),e=m(n,0);return e.setFullYear(r,0,4),e.setHours(0,0,0,0),I(e)}function ar(n,r){const e=r*3;return he(n,e)}function sr(n,r){return he(n,r*12)}function or(n,r){const e=B(n),t=B(r);return+e==+t}function Xt(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Gt(n){if(!Xt(n)&&typeof n!="number")return!1;const r=u(n);return!isNaN(Number(r))}function ir(n){const r=u(n);return Math.trunc(r.getMonth()/3)+1}function ur(n){const r=u(n);return r.setSeconds(0,0),r}function se(n){const r=u(n),e=r.getMonth(),t=e-e%3;return r.setMonth(t,1),r.setHours(0,0,0,0),r}function cr(n){const r=u(n);return r.setDate(1),r.setHours(0,0,0,0),r}function Bt(n){const r=u(n),e=m(n,0);return e.setFullYear(r.getFullYear(),0,1),e.setHours(0,0,0,0),e}function At(n){const r=u(n);return Rt(r,Bt(r))+1}function ge(n){const r=u(n),e=+I(r)-+$t(r);return Math.round(e/me)+1}function K(n,r){var P,D,O,T;const e=u(n),t=e.getFullYear(),a=R(),s=(r==null?void 0:r.firstWeekContainsDate)??((D=(P=r==null?void 0:r.locale)==null?void 0:P.options)==null?void 0:D.firstWeekContainsDate)??a.firstWeekContainsDate??((T=(O=a.locale)==null?void 0:O.options)==null?void 0:T.firstWeekContainsDate)??1,i=m(n,0);i.setFullYear(t+1,0,s),i.setHours(0,0,0,0);const c=E(i,r),h=m(n,0);h.setFullYear(t,0,s),h.setHours(0,0,0,0);const w=E(h,r);return e.getTime()>=c.getTime()?t+1:e.getTime()>=w.getTime()?t:t-1}function Vt(n,r){var c,h,w,P;const e=R(),t=(r==null?void 0:r.firstWeekContainsDate)??((h=(c=r==null?void 0:r.locale)==null?void 0:c.options)==null?void 0:h.firstWeekContainsDate)??e.firstWeekContainsDate??((P=(w=e.locale)==null?void 0:w.options)==null?void 0:P.firstWeekContainsDate)??1,a=K(n,r),s=m(n,0);return s.setFullYear(a,0,t),s.setHours(0,0,0,0),E(s,r)}function ye(n,r){const e=u(n),t=+E(e,r)-+Vt(e,r);return Math.round(t/me)+1}function f(n,r){const e=n<0?"-":"",t=Math.abs(n).toString().padStart(r,"0");return e+t}const H={y(n,r){const e=n.getFullYear(),t=e>0?e:1-e;return f(r==="yy"?t%100:t,r.length)},M(n,r){const e=n.getMonth();return r==="M"?String(e+1):f(e+1,2)},d(n,r){return f(n.getDate(),r.length)},a(n,r){const e=n.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,r){return f(n.getHours()%12||12,r.length)},H(n,r){return f(n.getHours(),r.length)},m(n,r){return f(n.getMinutes(),r.length)},s(n,r){return f(n.getSeconds(),r.length)},S(n,r){const e=r.length,t=n.getMilliseconds(),a=Math.trunc(t*Math.pow(10,e-3));return f(a,r.length)}},C={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},oe={G:function(n,r,e){const t=n.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return e.era(t,{width:"abbreviated"});case"GGGGG":return e.era(t,{width:"narrow"});case"GGGG":default:return e.era(t,{width:"wide"})}},y:function(n,r,e){if(r==="yo"){const t=n.getFullYear(),a=t>0?t:1-t;return e.ordinalNumber(a,{unit:"year"})}return H.y(n,r)},Y:function(n,r,e,t){const a=K(n,t),s=a>0?a:1-a;if(r==="YY"){const i=s%100;return f(i,2)}return r==="Yo"?e.ordinalNumber(s,{unit:"year"}):f(s,r.length)},R:function(n,r){const e=we(n);return f(e,r.length)},u:function(n,r){const e=n.getFullYear();return f(e,r.length)},Q:function(n,r,e){const t=Math.ceil((n.getMonth()+1)/3);switch(r){case"Q":return String(t);case"QQ":return f(t,2);case"Qo":return e.ordinalNumber(t,{unit:"quarter"});case"QQQ":return e.quarter(t,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(t,{width:"wide",context:"formatting"})}},q:function(n,r,e){const t=Math.ceil((n.getMonth()+1)/3);switch(r){case"q":return String(t);case"qq":return f(t,2);case"qo":return e.ordinalNumber(t,{unit:"quarter"});case"qqq":return e.quarter(t,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(t,{width:"wide",context:"standalone"})}},M:function(n,r,e){const t=n.getMonth();switch(r){case"M":case"MM":return H.M(n,r);case"Mo":return e.ordinalNumber(t+1,{unit:"month"});case"MMM":return e.month(t,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(t,{width:"wide",context:"formatting"})}},L:function(n,r,e){const t=n.getMonth();switch(r){case"L":return String(t+1);case"LL":return f(t+1,2);case"Lo":return e.ordinalNumber(t+1,{unit:"month"});case"LLL":return e.month(t,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(t,{width:"wide",context:"standalone"})}},w:function(n,r,e,t){const a=ye(n,t);return r==="wo"?e.ordinalNumber(a,{unit:"week"}):f(a,r.length)},I:function(n,r,e){const t=ge(n);return r==="Io"?e.ordinalNumber(t,{unit:"week"}):f(t,r.length)},d:function(n,r,e){return r==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):H.d(n,r)},D:function(n,r,e){const t=At(n);return r==="Do"?e.ordinalNumber(t,{unit:"dayOfYear"}):f(t,r.length)},E:function(n,r,e){const t=n.getDay();switch(r){case"E":case"EE":case"EEE":return e.day(t,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(t,{width:"short",context:"formatting"});case"EEEE":default:return e.day(t,{width:"wide",context:"formatting"})}},e:function(n,r,e,t){const a=n.getDay(),s=(a-t.weekStartsOn+8)%7||7;switch(r){case"e":return String(s);case"ee":return f(s,2);case"eo":return e.ordinalNumber(s,{unit:"day"});case"eee":return e.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(a,{width:"short",context:"formatting"});case"eeee":default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(n,r,e,t){const a=n.getDay(),s=(a-t.weekStartsOn+8)%7||7;switch(r){case"c":return String(s);case"cc":return f(s,r.length);case"co":return e.ordinalNumber(s,{unit:"day"});case"ccc":return e.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(a,{width:"narrow",context:"standalone"});case"cccccc":return e.day(a,{width:"short",context:"standalone"});case"cccc":default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(n,r,e){const t=n.getDay(),a=t===0?7:t;switch(r){case"i":return String(a);case"ii":return f(a,r.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(t,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(t,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(t,{width:"short",context:"formatting"});case"iiii":default:return e.day(t,{width:"wide",context:"formatting"})}},a:function(n,r,e){const a=n.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(n,r,e){const t=n.getHours();let a;switch(t===12?a=C.noon:t===0?a=C.midnight:a=t/12>=1?"pm":"am",r){case"b":case"bb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(n,r,e){const t=n.getHours();let a;switch(t>=17?a=C.evening:t>=12?a=C.afternoon:t>=4?a=C.morning:a=C.night,r){case"B":case"BB":case"BBB":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(n,r,e){if(r==="ho"){let t=n.getHours()%12;return t===0&&(t=12),e.ordinalNumber(t,{unit:"hour"})}return H.h(n,r)},H:function(n,r,e){return r==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):H.H(n,r)},K:function(n,r,e){const t=n.getHours()%12;return r==="Ko"?e.ordinalNumber(t,{unit:"hour"}):f(t,r.length)},k:function(n,r,e){let t=n.getHours();return t===0&&(t=24),r==="ko"?e.ordinalNumber(t,{unit:"hour"}):f(t,r.length)},m:function(n,r,e){return r==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):H.m(n,r)},s:function(n,r,e){return r==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):H.s(n,r)},S:function(n,r){return H.S(n,r)},X:function(n,r,e){const t=n.getTimezoneOffset();if(t===0)return"Z";switch(r){case"X":return ue(t);case"XXXX":case"XX":return F(t);case"XXXXX":case"XXX":default:return F(t,":")}},x:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"x":return ue(t);case"xxxx":case"xx":return F(t);case"xxxxx":case"xxx":default:return F(t,":")}},O:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+ie(t,":");case"OOOO":default:return"GMT"+F(t,":")}},z:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+ie(t,":");case"zzzz":default:return"GMT"+F(t,":")}},t:function(n,r,e){const t=Math.trunc(n.getTime()/1e3);return f(t,r.length)},T:function(n,r,e){const t=n.getTime();return f(t,r.length)}};function ie(n,r=""){const e=n>0?"-":"+",t=Math.abs(n),a=Math.trunc(t/60),s=t%60;return s===0?e+String(a):e+String(a)+r+f(s,2)}function ue(n,r){return n%60===0?(n>0?"-":"+")+f(Math.abs(n)/60,2):F(n,r)}function F(n,r=""){const e=n>0?"-":"+",t=Math.abs(n),a=f(Math.trunc(t/60),2),s=f(t%60,2);return e+a+r+s}const ce=(n,r)=>{switch(n){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},be=(n,r)=>{switch(n){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},jt=(n,r)=>{const e=n.match(/(P+)(p+)?/)||[],t=e[1],a=e[2];if(!a)return ce(n,r);let s;switch(t){case"P":s=r.dateTime({width:"short"});break;case"PP":s=r.dateTime({width:"medium"});break;case"PPP":s=r.dateTime({width:"long"});break;case"PPPP":default:s=r.dateTime({width:"full"});break}return s.replace("{{date}}",ce(t,r)).replace("{{time}}",be(a,r))},z={p:be,P:jt},zt=/^D+$/,Jt=/^Y+$/,Kt=["D","DD","YY","YYYY"];function xe(n){return zt.test(n)}function Me(n){return Jt.test(n)}function J(n,r,e){const t=Zt(n,r,e);if(console.warn(t),Kt.includes(n))throw new RangeError(t)}function Zt(n,r,e){const t=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${r}\`) for formatting ${t} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const St=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ut=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,en=/^'([^]*?)'?$/,tn=/''/g,nn=/[a-zA-Z]/;function dr(n,r,e){var P,D,O,T,q,$,X,G;const t=R(),a=(e==null?void 0:e.locale)??t.locale??le,s=(e==null?void 0:e.firstWeekContainsDate)??((D=(P=e==null?void 0:e.locale)==null?void 0:P.options)==null?void 0:D.firstWeekContainsDate)??t.firstWeekContainsDate??((T=(O=t.locale)==null?void 0:O.options)==null?void 0:T.firstWeekContainsDate)??1,i=(e==null?void 0:e.weekStartsOn)??(($=(q=e==null?void 0:e.locale)==null?void 0:q.options)==null?void 0:$.weekStartsOn)??t.weekStartsOn??((G=(X=t.locale)==null?void 0:X.options)==null?void 0:G.weekStartsOn)??0,c=u(n);if(!Gt(c))throw new RangeError("Invalid time value");let h=r.match(Ut).map(k=>{const p=k[0];if(p==="p"||p==="P"){const L=z[p];return L(k,a.formatLong)}return k}).join("").match(St).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const p=k[0];if(p==="'")return{isToken:!1,value:rn(k)};if(oe[p])return{isToken:!0,value:k};if(p.match(nn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:k}});a.localize.preprocessor&&(h=a.localize.preprocessor(c,h));const w={firstWeekContainsDate:s,weekStartsOn:i,locale:a};return h.map(k=>{if(!k.isToken)return k.value;const p=k.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&Me(p)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&xe(p))&&J(p,r,String(n));const L=oe[p[0]];return L(c,p,a.localize,w)}).join("")}function rn(n){const r=n.match(en);return r?r[1].replace(tn,"'"):n}function lr(n){return u(n).getDate()}function fr(n){return u(n).getDay()}function an(n){const r=u(n),e=r.getFullYear(),t=r.getMonth(),a=m(n,0);return a.setFullYear(e,t+1,0),a.setHours(0,0,0,0),a.getDate()}function sn(){return Object.assign({},R())}function hr(n){return u(n).getHours()}function on(n){let e=u(n).getDay();return e===0&&(e=7),e}function mr(n){return u(n).getMilliseconds()}function wr(n){return u(n).getMinutes()}function gr(n){return u(n).getMonth()}function yr(n){return u(n).getSeconds()}function br(n){return u(n).getTime()}function xr(n){return u(n).getFullYear()}function un(n,r){const e=r instanceof Date?m(r,0):new r(0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}const cn=10;class Pe{constructor(){o(this,"subPriority",0)}validate(r,e){return!0}}class dn extends Pe{constructor(r,e,t,a,s){super(),this.value=r,this.validateValue=e,this.setValue=t,this.priority=a,s&&(this.subPriority=s)}validate(r,e){return this.validateValue(r,this.value,e)}set(r,e,t){return this.setValue(r,e,this.value,t)}}class ln extends Pe{constructor(){super(...arguments);o(this,"priority",cn);o(this,"subPriority",-1)}set(e,t){return t.timestampIsSet?e:m(e,un(e,Date))}}class l{run(r,e,t,a){const s=this.parse(r,e,t,a);return s?{setter:new dn(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(r,e,t){return!0}}class fn extends l{constructor(){super(...arguments);o(this,"priority",140);o(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,a){switch(t){case"G":case"GG":case"GGG":return a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"});case"GGGGG":return a.era(e,{width:"narrow"});case"GGGG":default:return a.era(e,{width:"wide"})||a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"})}}set(e,t,a){return t.era=a,e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}const x={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},_={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function M(n,r){return n&&{value:r(n.value),rest:n.rest}}function g(n,r){const e=r.match(n);return e?{value:parseInt(e[0],10),rest:r.slice(e[0].length)}:null}function N(n,r){const e=r.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:r.slice(1)};const t=e[1]==="+"?1:-1,a=e[2]?parseInt(e[2],10):0,s=e[3]?parseInt(e[3],10):0,i=e[5]?parseInt(e[5],10):0;return{value:t*(a*Qt+s*Ct+i*It),rest:r.slice(e[0].length)}}function pe(n){return g(x.anyDigitsSigned,n)}function b(n,r){switch(n){case 1:return g(x.singleDigit,r);case 2:return g(x.twoDigits,r);case 3:return g(x.threeDigits,r);case 4:return g(x.fourDigits,r);default:return g(new RegExp("^\\d{1,"+n+"}"),r)}}function V(n,r){switch(n){case 1:return g(x.singleDigitSigned,r);case 2:return g(x.twoDigitsSigned,r);case 3:return g(x.threeDigitsSigned,r);case 4:return g(x.fourDigitsSigned,r);default:return g(new RegExp("^-?\\d{1,"+n+"}"),r)}}function Z(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function De(n,r){const e=r>0,t=e?r:1-r;let a;if(t<=50)a=n||100;else{const s=t+50,i=Math.trunc(s/100)*100,c=n>=s%100;a=n+i-(c?100:0)}return e?a:1-a}function ke(n){return n%400===0||n%4===0&&n%100!==0}class hn extends l{constructor(){super(...arguments);o(this,"priority",130);o(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,a){const s=i=>({year:i,isTwoDigitYear:t==="yy"});switch(t){case"y":return M(b(4,e),s);case"yo":return M(a.ordinalNumber(e,{unit:"year"}),s);default:return M(b(t.length,e),s)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,a){const s=e.getFullYear();if(a.isTwoDigitYear){const c=De(a.year,s);return e.setFullYear(c,0,1),e.setHours(0,0,0,0),e}const i=!("era"in t)||t.era===1?a.year:1-a.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}}class mn extends l{constructor(){super(...arguments);o(this,"priority",130);o(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,a){const s=i=>({year:i,isTwoDigitYear:t==="YY"});switch(t){case"Y":return M(b(4,e),s);case"Yo":return M(a.ordinalNumber(e,{unit:"year"}),s);default:return M(b(t.length,e),s)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,a,s){const i=K(e,s);if(a.isTwoDigitYear){const h=De(a.year,i);return e.setFullYear(h,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),E(e,s)}const c=!("era"in t)||t.era===1?a.year:1-a.year;return e.setFullYear(c,0,s.firstWeekContainsDate),e.setHours(0,0,0,0),E(e,s)}}class wn extends l{constructor(){super(...arguments);o(this,"priority",130);o(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return V(t==="R"?4:t.length,e)}set(e,t,a){const s=m(e,0);return s.setFullYear(a,0,4),s.setHours(0,0,0,0),I(s)}}class gn extends l{constructor(){super(...arguments);o(this,"priority",130);o(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return V(t==="u"?4:t.length,e)}set(e,t,a){return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}class yn extends l{constructor(){super(...arguments);o(this,"priority",120);o(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,a){switch(t){case"Q":case"QQ":return b(t.length,e);case"Qo":return a.ordinalNumber(e,{unit:"quarter"});case"QQQ":return a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(e,{width:"wide",context:"formatting"})||a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,a){return e.setMonth((a-1)*3,1),e.setHours(0,0,0,0),e}}class bn extends l{constructor(){super(...arguments);o(this,"priority",120);o(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,a){switch(t){case"q":case"qq":return b(t.length,e);case"qo":return a.ordinalNumber(e,{unit:"quarter"});case"qqq":return a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(e,{width:"wide",context:"standalone"})||a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,a){return e.setMonth((a-1)*3,1),e.setHours(0,0,0,0),e}}class xn extends l{constructor(){super(...arguments);o(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);o(this,"priority",110)}parse(e,t,a){const s=i=>i-1;switch(t){case"M":return M(g(x.month,e),s);case"MM":return M(b(2,e),s);case"Mo":return M(a.ordinalNumber(e,{unit:"month"}),s);case"MMM":return a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(e,{width:"wide",context:"formatting"})||a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}}class Mn extends l{constructor(){super(...arguments);o(this,"priority",110);o(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,a){const s=i=>i-1;switch(t){case"L":return M(g(x.month,e),s);case"LL":return M(b(2,e),s);case"Lo":return M(a.ordinalNumber(e,{unit:"month"}),s);case"LLL":return a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(e,{width:"wide",context:"standalone"})||a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}}function Pn(n,r,e){const t=u(n),a=ye(t,e)-r;return t.setDate(t.getDate()-a*7),t}class pn extends l{constructor(){super(...arguments);o(this,"priority",100);o(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,a){switch(t){case"w":return g(x.week,e);case"wo":return a.ordinalNumber(e,{unit:"week"});default:return b(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,a,s){return E(Pn(e,a,s),s)}}function Dn(n,r){const e=u(n),t=ge(e)-r;return e.setDate(e.getDate()-t*7),e}class kn extends l{constructor(){super(...arguments);o(this,"priority",100);o(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,a){switch(t){case"I":return g(x.week,e);case"Io":return a.ordinalNumber(e,{unit:"week"});default:return b(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,a){return I(Dn(e,a))}}const Tn=[31,28,31,30,31,30,31,31,30,31,30,31],On=[31,29,31,30,31,30,31,31,30,31,30,31];class Yn extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"subPriority",1);o(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,a){switch(t){case"d":return g(x.date,e);case"do":return a.ordinalNumber(e,{unit:"date"});default:return b(t.length,e)}}validate(e,t){const a=e.getFullYear(),s=ke(a),i=e.getMonth();return s?t>=1&&t<=On[i]:t>=1&&t<=Tn[i]}set(e,t,a){return e.setDate(a),e.setHours(0,0,0,0),e}}class Wn extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"subpriority",1);o(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,a){switch(t){case"D":case"DD":return g(x.dayOfYear,e);case"Do":return a.ordinalNumber(e,{unit:"date"});default:return b(t.length,e)}}validate(e,t){const a=e.getFullYear();return ke(a)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,a){return e.setMonth(0,a),e.setHours(0,0,0,0),e}}function S(n,r,e){var D,O,T,q;const t=R(),a=(e==null?void 0:e.weekStartsOn)??((O=(D=e==null?void 0:e.locale)==null?void 0:D.options)==null?void 0:O.weekStartsOn)??t.weekStartsOn??((q=(T=t.locale)==null?void 0:T.options)==null?void 0:q.weekStartsOn)??0,s=u(n),i=s.getDay(),h=(r%7+7)%7,w=7-a,P=r<0||r>6?r-(i+w)%7:(h+w)%7-(i+w)%7;return fe(s,P)}class vn extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,a){switch(t){case"E":case"EE":case"EEE":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,a,s){return e=S(e,a,s),e.setHours(0,0,0,0),e}}class _n extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,a,s){const i=c=>{const h=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+h};switch(t){case"e":case"ee":return M(b(t.length,e),i);case"eo":return M(a.ordinalNumber(e,{unit:"day"}),i);case"eee":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeeee":return a.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,a,s){return e=S(e,a,s),e.setHours(0,0,0,0),e}}class Nn extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,a,s){const i=c=>{const h=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+h};switch(t){case"c":case"cc":return M(b(t.length,e),i);case"co":return M(a.ordinalNumber(e,{unit:"day"}),i);case"ccc":return a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"ccccc":return a.day(e,{width:"narrow",context:"standalone"});case"cccccc":return a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(e,{width:"wide",context:"standalone"})||a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,a,s){return e=S(e,a,s),e.setHours(0,0,0,0),e}}function En(n,r){const e=u(n),t=on(e),a=r-t;return fe(e,a)}class qn extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,a){const s=i=>i===0?7:i;switch(t){case"i":case"ii":return b(t.length,e);case"io":return a.ordinalNumber(e,{unit:"day"});case"iii":return M(a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),s);case"iiiii":return M(a.day(e,{width:"narrow",context:"formatting"}),s);case"iiiiii":return M(a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),s);case"iiii":default:return M(a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),s)}}validate(e,t){return t>=1&&t<=7}set(e,t,a){return e=En(e,a),e.setHours(0,0,0,0),e}}class Hn extends l{constructor(){super(...arguments);o(this,"priority",80);o(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,a){switch(t){case"a":case"aa":case"aaa":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,a){return e.setHours(Z(a),0,0,0),e}}class Fn extends l{constructor(){super(...arguments);o(this,"priority",80);o(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,a){switch(t){case"b":case"bb":case"bbb":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,a){return e.setHours(Z(a),0,0,0),e}}class Ln extends l{constructor(){super(...arguments);o(this,"priority",80);o(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,a){switch(t){case"B":case"BB":case"BBB":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,a){return e.setHours(Z(a),0,0,0),e}}class Cn extends l{constructor(){super(...arguments);o(this,"priority",70);o(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,a){switch(t){case"h":return g(x.hour12h,e);case"ho":return a.ordinalNumber(e,{unit:"hour"});default:return b(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,a){const s=e.getHours()>=12;return s&&a<12?e.setHours(a+12,0,0,0):!s&&a===12?e.setHours(0,0,0,0):e.setHours(a,0,0,0),e}}class Qn extends l{constructor(){super(...arguments);o(this,"priority",70);o(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,a){switch(t){case"H":return g(x.hour23h,e);case"Ho":return a.ordinalNumber(e,{unit:"hour"});default:return b(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,a){return e.setHours(a,0,0,0),e}}class In extends l{constructor(){super(...arguments);o(this,"priority",70);o(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,a){switch(t){case"K":return g(x.hour11h,e);case"Ko":return a.ordinalNumber(e,{unit:"hour"});default:return b(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,a){return e.getHours()>=12&&a<12?e.setHours(a+12,0,0,0):e.setHours(a,0,0,0),e}}class Rn extends l{constructor(){super(...arguments);o(this,"priority",70);o(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,a){switch(t){case"k":return g(x.hour24h,e);case"ko":return a.ordinalNumber(e,{unit:"hour"});default:return b(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,a){const s=a<=24?a%24:a;return e.setHours(s,0,0,0),e}}class $n extends l{constructor(){super(...arguments);o(this,"priority",60);o(this,"incompatibleTokens",["t","T"])}parse(e,t,a){switch(t){case"m":return g(x.minute,e);case"mo":return a.ordinalNumber(e,{unit:"minute"});default:return b(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,a){return e.setMinutes(a,0,0),e}}class Xn extends l{constructor(){super(...arguments);o(this,"priority",50);o(this,"incompatibleTokens",["t","T"])}parse(e,t,a){switch(t){case"s":return g(x.second,e);case"so":return a.ordinalNumber(e,{unit:"second"});default:return b(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,a){return e.setSeconds(a,0),e}}class Gn extends l{constructor(){super(...arguments);o(this,"priority",30);o(this,"incompatibleTokens",["t","T"])}parse(e,t){const a=s=>Math.trunc(s*Math.pow(10,-t.length+3));return M(b(t.length,e),a)}set(e,t,a){return e.setMilliseconds(a),e}}class Bn extends l{constructor(){super(...arguments);o(this,"priority",10);o(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return N(_.basicOptionalMinutes,e);case"XX":return N(_.basic,e);case"XXXX":return N(_.basicOptionalSeconds,e);case"XXXXX":return N(_.extendedOptionalSeconds,e);case"XXX":default:return N(_.extended,e)}}set(e,t,a){return t.timestampIsSet?e:m(e,e.getTime()-A(e)-a)}}class An extends l{constructor(){super(...arguments);o(this,"priority",10);o(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return N(_.basicOptionalMinutes,e);case"xx":return N(_.basic,e);case"xxxx":return N(_.basicOptionalSeconds,e);case"xxxxx":return N(_.extendedOptionalSeconds,e);case"xxx":default:return N(_.extended,e)}}set(e,t,a){return t.timestampIsSet?e:m(e,e.getTime()-A(e)-a)}}class Vn extends l{constructor(){super(...arguments);o(this,"priority",40);o(this,"incompatibleTokens","*")}parse(e){return pe(e)}set(e,t,a){return[m(e,a*1e3),{timestampIsSet:!0}]}}class jn extends l{constructor(){super(...arguments);o(this,"priority",20);o(this,"incompatibleTokens","*")}parse(e){return pe(e)}set(e,t,a){return[m(e,a),{timestampIsSet:!0}]}}const zn={G:new fn,y:new hn,Y:new mn,R:new wn,u:new gn,Q:new yn,q:new bn,M:new xn,L:new Mn,w:new pn,I:new kn,d:new Yn,D:new Wn,E:new vn,e:new _n,c:new Nn,i:new qn,a:new Hn,b:new Fn,B:new Ln,h:new Cn,H:new Qn,K:new In,k:new Rn,m:new $n,s:new Xn,S:new Gn,X:new Bn,x:new An,t:new Vn,T:new jn},Jn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Kn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zn=/^'([^]*?)'?$/,Sn=/''/g,Un=/\S/,er=/[a-zA-Z]/;function Mr(n,r,e,t){var $,X,G,k,p,L,U,ee;const a=sn(),s=(t==null?void 0:t.locale)??a.locale??le,i=(t==null?void 0:t.firstWeekContainsDate)??((X=($=t==null?void 0:t.locale)==null?void 0:$.options)==null?void 0:X.firstWeekContainsDate)??a.firstWeekContainsDate??((k=(G=a.locale)==null?void 0:G.options)==null?void 0:k.firstWeekContainsDate)??1,c=(t==null?void 0:t.weekStartsOn)??((L=(p=t==null?void 0:t.locale)==null?void 0:p.options)==null?void 0:L.weekStartsOn)??a.weekStartsOn??((ee=(U=a.locale)==null?void 0:U.options)==null?void 0:ee.weekStartsOn)??0;if(r==="")return n===""?u(e):m(e,NaN);const h={firstWeekContainsDate:i,weekStartsOn:c,locale:s},w=[new ln],P=r.match(Kn).map(d=>{const y=d[0];if(y in z){const Y=z[y];return Y(d,s.formatLong)}return d}).join("").match(Jn),D=[];for(let d of P){!(t!=null&&t.useAdditionalWeekYearTokens)&&Me(d)&&J(d,r,n),!(t!=null&&t.useAdditionalDayOfYearTokens)&&xe(d)&&J(d,r,n);const y=d[0],Y=zn[y];if(Y){const{incompatibleTokens:te}=Y;if(Array.isArray(te)){const ne=D.find(re=>te.includes(re.token)||re.token===y);if(ne)throw new RangeError(`The format string mustn't contain \`${ne.fullToken}\` and \`${d}\` at the same time`)}else if(Y.incompatibleTokens==="*"&&D.length>0)throw new RangeError(`The format string mustn't contain \`${d}\` and any other token at the same time`);D.push({token:y,fullToken:d});const j=Y.run(n,d,s.match,h);if(!j)return m(e,NaN);w.push(j.setter),n=j.rest}else{if(y.match(er))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if(d==="''"?d="'":y==="'"&&(d=tr(d)),n.indexOf(d)===0)n=n.slice(d.length);else return m(e,NaN)}}if(n.length>0&&Un.test(n))return m(e,NaN);const O=w.map(d=>d.priority).sort((d,y)=>y-d).filter((d,y,Y)=>Y.indexOf(d)===y).map(d=>w.filter(y=>y.priority===d).sort((y,Y)=>Y.subPriority-y.subPriority)).map(d=>d[0]);let T=u(e);if(isNaN(T.getTime()))return m(e,NaN);const q={};for(const d of O){if(!d.validate(T,h))return m(e,NaN);const y=d.set(T,q,h);Array.isArray(y)?(T=y[0],Object.assign(q,y[1])):T=y}return m(e,T)}function tr(n){return n.match(Zn)[1].replace(Sn,"'")}function Pr(n){const r=u(n);return r.setMinutes(0,0,0),r}function pr(n,r){const e=u(n),t=u(r);return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function Dr(n,r){const e=se(n),t=se(r);return+e==+t}function kr(n){const r=u(n);return r.setMilliseconds(0),r}function Tr(n,r){const e=u(n),t=u(r);return e.getFullYear()===t.getFullYear()}function Te(n,r){const e=u(n),t=e.getFullYear(),a=e.getDate(),s=m(n,0);s.setFullYear(t,r,15),s.setHours(0,0,0,0);const i=an(s);return e.setMonth(r,Math.min(a,i)),e}function Or(n,r){let e=u(n);return isNaN(+e)?m(n,NaN):(r.year!=null&&e.setFullYear(r.year),r.month!=null&&(e=Te(e,r.month)),r.date!=null&&e.setDate(r.date),r.hours!=null&&e.setHours(r.hours),r.minutes!=null&&e.setMinutes(r.minutes),r.seconds!=null&&e.setSeconds(r.seconds),r.milliseconds!=null&&e.setMilliseconds(r.milliseconds),e)}function Yr(n,r){const e=u(n);return e.setHours(r),e}function Wr(n,r){const e=u(n);return e.setMinutes(r),e}function vr(n,r){const e=u(n),t=Math.trunc(e.getMonth()/3)+1,a=r-t;return Te(e,e.getMonth()+a*3)}function _r(n,r){const e=u(n);return e.setSeconds(r),e}function Nr(n,r){const e=u(n);return isNaN(+e)?m(n,NaN):(e.setFullYear(r),e)}export{Yr as A,Pr as B,Wr as C,ur as D,_r as E,kr as F,Or as G,mr as H,vr as I,Te as J,se as K,E as L,B as M,br as a,fe as b,fr as c,Bt as d,le as e,dr as f,gr as g,he as h,Gt as i,ar as j,Nr as k,sr as l,lr as m,xr as n,pr as o,Mr as p,Tr as q,ir as r,cr as s,Dr as t,or as u,Ne as v,hr as w,wr as x,yr as y,rr as z}; diff --git a/js/date-fns@3.6.0-q9PkOyxq.js.gz b/js/date-fns@3.6.0-q9PkOyxq.js.gz new file mode 100644 index 00000000..36ede44d Binary files /dev/null and b/js/date-fns@3.6.0-q9PkOyxq.js.gz differ diff --git a/js/dayjs@1.11.10-BRzSdUgl.js b/js/dayjs@1.11.10-BRzSdUgl.js deleted file mode 100644 index d1dd0ba9..00000000 --- a/js/dayjs@1.11.10-BRzSdUgl.js +++ /dev/null @@ -1 +0,0 @@ -import{c as e}from"./call-bind@1.0.7-Cpj98o6Y.js";var o={exports:{}};(function(n,s){(function(l,Y){n.exports=Y(dayjs)})(e,function(l){function Y(_){return _&&typeof _=="object"&&"default"in _?_:{default:_}}var r=Y(l),m={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(_,d){return d==="W"?_+"周":_+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(_,d){var t=100*_+d;return t<600?"凌晨":t<900?"早上":t<1100?"上午":t<1300?"中午":t<1800?"下午":"晚上"}};return r.default.locale(m,null,!0),m})})(o); diff --git a/js/dayjs@1.11.10-BRzSdUgl.js.gz b/js/dayjs@1.11.10-BRzSdUgl.js.gz deleted file mode 100644 index 6f76c010..00000000 Binary files a/js/dayjs@1.11.10-BRzSdUgl.js.gz and /dev/null differ diff --git a/js/dayjs@1.11.10-C8LoRVP6.js b/js/dayjs@1.11.10-C8LoRVP6.js new file mode 100644 index 00000000..e10bb817 --- /dev/null +++ b/js/dayjs@1.11.10-C8LoRVP6.js @@ -0,0 +1 @@ +import{c as V,g as X}from"./call-bind@1.0.7-Cpj98o6Y.js";var q={exports:{}};(function(z,G){(function(O,D){z.exports=D()})(V,function(){var O=1e3,D=6e4,j=36e5,b="millisecond",d="second",y="minute",m="hour",v="day",C="week",M="month",U="quarter",p="year",L="date",J="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,K={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},F=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},R={s:F,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+F(r,2,"0")+":"+F(e,2,"0")},m:function s(n,t){if(n.date()1)return s(u[0])}else{var o=n.name;g[o]=n,e=o}return!r&&e&&(k=e),e||!r&&k},f=function(s,n){if(N(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new A(t)},a=R;a.l=W,a.i=N,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var A=function(){function s(t){this.$L=W(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(P);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)1&&(n=i(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,t)?Number.isInteger(Number(r[1]))?[]:{}:e[t],n,Array.prototype.slice.call(r,1))),Number.isInteger(Number(t))&&Array.isArray(e)?e.slice()[t]:Object.assign({},e,{[t]:n})}function l(e,n){if(e==null||n.length===0)return e;if(n.length===1){if(e==null)return e;if(Number.isInteger(n[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(n[0],1);const r={};for(const t in e)r[t]=e[t];return delete r[n[0]],r}if(e[n[0]]==null){if(Number.isInteger(n[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const r={};for(const t in e)r[t]=e[t];return r}return i(e,l(e[n[0]],Array.prototype.slice.call(n,1)),[n[0]])}function s(e,n){return n.map(r=>r.split(".")).map(r=>[r,u(e,r)]).filter(r=>!!r[1]).reduce((r,t)=>i(r,t[1],t[0]),{})}function c(e,n){return n.map(r=>r.split(".")).reduce((r,t)=>l(r,t),e)}export{c as a,s as d}; +function u(e,n){if(e==null)return;let r=e;for(let t=0;t1&&(n=i(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,t)?Number.isInteger(Number(r[1]))?[]:{}:e[t],n,Array.prototype.slice.call(r,1))),Number.isInteger(Number(t))&&Array.isArray(e)?e.slice()[t]:Object.assign({},e,{[t]:n})}function l(e,n){if(e==null||n.length===0)return e;if(n.length===1){if(e==null)return e;if(Number.isInteger(n[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(n[0],1);const r={};for(const t in e)r[t]=e[t];return delete r[n[0]],r}if(e[n[0]]==null){if(Number.isInteger(n[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const r={};for(const t in e)r[t]=e[t];return r}return i(e,l(e[n[0]],Array.prototype.slice.call(n,1)),[n[0]])}function s(e,n){return n.map(r=>r.split(".")).map(r=>[r,u(e,r)]).filter(r=>r[1]!==void 0).reduce((r,t)=>i(r,t[1],t[0]),{})}function c(e,n){return n.map(r=>r.split(".")).reduce((r,t)=>l(r,t),e)}export{c as a,s as d}; diff --git a/js/deep-pick-omit@1.2.1-CegYQlcN.js.gz b/js/deep-pick-omit@1.2.1-CegYQlcN.js.gz new file mode 100644 index 00000000..a5a52d42 Binary files /dev/null and b/js/deep-pick-omit@1.2.1-CegYQlcN.js.gz differ diff --git a/js/en-US-BIc6akN3.js b/js/en-US-BIc6akN3.js deleted file mode 100644 index 2212bbe1..00000000 --- a/js/en-US-BIc6akN3.js +++ /dev/null @@ -1 +0,0 @@ -import{y as Z}from"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const e="The current environment does not support full screen",ee={isEnabledFullscreen:e},oe=Object.freeze(Object.defineProperty({__proto__:null,default:ee,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="Configuration",t={Title:"Theme",Dark:"Dark",Light:"Light",PrimaryColorConfig:"Primary Color"},n="Display",c="Content Transition",te={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},ne=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:te},Symbol.toStringTag,{value:"Module"})),r="Reload Current Page",i="Lock",s="Setting",l="Github",a="Full Screen",m="Cancel Full Screen",g="Search",ce={Reload:r,Lock:i,Setting:s,Github:l,FullScreen:a,CancelFullScreen:m,Search:g},re=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:a,Github:l,Lock:i,Reload:r,Search:g,Setting:s,default:ce},Symbol.toStringTag,{value:"Module"})),u="Axios Request",p="Barcode",d="Cache Utils Demo",_="Precision",S="Right Click Menu",f="Home",b="Directive",h="Doc",T="Doc (China)",D="Doc(inside)",y="Chart",C="Form",P="Mock",O="Modal",R="MultiMenu(catch)",M="Office",v="Document",j="Presentation",L="Spreadsheet",k="QRCode",F="Rely",I="Rely About",U="Same Level Router Demo",x="Segment",w="SVG Icon",A="Table",z="Template Api",E="Scroll Reveal",Q="Table Pro",ie={Axios:u,Barcode:p,CacheDemo:d,CalculatePrecision:_,ContextMenu:S,Dashboard:f,Directive:b,Doc:h,DocLocal:T,DocLocalInside:D,Echart:y,Error:"Error Page",Form:C,Mock:P,Modal:O,MultiMenu:R,Office:M,Office_Document:v,Office_Presentation:j,Office_Spreadsheet:L,QRCode:k,Rely:F,RelyAbout:I,RouterDemo:U,Segment:x,SvgIcon:w,Table:A,TemplateHooks:z,scrollReveal:E,TablePro:Q},se=Object.freeze(Object.defineProperty({__proto__:null,Axios:u,Barcode:p,CacheDemo:d,CalculatePrecision:_,ContextMenu:S,Dashboard:f,Directive:b,Doc:h,DocLocal:T,DocLocalInside:D,Echart:y,Form:C,Mock:P,Modal:O,MultiMenu:R,Office:M,Office_Document:v,Office_Presentation:j,Office_Spreadsheet:L,QRCode:k,Rely:F,RelyAbout:I,RouterDemo:U,Segment:x,SvgIcon:w,Table:A,TablePro:Q,TemplateHooks:z,default:ie,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),N="Configuration",B={Title:"Theme",Dark:"Dark",Light:"Light",PrimaryColorConfig:"Primary Color"},G="Interface Display",le={Title:N,ThemeOptions:B,InterfaceDisplay:G},ae=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:G,ThemeOptions:B,Title:N,default:le},Symbol.toStringTag,{value:"Module"})),H="Register",$="Signing",q="QRCode Signing",V="please enter user name",J="please enter password",K="Login",W="User Name",X="User Password",Y="Fast Background Template",me={Register:H,Signing:$,QRCodeSigning:q,NamePlaceholder:V,PasswordPlaceholder:J,Login:K,Name:W,Password:X,RayTemplate:Y},ge=Object.freeze(Object.defineProperty({__proto__:null,Login:K,Name:W,NamePlaceholder:V,Password:X,PasswordPlaceholder:J,QRCodeSigning:q,RayTemplate:Y,Register:H,Signing:$,default:me},Symbol.toStringTag,{value:"Module"})),ue=Object.assign({"./en-US/globalMessage.json":oe,"./en-US/headerSettingOptions.json":ne,"./en-US/headerTooltip.json":re,"./en-US/menu.json":se,"./en-US/setting.json":ae,"./en-US/views/login/index.json":ge}),xe={message:{...Z(ue,"en-US")}};export{xe as default}; diff --git a/js/en-US-BIc6akN3.js.gz b/js/en-US-BIc6akN3.js.gz deleted file mode 100644 index 37693ff3..00000000 Binary files a/js/en-US-BIc6akN3.js.gz and /dev/null differ diff --git a/js/en-US-CwlGQXIX.js b/js/en-US-CwlGQXIX.js new file mode 100644 index 00000000..bd2ce92a --- /dev/null +++ b/js/en-US-CwlGQXIX.js @@ -0,0 +1 @@ +import{y as Z}from"./hooks-Dx3WCPci.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";const e="The current environment does not support full screen",ee={isEnabledFullscreen:e},oe=Object.freeze(Object.defineProperty({__proto__:null,default:ee,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="Configuration",t={Title:"Theme",Dark:"Dark",Light:"Light",PrimaryColorConfig:"Primary Color"},n="Display",r="Content Transition",te={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:r},ne=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:r,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:te},Symbol.toStringTag,{value:"Module"})),i="Reload Current Page",c="Lock",s="Setting",l="Github",a="Full Screen",m="Cancel Full Screen",p="Search",re={Reload:i,Lock:c,Setting:s,Github:l,FullScreen:a,CancelFullScreen:m,Search:p},ie=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:a,Github:l,Lock:c,Reload:i,Search:p,Setting:s,default:re},Symbol.toStringTag,{value:"Module"})),g="Axios Request",u="Barcode",d="Cache Utils Demo",_="Precision",S="Right Click Menu",f="Home",b="Directive",h="Doc",T="Doc (China)",D="Doc(inside)",y="Chart",C="Form",P="Mock",O="Modal",R="MultiMenu(catch)",M="Office",v="Document",j="Presentation",L="Spreadsheet",k="QRCode",F="Rely",I="Rely About",U="Same Level Router Demo",x="Segment",w="SVG Icon",A="Table",z="Template Api",E="Scroll Reveal",Q="Table Pro",ce={Axios:g,Barcode:u,CacheDemo:d,CalculatePrecision:_,ContextMenu:S,Dashboard:f,Directive:b,Doc:h,DocLocal:T,DocLocalInside:D,Echart:y,Error:"Error Page",Form:C,Mock:P,Modal:O,MultiMenu:R,Office:M,Office_Document:v,Office_Presentation:j,Office_Spreadsheet:L,QRCode:k,Rely:F,RelyAbout:I,RouterDemo:U,Segment:x,SvgIcon:w,Table:A,TemplateHooks:z,scrollReveal:E,TablePro:Q},se=Object.freeze(Object.defineProperty({__proto__:null,Axios:g,Barcode:u,CacheDemo:d,CalculatePrecision:_,ContextMenu:S,Dashboard:f,Directive:b,Doc:h,DocLocal:T,DocLocalInside:D,Echart:y,Form:C,Mock:P,Modal:O,MultiMenu:R,Office:M,Office_Document:v,Office_Presentation:j,Office_Spreadsheet:L,QRCode:k,Rely:F,RelyAbout:I,RouterDemo:U,Segment:x,SvgIcon:w,Table:A,TablePro:Q,TemplateHooks:z,default:ce,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),N="Configuration",B={Title:"Theme",Dark:"Dark",Light:"Light",PrimaryColorConfig:"Primary Color"},G="Interface Display",le={Title:N,ThemeOptions:B,InterfaceDisplay:G},ae=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:G,ThemeOptions:B,Title:N,default:le},Symbol.toStringTag,{value:"Module"})),H="Register",$="Signing",q="QRCode Signing",V="please enter user name",J="please enter password",K="Login",W="User Name",X="User Password",Y="Fast Background Template",me={Register:H,Signing:$,QRCodeSigning:q,NamePlaceholder:V,PasswordPlaceholder:J,Login:K,Name:W,Password:X,RayTemplate:Y},pe=Object.freeze(Object.defineProperty({__proto__:null,Login:K,Name:W,NamePlaceholder:V,Password:X,PasswordPlaceholder:J,QRCodeSigning:q,RayTemplate:Y,Register:H,Signing:$,default:me},Symbol.toStringTag,{value:"Module"})),ge=Object.assign({"./en-US/globalMessage.json":oe,"./en-US/headerSettingOptions.json":ne,"./en-US/headerTooltip.json":ie,"./en-US/menu.json":se,"./en-US/setting.json":ae,"./en-US/views/login/index.json":pe}),so={message:{...Z(ge,"en-US")}};export{so as default}; diff --git a/js/en-US-CwlGQXIX.js.gz b/js/en-US-CwlGQXIX.js.gz new file mode 100644 index 00000000..8cb0783b Binary files /dev/null and b/js/en-US-CwlGQXIX.js.gz differ diff --git a/js/evtd@0.2.4-CI_DDEu_.js b/js/evtd@0.2.4-CI_DDEu_.js new file mode 100644 index 00000000..722d007c --- /dev/null +++ b/js/evtd@0.2.4-CI_DDEu_.js @@ -0,0 +1 @@ +function P(r){return r.composedPath()[0]}const q={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function A(r,i,c){if(r==="mousemoveoutside"){const d=s=>{i.contains(P(s))||c(s)};return{mousemove:d,touchstart:d}}else if(r==="clickoutside"){let d=!1;const s=b=>{d=!i.contains(P(b))},u=b=>{d&&(i.contains(P(b))||c(b))};return{mousedown:s,mouseup:u,touchstart:s,touchend:u}}return console.error(`[evtd/create-trap-handler]: name \`${r}\` is invalid. This could be a bug of evtd.`),{}}function U(r,i,c){const d=q[r];let s=d.get(i);s===void 0&&d.set(i,s=new WeakMap);let u=s.get(c);return u===void 0&&s.set(c,u=A(r,i,c)),u}function B(r,i,c,d){if(r==="mousemoveoutside"||r==="clickoutside"){const s=U(r,i,c);return Object.keys(s).forEach(u=>{J(u,document,s[u],d)}),!0}return!1}function F(r,i,c,d){if(r==="mousemoveoutside"||r==="clickoutside"){const s=U(r,i,c);return Object.keys(s).forEach(u=>{K(u,document,s[u],d)}),!0}return!1}function G(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const r=new WeakMap,i=new WeakMap;function c(){r.set(this,!0)}function d(){r.set(this,!0),i.set(this,!0)}function s(n,e,t){const o=n[e];return n[e]=function(){return t.apply(n,arguments),o.apply(n,arguments)},n}function u(n,e){n[e]=Event.prototype[e]}const b=new WeakMap,W=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function x(){var n;return(n=b.get(this))!==null&&n!==void 0?n:null}function O(n,e){W!==void 0&&Object.defineProperty(n,"currentTarget",{configurable:!0,enumerable:!0,get:e??W.get})}const T={bubble:{},capture:{}},H={};function z(){const n=function(e){const{type:t,eventPhase:o,bubbles:a}=e,p=P(e);if(o===2)return;const w=o===1?"capture":"bubble";let f=p;const l=[];for(;f===null&&(f=window),l.push(f),f!==window;)f=f.parentNode||null;const h=T.capture[t],v=T.bubble[t];if(s(e,"stopPropagation",c),s(e,"stopImmediatePropagation",d),O(e,x),w==="capture"){if(h===void 0)return;for(let g=l.length-1;g>=0&&!r.has(e);--g){const m=l[g],k=h.get(m);if(k!==void 0){b.set(e,m);for(const E of k){if(i.has(e))break;E(e)}}if(g===0&&!a&&v!==void 0){const E=v.get(m);if(E!==void 0)for(const $ of E){if(i.has(e))break;$(e)}}}}else if(w==="bubble"){if(v===void 0)return;for(let g=0;gp(e))};return n.displayName="evtdUnifiedWindowEventHandler",n}const j=z(),M=I();function D(n,e){const t=T[n];return t[e]===void 0&&(t[e]=new Map,window.addEventListener(e,j,n==="capture")),t[e]}function C(n){return H[n]===void 0&&(H[n]=new Set,window.addEventListener(n,M)),H[n]}function L(n,e){let t=n.get(e);return t===void 0&&n.set(e,t=new Set),t}function y(n,e,t,o){const a=T[e][t];if(a!==void 0){const p=a.get(n);if(p!==void 0&&p.has(o))return!0}return!1}function N(n,e){const t=H[n];return!!(t!==void 0&&t.has(e))}function _(n,e,t,o){let a;if(typeof o=="object"&&o.once===!0?a=h=>{S(n,e,a,o),t(h)}:a=t,B(n,e,a,o))return;const w=o===!0||typeof o=="object"&&o.capture===!0?"capture":"bubble",f=D(w,n),l=L(f,e);if(l.has(a)||l.add(a),e===window){const h=C(n);h.has(a)||h.add(a)}}function S(n,e,t,o){if(F(n,e,t,o))return;const p=o===!0||typeof o=="object"&&o.capture===!0,w=p?"capture":"bubble",f=D(w,n),l=L(f,e);if(e===window&&!y(e,p?"bubble":"capture",n,t)&&N(n,t)){const v=H[n];v.delete(t),v.size===0&&(window.removeEventListener(n,M),H[n]=void 0)}l.has(t)&&l.delete(t),l.size===0&&f.delete(e),f.size===0&&(window.removeEventListener(n,j,w==="capture"),T[w][n]=void 0)}return{on:_,off:S}}const{on:J,off:K}=G();export{K as a,J as o}; diff --git a/js/evtd@0.2.4-CI_DDEu_.js.gz b/js/evtd@0.2.4-CI_DDEu_.js.gz new file mode 100644 index 00000000..c8d6c383 Binary files /dev/null and b/js/evtd@0.2.4-CI_DDEu_.js.gz differ diff --git a/js/hooks-DUpKDX8W.js b/js/hooks-DUpKDX8W.js deleted file mode 100644 index 598c8cb3..00000000 --- a/js/hooks-DUpKDX8W.js +++ /dev/null @@ -1,12 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-BIc6akN3.js","js/print-js@1.6.0-BdoEj60G.js","js/call-bind@1.0.7-Cpj98o6Y.js","js/vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js","js/lodash@4.17.21-Cw59kuJw.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-DmMZCkhi.js","js/currency.js@2.0.4-9OAR_aOO.js","js/lodash-es@4.17.21-BALnwRTu.js","js/@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js","js/@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js","js/utils-DvxnuKiq.js","js/interactjs@1.10.26-DZL_TZzP.js","js/pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js","js/destr@2.0.3-CVtkxrq9.js","js/deep-pick-omit@1.2.0-DyxInw53.js","js/echarts@5.5.0-CezqL3m-.js","js/zrender@5.5.0-DW8ownf1.js","js/tslib@2.3.0-BDyQ-Jie.js","js/@vue_runtime-core@3.5.6-CUaD_-7Q.js","js/@vue_reactivity@3.5.6-CXMPYrvZ.js","js/@vue_shared@3.5.6-6BrT-eFF.js","js/zh-CN-CeI0xlBH.js","js/index-CCVgw_kY.js","js/index-43Sr2ZDd.js","css/index-D_4DGt8i.css","js/index-CthhD5N4.js","js/instance-Mlryd73B.js","css/index-QAd2IBUs.css","js/BarcodeDemo-ChWYvWgI.js","js/index-DCDj5HZ8.js","js/index-CmEUgXeH.js","js/index-kcH3_LHw.js","css/index-DHYYVpM7.css","js/index-DsT8uWts.js","js/index-CZvHIHEr.js","js/index-DbiAk4nh.js","js/index-D1YBALoT.js","js/index-d7z__Ck2.js","js/index-DU0AD4bw.js","js/vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js","css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css","js/ray-dCjhX_JK.js","js/index-CPNbYLeV.js","css/index-B6yUFiKH.css","js/index-BKg9uIUv.js","js/index-E385tkq8.js","css/index-Dig957GB.css","js/index-Bpto_sNS.js","js/index-DbJuBYMf.js","css/index-Eq1L-L2-.css","js/TablePro-QnGoLe7d.js","js/mockjs@1.1.0-CxlURkif.js","js/index-BSxFfDS7.js","js/index-DT33t_LC.js","js/index-DQWUCipC.js","css/index-74sXJ5VP.css","js/index-C2xNskF6.js","css/index-b1h4j9PV.css"])))=>i.map(i=>d[i]); -var Ht=Object.defineProperty;var Yt=(e,t,n)=>t in e?Ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xe=(e,t,n)=>Yt(e,typeof t!="symbol"?t+"":t,n);import{s as Te,c as ye,t as Ke,i as pt,p as ae,o as Ue}from"./lodash-es@4.17.21-BALnwRTu.js";import{o as Xt,u as re,a as Jt,b as Zt,c as Ne,d as Qt,e as mt}from"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{p as en}from"./print-js@1.6.0-BdoEj60G.js";import{u as ht}from"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{g as le,i as G,s as We,a as De,c as tn,l as ft,b as gt,d as nn,e as L,r as ee,f as A,h as on,u as Ve,q as be,j as Oe,k as vt,p as yt,m as qe,n as Je,o as Re,t as an,v as rn,w as ln,x as sn,y as un,z as W}from"./utils-DvxnuKiq.js";import{i as Ze}from"./interactjs@1.10.26-DZL_TZzP.js";import{s as cn}from"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import{r as dn,u as oe,i as pn,a as mn,b as hn,c as fn,d as gn,e as vn,f as yn,g as Vn,h as bn,j as _n,k as Sn,l as wn,m as Cn,n as Tn,o as Nn,p as On,q as Rn,s as kn}from"./echarts@5.5.0-CezqL3m-.js";import{f as Pn,g as An}from"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import{c as Vt,o as bt,a as _t}from"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";const zr=(e,t)=>{if(typeof t!="string"||!t.trim())throw new TypeError("Expected prefix to be a non-empty string");const n={};return Object.keys(e).forEach(o=>{const r=e[o].default;let a=o.replace(`./${t}/`,"").replace(/^\.\//,"");const s=a.lastIndexOf(".");a=a.substring(0,s);const l=a.split("/"),i=l.shift(),u=l.join(".");i&&(u?(Te(n,i,n[i]||{}),Te(n[i],u,r)):Te(n,i,r||{}))}),n},xn="modulepreload",Mn=function(e){return"/ray-template/"+e},Qe={},R=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.all(n.map(l=>{if(l=Mn(l),l in Qe)return;Qe[l]=!0;const i=l.endsWith(".css"),u=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=i?"stylesheet":xn,i||(d.as="script"),d.crossOrigin="",d.href=l,s&&d.setAttribute("nonce",s),document.head.appendChild(d),i)return new Promise((h,f)=>{d.addEventListener("load",h),d.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>t()).catch(a=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a})},Ln=(e,t,n)=>{const o=e[t];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((r,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},In=async e=>{var n;const t={};for(const o of e){const r=await Ln(Object.assign({"../lang/en-US.ts":()=>R(()=>import("./en-US-BIc6akN3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),"../lang/zh-CN.ts":()=>R(()=>import("./zh-CN-CeI0xlBH.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))}),`../lang/${o.key}.ts`,3),a=o.key;a&&(t[a]=((n=r==null?void 0:r.default)==null?void 0:n.message)??{})}return t},jr=e=>{switch(e){case"zh-CN":return{locale:naive.zhCN,dateLocal:naive.dateZhCN};case"en-US":return{locale:null,dateLocal:null};default:return{locale:naive.zhCN,dateLocal:naive.dateZhCN}}},Dr={max:5,closable:!1},Fr="loading",St={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},En={icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},X={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},Br="",I={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},zn=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],$={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#a6e4f7","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},wt=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],jn="zh-CN",Dn="zh-CN",Fn={"zh-CN":"zh-cn","en-US":"en"},Bn="zh-cn",$r={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/},Kr={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},Q=Vue.ref(null),Ct=Vue.ref(null),$n={setupRouterLoadingBar:!0,setupRouterGuard:!0},Kn=["RLogin","ErrorPage","RayTemplateDoc"],me=["admin"],Ur=(e,t)=>{const n=Vue.ref(0),o=Vue.ref(0),r=Vue.ref(!1),{clickOutside:a}={},s=h=>{r.value=h},l=h=>{h.preventDefault(),s(!1),Vue.nextTick().then(()=>{const{clientX:f,clientY:m}=h;n.value=f,o.value=m,s(!0)})};a&&Xt(e,h=>{a(h)});const i=re(e,"contextmenu",l,t),u=re(e,"click",()=>{s(!1)});return{stop:()=>{i(),u()},x:Vue.readonly(n),y:Vue.readonly(o),show:Vue.readonly(r),updateShow:s}},_e=Vue.reactive({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function q(e,t,n){Object.hasOwn(_e,e)&&(_e[e]=t)}function we(e){return Vue.readonly(Vue.toRef(_e,e))}function Un(){return{...Vue.toRefs(Vue.readonly(_e))}}let U;const Wn=async()=>{const e=Kt(),t=await In(wt);return VueI18n.createI18n({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Dn})},Wr=async e=>{const t=await Wn();e.use(t),U=t},et=(e,t)=>t,se=e=>{if(!U)return{t:a=>et(e,a),locale:a=>{}};const{t,...n}=U.global;return{...n,t:(a,...s)=>a?!a.includes(".")&&!e?a:t(et(e,a),...s):"",locale:a=>{U.mode==="legacy"?U.global.locale=a:Vue.isRef(U.global.locale)?U.global.locale.value=a:U.global.locale=a}}},M=e=>e,qn={path:"/dashboard",component:()=>R(()=>import("./index-CCVgw_kY.js"),__vite__mapDeps([23,7,1,2,3,4,5,6,24,8,9,10,11,12,13,14,15,16,17,18,19,20,21,25])),meta:{i18nKey:M("menu.Dashboard"),icon:"dashboard",order:0}},Gn=Object.freeze(Object.defineProperty({__proto__:null,default:qn},Symbol.toStringTag,{value:"Module"})),Hn={path:"/axios",name:"RAxios",component:()=>R(()=>import("./index-CthhD5N4.js"),__vite__mapDeps([26,3,4,2,5,6,27,1,11,7,8,9,10,12,13,14,15,16,17,18,19,20,21,28])),meta:{i18nKey:M("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Yn=Object.freeze(Object.defineProperty({__proto__:null,default:Hn},Symbol.toStringTag,{value:"Module"})),Xn={path:"barcode",component:()=>R(()=>import("./BarcodeDemo-ChWYvWgI.js"),__vite__mapDeps([29,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},Jn=Object.freeze(Object.defineProperty({__proto__:null,default:Xn},Symbol.toStringTag,{value:"Module"})),Zn={path:"/cache-demo",component:()=>R(()=>import("./index-DCDj5HZ8.js"),__vite__mapDeps([30,1,2,3,4,5,6,11,7,8,9,10,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.CacheDemo"),icon:"other",order:3}},Qn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),eo={path:"/context-menu",component:()=>R(()=>import("./index-CmEUgXeH.js"),__vite__mapDeps([31,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.ContextMenu"),icon:"other",order:2}},to=Object.freeze(Object.defineProperty({__proto__:null,default:eo},Symbol.toStringTag,{value:"Module"})),no={path:"/directive",component:()=>R(()=>import("./index-5cxxl6_s.js"),[]),meta:{i18nKey:M("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},oo=Object.freeze(Object.defineProperty({__proto__:null,default:no},Symbol.toStringTag,{value:"Module"})),ao={path:"/echart",component:()=>R(()=>import("./index-kcH3_LHw.js"),__vite__mapDeps([32,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33])),meta:{i18nKey:M("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},ro=Object.freeze(Object.defineProperty({__proto__:null,default:ao},Symbol.toStringTag,{value:"Module"})),lo={path:"/form",component:()=>R(()=>import("./index-DsT8uWts.js"),__vite__mapDeps([34,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},so=Object.freeze(Object.defineProperty({__proto__:null,default:lo},Symbol.toStringTag,{value:"Module"})),io={path:"/iframe",component:()=>R(()=>import("./index-CZvHIHEr.js"),__vite__mapDeps([35,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},uo=Object.freeze(Object.defineProperty({__proto__:null,default:io},Symbol.toStringTag,{value:"Module"})),co={path:"/mock-demo",component:()=>R(()=>import("./index-DbiAk4nh.js"),__vite__mapDeps([36,7,1,2,3,4,5,6,27,11,8,9,10,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},po=Object.freeze(Object.defineProperty({__proto__:null,default:co},Symbol.toStringTag,{value:"Module"})),mo={path:"/modal-demo",component:()=>R(()=>import("./index-D1YBALoT.js"),__vite__mapDeps([37,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.Modal"),icon:"other",order:3}},ho=Object.freeze(Object.defineProperty({__proto__:null,default:mo},Symbol.toStringTag,{value:"Module"})),ve=()=>R(()=>Promise.resolve().then(()=>Ia),void 0),fo={path:"/multi",component:ve,meta:{i18nKey:M("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>R(()=>import("./index-BtZPyenx.js"),[]),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:ve,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>R(()=>import("./index-B6a_PCdD.js"),[]),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:ve,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>R(()=>import("./index-Cg1Whvge.js"),[]),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},go=Object.freeze(Object.defineProperty({__proto__:null,default:fo},Symbol.toStringTag,{value:"Module"})),vo={path:"/precision",component:()=>R(()=>import("./index-d7z__Ck2.js"),__vite__mapDeps([38,1,2,3,4,5,6,11,7,8,9,10,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.CalculatePrecision"),icon:"other",order:2}},yo=Object.freeze(Object.defineProperty({__proto__:null,default:vo},Symbol.toStringTag,{value:"Module"})),Vo={path:"/qrcode",component:()=>R(()=>import("./index-DU0AD4bw.js"),__vite__mapDeps([39,40,41,42])),meta:{i18nKey:M("menu.QRCode"),icon:"other",order:2}},bo=Object.freeze(Object.defineProperty({__proto__:null,default:Vo},Symbol.toStringTag,{value:"Module"})),_o={path:"rely-about",component:()=>R(()=>import("./index-CPNbYLeV.js"),__vite__mapDeps([43,44])),meta:{i18nKey:M("menu.RelyAbout"),icon:"rely",order:999}},So=Object.freeze(Object.defineProperty({__proto__:null,default:_o},Symbol.toStringTag,{value:"Module"})),wo={path:"/router-demo",component:ve,meta:{i18nKey:M("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>R(()=>import("./index-BKg9uIUv.js"),__vite__mapDeps([45,7,1,2,8,9,10,3,4,5,6,11,12,13,14,15,16,17,18,19,20,21])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>R(()=>import("./index-BRGdSJVO.js"),[]),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Co=Object.freeze(Object.defineProperty({__proto__:null,default:wo},Symbol.toStringTag,{value:"Module"})),To={path:"/scroll-reveal",component:()=>R(()=>import("./index-E385tkq8.js"),__vite__mapDeps([46,47])),meta:{i18nKey:M("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},No=Object.freeze(Object.defineProperty({__proto__:null,default:To},Symbol.toStringTag,{value:"Module"})),Oo={path:"/segment",component:()=>R(()=>import("./index-Bpto_sNS.js"),__vite__mapDeps([48,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Ro=Object.freeze(Object.defineProperty({__proto__:null,default:Oo},Symbol.toStringTag,{value:"Module"})),ko={path:"/svg-icons",component:()=>R(()=>import("./index-DbJuBYMf.js"),__vite__mapDeps([49,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21,50])),meta:{i18nKey:M("menu.SvgIcon"),icon:"other",order:3}},Po=Object.freeze(Object.defineProperty({__proto__:null,default:ko},Symbol.toStringTag,{value:"Module"})),Ao={path:"/table-pro",component:()=>R(()=>import("./TablePro-QnGoLe7d.js"),__vite__mapDeps([51,7,1,2,3,4,5,6,11,8,27,52,9,10,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},xo=Object.freeze(Object.defineProperty({__proto__:null,default:Ao},Symbol.toStringTag,{value:"Module"})),Mo={path:"/table",component:()=>R(()=>import("./index-BSxFfDS7.js"),__vite__mapDeps([53,11,7,1,2,3,4,5,6,8,9,10,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Lo=Object.freeze(Object.defineProperty({__proto__:null,default:Mo},Symbol.toStringTag,{value:"Module"})),Io={path:"/template-hooks",component:()=>R(()=>import("./index-DT33t_LC.js"),__vite__mapDeps([54,7,1,2,3,4,5,6,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:M("menu.TemplateHooks"),icon:"other",order:1}},Eo=Object.freeze(Object.defineProperty({__proto__:null,default:Io},Symbol.toStringTag,{value:"Module"})),zo=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Gn,"/src/router/modules/demo/axios.ts":Yn,"/src/router/modules/demo/barcode.ts":Jn,"/src/router/modules/demo/cache-demo.ts":Qn,"/src/router/modules/demo/context-menu.ts":to,"/src/router/modules/demo/directive.ts":oo,"/src/router/modules/demo/echart.ts":ro,"/src/router/modules/demo/form.ts":so,"/src/router/modules/demo/iframe.ts":uo,"/src/router/modules/demo/mock.ts":po,"/src/router/modules/demo/modal.ts":ho,"/src/router/modules/demo/multi-menu.ts":go,"/src/router/modules/demo/precision.ts":yo,"/src/router/modules/demo/qrcode.ts":bo,"/src/router/modules/demo/rely.ts":So,"/src/router/modules/demo/router-demo.ts":Co,"/src/router/modules/demo/scroll-reveal.ts":No,"/src/router/modules/demo/segment.ts":Ro,"/src/router/modules/demo/svg-icons.ts":Po,"/src/router/modules/demo/table-pro.ts":xo,"/src/router/modules/demo/table.ts":Lo,"/src/router/modules/demo/template-hooks.ts":Eo});return Object.keys(e).reduce((n,o)=>{const r=e[o].default;if(r)n.push(r);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return n},[])},jo=e=>e[0]==="/",Tt=(e,t=[],n="")=>{var o;if(!Array.isArray(e))return[];for(const r of e){const a=n+(jo(r.path)?r.path:"/"+r.path);if((o=r.children)!=null&&o.length){Tt(r.children,t,a);continue}else t.push({...r,path:a})}return t},Do=e=>Array.isArray(e)?Tt(ye(e)):[],Fo=e=>e.sort((t,n)=>{var a,s;const o=((a=t.meta)==null?void 0:a.order)??1,r=((s=n.meta)==null?void 0:s.order)??0;if(typeof o!="number"||typeof r!="number")throw new TypeError("orderRoutes error: order must be a number!");return o===r?t.name?n.name?t.name.localeCompare(n.name):-1:1:o-r}),Bo=e=>{const{beforeEach:t}=e,{getRootPath:n}=ne(),o=(r,a)=>r.path==="/"||a.path==="/login";t((r,a,s)=>{const l=le(I.token,"localStorage"),i=le(I.appMenuKey,"sessionStorage",{defaultValue:n.value}),{meta:u,name:d}=r;l!==null?o(r,a)?ke(!0):!G(d,"Symbol")&&d&&Kn.includes(d)?s():Dt(u)?o(r,a)?i?s(i):ke(!0):s():ke(!0):o(r,a)?s():s("/")})},ke=(e=!0)=>{const{router:t}=Ge(),{push:n,replace:o}=t,{getRootPath:r}=ne();We(I.appMenuKey,r.value,"localStorage"),e?o(r.value):n(r.value)},$o=e=>{var n;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(n=Q.value)==null||n.scrollTo({top:0,left:0,behavior:"smooth"})},Ko=e=>{e.beforeEach(()=>{var t;(t=window.$loadingBar)==null||t.start()}),e.afterEach(()=>{var t;(t=window.$loadingBar)==null||t.finish()}),e.onError(()=>{var t;(t=window.$loadingBar)==null||t.error()})},Nt=e=>{const{meta:t={}}=e,{hidden:n,sameLevel:o,env:r}=t,{MODE:a}=De();return!(o||n||r&&typeof r=="string"&&r!==a||r&&Array.isArray(r)&&!r.includes(a))};var Uo={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^4.0.1","print-js":"^1.6.0",vue:"^3.5.6","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ot=Pinia.defineStore("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Uo,{locale:t}=se(),{locale:n}=gr(),o=Vue.reactive({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Kt(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15},appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:Object.assign({},En)}),r=l=>{t(l),n(l),o.localeLanguage=l,We(I.localeLanguage,l,"localStorage")},a=(l,i=.3)=>{const u=tn(l,i),d={primaryColor:l,primaryColorHover:l,primaryColorPressed:l};o.primaryColorOverride.common=d;const h=document.body;h.style.setProperty("--ray-theme-primary-color",l),h.style.setProperty("--ray-theme-primary-fade-color",u)},s=(l,i,u)=>{Object.hasOwn(o,l)&&(o[l]=i),u==null||u()};return Pn(()=>o.appTheme,l=>{l?o.primaryColorOverride=Object.assign({},o.primaryColorOverride,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):o.primaryColorOverride=Object.assign({},o.primaryColorOverride,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...Vue.toRefs(o),updateLocale:r,changePrimaryColor:a,updateSettingState:s}},{persist:{key:I.appPiniaSettingStore}}),Wo={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>ft()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>gt()},onRegister:{type:[Function,Array],default:null}},qo=nn(),tt="__R_CHART_DOWN_LOAD_CHART__";qo.forEach(e=>{dn(e.name,e.theme)});const qr=Vue.defineComponent({name:"RChart",props:Wo,setup(e,{expose:t}){const{getAppTheme:n}=D(),o=Vue.useTemplateRef("rayChartRef"),r=Vue.useTemplateRef("rayChartWrapperRef"),a=Vue.shallowRef();let s,l;const{echartTheme:i}=$;let u;const d=Vue.computed(()=>[{label:"下载图片",key:tt,disabled:!(a.value&&a.value.getDom())}]),h=Vue.computed(()=>({"--ray-chart-width":L(e.width),"--ray-chart-height":L(e.height)})),f=Vue.ref(!1);let m;const p={aria:e.showAria},g=async()=>{var S;oe([mn,hn,fn,gn,vn,yn,Vn,bn]),oe([_n,Sn,wn,Cn,Tn,Nn]),oe([On,Rn]),oe([kn]);try{oe((S=e.use)==null?void 0:S.filter(Boolean))}catch(P){console.error("[RChart register error]: ",P)}},v=()=>{if(a.value&&_(),e.theme==="default"){e.autoChangeTheme?c("dark"):c("");return}if(e.theme)c(e.theme);else{const S=e.autoChangeTheme&&n.value?`${i}-dark`:i;c(S)}},y=S=>{let P=Vue.unref(S);return P=(E=>Object.assign({},P,E))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),P},c=(S=i)=>{var de;const P=o.value,x=y(e.options),{height:E,width:F}=P.getBoundingClientRect(),{onSuccess:H,onError:ce}=e;try{a.value=pn(P,S,{width:F===0?200:void 0,height:E===0?200:void 0}),H&&A(H,a.value),e.nextTick?(a.value.setOption({}),Vue.nextTick(()=>{var B;x&&((B=a.value)==null||B.setOption(x))})):x&&((de=a.value)==null||de.setOption(x))}catch(B){throw ce&&A(ce),new Error(`[RChart render error]: ${B}`)}finally{const{onFinally:B}=e;B&&A(B)}},b=()=>{var S;return!!((S=a.value)!=null&&S.isDisposed())},_=()=>{var S;b()||(S=a.value)==null||S.dispose()},O=()=>{a.value&&a.value.resize()},V=(S,P)=>{if(S===tt&&!b()){const{filename:E,...F}=e.downloadOptions;on(a.value.getDataURL(F),E??`${new Date().getTime()}`)}const{onDropdownSelect:x}=e;x&&A(x,S,P)},C=()=>{var P;if(e.autoResize&&(s||(s=Ke(O,500)),l||(l=Zt(e.autoResizeObserverTarget||r,s))),(P=a.value)!=null&&P.getDom()||!f.value&&e.intersectionObserver)return;v(),m==null||m.stop();const{onRegister:S}=e;S&&a.value&&A(S,a.value,C,k)},k=()=>{_(),s==null||s.cancel(),l==null||l.stop(),m==null||m.stop(),m=null,s=null,l=null};return Vue.watch(()=>n.value,()=>{e.autoChangeTheme&&(_(),v())}),Vue.watchEffect(()=>{var S,P;e.intersectionObserver&&(m=Jt(e.intersectionObserverTarget||r,([x])=>{f.value=x.isIntersecting},e.intersectionOptions)),e.watchOptions?u=An(()=>e.options,x=>{var H;const E=y(x),F=Object.assign({},gt(),e.setChartOptions);(H=a.value)==null||H.setOption(E,F)},{deep:!0,throttle:e.watchOptionsThrottleWait}):u==null||u(),e.loading?(S=a.value)==null||S.showLoading(ft(e.loadingOptions)):(P=a.value)==null||P.hideLoading(),e.showAria!==p.aria&&a.value&&(a.value.setOption(y(e.options)),p.aria=e.showAria),f.value&&!b()&&C()}),t(),Vue.onBeforeMount(async()=>{await g()}),Vue.onMounted(()=>{C()}),Vue.onBeforeUnmount(()=>{k(),u==null||u()}),{rayChartRef:o,cssVarsRef:h,rayChartWrapperRef:r,moreDropDownOptions:d,dropdownSelect:V}},render(){const{title:e,contentStyle:t,preset:n,moreDropDownOptions:o,dropdownSelect:r,bordered:a,dropdownOptions:s}=this,{cardExtra:l}=this.$slots;return n==="card"?Vue.createVNode(naive.NCard,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:a,embedded:!0},{default:ee(Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ee(e,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":ee(l,{defaultElement:Vue.createVNode(Pt,{iconSize:18,cursor:"pointer",options:s||o,trigger:"click",onSelect:r.bind(this),placement:"bottom-end"},null)})}):Vue.createVNode("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),Gr=()=>{let e,t,n;const o=(i,u,d)=>{i&&(e=i,t=d,n=u)},r=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:t,render:n,echartInst:e}};return[o,{getChartInstance:r,isDisposed:()=>{var i;return!!((i=r().echartInst)!=null&&i.isDisposed())},dispose:()=>r().dispose.call(null),render:()=>r().render.call(null)}]},Go={actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!1},onUpdateValue:{type:[Function,Array],default:null},"onUpdate:value":{type:[Function,Array],default:null},...naive.gridProps},Hr=Vue.defineComponent({name:"RCollapseGrid",props:Go,setup(e){const t=Vue.computed({get:()=>!e.open,set:a=>{const{onUpdateValue:s,"onUpdate:value":l}=e;s&&A(s,a),l&&A(l,a)}}),n=Vue.computed(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{t.value=!t.value};return{modelCollapsed:t,collapseClick:o,CollapseIcon:()=>Vue.createVNode("div",{class:"collapse-icon",onClick:o.bind(this)},[Vue.createVNode("span",null,[t.value?e.collapseToggleText[0]:e.collapseToggleText[1]]),Vue.createVNode(N,{customClassName:`collapse-icon--arrow ${t.value?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]),cssVars:n}},render(){const{$slots:{collapse:e,action:t,default:n},CollapseIcon:o,$props:r,modelCollapsed:a,xGap:s,yGap:l,collapsedRows:i,cssVars:u}=this;return Vue.createVNode(naive.NCard,{bordered:this.bordered,style:[u]},{default:()=>Vue.createVNode(naive.NGrid,Vue.mergeProps({class:"ray-collapse-grid"},r,{collapsed:a,xGap:s||12,yGap:l||12,collapsedRows:i}),{default:()=>[n==null?void 0:n(),Vue.createVNode(naive.NGridItem,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"end",align:"center"},{default:()=>[t==null?void 0:t(),e?e(a):o()]})]})]})})}}),Ho={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},N=Vue.defineComponent({name:"RIcon",props:Ho,setup(e){const t=Vue.computed(()=>`#${e.prefix}-${e.name}`),n=Vue.computed(()=>({"--ray-icon-width":e.width?L(e.width):L(e.size),"--ray-icon-height":e.height?L(e.height):L(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:t,cssVars:n,iconClick:r=>{const{onClick:a}=e;a&&A(a,r)}}},render(){return Vue.createVNode("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[Vue.createVNode("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[Vue.createVNode("use",Vue.mergeProps({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),Yo={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:[Boolean,String],default:!0},iframeClass:{type:String,default:null}},Yr=Vue.defineComponent({name:"RIframe",props:Yo,setup(e,{expose:t}){const n=Vue.computed(()=>({"--ray-iframe-frameborder":L(e.frameborder),"--ray-iframe-width":L(e.width),"--ray-iframe-height":L(e.height)})),o=Vue.useTemplateRef("iframeRef"),r=Vue.ref(!0),a=l=>{r.value=!1;const{onSuccess:i}=e;i&&A(i,o.value,l)},s=l=>{r.value=!1;const{onError:i}=e;i&&A(i,l)};return re(o,"load",a),re(o,"error",s),t({iframeInst:o}),{cssVars:n,iframeRef:o,spinShow:r}},render(){return Vue.createVNode("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[Vue.createVNode(naive.NSpin,Vue.mergeProps(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>Vue.createVNode("iframe",{class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title,loading:typeof this.lazy=="boolean"?"lazy":this.lazy},null)})])}}),Xo={...naive.modalProps,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},Jo=(e,t,n)=>{const{scheduler:o}=n??{};return new Promise(r=>{setTimeout(()=>{const a=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const s=Ze(e).draggable({inertia:!0,autoScroll:!0,allowFrom:a,modifiers:[Ze.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:l=>{o==null||o(l)}}}).resizable(!1);r(s)}},30)})},Rt=(e,t)=>{const n=typeof e=="string"?document.querySelector(e):e;return new Promise((o,r)=>{if(n){n.setAttribute("can-drag","true");const{preset:a,dargCallback:s}=t;let{x:l,y:i}=t;Jo(n,a,{scheduler:u=>{const d=u.target;l+=u.dx,i+=u.dy,d.style.transform=`translate(${l}px, ${i}px)`,s==null||s(l,i,u)}}).then(u=>{o(u)})}else r()})},Zo="r-modal__preset-card--fullscreen",kt="r-modal",te={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},Xr=Vue.defineComponent({name:"RModal",props:Xo,setup(e){const t=Vue.computed(()=>({[te.width]:L(e.width??600),[te.cardWidth]:L(e.cardWidth??600),[te.dialogWidth]:L(e.dialogWidth??446)})),n=Ve();let o;const r={x:0,y:0},a=Vue.computed(()=>e.preset==="card"&&e.fullscreen);return Vue.watch(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?Vue.nextTick(()=>{const l=document.getElementById(n);l&&Rt(l,{preset:e.preset,x:r.x,y:r.y,dargCallback:(i,u)=>{r.x=i,r.y=u}}).then(i=>{o=i}),e.memo&&l&&(l.style.transform=`translate(${r.x}px, ${r.y}px)`)}):(o==null||o.unset(),o=null)},{immediate:!0}),{cssVars:t,isFullscreenCardType:a,uuidEl:n}},render(){const{$props:e,$slots:t,$attrs:n}=this,{preset:o,...r}=e,{cssVars:a,uuidEl:s,isFullscreenCardType:l}=this;return Vue.createVNode(naive.NModal,Vue.mergeProps({class:[kt,l?Zo:""],style:[a,l?"height: 100vh":""],preset:o},{id:s},r,n),{...t})}}),Jr=()=>{const{create:e,destroyAll:t}=naive.useModal();return{create:o=>{const{content:r,...a}=o;let s=r;a.preset==="card"&&a.fullscreen&&(s=()=>Vue.h(naive.NScrollbar,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"none",style:{width:"auto",height:"calc(100vh - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof r=="function"?r():r}));const{preset:l,dad:i,fullscreen:u,width:d,cardWidth:h,dialogWidth:f}=o,m=e({...a,content:s}),{key:p}=m,g={[te.width]:L(d??600),[te.cardWidth]:L(h??600),[te.dialogWidth]:L(f??446)};return Vue.nextTick(()=>{const[v]=be(`[internalkey="${p}"]`)||[];if(v){if(i&&Rt(v,{preset:l,x:0,y:0}),u&&l==="card"){const y=v.querySelector(".n-card__content");y&&Oe(y,{maxHeight:"calc(100vh - 9px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))",overflowY:"hidden",padding:"0"}),Oe(v,{width:"100%",height:"100vh"})}Oe(v,g),vt(v,kt)}}),m},destroyAll:t}},Qo={...naive.dropdownProps,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function ea(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Pt=Vue.defineComponent({name:"RMoreDropdown",props:Qo,render(){let e;const{iconSize:t,cursor:n,icon:o}=this,{default:r}=this.$slots;return Vue.createVNode(naive.NDropdown,Vue.mergeProps(this.$props,this.$attrs,{placement:"bottom-start"}),ea(e=ee(r,{defaultElement:Vue.createVNode(N,{name:o,size:t,cursor:n},null)}))?e:{default:()=>[e]})}}),ie={...naive.dataTableProps,renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!1},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},K={tableIconSize:"18",tableKey:Symbol("r-table")},ta=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],na=Vue.defineComponent({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...ie},setup(e){return{size:Vue.ref(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:r=>{const{onChangeSize:a}=e;a&&A(a,r)}}},render(){return Vue.createVNode(naive.NPopselect,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(N,{name:"adjustment",size:K.tableIconSize,cursor:"pointer"},null)]})}}),oa=Vue.defineComponent({name:"TableFullscreen",setup(){const{wrapperRef:e}=Vue.inject(K.tableKey,{}),[t,{toggleFullscreen:n,isEnabled:o}]=ht(e);return{toggleFullscreen:n,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:t,$t:n}=this;return Vue.createVNode(N,{name:"fullscreen",size:K.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(n("globalMessage.isEnabledFullscreen")),e()}},null)}}),aa=()=>Vue.createVNode(N,{name:"draggable",size:14,cursor:"grab"},null),nt=({icon:e,title:t,onClick:n,customClassName:o})=>Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:e,size:K.tableIconSize,cursor:"pointer",customClassName:o,onClick:n==null?void 0:n.bind(null)},null),default:()=>t}),Fe=(e,t)=>{if(!t)return[null,null];for(let n=0;nye(e.columns).filter(i=>i.type?(t=i,!1):!0).map((i,u)=>{const{key:d,title:h,children:f,fixed:m,isResizable:p,...g}=i,v=m==="left",y=m==="right",c={...g,title:h,key:d,fixed:m,isLeftFixedActivated:v,isRightFixedActivated:y,isResizable:p};return{...c,suffix:()=>Vue.createVNode(naive.NFlex,{style:"padding-left: 32px;"},{default:()=>[Vue.createVNode(nt,{icon:"row_head",title:"固定在列首",customClassName:v?Pe:"",onClick:a.bind(this,"left",c,u)},null),Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:"resize_h",size:K.tableIconSize,cursor:"pointer",customClassName:p?Pe:"",onClick:r.bind(this,c,u)},null),default:()=>"修改列宽"}),Vue.createVNode(nt,{icon:"row_end",title:"固定在列尾",customClassName:y?Pe:"",onClick:a.bind(this,"right",c,u)},null)]})}}),set:()=>{}}),o=l=>{const{onUpdateColumn:i}=e;i&&A(i,l)},r=(l,i)=>{l.isResizable=!l.isResizable,l.resizable=l.isResizable,n.value[i]=l,o(n.value)},a=(l,i,u)=>{const d=`${l}FixedActivated`,h=`${l==="left"?"right":"left"}FixedActivated`;i[h]=!1,i[d]=!i[d],i[d]?i.fixed=l:i.fixed=void 0,n.value[u]=i,o(n.value)};return{treeDataSource:n,treeDrop:({node:l,dragNode:i,dropPosition:u})=>{const[d,h]=Fe(i,n.value);if(d===null||h===null)return;d.splice(h,1);const[f,m]=Fe(l,n.value);f===null||m===null||(u==="before"?f.splice(m,0,i):f.splice(m+1,0,i),pt(t)||f.unshift(t),o(f))}}},render(){return Vue.createVNode(naive.NPopover,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:"setting",size:K.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>Vue.createVNode(naive.NTree,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:aa.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),la=Vue.defineComponent({name:"TablePrint",props:ie,setup(e){const{wrapperRef:t}=Vue.inject(K.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:r}={},title:a}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof a=="string"?a:""),yt(t,{printOptions:o,domToImageOptions:r})}}},render(){return Vue.createVNode(N,{name:"print",size:K.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),sa=Vue.defineComponent({name:"TablePropsSelect",props:{...ie,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=Vue.ref(!1),n=Vue.ref([]),o=a=>{const{onPopselectChange:s}=e;s&&A(s,a)};return(()=>{const{striped:a,bordered:s,onInitialed:l}=e;a&&n.value.push("striped"),s&&n.value.push("bordered"),l&&A(l,n.value)})(),{propsPopselectValue:n,popoverShow:t,updatePopselectValue:o}},render(){return Vue.createVNode(naive.NPopselect,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:ta,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(N,{name:"expanded",size:K.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function ia(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Zr=Vue.defineComponent({name:"RTable",inheritAttrs:!1,props:ie,setup(e,t){const{expose:n,emit:o}=t,r=Vue.useTemplateRef("rTableInst"),a=Vue.useTemplateRef("wrapperRef"),s=Ve(16),l=Ve(16),i=Vue.reactive({x:0,y:0,showContextMenu:!1}),u=Vue.reactive({size:e.size}),d=Vue.ref(Object.assign({striped:!1,bordered:!1},ae(e,"striped","bordered"))),h=(c,b)=>{const{onContextMenuClick:_}=e;_&&A(_,c,b),i.showContextMenu=!1},f=(c,b)=>{var O;return{...(O=e.rowProps)==null?void 0:O.call(e,c,b),onContextmenu:e.disabledContextMenu?void 0:V=>{V.preventDefault(),i.showContextMenu=!1,Vue.nextTick().then(()=>{i.showContextMenu=!0,i.x=V.clientX,i.y=V.clientY})}}},m=c=>{u.size=c},p=c=>{const{onUpdateColumns:b,"onUpdate:columns":_}=e;b&&A(b,c),_&&A(_,c)},g=()=>{const{toolOptions:c}=e;return c==null?void 0:c.filter(Boolean).map(b=>typeof b=="function"?b():b)},v=c=>{Object.keys(d.value).forEach(_=>{d.value[_]=c.includes(_)})},y=c=>{const{tool:b}=c;if(!b)return;const _=()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(la,c,null),Vue.createVNode(na,Vue.mergeProps(c,{onChangeSize:m.bind(this)}),null),Vue.createVNode(oa,null,null),Vue.createVNode(ra,Vue.mergeProps(c,{onUpdateColumn:p.bind(this)}),null),Vue.createVNode(sa,Vue.mergeProps(c,{onPopselectChange:v.bind(this),onInitialed:v.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let O;return Vue.createVNode(naive.NFlex,{align:"center"},ia(O=g())?O:{default:()=>[O]})}:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[_(),g()]}):_};return Vue.onMounted(()=>{const{onRegister:c}=e;c&&r.value&&A(c,r.value,{uuidTable:l,uuidWrapper:s,wrapperRef:a})}),Vue.provide(K.tableKey,{uuidTable:l,uuidWrapper:s,wrapperRef:a}),n(),{uuidWrapper:s,uuidTable:l,contextMenuReactive:i,rTableInst:r,combineRowProps:f,contextMenuSelect:h,privateReactive:u,tool:y,wrapperRef:a,propsPopselectValue:d}},render(){const{$props:e,$attrs:t,wrapperBordered:n,uuidWrapper:o,privateReactive:r,disabledContextMenu:a,contextMenuReactive:s,contextMenuOptions:l,uuidTable:i,title:u,$slots:d,propsPopselectValue:h,renderWrapperHeader:f}=this,{class:m}=t,{tool:p,combineRowProps:g,contextMenuSelect:v}=this;return Vue.createVNode(naive.NCard,Vue.mergeProps(e.cardProps,{id:o},{ref:"wrapperRef",bordered:n,class:m}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NDataTable,Vue.mergeProps({id:i},t,e,h,{rowProps:g.bind(this),size:r.size,ref:"rTableInst"}),{...d}),a?null:Vue.createVNode(naive.NDropdown,{show:s.showContextMenu,placement:"bottom-start",trigger:"manual",x:s.x,y:s.y,options:l,onClickoutside:()=>s.showContextMenu=!1,onSelect:v.bind(this)},null)]),header:f?ee(u,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var y;return(y=d.tableFooter)==null?void 0:y.call(d)},action:()=>{var y;return(y=d.tableAction)==null?void 0:y.call(d)}})}}),Qr=()=>{const e=Vue.ref();let t={};const n=(m,p)=>{m&&(e.value=m,t=p)},o=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[n,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:m=>o().downloadCsv.call(null,m),filters:m=>o().filters.call(null,m),page:m=>o().page.call(null,m),scrollTo:m=>o().scrollTo(m),sort:(m,p)=>o().sort.call(null,m,p),print:m=>{const{uuidWrapper:p}=t;if(p){const g=document.getElementById(p);yt(g,m)}},filter:m=>o().filter.call(null,m)}]},At=(e,t,n)=>{var o;if(e.length)for(const r of e){if(r[t]===n)return r;if((o=r==null?void 0:r.children)!=null&&o.length){const a=At(r.children,t,n);if(a)return a}}},ot=e=>{const t=Vue.unref(e);return t?t.findIndex(o=>{const{type:r,multiple:a}=o;if(r==="selection"&&(a==null||a===!0))return!0})!==-1:!0},ua=(e,t,n,o)=>{const r=Vue.unref(e);return r?t.reduce((a,s)=>{const l=Vue.unref(n).findIndex(u=>u[o]===s);if(l!==-1)return a.push(Vue.unref(n)[l]),a;const i=r.findIndex(u=>u[o]===s);return i!==-1&&a.push(r[i]),a},[]):n},el=(e,t,n)=>{const o=Vue.ref([]),r=Vue.ref([]),{rowKey:a="key",onChange:s}=n||{},l=Vue.computed(()=>ot(t)),i=(p,g,v)=>{o.value=p,r.value=Vue.unref(ua(e,p,r,a)),s==null||s(p,r.value,v),ot(t)},u=()=>o.value,d=()=>r.value,h=()=>{o.value=[],r.value=[],s==null||s(o.value,r.value,{row:void 0,action:"uncheckAll"})},f=p=>{if(p==null)return;let g;o.value=o.value.filter(v=>v!==p),r.value=r.value.filter(v=>v[a]===p?(g=v,!1):!0),s==null||s(o.value,r.value,{row:g,action:"uncheck"})},m=p=>{if(o.value.includes(p))return;const g=!l.value&&o.value.length>=1,v=At(Vue.unref(e)||[],a,p);g?o.value=[p]:o.value.push(p),v&&(g?r.value=[v]:r.value.push(v),s==null||s(o.value,r.value,{row:v,action:"check"}))};return qe(()=>{h()}),[o,{checkedRows:r,checkedRowKeysBind:i,getKeys:u,getRows:d,clearAll:h,clearKey:f,selectKey:m}]},ca={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},da=Vue.defineComponent({name:"RTransitionComponent",__name:"index",props:Vue.mergeDefaults({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},ca),setup(e){const{getKeepAliveInclude:t}=Na(),{setupKeepAlive:n,maxKeepAliveLength:o,keepAliveExclude:r}=St;return(a,s)=>{const l=Vue.resolveComponent("RouterView");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(l,null,{default:Vue.withCtx(({Component:i,route:u})=>[i?(Vue.openBlock(),Vue.createBlock(Vue.Transition,{key:0,name:a.transitionPropName,mode:a.transitionMode,appear:a.transitionAppear},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.Suspense,null,{default:Vue.withCtx(()=>[Vue.unref(n)?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,max:Vue.unref(o),include:Vue.unref(t),exclude:Vue.unref(r)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(i),{key:u.fullPath}))],1032,["max","include","exclude"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(i),{key:u.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vue.createCommentVNode("",!0)]),_:1})])}}}),pa={...naive.formProps,onRegister:{type:[Function,Array],default:null}},tl=Vue.defineComponent({name:"RForm",props:pa,setup(e,{expose:t}){const n=Vue.useTemplateRef("formRef");return Vue.onMounted(()=>{const{onRegister:o}=e;o&&n.value&&A(o,n.value)}),t(),{formRef:n}},render(){const{$attrs:e,$props:t,$slots:n}=this;return Vue.createVNode(naive.NForm,Vue.mergeProps(e,t,{ref:"formRef"}),{...n})}}),nl=(e,t)=>{const n=Vue.ref(),o=u=>{u&&(n.value=u)},r=()=>{if(!n.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return n.value};return[o,{getFormInstance:r,validate:(u,d)=>r().validate.call(null,u,d),restoreValidation:()=>r().restoreValidation.call(null),formModel:()=>ye(e)||{},formRules:()=>ye(t)||{}}]},ma=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],ha={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},fa=Ue({...naive.tabsProps,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...ma);function ga(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Be=e=>{const{icon:t,label:n}=e;return t?Vue.createVNode(naive.NFlex,{align:"center",wrap:!1,size:"small"},{default:()=>[Vue.createVNode(t,null,null),Vue.createVNode("div",null,[n])]}):n},va=e=>{if(typeof e.popover=="string")return Vue.createVNode(naive.NPopover,null,{trigger:()=>Be(e),default:()=>e.popover});if(G(e.popover,"Object")){const{popover:t}=e,{label:n,...o}=t;return Vue.createVNode(naive.NPopover,o,{trigger:()=>Be(e),default:()=>n})}},ol=Vue.defineComponent({name:"RSegment",props:fa,setup(e,{expose:t}){const n=Vue.computed(()=>{const{width:o}=e;let r="";switch(o){case"block":r="100%";break;case"fitContent":r="fit-content";break;default:r=typeof o=="number"?L(o):"fit-content"}return{"--r-segment-width":r}});return t(),{cssVars:n}},render(){let e;const{$props:t,options:n,cssVars:o,themeOverrides:r}=this;return Vue.createVNode(naive.NTabs,Vue.mergeProps(t,{ref:"segmentRef",style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},ha,r)}),ga(e=n.map(a=>Vue.createVNode(naive.NTab,{key:a.key,name:a.key,tab:a.popover?va(a):Be(a),disabled:a.disabled},{...a.slots})))?e:{default:()=>[e]})}}),ya={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},al=Vue.defineComponent({name:"RBarcode",props:ya,setup(e){const t=Vue.useTemplateRef("barcodeRef"),n=Vue.computed(()=>({"--r-barcode-width":L(e.width),"--r-barcode-height":L(e.height)}));let o;const r=()=>{try{const{format:a,text:s,options:l,onSuccess:i}=e,u=Object.assign({},l,{format:a});JsBarcode(t.value,s!=null?s.toString():"",u),i&&A(i,s,a,l)}catch(a){const{onError:s}=e;s&&A(s,a)}finally{const{onFinally:a}=e;a&&A(a)}};return Vue.watchEffect(()=>{e.watchText?o=Vue.watch(()=>e.text,r):o==null||o()}),Vue.onMounted(()=>{r()}),Vue.onBeforeUnmount(()=>{o==null||o()}),{barcodeRef:t,cssVars:n}},render(){const{barcodeRender:e,loading:t,cssVars:n}=this,o=["r-barcode",{"r-barcode--loading":t}];return Vue.createVNode(naive.NSpin,{class:"r-barcode-spin",show:t},{default:()=>[e==="canvas"?Vue.createVNode("canvas",{class:o,style:n,ref:"barcodeRef"},null):Vue.createVNode("svg",{class:o,style:n,ref:"barcodeRef"},null)]})}});var Va={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^4.0.1","print-js":"^1.6.0",vue:"^3.5.6","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const ba=(e,t,n)=>!e||typeof e!="object"?!1:e[t]===n,xt=(e,t,n)=>{const o=[];if(ba(e,t,n))return o.push(e),o;if(e.children&&e.children.length>0)for(const r of e.children){const a=xt(r,t,n);a.length>0&&o.push(e,...a)}return o},_a=(e,t,n)=>{const o=[];for(const r of e){const a=xt(r,t,n);a.length>0&&o.push(...a)}return o},at=e=>{const{breadcrumbLabel:t}=e;if(!t)return;const{layout:{sideBarLogo:n}}=Va,o=n?n.title:"";document.title=t+" - "+o},Sa=e=>{const{meta:{icon:t}}=e;if(!t)return;if(G(t,"Object"))return()=>t;const n=Vue.h(N,{name:t,size:X.menuCollapsedIconSize,cursor:"pointer"},{});return()=>n},Mt=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:n}=t;if(n===!1)return;const{t:o}=se(),{label:r,icon:a,type:s,i18nLabel:l}=t,i={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},u=()=>l?o(l):r||null,d=()=>a&&(l||r)||!a&&(l||r)?null:{"padding-right":"0"};if(G(t,"Object"))return()=>Vue.h(naive.NTag,{...i,type:s||"primary",style:d()},{default:()=>u(),icon:()=>a})},rt=()=>{const{getRootPath:e}=ne();return le(I.appMenuKey,"sessionStorage",{defaultValue:e.value})},Lt=()=>Fo(zo()),wa=()=>Do(Lt()),$e=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let he;const It=(e,t)=>{var n;if(he&&Je(he.fullPath,t))return he;for(const o of e){if(Je(o.fullPath,t))return he=o,o;if((n=o.children)!=null&&n.length){It(o.children,t);continue}}},Et=Pinia.defineStore("menu",()=>{const{push:e,getRoutes:t}=VueRouter.useRouter(),n=VueRouter.useRoute(),{t:o}=se(),{setKeepAliveInclude:r}=Oa(),a=Vue.reactive({menuKey:rt(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=Vue.ref(!0),l=(c,b)=>{Object.hasOwn(a,c)&&(a[c]=b)},i=c=>{const{meta:b}=c,{i18nKey:_,noLocalTitle:O}=b,V=Vue.computed(()=>_?o(`${_}`):O),C={...c,key:c.fullPath,label:()=>Vue.h(naive.NEllipsis,null,{default:()=>V.value}),breadcrumbLabel:V.value},k=Object.assign({},C,{icon:Sa(c),extra:Mt(c)});return c.fullPath===rt()&&(a.currentMenuOption=k),k.show=Nt(k),k},u=c=>{a.breadcrumbOptions=_a(a.options,"fullPath",c)},d=(c,b=!0)=>{const O=Array.isArray(c)?[...c]:[c];b?a.menuTagOptions.push(...O):a.menuTagOptions=O},h=(c,b)=>{a.menuTagOptions.find(O=>O.fullPath===c)||a.menuTagOptions.push(b)},f=(c,b,_)=>{const{meta:O}=b;if(O.windowOpen)window.open(O.windowOpen);else{e({path:String(c),query:_});const{sameLevel:V}=O;if(r(b),at(b),!V)h(c,b),u(c),a.menuKey=c,a.currentMenuOption=b,We(I.appMenuKey,c);else{const C=ae(i(b),$e);a.breadcrumbOptions.find(S=>S.key===C.key)||a.breadcrumbOptions.push({...C,fullPath:String(C.key)})}}},m=async(c,b)=>{const[_]=c.split("?"),O=t().find(V=>V.path===_);if(O){const V=ae(O,$e);f(_,i({...V,fullPath:V.path}),b)}},p=()=>new Promise(c=>{const b=(_,O)=>{var C;const V=[];for(const k of _){let S=`${O.endsWith("/")?O:O+"/"}${k.path}`;if(S=S.replace(/\/+/g,"/"),(C=k.children)!=null&&C.length)k.children=b(k.children,S);else if(!Dt(k.meta))continue;V.push(i({...k,fullPath:S}))}return V};if(a.options=b(Lt(),""),a.currentMenuOption){const{currentMenuOption:_}=a;a.breadcrumbOptions.length||u(_.key),h(_.fullPath,_),at(_)}c()}),g=c=>a.collapsed=c,v=(c,b=1)=>a.menuTagOptions.splice(c,b),y=async()=>{s.value&&(await p(),s.value=!1)};return Vue.watch(()=>n.fullPath,async(c,b)=>{await y(),c!==b&&await m(c,n.query)},{immediate:!0}),{...Vue.toRefs(a),changeMenuModelValue:f,collapsedMenu:g,spliceMenTagOptions:v,setMenuTagOptions:d,resolveOption:i,updateMenuState:l}},{persist:{key:I.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),zt=Pinia.defineStore("signing",()=>{const e=Vue.reactive({signingCallback:{}}),t=o=>new Promise((r,a)=>{pt(o)?a({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:o.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},r({code:0,message:"登陆成功",data:e.signingCallback}))}),n=()=>{const{closeAll:o}=$t(),{appPiniaMenuStore:r,appPiniaSigningStore:a}=I;window.$message.info("账号退出中..."),Re("__all_sessionStorage__","sessionStorage"),Re(r,"localStorage"),Re(a,"localStorage"),o(),setTimeout(()=>window.location.reload())};return{...Vue.toRefs(e),signing:t,logout:n}},{persist:{key:I.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),jt=Pinia.defineStore("keepAlive",()=>{const{maxKeepAliveLength:e}=St,t=Vue.reactive({keepAliveInclude:[]}),n=()=>t.keepAliveInclude.length,o=a=>{const s=n(),{name:l,meta:{keepAlive:i}}=a;if(i){if(s=e&&(t.keepAliveInclude.splice(0,1),t.keepAliveInclude.push(l))}},r=()=>t.keepAliveInclude;return{...Vue.toRefs(t),setKeepAliveInclude:o,getKeepAliveInclude:r}},{persist:{key:I.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),J=()=>{const e=Et(),t=Vue.computed(()=>e.options),n=Vue.computed(()=>e.breadcrumbOptions),o=Vue.computed(()=>e.menuKey),r=Vue.computed(()=>{const{getRootPath:l}=ne();return e.menuTagOptions.map((i,u,d)=>(i.key===o.value&&i.key!==l.value?i.closeable=!0:i.closeable=!1,i.key===l.value&&(i.closeable=!1),d.length<=1&&(i.closeable=!1),i))}),a=Vue.computed(()=>e.currentMenuOption),s=Vue.computed(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:n,getMenuKey:o,getMenuTagOptions:r,getCurrentMenuOption:a,getCollapsed:s}},ue=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:o,resolveOption:r,updateMenuState:a}=Et();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:o,resolveOption:r,updateMenuState:a}},D=()=>{const e=Ot(),t=Vue.computed(()=>e.drawerPlacement),n=Vue.computed(()=>e.primaryColorOverride),o=Vue.computed(()=>e.appTheme),r=Vue.computed(()=>e.menuTagSwitch),a=Vue.computed(()=>e.breadcrumbSwitch),s=Vue.computed(()=>e.localeLanguage),l=Vue.computed(()=>e.lockScreenSwitch),i=Vue.computed(()=>e.copyrightSwitch),u=Vue.computed(()=>e.contentTransition),d=Vue.computed(()=>e.watermarkSwitch),h=Vue.computed(()=>e.watermarkConfig),f=Vue.computed(()=>e.appRootRoute),m=Vue.computed(()=>e.sideBarLogo);return{getDrawerPlacement:t,getPrimaryColorOverride:n,getAppTheme:o,getMenuTagSwitch:r,getBreadcrumbSwitch:a,getLocaleLanguage:s,getLockScreenSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:d,getWatermarkConfig:h,getAppRootRoute:f,getSideBarLogo:m}},j=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:n}=Ot();return{updateLocale:e,changePrimaryColor:t,updateSettingState:n}},Ca=()=>{const e=zt();return{getSigningCallback:Vue.computed(()=>e.signingCallback)}},Ta=()=>{const{signing:e,logout:t}=zt();return{signing:e,logout:t}},Na=()=>{const e=jt();return{getKeepAliveInclude:Vue.computed(()=>e.keepAliveInclude)}},Oa=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=jt();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},rl=e=>{const t=Pinia.createPinia();e.use(t),t.use(cn)},Dt=e=>{const{getSigningCallback:t}=Ca(),{role:n}=e;return me!=null&&me.length&&me.includes(t.value.role)||!n||!(n!=null&&n.length)?!0:n?n.includes(t.value.role):!0},Ra=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:n}=$n;t&&Ko(e),n&&Bo(e)},ka=Vue.ref(),Pa=Vue.defineComponent({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=VueRouter.useRouter(),{getSideBarLogo:t}=D();return{sideBarLogo:t,sideBarLogoClick:()=>{t.value&&t.value.url&&(t.value.jumpType==="station"?e.push(t.value.url):window.open(t.value.url))},TemplateLogo:({cursor:r})=>{if(!t.value)return null;if(typeof t.value.icon=="string")return Vue.createVNode(N,{name:t.value.icon,size:"30",cursor:r},null);if(G(t.value.icon,"Object"))return ee(t.value.icon)}}},render(){const{sideBarLogo:e,collapsed:t,TemplateLogo:n,sideBarLogoClick:o}=this;return e!=null&&e.title?Vue.createVNode("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:o.bind(this),ref:ka},[e!=null&&e.icon?t?Vue.createVNode(naive.NTooltip,{placement:"right"},{trigger:()=>n({cursor:"pointer"}),default:()=>e.title}):n({cursor:"pointer"}):t?Vue.createVNode(naive.NTooltip,{placement:"right"},{trigger:()=>{var r;return Vue.createVNode("h1",{class:"n-menu-item-content"},[((r=e.title)==null?void 0:r[0])||null])},default:()=>e.title}):null,Vue.createVNode("h1",{class:[t?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"']},[Vue.createVNode(naive.NEllipsis,null,{default:()=>[e.title]})])]):null}}),Aa=Vue.defineComponent({name:"AppMenu",setup(){const e=Vue.ref(null),{changeMenuModelValue:t,collapsedMenu:n,updateMenuState:o}=ue(),{getMenuOptions:r,getCollapsed:a,getMenuKey:s}=J(),l=Vue.computed({get:()=>(Vue.nextTick().then(()=>{d()}),s.value),set:()=>{i.value&&q("globalDrawerValue",!1)}}),{isTabletOrSmaller:i}=Ce({observer:f=>{f&&o("collapsed",!1)}}),u=Vue.computed({get:()=>we("globalDrawerValue").value,set:f=>{q("globalDrawerValue",f)}}),d=()=>{const f=l.value;f!=null&&Vue.nextTick(()=>{var m,p;return(p=(m=e.value)==null?void 0:m.showOption)==null?void 0:p.call(m,f)})};return{isTabletOrSmaller:i,BasicMenu:()=>Vue.createVNode(naive.NLayoutSider,{class:"app-menu__sider",showTrigger:!i.value,collapseMode:X.menuCollapsedMode,collapsedWidth:X.menuCollapsedWidth,onUpdateCollapsed:n.bind(this),nativeScrollbar:!1,ref:Ct,collapsed:a.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)}},{default:()=>[Vue.createVNode(Pa,{collapsed:a.value},null),Vue.createVNode(naive.NMenu,{ref:e,class:"r-menu--app",keyField:"fullPath",value:l.value,"onUpdate:value":f=>l.value=f,options:r.value,indent:X.menuCollapsedIndent,collapsed:a.value,collapsedIconSize:X.menuCollapsedIconSize,collapsedWidth:X.menuCollapsedWidth,onUpdateValue:(f,m)=>{t(f,m)},accordion:X.menuAccordion},null)]}),modelGlobalDrawerValue:u}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?Vue.createVNode(naive.NDrawer,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":n=>this.modelGlobalDrawerValue=n,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[Vue.createVNode(t,null,null)]}):Vue.createVNode(t,null,null)}});class xa{constructor(){Xe(this,"pendingRequest");this.pendingRequest=new Map}isAppending(t){var n;return((n=t.cancelConfig)==null?void 0:n.cancel)??!0}generateRequestKey(t){const{method:n,url:o}=t;return[o||"",n||"",JSON.stringify(t.params),JSON.stringify(t.data)].join("&")}addPendingRequest(t){var n;if(this.isAppending(t)){t.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const o=this.generateRequestKey(t);if(this.pendingRequest.has(o))t.signal=(n=this.pendingRequest.get(o))==null?void 0:n.signal;else{const r=new AbortController;t.signal=r.signal,this.pendingRequest.set(o,r)}}}removePendingRequest(t){const n=this.generateRequestKey(t);this.pendingRequest.has(n)&&(this.pendingRequest.get(n).abort(),this.pendingRequest.delete(n))}cancelAllRequest(){this.pendingRequest.forEach(t=>{t.abort()})}}const Ae={requestInstance:null,responseInstance:null},xe={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},fe={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Ma=new xa,ll=()=>{const e=(l,i)=>{i==="requestInstance"?Ae.requestInstance=l:Ae.responseInstance=l},t=l=>Ae[l],n=(l,i,u)=>{u==="ok"?xe[l]=i:fe[l]=i},o=(l,i)=>i==="ok"?xe[l]:fe[l],r=(l,...i)=>{Array.isArray(l)&&l.forEach(u=>{typeof u=="function"&&u(...i)})};return{createAxiosInstance:e,setImplement:n,getImplement:o,getAxiosInstance:t,beforeFetch:(l,i,u)=>{const d=u==="ok"?xe[i]:fe[i],h=t(l),{MODE:f}=De();h&&r(d,h,f)},fetchError:(l,i,u)=>{const d=fe[u],{MODE:h}=De();r(d,i,h)}}},La=Vue.defineComponent({name:"AppRequestCancelerProvider",setup(e,{expose:t}){VueRouter.onBeforeRouteUpdate(()=>{Ma.cancelAllRequest()}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),Ft=Vue.defineComponent({name:"LayoutContentWrapper",setup(){VueRouter.useRouter();const{maximize:e}=Bt(),{getContentTransition:t}=D(),n=Vue.ref(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:r,layoutContentMaximize:a,layoutContentSpinning:s}=Un();return{globalMainLayoutLoad:r,spinning:n,themeOverridesSpin:o,getContentTransition:t,layoutContentMaximize:a,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:n,maximize:o,spinning:r,themeOverridesSpin:a,getContentTransition:s}=this;return Vue.createVNode(naive.NSpin,{show:r||!e||n,description:"loading...",size:"large",themeOverrides:a,class:[t?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[t?Vue.createVNode("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[Vue.createVNode(N,{name:"out",size:"16",cursor:"pointer"},null)]):null,Vue.createVNode(La,null,null),e?Vue.createVNode(da,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),Ia=Object.freeze(Object.defineProperty({__proto__:null,default:Ft},Symbol.toStringTag,{value:"Module"}));var Ea={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^4.0.1","print-js":"^1.6.0",vue:"^3.5.6","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const za=Vue.defineComponent({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Ea;return{copyright:e}},render(){return this.copyright?Vue.createVNode("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),ja=Vue.defineComponent({name:"TooltipIcon",props:{...naive.tooltipProps,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const n=r=>{t("click",r)};return{iconClick:n,Icon:()=>Vue.createVNode(N,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:n.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?Vue.createVNode(naive.NTooltip,this.$props,{trigger:()=>Vue.createVNode(e,null,null),default:()=>this.tooltipText}):Vue.createVNode(e,null,null)}}),Da=Vue.defineComponent({name:"ThemeSwitch",setup(){const{darkTheme:e,lightTheme:t}=br(),{getAppTheme:n}=D(),o=Vue.ref(n.value);return{darkTheme:e,lightTheme:t,getAppTheme:n,railStyle:({checked:a})=>a?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:o}},render(){const{$t:e,darkTheme:t,lightTheme:n,railStyle:o}=this;return Vue.createVNode(naive.NFlex,{justify:"center"},{default:()=>[Vue.createVNode(naive.NTooltip,null,{trigger:()=>Vue.createVNode(naive.NSwitch,{value:this.modelAppThemeRef,"onUpdate:value":r=>this.modelAppThemeRef=r,railStyle:o.bind(this),onUpdateValue:r=>r?t():n()},{"checked-icon":()=>Vue.createVNode(N,{name:"dark"},null),"unchecked-icon":()=>Vue.createVNode(N,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?e("headerSettingOptions.ThemeOptions.Dark"):e("headerSettingOptions.ThemeOptions.Light")})]})}});function ge(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Fa=Vue.defineComponent({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{changePrimaryColor:n,updateSettingState:o}=j(),{getAppTheme:r,getPrimaryColorOverride:a,getMenuTagSwitch:s,getBreadcrumbSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:d}=D(),h=Vue.computed({get:()=>e.show,set:m=>{t("update:show",m)}}),f=Vue.computed({get:()=>({getMenuTagSwitch:s.value,getBreadcrumbSwitch:l.value,getCopyrightSwitch:i.value,getContentTransition:u.value,getWatermarkSwitch:d.value}),set:m=>{}});return{modelShow:h,changePrimaryColor:n,getAppTheme:r,getPrimaryColorOverride:a,updateSettingState:o,modelSwitchReactive:f}},render(){let e,t,n,o;const{$t:r,changePrimaryColor:a,updateSettingState:s}=this;return Vue.createVNode(naive.NDrawer,{show:this.modelShow,"onUpdate:show":l=>this.modelShow=l,placement:this.placement,width:this.width},{default:()=>[Vue.createVNode(naive.NDrawerContent,{title:r("headerSettingOptions.Title")},{default:()=>[Vue.createVNode(naive.NFlex,{class:"setting-drawer__space",vertical:!0},{default:()=>[Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(e=r("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),Vue.createVNode(Da,null,null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(t=r("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),Vue.createVNode(naive.NColorPicker,{swatches:$.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":l=>this.getPrimaryColorOverride.common.primaryColor=l,onUpdateValue:a.bind(this)},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(n=r("headerSettingOptions.ContentTransition"))?n:{default:()=>[n]}),Vue.createVNode(naive.NSelect,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":l=>this.modelSwitchReactive.getContentTransition=l,options:zn,onUpdateValue:l=>{s("contentTransition",l)}},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(o=r("headerSettingOptions.InterfaceDisplay"))?o:{default:()=>[o]}),Vue.createVNode(naive.NDescriptions,{labelPlacement:"left",column:1},{default:()=>[Vue.createVNode(naive.NDescriptionsItem,{label:"多标签"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getMenuTagSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getMenuTagSwitch=l,onUpdateValue:l=>s("menuTagSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"面包屑"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getBreadcrumbSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getBreadcrumbSwitch=l,onUpdateValue:l=>s("breadcrumbSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"水印"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getWatermarkSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getWatermarkSwitch=l,onUpdateValue:l=>s("watermarkSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"版权信息"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getCopyrightSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getCopyrightSwitch=l,onUpdateValue:l=>s("copyrightSwitch",l)},null)]})]})]})]})]})}});function Ba(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const $a=Vue.defineComponent({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ue(),{getBreadcrumbOptions:t}=J(),{isTabletOrSmaller:n}=Ce();return{getBreadcrumbOptions:t,dropdownSelect:(a,s)=>{e(a,s)},breadcrumbItemClick:a=>{var s;if(!((s=a.children)!=null&&s.length)){const{meta:l={}}=a;l.sameLevel||e(a.fullPath,a)}},isTabletOrSmaller:n}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:n}=this,{dropdownSelect:o,breadcrumbItemClick:r}=this;return t?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NBreadcrumb,null,{default:()=>[Vue.createVNode(Vue.TransitionGroup,{tag:"li",name:"breadcrumb",appear:!0},Ba(e=n.map(a=>Vue.createVNode(naive.NBreadcrumbItem,{key:a.fullPath,onClick:r.bind(this,a)},{default:()=>{var s;return[Vue.createVNode(naive.NDropdown,{labelField:"breadcrumbLabel",keyField:"fullPath",options:a.children&&((s=a.children)==null?void 0:s.length)>1?a.children:[],onSelect:o.bind(this)},{default:()=>Vue.createVNode("span",null,[a.label&&typeof a.label=="function"?a.label():a.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Me(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Ka=Vue.defineComponent({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:n,resolveOption:o}=ue(),{getRoutes:r}=VueRouter.useRouter(),a=Vue.computed({get:()=>e.show,set:V=>{t("update:show",V),V||m()}}),s=Vue.reactive({searchValue:null,searchOptions:[]}),l=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let i=0,u=i;const{isTabletOrSmaller:d}=Ce(),h=Vue.ref(!1),f="content-item--active",m=()=>{s.searchOptions=[],s.searchValue=null,i=0,u=i},p=V=>{a.value||(V.ctrlKey||V.metaKey)&&V.key==="k"&&(V.preventDefault(),V.stopPropagation(),m(),a.value=!0)},g=V=>{if(V)h.value=!0;else{h.value=!1,s.searchOptions=[];return}const C=r().reduce((k,S)=>{var F;const P=ae(S,["children","meta","path","name"]),x=o({...P,fullPath:S.path}),{breadcrumbLabel:E}=x;return(F=E==null?void 0:E.toLocaleLowerCase())!=null&&F.includes(V.toLocaleLowerCase())&&Nt(x)&&k.push(x),k},[]);setTimeout(()=>{s.searchOptions=C,Vue.nextTick().then(()=>{y()}),h.value=!1},500)},v=V=>{if(V){const{meta:C}=V;C.windowOpen?window.open(C.windowOpen):(a.value=!1,n(V.fullPath,V),setTimeout(an,300))}},y=()=>{const V=s.searchOptions[i],C=s.searchOptions[u];V&&Vue.nextTick().then(()=>{const k=be(`attr:data_path="${V.path}"`),S=C?be(`attr:data_path="${C==null?void 0:C.path}"`):null;if(S!=null&&S.length){const[P]=S;rn(P,f)}if(k!=null&&k.length){const[P]=k;vt(P,f)}})},c=V=>{const{icon:C}=V;return typeof C=="string"?Vue.createVNode(N,{name:C,size:"24"},null):typeof C=="function"?()=>C:Vue.createVNode(N,{name:"search",size:"24"},null)},b=V=>{V==="up"&&(i-=1,i<0&&(i=s.searchOptions.length-1)),V==="down"&&(i+=1,i>=s.searchOptions.length&&(i=0))},_=V=>{const C=V.key;switch((C==="ArrowUp"||C==="ArrowDown"||C==="Enter")&&(V.preventDefault(),V.stopPropagation()),u=i<=0?0:i,C){case"ArrowUp":b("up");break;case"ArrowDown":b("down");break;case"Enter":const k=s.searchOptions[i];k&&v(k);break}y()},O=({menuOption:V})=>Vue.createVNode(naive.NFlex,Vue.mergeProps({align:"center",class:"content-item"},{onClick:v.bind(this,V),data_path:V.path}),{default:()=>[Vue.createVNode("div",{class:"content-item-icon"},[c(V.meta)]),Vue.createVNode("div",{class:"content-item-label"},[V.breadcrumbLabel]),Vue.createVNode(N,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return Vue.watchEffect(()=>{d.value&&(a.value=!1)}),re(window,"keydown",V=>{p(V),_(V)},!0),{...Vue.toRefs(s),modelShow:a,helperTipOptions:l,fuzzySearchMenuOptions:Ke(g,300),searchItemClick:v,RenderPreIcon:c,isTabletOrSmaller:d,SearchItem:O,loading:h}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:n}=this,{SearchItem:o,fuzzySearchMenuOptions:r}=this;return e?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NModal,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,transformOrigin:"center",displayDirective:"if"},{default:()=>[Vue.createVNode("div",{class:"global-search global-search--dark global-search--light"},[Vue.createVNode("div",{class:"global-search__wrapper"},[Vue.createVNode(naive.NCard,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>Vue.createVNode(naive.NInput,{size:"large",value:this.searchValue,"onUpdate:value":a=>this.searchValue=a,clearable:!0,onInput:r.bind(this)},{prefix:()=>Vue.createVNode(N,{name:"search",size:"24"},null)}),default:()=>{let a;return Vue.createVNode(naive.NScrollbar,null,{default:()=>[Vue.createVNode(naive.NSpin,{show:n},{default:()=>[t.length?Vue.createVNode(naive.NFlex,{vertical:!0,size:[0,6],class:"global-search__card-content"},Me(a=t.map((s,l)=>Vue.createVNode(o,{menuOption:s,key:s.fullPath},null)))?a:{default:()=>[a]}):Vue.createVNode(naive.NResult,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>Vue.createVNode(naive.NFlex,{justify:"center",class:"global-search__empty-content"},{default:()=>[Vue.createVNode(naive.NText,null,{default:()=>[Vue.createTextVNode("没有搜索结果")]})]})})]})]})},action:()=>{let a;return Vue.createVNode(naive.NFlex,{justify:"flex-start",align:"center",size:[16,0]},Me(a=this.helperTipOptions.map(s=>Vue.createVNode(naive.NFlex,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(l=>Vue.createVNode(naive.NFlex,{class:"item-icon",align:"center",justify:"center"},Me(l)?l:{default:()=>[l]})),Vue.createVNode(naive.NFlex,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?a:{default:()=>[a]})}})])])]})}}),Ua=Vue.defineComponent({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=ln();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:r}=e;r&&A(r,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:n}=this;return Vue.createVNode(naive.NButton,{class:"global-search__btn-wrapper",bordered:!1,onClick:t.bind(this)},{icon:()=>Vue.createVNode(N,{name:"search",size:"16"},null),default:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[n("headerTooltip.Search"),Vue.createVNode("div",{class:"global-search-btn__label"},[e()])]})})}}),Wa=Vue.defineComponent({name:"AppAvatar",props:{...naive.avatarProps,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(e){return{signing:le(I.signing,"localStorage")}},render(){const{signing:e,avatarSize:t,spaceSize:n,$props:o,vertical:r}=this;return Vue.createVNode(naive.NButton,{quaternary:!0,strong:!0},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",size:n,vertical:r},{default:()=>[Vue.createVNode(naive.NAvatar,Vue.mergeProps(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:t}),null),e==null?void 0:e.name]})]})}}),qa=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Ga={logout:()=>{const{logout:e}=Ta();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=j();e("lockScreenSwitch",!0)}},Ha=e=>{const t=Ga[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},Ya=e=>{const{isTabletOrSmaller:t}=e,n=[],o=[{name:"menu",size:18,eventKey:"menu"}];return t.value?o:n},Xa=e=>{const{isTabletOrSmaller:t}=e,n=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],o=[...n],r=[...n];return t.value?r:o},Ja=Vue.defineComponent({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=j(),{t:n}=se(),[o,{toggleFullscreen:r,isEnabled:a}]=ht(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:l}=D(),i=Vue.ref(!1),u=Vue.ref(!1),{isTabletOrSmaller:d}=Ce(),h=we("globalDrawerValue"),f=Vue.computed(()=>Ya({isFullscreen:o,isTabletOrSmaller:d})),m=Vue.computed(()=>Xa({isFullscreen:o,isTabletOrSmaller:d})),p={search:()=>{u.value=!0},setting:()=>{i.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{a||window.$message.warning(n("globalMessage.isEnabledFullscreen")),r()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{q("globalDrawerValue",!h.value)}};return{leftIconOptions:f,rightTooltipIconOptions:m,toolIconClick:y=>{var c;(c=p[y])==null||c.call(p)},showSettings:i,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:l,globalSearchShown:u,isRenderVNode:y=>d.value?null:y}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:n,getBreadcrumbSwitch:o}=this,{toolIconClick:r,updateLocale:a,isRenderVNode:s}=this;return Vue.createVNode(naive.NLayoutHeader,{class:"layout-header"},{default:()=>[Vue.createVNode(Ka,{show:this.globalSearchShown,"onUpdate:show":l=>this.globalSearchShown=l},null),Vue.createVNode(naive.NFlex,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",wrap:!1},{default:()=>[t.map(l=>Vue.createVNode(ja,{key:l.name,iconName:l.name,tooltipText:Vue.isRef(l.tooltip)?l.tooltip.value:l.tooltip,customClassName:l.iconClass,onClick:r.bind(this,l.name)},null)),o?Vue.createVNode($a,null,null):null]}),Vue.createVNode(naive.NFlex,{justify:"end",align:"center",size:[4,0],wrap:!1},{default:()=>[s(Vue.createVNode(Ua,{onClick:l=>{l.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(l=>Vue.createVNode(naive.NButton,{class:"override-button__layout",quaternary:!0,size:"medium",key:l.name,onClick:r.bind(this,l.name)},{default:()=>[Vue.createVNode(N,{name:l.name,size:18,cursor:"pointer"},null)]})),Vue.createVNode(naive.NDropdown,{options:wt,onSelect:l=>a(String(l)),trigger:"click"},{default:()=>[Vue.createVNode(naive.NButton,{quaternary:!0,class:"override-button__layout"},{default:()=>[Vue.createVNode(N,{customClassName:"layout-header__method--icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NDropdown,{options:qa(),onSelect:Ha.bind(this),trigger:"click"},{default:()=>[Vue.createVNode(Wa,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),Vue.createVNode(Fa,{show:this.showSettings,"onUpdate:show":l=>this.showSettings=l,placement:n},null)]})}}),Za=Vue.defineComponent({name:"LayoutHeaderWrapper",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{size:[0,0]},{default:()=>[Vue.createVNode(Ja,null,null)]})}}),Qa={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},er=_t('',1),tr=[er];function nr(e,t){return bt(),Vt("svg",Qa,[...tr])}const or={render:nr},ar={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},rr=_t('',1),lr=[rr];function sr(e,t){return bt(),Vt("svg",ar,[...lr])}const ir={render:sr};function ur(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const cr=Vue.defineComponent({name:"AppMenuTag",setup(e,{expose:t}){const n=Vue.ref(null),{getMenuKey:o,getMenuTagOptions:r}=J(),{changeMenuModelValue:a}=ue(),{getRootPath:s}=ne(),{maximize:l}=Bt(),{reload:i}=Vr(),{close:u,closeAll:d,closeRight:h,closeLeft:f,closeOther:m,checkCloseLeft:p,checkCloseRight:g}=$t(),v=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let y=1/0;const c={size:16},b=Vue.ref([{label:"刷新页面",key:"reloadCurrentPage",icon:()=>Vue.createVNode(N,{name:"reload",size:c.size},null)},{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>Vue.createVNode(N,{name:"close",size:c.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>Vue.createVNode(ir,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>Vue.createVNode(or,{class:"menu-tag__icon"},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>Vue.createVNode(N,{name:"other",size:c.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>Vue.createVNode(N,{name:"resize_h",size:c.size},null),disabled:!1}]),_=Ve(16),O={closeCurrentPage:()=>{o.value!==s.value&&u(y)},reloadCurrentPage:()=>{i()},closeAll:()=>{d()},closeRight:()=>{h(y)},closeLeft:()=>{f(y)},closeOther:()=>{m(y)}},V=Vue.reactive({x:0,y:0,actionDropdownShow:!1}),C="menu_tag_data",k=we("globalMainLayoutLoad"),S="n-scrollbar-container",P=w=>{u(w)},x=(w,T)=>{b.value.forEach(z=>{if(z.key===w){z.disabled=T;return}})},E=w=>{V.actionDropdownShow=!1,a(w.fullPath,w)},F=()=>{const w=document.getElementById(_);if(w)return Array.from(w.childNodes).find(pe=>sn(pe,S).value)},H=w=>{var z;const T=F();if(T){const pe=T.scrollLeft||0,Ye=w==="left"?Math.max(0,pe-200):pe+200;(z=n.value)==null||z.scrollTo({left:Ye,behavior:"smooth"})}},ce=w=>{V.actionDropdownShow=!1;const T=O[w];T&&T()},de=(w,T)=>{T.preventDefault(),V.actionDropdownShow=!1,y=w,Vue.nextTick(()=>{V.actionDropdownShow=!0,V.x=T.clientX,V.y=T.clientY})},B=()=>{const{closeable:w}=r.value[y]??{};x("closeCurrentPage",!w),g(y)?x("closeRight",!1):x("closeRight",!0),p(y)?x("closeLeft",!1):x("closeLeft",!0)},Ut=()=>{y=r.value.findIndex(T=>T.fullPath===o.value),B()},Wt=w=>{r.value.length>1&&w.fullPath!==s.value&&(w.closeable=!0)},qt=w=>{w.fullPath!==o.value&&(w.closeable=!1)},Gt=()=>{F()&&Vue.nextTick().then(()=>{var T;(T=n.value)==null||T.scrollTo({left:99999,behavior:"smooth"})})},He=()=>{Vue.nextTick().then(()=>{const w=be(`attr:${C}="${o.value}"`);if(w!=null&&w.length){const[T]=w;Vue.nextTick().then(()=>{var z;(z=n.value)==null||z.scrollTo({left:T.offsetLeft,behavior:"smooth"})})}})};return Vue.watch(()=>r.value,(w,T)=>{b.value.forEach(z=>{v.includes(z.key)&&(w.length>1?z.disabled=!1:z.disabled=!0)}),T!=null&&T.length&&(w.length>(T==null?void 0:T.length)?Gt():w.length===(T==null?void 0:T.length)&&He()),T===void 0&&He()},{immediate:!0}),Vue.watch(()=>V.actionDropdownShow,w=>{var T;w&&((T=Ke(B,100))==null||T())}),t({}),{getMenuTagOptions:r,closeCurrentMenuTag:P,getMenuKey:o,menuTagClick:E,moreOptions:b,scrollX:H,scrollRef:n,uuidScrollBar:_,actionDropdownSelect:ce,actionState:V,menuTagContextMenu:de,setCurrentContextmenuIndex:Ut,menuTagMouseenter:Wt,menuTagMouseleave:qt,MENU_TAG_DATA:C,iconConfig:{width:22,height:22},maximize:l,getRootPath:s,reload:i,globalMainLayoutLoad:k}},render(){let e;const{iconConfig:t,getRootPath:n,uuidScrollBar:o,getMenuTagOptions:r,MENU_TAG_DATA:a,globalMainLayoutLoad:s}=this,{maximize:l,closeCurrentMenuTag:i,scrollX:u,$t:d,menuTagClick:h,menuTagContextMenu:f,menuTagMouseenter:m,menuTagMouseleave:p,actionDropdownSelect:g,reload:v}=this;return Vue.createVNode(naive.NLayoutHeader,null,{default:()=>[Vue.createVNode("div",{class:"menu-tag"},[Vue.createVNode(naive.NDropdown,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:g.bind(this),onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),Vue.createVNode(naive.NFlex,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0,size:[16,0]},{default:()=>[Vue.createVNode(N,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__left-arrow",onClick:this.scrollX.bind(this,"left")},null),Vue.createVNode(naive.NScrollbar,Vue.mergeProps({xScrollable:!0,ref:"scrollRef"},{id:o},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[Vue.createVNode(naive.NFlex,{ref:"menuTagSpaceRef",class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},ur(e=r.map((y,c)=>Vue.createVNode(naive.NButton,Vue.mergeProps({key:y.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:y.fullPath===this.getMenuKey?"primary":"default"},{onClick:h.bind(this,y),onContextmenu:f.bind(this,c),onMouseenter:m.bind(this,y),onMouseleave:p.bind(this,y),[a]:y.path},{size:"small"}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("span",null,{default:()=>{const{breadcrumbLabel:b,meta:{i18nKey:_}}=y;return _?d(_):b}}),(y.closeable||r.length===1)&&y.fullPath!==n?Vue.createVNode(naive.NIcon,Vue.mergeProps({class:"menu-tag__btn-icon"},{onMousedown:i.bind(this,c)}),{default:()=>[Vue.createVNode(N,{name:"close",size:"14"},null)]}):Vue.createVNode(naive.NIcon,{class:[y.fullPath!==n?"menu-tag__btn-icon":"menu-tag__btn-icon--hidden"]},null)])})))?e:{default:()=>[e]})]}),Vue.createVNode(naive.NFlex,{class:"menu-tag__right-wrapper",align:"center",inline:!0,wrap:!1,size:[8,0]},{default:()=>[Vue.createVNode(N,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__right-arrow",onClick:u.bind(this,"right")},null),Vue.createVNode(N,{name:"fullscreen_fold",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:()=>{l(!0)}},null),Vue.createVNode(N,{name:"reload",width:t.width,height:t.height,customClassName:`menu-tag__right-setting ${s?"":"menu-tag__right-setting--spinning"}`,onClick:()=>{v()}},null),Vue.createVNode(Pt,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:20,keyboard:!1},{default:()=>[Vue.createVNode(N,{name:"more",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:this.setCurrentContextmenuIndex.bind(this)},null)]})]})]})])]})}}),dr=Vue.defineComponent({name:"LayoutFeatureWrapper",setup(){return{}},render(){return Vue.createVNode(cr,null,null)}}),pr=e=>{const t=Ne(e[0]),n=Ne(e[1]),o=Ne(e[2]);return Vue.computed(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${n.height.value}px - ${o.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${n.height.value}px`,"--layout-footer-height":`${o.height.value}px`}))},lt=Qt(I.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),mr=()=>({setLockAppScreen:n=>{lt.value=n},getLockAppScreen:()=>lt.value}),hr=Vue.defineComponent({name:"RLayout",setup(){const e=Vue.ref(),t=Vue.ref(),n=Vue.ref(),{getMenuTagSwitch:o,getCopyrightSwitch:r}=D(),{getLockAppScreen:a}=mr(),s=pr([e,t,n]);return{getMenuTagSwitch:o,cssVarsRef:s,getLockAppScreen:a,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:n,getCopyrightSwitch:r}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:n}=this,{getLockAppScreen:o}=this;return o()?null:Vue.createVNode(naive.NLayout,{class:"r-layout-full",style:[t],hasSider:!0,embedded:!0},{default:()=>[Vue.createVNode(Aa,null,null),Vue.createVNode(naive.NLayoutContent,{class:"r-layout-full__viewer"},{default:()=>[Vue.createVNode(Za,{ref:"layoutSiderBarRef"},null),e?Vue.createVNode(dr,{ref:"layoutMenuTagRef"},null):null,Vue.createVNode(naive.NLayoutContent,{ref:Q,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[Vue.createVNode(Ft,null,null)]}),n?Vue.createVNode(za,{ref:"layoutFooterRef"},null):null]})]})}}),fr=[{path:"/",name:"RLogin",component:()=>R(()=>import("./index-DQWUCipC.js"),__vite__mapDeps([55,1,2,3,4,5,6,11,7,8,40,41,42,9,10,24,12,13,14,15,16,17,18,19,20,21,56]))},{path:"/",name:"RLayout",component:hr,children:[...wa(),{path:"/:catchAll(.*)",component:()=>R(()=>import("./index-C2xNskF6.js"),__vite__mapDeps([57,1,2,3,4,5,6,11,7,8,9,10,12,13,14,15,16,17,18,19,20,21,58])),meta:{i18nKey:M("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],Se=VueRouter.createRouter({history:VueRouter.createWebHashHistory(),routes:fr,scrollBehavior:e=>{$o(e)}}),sl=e=>{e.use(Se),Ra(Se)},Ge=()=>Se?{router:Se}:{router:{}},st="YYYY-MM-DD HH:mm:ss",gr=()=>({locale:s=>{const l=Fn[s];l?dayjs.locale(l):dayjs.locale(Bn)},getStartAndEndOfDay:s=>{const{format:l=st}=s??{},i=dayjs(),u=i.startOf("day"),d=i.endOf("day"),h=i.format(l),f=u.format(l),m=d.format(l);return{today:i,startOfDay:u,endOfDay:d,formatToday:h,formatStartOfDay:f,formatEndOfDay:m}},format:(s,l)=>{const{format:i=st}=l??{};return dayjs(s).format(i)},isDayjs:s=>dayjs.isDayjs(s),daysDiff:(s,l)=>{const i=dayjs(s);return dayjs(l).diff(i,"days")},isDateInRange:(s,l)=>{const{start:i,end:u}=l,d=dayjs(s);return d.isAfter(i)&&d.isBefore(u)}});function Ce(e){const{width:t,height:n}=mt(e),o=Vue.ref(!1),{observer:r}=e??{};return un(()=>{const{media:s=768}=e??{};o.value=t.value<=s,r==null||r(o.value,{width:t.value,height:n.value})}),{width:t,height:n,isTabletOrSmaller:Vue.readonly(o)}}let Le=999,Ie=!1;const Y="ELEMENT-FULLSCREEN-RAY",{width:it,height:ut}=mt(),ct=document.createElement("style"),vr=(e,t)=>{const{beforeEnter:n,beforeExit:o,enter:r,exit:a,backgroundColor:s,zIndex:l,transition:i="all 0.3s var(--r-bezier)"}=t??{};let u=!1;const d=()=>{const g=W(e);if(!g)return;const{left:v,top:y}=g.getBoundingClientRect(),c=` - [${Y}] { - position: fixed; - width: ${it.value}px !important; - height: ${ut.value}px !important; - transform: translate(-${v}px, -${y}px) !important; - transition: ${i}; - z-index: ${G(l,"Null")||G(l,"Undefined")?Le:l} !important; - background-color: ${s??null}; - } - `;ct.innerHTML=c,Ie||document.head.appendChild(ct)},h=()=>{const g=W(e);n==null||n(),g&&(g.getAttribute(Y)||g.setAttribute(Y,Y),u||(u=!0,Le+=1),Ie||(d(),Ie=!0),g.style.transition=i,r==null||r())},f=()=>{o==null||o();const g=W(e);g&&g.removeAttribute(Y),a==null||a()},m=()=>{const g=W(e);g&&(g.getAttribute(Y)?f():h())},p=Vue.watch(()=>[it.value,ut.value],d);return qe(()=>{const g=W(e);g&&g.removeAttribute(Y),Le--,p()}),{enter:h,exit:f,toggleFullscreen:m}},Ee={svg:domtoimage.toSvg,png:domtoimage.toPng,jpeg:domtoimage.toJpeg,blob:domtoimage.toBlob,pixelData:domtoimage.toPixelData},il=(e,t)=>{const{beforeCreate:n,created:o,createdError:r,finally:a,imageType:s}=t??{};return{create:i=>new Promise((u,d)=>{var f;const h=W(e);if(n==null||n(h),!h)return r==null||r(),d("useDomToImage: element is undefined.");(f=Ee[i??s??"jpeg"])==null||f.call(Ee,h,t).then(m=>(o==null||o(m,h),u(m))).catch(m=>(r==null||r(m),d(m))).finally(()=>{a==null||a()})})}},ul=(e,t)=>({print:()=>{const o=W(e)||e;en({...Ue(t,["printable"]),printable:o})}}),yr={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},cl=(e,t)=>{const n=Vue.ref(e),o=Ue(t,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),r={onUpdatePage:c=>{var b;a.value.page=c,(b=n.value)==null||b.call(n)},onUpdatePageSize:c=>{var b;a.value.pageSize=c,a.value.page=1,(b=n.value)==null||b.call(n)}},a=Vue.ref(Object.assign({},yr,o,r)),s=a.value.onUpdatePage,l=a.value.onUpdatePageSize,i=()=>a.value.itemCount,u=c=>{a.value.itemCount=c},d=()=>a.value.page,h=c=>{s(c)},f=()=>a.value.pageSize,m=c=>{l(c)},p=()=>a.value,g=e,v=c=>{n.value=c},y=()=>{const{pageSizes:c}=a.value;a.value.page=1,a.value.pageSize=(c==null?void 0:c[0])||10};return qe(()=>{n.value=void 0}),[a,{getItemCount:i,setItemCount:u,getPage:d,setPage:h,getPageSize:f,setPageSize:m,getPagination:p,getCallback:g,setCallback:v,resetPagination:y}]},Bt=()=>({isLayoutContentMaximized:Vue.computed(()=>we("layoutContentMaximize").value),maximize:(n,o)=>{var l;const{scrollToOptions:r}=o??{},a=W(Q),{toggleFullscreen:s}=vr(a,o);q("layoutContentMaximize",n),s(),r&&n&&((l=Q==null?void 0:Q.value)==null||l.scrollTo(r))}}),Vr=()=>({reload:(o=800)=>{q("globalMainLayoutLoad",!1),setTimeout(()=>q("globalMainLayoutLoad",!0),o)},openSpin:()=>{q("layoutContentSpinning",!0)},closeSpin:()=>{q("layoutContentSpinning",!1)}}),dl=()=>({setWatermarkContent:r=>{const{getWatermarkConfig:a}=D(),s=Object.assign(a.value,{content:r}),{updateSettingState:l}=j();l("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:r}=j();r("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:r}=j();r("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:r}=D(),{updateSettingState:a}=j();a("watermarkSwitch",!r.value)}}),ze=e=>{const{getPrimaryColorOverride:t}=D(),{updateSettingState:n}=j();n("primaryColorOverride",e?Object.assign({},t.value,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light))},br=()=>{const e=()=>{const{getAppTheme:r}=D(),{t:a}=se();return{theme:r.value,themeI18nLabel:r.value?a("headerSettingOptions.ThemeOptions.Dark"):a("headerSettingOptions.ThemeOptions.Light"),themeLabel:r.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:r}=j();r("appTheme",!0),ze(!0)},lightTheme:()=>{const{updateSettingState:r}=j();r("appTheme",!1),ze(!1)},toggleTheme:()=>{const{theme:r}=e(),{updateSettingState:a}=j();a("appTheme",!r),ze(!r)},getAppTheme:e}},Z=(e,t)=>{const{getMenuTagOptions:n}=J();if(typeof e=="number"){if(isNaN(e)){console.warn(`${t}: The ${e} is NaN, expect number.`);return}if(e>n.value.length||e<-1){console.warn(`${t}: The incoming index ${e} did not match the corresponding item.`);return}return{option:n.value[e],index:e}}else if(typeof e=="string"){const o=n.value.findIndex(r=>r.fullPath===e);return o>-1?{option:n.value[o],index:o}:console.warn(`${t}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:o}=e,r=n.value.findIndex(a=>a.fullPath===o);if(r===-1){console.warn(`${t}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:r}}};function $t(){const{getMenuTagOptions:e,getMenuKey:t}=J(),{changeMenuModelValue:n,spliceMenTagOptions:o,setMenuTagOptions:r,resolveOption:a}=ue(),s=()=>e.value.findIndex(p=>p.fullPath===t.value);return{close:p=>{const g=Z(p,"close");if(e.value.length!==1&&g){const{index:v,option:y}=g;if(o(v),y.fullPath===t.value){const c=e.value[v-1];c&&n(c.fullPath,c)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:p}=ne(),{router:{getRoutes:g}}=Ge(),v=g().find(y=>y.path===p.value);if(v){const y=ae(v,$e),c=a(y);n(c.path,a({...c,fullPath:c.path}))}},closeRight:p=>{const g=Z(p,"closeRight");if(g){const{option:v,index:y}=g,c=e.value.length-y,b=s();o(y+1,c),y<=b&&t.value!==v.fullPath&&n(v.fullPath,v)}},closeLeft:p=>{const g=Z(p,"closeLeft");if(g){const{option:v,index:y}=g,c=s();o(0,y),c<=y&&t.value!==v.fullPath&&n(v.fullPath,v)}},closeOther:p=>{const g=Z(p,"closeOther");if(g){const{option:v}=g;t.value!==v.fullPath?(o(0,e.value.length),n(v.fullPath,v)):r(v,!1)}},getCurrentTagIndex:s,checkCloseRight:p=>{const g=Z(p,"checkCloseRight");if(g){const{index:v}=g,y=e.value.length-1;return!(v>=y)}return!1},checkCloseLeft:p=>{const g=Z(p,"checkCloseRight");if(g){const{index:v}=g,y=e.value.length-1;return v===0?!1:v>0&&y>0}return!1}}}function pl(){return{navigationTo:(t,n)=>{const{router:{getRoutes:o,push:r,replace:a}}=Ge(),{isPush:s=!0,query:l}=n||{},i=u=>s?r({path:u,query:l}):a({path:u,query:l});if(typeof t=="number"){if(isNaN(t)){console.warn(`[navigationTo]: The ${t} is NaN, expect number.`);return}const{getMenuOptions:u}=J();if(t>u.value.length){console.warn(`[navigationTo]: The current ${t} exceeds the maximum number of menus.`);return}const d=u.value[t],h=f=>{if(f.children&&f.children.length>0){const{children:[m]}=f;h(m);return}i(f.fullPath)};h(d)}else if(typeof t=="string"){const u=o().find(d=>d.path===t);u?i(u.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else i(t.fullPath)}}}function ne(){const{getAppRootRoute:e}=D(),{updateSettingState:t}=j(),n=e,o=Vue.computed(()=>e.value.path),r=Vue.computed(()=>e.value.name);return{getRootRoute:n,getRootPath:o,getRootName:r,setRootRoute:s=>{t("appRootRoute",Object.assign({},e.value,s))}}}const _r=(e,t)=>{const{show:n,...o}=t;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:n}),e.extra=Mt(e)},dt=(e,t,n)=>{const o=It(e,t);o&&_r(o,n)},je=(e,t,n)=>{const{getMenuOptions:o}=J();if(typeof e=="string")dt(o.value,e,n);else if(G(e,"Object")){const{fullPath:r}=e;dt(o.value,r,n)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function ml(){return{hidden:o=>{je(o,"hidden",{show:!1})},show:o=>{je(o,"show",{show:!0})},update:(o,r)=>{je(o,"update",r)}}}const hl=()=>{const e=Ct.value,{scrollTo:t}=e||{};if(!t)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return t},Kt=()=>le(I.localeLanguage,"localStorage",{defaultValue:jn}),fl=()=>{const e=Vue.ref(),t=p=>{p&&(e.value=p)},n=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[t,{clearFilters:()=>n().clearFilters.call(null),getTableProInstance:n,clearSorter:()=>n().clearSorter.call(null),downloadCsv:p=>n().downloadCsv.call(null,p),filters:p=>n().filters.call(null,p),page:p=>n().page.call(null,p),scrollTo:p=>n().scrollTo(p),sort:(p,g)=>n().sort.call(null,p,g),getTablePagination:()=>n().getTablePagination.call(null),runTableRequest:p=>n().runTableRequest.call(null,p),print:p=>n().print.call(null,p),getCurrentTableRequestParams:p=>n().getCurrentTableRequestParams.call(null,p)}]};export{ll as $,Br as A,Ur as B,qr as C,Bn as D,Gr as E,nl as F,tl as G,Yr as H,cl as I,Hr as J,Zr as K,Ct as L,Dr as M,Jr as N,ol as O,Go as P,pa as Q,Xr as R,ka as S,Da as T,ie as U,Qr as V,fl as W,el as X,gr as Y,Ma as Z,R as _,il as a,Kr as a0,Pt as a1,Bt as a2,pl as a3,Vr as a4,dl as a5,ml as a6,ul as b,hl as c,$r as d,D as e,I as f,jr as g,j as h,mr as i,Ta as j,Ce as k,Wa as l,we as m,Fr as n,Wr as o,sl as p,ne as q,se as r,rl as s,N as t,br as u,wt as v,ke as w,Ge as x,zr as y,al as z}; diff --git a/js/hooks-DUpKDX8W.js.gz b/js/hooks-DUpKDX8W.js.gz deleted file mode 100644 index 740f6440..00000000 Binary files a/js/hooks-DUpKDX8W.js.gz and /dev/null differ diff --git a/js/hooks-Dx3WCPci.js b/js/hooks-Dx3WCPci.js new file mode 100644 index 00000000..50c45d31 --- /dev/null +++ b/js/hooks-Dx3WCPci.js @@ -0,0 +1,12 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-CwlGQXIX.js","js/dayjs@1.11.10-C8LoRVP6.js","js/call-bind@1.0.7-Cpj98o6Y.js","js/print-js@1.6.0-BdoEj60G.js","js/vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js","js/@vue_reactivity@3.5.12-IcmYCeX3.js","js/@vue_shared@3.5.12--5_uv9t5.js","js/@vue_runtime-core@3.5.12-o4JnKqGq.js","js/lodash@4.17.21-Cw59kuJw.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-DmMZCkhi.js","js/jsbarcode@3.11.6-DGNGFp02.js","js/currency.js@2.0.4-9OAR_aOO.js","js/lodash-es@4.17.21-CeZG2a4n.js","js/naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js","js/date-fns@3.6.0-q9PkOyxq.js","js/seemly@0.3.8-DjGKl9dV.js","js/vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js","js/evtd@0.2.4-CI_DDEu_.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js","js/vooks@0.2.12_vue@3.5.12-fnTfirhD.js","js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js","js/@juggle_resize-observer@3.4.0-C8OzoCMD.js","js/css-render@0.15.14-C5toWlUr.js","js/@emotion_hash@0.8.0-WldOFDRm.js","js/@vue_runtime-dom@3.5.12-CgYSV3BI.js","js/treemate@0.3.11-DKekKYbv.js","js/date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js","js/async-validator@4.2.5-DKvM95Vc.js","js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js","js/@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js","js/@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js","js/utils-CozJMALc.js","js/interactjs@1.10.26-DZL_TZzP.js","js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js","js/destr@2.0.3-CVtkxrq9.js","js/deep-pick-omit@1.2.1-CegYQlcN.js","js/pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js","js/vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js","js/html-to-image@1.11.11-BOFdlgi9.js","js/vue-router@4.3.2_vue@3.5.12-DofREeSi.js","js/vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js","js/@intlify_shared@9.13.1-BxU0OzX2.js","js/@intlify_core-base@9.13.1-C6DqbPB6.js","js/@intlify_message-compiler@9.13.1-GrLDMuy_.js","js/echarts@5.5.0-CezqL3m-.js","js/zrender@5.5.0-DW8ownf1.js","js/tslib@2.3.0-BDyQ-Jie.js","js/zh-CN-CvShabvr.js","js/index-Y-FcIns6.js","js/index-CnbvNhnT.js","css/index-D_4DGt8i.css","js/index-DWx8AyMg.js","js/instance-nIExQa9a.js","js/axios@1.7.5-C8DqakIB.js","css/index-QAd2IBUs.css","js/BarcodeDemo-BXJroooI.js","js/index-CkpHVUoU.js","js/index-Dl1wA0be.js","js/index-C-If8jHb.js","js/index-Br4Wy2RB.js","css/index-DHYYVpM7.css","js/index-Bt0hNJeI.js","js/index-ma7T1XPs.js","js/index-RLmFcqh0.js","js/index-Cw1cSW0X.js","js/index-CyTGAiVw.js","js/index-mffIYrJp.js","js/index-3_6mCYvY.js","js/index-Gxtc1_K9.js","js/index-CXKTRpfx.js","js/vue3-next-qrcode@2.0.10_typescript@5.2.2-jc-XBHxJ.js","css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css","js/ray-dCjhX_JK.js","js/index-B-DmbCNN.js","css/index-B6yUFiKH.css","js/index-DKQ0UgNK.js","js/index-f23H9wre.js","js/index-B6Vex0Vv.js","css/index-Dig957GB.css","js/index-DHuxv_PD.js","js/index-BMHAQ_2t.js","css/index-Eq1L-L2-.css","js/TablePro-Bvcdca-s.js","js/mockjs@1.1.0-CxlURkif.js","js/index-CjTD2K12.js","js/index-DhmVa7aC.js","js/index-CChanisz.js","css/index-74sXJ5VP.css","js/index-CnxKNshD.js","css/index-b1h4j9PV.css"])))=>i.map(i=>d[i]); +var Kn=Object.defineProperty;var Un=(e,t,n)=>t in e?Kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Et=(e,t,n)=>Un(e,typeof t!="symbol"?t+"":t,n);import{s as st,c as Ue,t as Tt,i as Qt,p as Oe,o as Ot}from"./lodash-es@4.17.21-CeZG2a4n.js";import{z as zt,d as jt,N as Xe,g as Wn,a as qn,b as Gn,c as z,e as Je,m as Hn,f as Zt,u as Yn,S as Rt,h as Xn,i as ye,j as Jn,k as en,l as Re,n as Qn,o as Zn,p as eo,q as to,t as no,r as oo,s as ao,v as so,w as tn,x as We,y as nn,A as ro,B as lo,C as io,D as Te,E as co,F as je,G as uo,H as po,I as mo,J as De,K as ho,L as go,M as fo,O as yo,P as vo,Q as ke,R as bo,T as _o,U as on,V as So,W as Dt,X as wo}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{o as Co,u as Ae,a as To,b as Oo,c as rt,d as kt,e as Ro}from"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import{k as x,l as he,e as Q,q as ko,v as ve,a as an,s as Ao,u as H}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{n as W,l as P,m as ae,j as w,w as be,f as xe,p as Po,k as Qe,q as sn,b as i,t as $,h as Ze,v as ce,i as rn,x as xo,F as ln,y as Mo,z as te,A as At,C as lt,D as Lo,E as we,S as Io,K as Eo,G as Nt,H as zo,I as jo,J as cn}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as Z}from"./dayjs@1.11.10-C8LoRVP6.js";import{p as Do}from"./print-js@1.6.0-BdoEj60G.js";import{u as un}from"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{b as No}from"./jsbarcode@3.11.6-DGNGFp02.js";import{g as Pe,i as se,s as Pt,a as _t,c as Vo,l as dn,b as pn,d as $o,e as V,r as ge,f as j,h as Bo,u as qe,q as Ge,j as Fe,k as mn,p as hn,m as xt,n as Vt,o as de,t as Fo,v as Ko,w as Uo,x as Wo,y as qo,z as ne}from"./utils-CozJMALc.js";import{i as $t}from"./interactjs@1.10.26-DZL_TZzP.js";import{s as Go}from"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import{d as et,c as Ho}from"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import{t as Yo,a as Xo,b as Jo,c as Qo,d as Zo,e as ea}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as tt,a as ta,o as na,c as oa,b as aa}from"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import{c as sa}from"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import{f as ra,g as la}from"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import{r as ia,u as Ce,i as ca,a as ua,b as da,c as pa,d as ma,e as ha,f as ga,g as fa,h as ya,j as va,k as ba,l as _a,m as Sa,n as wa,o as Ca,p as Ta,q as Oa,s as Ra}from"./echarts@5.5.0-CezqL3m-.js";import{T as ka,a as Aa}from"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";const Fl=(e,t)=>{if(typeof t!="string"||!t.trim())throw new TypeError("Expected prefix to be a non-empty string");const n={};return Object.keys(e).forEach(o=>{const s=e[o].default;let a=o.replace(`./${t}/`,"").replace(/^\.\//,"");const l=a.lastIndexOf(".");a=a.substring(0,l);const r=a.split("/"),c=r.shift(),u=r.join(".");c&&(u?(st(n,c,n[c]||{}),st(n[c],u,s)):st(n,c,s||{}))}),n},Pa="modulepreload",xa=function(e){return"/ray-template/"+e},Bt={},L=function(t,n,o){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.all(n.map(r=>{if(r=xa(r),r in Bt)return;Bt[r]=!0;const c=r.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${u}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Pa,c||(p.as="script"),p.crossOrigin="",p.href=r,l&&p.setAttribute("nonce",l),document.head.appendChild(p),c)return new Promise((f,y)=>{p.addEventListener("load",f),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${r}`)))})}))}return s.then(()=>t()).catch(a=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a})},Ma=(e,t,n)=>{const o=e[t];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((s,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},La=async e=>{var n;const t={};for(const o of e){const s=await Ma(Object.assign({"../lang/en-US.ts":()=>L(()=>import("./en-US-CwlGQXIX.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),"../lang/zh-CN.ts":()=>L(()=>import("./zh-CN-CvShabvr.js"),__vite__mapDeps([48,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47]))}),`../lang/${o.key}.ts`,3),a=o.key;a&&(t[a]=((n=s==null?void 0:s.default)==null?void 0:n.message)??{})}return t},Kl=e=>{switch(e){case"zh-CN":return{locale:zt,dateLocal:jt};case"en-US":return{locale:null,dateLocal:null};default:return{locale:zt,dateLocal:jt}}},Ul={max:5,closable:!1},Wl="loading",gn={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},Ia={icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},ie={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},ql="",F={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},Ea=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],Y={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#a6e4f7","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},fn=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],za="zh-CN",ja="zh-CN",Da={"zh-CN":"zh-cn","en-US":"en"},Na="zh-cn",Gl={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/},Hl={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},me=x(null),yn=x(null),Va={setupRouterLoadingBar:!0,setupRouterGuard:!0},$a=["RLogin","ErrorPage","RayTemplateDoc"],Ne=["admin"],Yl=(e,t)=>{const n=x(0),o=x(0),s=x(!1),{clickOutside:a}={},l=f=>{s.value=f},r=f=>{f.preventDefault(),l(!1),W().then(()=>{const{clientX:y,clientY:g}=f;n.value=y,o.value=g,l(!0)})};a&&Co(e,f=>{a(f)});const c=Ae(e,"contextmenu",r,t),u=Ae(e,"click",()=>{l(!1)});return{stop:()=>{c(),u()},x:he(n),y:he(o),show:he(s),updateShow:l}},He=Q({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function oe(e,t,n){Object.hasOwn(He,e)&&(He[e]=t)}function nt(e){return he(ko(He,e))}function Ba(){return{...ve(he(He))}}let ee;const Fa=async()=>{const e=jn(),t=await La(fn);return sa({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:ja})},Xl=async e=>{const t=await Fa();e.use(t),ee=t},Ft=(e,t)=>t,Me=e=>{if(!ee)return{t:a=>Ft(e,a),locale:a=>{}};const{t,...n}=ee.global;return{...n,t:(a,...l)=>a?!a.includes(".")&&!e?a:t(Ft(e,a),...l):"",locale:a=>{ee.mode==="legacy"?ee.global.locale=a:an(ee.global.locale)?ee.global.locale.value=a:ee.global.locale=a}}},D=e=>e,Ka={path:"/dashboard",component:()=>L(()=>import("./index-Y-FcIns6.js"),__vite__mapDeps([49,12,1,2,3,4,5,6,7,8,9,10,11,50,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,51])),meta:{i18nKey:D("menu.Dashboard"),icon:"dashboard",order:0}},Ua=Object.freeze(Object.defineProperty({__proto__:null,default:Ka},Symbol.toStringTag,{value:"Module"})),Wa={path:"/axios",name:"RAxios",component:()=>L(()=>import("./index-DWx8AyMg.js"),__vite__mapDeps([52,4,5,6,7,8,2,9,10,53,54,1,3,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,55])),meta:{i18nKey:D("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},qa=Object.freeze(Object.defineProperty({__proto__:null,default:Wa},Symbol.toStringTag,{value:"Module"})),Ga={path:"barcode",component:()=>L(()=>import("./BarcodeDemo-BXJroooI.js"),__vite__mapDeps([56,12,1,2,3,4,5,6,7,8,9,10,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,11,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:D("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},Ha=Object.freeze(Object.defineProperty({__proto__:null,default:Ga},Symbol.toStringTag,{value:"Module"})),Ya={path:"/cache-demo",component:()=>L(()=>import("./index-CkpHVUoU.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:D("menu.CacheDemo"),icon:"other",order:3}},Xa=Object.freeze(Object.defineProperty({__proto__:null,default:Ya},Symbol.toStringTag,{value:"Module"})),Ja={path:"/context-menu",component:()=>L(()=>import("./index-Dl1wA0be.js"),__vite__mapDeps([58,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:D("menu.ContextMenu"),icon:"other",order:2}},Qa=Object.freeze(Object.defineProperty({__proto__:null,default:Ja},Symbol.toStringTag,{value:"Module"})),Za={path:"/directive",component:()=>L(()=>import("./index-C-If8jHb.js"),__vite__mapDeps([59,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{i18nKey:D("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},es=Object.freeze(Object.defineProperty({__proto__:null,default:Za},Symbol.toStringTag,{value:"Module"})),ts={path:"/echart",component:()=>L(()=>import("./index-Br4Wy2RB.js"),__vite__mapDeps([60,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,61])),meta:{i18nKey:D("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},ns=Object.freeze(Object.defineProperty({__proto__:null,default:ts},Symbol.toStringTag,{value:"Module"})),os={path:"/form",component:()=>L(()=>import("./index-Bt0hNJeI.js"),__vite__mapDeps([62,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:D("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},as=Object.freeze(Object.defineProperty({__proto__:null,default:os},Symbol.toStringTag,{value:"Module"})),ss={path:"/iframe",component:()=>L(()=>import("./index-ma7T1XPs.js"),__vite__mapDeps([63,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},rs=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"})),ls={path:"/mock-demo",component:()=>L(()=>import("./index-RLmFcqh0.js"),__vite__mapDeps([64,12,1,2,3,11,4,5,6,7,8,9,10,53,54,32,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:D("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},is=Object.freeze(Object.defineProperty({__proto__:null,default:ls},Symbol.toStringTag,{value:"Module"})),cs={path:"/modal-demo",component:()=>L(()=>import("./index-Cw1cSW0X.js"),__vite__mapDeps([65,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:D("menu.Modal"),icon:"other",order:3}},us=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),Ke=()=>L(()=>Promise.resolve().then(()=>Mr),void 0),ds={path:"/multi",component:Ke,meta:{i18nKey:D("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>L(()=>import("./index-CyTGAiVw.js"),__vite__mapDeps([66,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:Ke,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>L(()=>import("./index-mffIYrJp.js"),__vite__mapDeps([67,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:Ke,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>L(()=>import("./index-3_6mCYvY.js"),__vite__mapDeps([68,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},ps=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"})),ms={path:"/precision",component:()=>L(()=>import("./index-Gxtc1_K9.js"),__vite__mapDeps([69,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:D("menu.CalculatePrecision"),icon:"other",order:2}},hs=Object.freeze(Object.defineProperty({__proto__:null,default:ms},Symbol.toStringTag,{value:"Module"})),gs={path:"/qrcode",component:()=>L(()=>import("./index-CXKTRpfx.js"),__vite__mapDeps([70,71,7,5,6,72,73,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{i18nKey:D("menu.QRCode"),icon:"other",order:2}},fs=Object.freeze(Object.defineProperty({__proto__:null,default:gs},Symbol.toStringTag,{value:"Module"})),ys={path:"rely-about",component:()=>L(()=>import("./index-B-DmbCNN.js"),__vite__mapDeps([74,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,75])),meta:{i18nKey:D("menu.RelyAbout"),icon:"rely",order:999}},vs=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"})),bs={path:"/router-demo",component:Ke,meta:{i18nKey:D("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>L(()=>import("./index-DKQ0UgNK.js"),__vite__mapDeps([76,12,1,2,3,40,5,6,7,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,4,8,9,10,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>L(()=>import("./index-f23H9wre.js"),__vite__mapDeps([77,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},_s=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),Ss={path:"/scroll-reveal",component:()=>L(()=>import("./index-B6Vex0Vv.js"),__vite__mapDeps([78,7,5,6,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,79])),meta:{i18nKey:D("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},ws=Object.freeze(Object.defineProperty({__proto__:null,default:Ss},Symbol.toStringTag,{value:"Module"})),Cs={path:"/segment",component:()=>L(()=>import("./index-DHuxv_PD.js"),__vite__mapDeps([80,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:D("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Ts=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"})),Os={path:"/svg-icons",component:()=>L(()=>import("./index-BMHAQ_2t.js"),__vite__mapDeps([81,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,82])),meta:{i18nKey:D("menu.SvgIcon"),icon:"other",order:3}},Rs=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),ks={path:"/table-pro",component:()=>L(()=>import("./TablePro-Bvcdca-s.js"),__vite__mapDeps([83,12,1,2,3,4,5,6,7,8,9,10,11,32,13,53,54,84,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:D("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},As=Object.freeze(Object.defineProperty({__proto__:null,default:ks},Symbol.toStringTag,{value:"Module"})),Ps={path:"/table",component:()=>L(()=>import("./index-CjTD2K12.js"),__vite__mapDeps([85,32,12,1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:D("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},xs=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),Ms={path:"/template-hooks",component:()=>L(()=>import("./index-DhmVa7aC.js"),__vite__mapDeps([86,12,1,2,3,4,5,6,7,8,9,10,11,14,15,16,17,18,19,20,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])),meta:{i18nKey:D("menu.TemplateHooks"),icon:"other",order:1}},Ls=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),Is=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Ua,"/src/router/modules/demo/axios.ts":qa,"/src/router/modules/demo/barcode.ts":Ha,"/src/router/modules/demo/cache-demo.ts":Xa,"/src/router/modules/demo/context-menu.ts":Qa,"/src/router/modules/demo/directive.ts":es,"/src/router/modules/demo/echart.ts":ns,"/src/router/modules/demo/form.ts":as,"/src/router/modules/demo/iframe.ts":rs,"/src/router/modules/demo/mock.ts":is,"/src/router/modules/demo/modal.ts":us,"/src/router/modules/demo/multi-menu.ts":ps,"/src/router/modules/demo/precision.ts":hs,"/src/router/modules/demo/qrcode.ts":fs,"/src/router/modules/demo/rely.ts":vs,"/src/router/modules/demo/router-demo.ts":_s,"/src/router/modules/demo/scroll-reveal.ts":ws,"/src/router/modules/demo/segment.ts":Ts,"/src/router/modules/demo/svg-icons.ts":Rs,"/src/router/modules/demo/table-pro.ts":As,"/src/router/modules/demo/table.ts":xs,"/src/router/modules/demo/template-hooks.ts":Ls});return Object.keys(e).reduce((n,o)=>{const s=e[o].default;if(s)n.push(s);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return n},[])},Es=e=>e[0]==="/",vn=(e,t=[],n="")=>{var o;if(!Array.isArray(e))return[];for(const s of e){const a=n+(Es(s.path)?s.path:"/"+s.path);if((o=s.children)!=null&&o.length){vn(s.children,t,a);continue}else t.push({...s,path:a})}return t},zs=e=>Array.isArray(e)?vn(Ue(e)):[],js=e=>e.sort((t,n)=>{var a,l;const o=((a=t.meta)==null?void 0:a.order)??1,s=((l=n.meta)==null?void 0:l.order)??0;if(typeof o!="number"||typeof s!="number")throw new TypeError("orderRoutes error: order must be a number!");return o===s?t.name?n.name?t.name.localeCompare(n.name):-1:1:o-s}),Ds=e=>{const{beforeEach:t}=e,{getRootPath:n}=_e(),o=(s,a)=>s.path==="/"||a.path==="/login";t((s,a,l)=>{const r=Pe(F.token,"localStorage"),c=Pe(F.appMenuKey,"sessionStorage",{defaultValue:n.value}),{meta:u,name:p}=s;r!==null?o(s,a)?it(!0):!se(p,"Symbol")&&p&&$a.includes(p)?l():Ln(u)?o(s,a)?c?l(c):it(!0):l():it(!0):o(s,a)?l():l("/")})},it=(e=!0)=>{const{router:t}=Mt(),{push:n,replace:o}=t,{getRootPath:s}=_e();Pt(F.appMenuKey,s.value,"localStorage"),e?o(s.value):n(s.value)},Ns=e=>{var n;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(n=me.value)==null||n.scrollTo({top:0,left:0,behavior:"smooth"})},Vs=e=>{e.beforeEach(()=>{var t;(t=window.$loadingBar)==null||t.start()}),e.afterEach(()=>{var t;(t=window.$loadingBar)==null||t.finish()}),e.onError(()=>{var t;(t=window.$loadingBar)==null||t.error()})},bn=e=>{const{meta:t={}}=e,{hidden:n,sameLevel:o,env:s}=t,{MODE:a}=_t();return!(o||n||s&&typeof s=="string"&&s!==a||s&&Array.isArray(s)&&!s.includes(a))};var $s={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.7"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const _n=et("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=$s,{locale:t}=Me(),{locale:n}=pl(),o=Q({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:jn(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15},appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:Object.assign({},Ia)}),s=r=>{t(r),n(r),o.localeLanguage=r,Pt(F.localeLanguage,r,"localStorage")},a=(r,c=.3)=>{const u=Vo(r,c),p={primaryColor:r,primaryColorHover:r,primaryColorPressed:r};o.primaryColorOverride.common=p;const f=document.body;f.style.setProperty("--ray-theme-primary-color",r),f.style.setProperty("--ray-theme-primary-fade-color",u)},l=(r,c,u)=>{Object.hasOwn(o,r)&&(o[r]=c),u==null||u()};return ra(()=>o.appTheme,r=>{r?o.primaryColorOverride=Object.assign({},o.primaryColorOverride,Y.appNaiveUIThemeOverrides.dark,Y.appNaiveUIThemeOverridesCommon.dark):o.primaryColorOverride=Object.assign({},o.primaryColorOverride,Y.appNaiveUIThemeOverrides.light,Y.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...ve(o),updateLocale:s,changePrimaryColor:a,updateSettingState:l}},{persist:{key:F.appPiniaSettingStore}}),Bs={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>dn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>pn()},onRegister:{type:[Function,Array],default:null}},Fs=$o(),Kt="__R_CHART_DOWN_LOAD_CHART__";Fs.forEach(e=>{ia(e.name,e.theme)});const Jl=P({name:"RChart",props:Bs,setup(e,{expose:t}){const{getAppTheme:n}=G(),o=ae("rayChartRef"),s=ae("rayChartWrapperRef"),a=Ao();let l,r;const{echartTheme:c}=Y;let u;const p=w(()=>[{label:"下载图片",key:Kt,disabled:!(a.value&&a.value.getDom())}]),f=w(()=>({"--ray-chart-width":V(e.width),"--ray-chart-height":V(e.height)})),y=x(!1);let g;const h={aria:e.showAria},_=async()=>{var O;Ce([ua,da,pa,ma,ha,ga,fa,ya]),Ce([va,ba,_a,Sa,wa,Ca]),Ce([Ta,Oa]),Ce([Ra]);try{Ce((O=e.use)==null?void 0:O.filter(Boolean))}catch(E){console.error("[RChart register error]: ",E)}},m=()=>{if(a.value&&R(),e.theme==="default"){e.autoChangeTheme?d("dark"):d("");return}if(e.theme)d(e.theme);else{const O=e.autoChangeTheme&&n.value?`${c}-dark`:c;d(O)}},S=O=>{let E=H(O);return E=(K=>Object.assign({},E,K))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),E},d=(O=c)=>{var Ee;const E=o.value,N=S(e.options),{height:K,width:B}=E.getBoundingClientRect(),{onSuccess:re,onError:Se}=e;try{a.value=ca(E,O,{width:B===0?200:void 0,height:K===0?200:void 0}),re&&j(re,a.value),e.nextTick?(a.value.setOption({}),W(()=>{var J;N&&((J=a.value)==null||J.setOption(N))})):N&&((Ee=a.value)==null||Ee.setOption(N))}catch(J){throw Se&&j(Se),new Error(`[RChart render error]: ${J}`)}finally{const{onFinally:J}=e;J&&j(J)}},v=()=>{var O;return!!((O=a.value)!=null&&O.isDisposed())},R=()=>{var O;v()||(O=a.value)==null||O.dispose()},T=()=>{a.value&&a.value.resize()},b=(O,E)=>{if(O===Kt&&!v()){const{filename:K,...B}=e.downloadOptions;Bo(a.value.getDataURL(B),K??`${new Date().getTime()}`)}const{onDropdownSelect:N}=e;N&&j(N,O,E)},C=()=>{var E;if(e.autoResize&&(l||(l=Tt(T,500)),r||(r=Oo(e.autoResizeObserverTarget||s,l))),(E=a.value)!=null&&E.getDom()||!y.value&&e.intersectionObserver)return;m(),g==null||g.stop();const{onRegister:O}=e;O&&a.value&&j(O,a.value,C,I)},I=()=>{R(),l==null||l.cancel(),r==null||r.stop(),g==null||g.stop(),g=null,l=null,r=null};return be(()=>n.value,()=>{e.autoChangeTheme&&(R(),m())}),xe(()=>{var O,E;e.intersectionObserver&&(g=To(e.intersectionObserverTarget||s,([N])=>{y.value=N.isIntersecting},e.intersectionOptions)),e.watchOptions?u=la(()=>e.options,N=>{var re;const K=S(N),B=Object.assign({},pn(),e.setChartOptions);(re=a.value)==null||re.setOption(K,B)},{deep:!0,throttle:e.watchOptionsThrottleWait}):u==null||u(),e.loading?(O=a.value)==null||O.showLoading(dn(e.loadingOptions)):(E=a.value)==null||E.hideLoading(),e.showAria!==h.aria&&a.value&&(a.value.setOption(S(e.options)),h.aria=e.showAria),y.value&&!v()&&C()}),t(),Po(async()=>{await _()}),Qe(()=>{C()}),sn(()=>{I(),u==null||u()}),{rayChartRef:o,cssVarsRef:f,rayChartWrapperRef:s,moreDropDownOptions:p,dropdownSelect:b}},render(){const{title:e,contentStyle:t,preset:n,moreDropDownOptions:o,dropdownSelect:s,bordered:a,dropdownOptions:l}=this,{cardExtra:r}=this.$slots;return n==="card"?i(Xe,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:a,embedded:!0},{default:ge(i("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ge(e,{defaultElement:i("div",{style:"display: none;"},null)}),"header-extra":ge(r,{defaultElement:i(Cn,{iconSize:18,cursor:"pointer",options:l||o,trigger:"click",onSelect:s.bind(this),placement:"bottom-end"},null)})}):i("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[i("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),Ql=()=>{let e,t,n;const o=(c,u,p)=>{c&&(e=c,t=p,n=u)},s=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:t,render:n,echartInst:e}};return[o,{getChartInstance:s,isDisposed:()=>{var c;return!!((c=s().echartInst)!=null&&c.isDisposed())},dispose:()=>s().dispose.call(null),render:()=>s().render.call(null)}]},Ks={actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!0},onUpdateOpen:{type:[Function,Array],default:null},"onUpdate:open":{type:[Function,Array],default:null},...Wn},Zl=P({name:"RCollapseGrid",props:Ks,setup(e){const t=x(!e.open),n=w(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{const{onUpdateOpen:a,"onUpdate:open":l}=e;t.value=!t.value,a&&j(a,t.value),l&&j(l,t.value)},s=a=>i("div",{class:"collapse-icon",onClick:o.bind(this)},[i("span",null,[a?e.collapseToggleText[0]:e.collapseToggleText[1]]),i(A,{customClassName:`collapse-icon--arrow ${a?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return xe(()=>{t.value=!e.open}),{modelCollapsed:t,collapseClick:o,CollapseIcon:s,cssVars:n}},render(){const{$slots:{collapse:e,action:t,default:n},CollapseIcon:o,$props:s,modelCollapsed:a,xGap:l,yGap:r,collapsedRows:c,cssVars:u}=this;return i(Xe,{bordered:this.bordered,style:[u]},{default:()=>i(qn,$({class:"ray-collapse-grid"},s,{collapsed:a,xGap:l||12,yGap:r||12,collapsedRows:c}),{default:()=>[n==null?void 0:n(),i(Gn,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[i(z,{justify:"end",align:"center"},{default:()=>[t==null?void 0:t(),e?e(a):o(a)]})]})]})})}}),Us={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},A=P({name:"RIcon",props:Us,setup(e){const t=w(()=>`#${e.prefix}-${e.name}`),n=w(()=>({"--ray-icon-width":e.width?V(e.width):V(e.size),"--ray-icon-height":e.height?V(e.height):V(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:t,cssVars:n,iconClick:s=>{const{onClick:a}=e;a&&j(a,s)}}},render(){return i("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[i("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[i("use",$({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),Ws={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:[Boolean,String],default:!0},iframeClass:{type:String,default:null}},ei=P({name:"RIframe",props:Ws,setup(e,{expose:t}){const n=w(()=>({"--ray-iframe-frameborder":V(e.frameborder),"--ray-iframe-width":V(e.width),"--ray-iframe-height":V(e.height)})),o=ae("iframeRef"),s=x(!0),a=r=>{s.value=!1;const{onSuccess:c}=e;c&&j(c,o.value,r)},l=r=>{s.value=!1;const{onError:c}=e;c&&j(c,r)};return Ae(o,"load",a),Ae(o,"error",l),t({iframeInst:o}),{cssVars:n,iframeRef:o,spinShow:s}},render(){return i("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[i(Je,$(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>i("iframe",{class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title,loading:typeof this.lazy=="boolean"?"lazy":this.lazy},null)})])}}),qs={...Hn,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},Gs=(e,t,n)=>{const{scheduler:o}=n??{};return new Promise(s=>{setTimeout(()=>{const a=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const l=$t(e).draggable({inertia:!0,autoScroll:!0,allowFrom:a,modifiers:[$t.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:r=>{o==null||o(r)}}}).resizable(!1);s(l)}},30)})},Sn=(e,t)=>{const n=typeof e=="string"?document.querySelector(e):e;return new Promise((o,s)=>{if(n){n.setAttribute("can-drag","true");const{preset:a,dargCallback:l}=t;let{x:r,y:c}=t;Gs(n,a,{scheduler:u=>{const p=u.target;r+=u.dx,c+=u.dy,p.style.transform=`translate(${r}px, ${c}px)`,l==null||l(r,c,u)}}).then(u=>{o(u)})}else s()})},Hs="r-modal__preset-card--fullscreen",wn="r-modal",fe={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},ti=P({name:"RModal",props:qs,setup(e){const t=w(()=>({[fe.width]:V(e.width??600),[fe.cardWidth]:V(e.cardWidth??600),[fe.dialogWidth]:V(e.dialogWidth??446)})),n=qe();let o;const s={x:0,y:0},a=w(()=>e.preset==="card"&&e.fullscreen);return be(()=>e.show,l=>{l&&e.dad&&(e.preset==="card"||e.preset==="dialog")?W(()=>{const r=document.getElementById(n);r&&Sn(r,{preset:e.preset,x:s.x,y:s.y,dargCallback:(c,u)=>{s.x=c,s.y=u}}).then(c=>{o=c}),e.memo&&r&&(r.style.transform=`translate(${s.x}px, ${s.y}px)`)}):(o==null||o.unset(),o=null)},{immediate:!0}),{cssVars:t,isFullscreenCardType:a,uuidEl:n}},render(){const{$props:e,$slots:t,$attrs:n}=this,{preset:o,...s}=e,{cssVars:a,uuidEl:l,isFullscreenCardType:r}=this;return i(Zt,$({class:[wn,r?Hs:""],style:[a,r?"height: 100vh":""],preset:o},{id:l},s,n),{...t})}}),ni=()=>{const{create:e,destroyAll:t}=Yn();return{create:o=>{const{content:s,...a}=o;let l=s;a.preset==="card"&&a.fullscreen&&(l=()=>Ze(Rt,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"none",style:{width:"auto",height:"calc(100vh - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof s=="function"?s():s}));const{preset:r,dad:c,fullscreen:u,width:p,cardWidth:f,dialogWidth:y}=o,g=e({...a,content:l}),{key:h}=g,_={[fe.width]:V(p??600),[fe.cardWidth]:V(f??600),[fe.dialogWidth]:V(y??446)};return W(()=>{const[m]=Ge(`[internalkey="${h}"]`)||[];if(m){if(c&&Sn(m,{preset:r,x:0,y:0}),u&&r==="card"){const S=m.querySelector(".n-card__content");S&&Fe(S,{maxHeight:"calc(100vh - 9px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))",overflowY:"hidden",padding:"0"}),Fe(m,{width:"100%",height:"100vh"})}Fe(m,_),mn(m,wn)}}),g},destroyAll:t}},Ys={...Xn,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function Xs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ce(e)}const Cn=P({name:"RMoreDropdown",props:Ys,render(){let e;const{iconSize:t,cursor:n,icon:o}=this,{default:s}=this.$slots;return i(ye,$(this.$props,this.$attrs,{placement:"bottom-start"}),Xs(e=ge(s,{defaultElement:i(A,{name:o,size:t,cursor:n},null)}))?e:{default:()=>[e]})}}),Le={...Jn,renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},X={tableIconSize:"18",tableKey:Symbol("r-table")},Js=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],Qs=P({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Le},setup(e){return{size:x(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:s=>{const{onChangeSize:a}=e;a&&j(a,s)}}},render(){return i(en,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[i(A,{name:"adjustment",size:X.tableIconSize,cursor:"pointer"},null)]})}}),Zs=P({name:"TableFullscreen",setup(){const{wrapperRef:e}=rn(X.tableKey,{}),[t,{toggleFullscreen:n,isEnabled:o}]=un(e);return{toggleFullscreen:n,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:t,$t:n}=this;return i(A,{name:"fullscreen",size:X.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(n("globalMessage.isEnabledFullscreen")),e()}},null)}}),er=()=>i(A,{name:"draggable",size:14,cursor:"grab"},null),Ut=({icon:e,title:t,onClick:n,customClassName:o})=>i(Re,{showArrow:!1},{trigger:()=>i(A,{name:e,size:X.tableIconSize,cursor:"pointer",customClassName:o,onClick:n==null?void 0:n.bind(null)},null),default:()=>t}),St=(e,t)=>{if(!t)return[null,null];for(let n=0;nUe(e.columns).filter(c=>c.type?(t=c,!1):!0).map((c,u)=>{const{key:p,title:f,children:y,fixed:g,isResizable:h,..._}=c,m=g==="left",S=g==="right",d={..._,title:f,key:p,fixed:g,isLeftFixedActivated:m,isRightFixedActivated:S,isResizable:h};return{...d,suffix:()=>i(z,{style:"padding-left: 32px;"},{default:()=>[i(Ut,{icon:"row_head",title:"固定在列首",customClassName:m?ct:"",onClick:a.bind(this,"left",d,u)},null),i(Re,{showArrow:!1},{trigger:()=>i(A,{name:"resize_h",size:X.tableIconSize,cursor:"pointer",customClassName:h?ct:"",onClick:s.bind(this,d,u)},null),default:()=>"修改列宽"}),i(Ut,{icon:"row_end",title:"固定在列尾",customClassName:S?ct:"",onClick:a.bind(this,"right",d,u)},null)]})}}),set:()=>{}}),o=r=>{const{onUpdateColumn:c}=e;c&&j(c,r)},s=(r,c)=>{r.isResizable=!r.isResizable,r.resizable=r.isResizable,n.value[c]=r,o(n.value)},a=(r,c,u)=>{const p=`${r}FixedActivated`,f=`${r==="left"?"right":"left"}FixedActivated`;c[f]=!1,c[p]=!c[p],c[p]?c.fixed=r:c.fixed=void 0,n.value[u]=c,o(n.value)};return{treeDataSource:n,treeDrop:({node:r,dragNode:c,dropPosition:u})=>{const[p,f]=St(c,n.value);if(p===null||f===null)return;p.splice(f,1);const[y,g]=St(r,n.value);y===null||g===null||(u==="before"?y.splice(g,0,c):y.splice(g+1,0,c),Qt(t)||y.unshift(t),o(y))}}},render(){return i(Re,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>i(A,{name:"setting",size:X.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>i(Qn,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:er.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),nr=P({name:"TablePrint",props:Le,setup(e){const{wrapperRef:t}=rn(X.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:s}={},title:a}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof a=="string"?a:""),hn(t,{printOptions:o,domToImageOptions:s})}}},render(){return i(A,{name:"print",size:X.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),or=P({name:"TablePropsSelect",props:{...Le,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=x(!1),n=x([]),o=a=>{const{onPopselectChange:l}=e;l&&j(l,a)};return(()=>{const{striped:a,bordered:l,onInitialed:r}=e;a&&n.value.push("striped"),l&&n.value.push("bordered"),r&&j(r,n.value)})(),{propsPopselectValue:n,popoverShow:t,updatePopselectValue:o}},render(){return i(en,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:Js,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[i(A,{name:"expanded",size:X.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function ar(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ce(e)}const oi=P({name:"RTable",inheritAttrs:!1,props:Le,setup(e,t){const{expose:n,emit:o}=t,s=ae("rTableInst"),a=ae("wrapperRef"),l=qe(16),r=qe(16),c=Q({x:0,y:0,showContextMenu:!1}),u=Q({size:e.size}),p=x(Object.assign({striped:!1,bordered:!1},Oe(e,"striped","bordered"))),f=(d,v)=>{const{onContextMenuClick:R}=e;R&&j(R,d,v),c.showContextMenu=!1},y=(d,v)=>{var T;return{...(T=e.rowProps)==null?void 0:T.call(e,d,v),onContextmenu:e.disabledContextMenu?void 0:b=>{b.preventDefault(),c.showContextMenu=!1,W().then(()=>{c.showContextMenu=!0,c.x=b.clientX,c.y=b.clientY})}}},g=d=>{u.size=d},h=d=>{const{onUpdateColumns:v,"onUpdate:columns":R}=e;v&&j(v,d),R&&j(R,d)},_=()=>{const{toolOptions:d}=e;return d==null?void 0:d.filter(Boolean).map(v=>typeof v=="function"?v():v)},m=d=>{Object.keys(p.value).forEach(R=>{p.value[R]=d.includes(R)})},S=d=>{const{tool:v}=d;if(!v)return;const R=()=>i(z,{align:"center"},{default:()=>[i(nr,d,null),i(Qs,$(d,{onChangeSize:g.bind(this)}),null),i(Zs,null,null),i(tr,$(d,{onUpdateColumn:h.bind(this)}),null),i(or,$(d,{onPopselectChange:m.bind(this),onInitialed:m.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let T;return i(z,{align:"center"},ar(T=_())?T:{default:()=>[T]})}:()=>i(z,{align:"center"},{default:()=>[R(),_()]}):R};return Qe(()=>{const{onRegister:d}=e;d&&s.value&&j(d,s.value,{uuidTable:r,uuidWrapper:l,wrapperRef:a})}),xo(X.tableKey,{uuidTable:r,uuidWrapper:l,wrapperRef:a}),n(),{uuidWrapper:l,uuidTable:r,contextMenuReactive:c,rTableInst:s,combineRowProps:y,contextMenuSelect:f,privateReactive:u,tool:S,wrapperRef:a,propsPopselectValue:p}},render(){const{$props:e,$attrs:t,wrapperBordered:n,uuidWrapper:o,privateReactive:s,disabledContextMenu:a,contextMenuReactive:l,contextMenuOptions:r,uuidTable:c,title:u,$slots:p,propsPopselectValue:f,renderWrapperHeader:y}=this,{class:g}=t,{tool:h,combineRowProps:_,contextMenuSelect:m}=this;return i(Xe,$(e.cardProps,{id:o},{ref:"wrapperRef",bordered:n,class:g}),{default:()=>i(ln,null,[i(Zn,$({id:c},t,e,f,{rowProps:_.bind(this),size:s.size,ref:"rTableInst"}),{...p}),a?null:i(ye,{show:l.showContextMenu,placement:"bottom-start",trigger:"manual",x:l.x,y:l.y,options:r,onClickoutside:()=>l.showContextMenu=!1,onSelect:m.bind(this)},null)]),header:y?ge(u,{defaultElement:i("div",{style:"display: none;"},null)}):null,"header-extra":h(e),footer:()=>{var S;return(S=p.tableFooter)==null?void 0:S.call(p)},action:()=>{var S;return(S=p.tableAction)==null?void 0:S.call(p)}})}}),ai=()=>{const e=x();let t={};const n=(g,h)=>{g&&(e.value=g,t=h)},o=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[n,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:g=>o().downloadCsv.call(null,g),filters:g=>o().filters.call(null,g),page:g=>o().page.call(null,g),scrollTo:g=>o().scrollTo(g),sort:(g,h)=>o().sort.call(null,g,h),print:g=>{const{uuidWrapper:h}=t;if(h){const _=document.getElementById(h);hn(_,g)}},filter:g=>o().filter.call(null,g)}]},Tn=(e,t,n)=>{var o;if(e.length)for(const s of e){if(s[t]===n)return s;if((o=s==null?void 0:s.children)!=null&&o.length){const a=Tn(s.children,t,n);if(a)return a}}},Wt=e=>{const t=H(e);return t?t.findIndex(o=>{const{type:s,multiple:a}=o;if(s==="selection"&&(a==null||a===!0))return!0})!==-1:!0},sr=(e,t,n,o)=>{const s=H(e);return s?t.reduce((a,l)=>{const r=H(n).findIndex(u=>u[o]===l);if(r!==-1)return a.push(H(n)[r]),a;const c=s.findIndex(u=>u[o]===l);return c!==-1&&a.push(s[c]),a},[]):n},si=(e,t,n)=>{const o=x([]),s=x([]),{rowKey:a="key",onChange:l}=n||{},r=w(()=>Wt(t)),c=(h,_,m)=>{o.value=h,s.value=H(sr(e,h,s,a)),l==null||l(h,s.value,m),Wt(t)},u=()=>o.value,p=()=>s.value,f=()=>{o.value=[],s.value=[],l==null||l(o.value,s.value,{row:void 0,action:"uncheckAll"})},y=h=>{if(h==null)return;let _;o.value=o.value.filter(m=>m!==h),s.value=s.value.filter(m=>m[a]===h?(_=m,!1):!0),l==null||l(o.value,s.value,{row:_,action:"uncheck"})},g=h=>{if(o.value.includes(h))return;const _=!r.value&&o.value.length>=1,m=Tn(H(e)||[],a,h);_?o.value=[h]:o.value.push(h),m&&(_?s.value=[m]:s.value.push(m),l==null||l(o.value,s.value,{row:m,action:"check"}))};return xt(()=>{f()}),[o,{checkedRows:s,checkedRowKeysBind:c,getKeys:u,getRows:p,clearAll:f,clearKey:y,selectKey:g}]},rr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},lr=P({name:"RTransitionComponent",__name:"index",props:Mo({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},rr),setup(e){const{getKeepAliveInclude:t}=wr(),{setupKeepAlive:n,maxKeepAliveLength:o,keepAliveExclude:s}=gn;return(a,l)=>{const r=Lo("RouterView");return te(),At("div",null,[i(r,null,{default:lt(({Component:c,route:u})=>[c?(te(),we(ka,{key:0,name:a.transitionPropName,mode:a.transitionMode,appear:a.transitionAppear},{default:lt(()=>[(te(),we(Io,null,{default:lt(()=>[H(n)?(te(),we(Eo,{key:0,max:H(o),include:H(t),exclude:H(s)},[(te(),we(Nt(c),{key:u.fullPath}))],1032,["max","include","exclude"])):(te(),we(Nt(c),{key:u.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):zo("",!0)]),_:1})])}}}),ir={...eo,onRegister:{type:[Function,Array],default:null}},ri=P({name:"RForm",props:ir,setup(e,{expose:t}){const n=ae("formRef");return Qe(()=>{const{onRegister:o}=e;o&&n.value&&j(o,n.value)}),t(),{formRef:n}},render(){const{$attrs:e,$props:t,$slots:n}=this;return i(to,$(e,t,{ref:"formRef"}),{...n})}}),li=(e,t)=>{const n=x(),o=u=>{u&&(n.value=u)},s=()=>{if(!n.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return n.value};return[o,{getFormInstance:s,validate:(u,p)=>s().validate.call(null,u,p),restoreValidation:()=>s().restoreValidation.call(null),formModel:()=>Ue(e)||{},formRules:()=>Ue(t)||{}}]},cr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],ur={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},dr=Ot({...no,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...cr);function pr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ce(e)}const wt=e=>{const{icon:t,label:n}=e;return t?i(z,{align:"center",wrap:!1,size:"small"},{default:()=>[i(t,null,null),i("div",null,[n])]}):n},mr=e=>{if(typeof e.popover=="string")return i(Re,null,{trigger:()=>wt(e),default:()=>e.popover});if(se(e.popover,"Object")){const{popover:t}=e,{label:n,...o}=t;return i(Re,o,{trigger:()=>wt(e),default:()=>n})}},ii=P({name:"RSegment",props:dr,setup(e,{expose:t}){const n=w(()=>{const{width:o}=e;let s="";switch(o){case"block":s="100%";break;case"fitContent":s="fit-content";break;default:s=typeof o=="number"?V(o):"fit-content"}return{"--r-segment-width":s}});return t(),{cssVars:n}},render(){let e;const{$props:t,options:n,cssVars:o,themeOverrides:s}=this;return i(ao,$(t,{ref:"segmentRef",style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},ur,s)}),pr(e=n.map(a=>i(oo,{key:a.key,name:a.key,tab:a.popover?mr(a):wt(a),disabled:a.disabled},{...a.slots})))?e:{default:()=>[e]})}}),hr={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},ci=P({name:"RBarcode",props:hr,setup(e){const t=ae("barcodeRef"),n=w(()=>({"--r-barcode-width":V(e.width),"--r-barcode-height":V(e.height)}));let o;const s=()=>{try{const{format:a,text:l,options:r,onSuccess:c}=e,u=Object.assign({},r,{format:a});No(t.value,l!=null?l.toString():"",u),c&&j(c,l,a,r)}catch(a){const{onError:l}=e;l&&j(l,a)}finally{const{onFinally:a}=e;a&&j(a)}};return xe(()=>{e.watchText?o=be(()=>e.text,s):o==null||o()}),Qe(()=>{s()}),sn(()=>{o==null||o()}),{barcodeRef:t,cssVars:n}},render(){const{barcodeRender:e,loading:t,cssVars:n}=this,o=["r-barcode",{"r-barcode--loading":t}];return i(Je,{class:"r-barcode-spin",show:t},{default:()=>[e==="canvas"?i("canvas",{class:o,style:n,ref:"barcodeRef"},null):i("svg",{class:o,style:n,ref:"barcodeRef"},null)]})}});var gr={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.7"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const fr=(e,t,n)=>!e||typeof e!="object"?!1:e[t]===n,On=(e,t,n)=>{const o=[];if(fr(e,t,n))return o.push(e),o;if(e.children&&e.children.length>0)for(const s of e.children){const a=On(s,t,n);a.length>0&&o.push(e,...a)}return o},yr=(e,t,n)=>{const o=[];for(const s of e){const a=On(s,t,n);a.length>0&&o.push(...a)}return o},qt=e=>{const{breadcrumbLabel:t}=e;if(!t)return;const{layout:{sideBarLogo:n}}=gr,o=n?n.title:"";document.title=t+" - "+o},vr=e=>{const{meta:{icon:t}}=e;if(!t)return;if(se(t,"Object"))return()=>t;const n=Ze(A,{name:t,size:ie.menuCollapsedIconSize,cursor:"pointer"},{});return()=>n},Rn=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:n}=t;if(n===!1)return;const{t:o}=Me(),{label:s,icon:a,type:l,i18nLabel:r}=t,c={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},u=()=>r?o(r):s||null,p=()=>a&&(r||s)||!a&&(r||s)?null:{"padding-right":"0"};if(se(t,"Object"))return()=>Ze(so,{...c,type:l||"primary",style:p()},{default:()=>u(),icon:()=>a})},Gt=()=>{const{getRootPath:e}=_e();return Pe(F.appMenuKey,"sessionStorage",{defaultValue:e.value})},kn=()=>js(Is()),br=()=>zs(kn()),Ct=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let Ve;const An=(e,t)=>{var n;if(Ve&&Vt(Ve.fullPath,t))return Ve;for(const o of e){if(Vt(o.fullPath,t))return Ve=o,o;if((n=o.children)!=null&&n.length){An(o.children,t);continue}}},Pn=et("menu",()=>{const{push:e,getRoutes:t}=tt(),n=ta(),{t:o}=Me(),{setKeepAliveInclude:s}=Cr(),a=Q({menuKey:Gt(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),l=x(!0),r=(d,v)=>{Object.hasOwn(a,d)&&(a[d]=v)},c=d=>{const{meta:v}=d,{i18nKey:R,noLocalTitle:T}=v,b=w(()=>R?o(`${R}`):T),C={...d,key:d.fullPath,label:()=>Ze(tn,null,{default:()=>b.value}),breadcrumbLabel:b.value},I=Object.assign({},C,{icon:vr(d),extra:Rn(d)});return d.fullPath===Gt()&&(a.currentMenuOption=I),I.show=bn(I),I},u=d=>{a.breadcrumbOptions=yr(a.options,"fullPath",d)},p=(d,v=!0)=>{const T=Array.isArray(d)?[...d]:[d];v?a.menuTagOptions.push(...T):a.menuTagOptions=T},f=(d,v)=>{a.menuTagOptions.find(T=>T.fullPath===d)||a.menuTagOptions.push(v)},y=(d,v,R)=>{const{meta:T}=v;if(T.windowOpen)window.open(T.windowOpen);else{e({path:String(d),query:R});const{sameLevel:b}=T;if(s(v),qt(v),!b)f(d,v),u(d),a.menuKey=d,a.currentMenuOption=v,Pt(F.appMenuKey,d);else{const C=Oe(c(v),Ct);a.breadcrumbOptions.find(O=>O.key===C.key)||a.breadcrumbOptions.push({...C,fullPath:String(C.key)})}}},g=async(d,v)=>{const[R]=d.split("?"),T=t().find(b=>b.path===R);if(!((T==null?void 0:T.path)==="/"||!(T!=null&&T.path)||(T==null?void 0:T.path)==="/login")&&T){const b=Oe(T,Ct);y(R,c({...b,fullPath:b.path}),v)}},h=()=>new Promise(d=>{const v=(R,T)=>{var C;const b=[];for(const I of R){let O=`${T.endsWith("/")?T:T+"/"}${I.path}`;if(O=O.replace(/\/+/g,"/"),(C=I.children)!=null&&C.length)I.children=v(I.children,O);else if(!Ln(I.meta))continue;b.push(c({...I,fullPath:O}))}return b};if(a.options=v(kn(),""),a.currentMenuOption){const{currentMenuOption:R}=a;a.breadcrumbOptions.length||u(R.key),f(R.fullPath,R),qt(R)}d()}),_=d=>a.collapsed=d,m=(d,v=1)=>a.menuTagOptions.splice(d,v),S=async()=>{l.value&&(await h(),l.value=!1)};return be(()=>n.fullPath,async(d,v)=>{await S(),d!==v&&await g(d,n.query)},{immediate:!0}),{...ve(a),changeMenuModelValue:y,collapsedMenu:_,spliceMenTagOptions:m,setMenuTagOptions:p,resolveOption:c,updateMenuState:r}},{persist:{key:F.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),xn=et("signing",()=>{const e=Q({signingCallback:{}}),t=s=>new Promise((a,l)=>{Qt(s)?l({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:s.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},a({code:0,message:"登陆成功",data:e.signingCallback}))}),n=s=>{const{closeAll:a}=zn(),{appPiniaMenuStore:l,appPiniaSigningStore:r,token:c,signing:u,appMenuKey:p}=F;window.$message.info("账号退出中..."),de("__all_sessionStorage__","sessionStorage"),de(r,"localStorage"),de(l,"localStorage"),de(c,"localStorage"),de(u,"localStorage"),de(p,"localStorage"),a(),s&&(window.location.replace("#/"),setTimeout(()=>{window.location.reload()},0))},o=()=>{n(!0)};return{...ve(e),signing:t,logout:o,clearSigningCallback:n}},{persist:{key:F.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),Mn=et("keepAlive",()=>{const{maxKeepAliveLength:e}=gn,t=Q({keepAliveInclude:[]}),n=()=>t.keepAliveInclude.length,o=a=>{const l=n(),{name:r,meta:{keepAlive:c}}=a;if(c){if(l=e&&(t.keepAliveInclude.splice(0,1),t.keepAliveInclude.push(r))}},s=()=>t.keepAliveInclude;return{...ve(t),setKeepAliveInclude:o,getKeepAliveInclude:s}},{persist:{key:F.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),ue=()=>{const e=Pn(),t=w(()=>e.options),n=w(()=>e.breadcrumbOptions),o=w(()=>e.menuKey),s=w(()=>{const{getRootPath:r}=_e();return e.menuTagOptions.map((c,u,p)=>(c.key===o.value&&c.key!==r.value?c.closeable=!0:c.closeable=!1,c.key===r.value&&(c.closeable=!1),p.length<=1&&(c.closeable=!1),c))}),a=w(()=>e.currentMenuOption),l=w(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:n,getMenuKey:o,getMenuTagOptions:s,getCurrentMenuOption:a,getCollapsed:l}},Ie=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:o,resolveOption:s,updateMenuState:a}=Pn();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:o,resolveOption:s,updateMenuState:a}},G=()=>{const e=_n(),t=w(()=>e.drawerPlacement),n=w(()=>e.primaryColorOverride),o=w(()=>e.appTheme),s=w(()=>e.menuTagSwitch),a=w(()=>e.breadcrumbSwitch),l=w(()=>e.localeLanguage),r=w(()=>e.lockScreenSwitch),c=w(()=>e.copyrightSwitch),u=w(()=>e.contentTransition),p=w(()=>e.watermarkSwitch),f=w(()=>e.watermarkConfig),y=w(()=>e.appRootRoute),g=w(()=>e.sideBarLogo);return{getDrawerPlacement:t,getPrimaryColorOverride:n,getAppTheme:o,getMenuTagSwitch:s,getBreadcrumbSwitch:a,getLocaleLanguage:l,getLockScreenSwitch:r,getCopyrightSwitch:c,getContentTransition:u,getWatermarkSwitch:p,getWatermarkConfig:f,getAppRootRoute:y,getSideBarLogo:g}},q=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:n}=_n();return{updateLocale:e,changePrimaryColor:t,updateSettingState:n}},_r=()=>{const e=xn();return{getSigningCallback:w(()=>e.signingCallback)}},Sr=()=>{const{signing:e,logout:t,clearSigningCallback:n}=xn();return{signing:e,logout:t,clearSigningCallback:n}},wr=()=>{const e=Mn();return{getKeepAliveInclude:w(()=>e.keepAliveInclude)}},Cr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=Mn();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},ui=e=>{const t=Ho();e.use(t),t.use(Go)},Ln=e=>{const{getSigningCallback:t}=_r(),{role:n}=e;return Ne!=null&&Ne.length&&Ne.includes(t.value.role)||!n||!(n!=null&&n.length)?!0:n?n.includes(t.value.role):!0},Tr=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:n}=Va;t&&Vs(e),n&&Ds(e)},Or=x(),Rr=P({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=tt(),{getSideBarLogo:t}=G();return{sideBarLogo:t,sideBarLogoClick:()=>{t.value&&t.value.url&&(t.value.jumpType==="station"?e.push(t.value.url):window.open(t.value.url))},TemplateLogo:({cursor:s})=>{if(!t.value)return null;if(typeof t.value.icon=="string")return i(A,{name:t.value.icon,size:"30",cursor:s},null);if(se(t.value.icon,"Object"))return ge(t.value.icon)}}},render(){const{sideBarLogo:e,collapsed:t,TemplateLogo:n,sideBarLogoClick:o}=this;return e!=null&&e.title?i("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:o.bind(this),ref:Or},[e!=null&&e.icon?t?i(We,{placement:"right"},{trigger:()=>n({cursor:"pointer"}),default:()=>e.title}):n({cursor:"pointer"}):t?i(We,{placement:"right"},{trigger:()=>{var s;return i("h1",{class:"n-menu-item-content"},[((s=e.title)==null?void 0:s[0])||null])},default:()=>e.title}):null,i("h1",{class:[t?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"']},[i(tn,null,{default:()=>[e.title]})])]):null}}),kr=P({name:"AppMenu",setup(){const e=x(null),{changeMenuModelValue:t,collapsedMenu:n,updateMenuState:o}=Ie(),{getMenuOptions:s,getCollapsed:a,getMenuKey:l}=ue(),r=w({get:()=>(W().then(()=>{p()}),l.value),set:()=>{c.value&&oe("globalDrawerValue",!1)}}),{isTabletOrSmaller:c}=ot({observer:y=>{y&&o("collapsed",!1)}}),u=w({get:()=>nt("globalDrawerValue").value,set:y=>{oe("globalDrawerValue",y)}}),p=()=>{const y=r.value;y!=null&&W(()=>{var g,h;return(h=(g=e.value)==null?void 0:g.showOption)==null?void 0:h.call(g,y)})};return{isTabletOrSmaller:c,BasicMenu:()=>i(lo,{class:"app-menu__sider",showTrigger:!c.value,collapseMode:ie.menuCollapsedMode,collapsedWidth:ie.menuCollapsedWidth,onUpdateCollapsed:n.bind(this),nativeScrollbar:!1,ref:yn,collapsed:a.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)}},{default:()=>[i(Rr,{collapsed:a.value},null),i(ro,{ref:e,class:"r-menu--app",keyField:"fullPath",value:r.value,"onUpdate:value":y=>r.value=y,options:s.value,indent:ie.menuCollapsedIndent,collapsed:a.value,collapsedIconSize:ie.menuCollapsedIconSize,collapsedWidth:ie.menuCollapsedWidth,onUpdateValue:(y,g)=>{t(y,g)},accordion:ie.menuAccordion},null)]}),modelGlobalDrawerValue:u}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?i(nn,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":n=>this.modelGlobalDrawerValue=n,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[i(t,null,null)]}):i(t,null,null)}});class Ar{constructor(){Et(this,"pendingRequest");this.pendingRequest=new Map}isAppending(t){var n;return((n=t.cancelConfig)==null?void 0:n.cancel)??!0}generateRequestKey(t){const{method:n,url:o}=t;return[o||"",n||"",JSON.stringify(t.params),JSON.stringify(t.data)].join("&")}addPendingRequest(t){var n;if(this.isAppending(t)){t.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const o=this.generateRequestKey(t);if(this.pendingRequest.has(o))t.signal=(n=this.pendingRequest.get(o))==null?void 0:n.signal;else{const s=new AbortController;t.signal=s.signal,this.pendingRequest.set(o,s)}}}removePendingRequest(t){const n=this.generateRequestKey(t);this.pendingRequest.has(n)&&(this.pendingRequest.get(n).abort(),this.pendingRequest.delete(n))}cancelAllRequest(){this.pendingRequest.forEach(t=>{t.abort()})}}const ut={requestInstance:null,responseInstance:null},dt={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},$e={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Pr=new Ar,di=()=>{const e=(r,c)=>{c==="requestInstance"?ut.requestInstance=r:ut.responseInstance=r},t=r=>ut[r],n=(r,c,u)=>{u==="ok"?dt[r]=c:$e[r]=c},o=(r,c)=>c==="ok"?dt[r]:$e[r],s=(r,...c)=>{Array.isArray(r)&&r.forEach(u=>{typeof u=="function"&&u(...c)})};return{createAxiosInstance:e,setImplement:n,getImplement:o,getAxiosInstance:t,beforeFetch:(r,c,u)=>{const p=u==="ok"?dt[c]:$e[c],f=t(r),{MODE:y}=_t();f&&s(p,f,y)},fetchError:(r,c,u)=>{const p=$e[u],{MODE:f}=_t();s(p,c,f)}}},xr=P({name:"AppRequestCancelerProvider",setup(e,{expose:t}){na(()=>{Pr.cancelAllRequest()}),t()},render(){return i("div",{class:"app-style-provider"},null)}}),In=P({name:"LayoutContentWrapper",setup(){tt();const{maximize:e}=En(),{getContentTransition:t}=G(),n=x(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:s,layoutContentMaximize:a,layoutContentSpinning:l}=Ba();return{globalMainLayoutLoad:s,spinning:n,themeOverridesSpin:o,getContentTransition:t,layoutContentMaximize:a,maximize:e,layoutContentSpinning:l}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:n,maximize:o,spinning:s,themeOverridesSpin:a,getContentTransition:l}=this;return i(Je,{show:s||!e||n,description:"loading...",size:"large",themeOverrides:a,class:[t?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[t?i("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[i(A,{name:"out",size:"16",cursor:"pointer"},null)]):null,i(xr,null,null),e?i(lr,{class:"content-wrapper",transitionPropName:l+"-transform"},null):null]})}}),Mr=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"}));var Lr={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.7"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ir=P({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Lr;return{copyright:e}},render(){return this.copyright?i("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Er=P({name:"TooltipIcon",props:{...io,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const n=s=>{t("click",s)};return{iconClick:n,Icon:()=>i(A,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:n.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?i(We,this.$props,{trigger:()=>i(e,null,null),default:()=>this.tooltipText}):i(e,null,null)}}),zr=P({name:"ThemeSwitch",setup(){const{darkTheme:e,lightTheme:t}=fl(),{getAppTheme:n}=G(),o=x(n.value);return{darkTheme:e,lightTheme:t,getAppTheme:n,railStyle:({checked:a})=>a?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:o}},render(){const{$t:e,darkTheme:t,lightTheme:n,railStyle:o}=this;return i(z,{justify:"center"},{default:()=>[i(We,null,{trigger:()=>i(Te,{value:this.modelAppThemeRef,"onUpdate:value":s=>this.modelAppThemeRef=s,railStyle:o.bind(this),onUpdateValue:s=>s?t():n()},{"checked-icon":()=>i(A,{name:"dark"},null),"unchecked-icon":()=>i(A,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?e("headerSettingOptions.ThemeOptions.Dark"):e("headerSettingOptions.ThemeOptions.Light")})]})}});function Be(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ce(e)}const jr=P({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{changePrimaryColor:n,updateSettingState:o}=q(),{getAppTheme:s,getPrimaryColorOverride:a,getMenuTagSwitch:l,getBreadcrumbSwitch:r,getCopyrightSwitch:c,getContentTransition:u,getWatermarkSwitch:p}=G(),f=w({get:()=>e.show,set:g=>{t("update:show",g)}}),y=w({get:()=>({getMenuTagSwitch:l.value,getBreadcrumbSwitch:r.value,getCopyrightSwitch:c.value,getContentTransition:u.value,getWatermarkSwitch:p.value}),set:g=>{}});return{modelShow:f,changePrimaryColor:n,getAppTheme:s,getPrimaryColorOverride:a,updateSettingState:o,modelSwitchReactive:y}},render(){let e,t,n,o;const{$t:s,changePrimaryColor:a,updateSettingState:l}=this;return i(nn,{show:this.modelShow,"onUpdate:show":r=>this.modelShow=r,placement:this.placement,width:this.width},{default:()=>[i(co,{title:s("headerSettingOptions.Title")},{default:()=>[i(z,{class:"setting-drawer__space",vertical:!0},{default:()=>[i(je,{titlePlacement:"center"},Be(e=s("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),i(zr,null,null),i(je,{titlePlacement:"center"},Be(t=s("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),i(uo,{swatches:Y.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":r=>this.getPrimaryColorOverride.common.primaryColor=r,onUpdateValue:a.bind(this)},null),i(je,{titlePlacement:"center"},Be(n=s("headerSettingOptions.ContentTransition"))?n:{default:()=>[n]}),i(po,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":r=>this.modelSwitchReactive.getContentTransition=r,options:Ea,onUpdateValue:r=>{l("contentTransition",r)}},null),i(je,{titlePlacement:"center"},Be(o=s("headerSettingOptions.InterfaceDisplay"))?o:{default:()=>[o]}),i(mo,{labelPlacement:"left",column:1},{default:()=>[i(De,{label:"多标签"},{default:()=>[i(Te,{value:this.modelSwitchReactive.getMenuTagSwitch,"onUpdate:value":r=>this.modelSwitchReactive.getMenuTagSwitch=r,onUpdateValue:r=>l("menuTagSwitch",r)},null)]}),i(De,{label:"面包屑"},{default:()=>[i(Te,{value:this.modelSwitchReactive.getBreadcrumbSwitch,"onUpdate:value":r=>this.modelSwitchReactive.getBreadcrumbSwitch=r,onUpdateValue:r=>l("breadcrumbSwitch",r)},null)]}),i(De,{label:"水印"},{default:()=>[i(Te,{value:this.modelSwitchReactive.getWatermarkSwitch,"onUpdate:value":r=>this.modelSwitchReactive.getWatermarkSwitch=r,onUpdateValue:r=>l("watermarkSwitch",r)},null)]}),i(De,{label:"版权信息"},{default:()=>[i(Te,{value:this.modelSwitchReactive.getCopyrightSwitch,"onUpdate:value":r=>this.modelSwitchReactive.getCopyrightSwitch=r,onUpdateValue:r=>l("copyrightSwitch",r)},null)]})]})]})]})]})}});function Dr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ce(e)}const Nr=P({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Ie(),{getBreadcrumbOptions:t}=ue(),{isTabletOrSmaller:n}=ot();return{getBreadcrumbOptions:t,dropdownSelect:(a,l)=>{e(a,l)},breadcrumbItemClick:a=>{var l;if(!((l=a.children)!=null&&l.length)){const{meta:r={}}=a;r.sameLevel||e(a.fullPath,a)}},isTabletOrSmaller:n}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:n}=this,{dropdownSelect:o,breadcrumbItemClick:s}=this;return t?i("div",{style:"display: none;"},null):i(go,null,{default:()=>[i(Aa,{tag:"li",name:"breadcrumb",appear:!0},Dr(e=n.map(a=>i(ho,{key:a.fullPath,onClick:s.bind(this,a)},{default:()=>{var l;return[i(ye,{labelField:"breadcrumbLabel",keyField:"fullPath",options:a.children&&((l=a.children)==null?void 0:l.length)>1?a.children:[],onSelect:o.bind(this)},{default:()=>i("span",null,[a.label&&typeof a.label=="function"?a.label():a.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function pt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ce(e)}const Vr=P({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:n,resolveOption:o}=Ie(),{getRoutes:s}=tt(),a=w({get:()=>e.show,set:b=>{t("update:show",b),b||g()}}),l=Q({searchValue:null,searchOptions:[]}),r=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let c=0,u=c;const{isTabletOrSmaller:p}=ot(),f=x(!1),y="content-item--active",g=()=>{l.searchOptions=[],l.searchValue=null,c=0,u=c},h=b=>{a.value||(b.ctrlKey||b.metaKey)&&b.key==="k"&&(b.preventDefault(),b.stopPropagation(),g(),a.value=!0)},_=b=>{if(b)f.value=!0;else{f.value=!1,l.searchOptions=[];return}const C=s().reduce((I,O)=>{var B;const E=Oe(O,["children","meta","path","name"]),N=o({...E,fullPath:O.path}),{breadcrumbLabel:K}=N;return(B=K==null?void 0:K.toLocaleLowerCase())!=null&&B.includes(b.toLocaleLowerCase())&&bn(N)&&I.push(N),I},[]);setTimeout(()=>{l.searchOptions=C,W().then(()=>{S()}),f.value=!1},500)},m=b=>{if(b){const{meta:C}=b;C.windowOpen?window.open(C.windowOpen):(a.value=!1,n(b.fullPath,b),setTimeout(Fo,300))}},S=()=>{const b=l.searchOptions[c],C=l.searchOptions[u];b&&W().then(()=>{const I=Ge(`attr:data_path="${b.path}"`),O=C?Ge(`attr:data_path="${C==null?void 0:C.path}"`):null;if(O!=null&&O.length){const[E]=O;Ko(E,y)}if(I!=null&&I.length){const[E]=I;mn(E,y)}})},d=b=>{const{icon:C}=b;return typeof C=="string"?i(A,{name:C,size:"24"},null):typeof C=="function"?()=>C:i(A,{name:"search",size:"24"},null)},v=b=>{b==="up"&&(c-=1,c<0&&(c=l.searchOptions.length-1)),b==="down"&&(c+=1,c>=l.searchOptions.length&&(c=0))},R=b=>{const C=b.key;switch((C==="ArrowUp"||C==="ArrowDown"||C==="Enter")&&(b.preventDefault(),b.stopPropagation()),u=c<=0?0:c,C){case"ArrowUp":v("up");break;case"ArrowDown":v("down");break;case"Enter":const I=l.searchOptions[c];I&&m(I);break}S()},T=({menuOption:b})=>i(z,$({align:"center",class:"content-item"},{onClick:m.bind(this,b),data_path:b.path}),{default:()=>[i("div",{class:"content-item-icon"},[d(b.meta)]),i("div",{class:"content-item-label"},[b.breadcrumbLabel]),i(A,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return xe(()=>{p.value&&(a.value=!1)}),Ae(window,"keydown",b=>{h(b),R(b)},!0),{...ve(l),modelShow:a,helperTipOptions:r,fuzzySearchMenuOptions:Tt(_,300),searchItemClick:m,RenderPreIcon:d,isTabletOrSmaller:p,SearchItem:T,loading:f}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:n}=this,{SearchItem:o,fuzzySearchMenuOptions:s}=this;return e?i("div",{style:"display: none;"},null):i(Zt,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,transformOrigin:"center",displayDirective:"if"},{default:()=>[i("div",{class:"global-search global-search--dark global-search--light"},[i("div",{class:"global-search__wrapper"},[i(Xe,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>i(fo,{size:"large",value:this.searchValue,"onUpdate:value":a=>this.searchValue=a,clearable:!0,onInput:s.bind(this)},{prefix:()=>i(A,{name:"search",size:"24"},null)}),default:()=>{let a;return i(Rt,null,{default:()=>[i(Je,{show:n},{default:()=>[t.length?i(z,{vertical:!0,size:[0,6],class:"global-search__card-content"},pt(a=t.map((l,r)=>i(o,{menuOption:l,key:l.fullPath},null)))?a:{default:()=>[a]}):i(yo,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>i(z,{justify:"center",class:"global-search__empty-content"},{default:()=>[i(vo,null,{default:()=>[jo("没有搜索结果")]})]})})]})]})},action:()=>{let a;return i(z,{justify:"flex-start",align:"center",size:[16,0]},pt(a=this.helperTipOptions.map(l=>i(z,{key:l.label,size:[4,0]},{default:()=>[l.icon.map(r=>i(z,{class:"item-icon",align:"center",justify:"center"},pt(r)?r:{default:()=>[r]})),i(z,{class:"item-label",align:"center"},{default:()=>[l.label]})]})))?a:{default:()=>[a]})}})])])]})}}),$r=P({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=Uo();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:s}=e;s&&j(s,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:n}=this;return i(ke,{class:"global-search__btn-wrapper",bordered:!1,onClick:t.bind(this)},{icon:()=>i(A,{name:"search",size:"16"},null),default:()=>i(z,{align:"center"},{default:()=>[n("headerTooltip.Search"),i("div",{class:"global-search-btn__label"},[e()])]})})}}),Br=P({name:"AppAvatar",props:{...bo,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(e){return{signing:Pe(F.signing,"localStorage")}},render(){const{signing:e,avatarSize:t,spaceSize:n,$props:o,vertical:s}=this;return i(ke,{quaternary:!0,strong:!0},{default:()=>[i(z,{align:"center",size:n,vertical:s},{default:()=>[i(_o,$(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:t}),null),e==null?void 0:e.name]})]})}}),Fr=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Kr={logout:()=>{const{logout:e}=Sr();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=q();e("lockScreenSwitch",!0)}},Ur=e=>{const t=Kr[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},Wr=e=>{const{isTabletOrSmaller:t}=e,n=[],o=[{name:"menu",size:18,eventKey:"menu"}];return t.value?o:n},qr=e=>{const{isTabletOrSmaller:t}=e,n=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],o=[...n],s=[...n];return t.value?s:o},Gr=P({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=q(),{t:n}=Me(),[o,{toggleFullscreen:s,isEnabled:a}]=un(document.getElementsByTagName("html")[0]),{getDrawerPlacement:l,getBreadcrumbSwitch:r}=G(),c=x(!1),u=x(!1),{isTabletOrSmaller:p}=ot(),f=nt("globalDrawerValue"),y=w(()=>Wr({isFullscreen:o,isTabletOrSmaller:p})),g=w(()=>qr({isFullscreen:o,isTabletOrSmaller:p})),h={search:()=>{u.value=!0},setting:()=>{c.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{a||window.$message.warning(n("globalMessage.isEnabledFullscreen")),s()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{oe("globalDrawerValue",!f.value)}};return{leftIconOptions:y,rightTooltipIconOptions:g,toolIconClick:S=>{var d;(d=h[S])==null||d.call(h)},showSettings:c,updateLocale:e,getDrawerPlacement:l,getBreadcrumbSwitch:r,globalSearchShown:u,isRenderVNode:S=>p.value?null:S}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:n,getBreadcrumbSwitch:o}=this,{toolIconClick:s,updateLocale:a,isRenderVNode:l}=this;return i(on,{class:"layout-header"},{default:()=>[i(Vr,{show:this.globalSearchShown,"onUpdate:show":r=>this.globalSearchShown=r},null),i(z,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[i(z,{align:"center",wrap:!1},{default:()=>[t.map(r=>i(Er,{key:r.name,iconName:r.name,tooltipText:an(r.tooltip)?r.tooltip.value:r.tooltip,customClassName:r.iconClass,onClick:s.bind(this,r.name)},null)),o?i(Nr,null,null):null]}),i(z,{justify:"end",align:"center",size:[4,0],wrap:!1},{default:()=>[l(i($r,{onClick:r=>{r.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(r=>i(ke,{class:"override-button__layout",quaternary:!0,size:"medium",key:r.name,onClick:s.bind(this,r.name)},{default:()=>[i(A,{name:r.name,size:18,cursor:"pointer"},null)]})),i(ye,{options:fn,onSelect:r=>a(String(r)),trigger:"click"},{default:()=>[i(ke,{quaternary:!0,class:"override-button__layout"},{default:()=>[i(A,{customClassName:"layout-header__method--icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),i(ye,{options:Fr(),onSelect:Ur.bind(this),trigger:"click"},{default:()=>[i(Br,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),i(jr,{show:this.showSettings,"onUpdate:show":r=>this.showSettings=r,placement:n},null)]})}}),Hr=P({name:"LayoutHeaderWrapper",setup(){return{}},render(){return i(z,{size:[0,0]},{default:()=>[i(Gr,null,null)]})}}),Yr={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},Xr=cn('',1),Jr=[Xr];function Qr(e,t){return te(),At("svg",Yr,[...Jr])}const Zr={render:Qr},el={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},tl=cn('',1),nl=[tl];function ol(e,t){return te(),At("svg",el,[...nl])}const al={render:ol};function sl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ce(e)}const rl=P({name:"AppMenuTag",setup(e,{expose:t}){const n=ae("scrollRef"),{getMenuKey:o,getMenuTagOptions:s}=ue(),{changeMenuModelValue:a}=Ie(),{getRootPath:l}=_e(),{maximize:r,isLayoutContentMaximized:c}=En(),{reload:u}=gl(),{close:p,closeAll:f,closeRight:y,closeLeft:g,closeOther:h,checkCloseLeft:_,checkCloseRight:m}=zn(),S=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let d=1/0;const v={size:16},R=x([{label:"刷新页面",key:"reloadCurrentPage",icon:()=>i(A,{name:"reload",size:v.size},null)},{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>i(A,{name:"close",size:v.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>i(al,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>i(Zr,{class:"menu-tag__icon"},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>i(A,{name:"other",size:v.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>i(A,{name:"resize_h",size:v.size},null),disabled:!1}]),T=qe(16),b={closeCurrentPage:()=>{o.value!==l.value&&p(d)},reloadCurrentPage:()=>{u()},closeAll:()=>{f()},closeRight:()=>{y(d)},closeLeft:()=>{g(d)},closeOther:()=>{h(d)}},C=Q({x:0,y:0,actionDropdownShow:!1}),I="menu_tag_data",O=nt("globalMainLayoutLoad"),E="n-scrollbar-container";let N=o.value;const K=k=>{p(k)},B=(k,M)=>{for(const U of R.value)if(U.key===k){U.disabled=M;break}},re=k=>{C.actionDropdownShow=!1,a(k.fullPath,k)},Se=()=>{const k=document.getElementById(T);if(k)return Array.from(k.childNodes).find(ze=>Wo(ze,E).value)},Ee=k=>{var U;const M=Se();if(M){const ze=M.scrollLeft||0,It=k==="left"?Math.max(0,ze-200):ze+200;(U=n.value)==null||U.scrollTo({left:It,behavior:"smooth"})}},J=k=>{C.actionDropdownShow=!1;const M=b[k];M==null||M()},Dn=(k,M)=>{M.preventDefault(),C.actionDropdownShow=!1,d=k,W(()=>{C.actionDropdownShow=!0,C.x=M.clientX,C.y=M.clientY})},Lt=()=>{const{closeable:k}=s.value[d]??{};B("closeCurrentPage",!k),m(d)?B("closeRight",!1):B("closeRight",!0),_(d)?B("closeLeft",!1):B("closeLeft",!0)},Nn=()=>{d=s.value.findIndex(M=>M.fullPath===o.value),Lt()},Vn=k=>{s.value.length>1&&k.fullPath!==l.value&&(k.closeable=!0)},$n=k=>{k.fullPath!==o.value&&(k.closeable=!1)},Bn=()=>{Se()&&W().then(()=>{var M;(M=n.value)==null||M.scrollTo({left:99999,behavior:"smooth"})})},at=()=>{W().then(()=>{const k=Ge(`attr:${I}="${o.value}"`);if(k!=null&&k.length){const[M]=k;W().then(()=>{var U;(U=n.value)==null||U.scrollTo({left:M.offsetLeft,behavior:"smooth"})})}})},Fn=()=>{r(!0)};return be(()=>s.value,(k,M)=>{R.value.forEach(U=>{S.includes(U.key)&&(k.length>1?U.disabled=!1:U.disabled=!0)}),M!=null&&M.length&&(k.length>(M==null?void 0:M.length)?Bn():k.length===(M==null?void 0:M.length)&&at()),M===void 0&&at()},{immediate:!0}),xe(()=>{var k;C.actionDropdownShow&&((k=Tt(Lt,300))==null||k()),N!==o.value&&(N=o.value,at())}),t({}),{getMenuTagOptions:s,closeCurrentMenuTag:K,getMenuKey:o,menuTagClick:re,moreOptions:R,scrollX:Ee,scrollRef:n,uuidScrollBar:T,actionDropdownSelect:J,actionState:C,menuTagContextMenu:Dn,setCurrentContextmenuIndex:Nn,menuTagMouseenter:Vn,menuTagMouseleave:$n,MENU_TAG_DATA:I,iconConfig:{width:22,height:22},maximize:r,reload:u,globalMainLayoutLoad:O,maximizeBtnClick:Fn}},render(){let e;const{iconConfig:t,uuidScrollBar:n,getMenuTagOptions:o,MENU_TAG_DATA:s,globalMainLayoutLoad:a}=this,{maximizeBtnClick:l,closeCurrentMenuTag:r,scrollX:c,$t:u,menuTagClick:p,menuTagContextMenu:f,menuTagMouseenter:y,menuTagMouseleave:g,actionDropdownSelect:h,reload:_}=this;return i(on,null,{default:()=>[i("div",{class:"menu-tag"},[i(ye,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:h.bind(this),onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),i(z,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0,size:[16,0]},{default:()=>[i(A,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__left-arrow",onClick:this.scrollX.bind(this,"left")},null),i(Rt,$({xScrollable:!0,ref:"scrollRef"},{id:n},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[i(z,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},sl(e=o.map((m,S)=>i(ke,$({key:m.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:m.fullPath===this.getMenuKey?"primary":"default"},{onClick:p.bind(this,m),onContextmenu:f.bind(this,S),onMouseenter:y.bind(this,m),onMouseleave:g.bind(this,m),[s]:m.fullPath},{size:"small"}),{default:()=>i(ln,null,[i("span",null,{default:()=>{const{breadcrumbLabel:d,meta:{i18nKey:v}}=m;return v?u(v):d}}),i(So,$({class:"menu-tag__btn-icon"},{onMousedown:r.bind(this,S)}),{default:()=>[i(A,{name:"close",size:"14"},null)]})])})))?e:{default:()=>[e]})]}),i(z,{class:"menu-tag__right-wrapper",align:"center",inline:!0,wrap:!1,size:[8,0]},{default:()=>[i(A,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__right-arrow",onClick:c.bind(this,"right")},null),i(A,{name:"fullscreen_fold",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:l},null),i(A,{name:"reload",width:t.width,height:t.height,customClassName:`menu-tag__right-setting ${a?"":"menu-tag__right-setting--spinning"}`,onClick:()=>{_()}},null),i(Cn,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:20,keyboard:!1},{default:()=>[i(A,{name:"more",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:this.setCurrentContextmenuIndex.bind(this)},null)]})]})]})])]})}}),ll=P({name:"LayoutFeatureWrapper",setup(){return{}},render(){return i(rl,null,null)}}),il=e=>{const t=rt(e[0]),n=rt(e[1]),o=rt(e[2]),{height:s,width:a}=kt();return w(()=>({"--window-width":`${a.value}px`,"--window-height":`${s.value}px`,"--layout-content-height":`calc(${s.value}px - ${t.height.value}px - ${n.height.value}px - ${o.height.value}px)`,"--layout-content-width":`${t.width.value}px`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${n.height.value}px`,"--layout-footer-height":`${o.height.value}px`}))},Ht=Ro(F.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),cl=()=>({setLockAppScreen:n=>{Ht.value=n},getLockAppScreen:()=>Ht.value}),ul=P({name:"RLayout",setup(){const e=x(),t=x(),n=x(),{getMenuTagSwitch:o,getCopyrightSwitch:s}=G(),{getLockAppScreen:a}=cl(),l=il([e,t,n]);return{getMenuTagSwitch:o,cssVarsRef:l,getLockAppScreen:a,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:n,getCopyrightSwitch:s}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:n}=this,{getLockAppScreen:o}=this;return o()?null:i(wo,{class:"r-layout-full",style:[t],hasSider:!0,embedded:!0},{default:()=>[i(kr,null,null),i(Dt,{class:"r-layout-full__viewer"},{default:()=>[i(Hr,{ref:"layoutSiderBarRef"},null),e?i(ll,{ref:"layoutMenuTagRef"},null):null,i(Dt,{ref:me,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[i(In,null,null)]}),n?i(Ir,{ref:"layoutFooterRef"},null):null]})]})}}),dl=[{path:"/",name:"RLogin",component:()=>L(()=>import("./index-CChanisz.js"),__vite__mapDeps([87,1,2,3,4,5,6,7,8,9,10,11,40,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,71,72,73,30,31,50,33,34,35,36,37,38,39,41,42,43,44,45,46,47,88]))},{path:"/",name:"RLayout",component:ul,children:[...br(),{path:"/:catchAll(.*)",component:()=>L(()=>import("./index-CnxKNshD.js"),__vite__mapDeps([89,1,2,3,4,5,6,7,8,9,10,11,32,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,90])),meta:{i18nKey:D("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],Ye=oa({history:aa(),routes:dl,scrollBehavior:e=>{Ns(e)}}),pi=e=>{e.use(Ye),Tr(Ye)},Mt=()=>Ye?{router:Ye}:{router:{}},Yt="YYYY-MM-DD HH:mm:ss",pl=()=>({locale:l=>{const r=Da[l];r?Z.locale(r):Z.locale(Na)},getStartAndEndOfDay:l=>{const{format:r=Yt}=l??{},c=Z(),u=c.startOf("day"),p=c.endOf("day"),f=c.format(r),y=u.format(r),g=p.format(r);return{today:c,startOfDay:u,endOfDay:p,formatToday:f,formatStartOfDay:y,formatEndOfDay:g}},format:(l,r)=>{const{format:c=Yt}=r??{};return Z(l).format(c)},isDayjs:l=>Z.isDayjs(l),daysDiff:(l,r)=>{const c=Z(l);return Z(r).diff(c,"days")},isDateInRange:(l,r)=>{const{start:c,end:u}=r,p=Z(l);return p.isAfter(c)&&p.isBefore(u)}});function ot(e){const{width:t,height:n}=kt(e),o=x(!1),{observer:s}=e??{};return qo(()=>{const{media:l=768}=e??{};o.value=t.value<=l,s==null||s(o.value,{width:t.value,height:n.value})}),{width:t,height:n,isTabletOrSmaller:he(o)}}let mt=999,ht=!1;const le="ELEMENT-FULLSCREEN-RAY",{width:gt,height:ft}=kt(),Xt=document.createElement("style"),ml=(e,t)=>{const{beforeEnter:n,beforeExit:o,enter:s,exit:a,backgroundColor:l,zIndex:r,transition:c="all 0.3s var(--r-bezier)"}=t??{};let u=!1;const p={x:null,y:null},f=()=>{const m=ne(e);if(!m)return;const{left:S,top:d}=m.getBoundingClientRect();p.x===null&&p.y===null&&(p.x=-S,p.y=-d),Fe(document.body,{"--element-fullscreen-z-index":se(r,"Null")||se(r,"Undefined")?mt:r,"--element-fullscreen-transition":c,"--element-fullscreen-background-color":l,"--element-fullscreen-width":`${gt.value}px`,"--element-fullscreen-height":`${ft.value}px`,"--element-fullscreen-transform-x":`${p.x}px`,"--element-fullscreen-transform-y":`${p.y}px`});const v=` + [${le}] { + position: fixed; + width: var(--element-fullscreen-width) !important; + height: var(--element-fullscreen-height) !important; + transform: translate(var(--element-fullscreen-transform-x), var(--element-fullscreen-transform-y)) !important; + transition: var(--element-fullscreen-transition); + z-index: var(--element-fullscreen-z-index) !important; + background-color: var(--element-fullscreen-background-color); + } + `;Xt.innerHTML=v,ht||document.head.appendChild(Xt)},y=()=>{const m=ne(e);n==null||n(),m&&(m.getAttribute(le)||m.setAttribute(le,le),u||(u=!0,mt+=1),ht||(f(),ht=!0),m.style.transition=c,s==null||s())},g=()=>{o==null||o();const m=ne(e);m&&m.removeAttribute(le),a==null||a()},h=()=>{const m=ne(e);m&&(m.getAttribute(le)?g():y())},_=be(()=>[gt.value,ft.value],f);return xt(()=>{const m=ne(e);m&&m.removeAttribute(le),mt--,_()}),{enter:y,exit:g,toggleFullscreen:h,currentWindowSize:{width:gt,height:ft}}},yt={svg:Yo,png:Xo,jpeg:Jo,blob:Qo,pixelData:Zo,canvas:ea},mi=(e,t)=>{const{beforeCreate:n,created:o,createdError:s,finally:a,imageType:l}=t??{};return{create:c=>new Promise((u,p)=>{var y;const f=ne(e);if(n==null||n(f),!f)return s==null||s(),p("useDomToImage: element is undefined.");(y=yt[c??l??"jpeg"])==null||y.call(yt,f,t).then(g=>(o==null||o(g,f),u(g))).catch(g=>(s==null||s(g),p(g))).finally(()=>{a==null||a(f)})})}},hi=(e,t)=>({print:()=>{const o=ne(e)||e;Do({...Ot(t,["printable"]),printable:o})}}),hl={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},gi=(e,t)=>{const n=x(e),o=Ot(t,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),a=x(Object.assign({},hl,o,{onUpdatePage:d=>{var v;a.value.page=d,(v=n.value)==null||v.call(n)},onUpdatePageSize:d=>{var v;a.value.pageSize=d,a.value.page=1,(v=n.value)==null||v.call(n)}})),l=a.value.onUpdatePage,r=a.value.onUpdatePageSize,c=()=>a.value.itemCount,u=d=>{a.value.itemCount=d},p=()=>a.value.page,f=d=>{l(d)},y=()=>a.value.pageSize,g=d=>{r(d)},h=()=>a.value,_=e,m=d=>{n.value=d},S=()=>{const{pageSizes:d}=a.value;a.value.page=1,a.value.pageSize=(d==null?void 0:d[0])||10};return xt(()=>{n.value=void 0}),[a,{getItemCount:c,setItemCount:u,getPage:p,setPage:f,getPageSize:y,setPageSize:g,getPagination:h,getCallback:_,setCallback:m,resetPagination:S}]},En=()=>({isLayoutContentMaximized:w(()=>nt("layoutContentMaximize").value),maximize:(n,o)=>{var r;const{scrollToOptions:s}=o??{},a=ne(me),{toggleFullscreen:l}=ml(a,o);oe("layoutContentMaximize",n),l(),s&&n&&((r=me==null?void 0:me.value)==null||r.scrollTo(s))}}),gl=()=>({reload:(o=800)=>{oe("globalMainLayoutLoad",!1),setTimeout(()=>oe("globalMainLayoutLoad",!0),o)},openSpin:()=>{oe("layoutContentSpinning",!0)},closeSpin:()=>{oe("layoutContentSpinning",!1)}}),fi=()=>({setWatermarkContent:s=>{const{getWatermarkConfig:a}=G(),l=Object.assign(a.value,{content:s}),{updateSettingState:r}=q();r("watermarkConfig",l)},showWatermark:()=>{const{updateSettingState:s}=q();s("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:s}=q();s("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:s}=G(),{updateSettingState:a}=q();a("watermarkSwitch",!s.value)}}),vt=e=>{const{getPrimaryColorOverride:t}=G(),{updateSettingState:n}=q();n("primaryColorOverride",e?Object.assign({},t.value,Y.appNaiveUIThemeOverrides.dark,Y.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,Y.appNaiveUIThemeOverrides.light,Y.appNaiveUIThemeOverridesCommon.light))},fl=()=>{const e=()=>{const{getAppTheme:s}=G(),{t:a}=Me();return{theme:s.value,themeI18nLabel:s.value?a("headerSettingOptions.ThemeOptions.Dark"):a("headerSettingOptions.ThemeOptions.Light"),themeLabel:s.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:s}=q();s("appTheme",!0),vt(!0)},lightTheme:()=>{const{updateSettingState:s}=q();s("appTheme",!1),vt(!1)},toggleTheme:()=>{const{theme:s}=e(),{updateSettingState:a}=q();a("appTheme",!s),vt(!s)},getAppTheme:e}},pe=(e,t)=>{const{getMenuTagOptions:n}=ue();if(typeof e=="number"){if(isNaN(e)){console.warn(`${t}: The ${e} is NaN, expect number.`);return}if(e>n.value.length||e<-1){console.warn(`${t}: The incoming index ${e} did not match the corresponding item.`);return}return{option:n.value[e],index:e}}else if(typeof e=="string"){const o=n.value.findIndex(s=>s.fullPath===e);return o>-1?{option:n.value[o],index:o}:console.warn(`${t}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:o}=e,s=n.value.findIndex(a=>a.fullPath===o);if(s===-1){console.warn(`${t}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:s}}};function zn(){const{getMenuTagOptions:e,getMenuKey:t}=ue(),{changeMenuModelValue:n,spliceMenTagOptions:o,setMenuTagOptions:s,resolveOption:a}=Ie(),l=()=>e.value.findIndex(h=>h.fullPath===t.value);return{close:h=>{const _=pe(h,"close");if(e.value.length!==1&&_){const{index:m,option:S}=_;if(o(m),S.fullPath===t.value){const d=e.value[m-1];d&&n(d.fullPath,d)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:h}=_e(),{router:{getRoutes:_}}=Mt(),m=_().find(S=>S.path===h.value);if(m){const S=Oe(m,Ct),d=a(S);n(d.path,a({...d,fullPath:d.path}))}},closeRight:h=>{const _=pe(h,"closeRight");if(_){const{option:m,index:S}=_,d=e.value.length-S,v=l();o(S+1,d),S<=v&&t.value!==m.fullPath&&n(m.fullPath,m)}},closeLeft:h=>{const _=pe(h,"closeLeft");if(_){const{option:m,index:S}=_,d=l();o(0,S),d<=S&&t.value!==m.fullPath&&n(m.fullPath,m)}},closeOther:h=>{const _=pe(h,"closeOther");if(_){const{option:m}=_;t.value!==m.fullPath?(o(0,e.value.length),n(m.fullPath,m)):s(m,!1)}},getCurrentTagIndex:l,checkCloseRight:h=>{const _=pe(h,"checkCloseRight");if(_){const{index:m}=_,S=e.value.length-1;return!(m>=S)}return!1},checkCloseLeft:h=>{const _=pe(h,"checkCloseRight");if(_){const{index:m}=_,S=e.value.length-1;return m===0?!1:m>0&&S>0}return!1}}}function yi(){return{navigationTo:(t,n)=>{const{router:{getRoutes:o,push:s,replace:a}}=Mt(),{isPush:l=!0,query:r}=n||{},c=u=>l?s({path:u,query:r}):a({path:u,query:r});if(typeof t=="number"){if(isNaN(t)){console.warn(`[navigationTo]: The ${t} is NaN, expect number.`);return}const{getMenuOptions:u}=ue();if(t>u.value.length){console.warn(`[navigationTo]: The current ${t} exceeds the maximum number of menus.`);return}const p=u.value[t],f=y=>{if(y.children&&y.children.length>0){const{children:[g]}=y;f(g);return}c(y.fullPath)};f(p)}else if(typeof t=="string"){const u=o().find(p=>p.path===t);u?c(u.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else c(t.fullPath)}}}function _e(){const{getAppRootRoute:e}=G(),{updateSettingState:t}=q(),n=e,o=w(()=>e.value.path),s=w(()=>e.value.name);return{getRootRoute:n,getRootPath:o,getRootName:s,setRootRoute:l=>{t("appRootRoute",Object.assign({},e.value,l))}}}const yl=(e,t)=>{const{show:n,...o}=t;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:n}),e.extra=Rn(e)},Jt=(e,t,n)=>{const o=An(e,t);o&&yl(o,n)},bt=(e,t,n)=>{const{getMenuOptions:o}=ue();if(typeof e=="string")Jt(o.value,e,n);else if(se(e,"Object")){const{fullPath:s}=e;Jt(o.value,s,n)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function vi(){return{hidden:o=>{bt(o,"hidden",{show:!1})},show:o=>{bt(o,"show",{show:!0})},update:(o,s)=>{bt(o,"update",s)}}}const bi=()=>{const e=yn.value,{scrollTo:t}=e||{};if(!t)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return t},jn=()=>Pe(F.localeLanguage,"localStorage",{defaultValue:za}),_i=()=>{const e=x(),t=h=>{h&&(e.value=h)},n=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[t,{clearFilters:()=>n().clearFilters.call(null),getTableProInstance:n,clearSorter:()=>n().clearSorter.call(null),downloadCsv:h=>n().downloadCsv.call(null,h),filters:h=>n().filters.call(null,h),page:h=>n().page.call(null,h),scrollTo:h=>n().scrollTo(h),sort:(h,_)=>n().sort.call(null,h,_),getTablePagination:()=>n().getTablePagination.call(null),runTableRequest:h=>n().runTableRequest.call(null,h),print:h=>n().print.call(null,h),getCurrentTableRequestParams:h=>n().getCurrentTableRequestParams.call(null,h)}]};export{di as $,ql as A,Yl as B,Jl as C,Na as D,Ql as E,li as F,ri as G,ei as H,gi as I,Zl as J,oi as K,yn as L,Ul as M,ni as N,ii as O,Ks as P,ir as Q,ti as R,Or as S,zr as T,Le as U,ai as V,_i as W,si as X,pl as Y,Pr as Z,L as _,mi as a,Hl as a0,Cn as a1,En as a2,yi as a3,gl as a4,fi as a5,vi as a6,hi as b,bi as c,Gl as d,G as e,F as f,Kl as g,q as h,cl as i,Sr as j,ot as k,Br as l,nt as m,Wl as n,Xl as o,pi as p,_e as q,Me as r,ui as s,A as t,fl as u,fn as v,it as w,Mt as x,Fl as y,ci as z}; diff --git a/js/hooks-Dx3WCPci.js.gz b/js/hooks-Dx3WCPci.js.gz new file mode 100644 index 00000000..0ad409c9 Binary files /dev/null and b/js/hooks-Dx3WCPci.js.gz differ diff --git a/js/html-to-image@1.11.11-BOFdlgi9.js b/js/html-to-image@1.11.11-BOFdlgi9.js new file mode 100644 index 00000000..184bb239 --- /dev/null +++ b/js/html-to-image@1.11.11-BOFdlgi9.js @@ -0,0 +1,2 @@ +function M(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const r=document.implementation.createHTMLDocument(),n=r.createElement("base"),i=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(i),e&&(n.href=e),i.href=t,i.href}const O=(()=>{let t=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function f(t){const e=[];for(let r=0,n=t.length;ru||t.height>u)&&(t.width>u&&t.height>u?t.width>t.height?(t.height*=u/t.width,t.width=u):(t.width*=u/t.height,t.height=u):t.width>u?(t.height*=u/t.width,t.width=u):(t.width*=u/t.height,t.height=u))}function j(t,e={}){return t.toBlob?new Promise(r=>{t.toBlob(r,e.type?e.type:"image/png",e.quality?e.quality:1)}):new Promise(r=>{const n=window.atob(t.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),i=n.length,s=new Uint8Array(i);for(let c=0;c{const n=new Image;n.decode=()=>e(n),n.onload=()=>e(n),n.onerror=r,n.crossOrigin="anonymous",n.decoding="async",n.src=t})}async function z(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function G(t,e,r){const n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),s=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${e}`),i.setAttribute("height",`${r}`),i.setAttribute("viewBox",`0 0 ${e} ${r}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),i.appendChild(s),s.appendChild(t),z(i)}const l=(t,e)=>{if(t instanceof e)return!0;const r=Object.getPrototypeOf(t);return r===null?!1:r.constructor.name===e.name||l(r,e)};function X(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function J(t){return f(t).map(e=>{const r=t.getPropertyValue(e),n=t.getPropertyPriority(e);return`${e}: ${r}${n?" !important":""};`}).join(" ")}function K(t,e,r){const n=`.${t}:${e}`,i=r.cssText?X(r):J(r);return document.createTextNode(`${n}{${i}}`)}function P(t,e,r){const n=window.getComputedStyle(t,r),i=n.getPropertyValue("content");if(i===""||i==="none")return;const s=O();try{e.className=`${e.className} ${s}`}catch{return}const c=document.createElement("style");c.appendChild(K(s,r,n)),e.appendChild(c)}function Q(t,e){P(t,e,":before"),P(t,e,":after")}const $="application/font-woff",T="image/jpeg",Y={woff:$,woff2:$,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:T,jpeg:T,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Z(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function R(t){const e=Z(t).toLowerCase();return Y[e]||""}function N(t){return t.split(/,/)[1]}function x(t){return t.search(/^(data:)/)!==-1}function tt(t,e){return`data:${e};base64,${t}`}async function v(t,e,r){const n=await fetch(t,e);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);const i=await n.blob();return new Promise((s,c)=>{const a=new FileReader;a.onerror=c,a.onloadend=()=>{try{s(r({res:n,result:a.result}))}catch(o){c(o)}},a.readAsDataURL(i)})}const S={};function et(t,e,r){let n=t.replace(/\?.*/,"");return r&&(n=t),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),e?`[${e}]${n}`:n}async function C(t,e,r){const n=et(t,e,r.includeQueryParams);if(S[n]!=null)return S[n];r.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let i;try{const s=await v(t,r.fetchRequestInit,({res:c,result:a})=>(e||(e=c.headers.get("Content-Type")||""),N(a)));i=tt(s,e)}catch(s){i=r.imagePlaceholder||"";let c=`Failed to fetch resource: ${t}`;s&&(c=typeof s=="string"?s:s.message),c&&console.warn(c)}return S[n]=i,i}async function nt(t){const e=t.toDataURL();return e==="data:,"?t.cloneNode(!1):y(e)}async function rt(t,e){if(t.currentSrc){const s=document.createElement("canvas"),c=s.getContext("2d");s.width=t.clientWidth,s.height=t.clientHeight,c==null||c.drawImage(t,0,0,s.width,s.height);const a=s.toDataURL();return y(a)}const r=t.poster,n=R(r),i=await C(r,n,e);return y(i)}async function it(t){var e;try{if(!((e=t==null?void 0:t.contentDocument)===null||e===void 0)&&e.body)return await w(t.contentDocument.body,{},!0)}catch{}return t.cloneNode(!1)}async function st(t,e){return l(t,HTMLCanvasElement)?nt(t):l(t,HTMLVideoElement)?rt(t,e):l(t,HTMLIFrameElement)?it(t):t.cloneNode(!1)}const ct=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT";async function at(t,e,r){var n,i;let s=[];return ct(t)&&t.assignedNodes?s=f(t.assignedNodes()):l(t,HTMLIFrameElement)&&(!((n=t.contentDocument)===null||n===void 0)&&n.body)?s=f(t.contentDocument.body.childNodes):s=f(((i=t.shadowRoot)!==null&&i!==void 0?i:t).childNodes),s.length===0||l(t,HTMLVideoElement)||await s.reduce((c,a)=>c.then(()=>w(a,r)).then(o=>{o&&e.appendChild(o)}),Promise.resolve()),e}function ot(t,e){const r=e.style;if(!r)return;const n=window.getComputedStyle(t);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):f(n).forEach(i=>{let s=n.getPropertyValue(i);i==="font-size"&&s.endsWith("px")&&(s=`${Math.floor(parseFloat(s.substring(0,s.length-2)))-.1}px`),l(t,HTMLIFrameElement)&&i==="display"&&s==="inline"&&(s="block"),i==="d"&&e.getAttribute("d")&&(s=`path(${e.getAttribute("d")})`),r.setProperty(i,s,n.getPropertyPriority(i))})}function lt(t,e){l(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),l(t,HTMLInputElement)&&e.setAttribute("value",t.value)}function ut(t,e){if(l(t,HTMLSelectElement)){const r=e,n=Array.from(r.children).find(i=>t.value===i.getAttribute("value"));n&&n.setAttribute("selected","")}}function ft(t,e){return l(e,Element)&&(ot(t,e),Q(t,e),lt(t,e),ut(t,e)),e}async function ht(t,e){const r=t.querySelectorAll?t.querySelectorAll("use"):[];if(r.length===0)return t;const n={};for(let s=0;sst(n,e)).then(n=>at(t,n,e)).then(n=>ft(t,n)).then(n=>ht(n,e))}const F=/url\((['"]?)([^'"]+?)\1\)/g,gt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,mt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function dt(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function yt(t){const e=[];return t.replace(F,(r,n,i)=>(e.push(i),r)),e.filter(r=>!x(r))}async function wt(t,e,r,n,i){try{const s=r?M(e,r):e,c=R(e);let a;return i||(a=await C(s,c,n)),t.replace(dt(e),`$1${a}$3`)}catch{}return t}function pt(t,{preferredFontFormat:e}){return e?t.replace(mt,r=>{for(;;){const[n,,i]=gt.exec(r)||[];if(!i)return"";if(i===e)return`src: ${n};`}}):t}function U(t){return t.search(F)!==-1}async function k(t,e,r){if(!U(t))return t;const n=pt(t,r);return yt(n).reduce((s,c)=>s.then(a=>wt(a,c,e,r)),Promise.resolve(n))}async function m(t,e,r){var n;const i=(n=e.style)===null||n===void 0?void 0:n.getPropertyValue(t);if(i){const s=await k(i,null,r);return e.style.setProperty(t,s,e.style.getPropertyPriority(t)),!0}return!1}async function bt(t,e){await m("background",t,e)||await m("background-image",t,e),await m("mask",t,e)||await m("mask-image",t,e)}async function St(t,e){const r=l(t,HTMLImageElement);if(!(r&&!x(t.src))&&!(l(t,SVGImageElement)&&!x(t.href.baseVal)))return;const n=r?t.src:t.href.baseVal,i=await C(n,R(n),e);await new Promise((s,c)=>{t.onload=s,t.onerror=c;const a=t;a.decode&&(a.decode=s),a.loading==="lazy"&&(a.loading="eager"),r?(t.srcset="",t.src=i):t.href.baseVal=i})}async function xt(t,e){const n=f(t.childNodes).map(i=>V(i,e));await Promise.all(n).then(()=>t)}async function V(t,e){l(t,Element)&&(await bt(t,e),await St(t,e),await xt(t,e))}function Et(t,e){const{style:r}=t;e.backgroundColor&&(r.backgroundColor=e.backgroundColor),e.width&&(r.width=`${e.width}px`),e.height&&(r.height=`${e.height}px`);const n=e.style;return n!=null&&Object.keys(n).forEach(i=>{r[i]=n[i]}),t}const L={};async function I(t){let e=L[t];if(e!=null)return e;const n=await(await fetch(t)).text();return e={url:t,cssText:n},L[t]=e,e}async function A(t,e){let r=t.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,s=(r.match(/url\([^)]+\)/g)||[]).map(async c=>{let a=c.replace(n,"$1");return a.startsWith("https://")||(a=new URL(a,t.url).href),v(a,e.fetchRequestInit,({result:o})=>(r=r.replace(c,`url(${o})`),[c,o]))});return Promise.all(s).then(()=>r)}function D(t){if(t==null)return[];const e=[],r=/(\/\*[\s\S]*?\*\/)/gi;let n=t.replace(r,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const o=i.exec(n);if(o===null)break;e.push(o[0])}n=n.replace(i,"");const s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,c="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",a=new RegExp(c,"gi");for(;;){let o=s.exec(n);if(o===null){if(o=a.exec(n),o===null)break;s.lastIndex=a.lastIndex}else a.lastIndex=s.lastIndex;e.push(o[0])}return e}async function Rt(t,e){const r=[],n=[];return t.forEach(i=>{if("cssRules"in i)try{f(i.cssRules||[]).forEach((s,c)=>{if(s.type===CSSRule.IMPORT_RULE){let a=c+1;const o=s.href,g=I(o).then(h=>A(h,e)).then(h=>D(h).forEach(b=>{try{i.insertRule(b,b.startsWith("@import")?a+=1:i.cssRules.length)}catch(H){console.error("Error inserting rule from remote css",{rule:b,error:H})}})).catch(h=>{console.error("Error loading remote css",h.toString())});n.push(g)}})}catch(s){const c=t.find(a=>a.href==null)||document.styleSheets[0];i.href!=null&&n.push(I(i.href).then(a=>A(a,e)).then(a=>D(a).forEach(o=>{c.insertRule(o,i.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a)})),console.error("Error inlining remote css file",s)}}),Promise.all(n).then(()=>(t.forEach(i=>{if("cssRules"in i)try{f(i.cssRules||[]).forEach(s=>{r.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${i.href}`,s)}}),r))}function Ct(t){return t.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>U(e.style.getPropertyValue("src")))}async function Pt(t,e){if(t.ownerDocument==null)throw new Error("Provided element is not within a Document");const r=f(t.ownerDocument.styleSheets),n=await Rt(r,e);return Ct(n)}async function $t(t,e){const r=await Pt(t,e);return(await Promise.all(r.map(i=>{const s=i.parentStyleSheet?i.parentStyleSheet.href:null;return k(i.cssText,s,e)}))).join(` +`)}async function Tt(t,e){const r=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await $t(t,e);if(r){const n=document.createElement("style"),i=document.createTextNode(r);n.appendChild(i),t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}}async function Lt(t,e={}){const{width:r,height:n}=E(t,e),i=await w(t,e,!0);return await Tt(i,e),await V(i,e),Et(i,e),await G(i,r,n)}async function p(t,e={}){const{width:r,height:n}=E(t,e),i=await Lt(t,e),s=await y(i),c=document.createElement("canvas"),a=c.getContext("2d"),o=e.pixelRatio||q(),g=e.canvasWidth||r,h=e.canvasHeight||n;return c.width=g*o,c.height=h*o,e.skipAutoScale||B(c),c.style.width=`${g}`,c.style.height=`${h}`,e.backgroundColor&&(a.fillStyle=e.backgroundColor,a.fillRect(0,0,c.width,c.height)),a.drawImage(s,0,0,c.width,c.height),c}async function It(t,e={}){const{width:r,height:n}=E(t,e);return(await p(t,e)).getContext("2d").getImageData(0,0,r,n).data}async function At(t,e={}){return(await p(t,e)).toDataURL()}async function Dt(t,e={}){return(await p(t,e)).toDataURL("image/jpeg",e.quality||1)}async function vt(t,e={}){const r=await p(t,e);return await j(r)}export{At as a,Dt as b,vt as c,It as d,p as e,Lt as t}; diff --git a/js/html-to-image@1.11.11-BOFdlgi9.js.gz b/js/html-to-image@1.11.11-BOFdlgi9.js.gz new file mode 100644 index 00000000..cd43517a Binary files /dev/null and b/js/html-to-image@1.11.11-BOFdlgi9.js.gz differ diff --git a/js/index-3_6mCYvY.js b/js/index-3_6mCYvY.js new file mode 100644 index 00000000..cdde6f62 --- /dev/null +++ b/js/index-3_6mCYvY.js @@ -0,0 +1 @@ +import{l as e,b as o,I as r}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as i}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{M as p}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const C=e({name:"MultiMenuTwoOne",setup(){return{inputValue:i(null)}},render(){return o("div",{style:{height:"var(--layout-content-height)"}},[r("多级菜单2-2-1"),o(p,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{C as default}; diff --git a/js/index-3_6mCYvY.js.gz b/js/index-3_6mCYvY.js.gz new file mode 100644 index 00000000..ecdb88c5 Binary files /dev/null and b/js/index-3_6mCYvY.js.gz differ diff --git a/js/index-43Sr2ZDd.js b/js/index-43Sr2ZDd.js deleted file mode 100644 index a7121cf6..00000000 --- a/js/index-43Sr2ZDd.js +++ /dev/null @@ -1 +0,0 @@ -function a(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Vue.isVNode(t)}const n=Vue.defineComponent({name:"AppShareLink",setup(){return{handleLinkClick:o=>{window.open(o.src)},avatarOptions:[{key:"ray-js-note",src:"https://note.youdao.com/s/ObWEe2BB",tooltip:"Ray的前端学习笔记",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-js-cover",src:"https://note.youdao.com/s/IC8xKPdB",tooltip:"Ray的面试题总结",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc",src:"https://xiaodaigua-ray.github.io/ray-template-doc/",tooltip:"Ray Template Doc",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc-out",src:"https://ray-template.yunkuangao.com/",tooltip:"Ray Template Doc (国内地址)",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"}]}},render(){let t;return Vue.createVNode(naive.NFlex,null,a(t=this.avatarOptions.map(e=>Vue.createVNode(naive.NTooltip,{key:e.key},{trigger:()=>Vue.createVNode(naive.NAvatar,Vue.mergeProps({round:!0,src:e.icon,style:["cursor: pointer"]},{onClick:this.handleLinkClick.bind(this,e)},{objectFit:"cover",size:24}),null),default:()=>e.tooltip})))?t:{default:()=>[t]})}});export{n as A}; diff --git a/js/index-43Sr2ZDd.js.gz b/js/index-43Sr2ZDd.js.gz deleted file mode 100644 index 1396099d..00000000 Binary files a/js/index-43Sr2ZDd.js.gz and /dev/null differ diff --git a/js/index-5cxxl6_s.js b/js/index-5cxxl6_s.js deleted file mode 100644 index 221f0d61..00000000 --- a/js/index-5cxxl6_s.js +++ /dev/null @@ -1 +0,0 @@ -const i=Vue.defineComponent({name:"RDirective",setup(){const e=Vue.reactive({copyValueOne:"我是待复制内容区域一",copyValueTwo:"我是待复制内容区域二",throttleBtnClickCount:0,debounceBtnClickCount:0,disabledValue:!1}),u=Vue.ref(2),t=a=>{e[a]++};return{...Vue.toRefs(e),updateDemoValue:t,ellipsisLineClamp:u}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NCard,{title:"指令"},{default:()=>[Vue.createTextVNode("该页面展示如何使用已封装好的指令")]}),Vue.createVNode(naive.NCard,{title:"水波纹"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{title:"modifiers",type:"info"},{default:()=>[Vue.createTextVNode("你可以手动显示的声明水波纹效果,默认为 circle。你可以手动的声明为 center。")]}),Vue.createVNode(naive.NAlert,{title:"vue template",type:"success"},{default:()=>[Vue.createTextVNode('"v-ripple.center" 或者 "v-ripple.circle"。')]}),Vue.createVNode(naive.NAlert,{title:"tsx",type:"success"},{default:()=>[JSON.stringify("v-ripple={[true, ['center']]}"),Vue.createTextVNode(" 或者"),JSON.stringify("v-ripple={[true, ['circle']]}"),Vue.createTextVNode("。")]}),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.withDirectives(Vue.createVNode(naive.NTag,{type:"success",size:"large"},{default:()=>[Vue.createTextVNode("水波纹效果的Tag")]}),[[Vue.resolveDirective("ripple")]]),Vue.withDirectives(Vue.createVNode(naive.NTag,{type:"warning",size:"large"},{default:()=>[Vue.createTextVNode("水波纹效果的Tag")]}),[[Vue.resolveDirective("ripple")]]),Vue.withDirectives(Vue.createVNode(naive.NTag,{type:"error",size:"large"},{default:()=>[Vue.createTextVNode("水波纹效果的Tag")]}),[[Vue.resolveDirective("ripple")]]),Vue.withDirectives(Vue.createVNode(naive.NButton,{type:"info"},{default:()=>[Vue.createTextVNode("水波纹效果的Button")]}),[[Vue.resolveDirective("ripple")]]),Vue.withDirectives(Vue.createVNode("div",{style:"height: 20px; line-height: 20px;text-align: center; border: 1px solid; padding: 6px;"},[Vue.createTextVNode("原生元素绑定水波纹效果,并且手动绑定 modifiers 为 center")]),[[Vue.resolveDirective("ripple"),!0,void 0,{center:!0}]])]})]})]}),Vue.createVNode(naive.NCard,{title:"文本省略"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"单行省略"},{default:()=>[Vue.withDirectives(Vue.createVNode("div",null,[Vue.createTextVNode("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[Vue.resolveDirective("ellipsis"),{type:"block",width:"100px"}]])]}),Vue.createVNode(naive.NCard,{title:"多行省略"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large"},{default:()=>[Vue.createVNode(naive.NAlert,{title:"注意",type:"warning"},{default:()=>[Vue.createTextVNode("该方法基于非标准属性实现(-webkit-line-clamp),可能会有兼容性问题,所以请谨慎使用。 详情参考:"),Vue.createVNode("a",{href:"https://caniuse.com/?search=line-clamp"},[Vue.createTextVNode("can i use")])]}),Vue.withDirectives(Vue.createVNode("div",null,[Vue.createTextVNode("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[Vue.resolveDirective("ellipsis"),{type:"line",width:"100px",line:this.ellipsisLineClamp}]]),Vue.createVNode(naive.NInputNumber,{value:this.ellipsisLineClamp,"onUpdate:value":e=>this.ellipsisLineClamp=e,min:1},null)]})]})]})]}),Vue.createVNode(naive.NCard,{title:"文本复制示例一"},{default:()=>[Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInput,{value:this.copyValueOne,"onUpdate:value":e=>this.copyValueOne=e},null),Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("复制")]}),[[Vue.resolveDirective("copy"),this.copyValueOne]])]})]}),Vue.createVNode(naive.NCard,{title:"文本复制示例二"},{default:()=>[Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInput,{value:this.copyValueTwo,"onUpdate:value":e=>this.copyValueTwo=e},null),Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("复制")]}),[[Vue.resolveDirective("copy"),this.copyValueTwo]])]})]}),Vue.createVNode(naive.NCard,{title:"节流"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("点击执行")]}),[[Vue.resolveDirective("throttle"),{func:this.updateDemoValue.bind(null,"throttleBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),Vue.createVNode("p",null,[Vue.createTextVNode("我执行了"),this.throttleBtnClickCount,Vue.createTextVNode("次")]),Vue.createVNode("p",null,[Vue.createTextVNode("该方法 3s 内仅会执行一次")])]})]}),Vue.createVNode(naive.NCard,{title:"防抖"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("点击执行")]}),[[Vue.resolveDirective("debounce"),{func:this.updateDemoValue.bind(null,"debounceBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),Vue.createVNode("p",null,[Vue.createTextVNode("我执行了"),this.debounceBtnClickCount,Vue.createTextVNode("次")]),Vue.createVNode("p",null,[Vue.createTextVNode("该方法将延迟 3s 执行")])]})]}),Vue.createVNode(naive.NCard,{title:"禁用"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.disabledValue,"onUpdate:value":e=>this.disabledValue=e},{checked:()=>"取消",unchecked:()=>"禁用"}),Vue.createVNode(naive.NCard,{title:"描述"},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("该指令会强制禁用(通过 css 层面)禁用元素交互。但是 naive ui 组件提供了完整的 disabled 属性,所以在组件库有禁用需求时,直接调用组件库 disabled 属性即可。但是值得注意的是,该指令优先级最高,会覆盖组件 disabled 属性。")])]}),Vue.createVNode(naive.NCard,{title:"原生表单"},{default:()=>[Vue.withDirectives(Vue.createVNode("form",null,[Vue.createVNode("input",{type:"text",placeholder:"请输入"},null),Vue.createVNode("button",null,[Vue.createTextVNode("提交")])]),[[Vue.resolveDirective("disabled"),this.disabledValue]])]}),Vue.createVNode(naive.NCard,{title:"文本内容"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.withDirectives(Vue.createVNode("p",null,[Vue.createTextVNode("我是可以被禁用的文本内容")]),[[Vue.resolveDirective("disabled"),this.disabledValue]])]})]}),Vue.createVNode(naive.NCard,{title:"naive 组件"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,justify:"start"},{default:()=>[Vue.withDirectives(Vue.createVNode(naive.NForm,null,{default:()=>[Vue.createVNode(naive.NFormItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]})]}),[[Vue.resolveDirective("disabled"),this.disabledValue]]),Vue.withDirectives(Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("按钮")]}),[[Vue.resolveDirective("disabled"),this.disabledValue]]),Vue.withDirectives(Vue.createVNode(naive.NSwitch,null,null),[[Vue.resolveDirective("disabled"),this.disabledValue]])]})]})]})]})]})}});export{i as default}; diff --git a/js/index-5cxxl6_s.js.gz b/js/index-5cxxl6_s.js.gz deleted file mode 100644 index 4b3c1b0d..00000000 Binary files a/js/index-5cxxl6_s.js.gz and /dev/null differ diff --git a/js/index-B-DmbCNN.js b/js/index-B-DmbCNN.js new file mode 100644 index 00000000..517a3ba9 --- /dev/null +++ b/js/index-B-DmbCNN.js @@ -0,0 +1 @@ +import{l as j,p as x,b as t,I as C,t as O,v as D}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as y}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{N as l,I as a,J as p,v as N}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";var _={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.7"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function r(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!D(i)}const Q=j({name:"RelyAbout",setup(){const{pkg:i}=_,{dependencies:s,devDependencies:n,name:e,version:g}=i,f=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],d=y([]),u=y([]),b=[{name:"项目名称",label:e},{name:"版本信息",label:g},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],h=()=>{const o=m=>Object.keys(m).reduce((c,v)=>(c.push({name:v,relyVersion:m[v],relyAddress:""}),c),[]);d.value=o(s),u.value=o(n)},k=o=>{o.url&&window.open(o.url)};return x(()=>{h()}),{columns:f,dependenciesOptions:d,devDependenciesOptions:u,templateOptions:b,handleTagClick:k}},render(){let i,s,n;return t("div",{class:"rely-about"},[t(l,{title:"关于项目"},{default:()=>[C("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),t(l,{title:"项目信息"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(i=this.templateOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[t(N,O({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?i:{default:()=>[i]})]}),t(l,{title:"生产依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(s=this.dependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?s:{default:()=>[s]})]}),t(l,{title:"开发依赖"},{default:()=>[t(a,{bordered:!0,labelPlacement:"left"},r(n=this.devDependenciesOptions.map(e=>t(p,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{Q as default}; diff --git a/js/index-B-DmbCNN.js.gz b/js/index-B-DmbCNN.js.gz new file mode 100644 index 00000000..421e69a9 Binary files /dev/null and b/js/index-B-DmbCNN.js.gz differ diff --git a/js/index-B6Vex0Vv.js b/js/index-B6Vex0Vv.js new file mode 100644 index 00000000..e21d8c0b --- /dev/null +++ b/js/index-B6Vex0Vv.js @@ -0,0 +1 @@ +import{l as o,b as r,I as t}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{N as u}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const S=o({name:"ScrollReveal",render(){return r("div",{class:"scroll-reveal"},[r(u,{title:"提示"},{default:()=>[t("RayScrollReveal组件有点问题, 暂时移除. 不能正常的实现滚动动画. 很是操蛋!!!")]})])}});export{S as default}; diff --git a/js/index-B6Vex0Vv.js.gz b/js/index-B6Vex0Vv.js.gz new file mode 100644 index 00000000..98216bf6 Binary files /dev/null and b/js/index-B6Vex0Vv.js.gz differ diff --git a/js/index-B6a_PCdD.js b/js/index-B6a_PCdD.js deleted file mode 100644 index aee16f5d..00000000 --- a/js/index-B6a_PCdD.js +++ /dev/null @@ -1 +0,0 @@ -const u=Vue.defineComponent({name:"SubMenuOther",setup(){return{inputValue:Vue.ref(null)}},render(){return Vue.createVNode("div",null,[Vue.createTextVNode("多级菜单-2-1"),Vue.createVNode(naive.NInput,{modelValue:this.inputValue,"onUpdate:modelValue":e=>this.inputValue=e},null)])}});export{u as default}; diff --git a/js/index-BKg9uIUv.js b/js/index-BKg9uIUv.js deleted file mode 100644 index 81222c27..00000000 --- a/js/index-BKg9uIUv.js +++ /dev/null @@ -1 +0,0 @@ -import{K as i}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const H=Vue.defineComponent({name:"RouterDemoHome",setup(){const t=VueRouter.useRouter(),r=Vue.ref([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",text:!0,size:"tiny",onClick:()=>{t.push({path:"/router-demo/router-demo-detail",query:{name:e.name}})}},{default:()=>[Vue.createTextVNode("详情")]})]})}]),o=[];for(let e=0;e<10;e++)o.push({name:"张三"+e,address:"New York No. 1 Lake Park",phone:"010-121212",key:e});return{dataSource:o,columns:r}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(i,{columns:this.columns,"onUpdate:columns":t=>this.columns=t,data:this.dataSource},null)]})}});export{H as default}; diff --git a/js/index-BKg9uIUv.js.gz b/js/index-BKg9uIUv.js.gz deleted file mode 100644 index 0d9d15f6..00000000 Binary files a/js/index-BKg9uIUv.js.gz and /dev/null differ diff --git a/js/index-BMHAQ_2t.js b/js/index-BMHAQ_2t.js new file mode 100644 index 00000000..32d3039d --- /dev/null +++ b/js/index-BMHAQ_2t.js @@ -0,0 +1 @@ +import{t as c,_ as o}from"./hooks-Dx3WCPci.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{l as p,b as t,O as m,W as n,v}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as E}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{c as d,l as a,N as u}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function g(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!v(i)}const vo=p({name:"PreviewSVGIcons",setup(){const i=E([]);return Object.keys(Object.assign({"/src/icons/action/draggable.svg":()=>o(()=>import("./draggable-D6qza0mp.js"),[]),"/src/icons/action/fullscreen.svg":()=>o(()=>import("./fullscreen-Cjm0bPGx.js"),[]),"/src/icons/action/fullscreen_fold.svg":()=>o(()=>import("./fullscreen_fold-BUWP5JFn.js"),[]),"/src/icons/action/out.svg":()=>o(()=>import("./out-CMQCc625.js"),[]),"/src/icons/action/reload.svg":()=>o(()=>import("./reload-BCsJCBo-.js"),[]),"/src/icons/action/search.svg":()=>o(()=>import("./search-DPR73sQp.js"),[]),"/src/icons/action/setting.svg":()=>o(()=>import("./setting-CqYm8XBn.js"),[]),"/src/icons/directional/adjustment.svg":()=>o(()=>import("./adjustment-DIo_g8Za.js"),[]),"/src/icons/directional/close_left.svg":()=>o(()=>import("./close_left-C6k2eGWg.js"),[]),"/src/icons/directional/close_right.svg":()=>o(()=>import("./close_right-CrnE5vtw.js"),[]),"/src/icons/directional/expanded.svg":()=>o(()=>import("./expanded-BswQDJyW.js"),[]),"/src/icons/directional/left_arrow.svg":()=>o(()=>import("./left_arrow-DAKeumRT.js"),[]),"/src/icons/directional/lock.svg":()=>o(()=>import("./lock-dC7sQfx2.js"),[]),"/src/icons/directional/resize_h.svg":()=>o(()=>import("./resize_h-DA2p7YCQ.js"),[]),"/src/icons/directional/right_arrow.svg":()=>o(()=>import("./right_arrow-CbmroMoE.js"),[]),"/src/icons/directional/row_end.svg":()=>o(()=>import("./row_end-CqbNhb3G.js"),[]),"/src/icons/directional/row_head.svg":()=>o(()=>import("./row_head-BCxi2x-p.js"),[]),"/src/icons/logo/github.svg":()=>o(()=>import("./github-B4ARmChV.js"),[]),"/src/icons/logo/google.svg":()=>o(()=>import("./google-GEcrFhWr.js"),[]),"/src/icons/logo/login_bg.svg":()=>o(()=>import("./login_bg-CRcyXHBf.js"),[]),"/src/icons/logo/office.svg":()=>o(()=>import("./office-B5pC1KGi.js"),[]),"/src/icons/logo/ray.svg":()=>o(()=>import("./ray-B93BjtIh.js"),[]),"/src/icons/logo/twitter.svg":()=>o(()=>import("./twitter-DjE7U1HD.js"),[]),"/src/icons/template/dark.svg":()=>o(()=>import("./dark-BqsidBpX.js"),[]),"/src/icons/template/light.svg":()=>o(()=>import("./light-DWbddXnY.js"),[]),"/src/icons/tip/axios.svg":()=>o(()=>import("./axios-o8g4A-7A.js"),[]),"/src/icons/tip/close.svg":()=>o(()=>import("./close-10SEVxdb.js"),[]),"/src/icons/tip/dashboard.svg":()=>o(()=>import("./dashboard-70op-CO0.js"),[]),"/src/icons/tip/echart.svg":()=>o(()=>import("./echart-c_3t778P.js"),[]),"/src/icons/tip/enter.svg":()=>o(()=>import("./enter-CPGcsJ25.js"),[]),"/src/icons/tip/error.svg":()=>o(()=>import("./error-CjWalrOZ.js"),[]),"/src/icons/tip/export_excel.svg":()=>o(()=>import("./export_excel-ZmNoLzCr.js"),[]),"/src/icons/tip/language.svg":()=>o(()=>import("./language-C4AMs4_p.js"),[]),"/src/icons/tip/menu.svg":()=>o(()=>import("./menu-CPMkWw77.js"),[]),"/src/icons/tip/more.svg":()=>o(()=>import("./more-DW-qndwg.js"),[]),"/src/icons/tip/mouse.svg":()=>o(()=>import("./mouse-C_l6KSTs.js"),[]),"/src/icons/tip/other.svg":()=>o(()=>import("./other-DU6bZUrM.js"),[]),"/src/icons/tip/print.svg":()=>o(()=>import("./print-jFo_n0lx.js"),[]),"/src/icons/tip/rely.svg":()=>o(()=>import("./rely-DlDUQEbT.js"),[]),"/src/icons/tip/table.svg":()=>o(()=>import("./table-tYkftQGA.js"),[])})).forEach(e=>{var s;const _=(s=e.match(/\/(\w+)\.svg/))==null?void 0:s[1];_&&i.value.push(_)}),{icons:i}},render(){return t(u,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let i;return t(d,null,g(i=this.icons.map(r=>m(t("div",{class:"pre-view-icons__card",key:r},[t(a,null,{trigger:()=>t(c,{name:r,size:"56",cursor:"pointer"},null),default:()=>r})]),[[n("copy"),``]])))?i:{default:()=>[i]})}})}});export{vo as default}; diff --git a/js/index-BMHAQ_2t.js.gz b/js/index-BMHAQ_2t.js.gz new file mode 100644 index 00000000..605c28d8 Binary files /dev/null and b/js/index-BMHAQ_2t.js.gz differ diff --git a/js/index-BRGdSJVO.js b/js/index-BRGdSJVO.js deleted file mode 100644 index eb1a3ba0..00000000 --- a/js/index-BRGdSJVO.js +++ /dev/null @@ -1 +0,0 @@ -const u=Vue.defineComponent({name:"RouterDemoDetail",render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NCard,{title:this.$route.query.name||"hello"},{default:()=>[Vue.createTextVNode("你好 "),this.$route.query.name]}),Vue.createVNode(naive.NCard,{title:"平层路由详情页面"},{default:()=>[Vue.createTextVNode("我是平层路由详情页面")]}),Vue.createVNode(naive.NCard,{title:"TIP"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("1. 可以点击面包屑或者菜单返回到主页面")]),Vue.createVNode("h2",null,[Vue.createTextVNode("2. 如果这个页面需要配置多个详情页面,只需将该路由所在的 children 中,将所需页面配置为 sameLevel 即可。")])]})]})}});export{u as default}; diff --git a/js/index-BSxFfDS7.js b/js/index-BSxFfDS7.js deleted file mode 100644 index b0ea328c..00000000 --- a/js/index-BSxFfDS7.js +++ /dev/null @@ -1 +0,0 @@ -import{V as B,X as D,J as I,K,t as S,a1 as A}from"./hooks-DUpKDX8W.js";import{u as G}from"./utils-DvxnuKiq.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";function k(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const le=Vue.defineComponent({name:"TableView",setup(){const[u,{getTableInstance:n,clearFilters:r,clearSorter:i,scrollTo:d,filters:c,sort:s,downloadCsv:V,print:N}]=B(),p=[{type:"selection"},{title:"Name",key:"name",filterOptions:[{label:"John Brown",value:"John Brown"},{label:"Jim Green",value:"Jim Green"}],filter:(e,a)=>a.name.includes(e.toString())},{title:"Age",key:"age",sorter:(e,a)=>e.age-a.age},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:e=>e.tags.map(l=>Vue.createVNode(naive.NTag,{type:"info",bordered:!1,style:"margin-right: 6px"},k(l)?l:{default:()=>[l]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{size:"tiny"},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(A,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:a=>{window.$message.info(`当前选择: ${a}`)}},null)]})}],m=Vue.ref([...p].map((e,a)=>({...e}))),o=Vue.ref([]),f=[{label:"编辑",key:"edit"},{label:()=>Vue.createVNode("span",{style:"color: red;"},[Vue.createTextVNode("删除")]),key:"delete"}],v=Vue.reactive({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[y,{checkedRowKeysBind:h,getKeys:C,getRows:t,clearKey:g,clearAll:w,selectKey:b}]=D(o,m,{rowKey:"key",onChange:(e,a,l)=>{}}),T=()=>{for(let e=0;e<10;e++)o.value.push({key:G(),name:e%2===0?"John Brown":"Jim Green",age:e+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},x=e=>{window.$message.info(`${e}`)},F=()=>{const{key:e}=o.value[1];g(e)},E=()=>{o.value.map(a=>a.key).forEach(a=>b(a))},R=()=>{const{key:e}=o.value[1];b(e)};return T(),{...Vue.toRefs(v),tableData:o,actionColumns:m,baseColumns:p,tableMenuOptions:f,menuSelect:x,register:u,getKeys:C,getRows:t,clearKey:g,clearAll:w,checkedRowKeysBind:h,checkedRowKeys:y,clearSecondIndexRow:F,selectAll:E,selectSecondIndexRow:R,clearFilters:r,clearSorter:i,scrollTo:d,filters:c,sort:s,downloadCsv:V,getTableInstance:n,print:N}},render(){let u;const{register:n,clearAll:r,checkedRowKeysBind:i,clearSecondIndexRow:d,selectAll:c,selectSecondIndexRow:s,clearFilters:V,clearSorter:N,scrollTo:p,filters:m,sort:o,downloadCsv:f,getTableInstance:v,getRows:y,getKeys:h,print:C}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"RTable"},{default:()=>[Vue.createTextVNode("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),Vue.createVNode(naive.NCard,{title:"useTable"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,style:"width: 100%"},{default:()=>[Vue.createVNode(naive.NAlert,{title:"DataTable Methods",type:"info"},{default:()=>[Vue.createTextVNode("其余的方法查看")," ",Vue.createVNode("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[Vue.createTextVNode("Naive UI")]),Vue.createTextVNode("官网,保持一致。")]}),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:N.bind(this)},{default:()=>[Vue.createTextVNode("清除所有排序")]}),Vue.createVNode(naive.NButton,{onClick:V.bind(this)},{default:()=>[Vue.createTextVNode("清除所有过滤")]}),Vue.createVNode(naive.NButton,{onClick:()=>{f()}},{default:()=>[Vue.createTextVNode("下载 CSV")]}),Vue.createVNode(naive.NButton,{onClick:()=>v()},{default:()=>[Vue.createTextVNode("getTableInstance")]}),Vue.createVNode(naive.NButton,{onClick:()=>C()},{default:()=>[Vue.createTextVNode("打印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useCheckedRowKeys"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:c.bind(this)},{default:()=>[Vue.createTextVNode("选中所有行")]}),Vue.createVNode(naive.NButton,{onClick:r.bind(this)},{default:()=>[Vue.createTextVNode("取消所有已选中行")]}),Vue.createVNode(naive.NButton,{onClick:s.bind(this)},{default:()=>[Vue.createTextVNode("选中第二行")]}),Vue.createVNode(naive.NButton,{onClick:d.bind(this)},{default:()=>[Vue.createTextVNode("取消第二行选中")]})]}),Vue.createVNode(naive.NFlex,null,k(u=this.checkedRowKeys.map(t=>Vue.createVNode(naive.NTag,{type:"success",key:t},k(t)?t:{default:()=>[t]})))?u:{default:()=>[u]})]})]}),Vue.createVNode(I,{bordered:!1,collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateValue:t=>window.$message.info(`我是 RCollapseGrid 组件${t?"收起":"展开"}的回调函数`)},{action:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{type:"primary"},{default:()=>[Vue.createTextVNode("搜索")]}),Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("重置")]})]),default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NSelect,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NDatePicker,{type:"datetimerange",clearable:!0},null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]})])}),Vue.createVNode(K,{checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:i.bind(this),onRegister:n.bind(this),scrollX:1e3,title:Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode("span",null,[Vue.createTextVNode("标题插槽:")]),Vue.createVNode(naive.NSwitch,{onUpdateValue:t=>this.tableLoading=t},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":t=>this.actionColumns=t,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(S,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:t=>t.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{le as default}; diff --git a/js/index-BSxFfDS7.js.gz b/js/index-BSxFfDS7.js.gz deleted file mode 100644 index b4006205..00000000 Binary files a/js/index-BSxFfDS7.js.gz and /dev/null differ diff --git a/js/index-Bh2s1Ng2.js b/js/index-Bh2s1Ng2.js new file mode 100644 index 00000000..90da9b47 --- /dev/null +++ b/js/index-Bh2s1Ng2.js @@ -0,0 +1 @@ +import{R as s1}from"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import{e as w,g as n1,M as r1,f as y,h as S,i as H,j as O,k as p1,l as d1,R as E,m as h1,n as u1,D as f1,s as m1,o as v1,p as g1}from"./hooks-Dx3WCPci.js";import{d as u}from"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{Y as _1,Z as b1,_ as y1,$ as M1,a0 as w1,a1 as k1,a2 as A,a3 as z1,a4 as C1,q as N,a5 as $,M as F,Q as k,c as Z1,a6 as S1,a7 as H1,e as x1}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as f,j as z,b as a,w as V1,k as A1,n as P1,I as g,q as L1,t as I}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{g as U,c as B1,j as C,v as Z,k as Y,s as P,e as L,i as j1}from"./utils-CozJMALc.js";import{g as T1,d as D1,t as R1,f as O1}from"./lodash-es@4.17.21-CeZG2a4n.js";import{k as _,e as q,v as W}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./vue3-next-qrcode@2.0.10_typescript@5.2.2-jc-XBHxJ.js";import{C as E1}from"./clipboard@2.0.11-DheAgBlr.js";import{u as G}from"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import{c as J}from"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";import"./@vue_shared@3.5.12--5_uv9t5.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function l(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(i){if(i.ep)return;i.ep=!0;const s=l(i);fetch(i.href,s)}})();const N1=f({name:"GlobalProvider",setup(e,{expose:t}){const{getPrimaryColorOverride:l,getAppTheme:o,getLocaleLanguage:i}=w(),s=z(()=>{const n=i.value;return n1(n)}),c=()=>{const{message:n,notification:r,dialog:p,loadingBar:d}=C1(["message","dialog","notification","loadingBar"],{configProviderProps:z(()=>({theme:o.value?A:null}))});window.$dialog=p,window.$message=n,window.$loadingBar=d,window.$notification=r};return t(),{getPrimaryColorOverride:l,localePackage:s,getAppTheme:o,discreteApi:c}},render(){const{$slots:{default:e},discreteApi:t}=this,{getPrimaryColorOverride:l,getAppTheme:o,localePackage:i}=this;return a(z1,{themeOverrides:l,theme:o?A:null,locale:i.locale,dateLocale:i.dateLocal},{default:()=>[a(_1,null,{default:()=>[a(b1,r1,{default:()=>[a(y1,null,{default:()=>[a(M1,null,{default:()=>[a(w1,null,{default:()=>[a(k1,null,null),e==null?void 0:e(),t()]})]})]})]})]})]})}});var $1={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.7"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const F1=f({name:"AppStyleProvider",setup(e,{expose:t}){const{getAppTheme:l}=w(),o=()=>{const{appPrimaryColor:{primaryColor:c,primaryFadeColor:n}}=$1,r=document.body,p=U(y.appPiniaSettingStore,"localStorage");if(p){const d=T1(p,"primaryColorOverride.common.primaryColor",c),m=B1(d,.38);r.style.setProperty("--ray-theme-primary-color",d),r.style.setProperty("--ray-theme-primary-fade-color",m||n)}},i=()=>{const c=document.getElementById("pre-loading-animation");c&&C(c,{display:"none"})},s=c=>{const n=document.body,r="ray-template--dark",p="ray-template--light";c?Z(n,p):Z(n,r),Y(n,c?r:p)};o(),i(),V1(()=>l.value,c=>{s(c)},{immediate:!0}),t()},render(){return a("div",{class:"app-style-provider"},null)}}),K={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},M=()=>({lockPassword:null}),I1=f({name:"LockScreen",setup(){const e=_(null),t=_(null),{setLockAppScreen:l}=H(),{updateSettingState:o}=S(),i=q({lockCondition:M()}),s=()=>{var c;(c=e.value)==null||c.validate(n=>{n||(l(!0),o("lockScreenSwitch",!0),i.lockCondition=M())})};return A1(()=>{P1(()=>{var c;(c=t.value)==null||c.focus()})}),{...W(i),lockScreen:s,formInstRef:e,inputInstRef:t}},render(){return a("div",{class:"app-lock-screen__input"},[a(N,{ref:"formInstRef",model:this.lockCondition,rules:K,labelPlacement:"left"},{default:()=>[a($,{path:"lockPassword"},{default:()=>[a(F,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()}},null)]}),a(k,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[g("锁屏")]})]})])}}),U1=f({name:"UnlockScreen",setup(){const e=_(null),t=_(null),{logout:l}=O(),{updateSettingState:o}=S(),{setLockAppScreen:i}=H(),{isTabletOrSmaller:s}=p1(),c="HH:mm",n="A",r="YY年MM月DD日",p="ddd",d=q({lockCondition:M(),HH_MM:u().format(c),AM_PM:u().locale("en").format(n),YY_MM_DD:u().format(r),DDD:u().format(p)}),m=setInterval(()=>{d.HH_MM=u().format(c),d.AM_PM=u().format(n)},6e3),v=setInterval(()=>{d.YY_MM_DD=u().format(r),d.DDD=u().format(p)},864e5),b=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{l(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},c1=()=>{var V;(V=e.value)==null||V.validate(a1=>{a1||(i(!1),o("lockScreenSwitch",!1),d.lockCondition=M())})};return L1(()=>{clearInterval(m),clearInterval(v)}),{...W(d),backToSigning:b,unlockScreen:c1,formRef:e,inputInstRef:t,isTabletOrSmaller:s}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:t,AM_PM:l,YY_MM_DD:o,DDD:i}=this,s=t.split(":"),{unlockScreen:c,backToSigning:n}=this;return a("div",{class:"app-lock-screen__unlock"},[a("div",{class:"app-lock-screen__unlock__content"},[a("div",{class:"app-lock-screen__unlock__content-wrapper"},[a("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[a("div",{class:"left"},[s[0]]),a("div",{class:"right"},[s[1]])])]),a("div",{class:"app-lock-screen__unlock__content-avatar"},[a(d1,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),a("div",{class:"app-lock-screen__unlock__content-input"},[a(N,{ref:"formRef",model:this.lockCondition,rules:K},{default:()=>[a($,{path:"lockPassword"},{default:()=>[a(F,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":r=>this.lockCondition.lockPassword=r,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:r=>{r.code==="Enter"&&c()}},null)]}),a(Z1,{justify:"space-between"},{default:()=>[a(k,{type:"primary",text:!0,onClick:n.bind(this)},{default:()=>[g("返回登陆")]}),a(k,{type:"primary",text:!0,onClick:c.bind(this)},{default:()=>[g("进入系统")]})]})]})]),a("div",{class:"app-lock-screen__unlock__content-date"},[a("div",{class:"current-date"},[t,g(" "),a("span",null,[l])]),a("div",{class:"current-year"},[o,g(" "),a("span",null,[i])])])])])}}),Y1=f({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=H(),{updateSettingState:t}=S(),{getLockScreenSwitch:l}=w();return{lockScreenSwitchRef:z({get:()=>l.value,set:i=>{t("lockScreenSwitch",i)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return a(E,{show:this.lockScreenSwitchRef,"onUpdate:show":t=>this.lockScreenSwitchRef=t,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[a("div",{class:"app-lock-screen__content"},[e()?a(U1,null,null):a(I1,null,null)])]})}}),q1=f({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:t}=w();return{getWatermarkSwitch:e,getWatermarkConfig:t}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:t}=this;return t?a(S1,I({cross:!0,fullscreen:!0},e),null):null}}),W1=f({name:"GlobalSpin",props:{...H1},setup(){const e={opacitySpinning:"0.3"};return{spinValue:h1("globalSpinning"),overrides:e}},render(){return a(x1,I(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var G1={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.7"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const J1=f({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=G1,t=U(y.appVersionProvider,"localStorage"),l=_(!1),{logout:o}=O();return t!==null?e!==t&&(l.value=!0,P(y.appVersionProvider,e,"localStorage")):P(y.appVersionProvider,e,"localStorage"),{modalShow:l,logout:o}},render(){const{logout:e}=this;return a("div",{class:"app-style-provider"},[a(E,{show:this.modalShow,"onUpdate:show":t=>this.modalShow=t,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),X=f({name:"App",render(){return a(N1,null,{default:()=>[a(J1,null,null),a(Y1,null,null),a(F1,null,null),a(q1,null,null),a(W1,null,{default:()=>a(s1,null,null),description:()=>u1})]})}});if(typeof window<"u"){let e=function(){var t=document.body,l=document.getElementById("__svg__icons__dom__");l||(l=document.createElementNS("http://www.w3.org/2000/svg","svg"),l.style.position="absolute",l.style.width="0",l.style.height="0",l.id="__svg__icons__dom__",l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),l.innerHTML='',t.insertBefore(l,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const K1=()=>{u.locale(f1)},B=(e,t)=>{const l=new E1(e,{text:()=>t});e.$$clipboard=l,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},X1=()=>({mounted:(e,{value:t})=>{B(e,t)},updated:(e,{value:t,oldValue:l})=>{var o;t!==l&&((o=e.$$clipboard)==null||o.destroy(),B(e,t))},beforeUnmount:e=>{var t;e.$$clipboard&&((t=e.$$clipboard)==null||t.destroy(),e.$$clipboard=null)}}),Q1=Object.freeze(Object.defineProperty({__proto__:null,default:X1},Symbol.toStringTag,{value:"Module"})),e2=()=>{let e,t;return{beforeMount:(l,{value:o})=>{const{func:i,trigger:s="click",wait:c=500,options:n}=o;if(typeof i!="function")throw new TypeError("debounce directive value must be a function");e=D1(i,c,Object.assign({},n)),t=G(l,s,e)},beforeUnmount:(l,{value:o})=>{e&&(e.cancel(),t==null||t()),e=null}}},t2=Object.freeze(Object.defineProperty({__proto__:null,default:e2},Symbol.toStringTag,{value:"Module"})),j=(e,t)=>{if(e){const l="ray-template__directive--disabled";t?(e.setAttribute("disabled","disabled"),Y(e,l)):(e.removeAttribute("disabled"),Z(e,l)),e==null||e.setAttribute("disabled",t?"disabled":"")}},l2=()=>({mounted:(e,{value:t})=>{j(e,t)},updated:(e,{value:t,oldValue:l})=>{t!==l&&j(e,t)}}),i2=Object.freeze(Object.defineProperty({__proto__:null,default:l2},Symbol.toStringTag,{value:"Module"})),T=(e,t)=>{const{line:l=1,type:o="block",width:i,popoverText:s}=t;if(i==null){console.error(`[v-ellipsis]: Expected width is string or number, but got typeof ${i}!`);return}s&&e.textContent&&e.setAttribute("title",e.textContent),o==="line"?C(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l,overflow:"hidden",width:L(i)}):C(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:L(i)})},o2=()=>({mounted:(e,{value:t})=>{T(e,t)},updated:(e,{value:t})=>{T(e,t)}}),c2=Object.freeze(Object.defineProperty({__proto__:null,default:o2},Symbol.toStringTag,{value:"Module"})),h={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},a2="v-ripple__container";function D(e,t){e.style.transform=t}function Q(e){const t={},l=e.currentTarget;!(l!=null&&l.__d_ripple__)||l.__d_ripple__.touched||(t.center=l.__d_ripple__.centered,l.__d_ripple__.class&&(t.class=l.__d_ripple__.class),x.show(e,l,t))}function e1(e){const t=e.currentTarget;t!=null&&t.__d_ripple__&&(setTimeout(()=>{t.__d_ripple__&&(t.__d_ripple__.touched=!1)}),x.hide(t))}const s2=(e,t,l={})=>{var v;const o=t.getBoundingClientRect(),i=e.clientX-o.left,s=e.clientY-o.top;let c=0,n=.3;(v=t.__d_ripple__)!=null&&v.circle?(n=.15,c=t.clientWidth/2,c=l.center?c:c+Math.sqrt((i-c)**2+(s-c)**2)/4):c=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const r=`${(t.clientWidth-c*2)/2}px`,p=`${(t.clientHeight-c*2)/2}px`,d=l.center?r:`${i-c}px`,m=l.center?p:`${s-c}px`;return{radius:c,scale:n,x:d,y:m,centerX:r,centerY:p}},x={show(e,t,l={}){var b;if(!((b=t==null?void 0:t.__d_ripple__)!=null&&b.enabled))return;const o=document.createElement("span"),i=document.createElement("span");o.appendChild(i),o.className=a2,l.class&&(o.className+=` ${l.class}`);const{radius:s,scale:c,x:n,y:r,centerX:p,centerY:d}=s2(e,t,l),m=`${s*2}px`;i.className=h.vRippleAnimation,i.style.width=m,i.style.height=m,t.appendChild(o);const v=window.getComputedStyle(t);v&&v.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add(h.vRippleAnimationEnter),i.classList.add(h.vRippleAnimationVisible),D(i,`translate(${n}, ${r}) scale3d(${c},${c},${c})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove(h.vRippleAnimationEnter),i.classList.add(h.vRippleAnimationIn),D(i,`translate(${p}, ${d}) scale3d(1,1,1)`)},0)},hide(e){var s;if(!((s=e==null?void 0:e.__d_ripple__)!=null&&s.enabled))return;const t=e.getElementsByClassName(h.vRippleAnimation);if(t.length===0)return;const l=t[t.length-1];if(l.dataset.isHiding)return;l.dataset.isHiding="true";const o=performance.now()-Number(l.dataset.activated),i=Math.max(250-o,0);setTimeout(()=>{l.classList.remove(h.vRippleAnimationIn),l.classList.add(h.vRippleAnimationOut),setTimeout(()=>{var n;e.getElementsByClassName(h.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((n=l.parentNode)==null?void 0:n.parentNode)===e&&e.removeChild(l.parentNode)},300)},i)}};function t1(e){return typeof e>"u"||!!e}function l1(e){e.removeEventListener("pointerdown",Q),e.removeEventListener("pointerup",e1)}function R(e,t,l){const{value:o,modifiers:i}=t,s=t1(o);s||x.hide(e),e.__d_ripple__=e.__d_ripple__??{},e.__d_ripple__.enabled=s,e.__d_ripple__.centered=i.center,e.__d_ripple__.circle=i.circle,j1(o,"Object")&&o.class&&(e.__d_ripple__.class=o.class),s&&!l?(e.addEventListener("pointerdown",Q),e.addEventListener("pointerup",e1)):!s&&l&&l1(e)}const n2=()=>({mounted:(e,t)=>{R(e,t,!1)},beforeUnmount:e=>{delete e.__d_ripple__,l1(e)},updated:(e,t)=>{if(t.value===t.oldValue)return;const l=t1(t.oldValue);R(e,t,l)}}),r2=Object.freeze(Object.defineProperty({__proto__:null,default:n2},Symbol.toStringTag,{value:"Module"})),p2=()=>{let e;return{beforeMount:(t,{value:l})=>{const{func:o,trigger:i="click",wait:s=500,options:c}=l;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");e=R1(o,s,Object.assign({},c)),G(t,i,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},d2=Object.freeze(Object.defineProperty({__proto__:null,default:p2},Symbol.toStringTag,{value:"Module"})),h2=e=>Object.keys(e).reduce((l,o)=>{var s;const i=(s=e[o])==null?void 0:s.default;if(typeof i=="function")return l[o]=i,l;throw new TypeError(`directiveModules: ${o} is not function`)},{}),u2=e=>{const l=h2(Object.assign({"/src/directives/modules/copy/index.ts":Q1,"/src/directives/modules/debounce/index.ts":t2,"/src/directives/modules/disabled/index.ts":i2,"/src/directives/modules/ellipsis/index.ts":c2,"/src/directives/modules/ripple/index.ts":r2,"/src/directives/modules/throttle/index.ts":d2})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),i=/^([^-]+-)*[^-]+$/;O1(l,(s,c)=>{var r;const n=(r=c.match(o))==null?void 0:r[0];typeof n=="string"&&i.test(n)?e.directive(n,s()):console.error(`[setupDirectives] ${n} is not a valid directive name`)})},i1=async()=>{},o1=async e=>{m1(e),await v1(e),g1(e),K1(),u2(e)},f2=async()=>{const e=J(X);await o1(e),e.mount("#app"),await i1()},m2=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=J(X),await o1(e),e.mount("#app"),await i1()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?m2():f2(); diff --git a/js/index-Bh2s1Ng2.js.gz b/js/index-Bh2s1Ng2.js.gz new file mode 100644 index 00000000..adbec193 Binary files /dev/null and b/js/index-Bh2s1Ng2.js.gz differ diff --git a/js/index-Bpto_sNS.js b/js/index-Bpto_sNS.js deleted file mode 100644 index 7bbb75f8..00000000 --- a/js/index-Bpto_sNS.js +++ /dev/null @@ -1 +0,0 @@ -import{t as d,O as u}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const O=Vue.defineComponent({name:"SegmentDemo",setup(){const t=[{label:"这是一",key:"this is one"},{label:"这是二",key:"this is two"},{label:"这是三",key:"this is three"}],a=[...t,{label:"这是四",key:"this is four",slots:{default:()=>"我是自定义"}}],o=[...t,{label:"不许点",key:"disabled option",disabled:!0},{label:"popover",key:"popover",popover:"我是 popover"},{label:"popover options",key:"popover options",popover:{label:"我是配置项的 popover"}}],i=[{label:"设置",key:"setting",icon:Vue.createVNode(d,{name:"setting"},null)},{label:"刷新",key:"reload",icon:Vue.createVNode(d,{name:"reload"},null)},{label:"搜索",key:"search",icon:Vue.createVNode(d,{name:"search"},null),popover:"我是搜索"}],l=Vue.ref("this is three"),e=Vue.ref("medium"),n=Vue.ref("block");return{baseOptions:t,options:a,segmentValueOne:l,segmentChange:r=>{window.$message.info(String(r))},size:e,width:n,disabledOptions:o,iconOptions:i}},render(){const{options:t,baseOptions:a,disabledOptions:o,iconOptions:i}=this,{segmentChange:l}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{title:"警告⚠️",type:"warning"},{default:()=>[Vue.createTextVNode("n-tabs 默认情况下会从 slot 获取默认展示的 tab 值,因此会产生一个 vue slot 的 warning。如果你不想看到这个 warning,请设定一个 default-value。")]}),Vue.createVNode(naive.NAlert,{title:"已知问题",type:"warning"},{default:()=>[Vue.createTextVNode("由于 NTabs 设计缘故,手动设置 width 为 fitContent 后,配置了 disabled, popover 的配置项,会丢失过度效果。具体可以看下面的例子。"),Vue.createVNode("br",null,null),Vue.createTextVNode("解决方法,在该组件外层包一层 div,设置宽度,但是不能为 fit-content。")]}),Vue.createVNode(naive.NCard,{title:"分段器"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("该组件基于 NTabs + NTabPane 封装,所以保留了一些该组件的特性。")])]}),Vue.createVNode(naive.NGrid,{cols:2,xGap:8,yGap:12},{default:()=>[Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"基础非受控分段器"},{default:()=>[Vue.createVNode(u,{defaultValue:"this is two",options:a},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自定义分段器插槽"},{default:()=>[Vue.createVNode(u,{defaultValue:this.segmentValueOne,options:t},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"updateValue 事件"},{default:()=>[Vue.createVNode(u,{value:this.segmentValueOne,"onUpdate:value":e=>this.segmentValueOne=e,defaultValue:"this is two",options:o,onUpdateValue:l.bind(this),width:"block"},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自适应宽度"},{default:()=>[Vue.createVNode(u,{defaultValue:"setting",options:i,width:"block"},null)]})]}),Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"尺寸"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large"},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:this.size,"onUpdate:value":e=>this.size=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"small"},{default:()=>[Vue.createTextVNode("小")]}),Vue.createVNode(naive.NRadio,{value:"medium"},{default:()=>[Vue.createTextVNode("不小")]}),Vue.createVNode(naive.NRadio,{value:"large"},{default:()=>[Vue.createTextVNode("不太小")]})]}),Vue.createVNode(u,{defaultValue:"this is two",options:a,size:this.size,width:"block"},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"宽度"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large"},{default:()=>[Vue.createVNode(naive.NAlert,{title:"注意",type:"info"},{default:()=>[Vue.createTextVNode("RSegment 组件宽度默认为 fitContent,按照内容自适应宽度;如果需要自适应宽度,请设置 width 为 block;如果需要手动指定宽度请设置一个数字。")]}),Vue.createVNode(naive.NRadioGroup,{value:this.width,"onUpdate:value":e=>this.width=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"fitContent"},{default:()=>[Vue.createTextVNode("fitContent")]}),Vue.createVNode(naive.NRadio,{value:"block"},{default:()=>[Vue.createTextVNode("block")]}),Vue.createVNode(naive.NRadio,{value:800},{default:()=>[Vue.createTextVNode("800")]})]}),Vue.createVNode(u,{defaultValue:"this is two",options:o,width:this.width},null)]})]})]})]})]})}});export{O as default}; diff --git a/js/index-Bpto_sNS.js.gz b/js/index-Bpto_sNS.js.gz deleted file mode 100644 index ca940c85..00000000 Binary files a/js/index-Bpto_sNS.js.gz and /dev/null differ diff --git a/js/index-Br4Wy2RB.js b/js/index-Br4Wy2RB.js new file mode 100644 index 00000000..34df4194 --- /dev/null +++ b/js/index-Br4Wy2RB.js @@ -0,0 +1 @@ +import{C as r,E as A}from"./hooks-Dx3WCPci.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{N as u,c as m,Q as i,D as C}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as O,b as t,I as e}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as g,e as L,v as V}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const St=O({name:"REchart",setup(){const[n,{getChartInstance:f,dispose:l,render:d,isDisposed:p}]=A(),[c,{getChartInstance:s,dispose:F,render:y,isDisposed:B}]=A(),D=g(!1),E=g(!1),o=L({loading:!1,loading1:!1}),b={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},v={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},h=g({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),k=a=>{o.loading=a},w=a=>{E.value=a},S=()=>{p()?d():window.$message.warning("图表已渲染~")},x=()=>{l()},T=()=>{o.loading1=!0;const a=()=>Math.floor((Math.random()+1)*100);setTimeout(()=>{h.value.series[0].data=new Array(7).fill(0).map(()=>a()),h.value.series[1].data=new Array(7).fill(0).map(()=>a()),o.loading1=!1},1e3)};return{baseOptions:b,chartLoading:D,handleLoadingShow:k,chartAria:E,handleAriaShow:w,basePieOptions:v,baseLineOptions:h,...V(o),mountChart:S,unmountChart:x,updateChartOptions:T,register:n,register2:c,dispose2:F,render2:y,isDisposed2:B}},render(){const{register:n,register2:f,dispose2:l,render2:d,isDisposed2:p,loading1:c}=this;return t("div",{class:"echart"},[t(u,{title:"chart 组件"},{default:()=>[t("h3",null,[e("该组件基于 ECharts, Vueuse 封装。默认做了最佳的优化封装实践。")]),t("h3",null,[e("开箱即用的优化策略:节流更新图表、异步渲染、自动销毁、贴花、加载、主题、视窗区域渲染、自动更新尺寸等高级特性。")])]}),t(u,{title:"预设 card 风格图表"},{default:()=>[t(m,{style:["padding: 18px 0"]},{default:()=>[t(i,{onClick:this.mountChart.bind(this)},{default:()=>[e("渲染")]}),t(i,{onClick:this.unmountChart.bind(this)},{default:()=>[e("卸载")]}),t(i,{onClick:this.updateChartOptions.bind(this)},{default:()=>[e("更新配置项")]}),t(i,{onClick:()=>{this.loading1=!this.loading1}},{default:()=>[`${this.loading1?"关闭":"开启"}`,e("加载动画")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:n,title:"周销售量",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card",loading:c},null)])]}),t(u,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[t(m,{vertical:!0},{default:()=>[t(m,null,{default:()=>[t(i,{onClick:()=>{p()?d():window.$message.warning("不可以重复渲染图表~")}},{default:()=>[e("渲染")]}),t(i,{onClick:l.bind(this)},{default:()=>[e("卸载")]})]}),t("div",{class:"chart--container"},[t(r,{onRegister:f,autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]})]}),t(u,{title:"加载动画"},{default:()=>[t(C,{value:this.chartLoading,"onUpdate:value":s=>this.chartLoading=s,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),t("div",{class:"chart--container"},[t(r,{loading:this.loading,options:this.baseOptions},null)])]}),t(u,{title:"贴画可视化图"},{default:()=>[t(C,{value:this.chartAria,"onUpdate:value":s=>this.chartAria=s,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),t("div",{class:"chart--container"},[t(r,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{St as default}; diff --git a/js/index-Br4Wy2RB.js.gz b/js/index-Br4Wy2RB.js.gz new file mode 100644 index 00000000..15b15f90 Binary files /dev/null and b/js/index-Br4Wy2RB.js.gz differ diff --git a/js/index-Bt0hNJeI.js b/js/index-Bt0hNJeI.js new file mode 100644 index 00000000..248f36be --- /dev/null +++ b/js/index-Bt0hNJeI.js @@ -0,0 +1 @@ +import{F as f,G as h}from"./hooks-Dx3WCPci.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{a as F,ah as r,M as p,ag as v,ai as b,aj as y,ak as s,c as N,Q as l}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as k,b as t,I as i}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as d}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Ft=k({name:"RFormDemo",setup(){const[u,{getFormInstance:m,validate:o,restoreValidation:n,formModel:a,formRules:e}]=f({name:null,age:null,gender:null,date:null,remark:null},{name:{required:!0,message:"请输入姓名",trigger:["blur","change"]},date:{required:!0,message:"请选择日期",trigger:["blur","change"],type:"number"},gender:{required:!0,message:"请选择性别",trigger:"change"},age:{required:!0,message:"请输入年龄",trigger:["blur","change"],type:"number"}}),g=d(e()),c=d(a());return{register:u,rules:g,condition:c,restoreValidation:n,formModel:a,validate:o}},render(){const{rules:u}=this,{register:m,restoreValidation:o,formModel:n,validate:a}=this;return t(h,{onRegister:m,rules:u,model:this.condition},{default:()=>[t(F,{cols:24,xGap:24},{default:()=>[t(r,{label:"姓名",path:"name",span:12},{default:()=>[t(p,{value:this.condition.name,"onUpdate:value":e=>this.condition.name=e},null)]}),t(r,{label:"年龄",path:"age",span:12},{default:()=>[t(v,{value:this.condition.age,"onUpdate:value":e=>this.condition.age=e,showButton:!1,style:"width: 100%"},null)]}),t(r,{label:"出生日期",path:"date",span:12},{default:()=>[t(b,{value:this.condition.date,"onUpdate:value":e=>this.condition.date=e,style:"width: 100%"},null)]}),t(r,{label:"性别",path:"gender",span:12},{default:()=>[t(y,{value:this.condition.gender,"onUpdate:value":e=>this.condition.gender=e},{default:()=>[t(s,{value:"girl"},{default:()=>[i("女")]}),t(s,{value:"man"},{default:()=>[i("男")]})]})]}),t(r,{label:"备注信息",span:24},{default:()=>[t(p,{type:"textarea",value:this.condition.remark,"onUpdate:value":e=>this.condition.remark=e},null)]}),t(r,{span:24},{default:()=>[t(N,{justify:"flex-end",style:"width: 100%"},{default:()=>[t(l,{type:"info",onClick:()=>{this.condition=n(),o()}},{default:()=>[i("重置表单为初始状态")]}),t(l,{type:"warning",onClick:o.bind(this)},{default:()=>[i("移除校验状态")]}),t(l,{type:"primary",onClick:()=>a()},{default:()=>[i("校验")]})]})]})]})]})}});export{Ft as default}; diff --git a/js/index-Bt0hNJeI.js.gz b/js/index-Bt0hNJeI.js.gz new file mode 100644 index 00000000..9501604d Binary files /dev/null and b/js/index-Bt0hNJeI.js.gz differ diff --git a/js/index-BtZPyenx.js b/js/index-BtZPyenx.js deleted file mode 100644 index 265a9990..00000000 --- a/js/index-BtZPyenx.js +++ /dev/null @@ -1 +0,0 @@ -const u=Vue.defineComponent({name:"MultiMenuOne",setup(){return{inputValue:Vue.ref(null)}},render(){return Vue.createVNode("div",null,[Vue.createTextVNode("多级菜单-1"),Vue.createVNode(naive.NInput,{modelValue:this.inputValue,"onUpdate:modelValue":e=>this.inputValue=e},null)])}});export{u as default}; diff --git a/js/index-C-If8jHb.js b/js/index-C-If8jHb.js new file mode 100644 index 00000000..65a00549 --- /dev/null +++ b/js/index-C-If8jHb.js @@ -0,0 +1 @@ +import{l as f,b as u,I as e,O as t,W as l}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{N as i,c as a,ad as n,v as s,Q as r,ag as B,ae as p,M as d,D as E,q as m,a5 as h}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{e as v,k as A,v as D}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const M=f({name:"RDirective",setup(){const F=v({copyValueOne:"我是待复制内容区域一",copyValueTwo:"我是待复制内容区域二",throttleBtnClickCount:0,debounceBtnClickCount:0,disabledValue:!1}),C=A(2),o=c=>{F[c]++};return{...D(F),updateDemoValue:o,ellipsisLineClamp:C}},render(){return u(a,null,{default:()=>[u(i,{title:"指令"},{default:()=>[e("该页面展示如何使用已封装好的指令")]}),u(i,{title:"水波纹"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(n,{title:"modifiers",type:"info"},{default:()=>[e("你可以手动显示的声明水波纹效果,默认为 circle。你可以手动的声明为 center。")]}),u(n,{title:"vue template",type:"success"},{default:()=>[e('"v-ripple.center" 或者 "v-ripple.circle"。')]}),u(n,{title:"tsx",type:"success"},{default:()=>[JSON.stringify("v-ripple={[true, ['center']]}"),e(" 或者"),JSON.stringify("v-ripple={[true, ['circle']]}"),e("。")]}),u(a,null,{default:()=>[t(u(s,{type:"success",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(s,{type:"warning",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(s,{type:"error",size:"large"},{default:()=>[e("水波纹效果的Tag")]}),[[l("ripple")]]),t(u(r,{type:"info"},{default:()=>[e("水波纹效果的Button")]}),[[l("ripple")]]),t(u("div",{style:"height: 20px; line-height: 20px;text-align: center; border: 1px solid; padding: 6px;"},[e("原生元素绑定水波纹效果,并且手动绑定 modifiers 为 center")]),[[l("ripple"),!0,void 0,{center:!0}]])]})]})]}),u(i,{title:"文本省略"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(i,{title:"单行省略"},{default:()=>[t(u("div",null,[e("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[l("ellipsis"),{type:"block",width:"100px"}]])]}),u(i,{title:"多行省略"},{default:()=>[u(a,{vertical:!0,size:"large"},{default:()=>[u(n,{title:"注意",type:"warning"},{default:()=>[e("该方法基于非标准属性实现(-webkit-line-clamp),可能会有兼容性问题,所以请谨慎使用。 详情参考:"),u("a",{href:"https://caniuse.com/?search=line-clamp"},[e("can i use")])]}),t(u("div",null,[e("我是一段很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的文本。")]),[[l("ellipsis"),{type:"line",width:"100px",line:this.ellipsisLineClamp}]]),u(B,{value:this.ellipsisLineClamp,"onUpdate:value":F=>this.ellipsisLineClamp=F,min:1},null)]})]})]})]}),u(i,{title:"文本复制示例一"},{default:()=>[u(p,null,{default:()=>[u(d,{value:this.copyValueOne,"onUpdate:value":F=>this.copyValueOne=F},null),t(u(r,null,{default:()=>[e("复制")]}),[[l("copy"),this.copyValueOne]])]})]}),u(i,{title:"文本复制示例二"},{default:()=>[u(p,null,{default:()=>[u(d,{value:this.copyValueTwo,"onUpdate:value":F=>this.copyValueTwo=F},null),t(u(r,null,{default:()=>[e("复制")]}),[[l("copy"),this.copyValueTwo]])]})]}),u(i,{title:"节流"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u(r,null,{default:()=>[e("点击执行")]}),[[l("throttle"),{func:this.updateDemoValue.bind(null,"throttleBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),u("p",null,[e("我执行了"),this.throttleBtnClickCount,e("次")]),u("p",null,[e("该方法 3s 内仅会执行一次")])]})]}),u(i,{title:"防抖"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u(r,null,{default:()=>[e("点击执行")]}),[[l("debounce"),{func:this.updateDemoValue.bind(null,"debounceBtnClickCount"),trigger:"click",wait:3e3,options:{}}]]),u("p",null,[e("我执行了"),this.debounceBtnClickCount,e("次")]),u("p",null,[e("该方法将延迟 3s 执行")])]})]}),u(i,{title:"禁用"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(E,{value:this.disabledValue,"onUpdate:value":F=>this.disabledValue=F},{checked:()=>"取消",unchecked:()=>"禁用"}),u(i,{title:"描述"},{default:()=>[u("p",null,[e("该指令会强制禁用(通过 css 层面)禁用元素交互。但是 naive ui 组件提供了完整的 disabled 属性,所以在组件库有禁用需求时,直接调用组件库 disabled 属性即可。但是值得注意的是,该指令优先级最高,会覆盖组件 disabled 属性。")])]}),u(i,{title:"原生表单"},{default:()=>[t(u("form",null,[u("input",{type:"text",placeholder:"请输入"},null),u("button",null,[e("提交")])]),[[l("disabled"),this.disabledValue]])]}),u(i,{title:"文本内容"},{default:()=>[u(a,{vertical:!0},{default:()=>[t(u("p",null,[e("我是可以被禁用的文本内容")]),[[l("disabled"),this.disabledValue]])]})]}),u(i,{title:"naive 组件"},{default:()=>[u(a,{vertical:!0,justify:"start"},{default:()=>[t(u(m,null,{default:()=>[u(h,null,{default:()=>[u(d,null,null)]})]}),[[l("disabled"),this.disabledValue]]),t(u(r,null,{default:()=>[e("按钮")]}),[[l("disabled"),this.disabledValue]]),t(u(E,null,null),[[l("disabled"),this.disabledValue]])]})]})]})]})]})}});export{M as default}; diff --git a/js/index-C-If8jHb.js.gz b/js/index-C-If8jHb.js.gz new file mode 100644 index 00000000..49f6631d Binary files /dev/null and b/js/index-C-If8jHb.js.gz differ diff --git a/js/index-C2xNskF6.js b/js/index-C2xNskF6.js deleted file mode 100644 index cc97b2de..00000000 --- a/js/index-C2xNskF6.js +++ /dev/null @@ -1 +0,0 @@ -import{w as o,x as u,f as i}from"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{g as a}from"./utils-DvxnuKiq.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const s=Vue.defineComponent({name:"PageResult",props:{...naive.resultProps},setup(){const{router:e}=u();return{goBack:()=>{const{appMenuKey:r}=i,t=a(r,"sessionStorage",{defaultValue:""});t&&e.replace(t)}}},render(){const{goBack:e}=this;return Vue.createVNode("div",{class:"error-page"},[Vue.createVNode(naive.NResult,Vue.mergeProps(this.$props,{status:"500",title:"404 资源不存在",description:"小调皮你走错地方了"}),{...this.$slots,footer:()=>Vue.createVNode(naive.NFlex,{align:"center",justify:"center"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:o.bind(this,!0)},{default:()=>[Vue.createTextVNode("返回首页")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:e.bind(this)},{default:()=>[Vue.createTextVNode("返回上一页面")]})]})})])}}),T=Vue.defineComponent({name:"ErrorPage404",setup(){return{}},render(){return Vue.createVNode(s,{status:"404"},null)}});export{T as default}; diff --git a/js/index-C2xNskF6.js.gz b/js/index-C2xNskF6.js.gz deleted file mode 100644 index de62fe52..00000000 Binary files a/js/index-C2xNskF6.js.gz and /dev/null differ diff --git a/js/index-CCVgw_kY.js b/js/index-CCVgw_kY.js deleted file mode 100644 index c69b117e..00000000 --- a/js/index-CCVgw_kY.js +++ /dev/null @@ -1 +0,0 @@ -import{t as o}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{A as r}from"./index-43Sr2ZDd.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";function l(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const O=Vue.defineComponent({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("Vue3.x")]}),Vue.createVNode(naive.NTag,{type:"info"},{default:()=>[Vue.createTextVNode("React")]})]})},{label:"从事搬砖时长",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(o,{name:"ray",size:"22"},null),Vue.createTextVNode("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createTextVNode("如果有希望补充的功能可以在"),Vue.createVNode("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[Vue.createTextVNode("GitHub")]),Vue.createTextVNode("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let u,t;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,null,{header:()=>Vue.createVNode(o,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),Vue.createVNode(naive.NCard,{title:"个人介绍"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left",column:2},l(u=this.coverLetterOptions.map(e=>{let a;return Vue.createVNode(naive.NDescriptionsItem,{key:e.label,label:e.label,span:e==null?void 0:e.span},l(a=e.des())?a:{default:()=>[a]})}))?u:{default:()=>[u]})]}),Vue.createVNode(naive.NCard,{title:"项目介绍"},{default:()=>[Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("技术栈")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createVNode(naive.NFlex,null,l(t=this.technologyTagOptions.map(e=>Vue.createVNode(naive.NTag,{key:e.value,type:"info"},{default:()=>[e.label]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("项目介绍")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createTextVNode("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),Vue.createVNode(naive.NCard,{title:"友情链接"},{default:()=>[Vue.createVNode(r,null,null)]})]})}});export{O as default}; diff --git a/js/index-CCVgw_kY.js.gz b/js/index-CCVgw_kY.js.gz deleted file mode 100644 index 62209582..00000000 Binary files a/js/index-CCVgw_kY.js.gz and /dev/null differ diff --git a/js/index-CChanisz.js b/js/index-CChanisz.js new file mode 100644 index 00000000..01a6beca --- /dev/null +++ b/js/index-CChanisz.js @@ -0,0 +1 @@ +import{j as C,q as L,r as F,f as v,t as r,h as P,T,v as A}from"./hooks-Dx3WCPci.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{u as $}from"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import{s as f}from"./utils-CozJMALc.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{a5 as y,M as w,Q as q,q as z,O as G,l as I,c as l,a8 as b,i as V,a as D,b as S,N as Q,s as E,a9 as u,F as x}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as a,b as e,v as c,I as g,F as H}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as d,e as _,v as j}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{Q as B}from"./vue3-next-qrcode@2.0.10_typescript@5.2.2-jc-XBHxJ.js";import{L as U}from"./ray-dCjhX_JK.js";import{d as W}from"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import{A as K}from"./index-CnbvNhnT.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function M(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!c(t)}const X=a({name:"RSigning",setup(){const t=d(),{t:i}=F(),{signing:n}=C(),{getRootPath:o}=L(),s=d(!1),R=()=>({name:"Ray Admin",pwd:"123456"}),k=$(),p=d(R()),N={name:{required:!0,message:i("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:i("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:p,loginFormRef:t,handleLogin:()=>{var m;(m=t.value)==null||m.validate(O=>{O||(s.value=!0,n(p.value).then(h=>{h.code===0&&setTimeout(()=>{window.$message.success(`欢迎${p.value.name}登陆~`),f(v.token,"tokenValue","localStorage"),f(v.signing,h.data,"localStorage"),k.push(o.value),s.value=!1},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")}))})},rules:N,loading:s}},render(){let t;const{$t:i,loading:n}=this;return e(z,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[e(y,{label:i("views.login.index.Name"),path:"name"},{default:()=>[e(w,{value:this.signingForm.name,"onUpdate:value":o=>this.signingForm.name=o,placeholder:i("views.login.index.NamePlaceholder")},null)]}),e(y,{label:i("views.login.index.Password"),path:"pwd"},{default:()=>[e(w,{value:this.signingForm.pwd,"onUpdate:value":o=>this.signingForm.pwd=o,type:"password",showPasswordOn:"click",placeholder:i("views.login.index.PasswordPlaceholder"),onKeydown:o=>o.key==="Enter"&&this.handleLogin()},null)]}),e(q,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:n},M(t=i("views.login.index.Login"))?t:{default:()=>[t]})]})}}),Y=a({name:"RRegister",render(){return e(G,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),J=a({name:"QRCodeSigning",setup(){const t=_({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...j(t)}},render(){return e("div",{class:"qrcode-signing"},[e(B,{text:"ray template yes",size:200,logoImage:U},null)])}});function Z(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!c(t)}const ee=a({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:n=>{window.$message.info(`调用${n.tooltipLabel}`)}}},render(){let t;return e(l,{class:"sso-signing",align:"center"},Z(t=this.ssoSigningOptions.map(i=>e(I,{key:i.key},{trigger:()=>e(r,{name:i.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,i)},null),default:()=>i.tooltipLabel})))?t:{default:()=>[t]})}});var te={pkg:{dependencies:{"@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.7"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function ie(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!c(t)}const tt=a({name:"RLogin",setup(){const{layout:{copyright:t}}=te,i=_({tabsValue:"signing"}),{height:n,width:o}=W(),{updateLocale:s}=P();return{...j(i),windowHeight:n,updateLocale:s,copyright:t,windowWidth:o}},render(){let t;const{$t:i}=this;return e("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[e("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[e("div",{class:["login-wrapper__content"]},[e(l,{align:"center",class:"login-title__wrapper"},{default:()=>[e(r,{name:"ray",size:"48"},null),e(b,{class:"login-title",type:"info",size:28},{default:()=>[g("Ray Template")]})]}),e(l,{align:"center",class:"login-action__wrapper"},{default:()=>[e(T,null,null),e(V,{options:A,onSelect:n=>this.updateLocale(n),trigger:"click"},{default:()=>[e(r,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),e(D,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[e(S,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[e(l,{align:"center",vertical:!0},{default:()=>[e(r,{name:"login_bg",width:"368",height:"368"},null),e(b,{class:"login-title",type:"info",size:36},ie(t=i("views.login.index.RayTemplate"))?t:{default:()=>[t]})]})]}),e(S,{span:1,class:"login__right-wrapper"},{default:()=>[e(Q,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[e(E,{value:this.tabsValue,"onUpdate:value":n=>this.tabsValue=n,type:"line",animated:!0,size:"large"},{default:()=>e(H,null,[e(u,{tab:i("views.login.index.Signing"),name:"signing"},{default:()=>[e(X,null,null)]}),e(u,{tab:i("views.login.index.Register"),name:"register"},{default:()=>[e(Y,null,null)]}),e(u,{tab:i("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[e(J,null,null)]})])}),e(x,null,{default:()=>[g("其他登陆方式")]}),e(ee,null,null),e(x,null,{default:()=>[g("友情链接")]}),e(K,null,null)]})]})]}),e(l,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{tt as default}; diff --git a/js/index-CChanisz.js.gz b/js/index-CChanisz.js.gz new file mode 100644 index 00000000..bce9417a Binary files /dev/null and b/js/index-CChanisz.js.gz differ diff --git a/js/index-CPNbYLeV.js b/js/index-CPNbYLeV.js deleted file mode 100644 index cd8fe3ec..00000000 --- a/js/index-CPNbYLeV.js +++ /dev/null @@ -1 +0,0 @@ -var g={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^4.0.1","print-js":"^1.6.0",vue:"^3.5.6","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function a(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Vue.isVNode(t)}const V=Vue.defineComponent({name:"RelyAbout",setup(){const{pkg:t}=g,{dependencies:i,devDependencies:n,name:e,version:d}=t,c=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],l=Vue.ref([]),o=Vue.ref([]),v=[{name:"项目名称",label:e},{name:"版本信息",label:d},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],m=()=>{const s=r=>Object.keys(r).reduce((p,u)=>(p.push({name:u,relyVersion:r[u],relyAddress:""}),p),[]);l.value=s(i),o.value=s(n)},y=s=>{s.url&&window.open(s.url)};return Vue.onBeforeMount(()=>{m()}),{columns:c,dependenciesOptions:l,devDependenciesOptions:o,templateOptions:v,handleTagClick:y}},render(){let t,i,n;return Vue.createVNode("div",{class:"rely-about"},[Vue.createVNode(naive.NCard,{title:"关于项目"},{default:()=>[Vue.createTextVNode("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),Vue.createVNode(naive.NCard,{title:"项目信息"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(t=this.templateOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[Vue.createVNode(naive.NTag,Vue.mergeProps({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NCard,{title:"生产依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(i=this.dependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?i:{default:()=>[i]})]}),Vue.createVNode(naive.NCard,{title:"开发依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(n=this.devDependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{V as default}; diff --git a/js/index-CPNbYLeV.js.gz b/js/index-CPNbYLeV.js.gz deleted file mode 100644 index ef079420..00000000 Binary files a/js/index-CPNbYLeV.js.gz and /dev/null differ diff --git a/js/index-CXKTRpfx.js b/js/index-CXKTRpfx.js new file mode 100644 index 00000000..6f3f108d --- /dev/null +++ b/js/index-CXKTRpfx.js @@ -0,0 +1 @@ +import{Q as t}from"./vue3-next-qrcode@2.0.10_typescript@5.2.2-jc-XBHxJ.js";import{L as l}from"./ray-dCjhX_JK.js";import{N as r,c as e,Q as d}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as n,b as u,I as o}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as i}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const b=n({name:"RQRCodeDemo",setup(){const a=i("ray template yes"),m=i(),s=i();return{qrcodeText:a,qrcodeStatus:m,rayQRCodeRef:s}},render(){return u(e,null,{default:()=>[u(r,null,{default:()=>[u("h2",null,[o("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),u("h2",null,[o("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),u("h2",null,[o("具体使用请参考 props 配置项")])]}),u(r,{title:"基础二维码"},{default:()=>[u(e,null,{default:()=>[u(t,{text:"ray template yes"},null),u(t,{text:"ray template yes",logoImage:l},null),u(t,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),u(r,{title:"状态二维码"},{default:()=>[u(e,null,{default:()=>[u(t,{text:"ray template yes",logoImage:l,status:"error",onReload:()=>{window.$message.info("reload event")}},null),u(t,{text:"ray template yes",logoImage:l,status:"loading"},null)]})]}),u(r,{title:"监听内容变化"},{default:()=>[u(e,{vertical:!0},{default:()=>[u(e,null,{default:()=>[u(d,{onClick:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[o("更新二维码内容")]}),u(d,{onClick:()=>{var a;(a=this.rayQRCodeRef)==null||a.downloadQRCode()}},{default:()=>[o("下载二维码")]})]}),u(e,null,{default:()=>[u(t,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:l,ref:"rayQRCodeRef"},null),o("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{b as default}; diff --git a/js/index-CXKTRpfx.js.gz b/js/index-CXKTRpfx.js.gz new file mode 100644 index 00000000..c2219eb4 Binary files /dev/null and b/js/index-CXKTRpfx.js.gz differ diff --git a/js/index-CZvHIHEr.js b/js/index-CZvHIHEr.js deleted file mode 100644 index 2d8b041c..00000000 --- a/js/index-CZvHIHEr.js +++ /dev/null @@ -1 +0,0 @@ -import{H as e}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const b=Vue.defineComponent({name:"IframeDemo",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0,size:[20,20]},{default:()=>[Vue.createVNode(naive.NCard,{title:"naive ui(延迟加载)"},{default:()=>[Vue.createVNode(e,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),Vue.createVNode(naive.NCard,{title:"vue-hooks-plus(立即加载)"},{default:()=>[Vue.createVNode(e,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{b as default}; diff --git a/js/index-CZvHIHEr.js.gz b/js/index-CZvHIHEr.js.gz deleted file mode 100644 index fbc85b6e..00000000 Binary files a/js/index-CZvHIHEr.js.gz and /dev/null differ diff --git a/js/index-Cg1Whvge.js b/js/index-Cg1Whvge.js deleted file mode 100644 index e6ef199f..00000000 --- a/js/index-Cg1Whvge.js +++ /dev/null @@ -1 +0,0 @@ -const u=Vue.defineComponent({name:"MultiMenuTwoOne",setup(){return{inputValue:Vue.ref(null)}},render(){return Vue.createVNode("div",{style:{height:"var(--layout-content-height)"}},[Vue.createTextVNode("多级菜单2-2-1"),Vue.createVNode(naive.NInput,{modelValue:this.inputValue,"onUpdate:modelValue":e=>this.inputValue=e},null)])}});export{u as default}; diff --git a/js/index-CjTD2K12.js b/js/index-CjTD2K12.js new file mode 100644 index 00000000..77e2aa53 --- /dev/null +++ b/js/index-CjTD2K12.js @@ -0,0 +1 @@ +import{V as G,X as U,J as z,K as L,t as j,a1 as P}from"./hooks-Dx3WCPci.js";import{u as X}from"./utils-CozJMALc.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{N as D,c as n,ad as _,Q as u,v as S,b as r,H,M as F,ai as Q,D as Y,l as q}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as W,b as e,I as l,F as I,v as Z}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as x,e as ee,v as te}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function N(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!Z(i)}const Ye=W({name:"TableView",setup(){const[i,{getTableInstance:c,clearFilters:p,clearSorter:m,scrollTo:f,filters:C,sort:k,downloadCsv:y,print:b}]=G(),h=[{type:"selection"},{title:"Name",key:"name",filterOptions:[{label:"John Brown",value:"John Brown"},{label:"Jim Green",value:"Jim Green"}],filter:(t,a)=>a.name.includes(t.toString())},{title:"Age",key:"age",sorter:(t,a)=>t.age-a.age},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:t=>t.tags.map(d=>e(S,{type:"info",bordered:!1,style:"margin-right: 6px"},N(d)?d:{default:()=>[d]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:t=>e(n,{align:"center"},{default:()=>[e(u,{size:"tiny"},{default:()=>[l("查看")]}),e(P,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:a=>{window.$message.info(`当前选择: ${a}`)}},null)]})}],w=x([...h].map((t,a)=>({...t}))),s=x([]),g=[{label:"编辑",key:"edit"},{label:()=>e("span",{style:"color: red;"},[l("删除")]),key:"delete"}],E=ee({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[v,{checkedRowKeysBind:T,getKeys:R,getRows:o,clearKey:B,clearAll:A,selectKey:K}]=U(s,w,{rowKey:"key",onChange:(t,a,d)=>{}}),M=()=>{for(let t=0;t<10;t++)s.value.push({key:X(),name:t%2===0?"John Brown":"Jim Green",age:t+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},O=t=>{window.$message.info(`${t}`)},V=()=>{const{key:t}=s.value[1];B(t)},J=()=>{s.value.map(a=>a.key).forEach(a=>K(a))},$=()=>{const{key:t}=s.value[1];K(t)};return M(),{...te(E),tableData:s,actionColumns:w,baseColumns:h,tableMenuOptions:g,menuSelect:O,register:i,getKeys:R,getRows:o,clearKey:B,clearAll:A,checkedRowKeysBind:T,checkedRowKeys:v,clearSecondIndexRow:V,selectAll:J,selectSecondIndexRow:$,clearFilters:p,clearSorter:m,scrollTo:f,filters:C,sort:k,downloadCsv:y,getTableInstance:c,print:b}},render(){let i;const{register:c,clearAll:p,checkedRowKeysBind:m,clearSecondIndexRow:f,selectAll:C,selectSecondIndexRow:k,clearFilters:y,clearSorter:b,scrollTo:h,filters:w,sort:s,downloadCsv:g,getTableInstance:E,getRows:v,getKeys:T,print:R}=this;return e(n,{vertical:!0},{default:()=>[e(D,{title:"RTable"},{default:()=>[l("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),e(D,{title:"useTable"},{default:()=>[e(n,{vertical:!0,style:"width: 100%"},{default:()=>[e(_,{title:"DataTable Methods",type:"info"},{default:()=>[l("其余的方法查看")," ",e("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[l("Naive UI")]),l("官网,保持一致。")]}),e(n,null,{default:()=>[e(u,{onClick:b.bind(this)},{default:()=>[l("清除所有排序")]}),e(u,{onClick:y.bind(this)},{default:()=>[l("清除所有过滤")]}),e(u,{onClick:()=>{g()}},{default:()=>[l("下载 CSV")]}),e(u,{onClick:()=>E()},{default:()=>[l("getTableInstance")]}),e(u,{onClick:()=>R()},{default:()=>[l("打印")]})]})]})]}),e(D,{title:"useCheckedRowKeys"},{default:()=>[e(n,{vertical:!0},{default:()=>[e(n,null,{default:()=>[e(u,{onClick:C.bind(this)},{default:()=>[l("选中所有行")]}),e(u,{onClick:p.bind(this)},{default:()=>[l("取消所有已选中行")]}),e(u,{onClick:k.bind(this)},{default:()=>[l("选中第二行")]}),e(u,{onClick:f.bind(this)},{default:()=>[l("取消第二行选中")]})]}),e(n,null,N(i=this.checkedRowKeys.map(o=>e(S,{type:"success",key:o},N(o)?o:{default:()=>[o]})))?i:{default:()=>[i]})]})]}),e(z,{bordered:!1,collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateOpen:o=>window.$message.info(`我是 RCollapseGrid 组件${o?"收起":"展开"}的回调函数`)},{action:()=>e(I,null,[e(u,{type:"primary"},{default:()=>[l("搜索")]}),e(u,null,{default:()=>[l("重置")]})]),default:()=>e(I,null,[e(r,null,{default:()=>[e(H,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(Q,{type:"datetimerange",clearable:!0},null)]}),e(r,null,{default:()=>[e(F,null,null)]}),e(r,null,{default:()=>[e(F,null,null)]})])}),e(L,{checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":o=>this.checkedRowKeys=o,onUpdateCheckedRowKeys:m.bind(this),onRegister:c.bind(this),scrollX:1e3,title:e(n,{align:"center"},{default:()=>[e("span",null,[l("标题插槽:")]),e(Y,{onUpdateValue:o=>this.tableLoading=o},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":o=>this.actionColumns=o,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[e(q,null,{trigger:()=>e(j,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:o=>o.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{Ye as default}; diff --git a/js/index-CjTD2K12.js.gz b/js/index-CjTD2K12.js.gz new file mode 100644 index 00000000..9f398c52 Binary files /dev/null and b/js/index-CjTD2K12.js.gz differ diff --git a/js/index-CkpHVUoU.js b/js/index-CkpHVUoU.js new file mode 100644 index 00000000..46cb08a5 --- /dev/null +++ b/js/index-CkpHVUoU.js @@ -0,0 +1 @@ +import"./hooks-Dx3WCPci.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{s as n,g as l,o as c,A as f}from"./utils-CozJMALc.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{c as i,ae as u,af as a,M as m,Q as o,N as d}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as g,b as e,I as r}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as p}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const ne=g({name:"CacheDemo",setup(){const t=p("Ray"),s=p("ray:");return{nameValue:t,currentPrefix:s}},render(){return e(d,{title:"cache 工具包示例"},{default:()=>e(i,{vertical:!0},{default:()=>[e("h3",null,[r("点击 setStorage 按钮,设置缓存示例")]),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置缓存内容")]}),e(m,{value:this.nameValue,"onUpdate:value":t=>this.nameValue=t,placeholder:"请输入姓名"},null)]}),e(u,null,{default:()=>[e(a,null,{default:()=>[r("设置前缀")]}),e(m,{value:this.currentPrefix,"onUpdate:value":t=>this.currentPrefix=t,placeholder:"请输入前缀"},null)]})]}),action:()=>e(i,null,{default:()=>[e(o,{onClick:()=>{n("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[r("setStorage")]}),e(o,{onClick:()=>{const t=l("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${t}`)}},{default:()=>[r("getStorage")]}),e(o,{onClick:()=>{c("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[r("removeStorage")]}),e(o,{onClick:()=>{const t=f("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${t}`)}},{default:()=>[r("hasStorage")]})]})})}});export{ne as default}; diff --git a/js/index-CkpHVUoU.js.gz b/js/index-CkpHVUoU.js.gz new file mode 100644 index 00000000..b3771be4 Binary files /dev/null and b/js/index-CkpHVUoU.js.gz differ diff --git a/js/index-CmEUgXeH.js b/js/index-CmEUgXeH.js deleted file mode 100644 index 69b8c053..00000000 --- a/js/index-CmEUgXeH.js +++ /dev/null @@ -1 +0,0 @@ -import{B as d}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const A=Vue.defineComponent({name:"ContextMenuDemo",setup(){const e=Vue.ref(),o=Vue.ref(!1),u=Vue.ref([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:r,y:i,show:a,updateShow:t}=d(e);return{demoOneRef:e,demoOneShow:o,x:r,y:i,show:a,options:u,clickOutside:n=>{n.preventDefault(),t(!1)},updateShow:t}},render(){const{x:e,y:o,show:u}=this,{clickOutside:r,updateShow:i}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("默认点击元素外部会关闭菜单。")]),Vue.createVNode("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[Vue.createTextVNode("右击")])]})]}),Vue.createVNode(naive.NDropdown,{show:u,x:e,y:o,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,t)=>{window.$message.info(`选中了 ${t.label}`),i(!1)},onClickoutside:r.bind(this)},null)]})}});export{A as default}; diff --git a/js/index-CmEUgXeH.js.gz b/js/index-CmEUgXeH.js.gz deleted file mode 100644 index a5b9694e..00000000 Binary files a/js/index-CmEUgXeH.js.gz and /dev/null differ diff --git a/js/index-CnbvNhnT.js b/js/index-CnbvNhnT.js new file mode 100644 index 00000000..4cdca513 --- /dev/null +++ b/js/index-CnbvNhnT.js @@ -0,0 +1 @@ +import{l as n,b as e,t as s,v as i}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{x as r,T as c,c as p}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";function l(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!i(t)}const h=n({name:"AppShareLink",setup(){return{handleLinkClick:a=>{window.open(a.src)},avatarOptions:[{key:"ray-js-note",src:"https://note.youdao.com/s/ObWEe2BB",tooltip:"Ray的前端学习笔记",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-js-cover",src:"https://note.youdao.com/s/IC8xKPdB",tooltip:"Ray的面试题总结",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc",src:"https://xiaodaigua-ray.github.io/ray-template-doc/",tooltip:"Ray Template Doc",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"},{key:"ray-template-doc-out",src:"https://ray-template.yunkuangao.com/",tooltip:"Ray Template Doc (国内地址)",icon:"https://avatars.githubusercontent.com/u/51957438?v=4"}]}},render(){let t;return e(p,null,l(t=this.avatarOptions.map(o=>e(r,{key:o.key},{trigger:()=>e(c,s({round:!0,src:o.icon,style:["cursor: pointer"]},{onClick:this.handleLinkClick.bind(this,o)},{objectFit:"cover",size:24}),null),default:()=>o.tooltip})))?t:{default:()=>[t]})}});export{h as A}; diff --git a/js/index-CnbvNhnT.js.gz b/js/index-CnbvNhnT.js.gz new file mode 100644 index 00000000..3050de90 Binary files /dev/null and b/js/index-CnbvNhnT.js.gz differ diff --git a/js/index-CnxKNshD.js b/js/index-CnxKNshD.js new file mode 100644 index 00000000..d74328ef --- /dev/null +++ b/js/index-CnxKNshD.js @@ -0,0 +1 @@ +import{w as u,x as s,f as a}from"./hooks-Dx3WCPci.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{g as n}from"./utils-CozJMALc.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{aa as c,O as l,c as d,Q as i}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as p,b as t,t as f,I as e}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const g=p({name:"PageResult",props:{...c},setup(){const{router:r}=s();return{goBack:()=>{const{appMenuKey:m}=a,o=n(m,"sessionStorage",{defaultValue:""});o&&r.replace(o)}}},render(){const{goBack:r}=this;return t("div",{class:"error-page"},[t(l,f(this.$props,{status:"500",title:"404 资源不存在",description:"小调皮你走错地方了"}),{...this.$slots,footer:()=>t(d,{align:"center",justify:"center"},{default:()=>[t(i,{onClick:u.bind(this,!0)},{default:()=>[e("返回首页")]}),t(i,{type:"primary",onClick:r.bind(this)},{default:()=>[e("返回上一页面")]})]})})])}}),ct=p({name:"ErrorPage404",setup(){return{}},render(){return t(g,{status:"404"},null)}});export{ct as default}; diff --git a/js/index-CnxKNshD.js.gz b/js/index-CnxKNshD.js.gz new file mode 100644 index 00000000..c4ddad9d Binary files /dev/null and b/js/index-CnxKNshD.js.gz differ diff --git a/js/index-CthhD5N4.js b/js/index-CthhD5N4.js deleted file mode 100644 index 25a177da..00000000 --- a/js/index-CthhD5N4.js +++ /dev/null @@ -1 +0,0 @@ -import{a as u}from"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import{s as o}from"./instance-Mlryd73B.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./hooks-DUpKDX8W.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";function D(e,t){return u(()=>o(e),Object.assign({},t))}const p=e=>o({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),n=()=>o({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),H=Vue.defineComponent({name:"RAxios",setup(){const e=Vue.reactive({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:t,loading:a,run:r}=u(n,{throttleWait:1e3,manual:!0}),{data:l,loading:d,run:V}=u(n,{debounceWait:1e3,manual:!0}),{data:i,loading:c,run:s}=u(p,{throttleWait:1e3,manual:!0}),{data:m,loading:F,run:N}=D({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...Vue.toRefs(e),throttleDemoValue:t,throttleDemoLoading:a,throttleDemoRun:r,debounceDemoValue:l,debounceDemoLoading:d,debounceDemoRun:V,weatherDemoValue:i,weatherDemoLoading:c,weatherDemoRun:s,demoData:m,demoLoading:F,demoRun:N}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h1",null,[Vue.createTextVNode("请求")]),Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("useRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持配置化请求数据")]),Vue.createVNode("h2",null,[Vue.createTextVNode("useHookPlusRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useRequest 获取")]),Vue.createVNode(naive.NCard,{title:"请求函数"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),Vue.createVNode("h3",null,[Vue.createTextVNode("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),Vue.createVNode("h3",null,[Vue.createTextVNode("3.详情请查看文档")])]}),Vue.createVNode(naive.NCard,{title:"useRequest示例(手动触发)"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var e;return[Vue.createVNode(naive.NButton,{onClick:this.demoRun.bind(this)},{default:()=>[Vue.createTextVNode("获取数据")]}),Vue.createVNode("h3",null,[Vue.createTextVNode("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useHookPlusRequest 获取")]),Vue.createVNode(naive.NCard,{title:"节流"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("不论触发多少次,一秒钟之内仅会触发一次")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"防抖"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("一秒后才会执行,如果中途重新请求,则会重新计时")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"获取气候"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("该示例演示了如何根据动态值获取数据")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{H as default}; diff --git a/js/index-CthhD5N4.js.gz b/js/index-CthhD5N4.js.gz deleted file mode 100644 index 4a083e3a..00000000 Binary files a/js/index-CthhD5N4.js.gz and /dev/null differ diff --git a/js/index-Cw1cSW0X.js b/js/index-Cw1cSW0X.js new file mode 100644 index 00000000..b4a66304 --- /dev/null +++ b/js/index-Cw1cSW0X.js @@ -0,0 +1 @@ +import{N as m,R as i}from"./hooks-Dx3WCPci.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{N as o,c as a,Q as r}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as p,b as u,I as t}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{e as s,v as E}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const au=p({name:"ModalDemo",setup(){const l=s({modal1:!1,modal2:!1,modal3:!1}),{create:F}=m(),e=()=>{F({title:"卡片模态框",dad:!0,preset:"card",content:"我可以被拖拽的全屏card模态框",fullscreen:!0})},d=()=>{F({title:"模态框",content:"内容",preset:"dialog",dad:!0})};return{...E(l),createCardModal:e,createDialogModal:d}},render(){const{createCardModal:l,createDialogModal:F}=this;return u(a,{vertical:!0},{default:()=>[u(o,{title:"props"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h3",null,[t("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),u("h3",null,[t("fullscreen: 全屏模态框。")]),u("h3",null,[t("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),u(i,{show:this.modal1,"onUpdate:show":e=>this.modal1=e,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[t("我是全屏模态框,并且会自动启用滚动条。")]}),u(i,{show:this.modal2,"onUpdate:show":e=>this.modal2=e,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(i,{show:this.modal3,"onUpdate:show":e=>this.modal3=e,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[u("p",null,[t("我可以被拖拽")])]}),u(o,{title:"可拖拽模态框"},{default:()=>[u(r,{onClick:()=>this.modal2=!0},{default:()=>[t("卡片模态框")]}),u(r,{onClick:()=>this.modal3=!0},{default:()=>[t("对话框模态框")]})]}),u(o,{title:"全屏模态框"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h4",null,[t("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),u(r,{onClick:()=>this.modal1=!0},{default:()=>[t("打开")]})]})]}),u(o,{title:"手动设置宽度"},{default:()=>[u("h4",null,[t("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),u("h4",null,[t("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),u("h4",null,[t("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),u("h4",null,[t("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),u(o,{title:"重写 useModal"},{default:()=>[u(r,{onClick:l.bind(this)},{default:()=>[t("创建卡片模态框")]}),u(r,{onClick:F.bind(this)},{default:()=>[t("创建对话框模态框")]})]})]})}});export{au as default}; diff --git a/js/index-Cw1cSW0X.js.gz b/js/index-Cw1cSW0X.js.gz new file mode 100644 index 00000000..8470e884 Binary files /dev/null and b/js/index-Cw1cSW0X.js.gz differ diff --git a/js/index-CyTGAiVw.js b/js/index-CyTGAiVw.js new file mode 100644 index 00000000..53452cc0 --- /dev/null +++ b/js/index-CyTGAiVw.js @@ -0,0 +1 @@ +import{l as r,b as o,I as e}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as i}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{M as p}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const v=r({name:"MultiMenuOne",setup(){return{inputValue:i(null)}},render(){return o("div",null,[e("多级菜单-1"),o(p,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{v as default}; diff --git a/js/index-CyTGAiVw.js.gz b/js/index-CyTGAiVw.js.gz new file mode 100644 index 00000000..0d996f2b Binary files /dev/null and b/js/index-CyTGAiVw.js.gz differ diff --git a/js/index-D1YBALoT.js b/js/index-D1YBALoT.js deleted file mode 100644 index 37a9f955..00000000 --- a/js/index-D1YBALoT.js +++ /dev/null @@ -1 +0,0 @@ -import{N as r,R as a}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const g=Vue.defineComponent({name:"ModalDemo",setup(){const t=Vue.reactive({modal1:!1,modal2:!1,modal3:!1}),{create:e}=r(),u=()=>{e({title:"卡片模态框",dad:!0,preset:"card",content:"我可以被拖拽的全屏card模态框",fullscreen:!0})},o=()=>{e({title:"模态框",content:"内容",preset:"dialog",dad:!0})};return{...Vue.toRefs(t),createCardModal:u,createDialogModal:o}},render(){const{createCardModal:t,createDialogModal:e}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"props"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("fullscreen: 全屏模态框。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),Vue.createVNode(a,{show:this.modal1,"onUpdate:show":u=>this.modal1=u,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[Vue.createTextVNode("我是全屏模态框,并且会自动启用滚动条。")]}),Vue.createVNode(a,{show:this.modal2,"onUpdate:show":u=>this.modal2=u,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(a,{show:this.modal3,"onUpdate:show":u=>this.modal3=u,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(naive.NCard,{title:"可拖拽模态框"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>this.modal2=!0},{default:()=>[Vue.createTextVNode("卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:()=>this.modal3=!0},{default:()=>[Vue.createTextVNode("对话框模态框")]})]}),Vue.createVNode(naive.NCard,{title:"全屏模态框"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),Vue.createVNode(naive.NButton,{onClick:()=>this.modal1=!0},{default:()=>[Vue.createTextVNode("打开")]})]})]}),Vue.createVNode(naive.NCard,{title:"手动设置宽度"},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),Vue.createVNode(naive.NCard,{title:"重写 useModal"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:t.bind(this)},{default:()=>[Vue.createTextVNode("创建卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:e.bind(this)},{default:()=>[Vue.createTextVNode("创建对话框模态框")]})]})]})}});export{g as default}; diff --git a/js/index-D1YBALoT.js.gz b/js/index-D1YBALoT.js.gz deleted file mode 100644 index 043c8766..00000000 Binary files a/js/index-D1YBALoT.js.gz and /dev/null differ diff --git a/js/index-DCDj5HZ8.js b/js/index-DCDj5HZ8.js deleted file mode 100644 index 5256452e..00000000 --- a/js/index-DCDj5HZ8.js +++ /dev/null @@ -1 +0,0 @@ -import"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{s as u,g as r,o as a,A as o}from"./utils-DvxnuKiq.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const P=Vue.defineComponent({name:"CacheDemo",setup(){const e=Vue.ref("Ray"),t=Vue.ref("ray:");return{nameValue:e,currentPrefix:t}},render(){return Vue.createVNode(naive.NCard,{title:"cache 工具包示例"},{default:()=>Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("点击 setStorage 按钮,设置缓存示例")]),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置缓存内容")]}),Vue.createVNode(naive.NInput,{value:this.nameValue,"onUpdate:value":e=>this.nameValue=e,placeholder:"请输入姓名"},null)]}),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置前缀")]}),Vue.createVNode(naive.NInput,{value:this.currentPrefix,"onUpdate:value":e=>this.currentPrefix=e,placeholder:"请输入前缀"},null)]})]}),action:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{u("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[Vue.createTextVNode("setStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=r("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${e}`)}},{default:()=>[Vue.createTextVNode("getStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{a("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[Vue.createTextVNode("removeStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=o("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${e}`)}},{default:()=>[Vue.createTextVNode("hasStorage")]})]})})}});export{P as default}; diff --git a/js/index-DCDj5HZ8.js.gz b/js/index-DCDj5HZ8.js.gz deleted file mode 100644 index a8829e79..00000000 Binary files a/js/index-DCDj5HZ8.js.gz and /dev/null differ diff --git a/js/index-DHuxv_PD.js b/js/index-DHuxv_PD.js new file mode 100644 index 00000000..32a019d5 --- /dev/null +++ b/js/index-DHuxv_PD.js @@ -0,0 +1 @@ +import{t as d,O as o}from"./hooks-Dx3WCPci.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{l as h,b as u,I as t}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as m}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{ad as F,N as i,a as b,b as l,c as B,aj as f,ak as a}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const fu=h({name:"SegmentDemo",setup(){const s=[{label:"这是一",key:"this is one"},{label:"这是二",key:"this is two"},{label:"这是三",key:"this is three"}],n=[...s,{label:"这是四",key:"this is four",slots:{default:()=>"我是自定义"}}],p=[...s,{label:"不许点",key:"disabled option",disabled:!0},{label:"popover",key:"popover",popover:"我是 popover"},{label:"popover options",key:"popover options",popover:{label:"我是配置项的 popover"}}],r=[{label:"设置",key:"setting",icon:u(d,{name:"setting"},null)},{label:"刷新",key:"reload",icon:u(d,{name:"reload"},null)},{label:"搜索",key:"search",icon:u(d,{name:"search"},null),popover:"我是搜索"}],E=m("this is three"),e=m("medium"),C=m("block");return{baseOptions:s,options:n,segmentValueOne:E,segmentChange:A=>{window.$message.info(String(A))},size:e,width:C,disabledOptions:p,iconOptions:r}},render(){const{options:s,baseOptions:n,disabledOptions:p,iconOptions:r}=this,{segmentChange:E}=this;return u(B,{vertical:!0},{default:()=>[u(F,{title:"警告⚠️",type:"warning"},{default:()=>[t("n-tabs 默认情况下会从 slot 获取默认展示的 tab 值,因此会产生一个 vue slot 的 warning。如果你不想看到这个 warning,请设定一个 default-value。")]}),u(F,{title:"已知问题",type:"warning"},{default:()=>[t("由于 NTabs 设计缘故,手动设置 width 为 fitContent 后,配置了 disabled, popover 的配置项,会丢失过度效果。具体可以看下面的例子。"),u("br",null,null),t("解决方法,在该组件外层包一层 div,设置宽度,但是不能为 fit-content。")]}),u(i,{title:"分段器"},{default:()=>[u("h3",null,[t("该组件基于 NTabs + NTabPane 封装,所以保留了一些该组件的特性。")])]}),u(b,{cols:2,xGap:8,yGap:12},{default:()=>[u(l,{span:1},{default:()=>[u(i,{title:"基础非受控分段器"},{default:()=>[u(o,{defaultValue:"this is two",options:n},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自定义分段器插槽"},{default:()=>[u(o,{defaultValue:this.segmentValueOne,options:s},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"updateValue 事件"},{default:()=>[u(o,{value:this.segmentValueOne,"onUpdate:value":e=>this.segmentValueOne=e,defaultValue:"this is two",options:p,onUpdateValue:E.bind(this),width:"block"},null)]})]}),u(l,{span:1},{default:()=>[u(i,{title:"自适应宽度"},{default:()=>[u(o,{defaultValue:"setting",options:r,width:"block"},null)]})]}),u(l,{span:2},{default:()=>[u(i,{title:"尺寸"},{default:()=>[u(B,{vertical:!0,size:"large"},{default:()=>[u(f,{value:this.size,"onUpdate:value":e=>this.size=e},{default:()=>[u(a,{value:"small"},{default:()=>[t("小")]}),u(a,{value:"medium"},{default:()=>[t("不小")]}),u(a,{value:"large"},{default:()=>[t("不太小")]})]}),u(o,{defaultValue:"this is two",options:n,size:this.size,width:"block"},null)]})]})]}),u(l,{span:2},{default:()=>[u(i,{title:"宽度"},{default:()=>[u(B,{vertical:!0,size:"large"},{default:()=>[u(F,{title:"注意",type:"info"},{default:()=>[t("RSegment 组件宽度默认为 fitContent,按照内容自适应宽度;如果需要自适应宽度,请设置 width 为 block;如果需要手动指定宽度请设置一个数字。")]}),u(f,{value:this.width,"onUpdate:value":e=>this.width=e},{default:()=>[u(a,{value:"fitContent"},{default:()=>[t("fitContent")]}),u(a,{value:"block"},{default:()=>[t("block")]}),u(a,{value:800},{default:()=>[t("800")]})]}),u(o,{defaultValue:"this is two",options:p,width:this.width},null)]})]})]})]})]})}});export{fu as default}; diff --git a/js/index-DHuxv_PD.js.gz b/js/index-DHuxv_PD.js.gz new file mode 100644 index 00000000..0d1e81b0 Binary files /dev/null and b/js/index-DHuxv_PD.js.gz differ diff --git a/js/index-DKQ0UgNK.js b/js/index-DKQ0UgNK.js new file mode 100644 index 00000000..3272de70 --- /dev/null +++ b/js/index-DKQ0UgNK.js @@ -0,0 +1 @@ +import{K as p}from"./hooks-Dx3WCPci.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import{u as a}from"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{Q as n,c as m}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as u,b as o,I as s}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as l}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const pt=u({name:"RouterDemoHome",setup(){const r=a(),i=l([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:t=>o(m,{align:"center"},{default:()=>[o(n,{type:"info",text:!0,size:"tiny",onClick:()=>{r.push({path:"/router-demo/router-demo-detail",query:{name:t.name}})}},{default:()=>[s("详情")]})]})}]),e=[];for(let t=0;t<10;t++)e.push({name:"张三"+t,address:"New York No. 1 Lake Park",phone:"010-121212",key:t});return{dataSource:e,columns:i}},render(){return o(m,null,{default:()=>[o(p,{columns:this.columns,"onUpdate:columns":r=>this.columns=r,data:this.dataSource},null)]})}});export{pt as default}; diff --git a/js/index-DKQ0UgNK.js.gz b/js/index-DKQ0UgNK.js.gz new file mode 100644 index 00000000..42bc25f3 Binary files /dev/null and b/js/index-DKQ0UgNK.js.gz differ diff --git a/js/index-DQWUCipC.js b/js/index-DQWUCipC.js deleted file mode 100644 index 89b7429d..00000000 --- a/js/index-DQWUCipC.js +++ /dev/null @@ -1 +0,0 @@ -import{j as V,q as v,r as h,f as u,t as a,h as N,T as f,v as y}from"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{s as d}from"./utils-DvxnuKiq.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{Q as w}from"./vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js";import{L as b}from"./ray-dCjhX_JK.js";import{e as S}from"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import{A as x}from"./index-43Sr2ZDd.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";function _(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const R=Vue.defineComponent({name:"RSigning",setup(){const e=Vue.ref(),{t}=h(),{signing:i}=V(),{getRootPath:n}=v(),o=Vue.ref(!1),c=()=>({name:"Ray Admin",pwd:"123456"}),p=VueRouter.useRouter(),r=Vue.ref(c()),g={name:{required:!0,message:t("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:t("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:r,loginFormRef:e,handleLogin:()=>{var s;(s=e.value)==null||s.validate(m=>{m||(o.value=!0,i(r.value).then(l=>{l.code===0&&setTimeout(()=>{window.$message.success(`欢迎${r.value.name}登陆~`),d(u.token,"tokenValue","localStorage"),d(u.signing,l.data,"localStorage"),p.push(n.value),o.value=!1},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")}))})},rules:g,loading:o}},render(){let e;const{$t:t,loading:i}=this;return Vue.createVNode(naive.NForm,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Name"),path:"name"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.name,"onUpdate:value":n=>this.signingForm.name=n,placeholder:t("views.login.index.NamePlaceholder")},null)]}),Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Password"),path:"pwd"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.pwd,"onUpdate:value":n=>this.signingForm.pwd=n,type:"password",showPasswordOn:"click",placeholder:t("views.login.index.PasswordPlaceholder"),onKeydown:n=>n.key==="Enter"&&this.handleLogin()},null)]}),Vue.createVNode(naive.NButton,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:i},_(e=t("views.login.index.Login"))?e:{default:()=>[e]})]})}}),j=Vue.defineComponent({name:"RRegister",render(){return Vue.createVNode(naive.NResult,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),C=Vue.defineComponent({name:"QRCodeSigning",setup(){const e=Vue.reactive({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...Vue.toRefs(e)}},render(){return Vue.createVNode("div",{class:"qrcode-signing"},[Vue.createVNode(w,{text:"ray template yes",size:200,logoImage:b},null)])}});function k(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const F=Vue.defineComponent({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:i=>{window.$message.info(`调用${i.tooltipLabel}`)}}},render(){let e;return Vue.createVNode(naive.NFlex,{class:"sso-signing",align:"center"},k(e=this.ssoSigningOptions.map(t=>Vue.createVNode(naive.NPopover,{key:t.key},{trigger:()=>Vue.createVNode(a,{name:t.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,t)},null),default:()=>t.tooltipLabel})))?e:{default:()=>[e]})}});var L={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^4.0.1","print-js":"^1.6.0",vue:"^3.5.6","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function O(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ae=Vue.defineComponent({name:"RLogin",setup(){const{layout:{copyright:e}}=L,t=Vue.reactive({tabsValue:"signing"}),{height:i,width:n}=S(),{updateLocale:o}=N();return{...Vue.toRefs(t),windowHeight:i,updateLocale:o,copyright:e,windowWidth:n}},render(){let e;const{$t:t}=this;return Vue.createVNode("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[Vue.createVNode("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[Vue.createVNode("div",{class:["login-wrapper__content"]},[Vue.createVNode(naive.NFlex,{align:"center",class:"login-title__wrapper"},{default:()=>[Vue.createVNode(a,{name:"ray",size:"48"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:28},{default:()=>[Vue.createTextVNode("Ray Template")]})]}),Vue.createVNode(naive.NFlex,{align:"center",class:"login-action__wrapper"},{default:()=>[Vue.createVNode(f,null,null),Vue.createVNode(naive.NDropdown,{options:y,onSelect:i=>this.updateLocale(i),trigger:"click"},{default:()=>[Vue.createVNode(a,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NGrid,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[Vue.createVNode(naive.NGridItem,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",vertical:!0},{default:()=>[Vue.createVNode(a,{name:"login_bg",width:"368",height:"368"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:36},O(e=t("views.login.index.RayTemplate"))?e:{default:()=>[e]})]})]}),Vue.createVNode(naive.NGridItem,{span:1,class:"login__right-wrapper"},{default:()=>[Vue.createVNode(naive.NCard,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[Vue.createVNode(naive.NTabs,{value:this.tabsValue,"onUpdate:value":i=>this.tabsValue=i,type:"line",animated:!0,size:"large"},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Signing"),name:"signing"},{default:()=>[Vue.createVNode(R,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Register"),name:"register"},{default:()=>[Vue.createVNode(j,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[Vue.createVNode(C,null,null)]})])}),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("其他登陆方式")]}),Vue.createVNode(F,null,null),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("友情链接")]}),Vue.createVNode(x,null,null)]})]})]}),Vue.createVNode(naive.NFlex,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{ae as default}; diff --git a/js/index-DQWUCipC.js.gz b/js/index-DQWUCipC.js.gz deleted file mode 100644 index 10f6898c..00000000 Binary files a/js/index-DQWUCipC.js.gz and /dev/null differ diff --git a/js/index-DT33t_LC.js b/js/index-DT33t_LC.js deleted file mode 100644 index 911950e2..00000000 --- a/js/index-DT33t_LC.js +++ /dev/null @@ -1 +0,0 @@ -import{m as A,e as E,a2 as h,t as f,a3 as x,a4 as k,a5 as g,u as T,a6 as b}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const _=Vue.defineComponent({name:"TemplateHooks",setup(){const t=Vue.ref(""),a=A("layoutContentMaximize"),o=Vue.ref(E().getWatermarkConfig.value.content),n=Vue.ref("new"),{navigationTo:i}=x(),{maximize:r,isLayoutContentMaximized:l}=h(),{reload:d,openSpin:V,closeSpin:F}=k(),{showWatermark:c,hiddenWatermark:N,setWatermarkContent:m,toggleWatermark:C}=g(),{darkTheme:B,lightTheme:s,toggleTheme:u,getAppTheme:e}=T(),{hidden:p,show:v,update:D}=b();return{navigationTo:i,reload:d,currentMenuOption:t,maximize:r,maximizeRef:a,openSpin:V,closeSpin:F,showWatermark:c,hiddenWatermark:N,setWatermarkContent:m,watermark:o,toggleWatermark:C,darkTheme:B,lightTheme:s,toggleTheme:u,getAppTheme:e,isLayoutContentMaximized:l,badgeHidden:p,badgeShow:v,badgeUpdateLabel:D,badgeValue:n}},render(){const{navigationTo:t,reload:a,maximize:o,openSpin:n,closeSpin:i,showWatermark:r,hiddenWatermark:l,setWatermarkContent:d,toggleWatermark:V,darkTheme:F,lightTheme:c,toggleTheme:N,getAppTheme:m,isLayoutContentMaximized:C,badgeHidden:B,badgeShow:s,badgeUpdateLabel:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"接口说明"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),Vue.createVNode(naive.NCard,{title:"useBadge 菜单标记"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.badgeValue,"onUpdate:value":e=>this.badgeValue=e},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>B("/template-hooks")},{default:()=>[Vue.createTextVNode("隐藏当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>s("/template-hooks")},{default:()=>[Vue.createTextVNode("显示当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>u("/template-hooks",{label:this.badgeValue})},{default:()=>[Vue.createTextVNode("更新当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:Vue.createVNode(f,{name:"error",size:"18"},null)})}},{default:()=>[Vue.createTextVNode("添加标记图标")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[Vue.createTextVNode("隐藏标记图标")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useTheme 主题"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("getAppTheme 获取当前主题色: "),m().themeLabel]),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>F()},{default:()=>[Vue.createTextVNode("切换暗黑主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>c()},{default:()=>[Vue.createTextVNode("切换明亮主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>N()},{default:()=>[Vue.createTextVNode("切换主题")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useWatermark 水印"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.watermark,"onUpdate:value":e=>this.watermark=e,onInput:e=>{d(e)}},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>r()},{default:()=>[Vue.createTextVNode("显示水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>l()},{default:()=>[Vue.createTextVNode("隐藏水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>V()},{default:()=>[Vue.createTextVNode("切换水印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useSpinning"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{a()}},{default:()=>[Vue.createTextVNode("刷新(强制刷新)")]}),Vue.createVNode(naive.NButton,{onClick:()=>{n(),setTimeout(()=>{i()},800)}},{default:()=>[Vue.createTextVNode("触发加载动画(不强制刷新)")]})]})]}),Vue.createVNode(naive.NCard,{title:"useMaximize 内容区域最大化"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("isLayoutContentMaximized 检测当前内容区域是否最大化:"),C?"最大化":"正常尺寸"]),Vue.createVNode(naive.NButton,{onClick:()=>{o(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[Vue.createTextVNode("最大化内容区域,并且滚动至顶部")]})]}),Vue.createVNode(naive.NCard,{title:"useAppNavigation 导航方法"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NButton,{onClick:()=>t("/multi/multi-menu-one")},{default:()=>[Vue.createTextVNode("跳转至多级菜单")]})]})]})}});export{_ as default}; diff --git a/js/index-DT33t_LC.js.gz b/js/index-DT33t_LC.js.gz deleted file mode 100644 index 45e21ddb..00000000 Binary files a/js/index-DT33t_LC.js.gz and /dev/null differ diff --git a/js/index-DU0AD4bw.js b/js/index-DU0AD4bw.js deleted file mode 100644 index f36b0757..00000000 --- a/js/index-DU0AD4bw.js +++ /dev/null @@ -1 +0,0 @@ -import{Q as e}from"./vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js";import{L as t}from"./ray-dCjhX_JK.js";const l=Vue.defineComponent({name:"RQRCodeDemo",setup(){const u=Vue.ref("ray template yes"),a=Vue.ref(),o=Vue.ref();return{qrcodeText:u,qrcodeStatus:a,rayQRCodeRef:o}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),Vue.createVNode("h2",null,[Vue.createTextVNode("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),Vue.createVNode("h2",null,[Vue.createTextVNode("具体使用请参考 props 配置项")])]}),Vue.createVNode(naive.NCard,{title:"基础二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes"},null),Vue.createVNode(e,{text:"ray template yes",logoImage:t},null),Vue.createVNode(e,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),Vue.createVNode(naive.NCard,{title:"状态二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes",logoImage:t,status:"error",onReload:()=>{window.$message.info("reload event")}},null),Vue.createVNode(e,{text:"ray template yes",logoImage:t,status:"loading"},null)]})]}),Vue.createVNode(naive.NCard,{title:"监听内容变化"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[Vue.createTextVNode("更新二维码内容")]}),Vue.createVNode(naive.NButton,{onClick:()=>{var u;(u=this.rayQRCodeRef)==null||u.downloadQRCode()}},{default:()=>[Vue.createTextVNode("下载二维码")]})]}),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:t,ref:"rayQRCodeRef"},null),Vue.createTextVNode("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{l as default}; diff --git a/js/index-DU0AD4bw.js.gz b/js/index-DU0AD4bw.js.gz deleted file mode 100644 index d1fe7aa6..00000000 Binary files a/js/index-DU0AD4bw.js.gz and /dev/null differ diff --git a/js/index-DWx8AyMg.js b/js/index-DWx8AyMg.js new file mode 100644 index 00000000..8971e515 --- /dev/null +++ b/js/index-DWx8AyMg.js @@ -0,0 +1 @@ +import{a as r}from"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import{s as n}from"./instance-nIExQa9a.js";import{c as l,N as o,Q as A,M as i,X as g}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as V,b as u,I as t}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{e as v,v as R}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./axios@1.7.5-C8DqakIB.js";import"./hooks-Dx3WCPci.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function b(e,a){return r(()=>n(e),Object.assign({},a))}const w=e=>n({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),d=()=>n({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),vu=V({name:"RAxios",setup(){const e=v({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:a,loading:m,run:p}=r(d,{throttleWait:1e3,manual:!0}),{data:s,loading:D,run:F}=r(d,{debounceWait:1e3,manual:!0}),{data:h,loading:c,run:E}=r(w,{throttleWait:1e3,manual:!0}),{data:B,loading:C,run:f}=b({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...R(e),throttleDemoValue:a,throttleDemoLoading:m,throttleDemoRun:p,debounceDemoValue:s,debounceDemoLoading:D,debounceDemoRun:F,weatherDemoValue:h,weatherDemoLoading:c,weatherDemoRun:E,demoData:B,demoLoading:C,demoRun:f}},render(){return u(g,null,{default:()=>[u(l,{vertical:!0},{default:()=>[u("h1",null,[t("请求")]),u(o,null,{default:()=>[u("h2",null,[t("useRequest")]),u("p",null,[t("支持配置化请求数据")]),u("h2",null,[t("useHookPlusRequest")]),u("p",null,[t("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),u("h1",null,[t("使用 useRequest 获取")]),u(o,{title:"请求函数"},{default:()=>[u("h3",null,[t("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),u("h3",null,[t("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),u("h3",null,[t("3.详情请查看文档")])]}),u(o,{title:"useRequest示例(手动触发)"},{default:()=>[u(l,{vertical:!0},{default:()=>{var e;return[u(A,{onClick:this.demoRun.bind(this)},{default:()=>[t("获取数据")]}),u("h3",null,[t("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),u("h1",null,[t("使用 useHookPlusRequest 获取")]),u(o,{title:"节流"},{default:()=>[u(l,{vertical:!0},{default:()=>[u(i,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),u("h3",null,[t("不论触发多少次,一秒钟之内仅会触发一次")]),u("h3",null,[t("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"防抖"},{default:()=>[u(l,{vertical:!0},{default:()=>[u(i,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),u("h3",null,[t("一秒后才会执行,如果中途重新请求,则会重新计时")]),u("h3",null,[t("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),u(o,{title:"获取气候"},{default:()=>[u(l,{vertical:!0},{default:()=>[u(i,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),u("h3",null,[t("该示例演示了如何根据动态值获取数据")]),u("h3",null,[t("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{vu as default}; diff --git a/js/index-DWx8AyMg.js.gz b/js/index-DWx8AyMg.js.gz new file mode 100644 index 00000000..c74d9a1d Binary files /dev/null and b/js/index-DWx8AyMg.js.gz differ diff --git a/js/index-DbJuBYMf.js b/js/index-DbJuBYMf.js deleted file mode 100644 index 58e4b317..00000000 --- a/js/index-DbJuBYMf.js +++ /dev/null @@ -1 +0,0 @@ -import{t as s,_ as o}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";function c(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!Vue.isVNode(i)}const w=Vue.defineComponent({name:"PreviewSVGIcons",setup(){const i=Vue.ref([]);return Object.keys(Object.assign({"/src/icons/action/draggable.svg":()=>o(()=>import("./draggable-D6qza0mp.js"),[]),"/src/icons/action/fullscreen.svg":()=>o(()=>import("./fullscreen-Cjm0bPGx.js"),[]),"/src/icons/action/fullscreen_fold.svg":()=>o(()=>import("./fullscreen_fold-BUWP5JFn.js"),[]),"/src/icons/action/out.svg":()=>o(()=>import("./out-CMQCc625.js"),[]),"/src/icons/action/reload.svg":()=>o(()=>import("./reload-BCsJCBo-.js"),[]),"/src/icons/action/search.svg":()=>o(()=>import("./search-DPR73sQp.js"),[]),"/src/icons/action/setting.svg":()=>o(()=>import("./setting-CqYm8XBn.js"),[]),"/src/icons/directional/adjustment.svg":()=>o(()=>import("./adjustment-DIo_g8Za.js"),[]),"/src/icons/directional/close_left.svg":()=>o(()=>import("./close_left-C6k2eGWg.js"),[]),"/src/icons/directional/close_right.svg":()=>o(()=>import("./close_right-CrnE5vtw.js"),[]),"/src/icons/directional/expanded.svg":()=>o(()=>import("./expanded-BswQDJyW.js"),[]),"/src/icons/directional/left_arrow.svg":()=>o(()=>import("./left_arrow-DAKeumRT.js"),[]),"/src/icons/directional/lock.svg":()=>o(()=>import("./lock-dC7sQfx2.js"),[]),"/src/icons/directional/resize_h.svg":()=>o(()=>import("./resize_h-DA2p7YCQ.js"),[]),"/src/icons/directional/right_arrow.svg":()=>o(()=>import("./right_arrow-CbmroMoE.js"),[]),"/src/icons/directional/row_end.svg":()=>o(()=>import("./row_end-CqbNhb3G.js"),[]),"/src/icons/directional/row_head.svg":()=>o(()=>import("./row_head-BCxi2x-p.js"),[]),"/src/icons/logo/github.svg":()=>o(()=>import("./github-B4ARmChV.js"),[]),"/src/icons/logo/google.svg":()=>o(()=>import("./google-GEcrFhWr.js"),[]),"/src/icons/logo/login_bg.svg":()=>o(()=>import("./login_bg-CRcyXHBf.js"),[]),"/src/icons/logo/office.svg":()=>o(()=>import("./office-B5pC1KGi.js"),[]),"/src/icons/logo/ray.svg":()=>o(()=>import("./ray-B93BjtIh.js"),[]),"/src/icons/logo/twitter.svg":()=>o(()=>import("./twitter-DjE7U1HD.js"),[]),"/src/icons/template/dark.svg":()=>o(()=>import("./dark-BqsidBpX.js"),[]),"/src/icons/template/light.svg":()=>o(()=>import("./light-DWbddXnY.js"),[]),"/src/icons/tip/axios.svg":()=>o(()=>import("./axios-o8g4A-7A.js"),[]),"/src/icons/tip/close.svg":()=>o(()=>import("./close-10SEVxdb.js"),[]),"/src/icons/tip/dashboard.svg":()=>o(()=>import("./dashboard-70op-CO0.js"),[]),"/src/icons/tip/echart.svg":()=>o(()=>import("./echart-c_3t778P.js"),[]),"/src/icons/tip/enter.svg":()=>o(()=>import("./enter-CPGcsJ25.js"),[]),"/src/icons/tip/error.svg":()=>o(()=>import("./error-CjWalrOZ.js"),[]),"/src/icons/tip/export_excel.svg":()=>o(()=>import("./export_excel-ZmNoLzCr.js"),[]),"/src/icons/tip/language.svg":()=>o(()=>import("./language-C4AMs4_p.js"),[]),"/src/icons/tip/menu.svg":()=>o(()=>import("./menu-CPMkWw77.js"),[]),"/src/icons/tip/more.svg":()=>o(()=>import("./more-DW-qndwg.js"),[]),"/src/icons/tip/mouse.svg":()=>o(()=>import("./mouse-C_l6KSTs.js"),[]),"/src/icons/tip/other.svg":()=>o(()=>import("./other-DU6bZUrM.js"),[]),"/src/icons/tip/print.svg":()=>o(()=>import("./print-jFo_n0lx.js"),[]),"/src/icons/tip/rely.svg":()=>o(()=>import("./rely-DlDUQEbT.js"),[]),"/src/icons/tip/table.svg":()=>o(()=>import("./table-tYkftQGA.js"),[])})).forEach(e=>{var t;const r=(t=e.match(/\/(\w+)\.svg/))==null?void 0:t[1];r&&i.value.push(r)}),{icons:i}},render(){return Vue.createVNode(naive.NCard,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let i;return Vue.createVNode(naive.NFlex,null,c(i=this.icons.map(_=>Vue.withDirectives(Vue.createVNode("div",{class:"pre-view-icons__card",key:_},[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(s,{name:_,size:"56",cursor:"pointer"},null),default:()=>_})]),[[Vue.resolveDirective("copy"),``]])))?i:{default:()=>[i]})}})}});export{w as default}; diff --git a/js/index-DbJuBYMf.js.gz b/js/index-DbJuBYMf.js.gz deleted file mode 100644 index 8835154c..00000000 Binary files a/js/index-DbJuBYMf.js.gz and /dev/null differ diff --git a/js/index-DbiAk4nh.js b/js/index-DbiAk4nh.js deleted file mode 100644 index d429bd19..00000000 --- a/js/index-DbiAk4nh.js +++ /dev/null @@ -1 +0,0 @@ -import{I as c,J as p,K as V}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import{a as F}from"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import{s as E}from"./instance-Mlryd73B.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const N=u=>E({url:"/api/list",method:"get",params:u}),q=Vue.defineComponent({name:"MockDemo",setup(){const u=[{type:"selection",multiple:!0},{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:o=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[Vue.createTextVNode("编辑")]}),Vue.createVNode(naive.NButton,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[Vue.createTextVNode("删除")]})]})}],e=Vue.reactive({email:null}),[r,{getPage:t,getPageSize:a,setItemCount:i,getCallback:n,setPage:g,setPageSize:C}]=c(()=>{m({page:t(),pageSize:a(),email:e.email})}),{data:l,loading:d,run:m}=F(N,{defaultParams:[{page:t(),pageSize:a(),email:e.email}],onSuccess:o=>{const{total:s}=o;i(s)}});return{personData:l,personLoading:d,columns:u,...Vue.toRefs(e),getCallback:n,paginationRef:r}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var u;return[Vue.createVNode(naive.NCard,{title:"Mock 数据"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),Vue.createVNode(naive.NCard,{title:"提示"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),Vue.createVNode(naive.NForm,{labelPlacement:"left"},{default:()=>[Vue.createVNode(p,{bordered:!1,cols:3},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NFormItemGi,{label:"邮箱"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.email,"onUpdate:value":e=>this.email=e,clearable:!0},null)]})]),action:()=>{var e;return Vue.createVNode(naive.NButton,{type:"primary",onClick:(e=this.getCallback)==null?void 0:e.bind(this)},{default:()=>[Vue.createTextVNode("搜索")]})}})]}),Vue.createVNode(V,{title:"Mock数据表格",data:(u=this.personData)==null?void 0:u.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":e=>this.columns=e,pagination:this.paginationRef,remote:!0,rowKey:e=>e.id},null)]}})}});export{q as default}; diff --git a/js/index-DbiAk4nh.js.gz b/js/index-DbiAk4nh.js.gz deleted file mode 100644 index c2697b20..00000000 Binary files a/js/index-DbiAk4nh.js.gz and /dev/null differ diff --git a/js/index-DhmVa7aC.js b/js/index-DhmVa7aC.js new file mode 100644 index 00000000..d01c8f99 --- /dev/null +++ b/js/index-DhmVa7aC.js @@ -0,0 +1 @@ +import{m as z,e as W,a2 as w,t as S,a3 as V,a4 as M,a5 as N,u as L,a6 as y}from"./hooks-Dx3WCPci.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{N as i,c as a,M as b,Q as t}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as I,b as u,I as e}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as g}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const Vu=I({name:"TemplateHooks",setup(){const r=g(""),m=z("layoutContentMaximize"),n=g(W().getWatermarkConfig.value.content),F=g("new"),{navigationTo:p}=V(),{maximize:s,isLayoutContentMaximized:d}=w(),{reload:C,openSpin:B,closeSpin:D}=M(),{showWatermark:A,hiddenWatermark:E,setWatermarkContent:h,toggleWatermark:c}=N(),{darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:o}=L(),{hidden:T,show:v,update:x}=y();return{navigationTo:p,reload:C,currentMenuOption:r,maximize:s,maximizeRef:m,openSpin:B,closeSpin:D,showWatermark:A,hiddenWatermark:E,setWatermarkContent:h,watermark:n,toggleWatermark:c,darkTheme:f,lightTheme:k,toggleTheme:l,getAppTheme:o,isLayoutContentMaximized:d,badgeHidden:T,badgeShow:v,badgeUpdateLabel:x,badgeValue:F}},render(){const{navigationTo:r,reload:m,maximize:n,openSpin:F,closeSpin:p,showWatermark:s,hiddenWatermark:d,setWatermarkContent:C,toggleWatermark:B,darkTheme:D,lightTheme:A,toggleTheme:E,getAppTheme:h,isLayoutContentMaximized:c,badgeHidden:f,badgeShow:k,badgeUpdateLabel:l}=this;return u(a,{vertical:!0},{default:()=>[u(i,{title:"接口说明"},{default:()=>[u("h3",null,[e("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),u(i,{title:"useBadge 菜单标记"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(b,{value:this.badgeValue,"onUpdate:value":o=>this.badgeValue=o},null),u(a,null,{default:()=>[u(t,{onClick:()=>f("/template-hooks")},{default:()=>[e("隐藏当前菜单标记")]}),u(t,{onClick:()=>k("/template-hooks")},{default:()=>[e("显示当前菜单标记")]}),u(t,{onClick:()=>l("/template-hooks",{label:this.badgeValue})},{default:()=>[e("更新当前菜单标记")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:u(S,{name:"error",size:"18"},null)})}},{default:()=>[e("添加标记图标")]}),u(t,{onClick:()=>{l("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[e("隐藏标记图标")]})]})]})]}),u(i,{title:"useTheme 主题"},{default:()=>[u(a,{vertical:!0},{default:()=>[u("h3",null,[e("getAppTheme 获取当前主题色: "),h().themeLabel]),u(a,null,{default:()=>[u(t,{onClick:()=>D()},{default:()=>[e("切换暗黑主题")]}),u(t,{onClick:()=>A()},{default:()=>[e("切换明亮主题")]}),u(t,{onClick:()=>E()},{default:()=>[e("切换主题")]})]})]})]}),u(i,{title:"useWatermark 水印"},{default:()=>[u(a,{vertical:!0},{default:()=>[u(b,{value:this.watermark,"onUpdate:value":o=>this.watermark=o,onInput:o=>{C(o)}},null),u(a,null,{default:()=>[u(t,{onClick:()=>s()},{default:()=>[e("显示水印")]}),u(t,{onClick:()=>d()},{default:()=>[e("隐藏水印")]}),u(t,{onClick:()=>B()},{default:()=>[e("切换水印")]})]})]})]}),u(i,{title:"useSpinning"},{default:()=>[u("h3",null,[e("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),u("br",null,null),u(a,null,{default:()=>[u(t,{onClick:()=>{m()}},{default:()=>[e("刷新(强制刷新)")]}),u(t,{onClick:()=>{F(),setTimeout(()=>{p()},800)}},{default:()=>[e("触发加载动画(不强制刷新)")]})]})]}),u(i,{title:"useMaximize 内容区域最大化"},{default:()=>[u("h3",null,[e("isLayoutContentMaximized 检测当前内容区域是否最大化:"),c?"最大化":"正常尺寸"]),u(t,{onClick:()=>{n(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[e("最大化内容区域,并且滚动至顶部")]})]}),u(i,{title:"useAppNavigation 导航方法"},{default:()=>[u("h3",null,[e("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),u("br",null,null),u(t,{onClick:()=>r("/multi/multi-menu-one")},{default:()=>[e("跳转至多级菜单")]})]})]})}});export{Vu as default}; diff --git a/js/index-DhmVa7aC.js.gz b/js/index-DhmVa7aC.js.gz new file mode 100644 index 00000000..43c62ad3 Binary files /dev/null and b/js/index-DhmVa7aC.js.gz differ diff --git a/js/index-Dl1wA0be.js b/js/index-Dl1wA0be.js new file mode 100644 index 00000000..51d2be27 --- /dev/null +++ b/js/index-Dl1wA0be.js @@ -0,0 +1 @@ +import{B as d}from"./hooks-Dx3WCPci.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{l as c,b as t,I as n}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as u}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{N as f,c as s,i as h}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const lt=c({name:"ContextMenuDemo",setup(){const o=u(),e=u(!1),r=u([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:m,y:p,show:a,updateShow:i}=d(o);return{demoOneRef:o,demoOneShow:e,x:m,y:p,show:a,options:r,clickOutside:l=>{l.preventDefault(),i(!1)},updateShow:i}},render(){const{x:o,y:e,show:r}=this,{clickOutside:m,updateShow:p}=this;return t(s,{vertical:!0},{default:()=>[t(f,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[t(s,{vertical:!0},{default:()=>[t("h3",null,[n("默认点击元素外部会关闭菜单。")]),t("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[n("右击")])]})]}),t(h,{show:r,x:o,y:e,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,i)=>{window.$message.info(`选中了 ${i.label}`),p(!1)},onClickoutside:m.bind(this)},null)]})}});export{lt as default}; diff --git a/js/index-Dl1wA0be.js.gz b/js/index-Dl1wA0be.js.gz new file mode 100644 index 00000000..19096eaf Binary files /dev/null and b/js/index-Dl1wA0be.js.gz differ diff --git a/js/index-DsT8uWts.js b/js/index-DsT8uWts.js deleted file mode 100644 index 3d248110..00000000 --- a/js/index-DsT8uWts.js +++ /dev/null @@ -1 +0,0 @@ -import{F as d,G as l}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const w=Vue.defineComponent({name:"RFormDemo",setup(){const[u,{getFormInstance:i,validate:t,restoreValidation:r,formModel:a,formRules:e}]=d({name:null,age:null,gender:null,date:null,remark:null},{name:{required:!0,message:"请输入姓名",trigger:["blur","change"]},date:{required:!0,message:"请选择日期",trigger:["blur","change"],type:"number"},gender:{required:!0,message:"请选择性别",trigger:"change"},age:{required:!0,message:"请输入年龄",trigger:["blur","change"],type:"number"}}),o=Vue.ref(e()),n=Vue.ref(a());return{register:u,rules:o,condition:n,restoreValidation:r,formModel:a,validate:t}},render(){const{rules:u}=this,{register:i,restoreValidation:t,formModel:r,validate:a}=this;return Vue.createVNode(l,{onRegister:i,rules:u,model:this.condition},{default:()=>[Vue.createVNode(naive.NGrid,{cols:24,xGap:24},{default:()=>[Vue.createVNode(naive.NFormItemGi,{label:"姓名",path:"name",span:12},{default:()=>[Vue.createVNode(naive.NInput,{value:this.condition.name,"onUpdate:value":e=>this.condition.name=e},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"年龄",path:"age",span:12},{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.condition.age,"onUpdate:value":e=>this.condition.age=e,showButton:!1,style:"width: 100%"},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"出生日期",path:"date",span:12},{default:()=>[Vue.createVNode(naive.NDatePicker,{value:this.condition.date,"onUpdate:value":e=>this.condition.date=e,style:"width: 100%"},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"性别",path:"gender",span:12},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:this.condition.gender,"onUpdate:value":e=>this.condition.gender=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"girl"},{default:()=>[Vue.createTextVNode("女")]}),Vue.createVNode(naive.NRadio,{value:"man"},{default:()=>[Vue.createTextVNode("男")]})]})]}),Vue.createVNode(naive.NFormItemGi,{label:"备注信息",span:24},{default:()=>[Vue.createVNode(naive.NInput,{type:"textarea",value:this.condition.remark,"onUpdate:value":e=>this.condition.remark=e},null)]}),Vue.createVNode(naive.NFormItemGi,{span:24},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"flex-end",style:"width: 100%"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",onClick:()=>{this.condition=r(),t()}},{default:()=>[Vue.createTextVNode("重置表单为初始状态")]}),Vue.createVNode(naive.NButton,{type:"warning",onClick:t.bind(this)},{default:()=>[Vue.createTextVNode("移除校验状态")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>a()},{default:()=>[Vue.createTextVNode("校验")]})]})]})]})]})}});export{w as default}; diff --git a/js/index-DsT8uWts.js.gz b/js/index-DsT8uWts.js.gz deleted file mode 100644 index e688adf3..00000000 Binary files a/js/index-DsT8uWts.js.gz and /dev/null differ diff --git a/js/index-E385tkq8.js b/js/index-E385tkq8.js deleted file mode 100644 index 6b53f915..00000000 --- a/js/index-E385tkq8.js +++ /dev/null @@ -1 +0,0 @@ -const e=Vue.defineComponent({name:"ScrollReveal",render(){return Vue.createVNode("div",{class:"scroll-reveal"},[Vue.createVNode(naive.NCard,{title:"提示"},{default:()=>[Vue.createTextVNode("RayScrollReveal组件有点问题, 暂时移除. 不能正常的实现滚动动画. 很是操蛋!!!")]})])}});export{e as default}; diff --git a/js/index-Gxtc1_K9.js b/js/index-Gxtc1_K9.js new file mode 100644 index 00000000..839a037b --- /dev/null +++ b/js/index-Gxtc1_K9.js @@ -0,0 +1 @@ +import"./hooks-Dx3WCPci.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{B as F,C as h,D as O,E as C,F as E,G as b}from"./utils-CozJMALc.js";import{c as p,N as i,al as o,ag as r,X as D}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as B,b as u,I as s,n as v}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{e as f,v as V}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const bt=B({name:"CalculatePrecision",setup(){const t=f({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),a={addOptions:O,subtractOptions:C,multiplyOptions:E,divideOptions:b},n=(l,d)=>{const m=a[d],c=m(...l);return"结果: "+F(c)},e=()=>{v().then(()=>{t.distributeOutputValue=h(t.distributeValue,t.distributeLength)})};return e(),{...V(t),copilotFunc:n,updateDistributeValue:e}},render(){return u(D,null,{default:()=>[u("h2",{style:"margin: 0 0 20px 0"},[s("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),u("h3",{style:"margin: 0 0 20px 0"},[s("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),u(p,{vertical:!0},{default:()=>[u(i,{title:"加法"},{default:()=>u(o,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),u(i,{title:"减法"},{default:()=>u(o,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),u(i,{title:"乘法"},{default:()=>u(o,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),u(i,{title:"除法(非取模)"},{default:()=>u(o,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),u(i,{title:"平分一个值"},{default:()=>u(p,null,{default:()=>[u(r,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),u(r,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{bt as default}; diff --git a/js/index-Gxtc1_K9.js.gz b/js/index-Gxtc1_K9.js.gz new file mode 100644 index 00000000..469e9cb6 Binary files /dev/null and b/js/index-Gxtc1_K9.js.gz differ diff --git a/js/index-HE4cugSz.js b/js/index-HE4cugSz.js deleted file mode 100644 index 378e891b..00000000 --- a/js/index-HE4cugSz.js +++ /dev/null @@ -1 +0,0 @@ -import{e as g,g as Y,M as W,f as v,h as y,i as M,j as N,k as q,l as G,R as A,m as J,n as K,D as X,s as Q,o as e1,p as t1}from"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{g as P,c as l1,j as _,v as b,k as L,s as k,e as C,i as i1}from"./utils-DvxnuKiq.js";import{g as o1,d as c1,t as a1,f as n1}from"./lodash-es@4.17.21-BALnwRTu.js";import"./vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js";import"./dayjs@1.11.10-BRzSdUgl.js";import{C as s1}from"./clipboard@2.0.11-DheAgBlr.js";import{u as B}from"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function l(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(i){if(i.ep)return;i.ep=!0;const a=l(i);fetch(i.href,a)}})();const r1=Vue.defineComponent({name:"GlobalProvider",setup(e,{expose:t}){const{getPrimaryColorOverride:l,getAppTheme:o,getLocaleLanguage:i}=g(),a=Vue.computed(()=>{const n=i.value;return Y(n)}),c=()=>{const{message:n,notification:s,dialog:r,loadingBar:d}=naive.createDiscreteApi(["message","dialog","notification","loadingBar"],{configProviderProps:Vue.computed(()=>({theme:o.value?naive.darkTheme:null}))});window.$dialog=r,window.$message=n,window.$loadingBar=d,window.$notification=s};return t(),{getPrimaryColorOverride:l,localePackage:a,getAppTheme:o,discreteApi:c}},render(){const{$slots:{default:e},discreteApi:t}=this,{getPrimaryColorOverride:l,getAppTheme:o,localePackage:i}=this;return Vue.createVNode(naive.NConfigProvider,{themeOverrides:l,theme:o?naive.darkTheme:null,locale:i.locale,dateLocale:i.dateLocal},{default:()=>[Vue.createVNode(naive.NLoadingBarProvider,null,{default:()=>[Vue.createVNode(naive.NMessageProvider,W,{default:()=>[Vue.createVNode(naive.NDialogProvider,null,{default:()=>[Vue.createVNode(naive.NModalProvider,null,{default:()=>[Vue.createVNode(naive.NNotificationProvider,null,{default:()=>[Vue.createVNode(naive.NGlobalStyle,null,null),e==null?void 0:e(),t()]})]})]})]})]})]})}});var d1={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^4.0.1","print-js":"^1.6.0",vue:"^3.5.6","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const p1=Vue.defineComponent({name:"AppStyleProvider",setup(e,{expose:t}){const{getAppTheme:l}=g(),o=()=>{const{appPrimaryColor:{primaryColor:c,primaryFadeColor:n}}=d1,s=document.body,r=P(v.appPiniaSettingStore,"localStorage");if(r){const d=o1(r,"primaryColorOverride.common.primaryColor",c),u=l1(d,.38);s.style.setProperty("--ray-theme-primary-color",d),s.style.setProperty("--ray-theme-primary-fade-color",u||n)}},i=()=>{const c=document.getElementById("pre-loading-animation");c&&_(c,{display:"none"})},a=c=>{const n=document.body,s="ray-template--dark",r="ray-template--light";c?b(n,r):b(n,s),L(n,c?s:r)};o(),i(),Vue.watch(()=>l.value,c=>{a(c)},{immediate:!0}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),j={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},m=()=>({lockPassword:null}),u1=Vue.defineComponent({name:"LockScreen",setup(){const e=Vue.ref(null),t=Vue.ref(null),{setLockAppScreen:l}=M(),{updateSettingState:o}=y(),i=Vue.reactive({lockCondition:m()}),a=()=>{var c;(c=e.value)==null||c.validate(n=>{n||(l(!0),o("lockScreenSwitch",!0),i.lockCondition=m())})};return Vue.onMounted(()=>{Vue.nextTick(()=>{var c;(c=t.value)==null||c.focus()})}),{...Vue.toRefs(i),lockScreen:a,formInstRef:e,inputInstRef:t}},render(){return Vue.createVNode("div",{class:"app-lock-screen__input"},[Vue.createVNode(naive.NForm,{ref:"formInstRef",model:this.lockCondition,rules:j,labelPlacement:"left"},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()}},null)]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[Vue.createTextVNode("锁屏")]})]})])}}),h1=Vue.defineComponent({name:"UnlockScreen",setup(){const e=Vue.ref(null),t=Vue.ref(null),{logout:l}=N(),{updateSettingState:o}=y(),{setLockAppScreen:i}=M(),{isTabletOrSmaller:a}=q(),c="HH:mm",n="A",s="YY年MM月DD日",r="ddd",d=Vue.reactive({lockCondition:m(),HH_MM:dayjs().format(c),AM_PM:dayjs().locale("en").format(n),YY_MM_DD:dayjs().format(s),DDD:dayjs().format(r)}),u=setInterval(()=>{d.HH_MM=dayjs().format(c),d.AM_PM=dayjs().format(n)},6e3),h=setInterval(()=>{d.YY_MM_DD=dayjs().format(s),d.DDD=dayjs().format(r)},864e5),f=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{l(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},I=()=>{var w;(w=e.value)==null||w.validate(U=>{U||(i(!1),o("lockScreenSwitch",!1),d.lockCondition=m())})};return Vue.onBeforeUnmount(()=>{clearInterval(u),clearInterval(h)}),{...Vue.toRefs(d),backToSigning:f,unlockScreen:I,formRef:e,inputInstRef:t,isTabletOrSmaller:a}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:t,AM_PM:l,YY_MM_DD:o,DDD:i}=this,a=t.split(":"),{unlockScreen:c,backToSigning:n}=this;return Vue.createVNode("div",{class:"app-lock-screen__unlock"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content-wrapper"},[Vue.createVNode("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[Vue.createVNode("div",{class:"left"},[a[0]]),Vue.createVNode("div",{class:"right"},[a[1]])])]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-avatar"},[Vue.createVNode(G,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-input"},[Vue.createVNode(naive.NForm,{ref:"formRef",model:this.lockCondition,rules:j},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":s=>this.lockCondition.lockPassword=s,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:s=>{s.code==="Enter"&&c()}},null)]}),Vue.createVNode(naive.NFlex,{justify:"space-between"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:n.bind(this)},{default:()=>[Vue.createTextVNode("返回登陆")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:c.bind(this)},{default:()=>[Vue.createTextVNode("进入系统")]})]})]})]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-date"},[Vue.createVNode("div",{class:"current-date"},[t,Vue.createTextVNode(" "),Vue.createVNode("span",null,[l])]),Vue.createVNode("div",{class:"current-year"},[o,Vue.createTextVNode(" "),Vue.createVNode("span",null,[i])])])])])}}),f1=Vue.defineComponent({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=M(),{updateSettingState:t}=y(),{getLockScreenSwitch:l}=g();return{lockScreenSwitchRef:Vue.computed({get:()=>l.value,set:i=>{t("lockScreenSwitch",i)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return Vue.createVNode(A,{show:this.lockScreenSwitchRef,"onUpdate:show":t=>this.lockScreenSwitchRef=t,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[Vue.createVNode("div",{class:"app-lock-screen__content"},[e()?Vue.createVNode(h1,null,null):Vue.createVNode(u1,null,null)])]})}}),v1=Vue.defineComponent({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:t}=g();return{getWatermarkSwitch:e,getWatermarkConfig:t}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:t}=this;return t?Vue.createVNode(naive.NWatermark,Vue.mergeProps({cross:!0,fullscreen:!0},e),null):null}}),m1=Vue.defineComponent({name:"GlobalSpin",props:{...naive.spinProps},setup(){const e={opacitySpinning:"0.3"};return{spinValue:J("globalSpinning"),overrides:e}},render(){return Vue.createVNode(naive.NSpin,Vue.mergeProps(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var g1={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^4.0.1","print-js":"^1.6.0",vue:"^3.5.6","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.13"},name:"ray-template",version:"4.9.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const _1=Vue.defineComponent({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=g1,t=P(v.appVersionProvider,"localStorage"),l=Vue.ref(!1),{logout:o}=N();return t!==null?e!==t&&(l.value=!0,k(v.appVersionProvider,e,"localStorage")):k(v.appVersionProvider,e,"localStorage"),{modalShow:l,logout:o}},render(){const{logout:e}=this;return Vue.createVNode("div",{class:"app-style-provider"},[Vue.createVNode(A,{show:this.modalShow,"onUpdate:show":t=>this.modalShow=t,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),T=Vue.defineComponent({name:"App",render(){return Vue.createVNode(r1,null,{default:()=>[Vue.createVNode(_1,null,null),Vue.createVNode(f1,null,null),Vue.createVNode(p1,null,null),Vue.createVNode(v1,null,null),Vue.createVNode(m1,null,{default:()=>Vue.createVNode(VueRouter.RouterView,null,null),description:()=>K})]})}});if(typeof window<"u"){let e=function(){var t=document.body,l=document.getElementById("__svg__icons__dom__");l||(l=document.createElementNS("http://www.w3.org/2000/svg","svg"),l.style.position="absolute",l.style.width="0",l.style.height="0",l.id="__svg__icons__dom__",l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),l.innerHTML='',t.insertBefore(l,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const b1=()=>{dayjs.locale(X)},z=(e,t)=>{const l=new s1(e,{text:()=>t});e.$$clipboard=l,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},y1=()=>({mounted:(e,{value:t})=>{z(e,t)},updated:(e,{value:t,oldValue:l})=>{var o;t!==l&&((o=e.$$clipboard)==null||o.destroy(),z(e,t))},beforeUnmount:e=>{var t;e.$$clipboard&&((t=e.$$clipboard)==null||t.destroy(),e.$$clipboard=null)}}),M1=Object.freeze(Object.defineProperty({__proto__:null,default:y1},Symbol.toStringTag,{value:"Module"})),V1=()=>{let e,t;return{beforeMount:(l,{value:o})=>{const{func:i,trigger:a="click",wait:c=500,options:n}=o;if(typeof i!="function")throw new TypeError("debounce directive value must be a function");e=c1(i,c,Object.assign({},n)),t=B(l,a,e)},beforeUnmount:(l,{value:o})=>{e&&(e.cancel(),t==null||t()),e=null}}},w1=Object.freeze(Object.defineProperty({__proto__:null,default:V1},Symbol.toStringTag,{value:"Module"})),Z=(e,t)=>{if(e){const l="ray-template__directive--disabled";t?(e.setAttribute("disabled","disabled"),L(e,l)):(e.removeAttribute("disabled"),b(e,l)),e==null||e.setAttribute("disabled",t?"disabled":"")}},k1=()=>({mounted:(e,{value:t})=>{Z(e,t)},updated:(e,{value:t,oldValue:l})=>{t!==l&&Z(e,t)}}),C1=Object.freeze(Object.defineProperty({__proto__:null,default:k1},Symbol.toStringTag,{value:"Module"})),S=(e,t)=>{const{line:l=1,type:o="block",width:i,popoverText:a}=t;if(i==null){console.error(`[v-ellipsis]: Expected width is string or number, but got typeof ${i}!`);return}a&&e.textContent&&e.setAttribute("title",e.textContent),o==="line"?_(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l,overflow:"hidden",width:C(i)}):_(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:C(i)})},z1=()=>({mounted:(e,{value:t})=>{S(e,t)},updated:(e,{value:t})=>{S(e,t)}}),Z1=Object.freeze(Object.defineProperty({__proto__:null,default:z1},Symbol.toStringTag,{value:"Module"})),p={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},S1="v-ripple__container";function H(e,t){e.style.transform=t}function D(e){const t={},l=e.currentTarget;!(l!=null&&l.__d_ripple__)||l.__d_ripple__.touched||(t.center=l.__d_ripple__.centered,l.__d_ripple__.class&&(t.class=l.__d_ripple__.class),V.show(e,l,t))}function R(e){const t=e.currentTarget;t!=null&&t.__d_ripple__&&(setTimeout(()=>{t.__d_ripple__&&(t.__d_ripple__.touched=!1)}),V.hide(t))}const H1=(e,t,l={})=>{var h;const o=t.getBoundingClientRect(),i=e.clientX-o.left,a=e.clientY-o.top;let c=0,n=.3;(h=t.__d_ripple__)!=null&&h.circle?(n=.15,c=t.clientWidth/2,c=l.center?c:c+Math.sqrt((i-c)**2+(a-c)**2)/4):c=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const s=`${(t.clientWidth-c*2)/2}px`,r=`${(t.clientHeight-c*2)/2}px`,d=l.center?s:`${i-c}px`,u=l.center?r:`${a-c}px`;return{radius:c,scale:n,x:d,y:u,centerX:s,centerY:r}},V={show(e,t,l={}){var f;if(!((f=t==null?void 0:t.__d_ripple__)!=null&&f.enabled))return;const o=document.createElement("span"),i=document.createElement("span");o.appendChild(i),o.className=S1,l.class&&(o.className+=` ${l.class}`);const{radius:a,scale:c,x:n,y:s,centerX:r,centerY:d}=H1(e,t,l),u=`${a*2}px`;i.className=p.vRippleAnimation,i.style.width=u,i.style.height=u,t.appendChild(o);const h=window.getComputedStyle(t);h&&h.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add(p.vRippleAnimationEnter),i.classList.add(p.vRippleAnimationVisible),H(i,`translate(${n}, ${s}) scale3d(${c},${c},${c})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove(p.vRippleAnimationEnter),i.classList.add(p.vRippleAnimationIn),H(i,`translate(${r}, ${d}) scale3d(1,1,1)`)},0)},hide(e){var a;if(!((a=e==null?void 0:e.__d_ripple__)!=null&&a.enabled))return;const t=e.getElementsByClassName(p.vRippleAnimation);if(t.length===0)return;const l=t[t.length-1];if(l.dataset.isHiding)return;l.dataset.isHiding="true";const o=performance.now()-Number(l.dataset.activated),i=Math.max(250-o,0);setTimeout(()=>{l.classList.remove(p.vRippleAnimationIn),l.classList.add(p.vRippleAnimationOut),setTimeout(()=>{var n;e.getElementsByClassName(p.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((n=l.parentNode)==null?void 0:n.parentNode)===e&&e.removeChild(l.parentNode)},300)},i)}};function O(e){return typeof e>"u"||!!e}function E(e){e.removeEventListener("pointerdown",D),e.removeEventListener("pointerup",R)}function x(e,t,l){const{value:o,modifiers:i}=t,a=O(o);a||V.hide(e),e.__d_ripple__=e.__d_ripple__??{},e.__d_ripple__.enabled=a,e.__d_ripple__.centered=i.center,e.__d_ripple__.circle=i.circle,i1(o,"Object")&&o.class&&(e.__d_ripple__.class=o.class),a&&!l?(e.addEventListener("pointerdown",D),e.addEventListener("pointerup",R)):!a&&l&&E(e)}const x1=()=>({mounted:(e,t)=>{x(e,t,!1)},beforeUnmount:e=>{delete e.__d_ripple__,E(e)},updated:(e,t)=>{if(t.value===t.oldValue)return;const l=O(t.oldValue);x(e,t,l)}}),N1=Object.freeze(Object.defineProperty({__proto__:null,default:x1},Symbol.toStringTag,{value:"Module"})),A1=()=>{let e;return{beforeMount:(t,{value:l})=>{const{func:o,trigger:i="click",wait:a=500,options:c}=l;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");e=a1(o,a,Object.assign({},c)),B(t,i,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},P1=Object.freeze(Object.defineProperty({__proto__:null,default:A1},Symbol.toStringTag,{value:"Module"})),L1=e=>Object.keys(e).reduce((l,o)=>{var a;const i=(a=e[o])==null?void 0:a.default;if(typeof i=="function")return l[o]=i,l;throw new TypeError(`directiveModules: ${o} is not function`)},{}),B1=e=>{const l=L1(Object.assign({"/src/directives/modules/copy/index.ts":M1,"/src/directives/modules/debounce/index.ts":w1,"/src/directives/modules/disabled/index.ts":C1,"/src/directives/modules/ellipsis/index.ts":Z1,"/src/directives/modules/ripple/index.ts":N1,"/src/directives/modules/throttle/index.ts":P1})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),i=/^([^-]+-)*[^-]+$/;n1(l,(a,c)=>{var s;const n=(s=c.match(o))==null?void 0:s[0];typeof n=="string"&&i.test(n)?e.directive(n,a()):console.error(`[setupDirectives] ${n} is not a valid directive name`)})},$=async()=>{},F=async e=>{Q(e),await e1(e),t1(e),b1(),B1(e)},j1=async()=>{const e=Vue.createApp(T);await F(e),e.mount("#app"),await $()},T1=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=Vue.createApp(T),await F(e),e.mount("#app"),await $()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?T1():j1(); diff --git a/js/index-HE4cugSz.js.gz b/js/index-HE4cugSz.js.gz deleted file mode 100644 index c87dac91..00000000 Binary files a/js/index-HE4cugSz.js.gz and /dev/null differ diff --git a/js/index-RLmFcqh0.js b/js/index-RLmFcqh0.js new file mode 100644 index 00000000..b14f57ac --- /dev/null +++ b/js/index-RLmFcqh0.js @@ -0,0 +1 @@ +import{I as C,J as f,K as k}from"./hooks-Dx3WCPci.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{a as A}from"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import{s as B}from"./instance-nIExQa9a.js";import"./lodash@4.17.21-Cw59kuJw.js";import{N as l,q as y,ah as h,M as b,Q as i,c as p}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as D,b as t,I as o,F as w}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{e as N,v as P}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./axios@1.7.5-C8DqakIB.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const R=e=>B({url:"/api/list",method:"get",params:e}),Pt=D({name:"MockDemo",setup(){const e=[{type:"selection",multiple:!0},{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:m=>t(p,{align:"center"},{default:()=>[t(i,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[o("查看")]}),t(i,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[o("编辑")]}),t(i,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[o("删除")]})]})}],u=N({email:null}),[n,{getPage:r,getPageSize:a,setItemCount:s,getCallback:d,setPage:v,setPageSize:x}]=C(()=>{E({page:r(),pageSize:a(),email:u.email})}),{data:F,loading:c,run:E}=A(R,{defaultParams:[{page:r(),pageSize:a(),email:u.email}],onSuccess:m=>{const{total:g}=m;s(g)}});return{personData:F,personLoading:c,columns:e,...P(u),getCallback:d,paginationRef:n}},render(){return t(p,{vertical:!0},{default:()=>{var e;return[t(l,{title:"Mock 数据"},{default:()=>[t("h2",null,[o("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),t(l,{title:"提示"},{default:()=>[t("h2",null,[o("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),t(y,{labelPlacement:"left"},{default:()=>[t(f,{bordered:!1,cols:3},{default:()=>t(w,null,[t(h,{label:"邮箱"},{default:()=>[t(b,{value:this.email,"onUpdate:value":u=>this.email=u,clearable:!0},null)]})]),action:()=>{var u;return t(i,{type:"primary",onClick:(u=this.getCallback)==null?void 0:u.bind(this)},{default:()=>[o("搜索")]})}})]}),t(k,{title:"Mock数据表格",data:(e=this.personData)==null?void 0:e.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":u=>this.columns=u,pagination:this.paginationRef,remote:!0,rowKey:u=>u.id},null)]}})}});export{Pt as default}; diff --git a/js/index-RLmFcqh0.js.gz b/js/index-RLmFcqh0.js.gz new file mode 100644 index 00000000..8c35851e Binary files /dev/null and b/js/index-RLmFcqh0.js.gz differ diff --git a/js/index-Y-FcIns6.js b/js/index-Y-FcIns6.js new file mode 100644 index 00000000..fcd85941 --- /dev/null +++ b/js/index-Y-FcIns6.js @@ -0,0 +1 @@ +import{t as n}from"./hooks-Dx3WCPci.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{A as d}from"./index-CnbvNhnT.js";import{N as i,I as f,J as c,ab as s,ac as E,c as o,v as p}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import{l as b,b as u,I as t,v as F}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";function m(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!F(l)}const du=b({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>u(o,null,{default:()=>[u(p,{type:"success"},{default:()=>[t("Vue3.x")]}),u(p,{type:"info"},{default:()=>[t("React")]})]})},{label:"从事搬砖时长",des:()=>u(o,null,{default:()=>[u(p,{type:"success"},{default:()=>[t("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>u(o,{align:"center"},{default:()=>[u(n,{name:"ray",size:"22"},null),t("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>u(o,{align:"center"},{default:()=>[t("如果有希望补充的功能可以在"),u("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[t("GitHub")]),t("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let l,a;return u(o,{vertical:!0},{default:()=>[u(i,null,{header:()=>u(n,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),u(i,{title:"个人介绍"},{default:()=>[u(f,{bordered:!0,labelPlacement:"left",column:2},m(l=this.coverLetterOptions.map(e=>{let r;return u(c,{key:e.label,label:e.label,span:e==null?void 0:e.span},m(r=e.des())?r:{default:()=>[r]})}))?l:{default:()=>[l]})]}),u(i,{title:"项目介绍"},{default:()=>[u(s,null,{default:()=>[t("技术栈")]}),u(E,null,{default:()=>[u(o,null,m(a=this.technologyTagOptions.map(e=>u(p,{key:e.value,type:"info"},{default:()=>[e.label]})))?a:{default:()=>[a]})]}),u(s,null,{default:()=>[t("项目介绍")]}),u(E,null,{default:()=>[t("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),u(i,{title:"友情链接"},{default:()=>[u(d,null,null)]})]})}});export{du as default}; diff --git a/js/index-Y-FcIns6.js.gz b/js/index-Y-FcIns6.js.gz new file mode 100644 index 00000000..dc1dc6ed Binary files /dev/null and b/js/index-Y-FcIns6.js.gz differ diff --git a/js/index-d7z__Ck2.js b/js/index-d7z__Ck2.js deleted file mode 100644 index 4d3aca20..00000000 --- a/js/index-d7z__Ck2.js +++ /dev/null @@ -1 +0,0 @@ -import"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{B as s,C as p,D as d,E as l,F as c,G as V}from"./utils-DvxnuKiq.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const k=Vue.defineComponent({name:"CalculatePrecision",setup(){const t=Vue.reactive({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),e={addOptions:d,subtractOptions:l,multiplyOptions:c,divideOptions:V},i=(a,o)=>{const n=e[o],r=n(...a);return"结果: "+s(r)},u=()=>{Vue.nextTick().then(()=>{t.distributeOutputValue=p(t.distributeValue,t.distributeLength)})};return u(),{...Vue.toRefs(t),copilotFunc:i,updateDistributeValue:u}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode("h2",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),Vue.createVNode("h3",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"加法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),Vue.createVNode(naive.NCard,{title:"减法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),Vue.createVNode(naive.NCard,{title:"乘法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),Vue.createVNode(naive.NCard,{title:"除法(非取模)"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),Vue.createVNode(naive.NCard,{title:"平分一个值"},{default:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),Vue.createVNode(naive.NInputNumber,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{k as default}; diff --git a/js/index-d7z__Ck2.js.gz b/js/index-d7z__Ck2.js.gz deleted file mode 100644 index 5e026b79..00000000 Binary files a/js/index-d7z__Ck2.js.gz and /dev/null differ diff --git a/js/index-f23H9wre.js b/js/index-f23H9wre.js new file mode 100644 index 00000000..dada2c45 --- /dev/null +++ b/js/index-f23H9wre.js @@ -0,0 +1 @@ +import{l as r,b as u,I as t}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{N as e,c as o}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const y=r({name:"RouterDemoDetail",render(){return u(o,null,{default:()=>[u(e,{title:this.$route.query.name||"hello"},{default:()=>[t("你好 "),this.$route.query.name]}),u(e,{title:"平层路由详情页面"},{default:()=>[t("我是平层路由详情页面")]}),u(e,{title:"TIP"},{default:()=>[u("h2",null,[t("1. 可以点击面包屑或者菜单返回到主页面")]),u("h2",null,[t("2. 如果这个页面需要配置多个详情页面,只需将该路由所在的 children 中,将所需页面配置为 sameLevel 即可。")])]})]})}});export{y as default}; diff --git a/js/index-f23H9wre.js.gz b/js/index-f23H9wre.js.gz new file mode 100644 index 00000000..58bfff5b Binary files /dev/null and b/js/index-f23H9wre.js.gz differ diff --git a/js/index-kcH3_LHw.js b/js/index-kcH3_LHw.js deleted file mode 100644 index 0b972ad6..00000000 --- a/js/index-kcH3_LHw.js +++ /dev/null @@ -1 +0,0 @@ -import{C as u,E as h}from"./hooks-DUpKDX8W.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const z=Vue.defineComponent({name:"REchart",setup(){const[i,{getChartInstance:l,dispose:o,render:r,isDisposed:s}]=h(),[n,{getChartInstance:t,dispose:p,render:V,isDisposed:m}]=h(),g=Vue.ref(!1),c=Vue.ref(!1),a=Vue.reactive({loading:!1,loading1:!1}),N={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},f={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},d=Vue.ref({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),C=e=>{a.loading=e},E=e=>{c.value=e},A=()=>{s()?r():window.$message.warning("图表已渲染~")},F=()=>{o()},v=()=>{a.loading1=!0;const e=()=>Math.floor((Math.random()+1)*100);setTimeout(()=>{d.value.series[0].data=new Array(7).fill(0).map(()=>e()),d.value.series[1].data=new Array(7).fill(0).map(()=>e()),a.loading1=!1},1e3)};return{baseOptions:N,chartLoading:g,handleLoadingShow:C,chartAria:c,handleAriaShow:E,basePieOptions:f,baseLineOptions:d,...Vue.toRefs(a),mountChart:A,unmountChart:F,updateChartOptions:v,register:i,register2:n,dispose2:p,render2:V,isDisposed2:m}},render(){const{register:i,register2:l,dispose2:o,render2:r,isDisposed2:s,loading1:n}=this;return Vue.createVNode("div",{class:"echart"},[Vue.createVNode(naive.NCard,{title:"chart 组件"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("该组件基于 ECharts, Vueuse 封装。默认做了最佳的优化封装实践。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("开箱即用的优化策略:节流更新图表、异步渲染、自动销毁、贴花、加载、主题、视窗区域渲染、自动更新尺寸等高级特性。")])]}),Vue.createVNode(naive.NCard,{title:"预设 card 风格图表"},{default:()=>[Vue.createVNode(naive.NFlex,{style:["padding: 18px 0"]},{default:()=>[Vue.createVNode(naive.NButton,{onClick:this.mountChart.bind(this)},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:this.unmountChart.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]}),Vue.createVNode(naive.NButton,{onClick:this.updateChartOptions.bind(this)},{default:()=>[Vue.createTextVNode("更新配置项")]}),Vue.createVNode(naive.NButton,{onClick:()=>{this.loading1=!this.loading1}},{default:()=>[`${this.loading1?"关闭":"开启"}`,Vue.createTextVNode("加载动画")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(u,{onRegister:i,title:"周销售量",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card",loading:n},null)])]}),Vue.createVNode(naive.NCard,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{s()?r():window.$message.warning("不可以重复渲染图表~")}},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:o.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(u,{onRegister:l,autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]})]}),Vue.createVNode(naive.NCard,{title:"加载动画"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartLoading,"onUpdate:value":t=>this.chartLoading=t,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(u,{loading:this.loading,options:this.baseOptions},null)])]}),Vue.createVNode(naive.NCard,{title:"贴画可视化图"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartAria,"onUpdate:value":t=>this.chartAria=t,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(u,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{z as default}; diff --git a/js/index-kcH3_LHw.js.gz b/js/index-kcH3_LHw.js.gz deleted file mode 100644 index 6471181c..00000000 Binary files a/js/index-kcH3_LHw.js.gz and /dev/null differ diff --git a/js/index-ma7T1XPs.js b/js/index-ma7T1XPs.js new file mode 100644 index 00000000..6644ac9b --- /dev/null +++ b/js/index-ma7T1XPs.js @@ -0,0 +1 @@ +import{H as r}from"./hooks-Dx3WCPci.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{l as i,b as t}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{N as o,c as m}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const $=i({name:"IframeDemo",setup(){return{}},render(){return t(m,{vertical:!0,size:[20,20]},{default:()=>[t(o,{title:"naive ui(延迟加载)"},{default:()=>[t(r,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),t(o,{title:"vue-hooks-plus(立即加载)"},{default:()=>[t(r,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{$ as default}; diff --git a/js/index-ma7T1XPs.js.gz b/js/index-ma7T1XPs.js.gz new file mode 100644 index 00000000..eecdccce Binary files /dev/null and b/js/index-ma7T1XPs.js.gz differ diff --git a/js/index-mffIYrJp.js b/js/index-mffIYrJp.js new file mode 100644 index 00000000..bfb706e2 --- /dev/null +++ b/js/index-mffIYrJp.js @@ -0,0 +1 @@ +import{l as o,b as r,I as e}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as p}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{M as i}from"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";const k=o({name:"SubMenuOther",setup(){return{inputValue:p(null)}},render(){return r("div",null,[e("多级菜单-2-1"),r(i,{modelValue:this.inputValue,"onUpdate:modelValue":t=>this.inputValue=t},null)])}});export{k as default}; diff --git a/js/index-mffIYrJp.js.gz b/js/index-mffIYrJp.js.gz new file mode 100644 index 00000000..31683c8e Binary files /dev/null and b/js/index-mffIYrJp.js.gz differ diff --git a/js/instance-Mlryd73B.js b/js/instance-Mlryd73B.js deleted file mode 100644 index ea4a1334..00000000 --- a/js/instance-Mlryd73B.js +++ /dev/null @@ -1 +0,0 @@ -import{Z as t,$ as n,f as R,a0 as q}from"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{g as d}from"./utils-DvxnuKiq.js";import"./currency.js@2.0.4-9OAR_aOO.js";const A=(e,r)=>{t.removePendingRequest(e)},y=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[A],implementResponseInterceptorErrorArray:[y]},{setImplement:m}=n(),E=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},k=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},P=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},g=(e,r)=>{t.removePendingRequest(e)},v=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},f=(e,r)=>{const o=d(R.token,"localStorage");return e.url,{key:"X-TOKEN",value:o}},C=(e,r)=>{v(e,[f(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[C,P],implementRequestInterceptorErrorArray:[g]},{setImplement:a}=n(),H=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},j=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=axios.create(q),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),H(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(j(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),E(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(k(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/js/instance-Mlryd73B.js.gz b/js/instance-Mlryd73B.js.gz deleted file mode 100644 index 1b47442a..00000000 Binary files a/js/instance-Mlryd73B.js.gz and /dev/null differ diff --git a/js/instance-nIExQa9a.js b/js/instance-nIExQa9a.js new file mode 100644 index 00000000..48d6c090 --- /dev/null +++ b/js/instance-nIExQa9a.js @@ -0,0 +1 @@ +import{a as R}from"./axios@1.7.5-C8DqakIB.js";import{Z as t,$ as n,f as q,a0 as d}from"./hooks-Dx3WCPci.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{g as A}from"./utils-CozJMALc.js";import"./currency.js@2.0.4-9OAR_aOO.js";const y=(e,r)=>{t.removePendingRequest(e)},E=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[y],implementResponseInterceptorErrorArray:[E]},{setImplement:m}=n(),k=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},P=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},f=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},g=(e,r)=>{t.removePendingRequest(e)},v=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},C=(e,r)=>{const o=A(q.token,"localStorage");return e.url,{key:"X-TOKEN",value:o}},H=(e,r)=>{v(e,[C(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[H,f],implementRequestInterceptorErrorArray:[g]},{setImplement:a}=n(),j=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},x=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=R.create(d),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),j(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(x(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),k(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(P(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/js/instance-nIExQa9a.js.gz b/js/instance-nIExQa9a.js.gz new file mode 100644 index 00000000..c193d060 Binary files /dev/null and b/js/instance-nIExQa9a.js.gz differ diff --git a/js/jsbarcode@3.11.6-DGNGFp02.js b/js/jsbarcode@3.11.6-DGNGFp02.js new file mode 100644 index 00000000..326472a5 --- /dev/null +++ b/js/jsbarcode@3.11.6-DGNGFp02.js @@ -0,0 +1 @@ +import{g as At}from"./call-bind@1.0.7-Cpj98o6Y.js";var le={},U={},l={};Object.defineProperty(l,"__esModule",{value:!0});function Rt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Pt=function t(e,r){Rt(this,t),this.data=e,this.text=r.text||e,this.options=r};l.default=Pt;Object.defineProperty(U,"__esModule",{value:!0});U.CODE39=void 0;var Tt=function(){function t(e,r){for(var n=0;n=200){u=n.shift()-105;var y=h.SWAP[u];y!==void 0?o=e.next(n,a+1,y):((i===h.SET_A||i===h.SET_B)&&u===h.SHIFT&&(n[0]=i===h.SET_A?n[0]>95?n[0]-96:n[0]:n[0]<32?n[0]+96:n[0]),o=e.next(n,a+1,i))}else u=e.correctIndex(n,i),o=e.next(n,a+1,i);var $=e.getBar(u),xt=u*a;return{result:$+o.result,checksum:xt+o.checksum}}}]),e}(Vt.default);P.default=Zt;var de={};Object.defineProperty(de,"__esModule",{value:!0});var g=f,ot=function(e){return e.match(new RegExp("^"+g.A_CHARS+"*"))[0].length},ut=function(e){return e.match(new RegExp("^"+g.B_CHARS+"*"))[0].length},ft=function(e){return e.match(new RegExp("^"+g.C_CHARS+"*"))[0]};function _e(t,e){var r=e?g.A_CHARS:g.B_CHARS,n=t.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(n)return n[1]+"Ì"+ct(t.substring(n[1].length));var a=t.match(new RegExp("^"+r+"+"))[0];return a.length===t.length?t:a+String.fromCharCode(e?205:206)+_e(t.substring(a.length),!e)}function ct(t){var e=ft(t),r=e.length;if(r===t.length)return t;t=t.substring(r);var n=ot(t)>=ut(t);return e+String.fromCharCode(n?206:205)+_e(t,n)}de.default=function(t){var e=void 0,r=ft(t).length;if(r>=2)e=g.C_START_CHAR+ct(t);else{var n=ot(t)>ut(t);e=(n?g.A_START_CHAR:g.B_START_CHAR)+_e(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(a,i){return"Ë"+i})};Object.defineProperty(he,"__esModule",{value:!0});var Kt=P,en=lt(Kt),tn=de,nn=lt(tn);function lt(t){return t&&t.__esModule?t:{default:t}}function rn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function re(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function an(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var on=function(t){an(e,t);function e(r,n){if(rn(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(r))var a=re(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,nn.default)(r),n));else var a=re(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n));return re(a)}return e}(en.default);he.default=on;var ve={};Object.defineProperty(ve,"__esModule",{value:!0});var un=function(){function t(e,r){for(var n=0;nn.width*10?n.width*10:n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return Fn(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(n,a){return this.text.substr(n,a)}},{key:"leftEncode",value:function(n,a){return(0,ze.default)(n,a)}},{key:"rightText",value:function(n,a){return this.text.substr(n,a)}},{key:"rightEncode",value:function(n,a){return(0,ze.default)(n,a)}},{key:"encodeGuarded",value:function(){var n={fontSize:this.fontSize},a={height:this.guardHeight};return[{data:S.SIDE_BIN,options:a},{data:this.leftEncode(),text:this.leftText(),options:n},{data:S.MIDDLE_BIN,options:a},{data:this.rightEncode(),text:this.rightText(),options:n},{data:S.SIDE_BIN,options:a}]}},{key:"encodeFlat",value:function(){var n=[S.SIDE_BIN,this.leftEncode(),S.MIDDLE_BIN,this.rightEncode(),S.SIDE_BIN];return{data:n.join(""),text:this.text}}}]),e}(zn.default);V.default=Jn;Object.defineProperty(pe,"__esModule",{value:!0});var Qn=function(){function t(e,r){for(var n=0;nn.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return Ir(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==ue(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=(0,x.default)(this.data.substr(0,6),"LLLLLL"),n+="01010",n+=(0,x.default)(this.data.substr(6,6),"RRRRRR"),n+="101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101"+(0,x.default)(this.data[0],"L"),options:{height:this.guardHeight}}),n.push({data:(0,x.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),n.push({data:"01010",options:{height:this.guardHeight}}),n.push({data:(0,x.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),n.push({data:(0,x.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),n}}]),e}(Br.default);function ue(t){var e=0,r;for(r=1;r<11;r+=2)e+=parseInt(t[r]);for(r=0;r<11;r+=2)e+=parseInt(t[r])*3;return(10-e%10)%10}L.default=Cr;var be={};Object.defineProperty(be,"__esModule",{value:!0});var Fr=function(){function t(e,r){for(var n=0;nn.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return Fr(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=this.encodeMiddleDigits(),n+="010101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101",options:{height:this.guardHeight}}),n.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),n.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),n}},{key:"encodeMiddleDigits",value:function(){var n=this.upcA[0],a=this.upcA[this.upcA.length-1],i=Wr[parseInt(a)][parseInt(n)];return(0,Xr.default)(this.middleDigits,i)}}]),e}(Ur.default);function Ve(t,e){for(var r=parseInt(t[t.length-1]),n=Qr[r],a="",i=0,o=0;o=3&&this.number<=131070}}]),e}(Pi.default);Q.pharmacode=Di;var W={};Object.defineProperty(W,"__esModule",{value:!0});W.codabar=void 0;var ji=function(){function t(e,r){for(var n=0;n0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function Ot(t,e,r){if(r.displayValue&&ee&&(e=t[r].height);return e}function po(t,e,r){var n;if(r)n=r;else if(typeof document<"u")n=document.createElement("canvas").getContext("2d");else return 0;n.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var a=n.measureText(t);if(!a)return 0;var i=a.width;return i}d.getMaximumHeightOfEncodings=yo;d.getEncodingHeight=gt;d.getBarcodePadding=Ot;d.calculateEncodingAttributes=vo;d.getTotalWidthOfEncodings=so;Object.defineProperty(ke,"__esModule",{value:!0});var go=function(){function t(e,r){for(var n=0;n0?(o=0,a.textAlign="left"):r.textAlign=="right"?(o=n.width-1,a.textAlign="right"):(o=n.width/2,a.textAlign="center"),a.fillText(n.text,o,u)}}},{key:"moveCanvasDrawing",value:function(r){var n=this.canvas.getContext("2d");n.translate(r.width,0)}},{key:"restoreCanvas",value:function(){var r=this.canvas.getContext("2d");r.restore()}}]),t}();ke.default=mo;var Ie={};Object.defineProperty(Ie,"__esModule",{value:!0});var $o=function(){function t(e,r){for(var n=0;n0&&(this.drawRect(y-n.width*u,o,n.width*u,n.height,r),u=0);u>0&&this.drawRect(y-n.width*(u-1),o,n.width*u,n.height,r)}},{key:"drawSVGText",value:function(r,n,a){var i=this.document.createElementNS(z,"text");if(n.displayValue){var o,u;i.setAttribute("style","font:"+n.fontOptions+" "+n.fontSize+"px "+n.font),n.textPosition=="top"?u=n.fontSize-n.textMargin:u=n.height+n.textMargin+n.fontSize,n.textAlign=="left"||a.barcodePadding>0?(o=0,i.setAttribute("text-anchor","start")):n.textAlign=="right"?(o=a.width-1,i.setAttribute("text-anchor","end")):(o=a.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",o),i.setAttribute("y",u),i.appendChild(this.document.createTextNode(a.text)),r.appendChild(i)}}},{key:"setSvgAttributes",value:function(r,n){var a=this.svg;a.setAttribute("width",r+"px"),a.setAttribute("height",n+"px"),a.setAttribute("x","0px"),a.setAttribute("y","0px"),a.setAttribute("viewBox","0 0 "+r+" "+n),a.setAttribute("xmlns",z),a.setAttribute("version","1.1"),a.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(r,n,a){var i=this.document.createElementNS(z,"g");return i.setAttribute("transform","translate("+r+", "+n+")"),a.appendChild(i),i}},{key:"setGroupOptions",value:function(r,n){r.setAttribute("style","fill:"+n.lineColor+";")}},{key:"drawRect",value:function(r,n,a,i,o){var u=this.document.createElementNS(z,"rect");return u.setAttribute("x",r),u.setAttribute("y",n),u.setAttribute("width",a),u.setAttribute("height",i),o.appendChild(u),u}}]),t}();Ie.default=Po;var De={};Object.defineProperty(De,"__esModule",{value:!0});var To=function(){function t(e,r){for(var n=0;n"u"?"undefined":Ho(t))==="object"&&!t.nodeName)return{element:t,renderer:B.default.ObjectRenderer};throw new Uo.InvalidElementException}}function qo(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var r=[],n=0;n"u")throw Error("No element to render on was provided.");return a._renderProperties=(0,nu.default)(e),a._encodings=[],a._options=mt.default,a._errorHandler=new ou.default(a),typeof r<"u"&&(n=n||{},n.format||(n.format=St()),a.options(n)[n.format](r,n).render()),a};ee.getModule=function(t){return E.default[t]};for(var et in E.default)E.default.hasOwnProperty(et)&&fu(E.default,et);function fu(t,e){p.prototype[e]=p.prototype[e.toUpperCase()]=p.prototype[e.toLowerCase()]=function(r,n){var a=this;return a._errorHandler.wrapBarcodeCall(function(){n.text=typeof n.text>"u"?void 0:""+n.text;var i=(0,C.default)(a._options,n);i=(0,au.default)(i);var o=t[e],u=$t(r,o,i);return a._encodings.push(u),a})}}function $t(t,e,r){t=""+t;var n=new e(t,r);if(!n.valid())throw new wt.InvalidInputException(n.constructor.name,t);var a=n.encode();a=(0,bt.default)(a);for(var i=0;i0){if(++r>=oe)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}function fe(t){return function(){return t}}var H=function(){try{var t=P(Object,"defineProperty");return t({},"",{}),t}catch{}}(),le=H?function(t,r){return H(t,"toString",{configurable:!0,enumerable:!1,value:fe(r),writable:!0})}:Qt,pe=ce(le);function ge(t,r){for(var e=-1,n=t==null?0:t.length;++e-1&&t%1==0&&t-1&&t%1==0&&t<=ve}function ct(t){return t!=null&&st(t.length)&&!kt(t)}var _e=Object.prototype;function W(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||_e;return t===e}function me(t,r){for(var e=-1,n=Array(t);++e-1}function In(t,r){var e=this.__data__,n=q(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}function m(t){var r=-1,e=t==null?0:t.length;for(this.clear();++ra?0:a+r),e=e>a?a:e,e<0&&(e+=a),a=r>e?0:e-r>>>0,r>>>=0;for(var i=Array(a);++n=r||O<0||g&&N>=i}function d(){var p=rt();if(h(p))return vt(p);u=setTimeout(d,G(p))}function vt(p){return u=void 0,I&&n?E(p):(n=a=void 0,o)}function _r(){u!==void 0&&clearTimeout(u),l=0,n=s=a=u=void 0}function mr(){return u===void 0?o:vt(rt())}function Q(){var p=rt(),O=h(p);if(n=arguments,a=this,s=p,O){if(u===void 0)return J(s);if(g)return clearTimeout(u),u=setTimeout(d,r),E(s)}return u===void 0&&(u=setTimeout(d,r)),o}return Q.cancel=_r,Q.flush=mr,Q}function Gi(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}function Hi(t){return typeof t=="function"?t:Qt}function io(t,r){return t==null?t:Di(t,Hi(r),Y)}function Ki(t,r){return r.length<2?t:dt(t,ta(r,0,-1))}var Wi="[object Map]",Xi="[object Set]",Yi=Object.prototype,qi=Yi.hasOwnProperty;function oo(t){if(t==null)return!0;if(ct(t)&&(_(t)||typeof t=="string"||typeof t.splice=="function"||ft(t)||ir(t)||X(t)))return!t.length;var r=T(t);if(r==Wi||r==Xi)return!t.size;if(W(t))return!sr(t).length;for(var e in t)if(qi.call(t,e))return!1;return!0}function Vi(t,r){return r=F(r,t),t=Ki(t,r),t==null||delete t[Z(Gi(r))]}function Zi(t){return kn(t)?void 0:t}var Ji=1,Qi=2,ki=4,uo=cr(function(t,r){var e={};if(t==null)return e;var n=!1;r=Zt(r,function(i){return i=F(i,t),n||(n=i.length>1),i}),z(t,hr(t),e),n&&(e=B(e,Ji|Qi|ki,Zi));for(var a=r.length;a--;)Vi(e,r[a]);return e});function vr(t,r,e,n){if(!y(t))return t;r=F(r,t);for(var a=-1,i=r.length,o=i-1,u=t;u!=null&&++a0){if(++n>=He)return arguments[0]}else n=0;return r.apply(void 0,arguments)}}function Xe(r){return function(){return r}}var er=function(){try{var r=F(Object,"defineProperty");return r({},"",{}),r}catch{}}(),Ye=er?function(r,n){return er(r,"toString",{configurable:!0,enumerable:!1,value:Xe(n),writable:!0})}:or,mn=We(Ye);function Ze(r,n){for(var e=-1,t=r==null?0:r.length;++e-1&&r%1==0&&r-1&&r%1==0&&r<=rt}function N(r){return r!=null&&Cr(r.length)&&!Pr(r)}function nt(r,n,e){if(!m(e))return!1;var t=typeof n;return(t=="number"?N(e)&&fr(n,e.length):t=="string"&&n in e)?V(e[n],r):!1}function et(r){return ke(function(n,e){var t=-1,i=e.length,a=i>1?e[i-1]:void 0,o=i>2?e[2]:void 0;for(a=r.length>3&&typeof a=="function"?(i--,a):void 0,o&&nt(e[0],e[1],o)&&(a=i<3?void 0:a,i=1),n=Object(n);++t-1}function li(r,n){var e=this.__data__,t=cr(e,r);return t<0?(++this.size,e.push([r,n])):e[t][1]=n,this}function x(r){var n=-1,e=r==null?0:r.length;for(this.clear();++ni?0:i+n),e=e>i?i:e,e<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var a=Array(i);++t=t?r:Ln(r,n,e)}var ji="\\ud800-\\udfff",Fi="\\u0300-\\u036f",Ni="\\ufe20-\\ufe2f",Di="\\u20d0-\\u20ff",Ui=Fi+Ni+Di,Gi="\\ufe0e\\ufe0f",Bi="\\u200d",Hi=RegExp("["+Bi+ji+Ui+Gi+"]");function jn(r){return Hi.test(r)}function zi(r){return r.split("")}var Fn="\\ud800-\\udfff",Ki="\\u0300-\\u036f",Wi="\\ufe20-\\ufe2f",Xi="\\u20d0-\\u20ff",Yi=Ki+Wi+Xi,Zi="\\ufe0e\\ufe0f",qi="["+Fn+"]",vr="["+Yi+"]",_r="\\ud83c[\\udffb-\\udfff]",Ji="(?:"+vr+"|"+_r+")",Nn="[^"+Fn+"]",Dn="(?:\\ud83c[\\udde6-\\uddff]){2}",Un="[\\ud800-\\udbff][\\udc00-\\udfff]",Qi="\\u200d",Gn=Ji+"?",Bn="["+Zi+"]?",Vi="(?:"+Qi+"(?:"+[Nn,Dn,Un].join("|")+")"+Bn+Gn+")*",ki=Bn+Gn+Vi,ra="(?:"+[Nn+vr+"?",vr,Dn,Un,qi].join("|")+")",na=RegExp(_r+"(?="+_r+")|"+ra+ki,"g");function ea(r){return r.match(na)||[]}function ta(r){return jn(r)?ea(r):zi(r)}function ia(r){return function(n){n=Cn(n);var e=jn(n)?ta(n):void 0,t=e?e[0]:n.charAt(0),i=e?Li(e,1).join(""):n.slice(1);return t[r]()+i}}var Vf=ia("toUpperCase");function aa(){this.__data__=new x,this.size=0}function oa(r){var n=this.__data__,e=n.delete(r);return this.size=n.size,e}function fa(r){return this.__data__.get(r)}function ua(r){return this.__data__.has(r)}var sa=200;function ca(r,n){var e=this.__data__;if(e instanceof x){var t=e.__data__;if(!Q||t.lengthf))return!1;var s=a.get(r),c=a.get(n);if(s&&c)return s==n&&c==r;var l=-1,g=!0,h=e&Go?new ir:void 0;for(a.set(r,n),a.set(n,r);++l=n||M<0||l&&X>=a}function b(){var _=yr();if(y(_))return P(_);f=setTimeout(b,T(_))}function P(_){return f=void 0,g&&t?h(_):(t=i=void 0,o)}function rr(){f!==void 0&&clearTimeout(f),s=0,t=u=i=f=void 0}function D(){return f===void 0?o:P(yr())}function I(){var _=yr(),M=y(_);if(t=arguments,i=this,u=_,M){if(f===void 0)return v(u);if(l)return clearTimeout(f),f=setTimeout(b,n),h(u)}return f===void 0&&(f=setTimeout(b,n)),o}return I.cancel=rr,I.flush=D,I}function Ar(r,n,e){(e!==void 0&&!V(r[n],e)||e===void 0&&!(n in r))&&Er(r,n,e)}function Rf(r){return E(r)&&N(r)}function wr(r,n){if(!(n==="constructor"&&typeof r[n]=="function")&&n!="__proto__")return r[n]}function Lf(r){return H(r,z(r))}function jf(r,n,e,t,i,a,o){var f=wr(r,e),u=wr(n,e),s=o.get(u);if(s){Ar(r,e,s);return}var c=a?a(f,u,e+"",r,n,o):void 0,l=c===void 0;if(l){var g=$(u),h=!g&&G(u),v=!g&&!h&&sr(u);c=u,g||h||v?$(f)?c=f:Rf(f)?c=$n(f):h?(l=!1,c=zn(u,!0)):v?(l=!1,c=Zn(u,!0)):c=[]:Rn(u)||U(u)?(c=f,U(f)?c=Lf(f):(!m(f)||Pr(f))&&(c=qn(u))):l=!1}l&&(o.set(u,c),i(c,u,t,a,o),o.delete(u)),Ar(r,e,c)}function te(r,n,e,t,i){r!==n&&Ur(n,function(a,o){if(i||(i=new w),m(a))jf(r,n,o,e,te,t,i);else{var f=t?t(wr(r,o),a,o+"",r,n,i):void 0;f===void 0&&(f=a),Ar(r,o,f)}},z)}function Ff(r){var n=r==null?0:r.length;return n?r[n-1]:void 0}function Nf(r){return typeof r=="function"?r:or}function Df(r,n){var e=-1,t=N(r)?Array(r.length):[];return Ef(r,function(i,a,o){t[++e]=n(i,a,o)}),t}function ru(r,n){var e=$(r)?Sr:Df;return e(r,Af(n))}function nu(r,n){return r==null?r:Ur(r,Nf(n),z)}function Uf(r,n){return n.length<2?r:gr(r,Ln(n,0,-1))}var Gf="[object Map]",Bf="[object Set]",Hf=Object.prototype,zf=Hf.hasOwnProperty;function eu(r){if(r==null)return!0;if(N(r)&&($(r)||typeof r=="string"||typeof r.splice=="function"||G(r)||sr(r)||U(r)))return!r.length;var n=O(r);if(n==Gf||n==Bf)return!r.size;if(ur(r))return!xn(r).length;for(var e in r)if(zf.call(r,e))return!1;return!0}var tu=et(function(r,n,e){te(r,n,e)});function Kf(r,n){return n=K(n,r),r=Uf(r,n),r==null||delete r[W(Ff(n))]}function Wf(r){return Rn(r)?void 0:r}var Xf=1,Yf=2,Zf=4,iu=In(function(r,n){var e={};if(r==null)return e;var t=!1;n=Sr(n,function(a){return a=K(a,r),t||(t=a.length>1),a}),H(r,Yn(r),e),t&&(e=q(e,Xf|Yf|Zf,Wf));for(var i=n.length;i--;)Kf(e,n[i]);return e});function ie(r,n,e,t){if(!m(r))return r;n=K(n,r);for(var i=-1,a=n.length,o=a-1,f=r;f!=null&&++i{r[n]=e[n]}),Object.assign(r,o)}function $r(e,t=[],o){const r={};return Object.getOwnPropertyNames(e).forEach(a=>{t.includes(a)||(r[a]=e[a])}),Object.assign(r,o)}function Io(e,t=!0,o=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&o.push(ji(String(r)));return}if(Array.isArray(r)){Io(r,t,o);return}if(r.type===Wt){if(r.children===null)return;Array.isArray(r.children)&&Io(r.children,t,o)}else{if(r.type===sa&&t)return;o.push(r)}}}),o}function ae(e,...t){if(Array.isArray(e))e.forEach(o=>ae(o,...t));else return e(...t)}function ko(e){return Object.keys(e)}function St(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?ji(e):typeof e=="number"?ji(String(e)):null}const rl=new Set;function Ku(e,t){const o=`[naive/${e}]: ${t}`;rl.has(o)||(rl.add(o),console.error(o))}function go(e,t){console.error(`[naive/${e}]: ${t}`)}function Go(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Wi(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}function nl(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Ui(e,t="default",o=void 0){const r=e[t];if(!r)return go("getFirstSlotVNode",`slot[${t}] is empty`),null;const n=Io(r(o));return n.length===1?n[0]:(go("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function ss(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function ds(e){return t=>{t?e.value=t.$el:e.value=null}}function To(e){return e.some(t=>Iu(t)?!(t.type===sa||t.type===Wt&&!To(t.children)):!0)?e:null}function ft(e,t){return e&&To(e())||t()}function io(e,t,o){return e&&To(e(t))||o(t)}function mt(e,t){const o=e&&To(e());return t(o||null)}function _r(e){return!(e&&To(e()))}function nn(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 qu(e){var t;const o=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===_o);return!!(o&&o.value===!1)}const Ki=ie({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Gu=/^(\d|\.)+$/,il=/(\d|\.)+/;function _t(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(Gu.test(e)){const n=(Number(e)+o)*t;return r?n===0?"0":`${n}px`:`${n}`}else{const n=il.exec(e);return n?e.replace(il,String((Number(n[0])+o)*t)):e}return e}function ln(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function al(e){const{left:t,right:o,top:r,bottom:n}=qt(e);return`${r} ${o} ${n} ${t}`}const Yu="n",sn=`.${Yu}-`,Xu="__",Zu="--",cs=Vu(),us=Uu({blockPrefix:sn,elementPrefix:Xu,modifierPrefix:Zu});cs.use(us);const{c:k,find:GC}=cs,{cB:m,cE:P,cM:z,cNotM:nt}=us;function jr(e){return k(({props:{bPrefix:t}})=>`${t||sn}modal, ${t||sn}drawer`,[e])}function pn(e){return k(({props:{bPrefix:t}})=>`${t||sn}popover`,[e])}function fs(e){return k(({props:{bPrefix:t}})=>`&${t||sn}modal`,e)}const Qu=(...e)=>k(">",[m(...e)]);function le(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}let hi;function Ju(){return hi===void 0&&(hi=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),hi}const bo=typeof document<"u"&&typeof window<"u",hs=new WeakSet;function dn(e){hs.add(e)}function vs(e){return!hs.has(e)}function ef(e,t,o){var r;const n=Ae(e,null);if(n===null)return;const a=(r=da())===null||r===void 0?void 0:r.proxy;vt(o,s),s(o.value),mo(()=>{s(void 0,o.value)});function s(c,u){if(!n)return;const f=n[t];u!==void 0&&l(f,u),c!==void 0&&d(f,c)}function l(c,u){c[u]||(c[u]=[]),c[u].splice(c[u].findIndex(f=>f===a),1)}function d(c,u){c[u]||(c[u]=[]),~c[u].findIndex(f=>f===a)||c[u].push(a)}}function tf(e,t,o){const r=B(e.value);let n=null;return vt(e,a=>{n!==null&&window.clearTimeout(n),a===!0?o&&!o.value?r.value=!0:n=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}const pa="n-internal-select-menu",ps="n-internal-select-menu-body",gn="n-modal-body",of="n-modal-provider",gs="n-modal",mn="n-drawer-body",ga="n-drawer",Vr="n-popover-body",ms="__disabled__";function Gt(e){const t=Ae(gn,null),o=Ae(mn,null),r=Ae(Vr,null),n=Ae(ps,null),a=B();if(typeof document<"u"){a.value=document.fullscreenElement;const s=()=>{a.value=document.fullscreenElement};Jt(()=>{Zt("fullscreenchange",document,s)}),mo(()=>{Kt("fullscreenchange",document,s)})}return tt(()=>{var s;const{to:l}=e;return l!==void 0?l===!1?ms:l===!0?a.value||"body":l:t!=null&&t.value?(s=t.value.$el)!==null&&s!==void 0?s:t.value:o!=null&&o.value?o.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:l??(a.value||"body")})}Gt.tdkey=ms;Gt.propTo={type:[String,Object,Boolean],default:void 0};let ll=!1;function rf(){if(bo&&window.CSS&&!ll&&(ll=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function bs(e,t){t&&(Jt(()=>{const{value:o}=e;o&&Ja.registerHandler(o,t)}),mo(()=>{const{value:o}=e;o&&Ja.unregisterHandler(o)}))}let Br=0,sl="",dl="",cl="",ul="";const fl=B("0px");function xs(e){if(typeof document>"u")return;const t=document.documentElement;let o,r=!1;const n=()=>{t.style.marginRight=sl,t.style.overflow=dl,t.style.overflowX=cl,t.style.overflowY=ul,fl.value="0px"};Jt(()=>{o=vt(e,a=>{if(a){if(!Br){const s=window.innerWidth-t.offsetWidth;s>0&&(sl=t.style.marginRight,t.style.marginRight=`${s}px`,fl.value=`${s}px`),dl=t.style.overflow,cl=t.style.overflowX,ul=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Br++}else Br--,Br||n(),r=!1},{immediate:!0})}),mo(()=>{o==null||o(),r&&(Br--,Br||n(),r=!1)})}const ma=B(!1);function hl(){ma.value=!0}function vl(){ma.value=!1}let Qr=0;function Cs(){return bo&&(hn(()=>{Qr||(window.addEventListener("compositionstart",hl),window.addEventListener("compositionend",vl)),Qr++}),mo(()=>{Qr<=1?(window.removeEventListener("compositionstart",hl),window.removeEventListener("compositionend",vl),Qr=0):Qr--})),ma}function ba(e){const t={isDeactivated:!1};let o=!1;return Bu(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),os(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function nf(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)}const qi="n-form-item";function xo(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:r}={}){const n=Ae(qi,null);Je(qi,null);const a=C(o?()=>o(n):()=>{const{size:d}=e;if(d)return d;if(n){const{mergedSize:c}=n;if(c.value!==void 0)return c.value}return t}),s=C(r?()=>r(n):()=>{const{disabled:d}=e;return d!==void 0?d:n?n.disabled.value:!1}),l=C(()=>{const{status:d}=e;return d||(n==null?void 0:n.mergedValidationStatus.value)});return mo(()=>{n&&n.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:s,mergedStatusRef:l,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}const Co={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:af,fontFamily:lf,lineHeight:sf}=Co,ys=k("body",` + margin: 0; + font-size: ${af}; + font-family: ${lf}; + line-height: ${sf}; + -webkit-text-size-adjust: 100%; + -webkit-tap-highlight-color: transparent; +`,[k("input",` + font-family: inherit; + font-size: inherit; + `)]),Ro="n-config-provider",Hr="naive-ui-style";function Re(e,t,o,r,n,a){const s=oi(),l=Ae(Ro,null);if(o){const c=()=>{const u=a==null?void 0:a.value;o.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:Hr,ssr:s,parent:l==null?void 0:l.styleMountTarget}),l!=null&&l.preflightStyleDisabled||ys.mount({id:"n-global",head:!0,anchorMetaName:Hr,ssr:s,parent:l==null?void 0:l.styleMountTarget})};s?c():hn(c)}return C(()=>{var c;const{theme:{common:u,self:f,peers:v={}}={},themeOverrides:p={},builtinThemeOverrides:h={}}=n,{common:g,peers:b}=p,{common:y=void 0,[e]:{common:x=void 0,self:T=void 0,peers:$={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:R=void 0,[e]:w={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:S,peers:A={}}=w,I=Mr({},u||x||y||r.common,R,S,g),M=Mr((c=f||T||r.self)===null||c===void 0?void 0:c(I),h,w,p);return{common:I,self:M,peers:Mr({},r.peers,$,v),peerOverrides:Mr({},h.peers,A,b)}})}Re.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Xn="n";function Ze(e={},t={defaultBordered:!0}){const o=Ae(Ro,null);return{inlineThemeDisabled:o==null?void 0:o.inlineThemeDisabled,mergedRtlRef:o==null?void 0:o.mergedRtlRef,mergedComponentPropsRef:o==null?void 0:o.mergedComponentPropsRef,mergedBreakpointsRef:o==null?void 0:o.mergedBreakpointsRef,mergedBorderedRef:C(()=>{var r,n;const{bordered:a}=e;return a!==void 0?a:(n=(r=o==null?void 0:o.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&n!==void 0?n:!0}),mergedClsPrefixRef:o?o.mergedClsPrefixRef:rs(Xn),namespaceRef:C(()=>o==null?void 0:o.mergedNamespaceRef.value)}}function ws(){const e=Ae(Ro,null);return e?e.mergedClsPrefixRef:rs(Xn)}const YC={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},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:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"}},df={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`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"}},XC={name:"zh-CN",locale:mu},cf={name:"en-US",locale:bu};function zo(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=Ae(Ro,null)||{},r=C(()=>{var a,s;return(s=(a=t==null?void 0:t.value)===null||a===void 0?void 0:a[e])!==null&&s!==void 0?s:df[e]});return{dateLocaleRef:C(()=>{var a;return(a=o==null?void 0:o.value)!==null&&a!==void 0?a:cf}),localeRef:r}}function dr(e,t,o){if(!t)return;const r=oi(),n=Ae(Ro,null),a=()=>{const s=o.value;t.mount({id:s===void 0?e:s+e,head:!0,anchorMetaName:Hr,props:{bPrefix:s?`.${s}-`:void 0},ssr:r,parent:n==null?void 0:n.styleMountTarget}),n!=null&&n.preflightStyleDisabled||ys.mount({id:"n-global",head:!0,anchorMetaName:Hr,ssr:r,parent:n==null?void 0:n.styleMountTarget})};r?a():hn(a)}function it(e,t,o,r){o||Go("useThemeClass","cssVarsRef is not passed");const n=Ae(Ro,null),a=n==null?void 0:n.mergedThemeHashRef,s=n==null?void 0:n.styleMountTarget,l=B(""),d=oi();let c;const u=`__${e}`,f=()=>{let v=u;const p=t?t.value:void 0,h=a==null?void 0:a.value;h&&(v+=`-${h}`),p&&(v+=`-${p}`);const{themeOverrides:g,builtinThemeOverrides:b}=r;g&&(v+=`-${Yn(JSON.stringify(g))}`),b&&(v+=`-${Yn(JSON.stringify(b))}`),l.value=v,c=()=>{const y=o.value;let x="";for(const T in y)x+=`${T}: ${y[T]};`;k(`.${v}`,x).mount({id:v,ssr:d,parent:s}),c=void 0}};return $t(()=>{f()}),{themeClass:l,onRender:()=>{c==null||c()}}}function Nt(e,t,o){if(!t)return;const r=oi(),n=C(()=>{const{value:l}=t;if(!l)return;const d=l[e];if(d)return d}),a=Ae(Ro,null),s=()=>{$t(()=>{const{value:l}=o,d=`${l}${e}Rtl`;if(Wu(d,r))return;const{value:c}=n;c&&c.style.mount({id:d,head:!0,anchorMetaName:Hr,props:{bPrefix:l?`.${l}-`:void 0},ssr:r,parent:a==null?void 0:a.styleMountTarget})})};return r?s():hn(s),n}const xa=ie({name:"Add",render(){return i("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),uf=ie({name:"ArrowDown",render(){return i("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},i("g",{"fill-rule":"nonzero"},i("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function Yo(e,t){return ie({name:Lu(e),setup(){var o;const r=(o=Ae(Ro,null))===null||o===void 0?void 0:o.mergedIconsRef;return()=>{var n;const a=(n=r==null?void 0:r.value)===null||n===void 0?void 0:n[e];return a?a():t}}})}const ir=ie({name:"Backward",render(){return i("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),pl=Yo("date",i("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},i("g",{"fill-rule":"nonzero"},i("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),ff=ie({name:"Checkmark",render(){return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},i("g",{fill:"none"},i("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"})))}}),Ca=ie({name:"ChevronRight",render(){return i("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("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"}))}}),hf=Yo("close",i("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},i("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},i("g",{fill:"currentColor","fill-rule":"nonzero"},i("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"}))))),vf=ie({name:"Eye",render(){return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},i("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"}),i("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),pf=ie({name:"EyeOff",render(){return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},i("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"}),i("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"}),i("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"}),i("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"}),i("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"}))}}),gf=ie({name:"Empty",render(){return i("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("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"}),i("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"}))}}),bn=Yo("error",i("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},i("g",{"fill-rule":"nonzero"},i("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"}))))),ar=ie({name:"FastBackward",render(){return i("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},i("g",{fill:"currentColor","fill-rule":"nonzero"},i("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),lr=ie({name:"FastForward",render(){return i("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},i("g",{fill:"currentColor","fill-rule":"nonzero"},i("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),mf=ie({name:"Filter",render(){return i("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},i("g",{"fill-rule":"nonzero"},i("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),sr=ie({name:"Forward",render(){return i("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Er=Yo("info",i("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},i("g",{"fill-rule":"nonzero"},i("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"}))))),gl=ie({name:"More",render(){return i("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},i("g",{fill:"currentColor","fill-rule":"nonzero"},i("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),bf=ie({name:"Remove",render(){return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},i("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` + fill: none; + stroke: currentColor; + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: 32px; + `}))}}),xn=Yo("success",i("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},i("g",{"fill-rule":"nonzero"},i("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"}))))),xf=ie({name:"Switcher",render(){return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},i("path",{d:"M12 8l10 8l-10 8z"}))}}),Cf=Yo("time",i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},i("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` + fill: none; + stroke: currentColor; + stroke-miterlimit: 10; + stroke-width: 32px; + `}),i("polyline",{points:"256 128 256 272 352 272",style:` + fill: none; + stroke: currentColor; + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: 32px; + `}))),Cn=Yo("warning",i("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},i("g",{"fill-rule":"nonzero"},i("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"}))))),Ss=ie({name:"ChevronDown",render(){return i("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),yf=Yo("clear",i("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},i("g",{fill:"currentColor","fill-rule":"nonzero"},i("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),wf=ie({name:"ChevronDownFilled",render(){return i("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),Sf=Yo("to",i("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},i("g",{fill:"currentColor","fill-rule":"nonzero"},i("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),cr=ie({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=qo();return()=>i(Vt,{name:"icon-switch-transition",appear:o.value},t)}}),yn=ie({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function o(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:d}=e;d&&d()}function n(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:d}=e;d&&d()}function a(l){if(l.style.transition="none",e.width){const d=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${d}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const d=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${d}px`}l.offsetWidth}function s(l){var d;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(d=e.onAfterEnter)===null||d===void 0||d.call(e)}return()=>{const{group:l,width:d,appear:c,mode:u}=e,f=l?is:Vt,v={name:d?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:a,onAfterEnter:s,onBeforeLeave:o,onLeave:r,onAfterLeave:n};return l||(v.mode=u),i(f,v,t)}}}),kf=m("base-icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; + transform: translateZ(0); +`,[k("svg",` + height: 1em; + width: 1em; + `)]),kt=ie({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){dr("-base-icon",kf,fe(e,"clsPrefix"))},render(){return i("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)}}),Rf=m("base-close",` + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + background-color: transparent; + color: var(--n-close-icon-color); + border-radius: var(--n-close-border-radius); + height: var(--n-close-size); + width: var(--n-close-size); + font-size: var(--n-close-icon-size); + outline: none; + border: none; + position: relative; + padding: 0; +`,[z("absolute",` + height: var(--n-close-icon-size); + width: var(--n-close-icon-size); + `),k("&::before",` + content: ""; + position: absolute; + width: var(--n-close-size); + height: var(--n-close-size); + left: 50%; + top: 50%; + transform: translateY(-50%) translateX(-50%); + transition: inherit; + border-radius: inherit; + `),nt("disabled",[k("&:hover",` + color: var(--n-close-icon-color-hover); + `),k("&:hover::before",` + background-color: var(--n-close-color-hover); + `),k("&:focus::before",` + background-color: var(--n-close-color-hover); + `),k("&:active",` + color: var(--n-close-icon-color-pressed); + `),k("&:active::before",` + background-color: var(--n-close-color-pressed); + `)]),z("disabled",` + cursor: not-allowed; + color: var(--n-close-icon-color-disabled); + background-color: transparent; + `),z("round",[k("&::before",` + border-radius: 50%; + `)])]),ur=ie({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 dr("-base-close",Rf,fe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:r,round:n,isButtonTag:a}=e;return i(a?"button":"div",{type:a?"button":void 0,tabindex:o||!e.focusable?-1:0,"aria-disabled":o,"aria-label":"close",role:a?void 0:"button",disabled:o,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,n&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},i(kt,{clsPrefix:t},{default:()=>i(hf,null)}))}}}),fr=ie({props:{onFocus:Function,onBlur:Function},setup(e){return()=>i("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:zf}=Co;function uo({originalTransform:e="",left:t=0,top:o=0,transition:r=`all .3s ${zf} !important`}={}){return[k("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:o,opacity:0}),k("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),k("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:r})]}const Pf=k([k("@keyframes rotator",` + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + }`),m("base-loading",` + position: relative; + line-height: 0; + width: 1em; + height: 1em; + `,[P("transition-wrapper",` + position: absolute; + width: 100%; + height: 100%; + `,[uo()]),P("placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[uo({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),P("container",` + animation: rotator 3s linear infinite both; + `,[P("icon",` + height: 1em; + width: 1em; + `)])])]),vi="1.6s",$f={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Xo=ie({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}},$f),setup(e){dr("-base-loading",Pf,fe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:r,scale:n}=this,a=t/n;return i("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},i(cr,null,{default:()=>this.show?i("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},i("div",{class:`${e}-base-loading__container`},i("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},i("g",null,i("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${a} ${a};270 ${a} ${a}`,begin:"0s",dur:vi,fill:"freeze",repeatCount:"indefinite"}),i("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:a,cy:a,r:t-o/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},i("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${a} ${a};135 ${a} ${a};450 ${a} ${a}`,begin:"0s",dur:vi,fill:"freeze",repeatCount:"indefinite"}),i("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:vi,fill:"freeze",repeatCount:"indefinite"})))))):i("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),qe={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},Tf=so(qe.neutralBase),ks=so(qe.neutralInvertBase),Ff=`rgba(${ks.slice(0,3).join(", ")}, `;function wt(e){return`${Ff+String(e)})`}function If(e){const t=Array.from(ks);return t[3]=Number(e),We(Tf,t)}const _e=Object.assign(Object.assign({name:"common"},Co),{baseColor:qe.neutralBase,primaryColor:qe.primaryDefault,primaryColorHover:qe.primaryHover,primaryColorPressed:qe.primaryActive,primaryColorSuppl:qe.primarySuppl,infoColor:qe.infoDefault,infoColorHover:qe.infoHover,infoColorPressed:qe.infoActive,infoColorSuppl:qe.infoSuppl,successColor:qe.successDefault,successColorHover:qe.successHover,successColorPressed:qe.successActive,successColorSuppl:qe.successSuppl,warningColor:qe.warningDefault,warningColorHover:qe.warningHover,warningColorPressed:qe.warningActive,warningColorSuppl:qe.warningSuppl,errorColor:qe.errorDefault,errorColorHover:qe.errorHover,errorColorPressed:qe.errorActive,errorColorSuppl:qe.errorSuppl,textColorBase:qe.neutralTextBase,textColor1:wt(qe.alpha1),textColor2:wt(qe.alpha2),textColor3:wt(qe.alpha3),textColorDisabled:wt(qe.alpha4),placeholderColor:wt(qe.alpha4),placeholderColorDisabled:wt(qe.alpha5),iconColor:wt(qe.alpha4),iconColorDisabled:wt(qe.alpha5),iconColorHover:wt(Number(qe.alpha4)*1.25),iconColorPressed:wt(Number(qe.alpha4)*.8),opacity1:qe.alpha1,opacity2:qe.alpha2,opacity3:qe.alpha3,opacity4:qe.alpha4,opacity5:qe.alpha5,dividerColor:wt(qe.alphaDivider),borderColor:wt(qe.alphaBorder),closeIconColorHover:wt(Number(qe.alphaClose)),closeIconColor:wt(Number(qe.alphaClose)),closeIconColorPressed:wt(Number(qe.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:wt(qe.alpha4),clearColorHover:jt(wt(qe.alpha4),{alpha:1.25}),clearColorPressed:jt(wt(qe.alpha4),{alpha:.8}),scrollbarColor:wt(qe.alphaScrollbar),scrollbarColorHover:wt(qe.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:wt(qe.alphaProgressRail),railColor:wt(qe.alphaRail),popoverColor:qe.neutralPopover,tableColor:qe.neutralCard,cardColor:qe.neutralCard,modalColor:qe.neutralModal,bodyColor:qe.neutralBody,tagColor:If(qe.alphaTag),avatarColor:wt(qe.alphaAvatar),invertedColor:qe.neutralBase,inputColor:wt(qe.alphaInput),codeColor:wt(qe.alphaCode),tabColor:wt(qe.alphaTab),actionColor:wt(qe.alphaAction),tableHeaderColor:wt(qe.alphaAction),hoverColor:wt(qe.alphaPending),tableColorHover:wt(qe.alphaTablePending),tableColorStriped:wt(qe.alphaTableStriped),pressedColor:wt(qe.alphaPressed),opacityDisabled:qe.alphaDisabled,inputColorDisabled:wt(qe.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",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)"}),rt={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"},Bf=so(rt.neutralBase),Rs=so(rt.neutralInvertBase),Of=`rgba(${Rs.slice(0,3).join(", ")}, `;function ml(e){return`${Of+String(e)})`}function oo(e){const t=Array.from(Rs);return t[3]=Number(e),We(Bf,t)}const lt=Object.assign(Object.assign({name:"common"},Co),{baseColor:rt.neutralBase,primaryColor:rt.primaryDefault,primaryColorHover:rt.primaryHover,primaryColorPressed:rt.primaryActive,primaryColorSuppl:rt.primarySuppl,infoColor:rt.infoDefault,infoColorHover:rt.infoHover,infoColorPressed:rt.infoActive,infoColorSuppl:rt.infoSuppl,successColor:rt.successDefault,successColorHover:rt.successHover,successColorPressed:rt.successActive,successColorSuppl:rt.successSuppl,warningColor:rt.warningDefault,warningColorHover:rt.warningHover,warningColorPressed:rt.warningActive,warningColorSuppl:rt.warningSuppl,errorColor:rt.errorDefault,errorColorHover:rt.errorHover,errorColorPressed:rt.errorActive,errorColorSuppl:rt.errorSuppl,textColorBase:rt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:oo(rt.alpha4),placeholderColor:oo(rt.alpha4),placeholderColorDisabled:oo(rt.alpha5),iconColor:oo(rt.alpha4),iconColorHover:jt(oo(rt.alpha4),{lightness:.75}),iconColorPressed:jt(oo(rt.alpha4),{lightness:.9}),iconColorDisabled:oo(rt.alpha5),opacity1:rt.alpha1,opacity2:rt.alpha2,opacity3:rt.alpha3,opacity4:rt.alpha4,opacity5:rt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:oo(Number(rt.alphaClose)),closeIconColorHover:oo(Number(rt.alphaClose)),closeIconColorPressed:oo(Number(rt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:oo(rt.alpha4),clearColorHover:jt(oo(rt.alpha4),{lightness:.75}),clearColorPressed:jt(oo(rt.alpha4),{lightness:.9}),scrollbarColor:ml(rt.alphaScrollbar),scrollbarColorHover:ml(rt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:oo(rt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:rt.neutralPopover,tableColor:rt.neutralCard,cardColor:rt.neutralCard,modalColor:rt.neutralModal,bodyColor:rt.neutralBody,tagColor:"#eee",avatarColor:oo(rt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:oo(rt.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:rt.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)"}),Df={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function zs(e){const{textColorDisabled:t,iconColor:o,textColor2:r,fontSizeTiny:n,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:l,fontSizeHuge:d}=e;return Object.assign(Object.assign({},Df),{fontSizeTiny:n,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:l,fontSizeHuge:d,textColor:t,iconColor:o,extraTextColor:r})}const wn={name:"Empty",common:lt,self:zs},Tr={name:"Empty",common:_e,self:zs},Mf=m("empty",` + display: flex; + flex-direction: column; + align-items: center; + font-size: var(--n-font-size); +`,[P("icon",` + width: var(--n-icon-size); + height: var(--n-icon-size); + font-size: var(--n-icon-size); + line-height: var(--n-icon-size); + color: var(--n-icon-color); + transition: + color .3s var(--n-bezier); + `,[k("+",[P("description",` + margin-top: 8px; + `)])]),P("description",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),P("extra",` + text-align: center; + transition: color .3s var(--n-bezier); + margin-top: 12px; + color: var(--n-extra-text-color); + `)]),Af=Object.assign(Object.assign({},Re.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Zn=ie({name:"Empty",props:Af,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedComponentPropsRef:r}=Ze(e),n=Re("Empty","-empty",Mf,wn,e,t),{localeRef:a}=zo("Empty"),s=C(()=>{var u,f,v;return(u=e.description)!==null&&u!==void 0?u:(v=(f=r==null?void 0:r.value)===null||f===void 0?void 0:f.Empty)===null||v===void 0?void 0:v.description}),l=C(()=>{var u,f;return((f=(u=r==null?void 0:r.value)===null||u===void 0?void 0:u.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>i(gf,null))}),d=C(()=>{const{size:u}=e,{common:{cubicBezierEaseInOut:f},self:{[le("iconSize",u)]:v,[le("fontSize",u)]:p,textColor:h,iconColor:g,extraTextColor:b}}=n.value;return{"--n-icon-size":v,"--n-font-size":p,"--n-bezier":f,"--n-text-color":h,"--n-icon-color":g,"--n-extra-text-color":b}}),c=o?it("empty",C(()=>{let u="";const{size:f}=e;return u+=f[0],u}),d,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:C(()=>s.value||a.value.description),cssVars:o?void 0:d,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),i("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?i("div",{class:`${t}-empty__icon`},e.icon?e.icon():i(kt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?i("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?i("div",{class:`${t}-empty__extra`},e.extra()):null)}}),_f={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function Ps(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:r,scrollbarWidth:n,scrollbarBorderRadius:a}=e;return Object.assign(Object.assign({},_f),{height:r,width:n,borderRadius:a,color:t,colorHover:o})}const Eo={name:"Scrollbar",common:lt,self:Ps},fo={name:"Scrollbar",common:_e,self:Ps},{cubicBezierEaseInOut:bl}=Co;function Sn({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:r=bl,leaveCubicBezier:n=bl}={}){return[k(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),k(`&.${e}-transition-leave-active`,{transition:`all ${o} ${n}!important`}),k(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),k(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const Hf=m("scrollbar",` + overflow: hidden; + position: relative; + z-index: auto; + height: 100%; + width: 100%; +`,[k(">",[m("scrollbar-container",` + width: 100%; + overflow: scroll; + height: 100%; + min-height: inherit; + max-height: inherit; + scrollbar-width: none; + `,[k("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),k(">",[m("scrollbar-content",` + box-sizing: border-box; + min-width: 100%; + `)])])]),k(">, +",[m("scrollbar-rail",` + position: absolute; + pointer-events: none; + user-select: none; + background: var(--n-scrollbar-rail-color); + -webkit-user-select: none; + `,[z("horizontal",` + height: var(--n-scrollbar-height); + `,[k(">",[P("scrollbar",` + height: var(--n-scrollbar-height); + border-radius: var(--n-scrollbar-border-radius); + right: 0; + `)])]),z("horizontal--top",` + inset: var(--n-scrollbar-rail-inset-horizontal-top); + `),z("horizontal--bottom",` + inset: var(--n-scrollbar-rail-inset-horizontal-bottom); + `),z("vertical",` + width: var(--n-scrollbar-width); + `,[k(">",[P("scrollbar",` + width: var(--n-scrollbar-width); + border-radius: var(--n-scrollbar-border-radius); + bottom: 0; + `)])]),z("vertical--left",` + inset: var(--n-scrollbar-rail-inset-vertical-left); + `),z("vertical--right",` + inset: var(--n-scrollbar-rail-inset-vertical-right); + `),z("disabled",[k(">",[P("scrollbar","pointer-events: none;")])]),k(">",[P("scrollbar",` + z-index: 1; + position: absolute; + cursor: pointer; + pointer-events: all; + background-color: var(--n-scrollbar-color); + transition: background-color .2s var(--n-scrollbar-bezier); + `,[Sn(),k("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),Ef=Object.assign(Object.assign({},Re.props),{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,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),Lt=ie({name:"Scrollbar",props:Ef,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:r}=Ze(e),n=Nt("Scrollbar",r,t),a=B(null),s=B(null),l=B(null),d=B(null),c=B(null),u=B(null),f=B(null),v=B(null),p=B(null),h=B(null),g=B(null),b=B(0),y=B(0),x=B(!1),T=B(!1);let $=!1,R=!1,w,S,A=0,I=0,M=0,V=0;const D=_u(),E=Re("Scrollbar","-scrollbar",Hf,Eo,e,t),K=C(()=>{const{value:O}=v,{value:Y}=u,{value:ve}=h;return O===null||Y===null||ve===null?0:Math.min(O,ve*O/Y+Mt(E.value.self.width)*1.5)}),N=C(()=>`${K.value}px`),oe=C(()=>{const{value:O}=p,{value:Y}=f,{value:ve}=g;return O===null||Y===null||ve===null?0:ve*O/Y+Mt(E.value.self.height)*1.5}),q=C(()=>`${oe.value}px`),re=C(()=>{const{value:O}=v,{value:Y}=b,{value:ve}=u,{value:Fe}=h;if(O===null||ve===null||Fe===null)return 0;{const Be=ve-O;return Be?Y/Be*(Fe-K.value):0}}),me=C(()=>`${re.value}px`),ue=C(()=>{const{value:O}=p,{value:Y}=y,{value:ve}=f,{value:Fe}=g;if(O===null||ve===null||Fe===null)return 0;{const Be=ve-O;return Be?Y/Be*(Fe-oe.value):0}}),W=C(()=>`${ue.value}px`),H=C(()=>{const{value:O}=v,{value:Y}=u;return O!==null&&Y!==null&&Y>O}),F=C(()=>{const{value:O}=p,{value:Y}=f;return O!==null&&Y!==null&&Y>O}),j=C(()=>{const{trigger:O}=e;return O==="none"||x.value}),J=C(()=>{const{trigger:O}=e;return O==="none"||T.value}),se=C(()=>{const{container:O}=e;return O?O():s.value}),be=C(()=>{const{content:O}=e;return O?O():l.value}),Ie=(O,Y)=>{if(!e.scrollable)return;if(typeof O=="number"){Ge(O,Y??0,0,!1,"auto");return}const{left:ve,top:Fe,index:Be,elSize:U,position:ge,behavior:Te,el:je,debounce:dt=!0}=O;(ve!==void 0||Fe!==void 0)&&Ge(ve??0,Fe??0,0,!1,Te),je!==void 0?Ge(0,je.offsetTop,je.offsetHeight,dt,Te):Be!==void 0&&U!==void 0?Ge(0,Be*U,U,dt,Te):ge==="bottom"?Ge(0,Number.MAX_SAFE_INTEGER,0,!1,Te):ge==="top"&&Ge(0,0,0,!1,Te)},_=ba(()=>{e.container||Ie({top:b.value,left:y.value})}),Pe=()=>{_.isDeactivated||L()},Me=O=>{if(_.isDeactivated)return;const{onResize:Y}=e;Y&&Y(O),L()},Ee=(O,Y)=>{if(!e.scrollable)return;const{value:ve}=se;ve&&(typeof O=="object"?ve.scrollBy(O):ve.scrollBy(O,Y||0))};function Ge(O,Y,ve,Fe,Be){const{value:U}=se;if(U){if(Fe){const{scrollTop:ge,offsetHeight:Te}=U;if(Y>ge){Y+ve<=ge+Te||U.scrollTo({left:O,top:Y+ve-Te,behavior:Be});return}}U.scrollTo({left:O,top:Y,behavior:Be})}}function Ye(){ce(),G(),L()}function st(){ot()}function ot(){xe(),te()}function xe(){S!==void 0&&window.clearTimeout(S),S=window.setTimeout(()=>{T.value=!1},e.duration)}function te(){w!==void 0&&window.clearTimeout(w),w=window.setTimeout(()=>{x.value=!1},e.duration)}function ce(){w!==void 0&&window.clearTimeout(w),x.value=!0}function G(){S!==void 0&&window.clearTimeout(S),T.value=!0}function Q(O){const{onScroll:Y}=e;Y&&Y(O),pe()}function pe(){const{value:O}=se;O&&(b.value=O.scrollTop,y.value=O.scrollLeft*(n!=null&&n.value?-1:1))}function Ce(){const{value:O}=be;O&&(u.value=O.offsetHeight,f.value=O.offsetWidth);const{value:Y}=se;Y&&(v.value=Y.offsetHeight,p.value=Y.offsetWidth);const{value:ve}=c,{value:Fe}=d;ve&&(g.value=ve.offsetWidth),Fe&&(h.value=Fe.offsetHeight)}function de(){const{value:O}=se;O&&(b.value=O.scrollTop,y.value=O.scrollLeft*(n!=null&&n.value?-1:1),v.value=O.offsetHeight,p.value=O.offsetWidth,u.value=O.scrollHeight,f.value=O.scrollWidth);const{value:Y}=c,{value:ve}=d;Y&&(g.value=Y.offsetWidth),ve&&(h.value=ve.offsetHeight)}function L(){e.scrollable&&(e.useUnifiedContainer?de():(Ce(),pe()))}function we(O){var Y;return!(!((Y=a.value)===null||Y===void 0)&&Y.contains(Uo(O)))}function Ke(O){O.preventDefault(),O.stopPropagation(),R=!0,Zt("mousemove",window,Ct,!0),Zt("mouseup",window,Tt,!0),I=y.value,M=n!=null&&n.value?window.innerWidth-O.clientX:O.clientX}function Ct(O){if(!R)return;w!==void 0&&window.clearTimeout(w),S!==void 0&&window.clearTimeout(S);const{value:Y}=p,{value:ve}=f,{value:Fe}=oe;if(Y===null||ve===null)return;const U=(n!=null&&n.value?window.innerWidth-O.clientX-M:O.clientX-M)*(ve-Y)/(Y-Fe),ge=ve-Y;let Te=I+U;Te=Math.min(ge,Te),Te=Math.max(Te,0);const{value:je}=se;if(je){je.scrollLeft=Te*(n!=null&&n.value?-1:1);const{internalOnUpdateScrollLeft:dt}=e;dt&&dt(Te)}}function Tt(O){O.preventDefault(),O.stopPropagation(),Kt("mousemove",window,Ct,!0),Kt("mouseup",window,Tt,!0),R=!1,L(),we(O)&&ot()}function ht(O){O.preventDefault(),O.stopPropagation(),$=!0,Zt("mousemove",window,bt,!0),Zt("mouseup",window,yt,!0),A=b.value,V=O.clientY}function bt(O){if(!$)return;w!==void 0&&window.clearTimeout(w),S!==void 0&&window.clearTimeout(S);const{value:Y}=v,{value:ve}=u,{value:Fe}=K;if(Y===null||ve===null)return;const U=(O.clientY-V)*(ve-Y)/(Y-Fe),ge=ve-Y;let Te=A+U;Te=Math.min(ge,Te),Te=Math.max(Te,0);const{value:je}=se;je&&(je.scrollTop=Te)}function yt(O){O.preventDefault(),O.stopPropagation(),Kt("mousemove",window,bt,!0),Kt("mouseup",window,yt,!0),$=!1,L(),we(O)&&ot()}$t(()=>{const{value:O}=F,{value:Y}=H,{value:ve}=t,{value:Fe}=c,{value:Be}=d;Fe&&(O?Fe.classList.remove(`${ve}-scrollbar-rail--disabled`):Fe.classList.add(`${ve}-scrollbar-rail--disabled`)),Be&&(Y?Be.classList.remove(`${ve}-scrollbar-rail--disabled`):Be.classList.add(`${ve}-scrollbar-rail--disabled`))}),Jt(()=>{e.container||L()}),mo(()=>{w!==void 0&&window.clearTimeout(w),S!==void 0&&window.clearTimeout(S),Kt("mousemove",window,bt,!0),Kt("mouseup",window,yt,!0)});const ct=C(()=>{const{common:{cubicBezierEaseInOut:O},self:{color:Y,colorHover:ve,height:Fe,width:Be,borderRadius:U,railInsetHorizontalTop:ge,railInsetHorizontalBottom:Te,railInsetVerticalRight:je,railInsetVerticalLeft:dt,railColor:et}}=E.value;return{"--n-scrollbar-bezier":O,"--n-scrollbar-color":Y,"--n-scrollbar-color-hover":ve,"--n-scrollbar-border-radius":U,"--n-scrollbar-width":Be,"--n-scrollbar-height":Fe,"--n-scrollbar-rail-inset-horizontal-top":ge,"--n-scrollbar-rail-inset-horizontal-bottom":Te,"--n-scrollbar-rail-inset-vertical-right":n!=null&&n.value?al(je):je,"--n-scrollbar-rail-inset-vertical-left":n!=null&&n.value?al(dt):dt,"--n-scrollbar-rail-color":et}}),De=o?it("scrollbar",void 0,ct,e):void 0;return Object.assign(Object.assign({},{scrollTo:Ie,scrollBy:Ee,sync:L,syncUnifiedContainer:de,handleMouseEnterWrapper:Ye,handleMouseLeaveWrapper:st}),{mergedClsPrefix:t,rtlEnabled:n,containerScrollTop:b,wrapperRef:a,containerRef:s,contentRef:l,yRailRef:d,xRailRef:c,needYBar:H,needXBar:F,yBarSizePx:N,xBarSizePx:q,yBarTopPx:me,xBarLeftPx:W,isShowXBar:j,isShowYBar:J,isIos:D,handleScroll:Q,handleContentResize:Pe,handleContainerResize:Me,handleYScrollMouseDown:ht,handleXScrollMouseDown:Ke,cssVars:o?void 0:ct,themeClass:De==null?void 0:De.themeClass,onRender:De==null?void 0:De.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:o,triggerDisplayManually:r,rtlEnabled:n,internalHoistYRail:a,yPlacement:s,xPlacement:l,xScrollable:d}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const c=this.trigger==="none",u=(p,h)=>i("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`,`${o}-scrollbar-rail--vertical--${s}`,p],"data-scrollbar-rail":!0,style:[h||"",this.verticalRailStyle],"aria-hidden":!0},i(c?Ki:Vt,c?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?i("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),f=()=>{var p,h;return(p=this.onRender)===null||p===void 0||p.call(this),i("div",ao(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${o}-scrollbar`,this.themeClass,n&&`${o}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(h=t.default)===null||h===void 0?void 0:h.call(t):i("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},i(Mo,{onResize:this.handleContentResize},{default:()=>i("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${o}-scrollbar-content`,this.contentClass]},t)})),a?null:u(void 0,void 0),d&&i("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`,`${o}-scrollbar-rail--horizontal--${l}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},i(c?Ki:Vt,c?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?i("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:n?this.xBarLeftPx:void 0,left:n?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},v=this.container?f():i(Mo,{onResize:this.handleContainerResize},{default:f});return a?i(Wt,null,v,u(this.themeClass,this.cssVars)):v}}),Qn=Lt,Lf={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function $s(e){const{borderRadius:t,popoverColor:o,textColor3:r,dividerColor:n,textColor2:a,primaryColorPressed:s,textColorDisabled:l,primaryColor:d,opacityDisabled:c,hoverColor:u,fontSizeTiny:f,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:h,fontSizeHuge:g,heightTiny:b,heightSmall:y,heightMedium:x,heightLarge:T,heightHuge:$}=e;return Object.assign(Object.assign({},Lf),{optionFontSizeTiny:f,optionFontSizeSmall:v,optionFontSizeMedium:p,optionFontSizeLarge:h,optionFontSizeHuge:g,optionHeightTiny:b,optionHeightSmall:y,optionHeightMedium:x,optionHeightLarge:T,optionHeightHuge:$,borderRadius:t,color:o,groupHeaderTextColor:r,actionDividerColor:n,optionTextColor:a,optionTextColorPressed:s,optionTextColorDisabled:l,optionTextColorActive:d,optionOpacityDisabled:c,optionCheckColor:d,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:a,loadingColor:d})}const ya={name:"InternalSelectMenu",common:lt,peers:{Scrollbar:Eo,Empty:wn},self:$s},kn={name:"InternalSelectMenu",common:_e,peers:{Scrollbar:fo,Empty:Tr},self:$s};function Nf(e,t){return i(Vt,{name:"fade-in-scale-up-transition"},{default:()=>e?i(kt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>i(ff)}):null})}const xl=ie({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:o,multipleRef:r,valueSetRef:n,renderLabelRef:a,renderOptionRef:s,labelFieldRef:l,valueFieldRef:d,showCheckmarkRef:c,nodePropsRef:u,handleOptionClick:f,handleOptionMouseEnter:v}=Ae(pa),p=tt(()=>{const{value:y}=o;return y?e.tmNode.key===y.key:!1});function h(y){const{tmNode:x}=e;x.disabled||f(y,x)}function g(y){const{tmNode:x}=e;x.disabled||v(y,x)}function b(y){const{tmNode:x}=e,{value:T}=p;x.disabled||T||v(y,x)}return{multiple:r,isGrouped:tt(()=>{const{tmNode:y}=e,{parent:x}=y;return x&&x.rawNode.type==="group"}),showCheckmark:c,nodeProps:u,isPending:p,isSelected:tt(()=>{const{value:y}=t,{value:x}=r;if(y===null)return!1;const T=e.tmNode.rawNode[d.value];if(x){const{value:$}=n;return $.has(T)}else return y===T}),labelField:l,renderLabel:a,renderOption:s,handleMouseMove:b,handleMouseEnter:g,handleClick:h}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:o,isPending:r,isGrouped:n,showCheckmark:a,nodeProps:s,renderOption:l,renderLabel:d,handleClick:c,handleMouseEnter:u,handleMouseMove:f}=this,v=Nf(o,e),p=d?[d(t,o),a&&v]:[St(t[this.labelField],t,o),a&&v],h=s==null?void 0:s(t),g=i("div",Object.assign({},h,{class:[`${e}-base-select-option`,t.class,h==null?void 0:h.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:o,[`${e}-base-select-option--grouped`]:n,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:a}],style:[(h==null?void 0:h.style)||"",t.style||""],onClick:nn([c,h==null?void 0:h.onClick]),onMouseenter:nn([u,h==null?void 0:h.onMouseenter]),onMousemove:nn([f,h==null?void 0:h.onMousemove])}),i("div",{class:`${e}-base-select-option__content`},p));return t.render?t.render({node:g,option:t,selected:o}):l?l({node:g,option:t,selected:o}):g}}),Cl=ie({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:r}=Ae(pa);return{labelField:o,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:o,nodeProps:r,tmNode:{rawNode:n}}=this,a=r==null?void 0:r(n),s=t?t(n,!1):St(n[this.labelField],n,!1),l=i("div",Object.assign({},a,{class:[`${e}-base-select-group-header`,a==null?void 0:a.class]}),s);return n.render?n.render({node:l,option:n}):o?o({node:l,option:n,selected:!1}):l}}),{cubicBezierEaseIn:yl,cubicBezierEaseOut:wl}=Co;function hr({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:r="",originalTransition:n=""}={}){return[k("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${yl}, transform ${t} ${yl} ${n&&`,${n}`}`}),k("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${wl}, transform ${t} ${wl} ${n&&`,${n}`}`}),k("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${o})`}),k("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const jf=m("base-select-menu",` + line-height: 1.5; + outline: none; + z-index: 0; + position: relative; + border-radius: var(--n-border-radius); + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-color); +`,[m("scrollbar",` + max-height: var(--n-height); + `),m("virtual-list",` + max-height: var(--n-height); + `),m("base-select-option",` + min-height: var(--n-option-height); + font-size: var(--n-option-font-size); + display: flex; + align-items: center; + `,[P("content",` + z-index: 1; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + `)]),m("base-select-group-header",` + min-height: var(--n-option-height); + font-size: .93em; + display: flex; + align-items: center; + `),m("base-select-menu-option-wrapper",` + position: relative; + width: 100%; + `),P("loading, empty",` + display: flex; + padding: 12px 32px; + flex: 1; + justify-content: center; + `),P("loading",` + color: var(--n-loading-color); + font-size: var(--n-loading-size); + `),P("header",` + padding: 8px var(--n-option-padding-left); + font-size: var(--n-option-font-size); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-action-divider-color); + color: var(--n-action-text-color); + `),P("action",` + padding: 8px var(--n-option-padding-left); + font-size: var(--n-option-font-size); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + border-top: 1px solid var(--n-action-divider-color); + color: var(--n-action-text-color); + `),m("base-select-group-header",` + position: relative; + cursor: default; + padding: var(--n-option-padding); + color: var(--n-group-header-text-color); + `),m("base-select-option",` + cursor: pointer; + position: relative; + padding: var(--n-option-padding); + transition: + color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + box-sizing: border-box; + color: var(--n-option-text-color); + opacity: 1; + `,[z("show-checkmark",` + padding-right: calc(var(--n-option-padding-right) + 20px); + `),k("&::before",` + content: ""; + position: absolute; + left: 4px; + right: 4px; + top: 0; + bottom: 0; + border-radius: var(--n-border-radius); + transition: background-color .3s var(--n-bezier); + `),k("&:active",` + color: var(--n-option-text-color-pressed); + `),z("grouped",` + padding-left: calc(var(--n-option-padding-left) * 1.5); + `),z("pending",[k("&::before",` + background-color: var(--n-option-color-pending); + `)]),z("selected",` + color: var(--n-option-text-color-active); + `,[k("&::before",` + background-color: var(--n-option-color-active); + `),z("pending",[k("&::before",` + background-color: var(--n-option-color-active-pending); + `)])]),z("disabled",` + cursor: not-allowed; + `,[nt("selected",` + color: var(--n-option-text-color-disabled); + `),z("selected",` + opacity: var(--n-option-opacity-disabled); + `)]),P("check",` + font-size: 16px; + position: absolute; + right: calc(var(--n-option-padding-right) - 4px); + top: calc(50% - 7px); + color: var(--n-option-check-color); + transition: color .3s var(--n-bezier); + `,[hr({enterScale:"0.5"})])])]),Ts=ie({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Re.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Ze(e),r=Nt("InternalSelectMenu",o,t),n=Re("InternalSelectMenu","-internal-select-menu",jf,ya,e,fe(e,"clsPrefix")),a=B(null),s=B(null),l=B(null),d=C(()=>e.treeMate.getFlattenedNodes()),c=C(()=>ls(d.value)),u=B(null);function f(){const{treeMate:H}=e;let F=null;const{value:j}=e;j===null?F=H.getFirstAvailableNode():(e.multiple?F=H.getNode((j||[])[(j||[]).length-1]):F=H.getNode(j),(!F||F.disabled)&&(F=H.getFirstAvailableNode())),K(F||null)}function v(){const{value:H}=u;H&&!e.treeMate.getNode(H.key)&&(u.value=null)}let p;vt(()=>e.show,H=>{H?p=vt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?f():v(),zt(N)):v()},{immediate:!0}):p==null||p()},{immediate:!0}),mo(()=>{p==null||p()});const h=C(()=>Mt(n.value.self[le("optionHeight",e.size)])),g=C(()=>qt(n.value.self[le("padding",e.size)])),b=C(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),y=C(()=>{const H=d.value;return H&&H.length===0});function x(H){const{onToggle:F}=e;F&&F(H)}function T(H){const{onScroll:F}=e;F&&F(H)}function $(H){var F;(F=l.value)===null||F===void 0||F.sync(),T(H)}function R(){var H;(H=l.value)===null||H===void 0||H.sync()}function w(){const{value:H}=u;return H||null}function S(H,F){F.disabled||K(F,!1)}function A(H,F){F.disabled||x(F)}function I(H){var F;Xt(H,"action")||(F=e.onKeyup)===null||F===void 0||F.call(e,H)}function M(H){var F;Xt(H,"action")||(F=e.onKeydown)===null||F===void 0||F.call(e,H)}function V(H){var F;(F=e.onMousedown)===null||F===void 0||F.call(e,H),!e.focusable&&H.preventDefault()}function D(){const{value:H}=u;H&&K(H.getNext({loop:!0}),!0)}function E(){const{value:H}=u;H&&K(H.getPrev({loop:!0}),!0)}function K(H,F=!1){u.value=H,F&&N()}function N(){var H,F;const j=u.value;if(!j)return;const J=c.value(j.key);J!==null&&(e.virtualScroll?(H=s.value)===null||H===void 0||H.scrollTo({index:J}):(F=l.value)===null||F===void 0||F.scrollTo({index:J,elSize:h.value}))}function oe(H){var F,j;!((F=a.value)===null||F===void 0)&&F.contains(H.target)&&((j=e.onFocus)===null||j===void 0||j.call(e,H))}function q(H){var F,j;!((F=a.value)===null||F===void 0)&&F.contains(H.relatedTarget)||(j=e.onBlur)===null||j===void 0||j.call(e,H)}Je(pa,{handleOptionMouseEnter:S,handleOptionClick:A,valueSetRef:b,pendingTmNodeRef:u,nodePropsRef:fe(e,"nodeProps"),showCheckmarkRef:fe(e,"showCheckmark"),multipleRef:fe(e,"multiple"),valueRef:fe(e,"value"),renderLabelRef:fe(e,"renderLabel"),renderOptionRef:fe(e,"renderOption"),labelFieldRef:fe(e,"labelField"),valueFieldRef:fe(e,"valueField")}),Je(ps,a),Jt(()=>{const{value:H}=l;H&&H.sync()});const re=C(()=>{const{size:H}=e,{common:{cubicBezierEaseInOut:F},self:{height:j,borderRadius:J,color:se,groupHeaderTextColor:be,actionDividerColor:Ie,optionTextColorPressed:_,optionTextColor:Pe,optionTextColorDisabled:Me,optionTextColorActive:Ee,optionOpacityDisabled:Ge,optionCheckColor:Ye,actionTextColor:st,optionColorPending:ot,optionColorActive:xe,loadingColor:te,loadingSize:ce,optionColorActivePending:G,[le("optionFontSize",H)]:Q,[le("optionHeight",H)]:pe,[le("optionPadding",H)]:Ce}}=n.value;return{"--n-height":j,"--n-action-divider-color":Ie,"--n-action-text-color":st,"--n-bezier":F,"--n-border-radius":J,"--n-color":se,"--n-option-font-size":Q,"--n-group-header-text-color":be,"--n-option-check-color":Ye,"--n-option-color-pending":ot,"--n-option-color-active":xe,"--n-option-color-active-pending":G,"--n-option-height":pe,"--n-option-opacity-disabled":Ge,"--n-option-text-color":Pe,"--n-option-text-color-active":Ee,"--n-option-text-color-disabled":Me,"--n-option-text-color-pressed":_,"--n-option-padding":Ce,"--n-option-padding-left":qt(Ce,"left"),"--n-option-padding-right":qt(Ce,"right"),"--n-loading-color":te,"--n-loading-size":ce}}),{inlineThemeDisabled:me}=e,ue=me?it("internal-select-menu",C(()=>e.size[0]),re,e):void 0,W={selfRef:a,next:D,prev:E,getPendingTmNode:w};return bs(a,e.onResize),Object.assign({mergedTheme:n,mergedClsPrefix:t,rtlEnabled:r,virtualListRef:s,scrollbarRef:l,itemSize:h,padding:g,flattenedNodes:d,empty:y,virtualListContainer(){const{value:H}=s;return H==null?void 0:H.listElRef},virtualListContent(){const{value:H}=s;return H==null?void 0:H.itemsElRef},doScroll:T,handleFocusin:oe,handleFocusout:q,handleKeyUp:I,handleKeyDown:M,handleMouseDown:V,handleVirtualListResize:R,handleVirtualListScroll:$,cssVars:me?void 0:re,themeClass:ue==null?void 0:ue.themeClass,onRender:ue==null?void 0:ue.onRender},W)},render(){const{$slots:e,virtualScroll:t,clsPrefix:o,mergedTheme:r,themeClass:n,onRender:a}=this;return a==null||a(),i("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${o}-base-select-menu`,this.rtlEnabled&&`${o}-base-select-menu--rtl`,n,this.multiple&&`${o}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},mt(e.header,s=>s&&i("div",{class:`${o}-base-select-menu__header`,"data-header":!0,key:"header"},s)),this.loading?i("div",{class:`${o}-base-select-menu__loading`},i(Xo,{clsPrefix:o,strokeWidth:20})):this.empty?i("div",{class:`${o}-base-select-menu__empty`,"data-empty":!0},ft(e.empty,()=>[i(Zn,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty,size:this.size})])):i(Lt,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?i(Sr,{ref:"virtualListRef",class:`${o}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:s})=>s.isGroup?i(Cl,{key:s.key,clsPrefix:o,tmNode:s}):s.ignored?null:i(xl,{clsPrefix:o,key:s.key,tmNode:s})}):i("div",{class:`${o}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(s=>s.isGroup?i(Cl,{key:s.key,clsPrefix:o,tmNode:s}):i(xl,{clsPrefix:o,key:s.key,tmNode:s})))}),mt(e.action,s=>s&&[i("div",{class:`${o}-base-select-menu__action`,"data-action":!0,key:"action"},s),i(fr,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),Vf=m("base-wave",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; +`),Wf=ie({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){dr("-base-wave",Vf,fe(e,"clsPrefix"));const t=B(null),o=B(!1);let r=null;return mo(()=>{r!==null&&window.clearTimeout(r)}),{active:o,selfRef:t,play(){r!==null&&(window.clearTimeout(r),o.value=!1,r=null),zt(()=>{var n;(n=t.value)===null||n===void 0||n.offsetHeight,o.value=!0,r=window.setTimeout(()=>{o.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return i("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),Uf={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function Fs(e){const{boxShadow2:t,popoverColor:o,textColor2:r,borderRadius:n,fontSize:a,dividerColor:s}=e;return Object.assign(Object.assign({},Uf),{fontSize:a,borderRadius:n,color:o,dividerColor:s,textColor:r,boxShadow:t})}const Wr={name:"Popover",common:lt,self:Fs},Fr={name:"Popover",common:_e,self:Fs},pi={top:"bottom",bottom:"top",left:"right",right:"left"},Ut="var(--n-arrow-height) * 1.414",Kf=k([m("popover",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + position: relative; + font-size: var(--n-font-size); + color: var(--n-text-color); + box-shadow: var(--n-box-shadow); + word-break: break-word; + `,[k(">",[m("scrollbar",` + height: inherit; + max-height: inherit; + `)]),nt("raw",` + background-color: var(--n-color); + border-radius: var(--n-border-radius); + `,[nt("scrollable",[nt("show-header-or-footer","padding: var(--n-padding);")])]),P("header",` + padding: var(--n-padding); + border-bottom: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),P("footer",` + padding: var(--n-padding); + border-top: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),z("scrollable, show-header-or-footer",[P("content",` + padding: var(--n-padding); + `)])]),m("popover-shared",` + transform-origin: inherit; + `,[m("popover-arrow-wrapper",` + position: absolute; + overflow: hidden; + pointer-events: none; + `,[m("popover-arrow",` + transition: background-color .3s var(--n-bezier); + position: absolute; + display: block; + width: calc(${Ut}); + height: calc(${Ut}); + box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); + transform: rotate(45deg); + background-color: var(--n-color); + pointer-events: all; + `)]),k("&.popover-transition-enter-from, &.popover-transition-leave-to",` + opacity: 0; + transform: scale(.85); + `),k("&.popover-transition-enter-to, &.popover-transition-leave-from",` + transform: scale(1); + opacity: 1; + `),k("&.popover-transition-enter-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-out), + transform .15s var(--n-bezier-ease-out); + `),k("&.popover-transition-leave-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-in), + transform .15s var(--n-bezier-ease-in); + `)]),wo("top-start",` + top: calc(${Ut} / -2); + left: calc(${No("top-start")} - var(--v-offset-left)); + `),wo("top",` + top: calc(${Ut} / -2); + transform: translateX(calc(${Ut} / -2)) rotate(45deg); + left: 50%; + `),wo("top-end",` + top: calc(${Ut} / -2); + right: calc(${No("top-end")} + var(--v-offset-left)); + `),wo("bottom-start",` + bottom: calc(${Ut} / -2); + left: calc(${No("bottom-start")} - var(--v-offset-left)); + `),wo("bottom",` + bottom: calc(${Ut} / -2); + transform: translateX(calc(${Ut} / -2)) rotate(45deg); + left: 50%; + `),wo("bottom-end",` + bottom: calc(${Ut} / -2); + right: calc(${No("bottom-end")} + var(--v-offset-left)); + `),wo("left-start",` + left: calc(${Ut} / -2); + top: calc(${No("left-start")} - var(--v-offset-top)); + `),wo("left",` + left: calc(${Ut} / -2); + transform: translateY(calc(${Ut} / -2)) rotate(45deg); + top: 50%; + `),wo("left-end",` + left: calc(${Ut} / -2); + bottom: calc(${No("left-end")} + var(--v-offset-top)); + `),wo("right-start",` + right: calc(${Ut} / -2); + top: calc(${No("right-start")} - var(--v-offset-top)); + `),wo("right",` + right: calc(${Ut} / -2); + transform: translateY(calc(${Ut} / -2)) rotate(45deg); + top: 50%; + `),wo("right-end",` + right: calc(${Ut} / -2); + bottom: calc(${No("right-end")} + var(--v-offset-top)); + `),...Nu({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const o=["right","left"].includes(t),r=o?"width":"height";return e.map(n=>{const a=n.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${Ut}) / 2)`,d=No(n);return k(`[v-placement="${n}"] >`,[m("popover-shared",[z("center-arrow",[m("popover-arrow",`${t}: calc(max(${l}, ${d}) ${a?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})})]);function No(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function wo(e,t){const o=e.split("-")[0],r=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return k(`[v-placement="${e}"] >`,[m("popover-shared",` + margin-${pi[o]}: var(--n-space); + `,[z("show-arrow",` + margin-${pi[o]}: var(--n-space-arrow); + `),z("overlap",` + margin: 0; + `),Qu("popover-arrow-wrapper",` + right: 0; + left: 0; + top: 0; + bottom: 0; + ${o}: 100%; + ${pi[o]}: auto; + ${r} + `,[m("popover-arrow",t)])])])}const Is=Object.assign(Object.assign({},Re.props),{to:Gt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function Bs({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:r,clsPrefix:n}){return i("div",{key:"__popover-arrow__",style:r,class:[`${n}-popover-arrow-wrapper`,o]},i("div",{class:[`${n}-popover-arrow`,e],style:t}))}const qf=ie({name:"PopoverBody",inheritAttrs:!1,props:Is,setup(e,{slots:t,attrs:o}){const{namespaceRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:a}=Ze(e),s=Re("Popover","-popover",Kf,Wr,e,n),l=B(null),d=Ae("NPopover"),c=B(null),u=B(e.show),f=B(!1);$t(()=>{const{show:S}=e;S&&!Ju()&&!e.internalDeactivateImmediately&&(f.value=!0)});const v=C(()=>{const{trigger:S,onClickoutside:A}=e,I=[],{positionManuallyRef:{value:M}}=d;return M||(S==="click"&&!A&&I.push([Ho,$,void 0,{capture:!0}]),S==="hover"&&I.push([Eu,T])),A&&I.push([Ho,$,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&I.push([_o,e.show]),I}),p=C(()=>{const{common:{cubicBezierEaseInOut:S,cubicBezierEaseIn:A,cubicBezierEaseOut:I},self:{space:M,spaceArrow:V,padding:D,fontSize:E,textColor:K,dividerColor:N,color:oe,boxShadow:q,borderRadius:re,arrowHeight:me,arrowOffset:ue,arrowOffsetVertical:W}}=s.value;return{"--n-box-shadow":q,"--n-bezier":S,"--n-bezier-ease-in":A,"--n-bezier-ease-out":I,"--n-font-size":E,"--n-text-color":K,"--n-color":oe,"--n-divider-color":N,"--n-border-radius":re,"--n-arrow-height":me,"--n-arrow-offset":ue,"--n-arrow-offset-vertical":W,"--n-padding":D,"--n-space":M,"--n-space-arrow":V}}),h=C(()=>{const S=e.width==="trigger"?void 0:_t(e.width),A=[];S&&A.push({width:S});const{maxWidth:I,minWidth:M}=e;return I&&A.push({maxWidth:_t(I)}),M&&A.push({maxWidth:_t(M)}),a||A.push(p.value),A}),g=a?it("popover",void 0,p,e):void 0;d.setBodyInstance({syncPosition:b}),mo(()=>{d.setBodyInstance(null)}),vt(fe(e,"show"),S=>{e.animated||(S?u.value=!0:u.value=!1)});function b(){var S;(S=l.value)===null||S===void 0||S.syncPosition()}function y(S){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&d.handleMouseEnter(S)}function x(S){e.trigger==="hover"&&e.keepAliveOnHover&&d.handleMouseLeave(S)}function T(S){e.trigger==="hover"&&!R().contains(Uo(S))&&d.handleMouseMoveOutside(S)}function $(S){(e.trigger==="click"&&!R().contains(Uo(S))||e.onClickoutside)&&d.handleClickOutside(S)}function R(){return d.getTriggerElement()}Je(Vr,c),Je(mn,null),Je(gn,null);function w(){if(g==null||g.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let A;const I=d.internalRenderBodyRef.value,{value:M}=n;if(I)A=I([`${M}-popover-shared`,g==null?void 0:g.themeClass.value,e.overlap&&`${M}-popover-shared--overlap`,e.showArrow&&`${M}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${M}-popover-shared--center-arrow`],c,h.value,y,x);else{const{value:V}=d.extraClassRef,{internalTrapFocus:D}=e,E=!_r(t.header)||!_r(t.footer),K=()=>{var N,oe;const q=E?i(Wt,null,mt(t.header,ue=>ue?i("div",{class:[`${M}-popover__header`,e.headerClass],style:e.headerStyle},ue):null),mt(t.default,ue=>ue?i("div",{class:[`${M}-popover__content`,e.contentClass],style:e.contentStyle},t):null),mt(t.footer,ue=>ue?i("div",{class:[`${M}-popover__footer`,e.footerClass],style:e.footerStyle},ue):null)):e.scrollable?(N=t.default)===null||N===void 0?void 0:N.call(t):i("div",{class:[`${M}-popover__content`,e.contentClass],style:e.contentStyle},t),re=e.scrollable?i(Qn,{contentClass:E?void 0:`${M}-popover__content ${(oe=e.contentClass)!==null&&oe!==void 0?oe:""}`,contentStyle:E?void 0:e.contentStyle},{default:()=>q}):q,me=e.showArrow?Bs({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:M}):null;return[re,me]};A=i("div",ao({class:[`${M}-popover`,`${M}-popover-shared`,g==null?void 0:g.themeClass.value,V.map(N=>`${M}-${N}`),{[`${M}-popover--scrollable`]:e.scrollable,[`${M}-popover--show-header-or-footer`]:E,[`${M}-popover--raw`]:e.raw,[`${M}-popover-shared--overlap`]:e.overlap,[`${M}-popover-shared--show-arrow`]:e.showArrow,[`${M}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:h.value,onKeydown:d.handleKeydown,onMouseenter:y,onMouseleave:x},o),D?i(fa,{active:e.show,autoFocus:!0},{default:K}):K())}return lo(A,v.value)}return{displayed:f,namespace:r,isMounted:d.isMountedRef,zIndex:d.zIndexRef,followerRef:l,adjustedTo:Gt(e),followerEnabled:u,renderContentNode:w}},render(){return i(Rr,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Gt.tdkey},{default:()=>this.animated?i(Vt,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Gf=Object.keys(Is),Yf={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function Xf(e,t,o){Yf[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const n=e.props[r],a=o[r];n?e.props[r]=(...s)=>{n(...s),a(...s)}:e.props[r]=a})}const Lr={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Gt.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},Zf=Object.assign(Object.assign(Object.assign({},Re.props),Lr),{internalOnAfterLeave:Function,internalRenderBody:Function}),Rn=ie({name:"Popover",inheritAttrs:!1,props:Zf,__popover__:!0,setup(e){const t=qo(),o=B(null),r=C(()=>e.show),n=B(e.defaultShow),a=Rt(r,n),s=tt(()=>e.disabled?!1:a.value),l=()=>{if(e.disabled)return!0;const{getDisabled:N}=e;return!!(N!=null&&N())},d=()=>l()?!1:a.value,c=nr(e,["arrow","showArrow"]),u=C(()=>e.overlap?!1:c.value);let f=null;const v=B(null),p=B(null),h=tt(()=>e.x!==void 0&&e.y!==void 0);function g(N){const{"onUpdate:show":oe,onUpdateShow:q,onShow:re,onHide:me}=e;n.value=N,oe&&ae(oe,N),q&&ae(q,N),N&&re&&ae(re,!0),N&&me&&ae(me,!1)}function b(){f&&f.syncPosition()}function y(){const{value:N}=v;N&&(window.clearTimeout(N),v.value=null)}function x(){const{value:N}=p;N&&(window.clearTimeout(N),p.value=null)}function T(){const N=l();if(e.trigger==="focus"&&!N){if(d())return;g(!0)}}function $(){const N=l();if(e.trigger==="focus"&&!N){if(!d())return;g(!1)}}function R(){const N=l();if(e.trigger==="hover"&&!N){if(x(),v.value!==null||d())return;const oe=()=>{g(!0),v.value=null},{delay:q}=e;q===0?oe():v.value=window.setTimeout(oe,q)}}function w(){const N=l();if(e.trigger==="hover"&&!N){if(y(),p.value!==null||!d())return;const oe=()=>{g(!1),p.value=null},{duration:q}=e;q===0?oe():p.value=window.setTimeout(oe,q)}}function S(){w()}function A(N){var oe;d()&&(e.trigger==="click"&&(y(),x(),g(!1)),(oe=e.onClickoutside)===null||oe===void 0||oe.call(e,N))}function I(){if(e.trigger==="click"&&!l()){y(),x();const N=!d();g(N)}}function M(N){e.internalTrapFocus&&N.key==="Escape"&&(y(),x(),g(!1))}function V(N){n.value=N}function D(){var N;return(N=o.value)===null||N===void 0?void 0:N.targetRef}function E(N){f=N}return Je("NPopover",{getTriggerElement:D,handleKeydown:M,handleMouseEnter:R,handleMouseLeave:w,handleClickOutside:A,handleMouseMoveOutside:S,setBodyInstance:E,positionManuallyRef:h,isMountedRef:t,zIndexRef:fe(e,"zIndex"),extraClassRef:fe(e,"internalExtraClass"),internalRenderBodyRef:fe(e,"internalRenderBody")}),$t(()=>{a.value&&l()&&g(!1)}),{binderInstRef:o,positionManually:h,mergedShowConsideringDisabledProp:s,uncontrolledShow:n,mergedShowArrow:u,getMergedShow:d,setShow:V,handleClick:I,handleMouseEnter:R,handleMouseLeave:w,handleFocus:T,handleBlur:$,syncPosition:b}},render(){var e;const{positionManually:t,$slots:o}=this;let r,n=!1;if(!t&&(o.activator?r=Ui(o,"activator"):r=Ui(o,"trigger"),r)){r=an(r),r=r.type===Ou?i("span",[r]):r;const a={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)n=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[a,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[a];else{const{internalInheritedEventHandlers:s}=this,l=[a,...s],d={onBlur:c=>{l.forEach(u=>{u.onBlur(c)})},onFocus:c=>{l.forEach(u=>{u.onFocus(c)})},onClick:c=>{l.forEach(u=>{u.onClick(c)})},onMouseenter:c=>{l.forEach(u=>{u.onMouseenter(c)})},onMouseleave:c=>{l.forEach(u=>{u.onMouseleave(c)})}};Xf(r,s?"nested":t?"manual":this.trigger,d)}}return i(Pr,{ref:"binderInstRef",syncTarget:!n,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const a=this.getMergedShow();return[this.internalTrapFocus&&a?lo(i("div",{style:{position:"fixed",inset:0}}),[[va,{enabled:a,zIndex:this.zIndex}]]):null,t?null:i(zr,null,{default:()=>r}),i(qf,po(this.$props,Gf,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:a})),{default:()=>{var s,l;return(l=(s=this.$slots).default)===null||l===void 0?void 0:l.call(s)},header:()=>{var s,l;return(l=(s=this.$slots).header)===null||l===void 0?void 0:l.call(s)},footer:()=>{var s,l;return(l=(s=this.$slots).footer)===null||l===void 0?void 0:l.call(s)}})]}})}}),Os={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},Ds={name:"Tag",common:_e,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:a,successColor:s,warningColor:l,errorColor:d,baseColor:c,borderColor:u,tagColor:f,opacityDisabled:v,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:b,closeColorPressed:y,borderRadiusSmall:x,fontSizeMini:T,fontSizeTiny:$,fontSizeSmall:R,fontSizeMedium:w,heightMini:S,heightTiny:A,heightSmall:I,heightMedium:M,buttonColor2Hover:V,buttonColor2Pressed:D,fontWeightStrong:E}=e;return Object.assign(Object.assign({},Os),{closeBorderRadius:x,heightTiny:S,heightSmall:A,heightMedium:I,heightLarge:M,borderRadius:x,opacityDisabled:v,fontSizeTiny:T,fontSizeSmall:$,fontSizeMedium:R,fontSizeLarge:w,fontWeightStrong:E,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:V,colorPressedCheckable:D,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:b,closeColorPressed:y,borderPrimary:`1px solid ${Se(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:Se(n,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:jt(n,{lightness:.7}),closeIconColorHoverPrimary:jt(n,{lightness:.7}),closeIconColorPressedPrimary:jt(n,{lightness:.7}),closeColorHoverPrimary:Se(n,{alpha:.16}),closeColorPressedPrimary:Se(n,{alpha:.12}),borderInfo:`1px solid ${Se(a,{alpha:.3})}`,textColorInfo:a,colorInfo:Se(a,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:jt(a,{alpha:.7}),closeIconColorHoverInfo:jt(a,{alpha:.7}),closeIconColorPressedInfo:jt(a,{alpha:.7}),closeColorHoverInfo:Se(a,{alpha:.16}),closeColorPressedInfo:Se(a,{alpha:.12}),borderSuccess:`1px solid ${Se(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:Se(s,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:jt(s,{alpha:.7}),closeIconColorHoverSuccess:jt(s,{alpha:.7}),closeIconColorPressedSuccess:jt(s,{alpha:.7}),closeColorHoverSuccess:Se(s,{alpha:.16}),closeColorPressedSuccess:Se(s,{alpha:.12}),borderWarning:`1px solid ${Se(l,{alpha:.3})}`,textColorWarning:l,colorWarning:Se(l,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:jt(l,{alpha:.7}),closeIconColorHoverWarning:jt(l,{alpha:.7}),closeIconColorPressedWarning:jt(l,{alpha:.7}),closeColorHoverWarning:Se(l,{alpha:.16}),closeColorPressedWarning:Se(l,{alpha:.11}),borderError:`1px solid ${Se(d,{alpha:.3})}`,textColorError:d,colorError:Se(d,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:jt(d,{alpha:.7}),closeIconColorHoverError:jt(d,{alpha:.7}),closeIconColorPressedError:jt(d,{alpha:.7}),closeColorHoverError:Se(d,{alpha:.16}),closeColorPressedError:Se(d,{alpha:.12})})}};function Qf(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:a,successColor:s,warningColor:l,errorColor:d,baseColor:c,borderColor:u,opacityDisabled:f,tagColor:v,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:b,fontSizeMini:y,fontSizeTiny:x,fontSizeSmall:T,fontSizeMedium:$,heightMini:R,heightTiny:w,heightSmall:S,heightMedium:A,closeColorHover:I,closeColorPressed:M,buttonColor2Hover:V,buttonColor2Pressed:D,fontWeightStrong:E}=e;return Object.assign(Object.assign({},Os),{closeBorderRadius:b,heightTiny:R,heightSmall:w,heightMedium:S,heightLarge:A,borderRadius:b,opacityDisabled:f,fontSizeTiny:y,fontSizeSmall:x,fontSizeMedium:T,fontSizeLarge:$,fontWeightStrong:E,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:V,colorPressedCheckable:D,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:v,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:I,closeColorPressed:M,borderPrimary:`1px solid ${Se(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:Se(n,{alpha:.12}),colorBorderedPrimary:Se(n,{alpha:.1}),closeIconColorPrimary:n,closeIconColorHoverPrimary:n,closeIconColorPressedPrimary:n,closeColorHoverPrimary:Se(n,{alpha:.12}),closeColorPressedPrimary:Se(n,{alpha:.18}),borderInfo:`1px solid ${Se(a,{alpha:.3})}`,textColorInfo:a,colorInfo:Se(a,{alpha:.12}),colorBorderedInfo:Se(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:Se(a,{alpha:.12}),closeColorPressedInfo:Se(a,{alpha:.18}),borderSuccess:`1px solid ${Se(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:Se(s,{alpha:.12}),colorBorderedSuccess:Se(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:Se(s,{alpha:.12}),closeColorPressedSuccess:Se(s,{alpha:.18}),borderWarning:`1px solid ${Se(l,{alpha:.35})}`,textColorWarning:l,colorWarning:Se(l,{alpha:.15}),colorBorderedWarning:Se(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:Se(l,{alpha:.12}),closeColorPressedWarning:Se(l,{alpha:.18}),borderError:`1px solid ${Se(d,{alpha:.23})}`,textColorError:d,colorError:Se(d,{alpha:.1}),colorBorderedError:Se(d,{alpha:.08}),closeIconColorError:d,closeIconColorHoverError:d,closeIconColorPressedError:d,closeColorHoverError:Se(d,{alpha:.12}),closeColorPressedError:Se(d,{alpha:.18})})}const Ms={name:"Tag",common:lt,self:Qf},As={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},Jf=m("tag",` + --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); + white-space: nowrap; + position: relative; + box-sizing: border-box; + cursor: default; + display: inline-flex; + align-items: center; + flex-wrap: nowrap; + padding: var(--n-padding); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + opacity .3s var(--n-bezier); + line-height: 1; + height: var(--n-height); + font-size: var(--n-font-size); +`,[z("strong",` + font-weight: var(--n-font-weight-strong); + `),P("border",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + border: var(--n-border); + transition: border-color .3s var(--n-bezier); + `),P("icon",` + display: flex; + margin: 0 4px 0 0; + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + font-size: var(--n-avatar-size-override); + `),P("avatar",` + display: flex; + margin: 0 6px 0 0; + `),P("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),z("round",` + padding: 0 calc(var(--n-height) / 3); + border-radius: calc(var(--n-height) / 2); + `,[P("icon",` + margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); + `),P("avatar",` + margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); + `),z("closable",` + padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); + `)]),z("icon, avatar",[z("round",` + padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); + `)]),z("disabled",` + cursor: not-allowed !important; + opacity: var(--n-opacity-disabled); + `),z("checkable",` + cursor: pointer; + box-shadow: none; + color: var(--n-text-color-checkable); + background-color: var(--n-color-checkable); + `,[nt("disabled",[k("&:hover","background-color: var(--n-color-hover-checkable);",[nt("checked","color: var(--n-text-color-hover-checkable);")]),k("&:active","background-color: var(--n-color-pressed-checkable);",[nt("checked","color: var(--n-text-color-pressed-checkable);")])]),z("checked",` + color: var(--n-text-color-checked); + background-color: var(--n-color-checked); + `,[nt("disabled",[k("&:hover","background-color: var(--n-color-checked-hover);"),k("&:active","background-color: var(--n-color-checked-pressed);")])])])]),eh=Object.assign(Object.assign(Object.assign({},Re.props),As),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),_s="n-tag",jn=ie({name:"Tag",props:eh,setup(e){const t=B(null),{mergedBorderedRef:o,mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:a}=Ze(e),s=Re("Tag","-tag",Jf,Ms,e,r);Je(_s,{roundRef:fe(e,"round")});function l(){if(!e.disabled&&e.checkable){const{checked:p,onCheckedChange:h,onUpdateChecked:g,"onUpdate:checked":b}=e;g&&g(!p),b&&b(!p),h&&h(!p)}}function d(p){if(e.triggerClickOnClose||p.stopPropagation(),!e.disabled){const{onClose:h}=e;h&&ae(h,p)}}const c={setTextContent(p){const{value:h}=t;h&&(h.textContent=p)}},u=Nt("Tag",a,r),f=C(()=>{const{type:p,size:h,color:{color:g,textColor:b}={}}=e,{common:{cubicBezierEaseInOut:y},self:{padding:x,closeMargin:T,borderRadius:$,opacityDisabled:R,textColorCheckable:w,textColorHoverCheckable:S,textColorPressedCheckable:A,textColorChecked:I,colorCheckable:M,colorHoverCheckable:V,colorPressedCheckable:D,colorChecked:E,colorCheckedHover:K,colorCheckedPressed:N,closeBorderRadius:oe,fontWeightStrong:q,[le("colorBordered",p)]:re,[le("closeSize",h)]:me,[le("closeIconSize",h)]:ue,[le("fontSize",h)]:W,[le("height",h)]:H,[le("color",p)]:F,[le("textColor",p)]:j,[le("border",p)]:J,[le("closeIconColor",p)]:se,[le("closeIconColorHover",p)]:be,[le("closeIconColorPressed",p)]:Ie,[le("closeColorHover",p)]:_,[le("closeColorPressed",p)]:Pe}}=s.value,Me=qt(T);return{"--n-font-weight-strong":q,"--n-avatar-size-override":`calc(${H} - 8px)`,"--n-bezier":y,"--n-border-radius":$,"--n-border":J,"--n-close-icon-size":ue,"--n-close-color-pressed":Pe,"--n-close-color-hover":_,"--n-close-border-radius":oe,"--n-close-icon-color":se,"--n-close-icon-color-hover":be,"--n-close-icon-color-pressed":Ie,"--n-close-icon-color-disabled":se,"--n-close-margin-top":Me.top,"--n-close-margin-right":Me.right,"--n-close-margin-bottom":Me.bottom,"--n-close-margin-left":Me.left,"--n-close-size":me,"--n-color":g||(o.value?re:F),"--n-color-checkable":M,"--n-color-checked":E,"--n-color-checked-hover":K,"--n-color-checked-pressed":N,"--n-color-hover-checkable":V,"--n-color-pressed-checkable":D,"--n-font-size":W,"--n-height":H,"--n-opacity-disabled":R,"--n-padding":x,"--n-text-color":b||j,"--n-text-color-checkable":w,"--n-text-color-checked":I,"--n-text-color-hover-checkable":S,"--n-text-color-pressed-checkable":A}}),v=n?it("tag",C(()=>{let p="";const{type:h,size:g,color:{color:b,textColor:y}={}}=e;return p+=h[0],p+=g[0],b&&(p+=`a${ln(b)}`),y&&(p+=`b${ln(y)}`),o.value&&(p+="c"),p}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:u,mergedClsPrefix:r,contentRef:t,mergedBordered:o,handleClick:l,handleCloseClick:d,cssVars:n?void 0:f,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender})},render(){var e,t;const{mergedClsPrefix:o,rtlEnabled:r,closable:n,color:{borderColor:a}={},round:s,onRender:l,$slots:d}=this;l==null||l();const c=mt(d.avatar,f=>f&&i("div",{class:`${o}-tag__avatar`},f)),u=mt(d.icon,f=>f&&i("div",{class:`${o}-tag__icon`},f));return i("div",{class:[`${o}-tag`,this.themeClass,{[`${o}-tag--rtl`]:r,[`${o}-tag--strong`]:this.strong,[`${o}-tag--disabled`]:this.disabled,[`${o}-tag--checkable`]:this.checkable,[`${o}-tag--checked`]:this.checkable&&this.checked,[`${o}-tag--round`]:s,[`${o}-tag--avatar`]:c,[`${o}-tag--icon`]:u,[`${o}-tag--closable`]:n}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},u||c,i("span",{class:`${o}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&n?i(ur,{clsPrefix:o,class:`${o}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:s,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?i("div",{class:`${o}-tag__border`,style:{borderColor:a}}):null)}}),th=m("base-clear",` + flex-shrink: 0; + height: 1em; + width: 1em; + position: relative; +`,[k(">",[P("clear",` + font-size: var(--n-clear-size); + height: 1em; + width: 1em; + cursor: pointer; + color: var(--n-clear-color); + transition: color .3s var(--n-bezier); + display: flex; + `,[k("&:hover",` + color: var(--n-clear-color-hover)!important; + `),k("&:active",` + color: var(--n-clear-color-pressed)!important; + `)]),P("placeholder",` + display: flex; + `),P("clear, placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[uo({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Gi=ie({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return dr("-base-clear",th,fe(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return i("div",{class:`${e}-base-clear`},i(cr,null,{default:()=>{var t,o;return this.show?i("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},ft(this.$slots.icon,()=>[i(kt,{clsPrefix:e},{default:()=>i(yf,null)})])):i("div",{key:"icon",class:`${e}-base-clear__placeholder`},(o=(t=this.$slots).placeholder)===null||o===void 0?void 0:o.call(t))}}))}}),Hs=ie({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:o}=e;return i(Xo,{clsPrefix:o,class:`${o}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?i(Gi,{clsPrefix:o,show:e.showClear,onClear:e.onClear},{placeholder:()=>i(kt,{clsPrefix:o,class:`${o}-base-suffix__arrow`},{default:()=>ft(t.default,()=>[i(Ss,null)])})}):null})}}}),Es={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function oh(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:a,primaryColor:s,primaryColorHover:l,warningColor:d,warningColorHover:c,errorColor:u,errorColorHover:f,borderColor:v,iconColor:p,iconColorDisabled:h,clearColor:g,clearColorHover:b,clearColorPressed:y,placeholderColor:x,placeholderColorDisabled:T,fontSizeTiny:$,fontSizeSmall:R,fontSizeMedium:w,fontSizeLarge:S,heightTiny:A,heightSmall:I,heightMedium:M,heightLarge:V}=e;return Object.assign(Object.assign({},Es),{fontSizeTiny:$,fontSizeSmall:R,fontSizeMedium:w,fontSizeLarge:S,heightTiny:A,heightSmall:I,heightMedium:M,heightLarge:V,borderRadius:t,textColor:o,textColorDisabled:r,placeholderColor:x,placeholderColorDisabled:T,color:n,colorDisabled:a,colorActive:n,border:`1px solid ${v}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${s}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${Se(s,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Se(s,{alpha:.2})}`,caretColor:s,arrowColor:p,arrowColorDisabled:h,loadingColor:s,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${d}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${Se(d,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Se(d,{alpha:.2})}`,colorActiveWarning:n,caretColorWarning:d,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${Se(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Se(u,{alpha:.2})}`,colorActiveError:n,caretColorError:u,clearColor:g,clearColorHover:b,clearColorPressed:y})}const Ls={name:"InternalSelection",common:lt,peers:{Popover:Wr},self:oh},wa={name:"InternalSelection",common:_e,peers:{Popover:Fr},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:a,primaryColor:s,primaryColorHover:l,warningColor:d,warningColorHover:c,errorColor:u,errorColorHover:f,iconColor:v,iconColorDisabled:p,clearColor:h,clearColorHover:g,clearColorPressed:b,placeholderColor:y,placeholderColorDisabled:x,fontSizeTiny:T,fontSizeSmall:$,fontSizeMedium:R,fontSizeLarge:w,heightTiny:S,heightSmall:A,heightMedium:I,heightLarge:M}=e;return Object.assign(Object.assign({},Es),{fontSizeTiny:T,fontSizeSmall:$,fontSizeMedium:R,fontSizeLarge:w,heightTiny:S,heightSmall:A,heightMedium:I,heightLarge:M,borderRadius:t,textColor:o,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:x,color:n,colorDisabled:a,colorActive:Se(s,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${l}`,borderActive:`1px solid ${s}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${Se(s,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${Se(s,{alpha:.4})}`,caretColor:s,arrowColor:v,arrowColorDisabled:p,loadingColor:s,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${d}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${Se(d,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${Se(d,{alpha:.4})}`,colorActiveWarning:Se(d,{alpha:.1}),caretColorWarning:d,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${Se(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${Se(u,{alpha:.4})}`,colorActiveError:Se(u,{alpha:.1}),caretColorError:u,clearColor:h,clearColorHover:g,clearColorPressed:b})}},rh=k([m("base-selection",` + --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); + --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); + position: relative; + z-index: auto; + box-shadow: none; + width: 100%; + max-width: 100%; + display: inline-block; + vertical-align: bottom; + border-radius: var(--n-border-radius); + min-height: var(--n-height); + line-height: 1.5; + font-size: var(--n-font-size); + `,[m("base-loading",` + color: var(--n-loading-color); + `),m("base-selection-tags","min-height: var(--n-height);"),P("border, state-border",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border: var(--n-border); + border-radius: inherit; + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),P("state-border",` + z-index: 1; + border-color: #0000; + `),m("base-suffix",` + cursor: pointer; + position: absolute; + top: 50%; + transform: translateY(-50%); + right: 10px; + `,[P("arrow",` + font-size: var(--n-arrow-size); + color: var(--n-arrow-color); + transition: color .3s var(--n-bezier); + `)]),m("base-selection-overlay",` + display: flex; + align-items: center; + white-space: nowrap; + pointer-events: none; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + padding: var(--n-padding-single); + transition: color .3s var(--n-bezier); + `,[P("wrapper",` + flex-basis: 0; + flex-grow: 1; + overflow: hidden; + text-overflow: ellipsis; + `)]),m("base-selection-placeholder",` + color: var(--n-placeholder-color); + `,[P("inner",` + max-width: 100%; + overflow: hidden; + `)]),m("base-selection-tags",` + cursor: pointer; + outline: none; + box-sizing: border-box; + position: relative; + z-index: auto; + display: flex; + padding: var(--n-padding-multiple); + flex-wrap: wrap; + align-items: center; + width: 100%; + vertical-align: bottom; + background-color: var(--n-color); + border-radius: inherit; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `),m("base-selection-label",` + height: var(--n-height); + display: inline-flex; + width: 100%; + vertical-align: bottom; + cursor: pointer; + outline: none; + z-index: auto; + box-sizing: border-box; + position: relative; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + border-radius: inherit; + background-color: var(--n-color); + align-items: center; + `,[m("base-selection-input",` + font-size: inherit; + line-height: inherit; + outline: none; + cursor: pointer; + box-sizing: border-box; + border:none; + width: 100%; + padding: var(--n-padding-single); + background-color: #0000; + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + caret-color: var(--n-caret-color); + `,[P("content",` + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + `)]),P("render-label",` + color: var(--n-text-color); + `)]),nt("disabled",[k("&:hover",[P("state-border",` + box-shadow: var(--n-box-shadow-hover); + border: var(--n-border-hover); + `)]),z("focus",[P("state-border",` + box-shadow: var(--n-box-shadow-focus); + border: var(--n-border-focus); + `)]),z("active",[P("state-border",` + box-shadow: var(--n-box-shadow-active); + border: var(--n-border-active); + `),m("base-selection-label","background-color: var(--n-color-active);"),m("base-selection-tags","background-color: var(--n-color-active);")])]),z("disabled","cursor: not-allowed;",[P("arrow",` + color: var(--n-arrow-color-disabled); + `),m("base-selection-label",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[m("base-selection-input",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + `),P("render-label",` + color: var(--n-text-color-disabled); + `)]),m("base-selection-tags",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `),m("base-selection-placeholder",` + cursor: not-allowed; + color: var(--n-placeholder-color-disabled); + `)]),m("base-selection-input-tag",` + height: calc(var(--n-height) - 6px); + line-height: calc(var(--n-height) - 6px); + outline: none; + display: none; + position: relative; + margin-bottom: 3px; + max-width: 100%; + vertical-align: bottom; + `,[P("input",` + font-size: inherit; + font-family: inherit; + min-width: 1px; + padding: 0; + background-color: #0000; + outline: none; + border: none; + max-width: 100%; + overflow: hidden; + width: 1em; + line-height: inherit; + cursor: pointer; + color: var(--n-text-color); + caret-color: var(--n-caret-color); + `),P("mirror",` + position: absolute; + left: 0; + top: 0; + white-space: pre; + visibility: hidden; + user-select: none; + -webkit-user-select: none; + opacity: 0; + `)]),["warning","error"].map(e=>z(`${e}-status`,[P("state-border",`border: var(--n-border-${e});`),nt("disabled",[k("&:hover",[P("state-border",` + box-shadow: var(--n-box-shadow-hover-${e}); + border: var(--n-border-hover-${e}); + `)]),z("active",[P("state-border",` + box-shadow: var(--n-box-shadow-active-${e}); + border: var(--n-border-active-${e}); + `),m("base-selection-label",`background-color: var(--n-color-active-${e});`),m("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),z("focus",[P("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),m("base-selection-popover",` + margin-bottom: -3px; + display: flex; + flex-wrap: wrap; + margin-right: -8px; + `),m("base-selection-tag-wrapper",` + max-width: 100%; + display: inline-flex; + padding: 0 7px 3px 0; + `,[k("&:last-child","padding-right: 0;"),m("tag",` + font-size: 14px; + max-width: 100%; + `,[P("content",` + line-height: 1.25; + text-overflow: ellipsis; + overflow: hidden; + `)])])]),nh=ie({name:"InternalSelection",props:Object.assign(Object.assign({},Re.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Ze(e),r=Nt("InternalSelection",o,t),n=B(null),a=B(null),s=B(null),l=B(null),d=B(null),c=B(null),u=B(null),f=B(null),v=B(null),p=B(null),h=B(!1),g=B(!1),b=B(!1),y=Re("InternalSelection","-internal-selection",rh,Ls,e,fe(e,"clsPrefix")),x=C(()=>e.clearable&&!e.disabled&&(b.value||e.active)),T=C(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):St(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),$=C(()=>{const de=e.selectedOption;if(de)return de[e.labelField]}),R=C(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function w(){var de;const{value:L}=n;if(L){const{value:we}=a;we&&(we.style.width=`${L.offsetWidth}px`,e.maxTagCount!=="responsive"&&((de=v.value)===null||de===void 0||de.sync({showAllItemsBeforeCalculate:!1})))}}function S(){const{value:de}=p;de&&(de.style.display="none")}function A(){const{value:de}=p;de&&(de.style.display="inline-block")}vt(fe(e,"active"),de=>{de||S()}),vt(fe(e,"pattern"),()=>{e.multiple&&zt(w)});function I(de){const{onFocus:L}=e;L&&L(de)}function M(de){const{onBlur:L}=e;L&&L(de)}function V(de){const{onDeleteOption:L}=e;L&&L(de)}function D(de){const{onClear:L}=e;L&&L(de)}function E(de){const{onPatternInput:L}=e;L&&L(de)}function K(de){var L;(!de.relatedTarget||!(!((L=s.value)===null||L===void 0)&&L.contains(de.relatedTarget)))&&I(de)}function N(de){var L;!((L=s.value)===null||L===void 0)&&L.contains(de.relatedTarget)||M(de)}function oe(de){D(de)}function q(){b.value=!0}function re(){b.value=!1}function me(de){!e.active||!e.filterable||de.target!==a.value&&de.preventDefault()}function ue(de){V(de)}const W=B(!1);function H(de){if(de.key==="Backspace"&&!W.value&&!e.pattern.length){const{selectedOptions:L}=e;L!=null&&L.length&&ue(L[L.length-1])}}let F=null;function j(de){const{value:L}=n;if(L){const we=de.target.value;L.textContent=we,w()}e.ignoreComposition&&W.value?F=de:E(de)}function J(){W.value=!0}function se(){W.value=!1,e.ignoreComposition&&E(F),F=null}function be(de){var L;g.value=!0,(L=e.onPatternFocus)===null||L===void 0||L.call(e,de)}function Ie(de){var L;g.value=!1,(L=e.onPatternBlur)===null||L===void 0||L.call(e,de)}function _(){var de,L;if(e.filterable)g.value=!1,(de=c.value)===null||de===void 0||de.blur(),(L=a.value)===null||L===void 0||L.blur();else if(e.multiple){const{value:we}=l;we==null||we.blur()}else{const{value:we}=d;we==null||we.blur()}}function Pe(){var de,L,we;e.filterable?(g.value=!1,(de=c.value)===null||de===void 0||de.focus()):e.multiple?(L=l.value)===null||L===void 0||L.focus():(we=d.value)===null||we===void 0||we.focus()}function Me(){const{value:de}=a;de&&(A(),de.focus())}function Ee(){const{value:de}=a;de&&de.blur()}function Ge(de){const{value:L}=u;L&&L.setTextContent(`+${de}`)}function Ye(){const{value:de}=f;return de}function st(){return a.value}let ot=null;function xe(){ot!==null&&window.clearTimeout(ot)}function te(){e.active||(xe(),ot=window.setTimeout(()=>{R.value&&(h.value=!0)},100))}function ce(){xe()}function G(de){de||(xe(),h.value=!1)}vt(R,de=>{de||(h.value=!1)}),Jt(()=>{$t(()=>{const de=c.value;de&&(e.disabled?de.removeAttribute("tabindex"):de.tabIndex=g.value?-1:0)})}),bs(s,e.onResize);const{inlineThemeDisabled:Q}=e,pe=C(()=>{const{size:de}=e,{common:{cubicBezierEaseInOut:L},self:{borderRadius:we,color:Ke,placeholderColor:Ct,textColor:Tt,paddingSingle:ht,paddingMultiple:bt,caretColor:yt,colorDisabled:ct,textColorDisabled:De,placeholderColorDisabled:Xe,colorActive:O,boxShadowFocus:Y,boxShadowActive:ve,boxShadowHover:Fe,border:Be,borderFocus:U,borderHover:ge,borderActive:Te,arrowColor:je,arrowColorDisabled:dt,loadingColor:et,colorActiveWarning:ne,boxShadowFocusWarning:$e,boxShadowActiveWarning:He,boxShadowHoverWarning:Qe,borderWarning:Pt,borderFocusWarning:Ft,borderHoverWarning:xt,borderActiveWarning:Z,colorActiveError:ye,boxShadowFocusError:Ue,boxShadowActiveError:X,boxShadowHoverError:he,borderError:ze,borderFocusError:Oe,borderHoverError:Le,borderActiveError:pt,clearColor:It,clearColorHover:Ot,clearColorPressed:Yt,clearSize:eo,arrowSize:ee,[le("height",de)]:ke,[le("fontSize",de)]:Ve}}=y.value,gt=qt(ht),at=qt(bt);return{"--n-bezier":L,"--n-border":Be,"--n-border-active":Te,"--n-border-focus":U,"--n-border-hover":ge,"--n-border-radius":we,"--n-box-shadow-active":ve,"--n-box-shadow-focus":Y,"--n-box-shadow-hover":Fe,"--n-caret-color":yt,"--n-color":Ke,"--n-color-active":O,"--n-color-disabled":ct,"--n-font-size":Ve,"--n-height":ke,"--n-padding-single-top":gt.top,"--n-padding-multiple-top":at.top,"--n-padding-single-right":gt.right,"--n-padding-multiple-right":at.right,"--n-padding-single-left":gt.left,"--n-padding-multiple-left":at.left,"--n-padding-single-bottom":gt.bottom,"--n-padding-multiple-bottom":at.bottom,"--n-placeholder-color":Ct,"--n-placeholder-color-disabled":Xe,"--n-text-color":Tt,"--n-text-color-disabled":De,"--n-arrow-color":je,"--n-arrow-color-disabled":dt,"--n-loading-color":et,"--n-color-active-warning":ne,"--n-box-shadow-focus-warning":$e,"--n-box-shadow-active-warning":He,"--n-box-shadow-hover-warning":Qe,"--n-border-warning":Pt,"--n-border-focus-warning":Ft,"--n-border-hover-warning":xt,"--n-border-active-warning":Z,"--n-color-active-error":ye,"--n-box-shadow-focus-error":Ue,"--n-box-shadow-active-error":X,"--n-box-shadow-hover-error":he,"--n-border-error":ze,"--n-border-focus-error":Oe,"--n-border-hover-error":Le,"--n-border-active-error":pt,"--n-clear-size":eo,"--n-clear-color":It,"--n-clear-color-hover":Ot,"--n-clear-color-pressed":Yt,"--n-arrow-size":ee}}),Ce=Q?it("internal-selection",C(()=>e.size[0]),pe,e):void 0;return{mergedTheme:y,mergedClearable:x,mergedClsPrefix:t,rtlEnabled:r,patternInputFocused:g,filterablePlaceholder:T,label:$,selected:R,showTagsPanel:h,isComposing:W,counterRef:u,counterWrapperRef:f,patternInputMirrorRef:n,patternInputRef:a,selfRef:s,multipleElRef:l,singleElRef:d,patternInputWrapperRef:c,overflowRef:v,inputTagElRef:p,handleMouseDown:me,handleFocusin:K,handleClear:oe,handleMouseEnter:q,handleMouseLeave:re,handleDeleteOption:ue,handlePatternKeyDown:H,handlePatternInputInput:j,handlePatternInputBlur:Ie,handlePatternInputFocus:be,handleMouseEnterCounter:te,handleMouseLeaveCounter:ce,handleFocusout:N,handleCompositionEnd:se,handleCompositionStart:J,onPopoverUpdateShow:G,focus:Pe,focusInput:Me,blur:_,blurInput:Ee,updateCounter:Ge,getCounter:Ye,getTail:st,renderLabel:e.renderLabel,cssVars:Q?void 0:pe,themeClass:Ce==null?void 0:Ce.themeClass,onRender:Ce==null?void 0:Ce.onRender}},render(){const{status:e,multiple:t,size:o,disabled:r,filterable:n,maxTagCount:a,bordered:s,clsPrefix:l,ellipsisTagPopoverProps:d,onRender:c,renderTag:u,renderLabel:f}=this;c==null||c();const v=a==="responsive",p=typeof a=="number",h=v||p,g=i(Ki,null,{default:()=>i(Hs,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var y,x;return(x=(y=this.$slots).arrow)===null||x===void 0?void 0:x.call(y)}})});let b;if(t){const{labelField:y}=this,x=E=>i("div",{class:`${l}-base-selection-tag-wrapper`,key:E.value},u?u({option:E,handleClose:()=>{this.handleDeleteOption(E)}}):i(jn,{size:o,closable:!E.disabled,disabled:r,onClose:()=>{this.handleDeleteOption(E)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>f?f(E,!0):St(E[y],E,!0)})),T=()=>(p?this.selectedOptions.slice(0,a):this.selectedOptions).map(x),$=n?i("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},i("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),i("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,R=v?()=>i("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},i(jn,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let w;if(p){const E=this.selectedOptions.length-a;E>0&&(w=i("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},i(jn,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${E}`})))}const S=v?n?i(Vi,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:T,counter:R,tail:()=>$}):i(Vi,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:T,counter:R}):p&&w?T().concat(w):T(),A=h?()=>i("div",{class:`${l}-base-selection-popover`},v?T():this.selectedOptions.map(x)):void 0,I=h?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},d):null,V=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?i("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},i("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,D=n?i("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},S,v?null:$,g):i("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:r?void 0:0},S,g);b=i(Wt,null,h?i(Rn,Object.assign({},I,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>D,default:A}):D,V)}else if(n){const y=this.pattern||this.isComposing,x=this.active?!y:!this.selected,T=this.active?!1:this.selected;b=i("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`,title:this.patternInputFocused?void 0:nl(this.label)},i("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),T?i("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},i("div",{class:`${l}-base-selection-overlay__wrapper`},u?u({option:this.selectedOption,handleClose:()=>{}}):f?f(this.selectedOption,!0):St(this.label,this.selectedOption,!0))):null,x?i("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},i("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else b=i("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?i("div",{class:`${l}-base-selection-input`,title:nl(this.label),key:"input"},i("div",{class:`${l}-base-selection-input__content`},u?u({option:this.selectedOption,handleClose:()=>{}}):f?f(this.selectedOption,!0):St(this.label,this.selectedOption,!0))):i("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},i("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),g);return i("div",{ref:"selfRef",class:[`${l}-base-selection`,this.rtlEnabled&&`${l}-base-selection--rtl`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},b,s?i("div",{class:`${l}-base-selection__border`}):null,s?i("div",{class:`${l}-base-selection__state-border`}):null)}}),{cubicBezierEaseInOut:Qo}=Co;function ih({duration:e=".2s",delay:t=".1s"}={}){return[k("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),k("&.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; + `),k("&.fade-in-width-expand-transition-leave-active",` + overflow: hidden; + transition: + opacity ${e} ${Qo}, + max-width ${e} ${Qo} ${t}, + margin-left ${e} ${Qo} ${t}, + margin-right ${e} ${Qo} ${t}; + `),k("&.fade-in-width-expand-transition-enter-active",` + overflow: hidden; + transition: + opacity ${e} ${Qo} ${t}, + max-width ${e} ${Qo}, + margin-left ${e} ${Qo}, + margin-right ${e} ${Qo}; + `)]}const Ns={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},ah={name:"Alert",common:_e,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,dividerColor:n,inputColor:a,textColor1:s,textColor2:l,closeColorHover:d,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,infoColorSuppl:p,successColorSuppl:h,warningColorSuppl:g,errorColorSuppl:b,fontSize:y}=e;return Object.assign(Object.assign({},Ns),{fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${n}`,color:a,titleTextColor:s,iconColor:l,contentTextColor:l,closeBorderRadius:o,closeColorHover:d,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,borderInfo:`1px solid ${Se(p,{alpha:.35})}`,colorInfo:Se(p,{alpha:.25}),titleTextColorInfo:s,iconColorInfo:p,contentTextColorInfo:l,closeColorHoverInfo:d,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:f,closeIconColorPressedInfo:v,borderSuccess:`1px solid ${Se(h,{alpha:.35})}`,colorSuccess:Se(h,{alpha:.25}),titleTextColorSuccess:s,iconColorSuccess:h,contentTextColorSuccess:l,closeColorHoverSuccess:d,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:v,borderWarning:`1px solid ${Se(g,{alpha:.35})}`,colorWarning:Se(g,{alpha:.25}),titleTextColorWarning:s,iconColorWarning:g,contentTextColorWarning:l,closeColorHoverWarning:d,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:f,closeIconColorPressedWarning:v,borderError:`1px solid ${Se(b,{alpha:.35})}`,colorError:Se(b,{alpha:.25}),titleTextColorError:s,iconColorError:b,contentTextColorError:l,closeColorHoverError:d,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:f,closeIconColorPressedError:v})}};function lh(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,baseColor:n,dividerColor:a,actionColor:s,textColor1:l,textColor2:d,closeColorHover:c,closeColorPressed:u,closeIconColor:f,closeIconColorHover:v,closeIconColorPressed:p,infoColor:h,successColor:g,warningColor:b,errorColor:y,fontSize:x}=e;return Object.assign(Object.assign({},Ns),{fontSize:x,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${a}`,color:s,titleTextColor:l,iconColor:d,contentTextColor:d,closeBorderRadius:o,closeColorHover:c,closeColorPressed:u,closeIconColor:f,closeIconColorHover:v,closeIconColorPressed:p,borderInfo:`1px solid ${We(n,Se(h,{alpha:.25}))}`,colorInfo:We(n,Se(h,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:h,contentTextColorInfo:d,closeColorHoverInfo:c,closeColorPressedInfo:u,closeIconColorInfo:f,closeIconColorHoverInfo:v,closeIconColorPressedInfo:p,borderSuccess:`1px solid ${We(n,Se(g,{alpha:.25}))}`,colorSuccess:We(n,Se(g,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:g,contentTextColorSuccess:d,closeColorHoverSuccess:c,closeColorPressedSuccess:u,closeIconColorSuccess:f,closeIconColorHoverSuccess:v,closeIconColorPressedSuccess:p,borderWarning:`1px solid ${We(n,Se(b,{alpha:.33}))}`,colorWarning:We(n,Se(b,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:b,contentTextColorWarning:d,closeColorHoverWarning:c,closeColorPressedWarning:u,closeIconColorWarning:f,closeIconColorHoverWarning:v,closeIconColorPressedWarning:p,borderError:`1px solid ${We(n,Se(y,{alpha:.25}))}`,colorError:We(n,Se(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:d,closeColorHoverError:c,closeColorPressedError:u,closeIconColorError:f,closeIconColorHoverError:v,closeIconColorPressedError:p})}const sh={name:"Alert",common:lt,self:lh},{cubicBezierEaseInOut:Do,cubicBezierEaseOut:dh,cubicBezierEaseIn:ch}=Co;function cn({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:r="0s",foldPadding:n=!1,enterToProps:a=void 0,leaveToProps:s=void 0,reverse:l=!1}={}){const d=l?"leave":"enter",c=l?"enter":"leave";return[k(`&.fade-in-height-expand-transition-${c}-from, + &.fade-in-height-expand-transition-${d}-to`,Object.assign(Object.assign({},a),{opacity:1})),k(`&.fade-in-height-expand-transition-${c}-to, + &.fade-in-height-expand-transition-${d}-from`,Object.assign(Object.assign({},s),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:n?"0 !important":void 0,paddingBottom:n?"0 !important":void 0})),k(`&.fade-in-height-expand-transition-${c}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${Do} ${r}, + opacity ${t} ${dh} ${r}, + margin-top ${t} ${Do} ${r}, + margin-bottom ${t} ${Do} ${r}, + padding-top ${t} ${Do} ${r}, + padding-bottom ${t} ${Do} ${r} + ${o?`,${o}`:""} + `),k(`&.fade-in-height-expand-transition-${d}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${Do}, + opacity ${t} ${ch}, + margin-top ${t} ${Do}, + margin-bottom ${t} ${Do}, + padding-top ${t} ${Do}, + padding-bottom ${t} ${Do} + ${o?`,${o}`:""} + `)]}const uh=m("alert",` + line-height: var(--n-line-height); + border-radius: var(--n-border-radius); + position: relative; + transition: background-color .3s var(--n-bezier); + background-color: var(--n-color); + text-align: start; + word-break: break-word; +`,[P("border",` + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + transition: border-color .3s var(--n-bezier); + border: var(--n-border); + pointer-events: none; + `),z("closable",[m("alert-body",[P("title",` + padding-right: 24px; + `)])]),P("icon",{color:"var(--n-icon-color)"}),m("alert-body",{padding:"var(--n-padding)"},[P("title",{color:"var(--n-title-text-color)"}),P("content",{color:"var(--n-content-text-color)"})]),cn({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),P("icon",` + position: absolute; + left: 0; + top: 0; + align-items: center; + justify-content: center; + display: flex; + width: var(--n-icon-size); + height: var(--n-icon-size); + font-size: var(--n-icon-size); + margin: var(--n-icon-margin); + `),P("close",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + position: absolute; + right: 0; + top: 0; + margin: var(--n-close-margin); + `),z("show-icon",[m("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),z("right-adjust",[m("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),m("alert-body",` + border-radius: var(--n-border-radius); + transition: border-color .3s var(--n-bezier); + `,[P("title",` + transition: color .3s var(--n-bezier); + font-size: 16px; + line-height: 19px; + font-weight: var(--n-title-font-weight); + `,[k("& +",[P("content",{marginTop:"9px"})])]),P("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),P("icon",{transition:"color .3s var(--n-bezier)"})]),fh=Object.assign(Object.assign({},Re.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),ZC=ie({name:"Alert",inheritAttrs:!1,props:fh,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Ze(e),a=Re("Alert","-alert",uh,sh,e,t),s=Nt("Alert",n,t),l=C(()=>{const{common:{cubicBezierEaseInOut:p},self:h}=a.value,{fontSize:g,borderRadius:b,titleFontWeight:y,lineHeight:x,iconSize:T,iconMargin:$,iconMarginRtl:R,closeIconSize:w,closeBorderRadius:S,closeSize:A,closeMargin:I,closeMarginRtl:M,padding:V}=h,{type:D}=e,{left:E,right:K}=qt($);return{"--n-bezier":p,"--n-color":h[le("color",D)],"--n-close-icon-size":w,"--n-close-border-radius":S,"--n-close-color-hover":h[le("closeColorHover",D)],"--n-close-color-pressed":h[le("closeColorPressed",D)],"--n-close-icon-color":h[le("closeIconColor",D)],"--n-close-icon-color-hover":h[le("closeIconColorHover",D)],"--n-close-icon-color-pressed":h[le("closeIconColorPressed",D)],"--n-icon-color":h[le("iconColor",D)],"--n-border":h[le("border",D)],"--n-title-text-color":h[le("titleTextColor",D)],"--n-content-text-color":h[le("contentTextColor",D)],"--n-line-height":x,"--n-border-radius":b,"--n-font-size":g,"--n-title-font-weight":y,"--n-icon-size":T,"--n-icon-margin":$,"--n-icon-margin-rtl":R,"--n-close-size":A,"--n-close-margin":I,"--n-close-margin-rtl":M,"--n-padding":V,"--n-icon-margin-left":E,"--n-icon-margin-right":K}}),d=r?it("alert",C(()=>e.type[0]),l,e):void 0,c=B(!0),u=()=>{const{onAfterLeave:p,onAfterHide:h}=e;p&&p(),h&&h()};return{rtlEnabled:s,mergedClsPrefix:t,mergedBordered:o,visible:c,handleCloseClick:()=>{var p;Promise.resolve((p=e.onClose)===null||p===void 0?void 0:p.call(e)).then(h=>{h!==!1&&(c.value=!1)})},handleAfterLeave:()=>{u()},mergedTheme:a,cssVars:r?void 0:l,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),i(yn,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:o}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?i("div",Object.assign({},ao(this.$attrs,r)),this.closable&&i(ur,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&i("div",{class:`${t}-alert__border`}),this.showIcon&&i("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},ft(o.icon,()=>[i(kt,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return i(xn,null);case"info":return i(Er,null);case"warning":return i(Cn,null);case"error":return i(bn,null);default:return null}}})])),i("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},mt(o.header,n=>{const a=n||this.title;return a?i("div",{class:`${t}-alert-body__title`},a):null}),o.default&&i("div",{class:`${t}-alert-body__content`},o))):null}})}}),hh={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function vh(e){const{borderRadius:t,railColor:o,primaryColor:r,primaryColorHover:n,primaryColorPressed:a,textColor2:s}=e;return Object.assign(Object.assign({},hh),{borderRadius:t,railColor:o,railColorActive:r,linkColor:Se(r,{alpha:.15}),linkTextColor:s,linkTextColorHover:n,linkTextColorPressed:a,linkTextColorActive:r})}const ph={name:"Anchor",common:_e,self:vh};function Jn(e){return e.type==="group"}function js(e){return e.type==="ignored"}function gi(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function Vs(e,t){return{getIsGroup:Jn,getIgnored:js,getKey(r){return Jn(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function gh(e,t,o,r){if(!t)return e;function n(a){if(!Array.isArray(a))return[];const s=[];for(const l of a)if(Jn(l)){const d=n(l[r]);d.length&&s.push(Object.assign({},l,{[r]:d}))}else{if(js(l))continue;t(o,l)&&s.push(l)}return s}return n(e)}function mh(e,t,o){const r=new Map;return e.forEach(n=>{Jn(n)?n[o].forEach(a=>{r.set(a[t],a)}):r.set(n[t],n)}),r}const bh=bo&&"chrome"in window;bo&&navigator.userAgent.includes("Firefox");const Ws=bo&&navigator.userAgent.includes("Safari")&&!bh,Us={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},Po={name:"Input",common:_e,self(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:a,inputColor:s,inputColorDisabled:l,warningColor:d,warningColorHover:c,errorColor:u,errorColorHover:f,borderRadius:v,lineHeight:p,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:b,fontSizeLarge:y,heightTiny:x,heightSmall:T,heightMedium:$,heightLarge:R,clearColor:w,clearColorHover:S,clearColorPressed:A,placeholderColor:I,placeholderColorDisabled:M,iconColor:V,iconColorDisabled:D,iconColorHover:E,iconColorPressed:K}=e;return Object.assign(Object.assign({},Us),{countTextColorDisabled:r,countTextColor:o,heightTiny:x,heightSmall:T,heightMedium:$,heightLarge:R,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:b,fontSizeLarge:y,lineHeight:p,lineHeightTextarea:p,borderRadius:v,iconSize:"16px",groupLabelColor:s,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:I,placeholderColorDisabled:M,color:s,colorDisabled:l,colorFocus:Se(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${a}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 8px 0 ${Se(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:d,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:Se(d,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${Se(d,{alpha:.3})}`,caretColorWarning:d,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:Se(u,{alpha:.1}),borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 8px 0 ${Se(u,{alpha:.3})}`,caretColorError:u,clearColor:w,clearColorHover:S,clearColorPressed:A,iconColor:V,iconColorDisabled:D,iconColorHover:E,iconColorPressed:K,suffixTextColor:t})}};function xh(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:a,inputColor:s,inputColorDisabled:l,borderColor:d,warningColor:c,warningColorHover:u,errorColor:f,errorColorHover:v,borderRadius:p,lineHeight:h,fontSizeTiny:g,fontSizeSmall:b,fontSizeMedium:y,fontSizeLarge:x,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:w,actionColor:S,clearColor:A,clearColorHover:I,clearColorPressed:M,placeholderColor:V,placeholderColorDisabled:D,iconColor:E,iconColorDisabled:K,iconColorHover:N,iconColorPressed:oe}=e;return Object.assign(Object.assign({},Us),{countTextColorDisabled:r,countTextColor:o,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:w,fontSizeTiny:g,fontSizeSmall:b,fontSizeMedium:y,fontSizeLarge:x,lineHeight:h,lineHeightTextarea:h,borderRadius:p,iconSize:"16px",groupLabelColor:S,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:n,placeholderColor:V,placeholderColorDisabled:D,color:s,colorDisabled:l,colorFocus:s,groupLabelBorder:`1px solid ${d}`,border:`1px solid ${d}`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid ${d}`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 0 2px ${Se(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:s,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${Se(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${v}`,colorFocusError:s,borderFocusError:`1px solid ${v}`,boxShadowFocusError:`0 0 0 2px ${Se(f,{alpha:.2})}`,caretColorError:f,clearColor:A,clearColorHover:I,clearColorPressed:M,iconColor:E,iconColorDisabled:K,iconColorHover:N,iconColorPressed:oe,suffixTextColor:t})}const vr={name:"Input",common:lt,self:xh},Ks="n-input";function Ch(e){let t=0;for(const o of e)t++;return t}function Fn(e){return e===""||e==null}function yh(e){const t=B(null);function o(){const{value:a}=e;if(!(a!=null&&a.focus)){n();return}const{selectionStart:s,selectionEnd:l,value:d}=a;if(s==null||l==null){n();return}t.value={start:s,end:l,beforeText:d.slice(0,s),afterText:d.slice(l)}}function r(){var a;const{value:s}=t,{value:l}=e;if(!s||!l)return;const{value:d}=l,{start:c,beforeText:u,afterText:f}=s;let v=d.length;if(d.endsWith(f))v=d.length-f.length;else if(d.startsWith(u))v=u.length;else{const p=u[c-1],h=d.indexOf(p,c-1);h!==-1&&(v=h+1)}(a=l.setSelectionRange)===null||a===void 0||a.call(l,v,v)}function n(){t.value=null}return vt(e,n),{recordCursor:o,restoreCursor:r}}const Sl=ie({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:o,maxlengthRef:r,mergedClsPrefixRef:n,countGraphemesRef:a}=Ae(Ks),s=C(()=>{const{value:l}=o;return l===null||Array.isArray(l)?0:(a.value||Ch)(l)});return()=>{const{value:l}=r,{value:d}=o;return i("span",{class:`${n.value}-input-word-count`},io(t.default,{value:d===null||Array.isArray(d)?"":d},()=>[l===void 0?s.value:`${s.value} / ${l}`]))}}}),wh=m("input",` + max-width: 100%; + cursor: text; + line-height: 1.5; + z-index: auto; + outline: none; + box-sizing: border-box; + position: relative; + display: inline-flex; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color .3s var(--n-bezier); + font-size: var(--n-font-size); + --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); +`,[P("input, textarea",` + overflow: hidden; + flex-grow: 1; + position: relative; + `),P("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` + box-sizing: border-box; + font-size: inherit; + line-height: 1.5; + font-family: inherit; + border: none; + outline: none; + background-color: #0000; + text-align: inherit; + transition: + -webkit-text-fill-color .3s var(--n-bezier), + caret-color .3s var(--n-bezier), + color .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + `),P("input-el, textarea-el",` + -webkit-appearance: none; + scrollbar-width: none; + width: 100%; + min-width: 0; + text-decoration-color: var(--n-text-decoration-color); + color: var(--n-text-color); + caret-color: var(--n-caret-color); + background-color: transparent; + `,[k("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),k("&::placeholder",` + color: #0000; + -webkit-text-fill-color: transparent !important; + `),k("&:-webkit-autofill ~",[P("placeholder","display: none;")])]),z("round",[nt("textarea","border-radius: calc(var(--n-height) / 2);")]),P("placeholder",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: hidden; + color: var(--n-placeholder-color); + `,[k("span",` + width: 100%; + display: inline-block; + `)]),z("textarea",[P("placeholder","overflow: visible;")]),nt("autosize","width: 100%;"),z("autosize",[P("textarea-el, input-el",` + position: absolute; + top: 0; + left: 0; + height: 100%; + `)]),m("input-wrapper",` + overflow: hidden; + display: inline-flex; + flex-grow: 1; + position: relative; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + `),P("input-mirror",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre; + pointer-events: none; + `),P("input-el",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + `,[k("&[type=password]::-ms-reveal","display: none;"),k("+",[P("placeholder",` + display: flex; + align-items: center; + `)])]),nt("textarea",[P("placeholder","white-space: nowrap;")]),P("eye",` + display: flex; + align-items: center; + justify-content: center; + transition: color .3s var(--n-bezier); + `),z("textarea","width: 100%;",[m("input-word-count",` + position: absolute; + right: var(--n-padding-right); + bottom: var(--n-padding-vertical); + `),z("resizable",[m("input-wrapper",` + resize: vertical; + min-height: var(--n-height); + `)]),P("textarea-el, textarea-mirror, placeholder",` + height: 100%; + padding-left: 0; + padding-right: 0; + padding-top: var(--n-padding-vertical); + padding-bottom: var(--n-padding-vertical); + word-break: break-word; + display: inline-block; + vertical-align: bottom; + box-sizing: border-box; + line-height: var(--n-line-height-textarea); + margin: 0; + resize: none; + white-space: pre-wrap; + scroll-padding-block-end: var(--n-padding-vertical); + `),P("textarea-mirror",` + width: 100%; + pointer-events: none; + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre-wrap; + overflow-wrap: break-word; + `)]),z("pair",[P("input-el, placeholder","text-align: center;"),P("separator",` + display: flex; + align-items: center; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + white-space: nowrap; + `,[m("icon",` + color: var(--n-icon-color); + `),m("base-icon",` + color: var(--n-icon-color); + `)])]),z("disabled",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[P("border","border: var(--n-border-disabled);"),P("input-el, textarea-el",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + text-decoration-color: var(--n-text-color-disabled); + `),P("placeholder","color: var(--n-placeholder-color-disabled);"),P("separator","color: var(--n-text-color-disabled);",[m("icon",` + color: var(--n-icon-color-disabled); + `),m("base-icon",` + color: var(--n-icon-color-disabled); + `)]),m("input-word-count",` + color: var(--n-count-text-color-disabled); + `),P("suffix, prefix","color: var(--n-text-color-disabled);",[m("icon",` + color: var(--n-icon-color-disabled); + `),m("internal-icon",` + color: var(--n-icon-color-disabled); + `)])]),nt("disabled",[P("eye",` + color: var(--n-icon-color); + cursor: pointer; + `,[k("&:hover",` + color: var(--n-icon-color-hover); + `),k("&:active",` + color: var(--n-icon-color-pressed); + `)]),k("&:hover",[P("state-border","border: var(--n-border-hover);")]),z("focus","background-color: var(--n-color-focus);",[P("state-border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),P("border, state-border",` + box-sizing: border-box; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: inherit; + border: var(--n-border); + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),P("state-border",` + border-color: #0000; + z-index: 1; + `),P("prefix","margin-right: 4px;"),P("suffix",` + margin-left: 4px; + `),P("suffix, prefix",` + transition: color .3s var(--n-bezier); + flex-wrap: nowrap; + flex-shrink: 0; + line-height: var(--n-height); + white-space: nowrap; + display: inline-flex; + align-items: center; + justify-content: center; + color: var(--n-suffix-text-color); + `,[m("base-loading",` + font-size: var(--n-icon-size); + margin: 0 2px; + color: var(--n-loading-color); + `),m("base-clear",` + font-size: var(--n-icon-size); + `,[P("placeholder",[m("base-icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)])]),k(">",[m("icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)]),m("base-icon",` + font-size: var(--n-icon-size); + `)]),m("input-word-count",` + pointer-events: none; + line-height: 1.5; + font-size: .85em; + color: var(--n-count-text-color); + transition: color .3s var(--n-bezier); + margin-left: 4px; + font-variant: tabular-nums; + `),["warning","error"].map(e=>z(`${e}-status`,[nt("disabled",[m("base-loading",` + color: var(--n-loading-color-${e}) + `),P("input-el, textarea-el",` + caret-color: var(--n-caret-color-${e}); + `),P("state-border",` + border: var(--n-border-${e}); + `),k("&:hover",[P("state-border",` + border: var(--n-border-hover-${e}); + `)]),k("&:focus",` + background-color: var(--n-color-focus-${e}); + `,[P("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)]),z("focus",` + background-color: var(--n-color-focus-${e}); + `,[P("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),Sh=m("input",[z("disabled",[P("input-el, textarea-el",` + -webkit-text-fill-color: var(--n-text-color-disabled); + `)])]),kh=Object.assign(Object.assign({},Re.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),Bo=ie({name:"Input",props:kh,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Ze(e),a=Re("Input","-input",wh,vr,e,t);Ws&&dr("-input-safari",Sh,t);const s=B(null),l=B(null),d=B(null),c=B(null),u=B(null),f=B(null),v=B(null),p=yh(v),h=B(null),{localeRef:g}=zo("Input"),b=B(e.defaultValue),y=fe(e,"value"),x=Rt(y,b),T=xo(e),{mergedSizeRef:$,mergedDisabledRef:R,mergedStatusRef:w}=T,S=B(!1),A=B(!1),I=B(!1),M=B(!1);let V=null;const D=C(()=>{const{placeholder:Z,pair:ye}=e;return ye?Array.isArray(Z)?Z:Z===void 0?["",""]:[Z,Z]:Z===void 0?[g.value.placeholder]:[Z]}),E=C(()=>{const{value:Z}=I,{value:ye}=x,{value:Ue}=D;return!Z&&(Fn(ye)||Array.isArray(ye)&&Fn(ye[0]))&&Ue[0]}),K=C(()=>{const{value:Z}=I,{value:ye}=x,{value:Ue}=D;return!Z&&Ue[1]&&(Fn(ye)||Array.isArray(ye)&&Fn(ye[1]))}),N=tt(()=>e.internalForceFocus||S.value),oe=tt(()=>{if(R.value||e.readonly||!e.clearable||!N.value&&!A.value)return!1;const{value:Z}=x,{value:ye}=N;return e.pair?!!(Array.isArray(Z)&&(Z[0]||Z[1]))&&(A.value||ye):!!Z&&(A.value||ye)}),q=C(()=>{const{showPasswordOn:Z}=e;if(Z)return Z;if(e.showPasswordToggle)return"click"}),re=B(!1),me=C(()=>{const{textDecoration:Z}=e;return Z?Array.isArray(Z)?Z.map(ye=>({textDecoration:ye})):[{textDecoration:Z}]:["",""]}),ue=B(void 0),W=()=>{var Z,ye;if(e.type==="textarea"){const{autosize:Ue}=e;if(Ue&&(ue.value=(ye=(Z=h.value)===null||Z===void 0?void 0:Z.$el)===null||ye===void 0?void 0:ye.offsetWidth),!l.value||typeof Ue=="boolean")return;const{paddingTop:X,paddingBottom:he,lineHeight:ze}=window.getComputedStyle(l.value),Oe=Number(X.slice(0,-2)),Le=Number(he.slice(0,-2)),pt=Number(ze.slice(0,-2)),{value:It}=d;if(!It)return;if(Ue.minRows){const Ot=Math.max(Ue.minRows,1),Yt=`${Oe+Le+pt*Ot}px`;It.style.minHeight=Yt}if(Ue.maxRows){const Ot=`${Oe+Le+pt*Ue.maxRows}px`;It.style.maxHeight=Ot}}},H=C(()=>{const{maxlength:Z}=e;return Z===void 0?void 0:Number(Z)});Jt(()=>{const{value:Z}=x;Array.isArray(Z)||je(Z)});const F=da().proxy;function j(Z,ye){const{onUpdateValue:Ue,"onUpdate:value":X,onInput:he}=e,{nTriggerFormInput:ze}=T;Ue&&ae(Ue,Z,ye),X&&ae(X,Z,ye),he&&ae(he,Z,ye),b.value=Z,ze()}function J(Z,ye){const{onChange:Ue}=e,{nTriggerFormChange:X}=T;Ue&&ae(Ue,Z,ye),b.value=Z,X()}function se(Z){const{onBlur:ye}=e,{nTriggerFormBlur:Ue}=T;ye&&ae(ye,Z),Ue()}function be(Z){const{onFocus:ye}=e,{nTriggerFormFocus:Ue}=T;ye&&ae(ye,Z),Ue()}function Ie(Z){const{onClear:ye}=e;ye&&ae(ye,Z)}function _(Z){const{onInputBlur:ye}=e;ye&&ae(ye,Z)}function Pe(Z){const{onInputFocus:ye}=e;ye&&ae(ye,Z)}function Me(){const{onDeactivate:Z}=e;Z&&ae(Z)}function Ee(){const{onActivate:Z}=e;Z&&ae(Z)}function Ge(Z){const{onClick:ye}=e;ye&&ae(ye,Z)}function Ye(Z){const{onWrapperFocus:ye}=e;ye&&ae(ye,Z)}function st(Z){const{onWrapperBlur:ye}=e;ye&&ae(ye,Z)}function ot(){I.value=!0}function xe(Z){I.value=!1,Z.target===f.value?te(Z,1):te(Z,0)}function te(Z,ye=0,Ue="input"){const X=Z.target.value;if(je(X),Z instanceof InputEvent&&!Z.isComposing&&(I.value=!1),e.type==="textarea"){const{value:ze}=h;ze&&ze.syncUnifiedContainer()}if(V=X,I.value)return;p.recordCursor();const he=ce(X);if(he)if(!e.pair)Ue==="input"?j(X,{source:ye}):J(X,{source:ye});else{let{value:ze}=x;Array.isArray(ze)?ze=[ze[0],ze[1]]:ze=["",""],ze[ye]=X,Ue==="input"?j(ze,{source:ye}):J(ze,{source:ye})}F.$forceUpdate(),he||zt(p.restoreCursor)}function ce(Z){const{countGraphemes:ye,maxlength:Ue,minlength:X}=e;if(ye){let ze;if(Ue!==void 0&&(ze===void 0&&(ze=ye(Z)),ze>Number(Ue))||X!==void 0&&(ze===void 0&&(ze=ye(Z)),ze{X.preventDefault(),Kt("mouseup",document,ye)};if(Zt("mouseup",document,ye),q.value!=="mousedown")return;re.value=!0;const Ue=()=>{re.value=!1,Kt("mouseup",document,Ue)};Zt("mouseup",document,Ue)}function De(Z){e.onKeyup&&ae(e.onKeyup,Z)}function Xe(Z){switch(e.onKeydown&&ae(e.onKeydown,Z),Z.key){case"Escape":Y();break;case"Enter":O(Z);break}}function O(Z){var ye,Ue;if(e.passivelyActivated){const{value:X}=M;if(X){e.internalDeactivateOnEnter&&Y();return}Z.preventDefault(),e.type==="textarea"?(ye=l.value)===null||ye===void 0||ye.focus():(Ue=u.value)===null||Ue===void 0||Ue.focus()}}function Y(){e.passivelyActivated&&(M.value=!1,zt(()=>{var Z;(Z=s.value)===null||Z===void 0||Z.focus()}))}function ve(){var Z,ye,Ue;R.value||(e.passivelyActivated?(Z=s.value)===null||Z===void 0||Z.focus():((ye=l.value)===null||ye===void 0||ye.focus(),(Ue=u.value)===null||Ue===void 0||Ue.focus()))}function Fe(){var Z;!((Z=s.value)===null||Z===void 0)&&Z.contains(document.activeElement)&&document.activeElement.blur()}function Be(){var Z,ye;(Z=l.value)===null||Z===void 0||Z.select(),(ye=u.value)===null||ye===void 0||ye.select()}function U(){R.value||(l.value?l.value.focus():u.value&&u.value.focus())}function ge(){const{value:Z}=s;Z!=null&&Z.contains(document.activeElement)&&Z!==document.activeElement&&Y()}function Te(Z){if(e.type==="textarea"){const{value:ye}=l;ye==null||ye.scrollTo(Z)}else{const{value:ye}=u;ye==null||ye.scrollTo(Z)}}function je(Z){const{type:ye,pair:Ue,autosize:X}=e;if(!Ue&&X)if(ye==="textarea"){const{value:he}=d;he&&(he.textContent=`${Z??""}\r +`)}else{const{value:he}=c;he&&(Z?he.textContent=Z:he.innerHTML=" ")}}function dt(){W()}const et=B({top:"0"});function ne(Z){var ye;const{scrollTop:Ue}=Z.target;et.value.top=`${-Ue}px`,(ye=h.value)===null||ye===void 0||ye.syncUnifiedContainer()}let $e=null;$t(()=>{const{autosize:Z,type:ye}=e;Z&&ye==="textarea"?$e=vt(x,Ue=>{!Array.isArray(Ue)&&Ue!==V&&je(Ue)}):$e==null||$e()});let He=null;$t(()=>{e.type==="textarea"?He=vt(x,Z=>{var ye;!Array.isArray(Z)&&Z!==V&&((ye=h.value)===null||ye===void 0||ye.syncUnifiedContainer())}):He==null||He()}),Je(Ks,{mergedValueRef:x,maxlengthRef:H,mergedClsPrefixRef:t,countGraphemesRef:fe(e,"countGraphemes")});const Qe={wrapperElRef:s,inputElRef:u,textareaElRef:l,isCompositing:I,clear:Ct,focus:ve,blur:Fe,select:Be,deactivate:ge,activate:U,scrollTo:Te},Pt=Nt("Input",n,t),Ft=C(()=>{const{value:Z}=$,{common:{cubicBezierEaseInOut:ye},self:{color:Ue,borderRadius:X,textColor:he,caretColor:ze,caretColorError:Oe,caretColorWarning:Le,textDecorationColor:pt,border:It,borderDisabled:Ot,borderHover:Yt,borderFocus:eo,placeholderColor:ee,placeholderColorDisabled:ke,lineHeightTextarea:Ve,colorDisabled:gt,colorFocus:at,textColorDisabled:ut,boxShadowFocus:to,iconSize:vo,colorFocusWarning:yo,boxShadowFocusWarning:Zo,borderWarning:Lo,borderFocusWarning:Kr,borderHoverWarning:qr,colorFocusError:Gr,boxShadowFocusError:Yr,borderError:Xr,borderFocusError:Zr,borderHoverError:di,clearSize:Qc,clearColor:Jc,clearColorHover:eu,clearColorPressed:tu,iconColor:ou,iconColorDisabled:ru,suffixTextColor:nu,countTextColor:iu,countTextColorDisabled:au,iconColorHover:lu,iconColorPressed:su,loadingColor:du,loadingColorError:cu,loadingColorWarning:uu,[le("padding",Z)]:fu,[le("fontSize",Z)]:hu,[le("height",Z)]:vu}}=a.value,{left:pu,right:gu}=qt(fu);return{"--n-bezier":ye,"--n-count-text-color":iu,"--n-count-text-color-disabled":au,"--n-color":Ue,"--n-font-size":hu,"--n-border-radius":X,"--n-height":vu,"--n-padding-left":pu,"--n-padding-right":gu,"--n-text-color":he,"--n-caret-color":ze,"--n-text-decoration-color":pt,"--n-border":It,"--n-border-disabled":Ot,"--n-border-hover":Yt,"--n-border-focus":eo,"--n-placeholder-color":ee,"--n-placeholder-color-disabled":ke,"--n-icon-size":vo,"--n-line-height-textarea":Ve,"--n-color-disabled":gt,"--n-color-focus":at,"--n-text-color-disabled":ut,"--n-box-shadow-focus":to,"--n-loading-color":du,"--n-caret-color-warning":Le,"--n-color-focus-warning":yo,"--n-box-shadow-focus-warning":Zo,"--n-border-warning":Lo,"--n-border-focus-warning":Kr,"--n-border-hover-warning":qr,"--n-loading-color-warning":uu,"--n-caret-color-error":Oe,"--n-color-focus-error":Gr,"--n-box-shadow-focus-error":Yr,"--n-border-error":Xr,"--n-border-focus-error":Zr,"--n-border-hover-error":di,"--n-loading-color-error":cu,"--n-clear-color":Jc,"--n-clear-size":Qc,"--n-clear-color-hover":eu,"--n-clear-color-pressed":tu,"--n-icon-color":ou,"--n-icon-color-hover":lu,"--n-icon-color-pressed":su,"--n-icon-color-disabled":ru,"--n-suffix-text-color":nu}}),xt=r?it("input",C(()=>{const{value:Z}=$;return Z[0]}),Ft,e):void 0;return Object.assign(Object.assign({},Qe),{wrapperElRef:s,inputElRef:u,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:d,textareaScrollbarInstRef:h,rtlEnabled:Pt,uncontrolledValue:b,mergedValue:x,passwordVisible:re,mergedPlaceholder:D,showPlaceholder1:E,showPlaceholder2:K,mergedFocus:N,isComposing:I,activated:M,showClearButton:oe,mergedSize:$,mergedDisabled:R,textDecorationStyle:me,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:q,placeholderStyle:et,mergedStatus:w,textAreaScrollContainerWidth:ue,handleTextAreaScroll:ne,handleCompositionStart:ot,handleCompositionEnd:xe,handleInput:te,handleInputBlur:G,handleInputFocus:Q,handleWrapperBlur:pe,handleWrapperFocus:Ce,handleMouseEnter:ht,handleMouseLeave:bt,handleMouseDown:Tt,handleChange:L,handleClick:we,handleClear:Ke,handlePasswordToggleClick:yt,handlePasswordToggleMousedown:ct,handleWrapperKeydown:Xe,handleWrapperKeyup:De,handleTextAreaMirrorResize:dt,getTextareaScrollContainer:()=>l.value,mergedTheme:a,cssVars:r?void 0:Ft,themeClass:xt==null?void 0:xt.themeClass,onRender:xt==null?void 0:xt.onRender})},render(){var e,t;const{mergedClsPrefix:o,mergedStatus:r,themeClass:n,type:a,countGraphemes:s,onRender:l}=this,d=this.$slots;return l==null||l(),i("div",{ref:"wrapperElRef",class:[`${o}-input`,n,r&&`${o}-input--${r}-status`,{[`${o}-input--rtl`]:this.rtlEnabled,[`${o}-input--disabled`]:this.mergedDisabled,[`${o}-input--textarea`]:a==="textarea",[`${o}-input--resizable`]:this.resizable&&!this.autosize,[`${o}-input--autosize`]:this.autosize,[`${o}-input--round`]:this.round&&a!=="textarea",[`${o}-input--pair`]:this.pair,[`${o}-input--focus`]:this.mergedFocus,[`${o}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},i("div",{class:`${o}-input-wrapper`},mt(d.prefix,c=>c&&i("div",{class:`${o}-input__prefix`},c)),a==="textarea"?i(Lt,{ref:"textareaScrollbarInstRef",class:`${o}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,u;const{textAreaScrollContainerWidth:f}=this,v={width:this.autosize&&f&&`${f}px`};return i(Wt,null,i("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${o}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:s?void 0:this.maxlength,minlength:s?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(u=this.inputProps)===null||u===void 0?void 0:u.style,v],onBlur:this.handleInputBlur,onFocus:p=>{this.handleInputFocus(p,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?i("div",{class:`${o}-input__placeholder`,style:[this.placeholderStyle,v],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?i(Mo,{onResize:this.handleTextAreaMirrorResize},{default:()=>i("div",{ref:"textareaMirrorElRef",class:`${o}-input__textarea-mirror`,key:"mirror"})}):null)}}):i("div",{class:`${o}-input__input`},i("input",Object.assign({type:a==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":a},this.inputProps,{ref:"inputElRef",class:[`${o}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:s?void 0:this.maxlength,minlength:s?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?i("div",{class:`${o}-input__placeholder`},i("span",null,this.mergedPlaceholder[0])):null,this.autosize?i("div",{class:`${o}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&mt(d.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?i("div",{class:`${o}-input__suffix`},[mt(d["clear-icon-placeholder"],u=>(this.clearable||u)&&i(Gi,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>u,icon:()=>{var f,v;return(v=(f=this.$slots)["clear-icon"])===null||v===void 0?void 0:v.call(f)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?i(Hs,{clsPrefix:o,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?i(Sl,null,{default:u=>{var f;return(f=d.count)===null||f===void 0?void 0:f.call(d,u)}}):null,this.mergedShowPasswordOn&&this.type==="password"?i("div",{class:`${o}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?ft(d["password-visible-icon"],()=>[i(kt,{clsPrefix:o},{default:()=>i(vf,null)})]):ft(d["password-invisible-icon"],()=>[i(kt,{clsPrefix:o},{default:()=>i(pf,null)})])):null]):null)),this.pair?i("span",{class:`${o}-input__separator`},ft(d.separator,()=>[this.separator])):null,this.pair?i("div",{class:`${o}-input-wrapper`},i("div",{class:`${o}-input__input`},i("input",{ref:"inputEl2Ref",type:this.type,class:`${o}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:s?void 0:this.maxlength,minlength:s?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?i("div",{class:`${o}-input__placeholder`},i("span",null,this.mergedPlaceholder[1])):null),mt(d.suffix,c=>(this.clearable||c)&&i("div",{class:`${o}-input__suffix`},[this.clearable&&i(Gi,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var u;return(u=d["clear-icon"])===null||u===void 0?void 0:u.call(d)},placeholder:()=>{var u;return(u=d["clear-icon-placeholder"])===null||u===void 0?void 0:u.call(d)}}),c]))):null,this.mergedBordered?i("div",{class:`${o}-input__border`}):null,this.mergedBordered?i("div",{class:`${o}-input__state-border`}):null,this.showCount&&a==="textarea"?i(Sl,null,{default:c=>{var u;const{renderCount:f}=this;return f?f(c):(u=d.count)===null||u===void 0?void 0:u.call(d,c)}}):null)}}),Rh=m("input-group",` + display: inline-flex; + width: 100%; + flex-wrap: nowrap; + vertical-align: bottom; +`,[k(">",[m("input",[k("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),k("&:not(:first-child)",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + margin-left: -1px!important; + `)]),m("button",[k("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `,[P("state-border, border",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `)]),k("&:not(:first-child)",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `,[P("state-border, border",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `)])]),k("*",[k("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `,[k(">",[m("input",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),m("base-selection",[m("base-selection-label",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),m("base-selection-tags",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),P("box-shadow, border, state-border",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `)])])]),k("&:not(:first-child)",` + margin-left: -1px!important; + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `,[k(">",[m("input",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),m("base-selection",[m("base-selection-label",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),m("base-selection-tags",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),P("box-shadow, border, state-border",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `)])])])])])]),zh={},Ph=ie({name:"InputGroup",props:zh,setup(e){const{mergedClsPrefixRef:t}=Ze(e);return dr("-input-group",Rh,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return i("div",{class:`${e}-input-group`},this.$slots)}}),$h=m("input-group-label",` + position: relative; + user-select: none; + -webkit-user-select: none; + box-sizing: border-box; + padding: 0 12px; + display: inline-block; + border-radius: var(--n-border-radius); + background-color: var(--n-group-label-color); + color: var(--n-group-label-text-color); + font-size: var(--n-font-size); + line-height: var(--n-height); + height: var(--n-height); + flex-shrink: 0; + white-space: nowrap; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); +`,[P("border",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + border: var(--n-group-label-border); + transition: border-color .3s var(--n-bezier); + `)]),Th=Object.assign(Object.assign({},Re.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),QC=ie({name:"InputGroupLabel",props:Th,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:r}=Ze(e),n=Re("Input","-input-group-label",$h,vr,e,o),a=C(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:d},self:{groupLabelColor:c,borderRadius:u,groupLabelTextColor:f,lineHeight:v,groupLabelBorder:p,[le("fontSize",l)]:h,[le("height",l)]:g}}=n.value;return{"--n-bezier":d,"--n-group-label-color":c,"--n-group-label-border":p,"--n-border-radius":u,"--n-group-label-text-color":f,"--n-font-size":h,"--n-line-height":v,"--n-height":g}}),s=r?it("input-group-label",C(()=>e.size[0]),a,e):void 0;return{mergedClsPrefix:o,mergedBordered:t,cssVars:r?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e,t,o;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),i("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t),this.mergedBordered?i("div",{class:`${r}-input-group-label__border`}):null)}});function Fh(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Ih={name:"AutoComplete",common:_e,peers:{InternalSelectMenu:kn,Input:Po},self:Fh},Bh=bo&&"loading"in document.createElement("img");function Oh(e={}){var t;const{root:o=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof o=="string"?document.querySelector(o):o)||document.documentElement})}}const mi=new WeakMap,bi=new WeakMap,xi=new WeakMap,Dh=(e,t,o)=>{if(!e)return()=>{};const r=Oh(t),{root:n}=r.options;let a;const s=mi.get(n);s?a=s:(a=new Map,mi.set(n,a));let l,d;a.has(r.hash)?(d=a.get(r.hash),d[1].has(e)||(l=d[0],d[1].add(e),l.observe(e))):(l=new IntersectionObserver(f=>{f.forEach(v=>{if(v.isIntersecting){const p=bi.get(v.target),h=xi.get(v.target);p&&p(),h&&(h.value=!0)}})},r.options),l.observe(e),d=[l,new Set([e])],a.set(r.hash,d));let c=!1;const u=()=>{c||(bi.delete(e),xi.delete(e),c=!0,d[1].has(e)&&(d[0].unobserve(e),d[1].delete(e)),d[1].size<=0&&a.delete(r.hash),a.size||mi.delete(n))};return bi.set(e,u),xi.set(e,o),u};function qs(e){const{borderRadius:t,avatarColor:o,cardColor:r,fontSize:n,heightTiny:a,heightSmall:s,heightMedium:l,heightLarge:d,heightHuge:c,modalColor:u,popoverColor:f}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${r}`,heightTiny:a,heightSmall:s,heightMedium:l,heightLarge:d,heightHuge:c,color:We(r,o),colorModal:We(u,o),colorPopover:We(f,o)}}const Mh={name:"Avatar",common:lt,self:qs},Gs={name:"Avatar",common:_e,self:qs},Ah="n-avatar-group",_h=m("avatar",` + width: var(--n-merged-size); + height: var(--n-merged-size); + color: #FFF; + font-size: var(--n-font-size); + display: inline-flex; + position: relative; + overflow: hidden; + text-align: center; + border: var(--n-border); + border-radius: var(--n-border-radius); + --n-merged-color: var(--n-color); + background-color: var(--n-merged-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); +`,[jr(k("&","--n-merged-color: var(--n-color-modal);")),pn(k("&","--n-merged-color: var(--n-color-popover);")),k("img",` + width: 100%; + height: 100%; + `),P("text",` + white-space: nowrap; + display: inline-block; + position: absolute; + left: 50%; + top: 50%; + `),m("icon",` + vertical-align: bottom; + font-size: calc(var(--n-merged-size) - 6px); + `),P("text","line-height: 1.25")]),Hh=Object.assign(Object.assign({},Re.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),JC=ie({name:"Avatar",props:Hh,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),r=B(!1);let n=null;const a=B(null),s=B(null),l=()=>{const{value:x}=a;if(x&&(n===null||n!==x.innerHTML)){n=x.innerHTML;const{value:T}=s;if(T){const{offsetWidth:$,offsetHeight:R}=T,{offsetWidth:w,offsetHeight:S}=x,A=.9,I=Math.min($/w*A,R/S*A,1);x.style.transform=`translateX(-50%) translateY(-50%) scale(${I})`}}},d=Ae(Ah,null),c=C(()=>{const{size:x}=e;if(x)return x;const{size:T}=d||{};return T||"medium"}),u=Re("Avatar","-avatar",_h,Mh,e,t),f=Ae(_s,null),v=C(()=>{if(d)return!0;const{round:x,circle:T}=e;return x!==void 0||T!==void 0?x||T:f?f.roundRef.value:!1}),p=C(()=>d?!0:e.bordered||!1),h=C(()=>{const x=c.value,T=v.value,$=p.value,{color:R}=e,{self:{borderRadius:w,fontSize:S,color:A,border:I,colorModal:M,colorPopover:V},common:{cubicBezierEaseInOut:D}}=u.value;let E;return typeof x=="number"?E=`${x}px`:E=u.value.self[le("height",x)],{"--n-font-size":S,"--n-border":$?I:"none","--n-border-radius":T?"50%":w,"--n-color":R||A,"--n-color-modal":R||M,"--n-color-popover":R||V,"--n-bezier":D,"--n-merged-size":`var(--n-avatar-size-override, ${E})`}}),g=o?it("avatar",C(()=>{const x=c.value,T=v.value,$=p.value,{color:R}=e;let w="";return x&&(typeof x=="number"?w+=`a${x}`:w+=x[0]),T&&(w+="b"),$&&(w+="c"),R&&(w+=ln(R)),w}),h,e):void 0,b=B(!e.lazy);Jt(()=>{if(e.lazy&&e.intersectionObserverOptions){let x;const T=$t(()=>{x==null||x(),x=void 0,e.lazy&&(x=Dh(s.value,e.intersectionObserverOptions,b))});mo(()=>{T(),x==null||x()})}}),vt(()=>{var x;return e.src||((x=e.imgProps)===null||x===void 0?void 0:x.src)},()=>{r.value=!1});const y=B(!e.lazy);return{textRef:a,selfRef:s,mergedRoundRef:v,mergedClsPrefix:t,fitTextTransform:l,cssVars:o?void 0:h,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender,hasLoadError:r,shouldStartLoading:b,loaded:y,mergedOnError:x=>{if(!b.value)return;r.value=!0;const{onError:T,imgProps:{onError:$}={}}=e;T==null||T(x),$==null||$(x)},mergedOnLoad:x=>{const{onLoad:T,imgProps:{onLoad:$}={}}=e;T==null||T(x),$==null||$(x),y.value=!0}}},render(){var e,t;const{$slots:o,src:r,mergedClsPrefix:n,lazy:a,onRender:s,loaded:l,hasLoadError:d,imgProps:c={}}=this;s==null||s();let u;const f=!l&&!d&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?u=this.renderFallback?this.renderFallback():ft(o.fallback,()=>[i("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):u=mt(o.default,v=>{if(v)return i(Mo,{onResize:this.fitTextTransform},{default:()=>i("span",{ref:"textRef",class:`${n}-avatar__text`},v)});if(r||c.src){const p=this.src||c.src;return i("img",Object.assign(Object.assign({},c),{loading:Bh&&!this.intersectionObserverOptions&&a?"lazy":"eager",src:a&&this.intersectionObserverOptions?this.shouldStartLoading?p:void 0:p,"data-image-src":p,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[c.style||"",{objectFit:this.objectFit},f?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),i("span",{ref:"selfRef",class:[`${n}-avatar`,this.themeClass],style:this.cssVars},u,a&&f)}});function Eh(){return{gap:"-12px"}}const Lh={name:"AvatarGroup",common:_e,peers:{Avatar:Gs},self:Eh},Nh={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},jh={name:"BackTop",common:_e,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:r,primaryColorPressed:n}=e;return Object.assign(Object.assign({},Nh),{color:t,textColor:o,iconColor:o,iconColorHover:r,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},Vh={name:"Badge",common:_e,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:r,warningColorSuppl:n,fontFamily:a}=e;return{color:t,colorInfo:o,colorSuccess:r,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:a}}},Wh={fontWeightActive:"400"};function Ys(e){const{fontSize:t,textColor3:o,textColor2:r,borderRadius:n,buttonColor2Hover:a,buttonColor2Pressed:s}=e;return Object.assign(Object.assign({},Wh),{fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:n,itemColorHover:a,itemColorPressed:s,separatorColor:o})}const Uh={name:"Breadcrumb",common:lt,self:Ys},Kh={name:"Breadcrumb",common:_e,self:Ys},qh=m("breadcrumb",` + white-space: nowrap; + cursor: default; + line-height: var(--n-item-line-height); +`,[k("ul",` + list-style: none; + padding: 0; + margin: 0; + `),k("a",` + color: inherit; + text-decoration: inherit; + `),m("breadcrumb-item",` + font-size: var(--n-font-size); + transition: color .3s var(--n-bezier); + display: inline-flex; + align-items: center; + `,[m("icon",` + font-size: 18px; + vertical-align: -.2em; + transition: color .3s var(--n-bezier); + color: var(--n-item-text-color); + `),k("&:not(:last-child)",[z("clickable",[P("link",` + cursor: pointer; + `,[k("&:hover",` + background-color: var(--n-item-color-hover); + `),k("&:active",` + background-color: var(--n-item-color-pressed); + `)])])]),P("link",` + padding: 4px; + border-radius: var(--n-item-border-radius); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + color: var(--n-item-text-color); + position: relative; + `,[k("&:hover",` + color: var(--n-item-text-color-hover); + `,[m("icon",` + color: var(--n-item-text-color-hover); + `)]),k("&:active",` + color: var(--n-item-text-color-pressed); + `,[m("icon",` + color: var(--n-item-text-color-pressed); + `)])]),P("separator",` + margin: 0 8px; + color: var(--n-separator-color); + transition: color .3s var(--n-bezier); + user-select: none; + -webkit-user-select: none; + `),k("&:last-child",[P("link",` + font-weight: var(--n-font-weight-active); + cursor: unset; + color: var(--n-item-text-color-active); + `,[m("icon",` + color: var(--n-item-text-color-active); + `)]),P("separator",` + display: none; + `)])])]),Xs="n-breadcrumb",Gh=Object.assign(Object.assign({},Re.props),{separator:{type:String,default:"/"}}),ey=ie({name:"Breadcrumb",props:Gh,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),r=Re("Breadcrumb","-breadcrumb",qh,Uh,e,t);Je(Xs,{separatorRef:fe(e,"separator"),mergedClsPrefixRef:t});const n=C(()=>{const{common:{cubicBezierEaseInOut:s},self:{separatorColor:l,itemTextColor:d,itemTextColorHover:c,itemTextColorPressed:u,itemTextColorActive:f,fontSize:v,fontWeightActive:p,itemBorderRadius:h,itemColorHover:g,itemColorPressed:b,itemLineHeight:y}}=r.value;return{"--n-font-size":v,"--n-bezier":s,"--n-item-text-color":d,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":u,"--n-item-text-color-active":f,"--n-separator-color":l,"--n-item-color-hover":g,"--n-item-color-pressed":b,"--n-item-border-radius":h,"--n-font-weight-active":p,"--n-item-line-height":y}}),a=o?it("breadcrumb",void 0,n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),i("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},i("ul",null,this.$slots))}});function Yh(e=bo?window:null){const t=()=>{const{hash:n,host:a,hostname:s,href:l,origin:d,pathname:c,port:u,protocol:f,search:v}=(e==null?void 0:e.location)||{};return{hash:n,host:a,hostname:s,href:l,origin:d,pathname:c,port:u,protocol:f,search:v}},o=B(t()),r=()=>{o.value=t()};return Jt(()=>{e&&(e.addEventListener("popstate",r),e.addEventListener("hashchange",r))}),ca(()=>{e&&(e.removeEventListener("popstate",r),e.removeEventListener("hashchange",r))}),o}const Xh={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},ty=ie({name:"BreadcrumbItem",props:Xh,setup(e,{slots:t}){const o=Ae(Xs,null);if(!o)return()=>null;const{separatorRef:r,mergedClsPrefixRef:n}=o,a=Yh(),s=C(()=>e.href?"a":"span"),l=C(()=>a.value.href===e.href?"location":null);return()=>{const{value:d}=n;return i("li",{class:[`${d}-breadcrumb-item`,e.clickable&&`${d}-breadcrumb-item--clickable`]},i(s.value,{class:`${d}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),i("span",{class:`${d}-breadcrumb-item__separator`,"aria-hidden":"true"},ft(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:r.value]})))}}});function mr(e){return We(e,[255,255,255,.16])}function In(e){return We(e,[0,0,0,.12])}const Zh="n-button-group",Qh={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"};function Zs(e){const{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadius:a,fontSizeTiny:s,fontSizeSmall:l,fontSizeMedium:d,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:v,primaryColorHover:p,primaryColorPressed:h,borderColor:g,primaryColor:b,baseColor:y,infoColor:x,infoColorHover:T,infoColorPressed:$,successColor:R,successColorHover:w,successColorPressed:S,warningColor:A,warningColorHover:I,warningColorPressed:M,errorColor:V,errorColorHover:D,errorColorPressed:E,fontWeight:K,buttonColor2:N,buttonColor2Hover:oe,buttonColor2Pressed:q,fontWeightStrong:re}=e;return Object.assign(Object.assign({},Qh),{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadiusTiny:a,borderRadiusSmall:a,borderRadiusMedium:a,borderRadiusLarge:a,fontSizeTiny:s,fontSizeSmall:l,fontSizeMedium:d,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:N,colorSecondaryHover:oe,colorSecondaryPressed:q,colorTertiary:N,colorTertiaryHover:oe,colorTertiaryPressed:q,colorQuaternary:"#0000",colorQuaternaryHover:oe,colorQuaternaryPressed:q,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:v,textColorHover:p,textColorPressed:h,textColorFocus:p,textColorDisabled:f,textColorText:f,textColorTextHover:p,textColorTextPressed:h,textColorTextFocus:p,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:p,textColorGhostPressed:h,textColorGhostFocus:p,textColorGhostDisabled:f,border:`1px solid ${g}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${g}`,rippleColor:b,colorPrimary:b,colorHoverPrimary:p,colorPressedPrimary:h,colorFocusPrimary:p,colorDisabledPrimary:b,textColorPrimary:y,textColorHoverPrimary:y,textColorPressedPrimary:y,textColorFocusPrimary:y,textColorDisabledPrimary:y,textColorTextPrimary:b,textColorTextHoverPrimary:p,textColorTextPressedPrimary:h,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:f,textColorGhostPrimary:b,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:b,borderPrimary:`1px solid ${b}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${b}`,rippleColorPrimary:b,colorInfo:x,colorHoverInfo:T,colorPressedInfo:$,colorFocusInfo:T,colorDisabledInfo:x,textColorInfo:y,textColorHoverInfo:y,textColorPressedInfo:y,textColorFocusInfo:y,textColorDisabledInfo:y,textColorTextInfo:x,textColorTextHoverInfo:T,textColorTextPressedInfo:$,textColorTextFocusInfo:T,textColorTextDisabledInfo:f,textColorGhostInfo:x,textColorGhostHoverInfo:T,textColorGhostPressedInfo:$,textColorGhostFocusInfo:T,textColorGhostDisabledInfo:x,borderInfo:`1px solid ${x}`,borderHoverInfo:`1px solid ${T}`,borderPressedInfo:`1px solid ${$}`,borderFocusInfo:`1px solid ${T}`,borderDisabledInfo:`1px solid ${x}`,rippleColorInfo:x,colorSuccess:R,colorHoverSuccess:w,colorPressedSuccess:S,colorFocusSuccess:w,colorDisabledSuccess:R,textColorSuccess:y,textColorHoverSuccess:y,textColorPressedSuccess:y,textColorFocusSuccess:y,textColorDisabledSuccess:y,textColorTextSuccess:R,textColorTextHoverSuccess:w,textColorTextPressedSuccess:S,textColorTextFocusSuccess:w,textColorTextDisabledSuccess:f,textColorGhostSuccess:R,textColorGhostHoverSuccess:w,textColorGhostPressedSuccess:S,textColorGhostFocusSuccess:w,textColorGhostDisabledSuccess:R,borderSuccess:`1px solid ${R}`,borderHoverSuccess:`1px solid ${w}`,borderPressedSuccess:`1px solid ${S}`,borderFocusSuccess:`1px solid ${w}`,borderDisabledSuccess:`1px solid ${R}`,rippleColorSuccess:R,colorWarning:A,colorHoverWarning:I,colorPressedWarning:M,colorFocusWarning:I,colorDisabledWarning:A,textColorWarning:y,textColorHoverWarning:y,textColorPressedWarning:y,textColorFocusWarning:y,textColorDisabledWarning:y,textColorTextWarning:A,textColorTextHoverWarning:I,textColorTextPressedWarning:M,textColorTextFocusWarning:I,textColorTextDisabledWarning:f,textColorGhostWarning:A,textColorGhostHoverWarning:I,textColorGhostPressedWarning:M,textColorGhostFocusWarning:I,textColorGhostDisabledWarning:A,borderWarning:`1px solid ${A}`,borderHoverWarning:`1px solid ${I}`,borderPressedWarning:`1px solid ${M}`,borderFocusWarning:`1px solid ${I}`,borderDisabledWarning:`1px solid ${A}`,rippleColorWarning:A,colorError:V,colorHoverError:D,colorPressedError:E,colorFocusError:D,colorDisabledError:V,textColorError:y,textColorHoverError:y,textColorPressedError:y,textColorFocusError:y,textColorDisabledError:y,textColorTextError:V,textColorTextHoverError:D,textColorTextPressedError:E,textColorTextFocusError:D,textColorTextDisabledError:f,textColorGhostError:V,textColorGhostHoverError:D,textColorGhostPressedError:E,textColorGhostFocusError:D,textColorGhostDisabledError:V,borderError:`1px solid ${V}`,borderHoverError:`1px solid ${D}`,borderPressedError:`1px solid ${E}`,borderFocusError:`1px solid ${D}`,borderDisabledError:`1px solid ${V}`,rippleColorError:V,waveOpacity:"0.6",fontWeight:K,fontWeightStrong:re})}const pr={name:"Button",common:lt,self:Zs},ho={name:"Button",common:_e,self(e){const t=Zs(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},Jh=k([m("button",` + margin: 0; + font-weight: var(--n-font-weight); + line-height: 1; + font-family: inherit; + padding: var(--n-padding); + height: var(--n-height); + font-size: var(--n-font-size); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + width: var(--n-width); + white-space: nowrap; + outline: none; + position: relative; + z-index: auto; + border: none; + display: inline-flex; + flex-wrap: nowrap; + flex-shrink: 0; + align-items: center; + justify-content: center; + user-select: none; + -webkit-user-select: none; + text-align: center; + cursor: pointer; + text-decoration: none; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[z("color",[P("border",{borderColor:"var(--n-border-color)"}),z("disabled",[P("border",{borderColor:"var(--n-border-color-disabled)"})]),nt("disabled",[k("&:focus",[P("state-border",{borderColor:"var(--n-border-color-focus)"})]),k("&:hover",[P("state-border",{borderColor:"var(--n-border-color-hover)"})]),k("&:active",[P("state-border",{borderColor:"var(--n-border-color-pressed)"})]),z("pressed",[P("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),z("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[P("border",{border:"var(--n-border-disabled)"})]),nt("disabled",[k("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[P("state-border",{border:"var(--n-border-focus)"})]),k("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[P("state-border",{border:"var(--n-border-hover)"})]),k("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[P("state-border",{border:"var(--n-border-pressed)"})]),z("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[P("state-border",{border:"var(--n-border-pressed)"})])]),z("loading","cursor: wait;"),m("base-wave",` + pointer-events: none; + top: 0; + right: 0; + bottom: 0; + left: 0; + animation-iteration-count: 1; + animation-duration: var(--n-ripple-duration); + animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); + `,[z("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),bo&&"MozBoxSizing"in document.createElement("div").style?k("&::moz-focus-inner",{border:0}):null,P("border, state-border",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + border-radius: inherit; + transition: border-color .3s var(--n-bezier); + pointer-events: none; + `),P("border",{border:"var(--n-border)"}),P("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),P("icon",` + margin: var(--n-icon-margin); + margin-left: 0; + height: var(--n-icon-size); + width: var(--n-icon-size); + max-width: var(--n-icon-size); + font-size: var(--n-icon-size); + position: relative; + flex-shrink: 0; + `,[m("icon-slot",` + height: var(--n-icon-size); + width: var(--n-icon-size); + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `,[uo({top:"50%",originalTransform:"translateY(-50%)"})]),ih()]),P("content",` + display: flex; + align-items: center; + flex-wrap: nowrap; + min-width: 0; + `,[k("~",[P("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),z("block",` + display: flex; + width: 100%; + `),z("dashed",[P("border, state-border",{borderStyle:"dashed !important"})]),z("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),k("@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)"}}),k("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),ev=Object.assign(Object.assign({},Re.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:!Ws}}),At=ie({name:"Button",props:ev,setup(e){const t=B(null),o=B(null),r=B(!1),n=tt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),a=Ae(Zh,{}),{mergedSizeRef:s}=xo({},{defaultSize:"medium",mergedSize:$=>{const{size:R}=e;if(R)return R;const{size:w}=a;if(w)return w;const{mergedSize:S}=$||{};return S?S.value:"medium"}}),l=C(()=>e.focusable&&!e.disabled),d=$=>{var R;l.value||$.preventDefault(),!e.nativeFocusBehavior&&($.preventDefault(),!e.disabled&&l.value&&((R=t.value)===null||R===void 0||R.focus({preventScroll:!0})))},c=$=>{var R;if(!e.disabled&&!e.loading){const{onClick:w}=e;w&&ae(w,$),e.text||(R=o.value)===null||R===void 0||R.play()}},u=$=>{switch($.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=$=>{switch($.key){case"Enter":if(!e.keyboard||e.loading){$.preventDefault();return}r.value=!0}},v=()=>{r.value=!1},{inlineThemeDisabled:p,mergedClsPrefixRef:h,mergedRtlRef:g}=Ze(e),b=Re("Button","-button",Jh,pr,e,h),y=Nt("Button",g,h),x=C(()=>{const $=b.value,{common:{cubicBezierEaseInOut:R,cubicBezierEaseOut:w},self:S}=$,{rippleDuration:A,opacityDisabled:I,fontWeight:M,fontWeightStrong:V}=S,D=s.value,{dashed:E,type:K,ghost:N,text:oe,color:q,round:re,circle:me,textColor:ue,secondary:W,tertiary:H,quaternary:F,strong:j}=e,J={"--n-font-weight":j?V:M};let se={"--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 be=K==="tertiary",Ie=K==="default",_=be?"default":K;if(oe){const G=ue||q;se={"--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":G||S[le("textColorText",_)],"--n-text-color-hover":G?mr(G):S[le("textColorTextHover",_)],"--n-text-color-pressed":G?In(G):S[le("textColorTextPressed",_)],"--n-text-color-focus":G?mr(G):S[le("textColorTextHover",_)],"--n-text-color-disabled":G||S[le("textColorTextDisabled",_)]}}else if(N||E){const G=ue||q;se={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":q||S[le("rippleColor",_)],"--n-text-color":G||S[le("textColorGhost",_)],"--n-text-color-hover":G?mr(G):S[le("textColorGhostHover",_)],"--n-text-color-pressed":G?In(G):S[le("textColorGhostPressed",_)],"--n-text-color-focus":G?mr(G):S[le("textColorGhostHover",_)],"--n-text-color-disabled":G||S[le("textColorGhostDisabled",_)]}}else if(W){const G=Ie?S.textColor:be?S.textColorTertiary:S[le("color",_)],Q=q||G,pe=K!=="default"&&K!=="tertiary";se={"--n-color":pe?Se(Q,{alpha:Number(S.colorOpacitySecondary)}):S.colorSecondary,"--n-color-hover":pe?Se(Q,{alpha:Number(S.colorOpacitySecondaryHover)}):S.colorSecondaryHover,"--n-color-pressed":pe?Se(Q,{alpha:Number(S.colorOpacitySecondaryPressed)}):S.colorSecondaryPressed,"--n-color-focus":pe?Se(Q,{alpha:Number(S.colorOpacitySecondaryHover)}):S.colorSecondaryHover,"--n-color-disabled":S.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Q,"--n-text-color-hover":Q,"--n-text-color-pressed":Q,"--n-text-color-focus":Q,"--n-text-color-disabled":Q}}else if(H||F){const G=Ie?S.textColor:be?S.textColorTertiary:S[le("color",_)],Q=q||G;H?(se["--n-color"]=S.colorTertiary,se["--n-color-hover"]=S.colorTertiaryHover,se["--n-color-pressed"]=S.colorTertiaryPressed,se["--n-color-focus"]=S.colorSecondaryHover,se["--n-color-disabled"]=S.colorTertiary):(se["--n-color"]=S.colorQuaternary,se["--n-color-hover"]=S.colorQuaternaryHover,se["--n-color-pressed"]=S.colorQuaternaryPressed,se["--n-color-focus"]=S.colorQuaternaryHover,se["--n-color-disabled"]=S.colorQuaternary),se["--n-ripple-color"]="#0000",se["--n-text-color"]=Q,se["--n-text-color-hover"]=Q,se["--n-text-color-pressed"]=Q,se["--n-text-color-focus"]=Q,se["--n-text-color-disabled"]=Q}else se={"--n-color":q||S[le("color",_)],"--n-color-hover":q?mr(q):S[le("colorHover",_)],"--n-color-pressed":q?In(q):S[le("colorPressed",_)],"--n-color-focus":q?mr(q):S[le("colorFocus",_)],"--n-color-disabled":q||S[le("colorDisabled",_)],"--n-ripple-color":q||S[le("rippleColor",_)],"--n-text-color":ue||(q?S.textColorPrimary:be?S.textColorTertiary:S[le("textColor",_)]),"--n-text-color-hover":ue||(q?S.textColorHoverPrimary:S[le("textColorHover",_)]),"--n-text-color-pressed":ue||(q?S.textColorPressedPrimary:S[le("textColorPressed",_)]),"--n-text-color-focus":ue||(q?S.textColorFocusPrimary:S[le("textColorFocus",_)]),"--n-text-color-disabled":ue||(q?S.textColorDisabledPrimary:S[le("textColorDisabled",_)])};let Pe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};oe?Pe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:Pe={"--n-border":S[le("border",_)],"--n-border-hover":S[le("borderHover",_)],"--n-border-pressed":S[le("borderPressed",_)],"--n-border-focus":S[le("borderFocus",_)],"--n-border-disabled":S[le("borderDisabled",_)]};const{[le("height",D)]:Me,[le("fontSize",D)]:Ee,[le("padding",D)]:Ge,[le("paddingRound",D)]:Ye,[le("iconSize",D)]:st,[le("borderRadius",D)]:ot,[le("iconMargin",D)]:xe,waveOpacity:te}=S,ce={"--n-width":me&&!oe?Me:"initial","--n-height":oe?"initial":Me,"--n-font-size":Ee,"--n-padding":me||oe?"initial":re?Ye:Ge,"--n-icon-size":st,"--n-icon-margin":xe,"--n-border-radius":oe?"initial":me||re?Me:ot};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":R,"--n-bezier-ease-out":w,"--n-ripple-duration":A,"--n-opacity-disabled":I,"--n-wave-opacity":te},J),se),Pe),ce)}),T=p?it("button",C(()=>{let $="";const{dashed:R,type:w,ghost:S,text:A,color:I,round:M,circle:V,textColor:D,secondary:E,tertiary:K,quaternary:N,strong:oe}=e;R&&($+="a"),S&&($+="b"),A&&($+="c"),M&&($+="d"),V&&($+="e"),E&&($+="f"),K&&($+="g"),N&&($+="h"),oe&&($+="i"),I&&($+=`j${ln(I)}`),D&&($+=`k${ln(D)}`);const{value:q}=s;return $+=`l${q[0]}`,$+=`m${w[0]}`,$}),x,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:h,mergedFocusable:l,mergedSize:s,showBorder:n,enterPressed:r,rtlEnabled:y,handleMousedown:d,handleKeydown:f,handleBlur:v,handleKeyup:u,handleClick:c,customColorCssVars:C(()=>{const{color:$}=e;if(!$)return null;const R=mr($);return{"--n-border-color":$,"--n-border-color-hover":R,"--n-border-color-pressed":In($),"--n-border-color-focus":R,"--n-border-color-disabled":$}}),cssVars:p?void 0:x,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;o==null||o();const r=mt(this.$slots.default,n=>n&&i("span",{class:`${e}-button__content`},n));return i(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,i(yn,{width:!0},{default:()=>mt(this.$slots.icon,n=>(this.loading||this.renderIcon||n)&&i("span",{class:`${e}-button__icon`,style:{margin:_r(this.$slots.default)?"0":""}},i(cr,null,{default:()=>this.loading?i(Xo,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):i("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():n)})))}),this.iconPlacement==="left"&&r,this.text?null:i(Wf,{ref:"waveElRef",clsPrefix:e}),this.showBorder?i("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?i("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Ao=At,tv={date:Su,month:fn,year:Zl,quarter:Ql};function ov(e){return(t,o)=>{const r=(e+1)%7;return ku(t,o,{weekStartsOn:r})}}function no(e,t,o,r=0){return(o==="week"?ov(r):tv[o])(e,t)}function Ci(e,t,o,r,n,a){return n==="date"?rv(e,t,o,r):nv(e,t,o,r,a)}function rv(e,t,o,r){let n=!1,a=!1,s=!1;Array.isArray(o)&&(o[0]=360?359:e<0?0:e}function pv(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const gv={rgb:{hex(e){return or(so(e))},hsl(e){const[t,o,r,n]=so(e);return rr([...Mi(t,o,r),n])},hsv(e){const[t,o,r,n]=so(e);return yr([...Ai(t,o,r),n])}},hex:{rgb(e){return Vo(so(e))},hsl(e){const[t,o,r,n]=so(e);return rr([...Mi(t,o,r),n])},hsv(e){const[t,o,r,n]=so(e);return yr([...Ai(t,o,r),n])}},hsl:{hex(e){const[t,o,r,n]=Ar(e);return or([..._i(t,o,r),n])},rgb(e){const[t,o,r,n]=Ar(e);return Vo([..._i(t,o,r),n])},hsv(e){const[t,o,r,n]=Ar(e);return yr([...es(t,o,r),n])}},hsv:{hex(e){const[t,o,r,n]=wr(e);return or([...tr(t,o,r),n])},rgb(e){const[t,o,r,n]=wr(e);return Vo([...tr(t,o,r),n])},hsl(e){const[t,o,r,n]=wr(e);return rr([...Nn(t,o,r),n])}}};function od(e,t,o){return o=o||un(e),o?o===t?e:gv[o][t](e):null}const Dr="12px",mv=12,br="6px",bv=6,xv="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",Cv=ie({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=B(null);function o(a){t.value&&(Zt("mousemove",document,r),Zt("mouseup",document,n),r(a))}function r(a){const{value:s}=t;if(!s)return;const{width:l,left:d}=s.getBoundingClientRect(),c=vv((a.clientX-d-bv)/(l-mv)*360);e.onUpdateHue(c)}function n(){var a;Kt("mousemove",document,r),Kt("mouseup",document,n),(a=e.onComplete)===null||a===void 0||a.call(e)}return{railRef:t,handleMouseDown:o}},render(){const{clsPrefix:e}=this;return i("div",{class:`${e}-color-picker-slider`,style:{height:Dr,borderRadius:br}},i("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:xv,height:Dr,borderRadius:br,position:"relative"},onMousedown:this.handleMouseDown},i("div",{style:{position:"absolute",left:br,right:br,top:0,bottom:0}},i("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${br})`,borderRadius:br,width:Dr,height:Dr}},i("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:br,width:Dr,height:Dr}})))))}}),Jr="12px",yv=12,xr="6px",wv=ie({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=B(null);function o(a){!t.value||!e.rgba||(Zt("mousemove",document,r),Zt("mouseup",document,n),r(a))}function r(a){const{value:s}=t;if(!s)return;const{width:l,left:d}=s.getBoundingClientRect(),c=(a.clientX-d)/(l-yv);e.onUpdateAlpha(pv(c))}function n(){var a;Kt("mousemove",document,r),Kt("mouseup",document,n),(a=e.onComplete)===null||a===void 0||a.call(e)}return{railRef:t,railBackgroundImage:C(()=>{const{rgba:a}=e;return a?`linear-gradient(to right, rgba(${a[0]}, ${a[1]}, ${a[2]}, 0) 0%, rgba(${a[0]}, ${a[1]}, ${a[2]}, 1) 100%)`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return i("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:Jr,borderRadius:xr},onMousedown:this.handleMouseDown},i("div",{style:{borderRadius:xr,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},i("div",{class:`${e}-color-picker-checkboard`}),i("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&i("div",{style:{position:"absolute",left:xr,right:xr,top:0,bottom:0}},i("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${xr})`,borderRadius:xr,width:Jr,height:Jr}},i("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:Vo(this.rgba),borderRadius:xr,width:Jr,height:Jr}}))))}}),Bn="12px",On="6px",Sv=ie({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=B(null);function o(a){t.value&&(Zt("mousemove",document,r),Zt("mouseup",document,n),r(a))}function r(a){const{value:s}=t;if(!s)return;const{width:l,height:d,left:c,bottom:u}=s.getBoundingClientRect(),f=(u-a.clientY)/d,v=(a.clientX-c)/l,p=100*(v>1?1:v<0?0:v),h=100*(f>1?1:f<0?0:f);e.onUpdateSV(p,h)}function n(){var a;Kt("mousemove",document,r),Kt("mouseup",document,n),(a=e.onComplete)===null||a===void 0||a.call(e)}return{palleteRef:t,handleColor:C(()=>{const{rgba:a}=e;return a?`rgb(${a[0]}, ${a[1]}, ${a[2]})`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return i("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},i("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),i("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&i("div",{class:`${e}-color-picker-handle`,style:{width:Bn,height:Bn,borderRadius:On,left:`calc(${this.displayedSv[0]}% - ${On})`,bottom:`calc(${this.displayedSv[1]}% - ${On})`}},i("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:On,width:Bn,height:Bn}})))}}),Sa="n-color-picker";function kv(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),255)):!1}function Rv(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),360)):!1}function zv(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),100)):!1}function Pv(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function $v(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e)/100,100)):!1}const Tv={paddingSmall:"0 4px"},kl=ie({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=B(""),{themeRef:o}=Ae(Sa,null);$t(()=>{t.value=r()});function r(){const{value:s}=e;if(s===null)return"";const{label:l}=e;return l==="HEX"?s:l==="A"?`${Math.floor(s*100)}%`:String(Math.floor(s))}function n(s){t.value=s}function a(s){let l,d;switch(e.label){case"HEX":d=Pv(s),d&&e.onUpdateValue(s),t.value=r();break;case"H":l=Rv(s),l===!1?t.value=r():e.onUpdateValue(l);break;case"S":case"L":case"V":l=zv(s),l===!1?t.value=r():e.onUpdateValue(l);break;case"A":l=$v(s),l===!1?t.value=r():e.onUpdateValue(l);break;case"R":case"G":case"B":l=kv(s),l===!1?t.value=r():e.onUpdateValue(l);break}}return{mergedTheme:o,inputValue:t,handleInputChange:a,handleInputUpdateValue:n}},render(){const{mergedTheme:e}=this;return i(Bo,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:Tv,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),Fv=ie({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,o){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?or:rn)(o));return}let n;switch(e.valueArr===null?n=[0,0,0,0]:n=Array.from(e.valueArr),e.mode){case"hsv":n[t]=o,e.onUpdateValue((r?yr:Li)(n));break;case"rgb":n[t]=o,e.onUpdateValue((r?Vo:Ei)(n));break;case"hsl":n[t]=o,e.onUpdateValue((r?rr:Hi)(n));break}}}},render(){const{clsPrefix:e,modes:t}=this;return i("div",{class:`${e}-color-picker-input`},i("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),i(Ph,null,{default:()=>{const{mode:o,valueArr:r,showAlpha:n}=this;if(o==="hex"){let a=null;try{a=r===null?null:(n?or:rn)(r)}catch{}return i(kl,{label:"HEX",showAlpha:n,value:a,onUpdateValue:s=>{this.handleUnitUpdateValue(0,s)}})}return(o+(n?"a":"")).split("").map((a,s)=>i(kl,{label:a.toUpperCase(),value:r===null?null:r[s],onUpdateValue:l=>{this.handleUnitUpdateValue(s,l)}}))}}))}}),Iv=ie({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:o}=Ae(Sa,null);return()=>{const{hsla:r,value:n,clsPrefix:a,onClick:s,disabled:l}=e,d=t.label||o.value;return i("div",{class:[`${a}-color-picker-trigger`,l&&`${a}-color-picker-trigger--disabled`],onClick:l?void 0:s},i("div",{class:`${a}-color-picker-trigger__fill`},i("div",{class:`${a}-color-picker-checkboard`}),i("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?rr(r):""}}),n&&r?i("div",{class:`${a}-color-picker-trigger__value`,style:{color:r[2]>50||r[3]<.5?"black":"white"}},d?d(n):n):null))}}});function Bv(e,t){if(t==="hsv"){const[o,r,n,a]=wr(e);return Vo([...tr(o,r,n),a])}return e}function Ov(e){const t=document.createElement("canvas").getContext("2d");return t?(t.fillStyle=e,t.fillStyle):"#000000"}const Dv=ie({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=C(()=>e.swatches.map(a=>{const s=un(a);return{value:a,mode:s,legalValue:Bv(a,s)}}));function o(a){const{mode:s}=e;let{value:l,mode:d}=a;return d||(d="hex",/^[a-zA-Z]+$/.test(l)?l=Ov(l):(go("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),d===s?l:od(l,s,d)}function r(a){e.onUpdateColor(o(a))}function n(a,s){a.key==="Enter"&&r(s)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:n}},render(){const{clsPrefix:e}=this;return i("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>i("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>{this.handleSwatchSelect(t)},onKeydown:o=>{this.handleSwatchKeyDown(o,t)}},i("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),Mv=ie({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=un(e);return!!(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(o){var r;const n=o.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,od(n.toUpperCase(),e.mode,"hex")),o.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return i("div",{class:`${e}-color-picker-preview__preview`},i("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),i("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),Av=k([m("color-picker",` + display: inline-block; + box-sizing: border-box; + height: var(--n-height); + font-size: var(--n-font-size); + width: 100%; + position: relative; + `),m("color-picker-panel",` + margin: 4px 0; + width: 240px; + font-size: var(--n-panel-font-size); + color: var(--n-text-color); + background-color: var(--n-color); + transition: + box-shadow .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + `,[hr(),m("input",` + text-align: center; + `)]),m("color-picker-checkboard",` + background: white; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[k("&::after",` + background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); + background-size: 12px 12px; + background-position: 0 0, 0 6px, 6px -6px, -6px 0px; + background-repeat: repeat; + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),m("color-picker-slider",` + margin-bottom: 8px; + position: relative; + box-sizing: border-box; + `,[P("image",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `),k("&::after",` + content: ""; + position: absolute; + border-radius: inherit; + left: 0; + right: 0; + top: 0; + bottom: 0; + box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); + pointer-events: none; + `)]),m("color-picker-handle",` + z-index: 1; + box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); + position: absolute; + background-color: white; + overflow: hidden; + `,[P("fill",` + box-sizing: border-box; + border: 2px solid white; + `)]),m("color-picker-pallete",` + height: 180px; + position: relative; + margin-bottom: 8px; + cursor: crosshair; + `,[P("layer",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[z("shadowed",` + box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); + `)])]),m("color-picker-preview",` + display: flex; + `,[P("sliders",` + flex: 1 0 auto; + `),P("preview",` + position: relative; + height: 30px; + width: 30px; + margin: 0 0 8px 6px; + border-radius: 50%; + box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; + overflow: hidden; + `),P("fill",` + display: block; + width: 30px; + height: 30px; + `),P("input",` + position: absolute; + top: 0; + left: 0; + width: 30px; + height: 30px; + opacity: 0; + z-index: 1; + `)]),m("color-picker-input",` + display: flex; + align-items: center; + `,[m("input",` + flex-grow: 1; + flex-basis: 0; + `),P("mode",` + width: 72px; + text-align: center; + `)]),m("color-picker-control",` + padding: 12px; + `),m("color-picker-action",` + display: flex; + margin-top: -4px; + border-top: 1px solid var(--n-divider-color); + padding: 8px 12px; + justify-content: flex-end; + `,[m("button","margin-left: 8px;")]),m("color-picker-trigger",` + border: var(--n-border); + height: 100%; + box-sizing: border-box; + border-radius: var(--n-border-radius); + transition: border-color .3s var(--n-bezier); + cursor: pointer; + `,[P("value",` + white-space: nowrap; + position: relative; + `),P("fill",` + border-radius: var(--n-border-radius); + position: absolute; + display: flex; + align-items: center; + justify-content: center; + left: 4px; + right: 4px; + top: 4px; + bottom: 4px; + `),z("disabled","cursor: not-allowed"),m("color-picker-checkboard",` + border-radius: var(--n-border-radius); + `,[k("&::after",` + --n-block-size: calc((var(--n-height) - 8px) / 3); + background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); + background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; + `)])]),m("color-picker-swatches",` + display: grid; + grid-gap: 8px; + flex-wrap: wrap; + position: relative; + grid-template-columns: repeat(auto-fill, 18px); + margin-top: 10px; + `,[m("color-picker-swatch",` + width: 18px; + height: 18px; + background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); + background-size: 8px 8px; + background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; + background-repeat: repeat; + `,[P("fill",` + position: relative; + width: 100%; + height: 100%; + border-radius: 3px; + box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; + cursor: pointer; + `),k("&:focus",` + outline: none; + `,[P("fill",[k("&::after",` + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: inherit; + filter: blur(2px); + content: ""; + `)])])])])]),_v=Object.assign(Object.assign({},Re.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Gt.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,onClear:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),oy=ie({name:"ColorPicker",props:_v,setup(e,{slots:t}){const o=B(null);let r=null;const n=xo(e),{mergedSizeRef:a,mergedDisabledRef:s}=n,{localeRef:l}=zo("global"),{mergedClsPrefixRef:d,namespaceRef:c,inlineThemeDisabled:u}=Ze(e),f=Re("ColorPicker","-color-picker",Av,uv,e,d);Je(Sa,{themeRef:f,renderLabelRef:fe(e,"renderLabel"),colorPickerSlots:t});const v=B(e.defaultShow),p=Rt(fe(e,"show"),v);function h(te){const{onUpdateShow:ce,"onUpdate:show":G}=e;ce&&ae(ce,te),G&&ae(G,te),v.value=te}const{defaultValue:g}=e,b=B(g===void 0?hv(e.modes,e.showAlpha):g),y=Rt(fe(e,"value"),b),x=B([y.value]),T=B(0),$=C(()=>un(y.value)),{modes:R}=e,w=B(un(y.value)||R[0]||"rgb");function S(){const{modes:te}=e,{value:ce}=w,G=te.findIndex(Q=>Q===ce);~G?w.value=te[(G+1)%te.length]:w.value="rgb"}let A,I,M,V,D,E,K,N;const oe=C(()=>{const{value:te}=y;if(!te)return null;switch($.value){case"hsv":return wr(te);case"hsl":return[A,I,M,N]=Ar(te),[...es(A,I,M),N];case"rgb":case"hex":return[D,E,K,N]=so(te),[...Ai(D,E,K),N]}}),q=C(()=>{const{value:te}=y;if(!te)return null;switch($.value){case"rgb":case"hex":return so(te);case"hsv":return[A,I,V,N]=wr(te),[...tr(A,I,V),N];case"hsl":return[A,I,M,N]=Ar(te),[..._i(A,I,M),N]}}),re=C(()=>{const{value:te}=y;if(!te)return null;switch($.value){case"hsl":return Ar(te);case"hsv":return[A,I,V,N]=wr(te),[...Nn(A,I,V),N];case"rgb":case"hex":return[D,E,K,N]=so(te),[...Mi(D,E,K),N]}}),me=C(()=>{switch(w.value){case"rgb":case"hex":return q.value;case"hsv":return oe.value;case"hsl":return re.value}}),ue=B(0),W=B(1),H=B([0,0]);function F(te,ce){const{value:G}=oe,Q=ue.value,pe=G?G[3]:1;H.value=[te,ce];const{showAlpha:Ce}=e;switch(w.value){case"hsv":se((Ce?yr:Li)([Q,te,ce,pe]),"cursor");break;case"hsl":se((Ce?rr:Hi)([...Nn(Q,te,ce),pe]),"cursor");break;case"rgb":se((Ce?Vo:Ei)([...tr(Q,te,ce),pe]),"cursor");break;case"hex":se((Ce?or:rn)([...tr(Q,te,ce),pe]),"cursor");break}}function j(te){ue.value=te;const{value:ce}=oe;if(!ce)return;const[,G,Q,pe]=ce,{showAlpha:Ce}=e;switch(w.value){case"hsv":se((Ce?yr:Li)([te,G,Q,pe]),"cursor");break;case"rgb":se((Ce?Vo:Ei)([...tr(te,G,Q),pe]),"cursor");break;case"hex":se((Ce?or:rn)([...tr(te,G,Q),pe]),"cursor");break;case"hsl":se((Ce?rr:Hi)([...Nn(te,G,Q),pe]),"cursor");break}}function J(te){switch(w.value){case"hsv":[A,I,V]=oe.value,se(yr([A,I,V,te]),"cursor");break;case"rgb":[D,E,K]=q.value,se(Vo([D,E,K,te]),"cursor");break;case"hex":[D,E,K]=q.value,se(or([D,E,K,te]),"cursor");break;case"hsl":[A,I,M]=re.value,se(rr([A,I,M,te]),"cursor");break}W.value=te}function se(te,ce){ce==="cursor"?r=te:r=null;const{nTriggerFormChange:G,nTriggerFormInput:Q}=n,{onUpdateValue:pe,"onUpdate:value":Ce}=e;pe&&ae(pe,te),Ce&&ae(Ce,te),G(),Q(),b.value=te}function be(te){se(te,"input"),zt(Ie)}function Ie(te=!0){const{value:ce}=y;if(ce){const{nTriggerFormChange:G,nTriggerFormInput:Q}=n,{onComplete:pe}=e;pe&&pe(ce);const{value:Ce}=x,{value:de}=T;te&&(Ce.splice(de+1,Ce.length,ce),T.value=de+1),G(),Q()}}function _(){const{value:te}=T;te-1<0||(se(x.value[te-1],"input"),Ie(!1),T.value=te-1)}function Pe(){const{value:te}=T;te<0||te+1>=x.value.length||(se(x.value[te+1],"input"),Ie(!1),T.value=te+1)}function Me(){se(null,"input");const{onClear:te}=e;te&&te(),h(!1)}function Ee(){const{value:te}=y,{onConfirm:ce}=e;ce&&ce(te),h(!1)}const Ge=C(()=>T.value>=1),Ye=C(()=>{const{value:te}=x;return te.length>1&&T.value{te||(x.value=[y.value],T.value=0)}),$t(()=>{if(!(r&&r===y.value)){const{value:te}=oe;te&&(ue.value=te[0],W.value=te[3],H.value=[te[1],te[2]])}r=null});const st=C(()=>{const{value:te}=a,{common:{cubicBezierEaseInOut:ce},self:{textColor:G,color:Q,panelFontSize:pe,boxShadow:Ce,border:de,borderRadius:L,dividerColor:we,[le("height",te)]:Ke,[le("fontSize",te)]:Ct}}=f.value;return{"--n-bezier":ce,"--n-text-color":G,"--n-color":Q,"--n-panel-font-size":pe,"--n-font-size":Ct,"--n-box-shadow":Ce,"--n-border":de,"--n-border-radius":L,"--n-height":Ke,"--n-divider-color":we}}),ot=u?it("color-picker",C(()=>a.value[0]),st,e):void 0;function xe(){var te;const{value:ce}=q,{value:G}=ue,{internalActions:Q,modes:pe,actions:Ce}=e,{value:de}=f,{value:L}=d;return i("div",{class:[`${L}-color-picker-panel`,ot==null?void 0:ot.themeClass.value],onDragstart:we=>{we.preventDefault()},style:u?void 0:st.value},i("div",{class:`${L}-color-picker-control`},i(Sv,{clsPrefix:L,rgba:ce,displayedHue:G,displayedSv:H.value,onUpdateSV:F,onComplete:Ie}),i("div",{class:`${L}-color-picker-preview`},i("div",{class:`${L}-color-picker-preview__sliders`},i(Cv,{clsPrefix:L,hue:G,onUpdateHue:j,onComplete:Ie}),e.showAlpha?i(wv,{clsPrefix:L,rgba:ce,alpha:W.value,onUpdateAlpha:J,onComplete:Ie}):null),e.showPreview?i(Mv,{clsPrefix:L,mode:w.value,color:q.value&&rn(q.value),onUpdateColor:we=>{se(we,"input")}}):null),i(Fv,{clsPrefix:L,showAlpha:e.showAlpha,mode:w.value,modes:pe,onUpdateMode:S,value:y.value,valueArr:me.value,onUpdateValue:be}),((te=e.swatches)===null||te===void 0?void 0:te.length)&&i(Dv,{clsPrefix:L,mode:w.value,swatches:e.swatches,onUpdateColor:we=>{se(we,"input")}})),Ce!=null&&Ce.length?i("div",{class:`${L}-color-picker-action`},Ce.includes("confirm")&&i(At,{size:"small",onClick:Ee,theme:de.peers.Button,themeOverrides:de.peerOverrides.Button},{default:()=>l.value.confirm}),Ce.includes("clear")&&i(At,{size:"small",onClick:Me,disabled:!y.value,theme:de.peers.Button,themeOverrides:de.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?i("div",{class:`${L}-color-picker-action`},{default:t.action}):Q?i("div",{class:`${L}-color-picker-action`},Q.includes("undo")&&i(At,{size:"small",onClick:_,disabled:!Ge.value,theme:de.peers.Button,themeOverrides:de.peerOverrides.Button},{default:()=>l.value.undo}),Q.includes("redo")&&i(At,{size:"small",onClick:Pe,disabled:!Ye.value,theme:de.peers.Button,themeOverrides:de.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:d,namespace:c,selfRef:o,hsla:re,rgba:q,mergedShow:p,mergedDisabled:s,isMounted:qo(),adjustedTo:Gt(e),mergedValue:y,handleTriggerClick(){h(!0)},handleClickOutside(te){var ce;!((ce=o.value)===null||ce===void 0)&&ce.contains(Uo(te))||h(!1)},renderPanel:xe,cssVars:u?void 0:st,themeClass:ot==null?void 0:ot.themeClass,onRender:ot==null?void 0:ot.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),i("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},i(Pr,null,{default:()=>[i(zr,null,{default:()=>i(Iv,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),i(Rr,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Gt.tdkey,to:this.adjustedTo},{default:()=>i(Vt,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?lo(this.renderPanel(),[[Ho,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),Hv={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"};function rd(e){const{primaryColor:t,borderRadius:o,lineHeight:r,fontSize:n,cardColor:a,textColor2:s,textColor1:l,dividerColor:d,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,closeColorHover:p,closeColorPressed:h,modalColor:g,boxShadow1:b,popoverColor:y,actionColor:x}=e;return Object.assign(Object.assign({},Hv),{lineHeight:r,color:a,colorModal:g,colorPopover:y,colorTarget:t,colorEmbedded:x,colorEmbeddedModal:x,colorEmbeddedPopover:x,textColor:s,titleTextColor:l,borderColor:d,actionColor:x,titleFontWeight:c,closeColorHover:p,closeColorPressed:h,closeBorderRadius:o,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,fontSizeSmall:n,fontSizeMedium:n,fontSizeLarge:n,fontSizeHuge:n,boxShadow:b,borderRadius:o})}const nd={name:"Card",common:lt,self:rd},id={name:"Card",common:_e,self(e){const t=rd(e),{cardColor:o,modalColor:r,popoverColor:n}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=n,t}},Ev=k([m("card",` + font-size: var(--n-font-size); + line-height: var(--n-line-height); + display: flex; + flex-direction: column; + width: 100%; + box-sizing: border-box; + position: relative; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + color: var(--n-text-color); + word-break: break-word; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[fs({background:"var(--n-color-modal)"}),z("hoverable",[k("&:hover","box-shadow: var(--n-box-shadow);")]),z("content-segmented",[k(">",[P("content",{paddingTop:"var(--n-padding-bottom)"})])]),z("content-soft-segmented",[k(">",[P("content",` + margin: 0 var(--n-padding-left); + padding: var(--n-padding-bottom) 0; + `)])]),z("footer-segmented",[k(">",[P("footer",{paddingTop:"var(--n-padding-bottom)"})])]),z("footer-soft-segmented",[k(">",[P("footer",` + padding: var(--n-padding-bottom) 0; + margin: 0 var(--n-padding-left); + `)])]),k(">",[m("card-header",` + box-sizing: border-box; + display: flex; + align-items: center; + font-size: var(--n-title-font-size); + padding: + var(--n-padding-top) + var(--n-padding-left) + var(--n-padding-bottom) + var(--n-padding-left); + `,[P("main",` + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + flex: 1; + min-width: 0; + color: var(--n-title-text-color); + `),P("extra",` + display: flex; + align-items: center; + font-size: var(--n-font-size); + font-weight: 400; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),P("close",` + margin: 0 0 0 8px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),P("action",` + box-sizing: border-box; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + background-clip: padding-box; + background-color: var(--n-action-color); + `),P("content","flex: 1; min-width: 0;"),P("content, footer",` + box-sizing: border-box; + padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); + font-size: var(--n-font-size); + `,[k("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),P("action",` + background-color: var(--n-action-color); + padding: var(--n-padding-bottom) var(--n-padding-left); + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `)]),m("card-cover",` + overflow: hidden; + width: 100%; + border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; + `,[k("img",` + display: block; + width: 100%; + `)]),z("bordered",` + border: 1px solid var(--n-border-color); + `,[k("&:target","border-color: var(--n-color-target);")]),z("action-segmented",[k(">",[P("action",[k("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),z("content-segmented, content-soft-segmented",[k(">",[P("content",{transition:"border-color 0.3s var(--n-bezier)"},[k("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),z("footer-segmented, footer-soft-segmented",[k(">",[P("footer",{transition:"border-color 0.3s var(--n-bezier)"},[k("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),z("embedded",` + background-color: var(--n-color-embedded); + `)]),jr(m("card",` + background: var(--n-color-modal); + `,[z("embedded",` + background-color: var(--n-color-embedded-modal); + `)])),pn(m("card",` + background: var(--n-color-popover); + `,[z("embedded",` + background-color: var(--n-color-embedded-popover); + `)]))]),ka={title:[String,Function],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"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function},Lv=ko(ka),Nv=Object.assign(Object.assign({},Re.props),ka),jv=ie({name:"Card",props:Nv,setup(e){const t=()=>{const{onClose:c}=e;c&&ae(c)},{inlineThemeDisabled:o,mergedClsPrefixRef:r,mergedRtlRef:n}=Ze(e),a=Re("Card","-card",Ev,nd,e,r),s=Nt("Card",n,r),l=C(()=>{const{size:c}=e,{self:{color:u,colorModal:f,colorTarget:v,textColor:p,titleTextColor:h,titleFontWeight:g,borderColor:b,actionColor:y,borderRadius:x,lineHeight:T,closeIconColor:$,closeIconColorHover:R,closeIconColorPressed:w,closeColorHover:S,closeColorPressed:A,closeBorderRadius:I,closeIconSize:M,closeSize:V,boxShadow:D,colorPopover:E,colorEmbedded:K,colorEmbeddedModal:N,colorEmbeddedPopover:oe,[le("padding",c)]:q,[le("fontSize",c)]:re,[le("titleFontSize",c)]:me},common:{cubicBezierEaseInOut:ue}}=a.value,{top:W,left:H,bottom:F}=qt(q);return{"--n-bezier":ue,"--n-border-radius":x,"--n-color":u,"--n-color-modal":f,"--n-color-popover":E,"--n-color-embedded":K,"--n-color-embedded-modal":N,"--n-color-embedded-popover":oe,"--n-color-target":v,"--n-text-color":p,"--n-line-height":T,"--n-action-color":y,"--n-title-text-color":h,"--n-title-font-weight":g,"--n-close-icon-color":$,"--n-close-icon-color-hover":R,"--n-close-icon-color-pressed":w,"--n-close-color-hover":S,"--n-close-color-pressed":A,"--n-border-color":b,"--n-box-shadow":D,"--n-padding-top":W,"--n-padding-bottom":F,"--n-padding-left":H,"--n-font-size":re,"--n-title-font-size":me,"--n-close-size":V,"--n-close-icon-size":M,"--n-close-border-radius":I}}),d=o?it("card",C(()=>e.size[0]),l,e):void 0;return{rtlEnabled:s,mergedClsPrefix:r,mergedTheme:a,handleCloseClick:t,cssVars:o?void 0:l,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:r,rtlEnabled:n,onRender:a,embedded:s,tag:l,$slots:d}=this;return a==null||a(),i(l,{class:[`${r}-card`,this.themeClass,s&&`${r}-card--embedded`,{[`${r}-card--rtl`]:n,[`${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`]:o}],style:this.cssVars,role:this.role},mt(d.cover,c=>{const u=this.cover?To([this.cover()]):c;return u&&i("div",{class:`${r}-card-cover`,role:"none"},u)}),mt(d.header,c=>{const{title:u}=this,f=u?To(typeof u=="function"?[u()]:[u]):c;return f||this.closable?i("div",{class:[`${r}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},i("div",{class:`${r}-card-header__main`,role:"heading"},f),mt(d["header-extra"],v=>{const p=this.headerExtra?To([this.headerExtra()]):v;return p&&i("div",{class:[`${r}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},p)}),this.closable&&i(ur,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0})):null}),mt(d.default,c=>{const{content:u}=this,f=u?To(typeof u=="function"?[u()]:[u]):c;return f&&i("div",{class:[`${r}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},f)}),mt(d.footer,c=>{const u=this.footer?To([this.footer()]):c;return u&&i("div",{class:[`${r}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},u)}),mt(d.action,c=>{const u=this.action?To([this.action()]):c;return u&&i("div",{class:`${r}-card__action`,role:"none"},u)}))}});function Vv(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const Wv={name:"Carousel",common:_e,self:Vv},Uv={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function ad(e){const{baseColor:t,inputColorDisabled:o,cardColor:r,modalColor:n,popoverColor:a,textColorDisabled:s,borderColor:l,primaryColor:d,textColor2:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,borderRadiusSmall:p,lineHeight:h}=e;return Object.assign(Object.assign({},Uv),{labelLineHeight:h,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,borderRadius:p,color:t,colorChecked:d,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:r,colorTableHeaderModal:n,colorTableHeaderPopover:a,checkMarkColor:t,checkMarkColorDisabled:s,checkMarkColorDisabledChecked:s,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${d}`,borderFocus:`1px solid ${d}`,boxShadowFocus:`0 0 0 2px ${Se(d,{alpha:.3})}`,textColor:c,textColorDisabled:s})}const Ra={name:"Checkbox",common:lt,self:ad},Ur={name:"Checkbox",common:_e,self(e){const{cardColor:t}=e,o=ad(e);return o.color="#0000",o.checkMarkColor=t,o}};function Kv(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n,textColor3:a,primaryColor:s,textColorDisabled:l,dividerColor:d,hoverColor:c,fontSizeMedium:u,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:o,menuDividerColor:d,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:a,optionHeight:f,optionFontSize:u,optionColorHover:c,optionTextColor:n,optionTextColorActive:s,optionTextColorDisabled:l,optionCheckMarkColor:s,loadingColor:s,columnWidth:"180px"}}const qv={name:"Cascader",common:_e,peers:{InternalSelectMenu:kn,InternalSelection:wa,Scrollbar:fo,Checkbox:Ur,Empty:wn},self:Kv},Gv=i("svg",{viewBox:"0 0 64 64",class:"check-icon"},i("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),Yv=i("svg",{viewBox:"0 0 100 100",class:"line-icon"},i("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),ld="n-checkbox-group",Xv={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},Zv=ie({name:"CheckboxGroup",props:Xv,setup(e){const{mergedClsPrefixRef:t}=Ze(e),o=xo(e),{mergedSizeRef:r,mergedDisabledRef:n}=o,a=B(e.defaultValue),s=C(()=>e.value),l=Rt(s,a),d=C(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),c=C(()=>Array.isArray(l.value)?new Set(l.value):new Set);function u(f,v){const{nTriggerFormInput:p,nTriggerFormChange:h}=o,{onChange:g,"onUpdate:value":b,onUpdateValue:y}=e;if(Array.isArray(l.value)){const x=Array.from(l.value),T=x.findIndex($=>$===v);f?~T||(x.push(v),y&&ae(y,x,{actionType:"check",value:v}),b&&ae(b,x,{actionType:"check",value:v}),p(),h(),a.value=x,g&&ae(g,x)):~T&&(x.splice(T,1),y&&ae(y,x,{actionType:"uncheck",value:v}),b&&ae(b,x,{actionType:"uncheck",value:v}),g&&ae(g,x),a.value=x,p(),h())}else f?(y&&ae(y,[v],{actionType:"check",value:v}),b&&ae(b,[v],{actionType:"check",value:v}),g&&ae(g,[v]),a.value=[v],p(),h()):(y&&ae(y,[],{actionType:"uncheck",value:v}),b&&ae(b,[],{actionType:"uncheck",value:v}),g&&ae(g,[]),a.value=[],p(),h())}return Je(ld,{checkedCountRef:d,maxRef:fe(e,"max"),minRef:fe(e,"min"),valueSetRef:c,disabledRef:n,mergedSizeRef:r,toggleCheckbox:u}),{mergedClsPrefix:t}},render(){return i("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),Qv=k([m("checkbox",` + font-size: var(--n-font-size); + outline: none; + cursor: pointer; + display: inline-flex; + flex-wrap: nowrap; + align-items: flex-start; + word-break: break-word; + line-height: var(--n-size); + --n-merged-color-table: var(--n-color-table); + `,[z("show-label","line-height: var(--n-label-line-height);"),k("&:hover",[m("checkbox-box",[P("border","border: var(--n-border-checked);")])]),k("&:focus:not(:active)",[m("checkbox-box",[P("border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),z("inside-table",[m("checkbox-box",` + background-color: var(--n-merged-color-table); + `)]),z("checked",[m("checkbox-box",` + background-color: var(--n-color-checked); + `,[m("checkbox-icon",[k(".check-icon",` + opacity: 1; + transform: scale(1); + `)])])]),z("indeterminate",[m("checkbox-box",[m("checkbox-icon",[k(".check-icon",` + opacity: 0; + transform: scale(.5); + `),k(".line-icon",` + opacity: 1; + transform: scale(1); + `)])])]),z("checked, indeterminate",[k("&:focus:not(:active)",[m("checkbox-box",[P("border",` + border: var(--n-border-checked); + box-shadow: var(--n-box-shadow-focus); + `)])]),m("checkbox-box",` + background-color: var(--n-color-checked); + border-left: 0; + border-top: 0; + `,[P("border",{border:"var(--n-border-checked)"})])]),z("disabled",{cursor:"not-allowed"},[z("checked",[m("checkbox-box",` + background-color: var(--n-color-disabled-checked); + `,[P("border",{border:"var(--n-border-disabled-checked)"}),m("checkbox-icon",[k(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),m("checkbox-box",` + background-color: var(--n-color-disabled); + `,[P("border",` + border: var(--n-border-disabled); + `),m("checkbox-icon",[k(".check-icon, .line-icon",` + fill: var(--n-check-mark-color-disabled); + `)])]),P("label",` + color: var(--n-text-color-disabled); + `)]),m("checkbox-box-wrapper",` + position: relative; + width: var(--n-size); + flex-shrink: 0; + flex-grow: 0; + user-select: none; + -webkit-user-select: none; + `),m("checkbox-box",` + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + height: var(--n-size); + width: var(--n-size); + display: inline-block; + box-sizing: border-box; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color 0.3s var(--n-bezier); + `,[P("border",` + transition: + border-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border: var(--n-border); + `),m("checkbox-icon",` + display: flex; + align-items: center; + justify-content: center; + position: absolute; + left: 1px; + right: 1px; + top: 1px; + bottom: 1px; + `,[k(".check-icon, .line-icon",` + width: 100%; + fill: var(--n-check-mark-color); + opacity: 0; + transform: scale(0.5); + transform-origin: center; + transition: + fill 0.3s var(--n-bezier), + transform 0.3s var(--n-bezier), + opacity 0.3s var(--n-bezier), + border-color 0.3s var(--n-bezier); + `),uo({left:"1px",top:"1px"})])]),P("label",` + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + user-select: none; + -webkit-user-select: none; + padding: var(--n-label-padding); + font-weight: var(--n-label-font-weight); + `,[k("&:empty",{display:"none"})])]),jr(m("checkbox",` + --n-merged-color-table: var(--n-color-table-modal); + `)),pn(m("checkbox",` + --n-merged-color-table: var(--n-color-table-popover); + `))]),Jv=Object.assign(Object.assign({},Re.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),ri=ie({name:"Checkbox",props:Jv,setup(e){const t=Ae(ld,null),o=B(null),{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:a}=Ze(e),s=B(e.defaultChecked),l=fe(e,"checked"),d=Rt(l,s),c=tt(()=>{if(t){const w=t.valueSetRef.value;return w&&e.value!==void 0?w.has(e.value):!1}else return d.value===e.checkedValue}),u=xo(e,{mergedSize(w){const{size:S}=e;if(S!==void 0)return S;if(t){const{value:A}=t.mergedSizeRef;if(A!==void 0)return A}if(w){const{mergedSize:A}=w;if(A!==void 0)return A.value}return"medium"},mergedDisabled(w){const{disabled:S}=e;if(S!==void 0)return S;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:A},checkedCountRef:I}=t;if(A!==void 0&&I.value>=A&&!c.value)return!0;const{minRef:{value:M}}=t;if(M!==void 0&&I.value<=M&&c.value)return!0}return w?w.disabled.value:!1}}),{mergedDisabledRef:f,mergedSizeRef:v}=u,p=Re("Checkbox","-checkbox",Qv,Ra,e,r);function h(w){if(t&&e.value!==void 0)t.toggleCheckbox(!c.value,e.value);else{const{onChange:S,"onUpdate:checked":A,onUpdateChecked:I}=e,{nTriggerFormInput:M,nTriggerFormChange:V}=u,D=c.value?e.uncheckedValue:e.checkedValue;A&&ae(A,D,w),I&&ae(I,D,w),S&&ae(S,D,w),M(),V(),s.value=D}}function g(w){f.value||h(w)}function b(w){if(!f.value)switch(w.key){case" ":case"Enter":h(w)}}function y(w){switch(w.key){case" ":w.preventDefault()}}const x={focus:()=>{var w;(w=o.value)===null||w===void 0||w.focus()},blur:()=>{var w;(w=o.value)===null||w===void 0||w.blur()}},T=Nt("Checkbox",a,r),$=C(()=>{const{value:w}=v,{common:{cubicBezierEaseInOut:S},self:{borderRadius:A,color:I,colorChecked:M,colorDisabled:V,colorTableHeader:D,colorTableHeaderModal:E,colorTableHeaderPopover:K,checkMarkColor:N,checkMarkColorDisabled:oe,border:q,borderFocus:re,borderDisabled:me,borderChecked:ue,boxShadowFocus:W,textColor:H,textColorDisabled:F,checkMarkColorDisabledChecked:j,colorDisabledChecked:J,borderDisabledChecked:se,labelPadding:be,labelLineHeight:Ie,labelFontWeight:_,[le("fontSize",w)]:Pe,[le("size",w)]:Me}}=p.value;return{"--n-label-line-height":Ie,"--n-label-font-weight":_,"--n-size":Me,"--n-bezier":S,"--n-border-radius":A,"--n-border":q,"--n-border-checked":ue,"--n-border-focus":re,"--n-border-disabled":me,"--n-border-disabled-checked":se,"--n-box-shadow-focus":W,"--n-color":I,"--n-color-checked":M,"--n-color-table":D,"--n-color-table-modal":E,"--n-color-table-popover":K,"--n-color-disabled":V,"--n-color-disabled-checked":J,"--n-text-color":H,"--n-text-color-disabled":F,"--n-check-mark-color":N,"--n-check-mark-color-disabled":oe,"--n-check-mark-color-disabled-checked":j,"--n-font-size":Pe,"--n-label-padding":be}}),R=n?it("checkbox",C(()=>v.value[0]),$,e):void 0;return Object.assign(u,x,{rtlEnabled:T,selfRef:o,mergedClsPrefix:r,mergedDisabled:f,renderedChecked:c,mergedTheme:p,labelId:Ko(),handleClick:g,handleKeyUp:b,handleKeyDown:y,cssVars:n?void 0:$,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender})},render(){var e;const{$slots:t,renderedChecked:o,mergedDisabled:r,indeterminate:n,privateInsideTable:a,cssVars:s,labelId:l,label:d,mergedClsPrefix:c,focusable:u,handleKeyUp:f,handleKeyDown:v,handleClick:p}=this;(e=this.onRender)===null||e===void 0||e.call(this);const h=mt(t.default,g=>d||g?i("span",{class:`${c}-checkbox__label`,id:l},d||g):null);return i("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,o&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,n&&`${c}-checkbox--indeterminate`,a&&`${c}-checkbox--inside-table`,h&&`${c}-checkbox--show-label`],tabindex:r||!u?void 0:0,role:"checkbox","aria-checked":n?"mixed":o,"aria-labelledby":l,style:s,onKeyup:f,onKeydown:v,onClick:p,onMousedown:()=>{Zt("selectstart",window,g=>{g.preventDefault()},{once:!0})}},i("div",{class:`${c}-checkbox-box-wrapper`}," ",i("div",{class:`${c}-checkbox-box`},i(cr,null,{default:()=>this.indeterminate?i("div",{key:"indeterminate",class:`${c}-checkbox-icon`},Yv):i("div",{key:"check",class:`${c}-checkbox-icon`},Gv)}),i("div",{class:`${c}-checkbox-box__border`}))),h)}}),sd={name:"Code",common:_e,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:r,textColor3:n}=e;return{textColor:t,fontSize:o,fontWeightStrong:r,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:n}}};function ep(e){const{fontWeight:t,textColor1:o,textColor2:r,textColorDisabled:n,dividerColor:a,fontSize:s}=e;return{titleFontSize:s,titleFontWeight:t,dividerColor:a,titleTextColor:o,titleTextColorDisabled:n,fontSize:s,textColor:r,arrowColor:r,arrowColorDisabled:n,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const tp={name:"Collapse",common:_e,self:ep};function op(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const rp={name:"CollapseTransition",common:_e,self:op},np={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(go("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},ip=ie({name:"ConfigProvider",alias:["App"],props:np,setup(e){const t=Ae(Ro,null),o=C(()=>{const{theme:g}=e;if(g===null)return;const b=t==null?void 0:t.mergedThemeRef.value;return g===void 0?b:b===void 0?g:Object.assign({},b,g)}),r=C(()=>{const{themeOverrides:g}=e;if(g!==null){if(g===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const b=t==null?void 0:t.mergedThemeOverridesRef.value;return b===void 0?g:Mr({},b,g)}}}),n=tt(()=>{const{namespace:g}=e;return g===void 0?t==null?void 0:t.mergedNamespaceRef.value:g}),a=tt(()=>{const{bordered:g}=e;return g===void 0?t==null?void 0:t.mergedBorderedRef.value:g}),s=C(()=>{const{icons:g}=e;return g===void 0?t==null?void 0:t.mergedIconsRef.value:g}),l=C(()=>{const{componentOptions:g}=e;return g!==void 0?g:t==null?void 0:t.mergedComponentPropsRef.value}),d=C(()=>{const{clsPrefix:g}=e;return g!==void 0?g:t?t.mergedClsPrefixRef.value:Xn}),c=C(()=>{var g;const{rtl:b}=e;if(b===void 0)return t==null?void 0:t.mergedRtlRef.value;const y={};for(const x of b)y[x.name]=Za(x),(g=x.peers)===null||g===void 0||g.forEach(T=>{T.name in y||(y[T.name]=Za(T))});return y}),u=C(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),v=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),p=e.styleMountTarget||(t==null?void 0:t.styleMountTarget),h=C(()=>{const{value:g}=o,{value:b}=r,y=b&&Object.keys(b).length!==0,x=g==null?void 0:g.name;return x?y?`${x}-${Yn(JSON.stringify(r.value))}`:x:y?Yn(JSON.stringify(r.value)):""});return Je(Ro,{mergedThemeHashRef:h,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:s,mergedComponentPropsRef:l,mergedBorderedRef:a,mergedNamespaceRef:n,mergedClsPrefixRef:d,mergedLocaleRef:C(()=>{const{locale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedLocaleRef.value:g}),mergedDateLocaleRef:C(()=>{const{dateLocale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedDateLocaleRef.value:g}),mergedHljsRef:C(()=>{const{hljs:g}=e;return g===void 0?t==null?void 0:t.mergedHljsRef.value:g}),mergedKatexRef:C(()=>{const{katex:g}=e;return g===void 0?t==null?void 0:t.mergedKatexRef.value:g}),mergedThemeRef:o,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:v||!1,styleMountTarget:p}),{mergedClsPrefix:d,mergedBordered:a,mergedNamespace:n,mergedTheme:o,mergedThemeOverrides:r}},render(){var e,t,o,r;return this.abstract?(r=(o=this.$slots).default)===null||r===void 0?void 0:r.call(o):i(this.as||this.tag,{class:`${this.mergedClsPrefix||Xn}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),dd={name:"Popselect",common:_e,peers:{Popover:Fr,InternalSelectMenu:kn}};function ap(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const za={name:"Popselect",common:lt,peers:{Popover:Wr,InternalSelectMenu:ya},self:ap},cd="n-popselect",lp=m("popselect-menu",` + box-shadow: var(--n-menu-box-shadow); +`),Pa={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},Rl=ko(Pa),sp=ie({name:"PopselectPanel",props:Pa,setup(e){const t=Ae(cd),{mergedClsPrefixRef:o,inlineThemeDisabled:r}=Ze(e),n=Re("Popselect","-pop-select",lp,za,t.props,o),a=C(()=>Wo(e.options,Vs("value","children")));function s(v,p){const{onUpdateValue:h,"onUpdate:value":g,onChange:b}=e;h&&ae(h,v,p),g&&ae(g,v,p),b&&ae(b,v,p)}function l(v){c(v.key)}function d(v){!Xt(v,"action")&&!Xt(v,"empty")&&!Xt(v,"header")&&v.preventDefault()}function c(v){const{value:{getNode:p}}=a;if(e.multiple)if(Array.isArray(e.value)){const h=[],g=[];let b=!0;e.value.forEach(y=>{if(y===v){b=!1;return}const x=p(y);x&&(h.push(x.key),g.push(x.rawNode))}),b&&(h.push(v),g.push(p(v).rawNode)),s(h,g)}else{const h=p(v);h&&s([v],[h.rawNode])}else if(e.value===v&&e.cancelable)s(null,null);else{const h=p(v);h&&s(v,h.rawNode);const{"onUpdate:show":g,onUpdateShow:b}=t.props;g&&ae(g,!1),b&&ae(b,!1),t.setShow(!1)}zt(()=>{t.syncPosition()})}vt(fe(e,"options"),()=>{zt(()=>{t.syncPosition()})});const u=C(()=>{const{self:{menuBoxShadow:v}}=n.value;return{"--n-menu-box-shadow":v}}),f=r?it("select",void 0,u,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:o,treeMate:a,handleToggle:l,handleMenuMousedown:d,cssVars:r?void 0:u,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),i(Ts,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,o;return((o=(t=this.$slots).header)===null||o===void 0?void 0:o.call(t))||[]},action:()=>{var t,o;return((o=(t=this.$slots).action)===null||o===void 0?void 0:o.call(t))||[]},empty:()=>{var t,o;return((o=(t=this.$slots).empty)===null||o===void 0?void 0:o.call(t))||[]}})}}),dp=Object.assign(Object.assign(Object.assign(Object.assign({},Re.props),$r(Lr,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Lr.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),Pa),cp=ie({name:"Popselect",props:dp,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Ze(e),o=Re("Popselect","-popselect",void 0,za,e,t),r=B(null);function n(){var l;(l=r.value)===null||l===void 0||l.syncPosition()}function a(l){var d;(d=r.value)===null||d===void 0||d.setShow(l)}return Je(cd,{props:e,mergedThemeRef:o,syncPosition:n,setShow:a}),Object.assign(Object.assign({},{syncPosition:n,setShow:a}),{popoverInstRef:r,mergedTheme:o})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(o,r,n,a,s)=>{const{$attrs:l}=this;return i(sp,Object.assign({},l,{class:[l.class,o],style:[l.style,...n]},po(this.$props,Rl),{ref:ds(r),onMouseenter:nn([a,l.onMouseenter]),onMouseleave:nn([s,l.onMouseleave])}),{header:()=>{var d,c;return(c=(d=this.$slots).header)===null||c===void 0?void 0:c.call(d)},action:()=>{var d,c;return(c=(d=this.$slots).action)===null||c===void 0?void 0:c.call(d)},empty:()=>{var d,c;return(c=(d=this.$slots).empty)===null||c===void 0?void 0:c.call(d)}})}};return i(Rn,Object.assign({},$r(this.$props,Rl),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var o,r;return(r=(o=this.$slots).default)===null||r===void 0?void 0:r.call(o)}})}});function ud(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const fd={name:"Select",common:lt,peers:{InternalSelection:Ls,InternalSelectMenu:ya},self:ud},hd={name:"Select",common:_e,peers:{InternalSelection:wa,InternalSelectMenu:kn},self:ud},up=k([m("select",` + z-index: auto; + outline: none; + width: 100%; + position: relative; + `),m("select-menu",` + margin: 4px 0; + box-shadow: var(--n-menu-box-shadow); + `,[hr({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),fp=Object.assign(Object.assign({},Re.props),{to:Gt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),hp=ie({name:"Select",props:fp,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,namespaceRef:r,inlineThemeDisabled:n}=Ze(e),a=Re("Select","-select",up,fd,e,t),s=B(e.defaultValue),l=fe(e,"value"),d=Rt(l,s),c=B(!1),u=B(""),f=nr(e,["items","options"]),v=B([]),p=B([]),h=C(()=>p.value.concat(v.value).concat(f.value)),g=C(()=>{const{filter:O}=e;if(O)return O;const{labelField:Y,valueField:ve}=e;return(Fe,Be)=>{if(!Be)return!1;const U=Be[Y];if(typeof U=="string")return gi(Fe,U);const ge=Be[ve];return typeof ge=="string"?gi(Fe,ge):typeof ge=="number"?gi(Fe,String(ge)):!1}}),b=C(()=>{if(e.remote)return f.value;{const{value:O}=h,{value:Y}=u;return!Y.length||!e.filterable?O:gh(O,g.value,Y,e.childrenField)}}),y=C(()=>{const{valueField:O,childrenField:Y}=e,ve=Vs(O,Y);return Wo(b.value,ve)}),x=C(()=>mh(h.value,e.valueField,e.childrenField)),T=B(!1),$=Rt(fe(e,"show"),T),R=B(null),w=B(null),S=B(null),{localeRef:A}=zo("Select"),I=C(()=>{var O;return(O=e.placeholder)!==null&&O!==void 0?O:A.value.placeholder}),M=[],V=B(new Map),D=C(()=>{const{fallbackOption:O}=e;if(O===void 0){const{labelField:Y,valueField:ve}=e;return Fe=>({[Y]:String(Fe),[ve]:Fe})}return O===!1?!1:Y=>Object.assign(O(Y),{value:Y})});function E(O){const Y=e.remote,{value:ve}=V,{value:Fe}=x,{value:Be}=D,U=[];return O.forEach(ge=>{if(Fe.has(ge))U.push(Fe.get(ge));else if(Y&&ve.has(ge))U.push(ve.get(ge));else if(Be){const Te=Be(ge);Te&&U.push(Te)}}),U}const K=C(()=>{if(e.multiple){const{value:O}=d;return Array.isArray(O)?E(O):[]}return null}),N=C(()=>{const{value:O}=d;return!e.multiple&&!Array.isArray(O)?O===null?null:E([O])[0]||null:null}),oe=xo(e),{mergedSizeRef:q,mergedDisabledRef:re,mergedStatusRef:me}=oe;function ue(O,Y){const{onChange:ve,"onUpdate:value":Fe,onUpdateValue:Be}=e,{nTriggerFormChange:U,nTriggerFormInput:ge}=oe;ve&&ae(ve,O,Y),Be&&ae(Be,O,Y),Fe&&ae(Fe,O,Y),s.value=O,U(),ge()}function W(O){const{onBlur:Y}=e,{nTriggerFormBlur:ve}=oe;Y&&ae(Y,O),ve()}function H(){const{onClear:O}=e;O&&ae(O)}function F(O){const{onFocus:Y,showOnFocus:ve}=e,{nTriggerFormFocus:Fe}=oe;Y&&ae(Y,O),Fe(),ve&&Ie()}function j(O){const{onSearch:Y}=e;Y&&ae(Y,O)}function J(O){const{onScroll:Y}=e;Y&&ae(Y,O)}function se(){var O;const{remote:Y,multiple:ve}=e;if(Y){const{value:Fe}=V;if(ve){const{valueField:Be}=e;(O=K.value)===null||O===void 0||O.forEach(U=>{Fe.set(U[Be],U)})}else{const Be=N.value;Be&&Fe.set(Be[e.valueField],Be)}}}function be(O){const{onUpdateShow:Y,"onUpdate:show":ve}=e;Y&&ae(Y,O),ve&&ae(ve,O),T.value=O}function Ie(){re.value||(be(!0),T.value=!0,e.filterable&&bt())}function _(){be(!1)}function Pe(){u.value="",p.value=M}const Me=B(!1);function Ee(){e.filterable&&(Me.value=!0)}function Ge(){e.filterable&&(Me.value=!1,$.value||Pe())}function Ye(){re.value||($.value?e.filterable?bt():_():Ie())}function st(O){var Y,ve;!((ve=(Y=S.value)===null||Y===void 0?void 0:Y.selfRef)===null||ve===void 0)&&ve.contains(O.relatedTarget)||(c.value=!1,W(O),_())}function ot(O){F(O),c.value=!0}function xe(){c.value=!0}function te(O){var Y;!((Y=R.value)===null||Y===void 0)&&Y.$el.contains(O.relatedTarget)||(c.value=!1,W(O),_())}function ce(){var O;(O=R.value)===null||O===void 0||O.focus(),_()}function G(O){var Y;$.value&&(!((Y=R.value)===null||Y===void 0)&&Y.$el.contains(Uo(O))||_())}function Q(O){if(!Array.isArray(O))return[];if(D.value)return Array.from(O);{const{remote:Y}=e,{value:ve}=x;if(Y){const{value:Fe}=V;return O.filter(Be=>ve.has(Be)||Fe.has(Be))}else return O.filter(Fe=>ve.has(Fe))}}function pe(O){Ce(O.rawNode)}function Ce(O){if(re.value)return;const{tag:Y,remote:ve,clearFilterAfterSelect:Fe,valueField:Be}=e;if(Y&&!ve){const{value:U}=p,ge=U[0]||null;if(ge){const Te=v.value;Te.length?Te.push(ge):v.value=[ge],p.value=M}}if(ve&&V.value.set(O[Be],O),e.multiple){const U=Q(d.value),ge=U.findIndex(Te=>Te===O[Be]);if(~ge){if(U.splice(ge,1),Y&&!ve){const Te=de(O[Be]);~Te&&(v.value.splice(Te,1),Fe&&(u.value=""))}}else U.push(O[Be]),Fe&&(u.value="");ue(U,E(U))}else{if(Y&&!ve){const U=de(O[Be]);~U?v.value=[v.value[U]]:v.value=M}ht(),_(),ue(O[Be],O)}}function de(O){return v.value.findIndex(ve=>ve[e.valueField]===O)}function L(O){$.value||Ie();const{value:Y}=O.target;u.value=Y;const{tag:ve,remote:Fe}=e;if(j(Y),ve&&!Fe){if(!Y){p.value=M;return}const{onCreate:Be}=e,U=Be?Be(Y):{[e.labelField]:Y,[e.valueField]:Y},{valueField:ge,labelField:Te}=e;f.value.some(je=>je[ge]===U[ge]||je[Te]===U[Te])||v.value.some(je=>je[ge]===U[ge]||je[Te]===U[Te])?p.value=M:p.value=[U]}}function we(O){O.stopPropagation();const{multiple:Y}=e;!Y&&e.filterable&&_(),H(),Y?ue([],[]):ue(null,null)}function Ke(O){!Xt(O,"action")&&!Xt(O,"empty")&&!Xt(O,"header")&&O.preventDefault()}function Ct(O){J(O)}function Tt(O){var Y,ve,Fe,Be,U;if(!e.keyboard){O.preventDefault();return}switch(O.key){case" ":if(e.filterable)break;O.preventDefault();case"Enter":if(!(!((Y=R.value)===null||Y===void 0)&&Y.isComposing)){if($.value){const ge=(ve=S.value)===null||ve===void 0?void 0:ve.getPendingTmNode();ge?pe(ge):e.filterable||(_(),ht())}else if(Ie(),e.tag&&Me.value){const ge=p.value[0];if(ge){const Te=ge[e.valueField],{value:je}=d;e.multiple&&Array.isArray(je)&&je.includes(Te)||Ce(ge)}}}O.preventDefault();break;case"ArrowUp":if(O.preventDefault(),e.loading)return;$.value&&((Fe=S.value)===null||Fe===void 0||Fe.prev());break;case"ArrowDown":if(O.preventDefault(),e.loading)return;$.value?(Be=S.value)===null||Be===void 0||Be.next():Ie();break;case"Escape":$.value&&(dn(O),_()),(U=R.value)===null||U===void 0||U.focus();break}}function ht(){var O;(O=R.value)===null||O===void 0||O.focus()}function bt(){var O;(O=R.value)===null||O===void 0||O.focusInput()}function yt(){var O;$.value&&((O=w.value)===null||O===void 0||O.syncPosition())}se(),vt(fe(e,"options"),se);const ct={focus:()=>{var O;(O=R.value)===null||O===void 0||O.focus()},focusInput:()=>{var O;(O=R.value)===null||O===void 0||O.focusInput()},blur:()=>{var O;(O=R.value)===null||O===void 0||O.blur()},blurInput:()=>{var O;(O=R.value)===null||O===void 0||O.blurInput()}},De=C(()=>{const{self:{menuBoxShadow:O}}=a.value;return{"--n-menu-box-shadow":O}}),Xe=n?it("select",void 0,De,e):void 0;return Object.assign(Object.assign({},ct),{mergedStatus:me,mergedClsPrefix:t,mergedBordered:o,namespace:r,treeMate:y,isMounted:qo(),triggerRef:R,menuRef:S,pattern:u,uncontrolledShow:T,mergedShow:$,adjustedTo:Gt(e),uncontrolledValue:s,mergedValue:d,followerRef:w,localizedPlaceholder:I,selectedOption:N,selectedOptions:K,mergedSize:q,mergedDisabled:re,focused:c,activeWithoutMenuOpen:Me,inlineThemeDisabled:n,onTriggerInputFocus:Ee,onTriggerInputBlur:Ge,handleTriggerOrMenuResize:yt,handleMenuFocus:xe,handleMenuBlur:te,handleMenuTabOut:ce,handleTriggerClick:Ye,handleToggle:pe,handleDeleteOption:Ce,handlePatternInput:L,handleClear:we,handleTriggerBlur:st,handleTriggerFocus:ot,handleKeydown:Tt,handleMenuAfterLeave:Pe,handleMenuClickOutside:G,handleMenuScroll:Ct,handleMenuKeydown:Tt,handleMenuMousedown:Ke,mergedTheme:a,cssVars:n?void 0:De,themeClass:Xe==null?void 0:Xe.themeClass,onRender:Xe==null?void 0:Xe.onRender})},render(){return i("div",{class:`${this.mergedClsPrefix}-select`},i(Pr,null,{default:()=>[i(zr,null,{default:()=>i(nh,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),i(Rr,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Gt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>i(Vt,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,o;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),lo(i(Ts,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(o=this.menuProps)===null||o===void 0?void 0:o.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,n;return[(n=(r=this.$slots).empty)===null||n===void 0?void 0:n.call(r)]},header:()=>{var r,n;return[(n=(r=this.$slots).header)===null||n===void 0?void 0:n.call(r)]},action:()=>{var r,n;return[(n=(r=this.$slots).action)===null||n===void 0?void 0:n.call(r)]}}),this.displayDirective==="show"?[[_o,this.mergedShow],[Ho,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Ho,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),vp={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function vd(e){const{textColor2:t,primaryColor:o,primaryColorHover:r,primaryColorPressed:n,inputColorDisabled:a,textColorDisabled:s,borderColor:l,borderRadius:d,fontSizeTiny:c,fontSizeSmall:u,fontSizeMedium:f,heightTiny:v,heightSmall:p,heightMedium:h}=e;return Object.assign(Object.assign({},vp),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:n,itemTextColorActive:o,itemTextColorDisabled:s,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:a,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:d,itemSizeSmall:v,itemSizeMedium:p,itemSizeLarge:h,itemFontSizeSmall:c,itemFontSizeMedium:u,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:u,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:s})}const pd={name:"Pagination",common:lt,peers:{Select:fd,Input:vr,Popselect:za},self:vd},gd={name:"Pagination",common:_e,peers:{Select:hd,Input:Po,Popselect:dd},self(e){const{primaryColor:t,opacity3:o}=e,r=Se(t,{alpha:Number(o)}),n=vd(e);return n.itemBorderActive=`1px solid ${r}`,n.itemBorderDisabled="1px solid #0000",n}},zl=` + background: var(--n-item-color-hover); + color: var(--n-item-text-color-hover); + border: var(--n-item-border-hover); +`,Pl=[z("button",` + background: var(--n-button-color-hover); + border: var(--n-button-border-hover); + color: var(--n-button-icon-color-hover); + `)],pp=m("pagination",` + display: flex; + vertical-align: middle; + font-size: var(--n-item-font-size); + flex-wrap: nowrap; +`,[m("pagination-prefix",` + display: flex; + align-items: center; + margin: var(--n-prefix-margin); + `),m("pagination-suffix",` + display: flex; + align-items: center; + margin: var(--n-suffix-margin); + `),k("> *:not(:first-child)",` + margin: var(--n-item-margin); + `),m("select",` + width: var(--n-select-width); + `),k("&.transition-disabled",[m("pagination-item","transition: none!important;")]),m("pagination-quick-jumper",` + white-space: nowrap; + display: flex; + color: var(--n-jumper-text-color); + transition: color .3s var(--n-bezier); + align-items: center; + font-size: var(--n-jumper-font-size); + `,[m("input",` + margin: var(--n-input-margin); + width: var(--n-input-width); + `)]),m("pagination-item",` + position: relative; + cursor: pointer; + user-select: none; + -webkit-user-select: none; + display: flex; + align-items: center; + justify-content: center; + box-sizing: border-box; + min-width: var(--n-item-size); + height: var(--n-item-size); + padding: var(--n-item-padding); + background-color: var(--n-item-color); + color: var(--n-item-text-color); + border-radius: var(--n-item-border-radius); + border: var(--n-item-border); + fill: var(--n-button-icon-color); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + fill .3s var(--n-bezier); + `,[z("button",` + background: var(--n-button-color); + color: var(--n-button-icon-color); + border: var(--n-button-border); + padding: 0; + `,[m("base-icon",` + font-size: var(--n-button-icon-size); + `)]),nt("disabled",[z("hover",zl,Pl),k("&:hover",zl,Pl),k("&:active",` + background: var(--n-item-color-pressed); + color: var(--n-item-text-color-pressed); + border: var(--n-item-border-pressed); + `,[z("button",` + background: var(--n-button-color-pressed); + border: var(--n-button-border-pressed); + color: var(--n-button-icon-color-pressed); + `)]),z("active",` + background: var(--n-item-color-active); + color: var(--n-item-text-color-active); + border: var(--n-item-border-active); + `,[k("&:hover",` + background: var(--n-item-color-active-hover); + `)])]),z("disabled",` + cursor: not-allowed; + color: var(--n-item-text-color-disabled); + `,[z("active, button",` + background-color: var(--n-item-color-disabled); + border: var(--n-item-border-disabled); + `)])]),z("disabled",` + cursor: not-allowed; + `,[m("pagination-quick-jumper",` + color: var(--n-jumper-text-color-disabled); + `)]),z("simple",` + display: flex; + align-items: center; + flex-wrap: nowrap; + `,[m("pagination-quick-jumper",[m("input",` + margin: 0; + `)])])]);function md(e){var t;if(!e)return 10;const{defaultPageSize:o}=e;if(o!==void 0)return o;const r=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof r=="number"?r:(r==null?void 0:r.value)||10}function gp(e,t,o,r){let n=!1,a=!1,s=1,l=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:s,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:s,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const d=1,c=t;let u=e,f=e;const v=(o-5)/2;f+=Math.ceil(v),f=Math.min(Math.max(f,d+o-3),c-2),u-=Math.floor(v),u=Math.max(Math.min(u,c-o+3),d+2);let p=!1,h=!1;u>d+2&&(p=!0),f=d+1&&g.push({type:"page",label:d+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===d+1});for(let b=u;b<=f;++b)g.push({type:"page",label:b,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===b});return h?(a=!0,l=f+1,g.push({type:"fast-forward",active:!1,label:void 0,options:r?$l(f+1,c-1):null})):f===c-2&&g[g.length-1].label!==c-1&&g.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:c-1,active:e===c-1}),g[g.length-1].label!==c&&g.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:c,active:e===c}),{hasFastBackward:n,hasFastForward:a,fastBackwardTo:s,fastForwardTo:l,items:g}}function $l(e,t){const o=[];for(let r=e;r<=t;++r)o.push({label:`${r}`,value:r});return o}const mp=Object.assign(Object.assign({},Re.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Gt.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),bp=ie({name:"Pagination",props:mp,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Ze(e),a=Re("Pagination","-pagination",pp,pd,e,o),{localeRef:s}=zo("Pagination"),l=B(null),d=B(e.defaultPage),c=B(md(e)),u=Rt(fe(e,"page"),d),f=Rt(fe(e,"pageSize"),c),v=C(()=>{const{itemCount:_}=e;if(_!==void 0)return Math.max(1,Math.ceil(_/f.value));const{pageCount:Pe}=e;return Pe!==void 0?Math.max(Pe,1):1}),p=B("");$t(()=>{e.simple,p.value=String(u.value)});const h=B(!1),g=B(!1),b=B(!1),y=B(!1),x=()=>{e.disabled||(h.value=!0,N())},T=()=>{e.disabled||(h.value=!1,N())},$=()=>{g.value=!0,N()},R=()=>{g.value=!1,N()},w=_=>{oe(_)},S=C(()=>gp(u.value,v.value,e.pageSlot,e.showQuickJumpDropdown));$t(()=>{S.value.hasFastBackward?S.value.hasFastForward||(h.value=!1,b.value=!1):(g.value=!1,y.value=!1)});const A=C(()=>{const _=s.value.selectionSuffix;return e.pageSizes.map(Pe=>typeof Pe=="number"?{label:`${Pe} / ${_}`,value:Pe}:Pe)}),I=C(()=>{var _,Pe;return((Pe=(_=t==null?void 0:t.value)===null||_===void 0?void 0:_.Pagination)===null||Pe===void 0?void 0:Pe.inputSize)||Wi(e.size)}),M=C(()=>{var _,Pe;return((Pe=(_=t==null?void 0:t.value)===null||_===void 0?void 0:_.Pagination)===null||Pe===void 0?void 0:Pe.selectSize)||Wi(e.size)}),V=C(()=>(u.value-1)*f.value),D=C(()=>{const _=u.value*f.value-1,{itemCount:Pe}=e;return Pe!==void 0&&_>Pe-1?Pe-1:_}),E=C(()=>{const{itemCount:_}=e;return _!==void 0?_:(e.pageCount||1)*f.value}),K=Nt("Pagination",n,o);function N(){zt(()=>{var _;const{value:Pe}=l;Pe&&(Pe.classList.add("transition-disabled"),(_=l.value)===null||_===void 0||_.offsetWidth,Pe.classList.remove("transition-disabled"))})}function oe(_){if(_===u.value)return;const{"onUpdate:page":Pe,onUpdatePage:Me,onChange:Ee,simple:Ge}=e;Pe&&ae(Pe,_),Me&&ae(Me,_),Ee&&ae(Ee,_),d.value=_,Ge&&(p.value=String(_))}function q(_){if(_===f.value)return;const{"onUpdate:pageSize":Pe,onUpdatePageSize:Me,onPageSizeChange:Ee}=e;Pe&&ae(Pe,_),Me&&ae(Me,_),Ee&&ae(Ee,_),c.value=_,v.value{u.value,f.value,N()});const be=C(()=>{const{size:_}=e,{self:{buttonBorder:Pe,buttonBorderHover:Me,buttonBorderPressed:Ee,buttonIconColor:Ge,buttonIconColorHover:Ye,buttonIconColorPressed:st,itemTextColor:ot,itemTextColorHover:xe,itemTextColorPressed:te,itemTextColorActive:ce,itemTextColorDisabled:G,itemColor:Q,itemColorHover:pe,itemColorPressed:Ce,itemColorActive:de,itemColorActiveHover:L,itemColorDisabled:we,itemBorder:Ke,itemBorderHover:Ct,itemBorderPressed:Tt,itemBorderActive:ht,itemBorderDisabled:bt,itemBorderRadius:yt,jumperTextColor:ct,jumperTextColorDisabled:De,buttonColor:Xe,buttonColorHover:O,buttonColorPressed:Y,[le("itemPadding",_)]:ve,[le("itemMargin",_)]:Fe,[le("inputWidth",_)]:Be,[le("selectWidth",_)]:U,[le("inputMargin",_)]:ge,[le("selectMargin",_)]:Te,[le("jumperFontSize",_)]:je,[le("prefixMargin",_)]:dt,[le("suffixMargin",_)]:et,[le("itemSize",_)]:ne,[le("buttonIconSize",_)]:$e,[le("itemFontSize",_)]:He,[`${le("itemMargin",_)}Rtl`]:Qe,[`${le("inputMargin",_)}Rtl`]:Pt},common:{cubicBezierEaseInOut:Ft}}=a.value;return{"--n-prefix-margin":dt,"--n-suffix-margin":et,"--n-item-font-size":He,"--n-select-width":U,"--n-select-margin":Te,"--n-input-width":Be,"--n-input-margin":ge,"--n-input-margin-rtl":Pt,"--n-item-size":ne,"--n-item-text-color":ot,"--n-item-text-color-disabled":G,"--n-item-text-color-hover":xe,"--n-item-text-color-active":ce,"--n-item-text-color-pressed":te,"--n-item-color":Q,"--n-item-color-hover":pe,"--n-item-color-disabled":we,"--n-item-color-active":de,"--n-item-color-active-hover":L,"--n-item-color-pressed":Ce,"--n-item-border":Ke,"--n-item-border-hover":Ct,"--n-item-border-disabled":bt,"--n-item-border-active":ht,"--n-item-border-pressed":Tt,"--n-item-padding":ve,"--n-item-border-radius":yt,"--n-bezier":Ft,"--n-jumper-font-size":je,"--n-jumper-text-color":ct,"--n-jumper-text-color-disabled":De,"--n-item-margin":Fe,"--n-item-margin-rtl":Qe,"--n-button-icon-size":$e,"--n-button-icon-color":Ge,"--n-button-icon-color-hover":Ye,"--n-button-icon-color-pressed":st,"--n-button-color-hover":O,"--n-button-color":Xe,"--n-button-color-pressed":Y,"--n-button-border":Pe,"--n-button-border-hover":Me,"--n-button-border-pressed":Ee}}),Ie=r?it("pagination",C(()=>{let _="";const{size:Pe}=e;return _+=Pe[0],_}),be,e):void 0;return{rtlEnabled:K,mergedClsPrefix:o,locale:s,selfRef:l,mergedPage:u,pageItems:C(()=>S.value.items),mergedItemCount:E,jumperValue:p,pageSizeOptions:A,mergedPageSize:f,inputSize:I,selectSize:M,mergedTheme:a,mergedPageCount:v,startIndex:V,endIndex:D,showFastForwardMenu:b,showFastBackwardMenu:y,fastForwardActive:h,fastBackwardActive:g,handleMenuSelect:w,handleFastForwardMouseenter:x,handleFastForwardMouseleave:T,handleFastBackwardMouseenter:$,handleFastBackwardMouseleave:R,handleJumperInput:se,handleBackwardClick:me,handleForwardClick:re,handlePageItemClick:J,handleSizePickerChange:H,handleQuickJumperChange:j,cssVars:r?void 0:be,themeClass:Ie==null?void 0:Ie.themeClass,onRender:Ie==null?void 0:Ie.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:o,cssVars:r,mergedPage:n,mergedPageCount:a,pageItems:s,showSizePicker:l,showQuickJumper:d,mergedTheme:c,locale:u,inputSize:f,selectSize:v,mergedPageSize:p,pageSizeOptions:h,jumperValue:g,simple:b,prev:y,next:x,prefix:T,suffix:$,label:R,goto:w,handleJumperInput:S,handleSizePickerChange:A,handleBackwardClick:I,handlePageItemClick:M,handleForwardClick:V,handleQuickJumperChange:D,onRender:E}=this;E==null||E();const K=e.prefix||T,N=e.suffix||$,oe=y||e.prev,q=x||e.next,re=R||e.label;return i("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,o&&`${t}-pagination--disabled`,b&&`${t}-pagination--simple`],style:r},K?i("div",{class:`${t}-pagination-prefix`},K({page:n,pageSize:p,pageCount:a,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(me=>{switch(me){case"pages":return i(Wt,null,i("div",{class:[`${t}-pagination-item`,!oe&&`${t}-pagination-item--button`,(n<=1||n>a||o)&&`${t}-pagination-item--disabled`],onClick:I},oe?oe({page:n,pageSize:p,pageCount:a,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):i(kt,{clsPrefix:t},{default:()=>this.rtlEnabled?i(sr,null):i(ir,null)})),b?i(Wt,null,i("div",{class:`${t}-pagination-quick-jumper`},i(Bo,{value:g,onUpdateValue:S,size:f,placeholder:"",disabled:o,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:D}))," /"," ",a):s.map((ue,W)=>{let H,F,j;const{type:J}=ue;switch(J){case"page":const be=ue.label;re?H=re({type:"page",node:be,active:ue.active}):H=be;break;case"fast-forward":const Ie=this.fastForwardActive?i(kt,{clsPrefix:t},{default:()=>this.rtlEnabled?i(ar,null):i(lr,null)}):i(kt,{clsPrefix:t},{default:()=>i(gl,null)});re?H=re({type:"fast-forward",node:Ie,active:this.fastForwardActive||this.showFastForwardMenu}):H=Ie,F=this.handleFastForwardMouseenter,j=this.handleFastForwardMouseleave;break;case"fast-backward":const _=this.fastBackwardActive?i(kt,{clsPrefix:t},{default:()=>this.rtlEnabled?i(lr,null):i(ar,null)}):i(kt,{clsPrefix:t},{default:()=>i(gl,null)});re?H=re({type:"fast-backward",node:_,active:this.fastBackwardActive||this.showFastBackwardMenu}):H=_,F=this.handleFastBackwardMouseenter,j=this.handleFastBackwardMouseleave;break}const se=i("div",{key:W,class:[`${t}-pagination-item`,ue.active&&`${t}-pagination-item--active`,J!=="page"&&(J==="fast-backward"&&this.showFastBackwardMenu||J==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,o&&`${t}-pagination-item--disabled`,J==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{M(ue)},onMouseenter:F,onMouseleave:j},H);if(J==="page"&&!ue.mayBeFastBackward&&!ue.mayBeFastForward)return se;{const be=ue.type==="page"?ue.mayBeFastBackward?"fast-backward":"fast-forward":ue.type;return ue.type!=="page"&&!ue.options?se:i(cp,{to:this.to,key:be,disabled:o,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:J==="page"?!1:J==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Ie=>{J!=="page"&&(Ie?J==="fast-backward"?this.showFastBackwardMenu=Ie:this.showFastForwardMenu=Ie:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:ue.type!=="page"&&ue.options?ue.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>se})}}),i("div",{class:[`${t}-pagination-item`,!q&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:n<1||n>=a||o}],onClick:V},q?q({page:n,pageSize:p,pageCount:a,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):i(kt,{clsPrefix:t},{default:()=>this.rtlEnabled?i(ir,null):i(sr,null)})));case"size-picker":return!b&&l?i(hp,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:v,options:h,value:p,disabled:o,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:A})):null;case"quick-jumper":return!b&&d?i("div",{class:`${t}-pagination-quick-jumper`},w?w():ft(this.$slots.goto,()=>[u.goto]),i(Bo,{value:g,onUpdateValue:S,size:f,placeholder:"",disabled:o,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:D})):null;default:return null}}),N?i("div",{class:`${t}-pagination-suffix`},N({page:n,pageSize:p,pageCount:a,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),bd={padding:"8px 14px"},ni={name:"Tooltip",common:_e,peers:{Popover:Fr},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n}=e;return Object.assign(Object.assign({},bd),{borderRadius:t,boxShadow:o,color:r,textColor:n})}};function xp(e){const{borderRadius:t,boxShadow2:o,baseColor:r}=e;return Object.assign(Object.assign({},bd),{borderRadius:t,boxShadow:o,color:We(r,"rgba(0, 0, 0, .85)"),textColor:r})}const $a={name:"Tooltip",common:lt,peers:{Popover:Wr},self:xp},xd={name:"Ellipsis",common:_e,peers:{Tooltip:ni}},Cd={name:"Ellipsis",common:lt,peers:{Tooltip:$a}},yd={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},wd={name:"Radio",common:_e,self(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:a,textColor2:s,opacityDisabled:l,borderRadius:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,heightSmall:v,heightMedium:p,heightLarge:h,lineHeight:g}=e;return Object.assign(Object.assign({},yd),{labelLineHeight:g,buttonHeightSmall:v,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Se(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:a,colorActive:"#0000",textColor:s,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:s,buttonTextColorActive:r,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Se(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:d})}};function Cp(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:a,textColor2:s,opacityDisabled:l,borderRadius:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,heightSmall:v,heightMedium:p,heightLarge:h,lineHeight:g}=e;return Object.assign(Object.assign({},yd),{labelLineHeight:g,buttonHeightSmall:v,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Se(o,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:a,colorActive:"#0000",textColor:s,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:s,buttonTextColorActive:o,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Se(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:d})}const Ta={name:"Radio",common:lt,self:Cp},yp={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function Sd(e){const{primaryColor:t,textColor2:o,dividerColor:r,hoverColor:n,popoverColor:a,invertedColor:s,borderRadius:l,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,heightSmall:v,heightMedium:p,heightLarge:h,heightHuge:g,textColor3:b,opacityDisabled:y}=e;return Object.assign(Object.assign({},yp),{optionHeightSmall:v,optionHeightMedium:p,optionHeightLarge:h,optionHeightHuge:g,borderRadius:l,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:a,dividerColor:r,suffixColor:o,prefixColor:o,optionColorHover:n,optionColorActive:Se(t,{alpha:.1}),groupHeaderTextColor:b,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:s,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:y})}const Fa={name:"Dropdown",common:lt,peers:{Popover:Wr},self:Sd},Ia={name:"Dropdown",common:_e,peers:{Popover:Fr},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:r}=e,n=Sd(e);return n.colorInverted=r,n.optionColorActive=Se(o,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}},wp={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function kd(e){const{cardColor:t,modalColor:o,popoverColor:r,textColor2:n,textColor1:a,tableHeaderColor:s,tableColorHover:l,iconColor:d,primaryColor:c,fontWeightStrong:u,borderRadius:f,lineHeight:v,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:g,dividerColor:b,heightSmall:y,opacityDisabled:x,tableColorStriped:T}=e;return Object.assign(Object.assign({},wp),{actionDividerColor:b,lineHeight:v,borderRadius:f,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:g,borderColor:We(t,b),tdColorHover:We(t,l),tdColorSorting:We(t,l),tdColorStriped:We(t,T),thColor:We(t,s),thColorHover:We(We(t,s),l),thColorSorting:We(We(t,s),l),tdColor:t,tdTextColor:n,thTextColor:a,thFontWeight:u,thButtonColorHover:l,thIconColor:d,thIconColorActive:c,borderColorModal:We(o,b),tdColorHoverModal:We(o,l),tdColorSortingModal:We(o,l),tdColorStripedModal:We(o,T),thColorModal:We(o,s),thColorHoverModal:We(We(o,s),l),thColorSortingModal:We(We(o,s),l),tdColorModal:o,borderColorPopover:We(r,b),tdColorHoverPopover:We(r,l),tdColorSortingPopover:We(r,l),tdColorStripedPopover:We(r,T),thColorPopover:We(r,s),thColorHoverPopover:We(We(r,s),l),thColorSortingPopover:We(We(r,s),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:y,opacityLoading:x})}const Sp={name:"DataTable",common:lt,peers:{Button:pr,Checkbox:Ra,Radio:Ta,Pagination:pd,Scrollbar:Eo,Empty:wn,Popover:Wr,Ellipsis:Cd,Dropdown:Fa},self:kd},kp={name:"DataTable",common:_e,peers:{Button:ho,Checkbox:Ur,Radio:wd,Pagination:gd,Scrollbar:fo,Empty:Tr,Popover:Fr,Ellipsis:xd,Dropdown:Ia},self(e){const t=kd(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},Rp=Object.assign(Object.assign({},Lr),Re.props),Rd=ie({name:"Tooltip",props:Rp,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Ze(e),o=Re("Tooltip","-tooltip",void 0,$a,e,t),r=B(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(a){r.value.setShow(a)}}),{popoverRef:r,mergedTheme:o,popoverThemeOverrides:C(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return i(Rn,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),zd=m("ellipsis",{overflow:"hidden"},[nt("line-clamp",` + white-space: nowrap; + display: inline-block; + vertical-align: bottom; + max-width: 100%; + `),z("line-clamp",` + display: -webkit-inline-box; + -webkit-box-orient: vertical; + `),z("cursor-pointer",` + cursor: pointer; + `)]);function Ji(e){return`${e}-ellipsis--line-clamp`}function ea(e,t){return`${e}-ellipsis--cursor-${t}`}const Pd=Object.assign(Object.assign({},Re.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),Ba=ie({name:"Ellipsis",inheritAttrs:!1,props:Pd,setup(e,{slots:t,attrs:o}){const r=ws(),n=Re("Ellipsis","-ellipsis",zd,Cd,e,r),a=B(null),s=B(null),l=B(null),d=B(!1),c=C(()=>{const{lineClamp:b}=e,{value:y}=d;return b!==void 0?{textOverflow:"","-webkit-line-clamp":y?"":b}:{textOverflow:y?"":"ellipsis","-webkit-line-clamp":""}});function u(){let b=!1;const{value:y}=d;if(y)return!0;const{value:x}=a;if(x){const{lineClamp:T}=e;if(p(x),T!==void 0)b=x.scrollHeight<=x.offsetHeight;else{const{value:$}=s;$&&(b=$.getBoundingClientRect().width<=x.getBoundingClientRect().width)}h(x,b)}return b}const f=C(()=>e.expandTrigger==="click"?()=>{var b;const{value:y}=d;y&&((b=l.value)===null||b===void 0||b.setShow(!1)),d.value=!y}:void 0);os(()=>{var b;e.tooltip&&((b=l.value)===null||b===void 0||b.setShow(!1))});const v=()=>i("span",Object.assign({},ao(o,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?Ji(r.value):void 0,e.expandTrigger==="click"?ea(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?u:void 0}),e.lineClamp?t:i("span",{ref:"triggerInnerRef"},t));function p(b){if(!b)return;const y=c.value,x=Ji(r.value);e.lineClamp!==void 0?g(b,x,"add"):g(b,x,"remove");for(const T in y)b.style[T]!==y[T]&&(b.style[T]=y[T])}function h(b,y){const x=ea(r.value,"pointer");e.expandTrigger==="click"&&!y?g(b,x,"add"):g(b,x,"remove")}function g(b,y,x){x==="add"?b.classList.contains(y)||b.classList.add(y):b.classList.contains(y)&&b.classList.remove(y)}return{mergedTheme:n,triggerRef:a,triggerInnerRef:s,tooltipRef:l,handleClick:f,renderTrigger:v,getTooltipDisabled:u}},render(){var e;const{tooltip:t,renderTrigger:o,$slots:r}=this;if(t){const{mergedTheme:n}=this;return i(Rd,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:n.peers.Tooltip,themeOverrides:n.peerOverrides.Tooltip}),{trigger:o,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return o()}}),zp=ie({name:"PerformantEllipsis",props:Pd,inheritAttrs:!1,setup(e,{attrs:t,slots:o}){const r=B(!1),n=ws();return dr("-ellipsis",zd,n),{mouseEntered:r,renderTrigger:()=>{const{lineClamp:s}=e,l=n.value;return i("span",Object.assign({},ao(t,{class:[`${l}-ellipsis`,s!==void 0?Ji(l):void 0,e.expandTrigger==="click"?ea(l,"pointer"):void 0],style:s===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":s}}),{onMouseenter:()=>{r.value=!0}}),s?o:i("span",null,o))}}},render(){return this.mouseEntered?i(Ba,ao({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),Pp=Object.assign(Object.assign({},Re.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,virtualScrollX:Boolean,virtualScrollHeader:Boolean,headerHeight:{type:Number,default:28},heightForRow:Function,minRowHeight:{type:Number,default:28},tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),Oo="n-data-table",$p=ie({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),Tp=ie({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=Ze(),{mergedSortStateRef:o,mergedClsPrefixRef:r}=Ae(Oo),n=C(()=>o.value.find(d=>d.columnKey===e.column.key)),a=C(()=>n.value!==void 0),s=C(()=>{const{value:d}=n;return d&&a.value?d.order:!1}),l=C(()=>{var d,c;return((c=(d=t==null?void 0:t.value)===null||d===void 0?void 0:d.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:r,active:a,mergedSortOrder:s,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:o}=this,{renderSorterIcon:r}=this.column;return e?i($p,{render:e,order:t}):i("span",{class:[`${o}-data-table-sorter`,t==="ascend"&&`${o}-data-table-sorter--asc`,t==="descend"&&`${o}-data-table-sorter--desc`]},r?r({order:t}):i(kt,{clsPrefix:o},{default:()=>i(uf,null)}))}}),$d={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},Td="n-radio-group";function Fd(e){const t=Ae(Td,null),o=xo(e,{mergedSize(x){const{size:T}=e;if(T!==void 0)return T;if(t){const{mergedSizeRef:{value:$}}=t;if($!==void 0)return $}return x?x.mergedSize.value:"medium"},mergedDisabled(x){return!!(e.disabled||t!=null&&t.disabledRef.value||x!=null&&x.disabled.value)}}),{mergedSizeRef:r,mergedDisabledRef:n}=o,a=B(null),s=B(null),l=B(e.defaultChecked),d=fe(e,"checked"),c=Rt(d,l),u=tt(()=>t?t.valueRef.value===e.value:c.value),f=tt(()=>{const{name:x}=e;if(x!==void 0)return x;if(t)return t.nameRef.value}),v=B(!1);function p(){if(t){const{doUpdateValue:x}=t,{value:T}=e;ae(x,T)}else{const{onUpdateChecked:x,"onUpdate:checked":T}=e,{nTriggerFormInput:$,nTriggerFormChange:R}=o;x&&ae(x,!0),T&&ae(T,!0),$(),R(),l.value=!0}}function h(){n.value||u.value||p()}function g(){h(),a.value&&(a.value.checked=u.value)}function b(){v.value=!1}function y(){v.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:Ze(e).mergedClsPrefixRef,inputRef:a,labelRef:s,mergedName:f,mergedDisabled:n,renderSafeChecked:u,focus:v,mergedSize:r,handleRadioInputChange:g,handleRadioInputBlur:b,handleRadioInputFocus:y}}const Fp=m("radio",` + line-height: var(--n-label-line-height); + outline: none; + position: relative; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + align-items: flex-start; + flex-wrap: nowrap; + font-size: var(--n-font-size); + word-break: break-word; +`,[z("checked",[P("dot",` + background-color: var(--n-color-active); + `)]),P("dot-wrapper",` + position: relative; + flex-shrink: 0; + flex-grow: 0; + width: var(--n-radio-size); + `),m("radio-input",` + position: absolute; + border: 0; + border-radius: inherit; + left: 0; + right: 0; + top: 0; + bottom: 0; + opacity: 0; + z-index: 1; + cursor: pointer; + `),P("dot",` + position: absolute; + top: 50%; + left: 0; + transform: translateY(-50%); + height: var(--n-radio-size); + width: var(--n-radio-size); + background: var(--n-color); + box-shadow: var(--n-box-shadow); + border-radius: 50%; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `,[k("&::before",` + content: ""; + opacity: 0; + position: absolute; + left: 4px; + top: 4px; + height: calc(100% - 8px); + width: calc(100% - 8px); + border-radius: 50%; + transform: scale(.8); + background: var(--n-dot-color-active); + transition: + opacity .3s var(--n-bezier), + background-color .3s var(--n-bezier), + transform .3s var(--n-bezier); + `),z("checked",{boxShadow:"var(--n-box-shadow-active)"},[k("&::before",` + opacity: 1; + transform: scale(1); + `)])]),P("label",` + color: var(--n-text-color); + padding: var(--n-label-padding); + font-weight: var(--n-label-font-weight); + display: inline-block; + transition: color .3s var(--n-bezier); + `),nt("disabled",` + cursor: pointer; + `,[k("&:hover",[P("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),z("focus",[k("&:not(:active)",[P("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),z("disabled",` + cursor: not-allowed; + `,[P("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[k("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),z("checked",` + opacity: 1; + `)]),P("label",{color:"var(--n-text-color-disabled)"}),m("radio-input",` + cursor: not-allowed; + `)])]),Ip=Object.assign(Object.assign({},Re.props),$d),Id=ie({name:"Radio",props:Ip,setup(e){const t=Fd(e),o=Re("Radio","-radio",Fp,Ta,e,t.mergedClsPrefix),r=C(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:u},self:{boxShadow:f,boxShadowActive:v,boxShadowDisabled:p,boxShadowFocus:h,boxShadowHover:g,color:b,colorDisabled:y,colorActive:x,textColor:T,textColorDisabled:$,dotColorActive:R,dotColorDisabled:w,labelPadding:S,labelLineHeight:A,labelFontWeight:I,[le("fontSize",c)]:M,[le("radioSize",c)]:V}}=o.value;return{"--n-bezier":u,"--n-label-line-height":A,"--n-label-font-weight":I,"--n-box-shadow":f,"--n-box-shadow-active":v,"--n-box-shadow-disabled":p,"--n-box-shadow-focus":h,"--n-box-shadow-hover":g,"--n-color":b,"--n-color-active":x,"--n-color-disabled":y,"--n-dot-color-active":R,"--n-dot-color-disabled":w,"--n-font-size":M,"--n-radio-size":V,"--n-text-color":T,"--n-text-color-disabled":$,"--n-label-padding":S}}),{inlineThemeDisabled:n,mergedClsPrefixRef:a,mergedRtlRef:s}=Ze(e),l=Nt("Radio",s,a),d=n?it("radio",C(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:n?void 0:r,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:o,label:r}=this;return o==null||o(),i("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},i("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),i("div",{class:`${t}-radio__dot-wrapper`}," ",i("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),mt(e.default,n=>!n&&!r?null:i("div",{ref:"labelRef",class:`${t}-radio__label`},n||r)))}}),Bp=m("radio-group",` + display: inline-block; + font-size: var(--n-font-size); +`,[P("splitor",` + display: inline-block; + vertical-align: bottom; + width: 1px; + transition: + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + background: var(--n-button-border-color); + `,[z("checked",{backgroundColor:"var(--n-button-border-color-active)"}),z("disabled",{opacity:"var(--n-opacity-disabled)"})]),z("button-group",` + white-space: nowrap; + height: var(--n-height); + line-height: var(--n-height); + `,[m("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),P("splitor",{height:"var(--n-height)"})]),m("radio-button",` + vertical-align: bottom; + outline: none; + position: relative; + user-select: none; + -webkit-user-select: none; + display: inline-block; + box-sizing: border-box; + padding-left: 14px; + padding-right: 14px; + white-space: nowrap; + transition: + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + background: var(--n-button-color); + color: var(--n-button-text-color); + border-top: 1px solid var(--n-button-border-color); + border-bottom: 1px solid var(--n-button-border-color); + `,[m("radio-input",` + pointer-events: none; + position: absolute; + border: 0; + border-radius: inherit; + left: 0; + right: 0; + top: 0; + bottom: 0; + opacity: 0; + z-index: 1; + `),P("state-border",` + z-index: 1; + pointer-events: none; + position: absolute; + box-shadow: var(--n-button-box-shadow); + transition: box-shadow .3s var(--n-bezier); + left: -1px; + bottom: -1px; + right: -1px; + top: -1px; + `),k("&:first-child",` + border-top-left-radius: var(--n-button-border-radius); + border-bottom-left-radius: var(--n-button-border-radius); + border-left: 1px solid var(--n-button-border-color); + `,[P("state-border",` + border-top-left-radius: var(--n-button-border-radius); + border-bottom-left-radius: var(--n-button-border-radius); + `)]),k("&:last-child",` + border-top-right-radius: var(--n-button-border-radius); + border-bottom-right-radius: var(--n-button-border-radius); + border-right: 1px solid var(--n-button-border-color); + `,[P("state-border",` + border-top-right-radius: var(--n-button-border-radius); + border-bottom-right-radius: var(--n-button-border-radius); + `)]),nt("disabled",` + cursor: pointer; + `,[k("&:hover",[P("state-border",` + transition: box-shadow .3s var(--n-bezier); + box-shadow: var(--n-button-box-shadow-hover); + `),nt("checked",{color:"var(--n-button-text-color-hover)"})]),z("focus",[k("&:not(:active)",[P("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),z("checked",` + background: var(--n-button-color-active); + color: var(--n-button-text-color-active); + border-color: var(--n-button-border-color-active); + `),z("disabled",` + cursor: not-allowed; + opacity: var(--n-opacity-disabled); + `)])]);function Op(e,t,o){var r;const n=[];let a=!1;for(let s=0;s{const{value:R}=o,{common:{cubicBezierEaseInOut:w},self:{buttonBorderColor:S,buttonBorderColorActive:A,buttonBorderRadius:I,buttonBoxShadow:M,buttonBoxShadowFocus:V,buttonBoxShadowHover:D,buttonColor:E,buttonColorActive:K,buttonTextColor:N,buttonTextColorActive:oe,buttonTextColorHover:q,opacityDisabled:re,[le("buttonHeight",R)]:me,[le("fontSize",R)]:ue}}=f.value;return{"--n-font-size":ue,"--n-bezier":w,"--n-button-border-color":S,"--n-button-border-color-active":A,"--n-button-border-radius":I,"--n-button-box-shadow":M,"--n-button-box-shadow-focus":V,"--n-button-box-shadow-hover":D,"--n-button-color":E,"--n-button-color-active":K,"--n-button-text-color":N,"--n-button-text-color-hover":q,"--n-button-text-color-active":oe,"--n-height":me,"--n-opacity-disabled":re}}),$=c?it("radio-group",C(()=>o.value[0]),T,e):void 0;return{selfElRef:t,rtlEnabled:x,mergedClsPrefix:d,mergedValue:h,handleFocusout:y,handleFocusin:b,cssVars:c?void 0:T,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:o,handleFocusin:r,handleFocusout:n}=this,{children:a,isButtonGroup:s}=Op(Io(vn(this)),t,o);return(e=this.onRender)===null||e===void 0||e.call(this),i("div",{onFocusin:r,onFocusout:n,ref:"selfElRef",class:[`${o}-radio-group`,this.rtlEnabled&&`${o}-radio-group--rtl`,this.themeClass,s&&`${o}-radio-group--button-group`],style:this.cssVars},a)}}),ry=ie({name:"RadioButton",props:$d,setup:Fd,render(){const{mergedClsPrefix:e}=this;return i("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},i("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),i("div",{class:`${e}-radio-button__state-border`}),mt(this.$slots.default,t=>!t&&!this.label?null:i("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),Bd=40,Od=40;function Tl(e){if(e.type==="selection")return e.width===void 0?Bd:Mt(e.width);if(e.type==="expand")return e.width===void 0?Od:Mt(e.width);if(!("children"in e))return typeof e.width=="string"?Mt(e.width):e.width}function Ap(e){var t,o;if(e.type==="selection")return _t((t=e.width)!==null&&t!==void 0?t:Bd);if(e.type==="expand")return _t((o=e.width)!==null&&o!==void 0?o:Od);if(!("children"in e))return _t(e.width)}function $o(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function Fl(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function _p(e){return e==="ascend"?1:e==="descend"?-1:0}function Hp(e,t,o){return o!==void 0&&(e=Math.min(e,typeof o=="number"?o:Number.parseFloat(o))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function Ep(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const o=Ap(e),{minWidth:r,maxWidth:n}=e;return{width:o,minWidth:_t(r)||o,maxWidth:_t(n)}}function Lp(e,t,o){return typeof o=="function"?o(e,t):o||""}function yi(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function wi(e){return"children"in e?!1:!!e.sorter}function Dd(e){return"children"in e&&e.children.length?!1:!!e.resizable}function Il(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function Bl(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function Np(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:Bl(!1)}:Object.assign(Object.assign({},t),{order:Bl(t.order)})}function Md(e,t){return t.find(o=>o.columnKey===e.key&&o.order)!==void 0}function jp(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function Vp(e,t){const o=e.filter(a=>a.type!=="expand"&&a.type!=="selection"&&a.allowExport!==!1),r=o.map(a=>a.title).join(","),n=t.map(a=>o.map(s=>jp(a[s.key])).join(","));return[r,...n].join(` +`)}const Wp=ie({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Ze(e),r=Nt("DataTable",o,t),{mergedClsPrefixRef:n,mergedThemeRef:a,localeRef:s}=Ae(Oo),l=B(e.value),d=C(()=>{const{value:h}=l;return Array.isArray(h)?h:null}),c=C(()=>{const{value:h}=l;return yi(e.column)?Array.isArray(h)&&h.length&&h[0]||null:Array.isArray(h)?null:h});function u(h){e.onChange(h)}function f(h){e.multiple&&Array.isArray(h)?l.value=h:yi(e.column)&&!Array.isArray(h)?l.value=[h]:l.value=h}function v(){u(l.value),e.onConfirm()}function p(){e.multiple||yi(e.column)?u([]):u(null),e.onClear()}return{mergedClsPrefix:n,rtlEnabled:r,mergedTheme:a,locale:s,checkboxGroupValue:d,radioGroupValue:c,handleChange:f,handleConfirmClick:v,handleClearClick:p}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:o}=this;return i("div",{class:[`${o}-data-table-filter-menu`,this.rtlEnabled&&`${o}-data-table-filter-menu--rtl`]},i(Lt,null,{default:()=>{const{checkboxGroupValue:r,handleChange:n}=this;return this.multiple?i(Zv,{value:r,class:`${o}-data-table-filter-menu__group`,onUpdateValue:n},{default:()=>this.options.map(a=>i(ri,{key:a.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:a.value},{default:()=>a.label}))}):i(Mp,{name:this.radioGroupName,class:`${o}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(a=>i(Id,{key:a.value,value:a.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>a.label}))})}}),i("div",{class:`${o}-data-table-filter-menu__action`},i(At,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),i(At,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}}),Up=ie({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:o}=this;return e({active:t,show:o})}});function Kp(e,t,o){const r=Object.assign({},e);return r[t]=o,r}const qp=ie({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=Ze(),{mergedThemeRef:o,mergedClsPrefixRef:r,mergedFilterStateRef:n,filterMenuCssVarsRef:a,paginationBehaviorOnFilterRef:s,doUpdatePage:l,doUpdateFilters:d,filterIconPopoverPropsRef:c}=Ae(Oo),u=B(!1),f=n,v=C(()=>e.column.filterMultiple!==!1),p=C(()=>{const T=f.value[e.column.key];if(T===void 0){const{value:$}=v;return $?[]:null}return T}),h=C(()=>{const{value:T}=p;return Array.isArray(T)?T.length>0:T!==null}),g=C(()=>{var T,$;return(($=(T=t==null?void 0:t.value)===null||T===void 0?void 0:T.DataTable)===null||$===void 0?void 0:$.renderFilter)||e.column.renderFilter});function b(T){const $=Kp(f.value,e.column.key,T);d($,e.column),s.value==="first"&&l(1)}function y(){u.value=!1}function x(){u.value=!1}return{mergedTheme:o,mergedClsPrefix:r,active:h,showPopover:u,mergedRenderFilter:g,filterIconPopoverProps:c,filterMultiple:v,mergedFilterValue:p,filterMenuCssVars:a,handleFilterChange:b,handleFilterMenuConfirm:x,handleFilterMenuCancel:y}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:o,filterIconPopoverProps:r}=this;return i(Rn,Object.assign({show:this.showPopover,onUpdateShow:n=>this.showPopover=n,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},r,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:n}=this;if(n)return i(Up,{"data-data-table-filter":!0,render:n,active:this.active,show:this.showPopover});const{renderFilterIcon:a}=this.column;return i("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},a?a({active:this.active,show:this.showPopover}):i(kt,{clsPrefix:t},{default:()=>i(mf,null)}))},default:()=>{const{renderFilterMenu:n}=this.column;return n?n({hide:o}):i(Wp,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),Gp=ie({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Ae(Oo),o=B(!1);let r=0;function n(d){return d.clientX}function a(d){var c;d.preventDefault();const u=o.value;r=n(d),o.value=!0,u||(Zt("mousemove",window,s),Zt("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function s(d){var c;(c=e.onResize)===null||c===void 0||c.call(e,n(d)-r)}function l(){var d;o.value=!1,(d=e.onResizeEnd)===null||d===void 0||d.call(e),Kt("mousemove",window,s),Kt("mouseup",window,l)}return mo(()=>{Kt("mousemove",window,s),Kt("mouseup",window,l)}),{mergedClsPrefix:t,active:o,handleMousedown:a}},render(){const{mergedClsPrefix:e}=this;return i("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),Ad=ie({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return i("div",{class:`${this.clsPrefix}-dropdown-divider`})}});function _d(e){const{textColorBase:t,opacity1:o,opacity2:r,opacity3:n,opacity4:a,opacity5:s}=e;return{color:t,opacity1Depth:o,opacity2Depth:r,opacity3Depth:n,opacity4Depth:a,opacity5Depth:s}}const Yp={name:"Icon",common:lt,self:_d},Xp={name:"Icon",common:_e,self:_d},Zp=m("icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; + transform: translateZ(0); +`,[z("color-transition",{transition:"color .3s var(--n-bezier)"}),z("depth",{color:"var(--n-color)"},[k("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),k("svg",{height:"1em",width:"1em"})]),Qp=Object.assign(Object.assign({},Re.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),Jp=ie({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:Qp,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),r=Re("Icon","-icon",Zp,Yp,e,t),n=C(()=>{const{depth:s}=e,{common:{cubicBezierEaseInOut:l},self:d}=r.value;if(s!==void 0){const{color:c,[`opacity${s}Depth`]:u}=d;return{"--n-bezier":l,"--n-color":c,"--n-opacity":u}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),a=o?it("icon",C(()=>`${e.depth||"d"}`),n,e):void 0;return{mergedClsPrefix:t,mergedStyle:C(()=>{const{size:s,color:l}=e;return{fontSize:_t(s),color:l}}),cssVars:o?void 0:n,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;const{$parent:t,depth:o,mergedClsPrefix:r,component:n,onRender:a,themeClass:s}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&go("icon","don't wrap `n-icon` inside `n-icon`"),a==null||a(),i("i",ao(this.$attrs,{role:"img",class:[`${r}-icon`,s,{[`${r}-icon--depth`]:o,[`${r}-icon--color-transition`]:o!==void 0}],style:[this.cssVars,this.mergedStyle]}),n?i(n):this.$slots)}}),Oa="n-dropdown-menu",ii="n-dropdown",Ol="n-dropdown-option";function ta(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function eg(e){return e.type==="group"}function Hd(e){return e.type==="divider"}function tg(e){return e.type==="render"}const Ed=ie({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Ae(ii),{hoverKeyRef:o,keyboardKeyRef:r,lastToggledSubmenuKeyRef:n,pendingKeyPathRef:a,activeKeyPathRef:s,animatedRef:l,mergedShowRef:d,renderLabelRef:c,renderIconRef:u,labelFieldRef:f,childrenFieldRef:v,renderOptionRef:p,nodePropsRef:h,menuPropsRef:g}=t,b=Ae(Ol,null),y=Ae(Oa),x=Ae(Vr),T=C(()=>e.tmNode.rawNode),$=C(()=>{const{value:q}=v;return ta(e.tmNode.rawNode,q)}),R=C(()=>{const{disabled:q}=e.tmNode;return q}),w=C(()=>{if(!$.value)return!1;const{key:q,disabled:re}=e.tmNode;if(re)return!1;const{value:me}=o,{value:ue}=r,{value:W}=n,{value:H}=a;return me!==null?H.includes(q):ue!==null?H.includes(q)&&H[H.length-1]!==q:W!==null?H.includes(q):!1}),S=C(()=>r.value===null&&!l.value),A=tf(w,300,S),I=C(()=>!!(b!=null&&b.enteringSubmenuRef.value)),M=B(!1);Je(Ol,{enteringSubmenuRef:M});function V(){M.value=!0}function D(){M.value=!1}function E(){const{parentKey:q,tmNode:re}=e;re.disabled||d.value&&(n.value=q,r.value=null,o.value=re.key)}function K(){const{tmNode:q}=e;q.disabled||d.value&&o.value!==q.key&&E()}function N(q){if(e.tmNode.disabled||!d.value)return;const{relatedTarget:re}=q;re&&!Xt({target:re},"dropdownOption")&&!Xt({target:re},"scrollbarRail")&&(o.value=null)}function oe(){const{value:q}=$,{tmNode:re}=e;d.value&&!q&&!re.disabled&&(t.doSelect(re.key,re.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:c,renderIcon:u,siblingHasIcon:y.showIconRef,siblingHasSubmenu:y.hasSubmenuRef,menuProps:g,popoverBody:x,animated:l,mergedShowSubmenu:C(()=>A.value&&!I.value),rawNode:T,hasSubmenu:$,pending:tt(()=>{const{value:q}=a,{key:re}=e.tmNode;return q.includes(re)}),childActive:tt(()=>{const{value:q}=s,{key:re}=e.tmNode,me=q.findIndex(ue=>re===ue);return me===-1?!1:me{const{value:q}=s,{key:re}=e.tmNode,me=q.findIndex(ue=>re===ue);return me===-1?!1:me===q.length-1}),mergedDisabled:R,renderOption:p,nodeProps:h,handleClick:oe,handleMouseMove:K,handleMouseEnter:E,handleMouseLeave:N,handleSubmenuBeforeEnter:V,handleSubmenuAfterEnter:D}},render(){var e,t;const{animated:o,rawNode:r,mergedShowSubmenu:n,clsPrefix:a,siblingHasIcon:s,siblingHasSubmenu:l,renderLabel:d,renderIcon:c,renderOption:u,nodeProps:f,props:v,scrollable:p}=this;let h=null;if(n){const x=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);h=i(Ld,Object.assign({},x,{clsPrefix:a,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const g={class:[`${a}-dropdown-option-body`,this.pending&&`${a}-dropdown-option-body--pending`,this.active&&`${a}-dropdown-option-body--active`,this.childActive&&`${a}-dropdown-option-body--child-active`,this.mergedDisabled&&`${a}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},b=f==null?void 0:f(r),y=i("div",Object.assign({class:[`${a}-dropdown-option`,b==null?void 0:b.class],"data-dropdown-option":!0},b),i("div",ao(g,v),[i("div",{class:[`${a}-dropdown-option-body__prefix`,s&&`${a}-dropdown-option-body__prefix--show-icon`]},[c?c(r):St(r.icon)]),i("div",{"data-dropdown-option":!0,class:`${a}-dropdown-option-body__label`},d?d(r):St((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),i("div",{"data-dropdown-option":!0,class:[`${a}-dropdown-option-body__suffix`,l&&`${a}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?i(Jp,null,{default:()=>i(Ca,null)}):null)]),this.hasSubmenu?i(Pr,null,{default:()=>[i(zr,null,{default:()=>i("div",{class:`${a}-dropdown-offset-container`},i(Rr,{show:this.mergedShowSubmenu,placement:this.placement,to:p&&this.popoverBody||void 0,teleportDisabled:!p},{default:()=>i("div",{class:`${a}-dropdown-menu-wrapper`},o?i(Vt,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>h}):h)}))})]}):null);return u?u({node:y,option:r}):y}}),og=ie({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Ae(Oa),{renderLabelRef:o,labelFieldRef:r,nodePropsRef:n,renderOptionRef:a}=Ae(ii);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:o,nodeProps:n,renderOption:a}},render(){var e;const{clsPrefix:t,hasSubmenu:o,showIcon:r,nodeProps:n,renderLabel:a,renderOption:s}=this,{rawNode:l}=this.tmNode,d=i("div",Object.assign({class:`${t}-dropdown-option`},n==null?void 0:n(l)),i("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},i("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},St(l.icon)),i("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},a?a(l):St((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),i("div",{class:[`${t}-dropdown-option-body__suffix`,o&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return s?s({node:d,option:l}):d}}),rg=ie({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:o}=this,{children:r}=e;return i(Wt,null,i(og,{clsPrefix:o,tmNode:e,key:e.key}),r==null?void 0:r.map(n=>{const{rawNode:a}=n;return a.show===!1?null:Hd(a)?i(Ad,{clsPrefix:o,key:n.key}):n.isGroup?(go("dropdown","`group` node is not allowed to be put in `group` node."),null):i(Ed,{clsPrefix:o,tmNode:n,parentKey:t,key:n.key})}))}}),ng=ie({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return i("div",t,[e==null?void 0:e()])}}),Ld=ie({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:o}=Ae(ii);Je(Oa,{showIconRef:C(()=>{const n=t.value;return e.tmNodes.some(a=>{var s;if(a.isGroup)return(s=a.children)===null||s===void 0?void 0:s.some(({rawNode:d})=>n?n(d):d.icon);const{rawNode:l}=a;return n?n(l):l.icon})}),hasSubmenuRef:C(()=>{const{value:n}=o;return e.tmNodes.some(a=>{var s;if(a.isGroup)return(s=a.children)===null||s===void 0?void 0:s.some(({rawNode:d})=>ta(d,n));const{rawNode:l}=a;return ta(l,n)})})});const r=B(null);return Je(gn,null),Je(mn,null),Je(Vr,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:o}=this,r=this.tmNodes.map(n=>{const{rawNode:a}=n;return a.show===!1?null:tg(a)?i(ng,{tmNode:n,key:n.key}):Hd(a)?i(Ad,{clsPrefix:t,key:n.key}):eg(a)?i(rg,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key}):i(Ed,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key,props:a.props,scrollable:o})});return i("div",{class:[`${t}-dropdown-menu`,o&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},o?i(Qn,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?Bs({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),ig=m("dropdown-menu",` + transform-origin: var(--v-transform-origin); + background-color: var(--n-color); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + position: relative; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); +`,[hr(),m("dropdown-option",` + position: relative; + `,[k("a",` + text-decoration: none; + color: inherit; + outline: none; + `,[k("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),m("dropdown-option-body",` + display: flex; + cursor: pointer; + position: relative; + height: var(--n-option-height); + line-height: var(--n-option-height); + font-size: var(--n-font-size); + color: var(--n-option-text-color); + transition: color .3s var(--n-bezier); + `,[k("&::before",` + content: ""; + position: absolute; + top: 0; + bottom: 0; + left: 4px; + right: 4px; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `),nt("disabled",[z("pending",` + color: var(--n-option-text-color-hover); + `,[P("prefix, suffix",` + color: var(--n-option-text-color-hover); + `),k("&::before","background-color: var(--n-option-color-hover);")]),z("active",` + color: var(--n-option-text-color-active); + `,[P("prefix, suffix",` + color: var(--n-option-text-color-active); + `),k("&::before","background-color: var(--n-option-color-active);")]),z("child-active",` + color: var(--n-option-text-color-child-active); + `,[P("prefix, suffix",` + color: var(--n-option-text-color-child-active); + `)])]),z("disabled",` + cursor: not-allowed; + opacity: var(--n-option-opacity-disabled); + `),z("group",` + font-size: calc(var(--n-font-size) - 1px); + color: var(--n-group-header-text-color); + `,[P("prefix",` + width: calc(var(--n-option-prefix-width) / 2); + `,[z("show-icon",` + width: calc(var(--n-option-icon-prefix-width) / 2); + `)])]),P("prefix",` + width: var(--n-option-prefix-width); + display: flex; + justify-content: center; + align-items: center; + color: var(--n-prefix-color); + transition: color .3s var(--n-bezier); + z-index: 1; + `,[z("show-icon",` + width: var(--n-option-icon-prefix-width); + `),m("icon",` + font-size: var(--n-option-icon-size); + `)]),P("label",` + white-space: nowrap; + flex: 1; + z-index: 1; + `),P("suffix",` + box-sizing: border-box; + flex-grow: 0; + flex-shrink: 0; + display: flex; + justify-content: flex-end; + align-items: center; + min-width: var(--n-option-suffix-width); + padding: 0 8px; + transition: color .3s var(--n-bezier); + color: var(--n-suffix-color); + z-index: 1; + `,[z("has-submenu",` + width: var(--n-option-icon-suffix-width); + `),m("icon",` + font-size: var(--n-option-icon-size); + `)]),m("dropdown-menu","pointer-events: all;")]),m("dropdown-offset-container",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: -4px; + bottom: -4px; + `)]),m("dropdown-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 4px 0; + `),m("dropdown-menu-wrapper",` + transform-origin: var(--v-transform-origin); + width: fit-content; + `),k(">",[m("scrollbar",` + height: inherit; + max-height: inherit; + `)]),nt("scrollable",` + padding: var(--n-padding); + `),z("scrollable",[P("content",` + padding: var(--n-padding); + `)])]),ag={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},lg=Object.keys(Lr),sg=Object.assign(Object.assign(Object.assign({},Lr),ag),Re.props),Nd=ie({name:"Dropdown",inheritAttrs:!1,props:sg,setup(e){const t=B(!1),o=Rt(fe(e,"show"),t),r=C(()=>{const{keyField:D,childrenField:E}=e;return Wo(e.options,{getKey(K){return K[D]},getDisabled(K){return K.disabled===!0},getIgnored(K){return K.type==="divider"||K.type==="render"},getChildren(K){return K[E]}})}),n=C(()=>r.value.treeNodes),a=B(null),s=B(null),l=B(null),d=C(()=>{var D,E,K;return(K=(E=(D=a.value)!==null&&D!==void 0?D:s.value)!==null&&E!==void 0?E:l.value)!==null&&K!==void 0?K:null}),c=C(()=>r.value.getPath(d.value).keyPath),u=C(()=>r.value.getPath(e.value).keyPath),f=tt(()=>e.keyboard&&o.value);ha({keydown:{ArrowUp:{prevent:!0,handler:R},ArrowRight:{prevent:!0,handler:$},ArrowDown:{prevent:!0,handler:w},ArrowLeft:{prevent:!0,handler:T},Enter:{prevent:!0,handler:S},Escape:x}},f);const{mergedClsPrefixRef:v,inlineThemeDisabled:p}=Ze(e),h=Re("Dropdown","-dropdown",ig,Fa,e,v);Je(ii,{labelFieldRef:fe(e,"labelField"),childrenFieldRef:fe(e,"childrenField"),renderLabelRef:fe(e,"renderLabel"),renderIconRef:fe(e,"renderIcon"),hoverKeyRef:a,keyboardKeyRef:s,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:u,animatedRef:fe(e,"animated"),mergedShowRef:o,nodePropsRef:fe(e,"nodeProps"),renderOptionRef:fe(e,"renderOption"),menuPropsRef:fe(e,"menuProps"),doSelect:g,doUpdateShow:b}),vt(o,D=>{!e.animated&&!D&&y()});function g(D,E){const{onSelect:K}=e;K&&ae(K,D,E)}function b(D){const{"onUpdate:show":E,onUpdateShow:K}=e;E&&ae(E,D),K&&ae(K,D),t.value=D}function y(){a.value=null,s.value=null,l.value=null}function x(){b(!1)}function T(){I("left")}function $(){I("right")}function R(){I("up")}function w(){I("down")}function S(){const D=A();D!=null&&D.isLeaf&&o.value&&(g(D.key,D.rawNode),b(!1))}function A(){var D;const{value:E}=r,{value:K}=d;return!E||K===null?null:(D=E.getNode(K))!==null&&D!==void 0?D:null}function I(D){const{value:E}=d,{value:{getFirstAvailableNode:K}}=r;let N=null;if(E===null){const oe=K();oe!==null&&(N=oe.key)}else{const oe=A();if(oe){let q;switch(D){case"down":q=oe.getNext();break;case"up":q=oe.getPrev();break;case"right":q=oe.getChild();break;case"left":q=oe.getParent();break}q&&(N=q.key)}}N!==null&&(a.value=null,s.value=N)}const M=C(()=>{const{size:D,inverted:E}=e,{common:{cubicBezierEaseInOut:K},self:N}=h.value,{padding:oe,dividerColor:q,borderRadius:re,optionOpacityDisabled:me,[le("optionIconSuffixWidth",D)]:ue,[le("optionSuffixWidth",D)]:W,[le("optionIconPrefixWidth",D)]:H,[le("optionPrefixWidth",D)]:F,[le("fontSize",D)]:j,[le("optionHeight",D)]:J,[le("optionIconSize",D)]:se}=N,be={"--n-bezier":K,"--n-font-size":j,"--n-padding":oe,"--n-border-radius":re,"--n-option-height":J,"--n-option-prefix-width":F,"--n-option-icon-prefix-width":H,"--n-option-suffix-width":W,"--n-option-icon-suffix-width":ue,"--n-option-icon-size":se,"--n-divider-color":q,"--n-option-opacity-disabled":me};return E?(be["--n-color"]=N.colorInverted,be["--n-option-color-hover"]=N.optionColorHoverInverted,be["--n-option-color-active"]=N.optionColorActiveInverted,be["--n-option-text-color"]=N.optionTextColorInverted,be["--n-option-text-color-hover"]=N.optionTextColorHoverInverted,be["--n-option-text-color-active"]=N.optionTextColorActiveInverted,be["--n-option-text-color-child-active"]=N.optionTextColorChildActiveInverted,be["--n-prefix-color"]=N.prefixColorInverted,be["--n-suffix-color"]=N.suffixColorInverted,be["--n-group-header-text-color"]=N.groupHeaderTextColorInverted):(be["--n-color"]=N.color,be["--n-option-color-hover"]=N.optionColorHover,be["--n-option-color-active"]=N.optionColorActive,be["--n-option-text-color"]=N.optionTextColor,be["--n-option-text-color-hover"]=N.optionTextColorHover,be["--n-option-text-color-active"]=N.optionTextColorActive,be["--n-option-text-color-child-active"]=N.optionTextColorChildActive,be["--n-prefix-color"]=N.prefixColor,be["--n-suffix-color"]=N.suffixColor,be["--n-group-header-text-color"]=N.groupHeaderTextColor),be}),V=p?it("dropdown",C(()=>`${e.size[0]}${e.inverted?"i":""}`),M,e):void 0;return{mergedClsPrefix:v,mergedTheme:h,tmNodes:n,mergedShow:o,handleAfterLeave:()=>{e.animated&&y()},doUpdateShow:b,cssVars:p?void 0:M,themeClass:V==null?void 0:V.themeClass,onRender:V==null?void 0:V.onRender}},render(){const e=(r,n,a,s,l)=>{var d;const{mergedClsPrefix:c,menuProps:u}=this;(d=this.onRender)===null||d===void 0||d.call(this);const f=(u==null?void 0:u(void 0,this.tmNodes.map(p=>p.rawNode)))||{},v={ref:ds(n),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...a,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:s,onMouseleave:l};return i(Ld,ao(this.$attrs,v,f))},{mergedTheme:t}=this,o={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return i(Rn,Object.assign({},po(this.$props,lg),o),{trigger:()=>{var r,n;return(n=(r=this.$slots).default)===null||n===void 0?void 0:n.call(r)}})}}),jd="_n_all__",Vd="_n_none__";function dg(e,t,o,r){return e?n=>{for(const a of e)switch(n){case jd:o(!0);return;case Vd:r(!0);return;default:if(typeof a=="object"&&a.key===n){a.onSelect(t.value);return}}}:()=>{}}function cg(e,t){return e?e.map(o=>{switch(o){case"all":return{label:t.checkTableAll,key:jd};case"none":return{label:t.uncheckTableAll,key:Vd};default:return o}}):[]}const ug=ie({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:o,checkOptionsRef:r,rawPaginatedDataRef:n,doCheckAll:a,doUncheckAll:s}=Ae(Oo),l=C(()=>dg(r.value,n,a,s)),d=C(()=>cg(r.value,o.value));return()=>{var c,u,f,v;const{clsPrefix:p}=e;return i(Nd,{theme:(u=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||u===void 0?void 0:u.Dropdown,themeOverrides:(v=(f=t.themeOverrides)===null||f===void 0?void 0:f.peers)===null||v===void 0?void 0:v.Dropdown,options:d.value,onSelect:l.value},{default:()=>i(kt,{clsPrefix:p,class:`${p}-data-table-check-extra`},{default:()=>i(Ss,null)})})}}});function Si(e){return typeof e.title=="function"?e.title(e):e.title}const fg=ie({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},width:String},render(){const{clsPrefix:e,id:t,cols:o,width:r}=this;return i("table",{style:{tableLayout:"fixed",width:r},class:`${e}-data-table-table`},i("colgroup",null,o.map(n=>i("col",{key:n.key,style:n.style}))),i("thead",{"data-n-id":t,class:`${e}-data-table-thead`},this.$slots))}}),Wd=ie({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:o,fixedColumnRightMapRef:r,mergedCurrentPageRef:n,allRowsCheckedRef:a,someRowsCheckedRef:s,rowsRef:l,colsRef:d,mergedThemeRef:c,checkOptionsRef:u,mergedSortStateRef:f,componentId:v,mergedTableLayoutRef:p,headerCheckboxDisabledRef:h,virtualScrollHeaderRef:g,headerHeightRef:b,onUnstableColumnResize:y,doUpdateResizableWidth:x,handleTableHeaderScroll:T,deriveNextSorter:$,doUncheckAll:R,doCheckAll:w}=Ae(Oo),S=B(),A=B({});function I(N){const oe=A.value[N];return oe==null?void 0:oe.getBoundingClientRect().width}function M(){a.value?R():w()}function V(N,oe){if(Xt(N,"dataTableFilter")||Xt(N,"dataTableResizable")||!wi(oe))return;const q=f.value.find(me=>me.columnKey===oe.key)||null,re=Np(oe,q);$(re)}const D=new Map;function E(N){D.set(N.key,I(N.key))}function K(N,oe){const q=D.get(N.key);if(q===void 0)return;const re=q+oe,me=Hp(re,N.minWidth,N.maxWidth);y(re,me,N,I),x(N,me)}return{cellElsRef:A,componentId:v,mergedSortState:f,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:o,fixedColumnRightMap:r,currentPage:n,allRowsChecked:a,someRowsChecked:s,rows:l,cols:d,mergedTheme:c,checkOptions:u,mergedTableLayout:p,headerCheckboxDisabled:h,headerHeight:b,virtualScrollHeader:g,virtualListRef:S,handleCheckboxUpdateChecked:M,handleColHeaderClick:V,handleTableHeaderScroll:T,handleColumnResizeStart:E,handleColumnResize:K}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:o,fixedColumnRightMap:r,currentPage:n,allRowsChecked:a,someRowsChecked:s,rows:l,cols:d,mergedTheme:c,checkOptions:u,componentId:f,discrete:v,mergedTableLayout:p,headerCheckboxDisabled:h,mergedSortState:g,virtualScrollHeader:b,handleColHeaderClick:y,handleCheckboxUpdateChecked:x,handleColumnResizeStart:T,handleColumnResize:$}=this,R=(I,M,V)=>I.map(({column:D,colIndex:E,colSpan:K,rowSpan:N,isLast:oe})=>{var q,re;const me=$o(D),{ellipsis:ue}=D,W=()=>D.type==="selection"?D.multiple!==!1?i(Wt,null,i(ri,{key:n,privateInsideTable:!0,checked:a,indeterminate:s,disabled:h,onUpdateChecked:x}),u?i(ug,{clsPrefix:t}):null):null:i(Wt,null,i("div",{class:`${t}-data-table-th__title-wrapper`},i("div",{class:`${t}-data-table-th__title`},ue===!0||ue&&!ue.tooltip?i("div",{class:`${t}-data-table-th__ellipsis`},Si(D)):ue&&typeof ue=="object"?i(Ba,Object.assign({},ue,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Si(D)}):Si(D)),wi(D)?i(Tp,{column:D}):null),Il(D)?i(qp,{column:D,options:D.filterOptions}):null,Dd(D)?i(Gp,{onResizeStart:()=>{T(D)},onResize:J=>{$(D,J)}}):null),H=me in o,F=me in r,j=M&&!D.fixed?"div":"th";return i(j,{ref:J=>e[me]=J,key:me,style:[M&&!D.fixed?{position:"absolute",left:Et(M(E)),top:0,bottom:0}:{left:Et((q=o[me])===null||q===void 0?void 0:q.start),right:Et((re=r[me])===null||re===void 0?void 0:re.start)},{width:Et(D.width),textAlign:D.titleAlign||D.align,height:V}],colspan:K,rowspan:N,"data-col-key":me,class:[`${t}-data-table-th`,(H||F)&&`${t}-data-table-th--fixed-${H?"left":"right"}`,{[`${t}-data-table-th--sorting`]:Md(D,g),[`${t}-data-table-th--filterable`]:Il(D),[`${t}-data-table-th--sortable`]:wi(D),[`${t}-data-table-th--selection`]:D.type==="selection",[`${t}-data-table-th--last`]:oe},D.className],onClick:D.type!=="selection"&&D.type!=="expand"&&!("children"in D)?J=>{y(J,D)}:void 0},W())});if(b){const{headerHeight:I}=this;let M=0,V=0;return d.forEach(D=>{D.column.fixed==="left"?M++:D.column.fixed==="right"&&V++}),i(Sr,{ref:"virtualListRef",class:`${t}-data-table-base-table-header`,style:{height:Et(I)},onScroll:this.handleTableHeaderScroll,columns:d,itemSize:I,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:fg,visibleItemsProps:{clsPrefix:t,id:f,cols:d,width:_t(this.scrollX)},renderItemWithCols:({startColIndex:D,endColIndex:E,getLeft:K})=>{const N=d.map((q,re)=>({column:q.column,isLast:re===d.length-1,colIndex:q.index,colSpan:1,rowSpan:1})).filter(({column:q},re)=>!!(D<=re&&re<=E||q.fixed)),oe=R(N,K,Et(I));return oe.splice(M,0,i("th",{colspan:d.length-M-V,style:{pointerEvents:"none",visibility:"hidden",height:0}})),i("tr",{style:{position:"relative"}},oe)}},{default:({renderedItemWithCols:D})=>D})}const w=i("thead",{class:`${t}-data-table-thead`,"data-n-id":f},l.map(I=>i("tr",{class:`${t}-data-table-tr`},R(I,null,void 0))));if(!v)return w;const{handleTableHeaderScroll:S,scrollX:A}=this;return i("div",{class:`${t}-data-table-base-table-header`,onScroll:S},i("table",{class:`${t}-data-table-table`,style:{minWidth:_t(A),tableLayout:p}},i("colgroup",null,d.map(I=>i("col",{key:I.key,style:I.style}))),w))}}),hg=ie({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:o,row:r,renderCell:n}=this;let a;const{render:s,key:l,ellipsis:d}=o;if(s&&!t?a=s(r,this.index):t?a=(e=r[l])===null||e===void 0?void 0:e.value:a=n?n(Gn(r,l),r,o):Gn(r,l),d)if(typeof d=="object"){const{mergedTheme:c}=this;return o.ellipsisComponent==="performant-ellipsis"?i(zp,Object.assign({},d,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>a}):i(Ba,Object.assign({},d,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>a})}else return i("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},a);return a}}),Dl=ie({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function},rowData:{type:Object,required:!0}},render(){const{clsPrefix:e}=this;return i("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},i(cr,null,{default:()=>this.loading?i(Xo,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):i(kt,{clsPrefix:e,key:"base-icon"},{default:()=>i(Ca,null)})}))}}),vg=ie({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:o}=Ae(Oo);return()=>{const{rowKey:r}=e;return i(ri,{privateInsideTable:!0,disabled:e.disabled,indeterminate:o.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),pg=ie({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:o}=Ae(Oo);return()=>{const{rowKey:r}=e;return i(Id,{name:o,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}});function gg(e,t){const o=[];function r(n,a){n.forEach(s=>{s.children&&t.has(s.key)?(o.push({tmNode:s,striped:!1,key:s.key,index:a}),r(s.children,a)):o.push({key:s.key,tmNode:s,striped:!1,index:a})})}return e.forEach(n=>{o.push(n);const{children:a}=n.tmNode;a&&t.has(n.key)&&r(a,n.index)}),o}const mg=ie({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:o,onMouseenter:r,onMouseleave:n}=this;return i("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:n},i("colgroup",null,o.map(a=>i("col",{key:a.key,style:a.style}))),i("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),bg=ie({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:o,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:n,mergedThemeRef:a,scrollXRef:s,colsRef:l,paginatedDataRef:d,rawPaginatedDataRef:c,fixedColumnLeftMapRef:u,fixedColumnRightMapRef:f,mergedCurrentPageRef:v,rowClassNameRef:p,leftActiveFixedColKeyRef:h,leftActiveFixedChildrenColKeysRef:g,rightActiveFixedColKeyRef:b,rightActiveFixedChildrenColKeysRef:y,renderExpandRef:x,hoverKeyRef:T,summaryRef:$,mergedSortStateRef:R,virtualScrollRef:w,virtualScrollXRef:S,heightForRowRef:A,minRowHeightRef:I,componentId:M,mergedTableLayoutRef:V,childTriggerColIndexRef:D,indentRef:E,rowPropsRef:K,maxHeightRef:N,stripedRef:oe,loadingRef:q,onLoadRef:re,loadingKeySetRef:me,expandableRef:ue,stickyExpandedRowsRef:W,renderExpandIconRef:H,summaryPlacementRef:F,treeMateRef:j,scrollbarPropsRef:J,setHeaderScrollLeft:se,doUpdateExpandedRowKeys:be,handleTableBodyScroll:Ie,doCheck:_,doUncheck:Pe,renderCell:Me}=Ae(Oo),Ee=Ae(Ro),Ge=B(null),Ye=B(null),st=B(null),ot=tt(()=>d.value.length===0),xe=tt(()=>e.showHeader||!ot.value),te=tt(()=>e.showHeader||ot.value);let ce="";const G=C(()=>new Set(r.value));function Q(De){var Xe;return(Xe=j.value.getNode(De))===null||Xe===void 0?void 0:Xe.rawNode}function pe(De,Xe,O){const Y=Q(De.key);if(!Y){go("data-table",`fail to get row data with key ${De.key}`);return}if(O){const ve=d.value.findIndex(Fe=>Fe.key===ce);if(ve!==-1){const Fe=d.value.findIndex(Te=>Te.key===De.key),Be=Math.min(ve,Fe),U=Math.max(ve,Fe),ge=[];d.value.slice(Be,U+1).forEach(Te=>{Te.disabled||ge.push(Te.key)}),Xe?_(ge,!1,Y):Pe(ge,Y),ce=De.key;return}}Xe?_(De.key,!1,Y):Pe(De.key,Y),ce=De.key}function Ce(De){const Xe=Q(De.key);if(!Xe){go("data-table",`fail to get row data with key ${De.key}`);return}_(De.key,!0,Xe)}function de(){if(!xe.value){const{value:Xe}=st;return Xe||null}if(w.value)return Ke();const{value:De}=Ge;return De?De.containerRef:null}function L(De,Xe){var O;if(me.value.has(De))return;const{value:Y}=r,ve=Y.indexOf(De),Fe=Array.from(Y);~ve?(Fe.splice(ve,1),be(Fe)):Xe&&!Xe.isLeaf&&!Xe.shallowLoaded?(me.value.add(De),(O=re.value)===null||O===void 0||O.call(re,Xe.rawNode).then(()=>{const{value:Be}=r,U=Array.from(Be);~U.indexOf(De)||U.push(De),be(U)}).finally(()=>{me.value.delete(De)})):(Fe.push(De),be(Fe))}function we(){T.value=null}function Ke(){const{value:De}=Ye;return(De==null?void 0:De.listElRef)||null}function Ct(){const{value:De}=Ye;return(De==null?void 0:De.itemsElRef)||null}function Tt(De){var Xe;Ie(De),(Xe=Ge.value)===null||Xe===void 0||Xe.sync()}function ht(De){var Xe;const{onResize:O}=e;O&&O(De),(Xe=Ge.value)===null||Xe===void 0||Xe.sync()}const bt={getScrollContainer:de,scrollTo(De,Xe){var O,Y;w.value?(O=Ye.value)===null||O===void 0||O.scrollTo(De,Xe):(Y=Ge.value)===null||Y===void 0||Y.scrollTo(De,Xe)}},yt=k([({props:De})=>{const Xe=Y=>Y===null?null:k(`[data-n-id="${De.componentId}"] [data-col-key="${Y}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),O=Y=>Y===null?null:k(`[data-n-id="${De.componentId}"] [data-col-key="${Y}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return k([Xe(De.leftActiveFixedColKey),O(De.rightActiveFixedColKey),De.leftActiveFixedChildrenColKeys.map(Y=>Xe(Y)),De.rightActiveFixedChildrenColKeys.map(Y=>O(Y))])}]);let ct=!1;return $t(()=>{const{value:De}=h,{value:Xe}=g,{value:O}=b,{value:Y}=y;if(!ct&&De===null&&O===null)return;const ve={leftActiveFixedColKey:De,leftActiveFixedChildrenColKeys:Xe,rightActiveFixedColKey:O,rightActiveFixedChildrenColKeys:Y,componentId:M};yt.mount({id:`n-${M}`,force:!0,props:ve,anchorMetaName:Hr,parent:Ee==null?void 0:Ee.styleMountTarget}),ct=!0}),ca(()=>{yt.unmount({id:`n-${M}`,parent:Ee==null?void 0:Ee.styleMountTarget})}),Object.assign({bodyWidth:o,summaryPlacement:F,dataTableSlots:t,componentId:M,scrollbarInstRef:Ge,virtualListRef:Ye,emptyElRef:st,summary:$,mergedClsPrefix:n,mergedTheme:a,scrollX:s,cols:l,loading:q,bodyShowHeaderOnly:te,shouldDisplaySomeTablePart:xe,empty:ot,paginatedDataAndInfo:C(()=>{const{value:De}=oe;let Xe=!1;return{data:d.value.map(De?(Y,ve)=>(Y.isLeaf||(Xe=!0),{tmNode:Y,key:Y.key,striped:ve%2===1,index:ve}):(Y,ve)=>(Y.isLeaf||(Xe=!0),{tmNode:Y,key:Y.key,striped:!1,index:ve})),hasChildren:Xe}}),rawPaginatedData:c,fixedColumnLeftMap:u,fixedColumnRightMap:f,currentPage:v,rowClassName:p,renderExpand:x,mergedExpandedRowKeySet:G,hoverKey:T,mergedSortState:R,virtualScroll:w,virtualScrollX:S,heightForRow:A,minRowHeight:I,mergedTableLayout:V,childTriggerColIndex:D,indent:E,rowProps:K,maxHeight:N,loadingKeySet:me,expandable:ue,stickyExpandedRows:W,renderExpandIcon:H,scrollbarProps:J,setHeaderScrollLeft:se,handleVirtualListScroll:Tt,handleVirtualListResize:ht,handleMouseleaveTable:we,virtualListContainer:Ke,virtualListContent:Ct,handleTableBodyScroll:Ie,handleCheckboxUpdateChecked:pe,handleRadioUpdateChecked:Ce,handleUpdateExpanded:L,renderCell:Me},bt)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:o,virtualScroll:r,maxHeight:n,mergedTableLayout:a,flexHeight:s,loadingKeySet:l,onResize:d,setHeaderScrollLeft:c}=this,u=t!==void 0||n!==void 0||s,f=!u&&a==="auto",v=t!==void 0||f,p={minWidth:_t(t)||"100%"};t&&(p.width="100%");const h=i(Lt,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:u||f,class:`${o}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:p,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:v,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:d}),{default:()=>{const g={},b={},{cols:y,paginatedDataAndInfo:x,mergedTheme:T,fixedColumnLeftMap:$,fixedColumnRightMap:R,currentPage:w,rowClassName:S,mergedSortState:A,mergedExpandedRowKeySet:I,stickyExpandedRows:M,componentId:V,childTriggerColIndex:D,expandable:E,rowProps:K,handleMouseleaveTable:N,renderExpand:oe,summary:q,handleCheckboxUpdateChecked:re,handleRadioUpdateChecked:me,handleUpdateExpanded:ue,heightForRow:W,minRowHeight:H,virtualScrollX:F}=this,{length:j}=y;let J;const{data:se,hasChildren:be}=x,Ie=be?gg(se,I):se;if(q){const ce=q(this.rawPaginatedData);if(Array.isArray(ce)){const G=ce.map((Q,pe)=>({isSummaryRow:!0,key:`__n_summary__${pe}`,tmNode:{rawNode:Q,disabled:!0},index:-1}));J=this.summaryPlacement==="top"?[...G,...Ie]:[...Ie,...G]}else{const G={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:ce,disabled:!0},index:-1};J=this.summaryPlacement==="top"?[G,...Ie]:[...Ie,G]}}else J=Ie;const _=be?{width:Et(this.indent)}:void 0,Pe=[];J.forEach(ce=>{oe&&I.has(ce.key)&&(!E||E(ce.tmNode.rawNode))?Pe.push(ce,{isExpandedRow:!0,key:`${ce.key}-expand`,tmNode:ce.tmNode,index:ce.index}):Pe.push(ce)});const{length:Me}=Pe,Ee={};se.forEach(({tmNode:ce},G)=>{Ee[G]=ce.key});const Ge=M?this.bodyWidth:null,Ye=Ge===null?void 0:`${Ge}px`,st=this.virtualScrollX?"div":"td";let ot=0,xe=0;F&&y.forEach(ce=>{ce.column.fixed==="left"?ot++:ce.column.fixed==="right"&&xe++});const te=({rowInfo:ce,displayedRowIndex:G,isVirtual:Q,isVirtualX:pe,startColIndex:Ce,endColIndex:de,getLeft:L})=>{const{index:we}=ce;if("isExpandedRow"in ce){const{tmNode:{key:Fe,rawNode:Be}}=ce;return i("tr",{class:`${o}-data-table-tr ${o}-data-table-tr--expanded`,key:`${Fe}__expand`},i("td",{class:[`${o}-data-table-td`,`${o}-data-table-td--last-col`,G+1===Me&&`${o}-data-table-td--last-row`],colspan:j},M?i("div",{class:`${o}-data-table-expand`,style:{width:Ye}},oe(Be,we)):oe(Be,we)))}const Ke="isSummaryRow"in ce,Ct=!Ke&&ce.striped,{tmNode:Tt,key:ht}=ce,{rawNode:bt}=Tt,yt=I.has(ht),ct=K?K(bt,we):void 0,De=typeof S=="string"?S:Lp(bt,we,S),Xe=pe?y.filter((Fe,Be)=>!!(Ce<=Be&&Be<=de||Fe.column.fixed)):y,O=pe?Et((W==null?void 0:W(bt,we))||H):void 0,Y=Xe.map(Fe=>{var Be,U,ge,Te,je;const dt=Fe.index;if(G in g){const Oe=g[G],Le=Oe.indexOf(dt);if(~Le)return Oe.splice(Le,1),null}const{column:et}=Fe,ne=$o(Fe),{rowSpan:$e,colSpan:He}=et,Qe=Ke?((Be=ce.tmNode.rawNode[ne])===null||Be===void 0?void 0:Be.colSpan)||1:He?He(bt,we):1,Pt=Ke?((U=ce.tmNode.rawNode[ne])===null||U===void 0?void 0:U.rowSpan)||1:$e?$e(bt,we):1,Ft=dt+Qe===j,xt=G+Pt===Me,Z=Pt>1;if(Z&&(b[G]={[dt]:[]}),Qe>1||Z)for(let Oe=G;Oe{ue(ht,ce.tmNode)}})]:null,et.type==="selection"?Ke?null:et.multiple===!1?i(pg,{key:w,rowKey:ht,disabled:ce.tmNode.disabled,onUpdateChecked:()=>{me(ce.tmNode)}}):i(vg,{key:w,rowKey:ht,disabled:ce.tmNode.disabled,onUpdateChecked:(Oe,Le)=>{re(ce.tmNode,Oe,Le.shiftKey)}}):et.type==="expand"?Ke?null:!et.expandable||!((je=et.expandable)===null||je===void 0)&&je.call(et,bt)?i(Dl,{clsPrefix:o,rowData:bt,expanded:yt,renderExpandIcon:this.renderExpandIcon,onClick:()=>{ue(ht,null)}}):null:i(hg,{clsPrefix:o,index:we,row:bt,column:et,isSummary:Ke,mergedTheme:T,renderCell:this.renderCell}))});return pe&&ot&&xe&&Y.splice(ot,0,i("td",{colspan:y.length-ot-xe,style:{pointerEvents:"none",visibility:"hidden",height:0}})),i("tr",Object.assign({},ct,{onMouseenter:Fe=>{var Be;this.hoverKey=ht,(Be=ct==null?void 0:ct.onMouseenter)===null||Be===void 0||Be.call(ct,Fe)},key:ht,class:[`${o}-data-table-tr`,Ke&&`${o}-data-table-tr--summary`,Ct&&`${o}-data-table-tr--striped`,yt&&`${o}-data-table-tr--expanded`,De,ct==null?void 0:ct.class],style:[ct==null?void 0:ct.style,pe&&{height:O}]}),Y)};return r?i(Sr,{ref:"virtualListRef",items:Pe,itemSize:this.minRowHeight,visibleItemsTag:mg,visibleItemsProps:{clsPrefix:o,id:V,cols:y,onMouseleave:N},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:p,itemResizable:!F,columns:y,renderItemWithCols:F?({itemIndex:ce,item:G,startColIndex:Q,endColIndex:pe,getLeft:Ce})=>te({displayedRowIndex:ce,isVirtual:!0,isVirtualX:!0,rowInfo:G,startColIndex:Q,endColIndex:pe,getLeft:Ce}):void 0},{default:({item:ce,index:G,renderedItemWithCols:Q})=>Q||te({rowInfo:ce,displayedRowIndex:G,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft(pe){return 0}})}):i("table",{class:`${o}-data-table-table`,onMouseleave:N,style:{tableLayout:this.mergedTableLayout}},i("colgroup",null,y.map(ce=>i("col",{key:ce.key,style:ce.style}))),this.showHeader?i(Wd,{discrete:!1}):null,this.empty?null:i("tbody",{"data-n-id":V,class:`${o}-data-table-tbody`},Pe.map((ce,G)=>te({rowInfo:ce,displayedRowIndex:G,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft(Q){return-1}}))))}});if(this.empty){const g=()=>i("div",{class:[`${o}-data-table-empty`,this.loading&&`${o}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},ft(this.dataTableSlots.empty,()=>[i(Zn,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?i(Wt,null,h,g()):i(Mo,{onResize:this.onResize},{default:g})}return h}}),xg=ie({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:o,bodyWidthRef:r,maxHeightRef:n,minHeightRef:a,flexHeightRef:s,virtualScrollHeaderRef:l,syncScrollState:d}=Ae(Oo),c=B(null),u=B(null),f=B(null),v=B(!(o.value.length||t.value.length)),p=C(()=>({maxHeight:_t(n.value),minHeight:_t(a.value)}));function h(x){r.value=x.contentRect.width,d(),v.value||(v.value=!0)}function g(){var x;const{value:T}=c;return T?l.value?((x=T.virtualListRef)===null||x===void 0?void 0:x.listElRef)||null:T.$el:null}function b(){const{value:x}=u;return x?x.getScrollContainer():null}const y={getBodyElement:b,getHeaderElement:g,scrollTo(x,T){var $;($=u.value)===null||$===void 0||$.scrollTo(x,T)}};return $t(()=>{const{value:x}=f;if(!x)return;const T=`${e.value}-data-table-base-table--transition-disabled`;v.value?setTimeout(()=>{x.classList.remove(T)},0):x.classList.add(T)}),Object.assign({maxHeight:n,mergedClsPrefix:e,selfElRef:f,headerInstRef:c,bodyInstRef:u,bodyStyle:p,flexHeight:s,handleBodyResize:h},y)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:o}=this,r=t===void 0&&!o;return i("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:i(Wd,{ref:"headerInstRef"}),i(bg,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:o,onResize:this.handleBodyResize}))}});function Cg(e,t){const{paginatedDataRef:o,treeMateRef:r,selectionColumnRef:n}=t,a=B(e.defaultCheckedRowKeys),s=C(()=>{var R;const{checkedRowKeys:w}=e,S=w===void 0?a.value:w;return((R=n.value)===null||R===void 0?void 0:R.multiple)===!1?{checkedKeys:S.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(S,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=C(()=>s.value.checkedKeys),d=C(()=>s.value.indeterminateKeys),c=C(()=>new Set(l.value)),u=C(()=>new Set(d.value)),f=C(()=>{const{value:R}=c;return o.value.reduce((w,S)=>{const{key:A,disabled:I}=S;return w+(!I&&R.has(A)?1:0)},0)}),v=C(()=>o.value.filter(R=>R.disabled).length),p=C(()=>{const{length:R}=o.value,{value:w}=u;return f.value>0&&f.valuew.has(S.key))}),h=C(()=>{const{length:R}=o.value;return f.value!==0&&f.value===R-v.value}),g=C(()=>o.value.length===0);function b(R,w,S){const{"onUpdate:checkedRowKeys":A,onUpdateCheckedRowKeys:I,onCheckedRowKeysChange:M}=e,V=[],{value:{getNode:D}}=r;R.forEach(E=>{var K;const N=(K=D(E))===null||K===void 0?void 0:K.rawNode;V.push(N)}),A&&ae(A,R,V,{row:w,action:S}),I&&ae(I,R,V,{row:w,action:S}),M&&ae(M,R,V,{row:w,action:S}),a.value=R}function y(R,w=!1,S){if(!e.loading){if(w){b(Array.isArray(R)?R.slice(0,1):[R],S,"check");return}b(r.value.check(R,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,S,"check")}}function x(R,w){e.loading||b(r.value.uncheck(R,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,w,"uncheck")}function T(R=!1){const{value:w}=n;if(!w||e.loading)return;const S=[];(R?r.value.treeNodes:o.value).forEach(A=>{A.disabled||S.push(A.key)}),b(r.value.check(S,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function $(R=!1){const{value:w}=n;if(!w||e.loading)return;const S=[];(R?r.value.treeNodes:o.value).forEach(A=>{A.disabled||S.push(A.key)}),b(r.value.uncheck(S,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:u,someRowsCheckedRef:p,allRowsCheckedRef:h,headerCheckboxDisabledRef:g,doUpdateCheckedRowKeys:b,doCheckAll:T,doUncheckAll:$,doCheck:y,doUncheck:x}}function Dn(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function yg(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?wg(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function wg(e){return(t,o)=>{const r=t[e],n=o[e];return r==null?n==null?0:-1:n==null?1:typeof r=="number"&&typeof n=="number"?r-n:typeof r=="string"&&typeof n=="string"?r.localeCompare(n):0}}function Sg(e,{dataRelatedColsRef:t,filteredDataRef:o}){const r=[];t.value.forEach(p=>{var h;p.sorter!==void 0&&v(r,{columnKey:p.key,sorter:p.sorter,order:(h=p.defaultSortOrder)!==null&&h!==void 0?h:!1})});const n=B(r),a=C(()=>{const p=t.value.filter(b=>b.type!=="selection"&&b.sorter!==void 0&&(b.sortOrder==="ascend"||b.sortOrder==="descend"||b.sortOrder===!1)),h=p.filter(b=>b.sortOrder!==!1);if(h.length)return h.map(b=>({columnKey:b.key,order:b.sortOrder,sorter:b.sorter}));if(p.length)return[];const{value:g}=n;return Array.isArray(g)?g:g?[g]:[]}),s=C(()=>{const p=a.value.slice().sort((h,g)=>{const b=Dn(h.sorter)||0;return(Dn(g.sorter)||0)-b});return p.length?o.value.slice().sort((g,b)=>{let y=0;return p.some(x=>{const{columnKey:T,sorter:$,order:R}=x,w=yg($,T);return w&&R&&(y=w(g.rawNode,b.rawNode),y!==0)?(y=y*_p(R),!0):!1}),y}):o.value});function l(p){let h=a.value.slice();return p&&Dn(p.sorter)!==!1?(h=h.filter(g=>Dn(g.sorter)!==!1),v(h,p),h):p||null}function d(p){const h=l(p);c(h)}function c(p){const{"onUpdate:sorter":h,onUpdateSorter:g,onSorterChange:b}=e;h&&ae(h,p),g&&ae(g,p),b&&ae(b,p),n.value=p}function u(p,h="ascend"){if(!p)f();else{const g=t.value.find(y=>y.type!=="selection"&&y.type!=="expand"&&y.key===p);if(!(g!=null&&g.sorter))return;const b=g.sorter;d({columnKey:p,sorter:b,order:h})}}function f(){c(null)}function v(p,h){const g=p.findIndex(b=>(h==null?void 0:h.columnKey)&&b.columnKey===h.columnKey);g!==void 0&&g>=0?p[g]=h:p.push(h)}return{clearSorter:f,sort:u,sortedDataRef:s,mergedSortStateRef:a,deriveNextSorter:d}}function kg(e,{dataRelatedColsRef:t}){const o=C(()=>{const W=H=>{for(let F=0;F{const{childrenKey:W}=e;return Wo(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:H=>H[W],getDisabled:H=>{var F,j;return!!(!((j=(F=o.value)===null||F===void 0?void 0:F.disabled)===null||j===void 0)&&j.call(F,H))}})}),n=tt(()=>{const{columns:W}=e,{length:H}=W;let F=null;for(let j=0;j{const W=t.value.filter(j=>j.filterOptionValues!==void 0||j.filterOptionValue!==void 0),H={};return W.forEach(j=>{var J;j.type==="selection"||j.type==="expand"||(j.filterOptionValues===void 0?H[j.key]=(J=j.filterOptionValue)!==null&&J!==void 0?J:null:H[j.key]=j.filterOptionValues)}),Object.assign(Fl(a.value),H)}),u=C(()=>{const W=c.value,{columns:H}=e;function F(se){return(be,Ie)=>!!~String(Ie[se]).indexOf(String(be))}const{value:{treeNodes:j}}=r,J=[];return H.forEach(se=>{se.type==="selection"||se.type==="expand"||"children"in se||J.push([se.key,se])}),j?j.filter(se=>{const{rawNode:be}=se;for(const[Ie,_]of J){let Pe=W[Ie];if(Pe==null||(Array.isArray(Pe)||(Pe=[Pe]),!Pe.length))continue;const Me=_.filter==="default"?F(Ie):_.filter;if(_&&typeof Me=="function")if(_.filterMode==="and"){if(Pe.some(Ee=>!Me(Ee,be)))return!1}else{if(Pe.some(Ee=>Me(Ee,be)))continue;return!1}}return!0}):[]}),{sortedDataRef:f,deriveNextSorter:v,mergedSortStateRef:p,sort:h,clearSorter:g}=Sg(e,{dataRelatedColsRef:t,filteredDataRef:u});t.value.forEach(W=>{var H;if(W.filter){const F=W.defaultFilterOptionValues;W.filterMultiple?a.value[W.key]=F||[]:F!==void 0?a.value[W.key]=F===null?[]:F:a.value[W.key]=(H=W.defaultFilterOptionValue)!==null&&H!==void 0?H:null}});const b=C(()=>{const{pagination:W}=e;if(W!==!1)return W.page}),y=C(()=>{const{pagination:W}=e;if(W!==!1)return W.pageSize}),x=Rt(b,l),T=Rt(y,d),$=tt(()=>{const W=x.value;return e.remote?W:Math.max(1,Math.min(Math.ceil(u.value.length/T.value),W))}),R=C(()=>{const{pagination:W}=e;if(W){const{pageCount:H}=W;if(H!==void 0)return H}}),w=C(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return f.value;const W=T.value,H=($.value-1)*W;return f.value.slice(H,H+W)}),S=C(()=>w.value.map(W=>W.rawNode));function A(W){const{pagination:H}=e;if(H){const{onChange:F,"onUpdate:page":j,onUpdatePage:J}=H;F&&ae(F,W),J&&ae(J,W),j&&ae(j,W),D(W)}}function I(W){const{pagination:H}=e;if(H){const{onPageSizeChange:F,"onUpdate:pageSize":j,onUpdatePageSize:J}=H;F&&ae(F,W),J&&ae(J,W),j&&ae(j,W),E(W)}}const M=C(()=>{if(e.remote){const{pagination:W}=e;if(W){const{itemCount:H}=W;if(H!==void 0)return H}return}return u.value.length}),V=C(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":A,"onUpdate:pageSize":I,page:$.value,pageSize:T.value,pageCount:M.value===void 0?R.value:void 0,itemCount:M.value}));function D(W){const{"onUpdate:page":H,onPageChange:F,onUpdatePage:j}=e;j&&ae(j,W),H&&ae(H,W),F&&ae(F,W),l.value=W}function E(W){const{"onUpdate:pageSize":H,onPageSizeChange:F,onUpdatePageSize:j}=e;F&&ae(F,W),j&&ae(j,W),H&&ae(H,W),d.value=W}function K(W,H){const{onUpdateFilters:F,"onUpdate:filters":j,onFiltersChange:J}=e;F&&ae(F,W,H),j&&ae(j,W,H),J&&ae(J,W,H),a.value=W}function N(W,H,F,j){var J;(J=e.onUnstableColumnResize)===null||J===void 0||J.call(e,W,H,F,j)}function oe(W){D(W)}function q(){re()}function re(){me({})}function me(W){ue(W)}function ue(W){W?W&&(a.value=Fl(W)):a.value={}}return{treeMateRef:r,mergedCurrentPageRef:$,mergedPaginationRef:V,paginatedDataRef:w,rawPaginatedDataRef:S,mergedFilterStateRef:c,mergedSortStateRef:p,hoverKeyRef:B(null),selectionColumnRef:o,childTriggerColIndexRef:n,doUpdateFilters:K,deriveNextSorter:v,doUpdatePageSize:E,doUpdatePage:D,onUnstableColumnResize:N,filter:ue,filters:me,clearFilter:q,clearFilters:re,clearSorter:g,page:oe,sort:h}}function Rg(e,{mainTableInstRef:t,mergedCurrentPageRef:o,bodyWidthRef:r}){let n=0;const a=B(),s=B(null),l=B([]),d=B(null),c=B([]),u=C(()=>_t(e.scrollX)),f=C(()=>e.columns.filter(I=>I.fixed==="left")),v=C(()=>e.columns.filter(I=>I.fixed==="right")),p=C(()=>{const I={};let M=0;function V(D){D.forEach(E=>{const K={start:M,end:0};I[$o(E)]=K,"children"in E?(V(E.children),K.end=M):(M+=Tl(E)||0,K.end=M)})}return V(f.value),I}),h=C(()=>{const I={};let M=0;function V(D){for(let E=D.length-1;E>=0;--E){const K=D[E],N={start:M,end:0};I[$o(K)]=N,"children"in K?(V(K.children),N.end=M):(M+=Tl(K)||0,N.end=M)}}return V(v.value),I});function g(){var I,M;const{value:V}=f;let D=0;const{value:E}=p;let K=null;for(let N=0;N(((I=E[oe])===null||I===void 0?void 0:I.start)||0)-D)K=oe,D=((M=E[oe])===null||M===void 0?void 0:M.end)||0;else break}s.value=K}function b(){l.value=[];let I=e.columns.find(M=>$o(M)===s.value);for(;I&&"children"in I;){const M=I.children.length;if(M===0)break;const V=I.children[M-1];l.value.push($o(V)),I=V}}function y(){var I,M;const{value:V}=v,D=Number(e.scrollX),{value:E}=r;if(E===null)return;let K=0,N=null;const{value:oe}=h;for(let q=V.length-1;q>=0;--q){const re=$o(V[q]);if(Math.round(n+(((I=oe[re])===null||I===void 0?void 0:I.start)||0)+E-K)$o(M)===d.value);for(;I&&"children"in I&&I.children.length;){const M=I.children[0];c.value.push($o(M)),I=M}}function T(){const I=t.value?t.value.getHeaderElement():null,M=t.value?t.value.getBodyElement():null;return{header:I,body:M}}function $(){const{body:I}=T();I&&(I.scrollTop=0)}function R(){a.value!=="body"?Ni(S):a.value=void 0}function w(I){var M;(M=e.onScroll)===null||M===void 0||M.call(e,I),a.value!=="head"?Ni(S):a.value=void 0}function S(){const{header:I,body:M}=T();if(!M)return;const{value:V}=r;if(V!==null){if(e.maxHeight||e.flexHeight){if(!I)return;const D=n-I.scrollLeft;a.value=D!==0?"head":"body",a.value==="head"?(n=I.scrollLeft,M.scrollLeft=n):(n=M.scrollLeft,I.scrollLeft=n)}else n=M.scrollLeft;g(),b(),y(),x()}}function A(I){const{header:M}=T();M&&(M.scrollLeft=I,S())}return vt(o,()=>{$()}),{styleScrollXRef:u,fixedColumnLeftMapRef:p,fixedColumnRightMapRef:h,leftFixedColumnsRef:f,rightFixedColumnsRef:v,leftActiveFixedColKeyRef:s,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:d,rightActiveFixedChildrenColKeysRef:c,syncScrollState:S,handleTableBodyScroll:w,handleTableHeaderScroll:R,setHeaderScrollLeft:A}}function zg(){const e=B({});function t(n){return e.value[n]}function o(n,a){Dd(n)&&"key"in n&&(e.value[n.key]=a)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:o,clearResizableWidth:r}}function Pg(e,t){const o=[],r=[],n=[],a=new WeakMap;let s=-1,l=0,d=!1;function c(v,p){p>s&&(o[p]=[],s=p),v.forEach((h,g)=>{if("children"in h)c(h.children,p+1);else{const b="key"in h?h.key:void 0;r.push({key:$o(h),style:Ep(h,b!==void 0?_t(t(b)):void 0),column:h,index:g,width:h.width===void 0?128:Number(h.width)}),l+=1,d||(d=!!h.ellipsis),n.push(h)}})}c(e,0);let u=0;function f(v,p){let h=0;v.forEach(g=>{var b;if("children"in g){const y=u,x={column:g,colIndex:u,colSpan:0,rowSpan:1,isLast:!1};f(g.children,p+1),g.children.forEach(T=>{var $,R;x.colSpan+=(R=($=a.get(T))===null||$===void 0?void 0:$.colSpan)!==null&&R!==void 0?R:0}),y+x.colSpan===l&&(x.isLast=!0),a.set(g,x),o[p].push(x)}else{if(u1&&(h=u+y);const x=u+y===l,T={column:g,colSpan:y,colIndex:u,rowSpan:s-p+1,isLast:x};a.set(g,T),o[p].push(T),u+=1}})}return f(e,0),{hasEllipsis:d,rows:o,cols:r,dataRelatedCols:n}}function $g(e,t){const o=C(()=>Pg(e.columns,t));return{rowsRef:C(()=>o.value.rows),colsRef:C(()=>o.value.cols),hasEllipsisRef:C(()=>o.value.hasEllipsis),dataRelatedColsRef:C(()=>o.value.dataRelatedCols)}}function Tg(e,t){const o=tt(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),r=tt(()=>{let c;for(const u of e.columns)if(u.type==="expand"){c=u.expandable;break}return c}),n=B(e.defaultExpandAll?o!=null&&o.value?(()=>{const c=[];return t.value.treeNodes.forEach(u=>{var f;!((f=r.value)===null||f===void 0)&&f.call(r,u.rawNode)&&c.push(u.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),a=fe(e,"expandedRowKeys"),s=fe(e,"stickyExpandedRows"),l=Rt(a,n);function d(c){const{onUpdateExpandedRowKeys:u,"onUpdate:expandedRowKeys":f}=e;u&&ae(u,c),f&&ae(f,c),n.value=c}return{stickyExpandedRowsRef:s,mergedExpandedRowKeysRef:l,renderExpandRef:o,expandableRef:r,doUpdateExpandedRowKeys:d}}const Ml=Ig(),Fg=k([m("data-table",` + width: 100%; + font-size: var(--n-font-size); + display: flex; + flex-direction: column; + position: relative; + --n-merged-th-color: var(--n-th-color); + --n-merged-td-color: var(--n-td-color); + --n-merged-border-color: var(--n-border-color); + --n-merged-th-color-sorting: var(--n-th-color-sorting); + --n-merged-td-color-hover: var(--n-td-color-hover); + --n-merged-td-color-sorting: var(--n-td-color-sorting); + --n-merged-td-color-striped: var(--n-td-color-striped); + `,[m("data-table-wrapper",` + flex-grow: 1; + display: flex; + flex-direction: column; + `),z("flex-height",[k(">",[m("data-table-wrapper",[k(">",[m("data-table-base-table",` + display: flex; + flex-direction: column; + flex-grow: 1; + `,[k(">",[m("data-table-base-table-body","flex-basis: 0;",[k("&:last-child","flex-grow: 1;")])])])])])])]),k(">",[m("data-table-loading-wrapper",` + color: var(--n-loading-color); + font-size: var(--n-loading-size); + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + justify-content: center; + `,[hr({originalTransform:"translateX(-50%) translateY(-50%)"})])]),m("data-table-expand-placeholder",` + margin-right: 8px; + display: inline-block; + width: 16px; + height: 1px; + `),m("data-table-indent",` + display: inline-block; + height: 1px; + `),m("data-table-expand-trigger",` + display: inline-flex; + margin-right: 8px; + cursor: pointer; + font-size: 16px; + vertical-align: -0.2em; + position: relative; + width: 16px; + height: 16px; + color: var(--n-td-text-color); + transition: color .3s var(--n-bezier); + `,[z("expanded",[m("icon","transform: rotate(90deg);",[uo({originalTransform:"rotate(90deg)"})]),m("base-icon","transform: rotate(90deg);",[uo({originalTransform:"rotate(90deg)"})])]),m("base-loading",` + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[uo()]),m("icon",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[uo()]),m("base-icon",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[uo()])]),m("data-table-thead",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-merged-th-color); + `),m("data-table-tr",` + position: relative; + box-sizing: border-box; + background-clip: padding-box; + transition: background-color .3s var(--n-bezier); + `,[m("data-table-expand",` + position: sticky; + left: 0; + overflow: hidden; + margin: calc(var(--n-th-padding) * -1); + padding: var(--n-th-padding); + box-sizing: border-box; + `),z("striped","background-color: var(--n-merged-td-color-striped);",[m("data-table-td","background-color: var(--n-merged-td-color-striped);")]),nt("summary",[k("&:hover","background-color: var(--n-merged-td-color-hover);",[k(">",[m("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),m("data-table-th",` + padding: var(--n-th-padding); + position: relative; + text-align: start; + box-sizing: border-box; + background-color: var(--n-merged-th-color); + border-color: var(--n-merged-border-color); + border-bottom: 1px solid var(--n-merged-border-color); + color: var(--n-th-text-color); + transition: + border-color .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + font-weight: var(--n-th-font-weight); + `,[z("filterable",` + padding-right: 36px; + `,[z("sortable",` + padding-right: calc(var(--n-th-padding) + 36px); + `)]),Ml,z("selection",` + padding: 0; + text-align: center; + line-height: 0; + z-index: 3; + `),P("title-wrapper",` + display: flex; + align-items: center; + flex-wrap: nowrap; + max-width: 100%; + `,[P("title",` + flex: 1; + min-width: 0; + `)]),P("ellipsis",` + display: inline-block; + vertical-align: bottom; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + max-width: 100%; + `),z("hover",` + background-color: var(--n-merged-th-color-hover); + `),z("sorting",` + background-color: var(--n-merged-th-color-sorting); + `),z("sortable",` + cursor: pointer; + `,[P("ellipsis",` + max-width: calc(100% - 18px); + `),k("&:hover",` + background-color: var(--n-merged-th-color-hover); + `)]),m("data-table-sorter",` + height: var(--n-sorter-size); + width: var(--n-sorter-size); + margin-left: 4px; + position: relative; + display: inline-flex; + align-items: center; + justify-content: center; + vertical-align: -0.2em; + color: var(--n-th-icon-color); + transition: color .3s var(--n-bezier); + `,[m("base-icon","transition: transform .3s var(--n-bezier)"),z("desc",[m("base-icon",` + transform: rotate(0deg); + `)]),z("asc",[m("base-icon",` + transform: rotate(-180deg); + `)]),z("asc, desc",` + color: var(--n-th-icon-color-active); + `)]),m("data-table-resize-button",` + width: var(--n-resizable-container-size); + position: absolute; + top: 0; + right: calc(var(--n-resizable-container-size) / 2); + bottom: 0; + cursor: col-resize; + user-select: none; + `,[k("&::after",` + width: var(--n-resizable-size); + height: 50%; + position: absolute; + top: 50%; + left: calc(var(--n-resizable-container-size) / 2); + bottom: 0; + background-color: var(--n-merged-border-color); + transform: translateY(-50%); + transition: background-color .3s var(--n-bezier); + z-index: 1; + content: ''; + `),z("active",[k("&::after",` + background-color: var(--n-th-icon-color-active); + `)]),k("&:hover::after",` + background-color: var(--n-th-icon-color-active); + `)]),m("data-table-filter",` + position: absolute; + z-index: auto; + right: 0; + width: 36px; + top: 0; + bottom: 0; + cursor: pointer; + display: flex; + justify-content: center; + align-items: center; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + font-size: var(--n-filter-size); + color: var(--n-th-icon-color); + `,[k("&:hover",` + background-color: var(--n-th-button-color-hover); + `),z("show",` + background-color: var(--n-th-button-color-hover); + `),z("active",` + background-color: var(--n-th-button-color-hover); + color: var(--n-th-icon-color-active); + `)])]),m("data-table-td",` + padding: var(--n-td-padding); + text-align: start; + box-sizing: border-box; + border: none; + background-color: var(--n-merged-td-color); + color: var(--n-td-text-color); + border-bottom: 1px solid var(--n-merged-border-color); + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `,[z("expand",[m("data-table-expand-trigger",` + margin-right: 0; + `)]),z("last-row",` + border-bottom: 0 solid var(--n-merged-border-color); + `,[k("&::after",` + bottom: 0 !important; + `),k("&::before",` + bottom: 0 !important; + `)]),z("summary",` + background-color: var(--n-merged-th-color); + `),z("hover",` + background-color: var(--n-merged-td-color-hover); + `),z("sorting",` + background-color: var(--n-merged-td-color-sorting); + `),P("ellipsis",` + display: inline-block; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + max-width: 100%; + vertical-align: bottom; + max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px); + `),z("selection, expand",` + text-align: center; + padding: 0; + line-height: 0; + `),Ml]),m("data-table-empty",` + box-sizing: border-box; + padding: var(--n-empty-padding); + flex-grow: 1; + flex-shrink: 0; + opacity: 1; + display: flex; + align-items: center; + justify-content: center; + transition: opacity .3s var(--n-bezier); + `,[z("hide",` + opacity: 0; + `)]),P("pagination",` + margin: var(--n-pagination-margin); + display: flex; + justify-content: flex-end; + `),m("data-table-wrapper",` + position: relative; + opacity: 1; + transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); + border-top-left-radius: var(--n-border-radius); + border-top-right-radius: var(--n-border-radius); + line-height: var(--n-line-height); + `),z("loading",[m("data-table-wrapper",` + opacity: var(--n-opacity-loading); + pointer-events: none; + `)]),z("single-column",[m("data-table-td",` + border-bottom: 0 solid var(--n-merged-border-color); + `,[k("&::after, &::before",` + bottom: 0 !important; + `)])]),nt("single-line",[m("data-table-th",` + border-right: 1px solid var(--n-merged-border-color); + `,[z("last",` + border-right: 0 solid var(--n-merged-border-color); + `)]),m("data-table-td",` + border-right: 1px solid var(--n-merged-border-color); + `,[z("last-col",` + border-right: 0 solid var(--n-merged-border-color); + `)])]),z("bordered",[m("data-table-wrapper",` + border: 1px solid var(--n-merged-border-color); + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + overflow: hidden; + `)]),m("data-table-base-table",[z("transition-disabled",[m("data-table-th",[k("&::after, &::before","transition: none;")]),m("data-table-td",[k("&::after, &::before","transition: none;")])])]),z("bottom-bordered",[m("data-table-td",[z("last-row",` + border-bottom: 1px solid var(--n-merged-border-color); + `)])]),m("data-table-table",` + font-variant-numeric: tabular-nums; + width: 100%; + word-break: break-word; + transition: background-color .3s var(--n-bezier); + border-collapse: separate; + border-spacing: 0; + background-color: var(--n-merged-td-color); + `),m("data-table-base-table-header",` + border-top-left-radius: calc(var(--n-border-radius) - 1px); + border-top-right-radius: calc(var(--n-border-radius) - 1px); + z-index: 3; + overflow: scroll; + flex-shrink: 0; + transition: border-color .3s var(--n-bezier); + scrollbar-width: none; + `,[k("&::-webkit-scrollbar",` + width: 0; + height: 0; + `)]),m("data-table-check-extra",` + transition: color .3s var(--n-bezier); + color: var(--n-th-icon-color); + position: absolute; + font-size: 14px; + right: -4px; + top: 50%; + transform: translateY(-50%); + z-index: 1; + `)]),m("data-table-filter-menu",[m("scrollbar",` + max-height: 240px; + `),P("group",` + display: flex; + flex-direction: column; + padding: 12px 12px 0 12px; + `,[m("checkbox",` + margin-bottom: 12px; + margin-right: 0; + `),m("radio",` + margin-bottom: 12px; + margin-right: 0; + `)]),P("action",` + padding: var(--n-action-padding); + display: flex; + flex-wrap: nowrap; + justify-content: space-evenly; + border-top: 1px solid var(--n-action-divider-color); + `,[m("button",[k("&:not(:last-child)",` + margin: var(--n-action-button-margin); + `),k("&:last-child",` + margin-right: 0; + `)])]),m("divider",` + margin: 0 !important; + `)]),jr(m("data-table",` + --n-merged-th-color: var(--n-th-color-modal); + --n-merged-td-color: var(--n-td-color-modal); + --n-merged-border-color: var(--n-border-color-modal); + --n-merged-th-color-hover: var(--n-th-color-hover-modal); + --n-merged-td-color-hover: var(--n-td-color-hover-modal); + --n-merged-th-color-sorting: var(--n-th-color-hover-modal); + --n-merged-td-color-sorting: var(--n-td-color-hover-modal); + --n-merged-td-color-striped: var(--n-td-color-striped-modal); + `)),pn(m("data-table",` + --n-merged-th-color: var(--n-th-color-popover); + --n-merged-td-color: var(--n-td-color-popover); + --n-merged-border-color: var(--n-border-color-popover); + --n-merged-th-color-hover: var(--n-th-color-hover-popover); + --n-merged-td-color-hover: var(--n-td-color-hover-popover); + --n-merged-th-color-sorting: var(--n-th-color-hover-popover); + --n-merged-td-color-sorting: var(--n-td-color-hover-popover); + --n-merged-td-color-striped: var(--n-td-color-striped-popover); + `))]);function Ig(){return[z("fixed-left",` + left: 0; + position: sticky; + z-index: 2; + `,[k("&::after",` + pointer-events: none; + content: ""; + width: 36px; + display: inline-block; + position: absolute; + top: 0; + bottom: -1px; + transition: box-shadow .2s var(--n-bezier); + right: -36px; + `)]),z("fixed-right",` + right: 0; + position: sticky; + z-index: 1; + `,[k("&::before",` + pointer-events: none; + content: ""; + width: 36px; + display: inline-block; + position: absolute; + top: 0; + bottom: -1px; + transition: box-shadow .2s var(--n-bezier); + left: -36px; + `)])]}const ny=ie({name:"DataTable",alias:["AdvancedTable"],props:Pp,setup(e,{slots:t}){const{mergedBorderedRef:o,mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:a}=Ze(e),s=Nt("DataTable",a,r),l=C(()=>{const{bottomBordered:O}=e;return o.value?!1:O!==void 0?O:!0}),d=Re("DataTable","-data-table",Fg,Sp,e,r),c=B(null),u=B(null),{getResizableWidth:f,clearResizableWidth:v,doUpdateResizableWidth:p}=zg(),{rowsRef:h,colsRef:g,dataRelatedColsRef:b,hasEllipsisRef:y}=$g(e,f),{treeMateRef:x,mergedCurrentPageRef:T,paginatedDataRef:$,rawPaginatedDataRef:R,selectionColumnRef:w,hoverKeyRef:S,mergedPaginationRef:A,mergedFilterStateRef:I,mergedSortStateRef:M,childTriggerColIndexRef:V,doUpdatePage:D,doUpdateFilters:E,onUnstableColumnResize:K,deriveNextSorter:N,filter:oe,filters:q,clearFilter:re,clearFilters:me,clearSorter:ue,page:W,sort:H}=kg(e,{dataRelatedColsRef:b}),F=O=>{const{fileName:Y="data.csv",keepOriginalData:ve=!1}=O||{},Fe=ve?e.data:R.value,Be=Vp(e.columns,Fe),U=new Blob([Be],{type:"text/csv;charset=utf-8"}),ge=URL.createObjectURL(U);nf(ge,Y.endsWith(".csv")?Y:`${Y}.csv`),URL.revokeObjectURL(ge)},{doCheckAll:j,doUncheckAll:J,doCheck:se,doUncheck:be,headerCheckboxDisabledRef:Ie,someRowsCheckedRef:_,allRowsCheckedRef:Pe,mergedCheckedRowKeySetRef:Me,mergedInderminateRowKeySetRef:Ee}=Cg(e,{selectionColumnRef:w,treeMateRef:x,paginatedDataRef:$}),{stickyExpandedRowsRef:Ge,mergedExpandedRowKeysRef:Ye,renderExpandRef:st,expandableRef:ot,doUpdateExpandedRowKeys:xe}=Tg(e,x),{handleTableBodyScroll:te,handleTableHeaderScroll:ce,syncScrollState:G,setHeaderScrollLeft:Q,leftActiveFixedColKeyRef:pe,leftActiveFixedChildrenColKeysRef:Ce,rightActiveFixedColKeyRef:de,rightActiveFixedChildrenColKeysRef:L,leftFixedColumnsRef:we,rightFixedColumnsRef:Ke,fixedColumnLeftMapRef:Ct,fixedColumnRightMapRef:Tt}=Rg(e,{bodyWidthRef:c,mainTableInstRef:u,mergedCurrentPageRef:T}),{localeRef:ht}=zo("DataTable"),bt=C(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||y.value?"fixed":e.tableLayout);Je(Oo,{props:e,treeMateRef:x,renderExpandIconRef:fe(e,"renderExpandIcon"),loadingKeySetRef:B(new Set),slots:t,indentRef:fe(e,"indent"),childTriggerColIndexRef:V,bodyWidthRef:c,componentId:Ko(),hoverKeyRef:S,mergedClsPrefixRef:r,mergedThemeRef:d,scrollXRef:C(()=>e.scrollX),rowsRef:h,colsRef:g,paginatedDataRef:$,leftActiveFixedColKeyRef:pe,leftActiveFixedChildrenColKeysRef:Ce,rightActiveFixedColKeyRef:de,rightActiveFixedChildrenColKeysRef:L,leftFixedColumnsRef:we,rightFixedColumnsRef:Ke,fixedColumnLeftMapRef:Ct,fixedColumnRightMapRef:Tt,mergedCurrentPageRef:T,someRowsCheckedRef:_,allRowsCheckedRef:Pe,mergedSortStateRef:M,mergedFilterStateRef:I,loadingRef:fe(e,"loading"),rowClassNameRef:fe(e,"rowClassName"),mergedCheckedRowKeySetRef:Me,mergedExpandedRowKeysRef:Ye,mergedInderminateRowKeySetRef:Ee,localeRef:ht,expandableRef:ot,stickyExpandedRowsRef:Ge,rowKeyRef:fe(e,"rowKey"),renderExpandRef:st,summaryRef:fe(e,"summary"),virtualScrollRef:fe(e,"virtualScroll"),virtualScrollXRef:fe(e,"virtualScrollX"),heightForRowRef:fe(e,"heightForRow"),minRowHeightRef:fe(e,"minRowHeight"),virtualScrollHeaderRef:fe(e,"virtualScrollHeader"),headerHeightRef:fe(e,"headerHeight"),rowPropsRef:fe(e,"rowProps"),stripedRef:fe(e,"striped"),checkOptionsRef:C(()=>{const{value:O}=w;return O==null?void 0:O.options}),rawPaginatedDataRef:R,filterMenuCssVarsRef:C(()=>{const{self:{actionDividerColor:O,actionPadding:Y,actionButtonMargin:ve}}=d.value;return{"--n-action-padding":Y,"--n-action-button-margin":ve,"--n-action-divider-color":O}}),onLoadRef:fe(e,"onLoad"),mergedTableLayoutRef:bt,maxHeightRef:fe(e,"maxHeight"),minHeightRef:fe(e,"minHeight"),flexHeightRef:fe(e,"flexHeight"),headerCheckboxDisabledRef:Ie,paginationBehaviorOnFilterRef:fe(e,"paginationBehaviorOnFilter"),summaryPlacementRef:fe(e,"summaryPlacement"),filterIconPopoverPropsRef:fe(e,"filterIconPopoverProps"),scrollbarPropsRef:fe(e,"scrollbarProps"),syncScrollState:G,doUpdatePage:D,doUpdateFilters:E,getResizableWidth:f,onUnstableColumnResize:K,clearResizableWidth:v,doUpdateResizableWidth:p,deriveNextSorter:N,doCheck:se,doUncheck:be,doCheckAll:j,doUncheckAll:J,doUpdateExpandedRowKeys:xe,handleTableHeaderScroll:ce,handleTableBodyScroll:te,setHeaderScrollLeft:Q,renderCell:fe(e,"renderCell")});const yt={filter:oe,filters:q,clearFilters:me,clearSorter:ue,page:W,sort:H,clearFilter:re,downloadCsv:F,scrollTo:(O,Y)=>{var ve;(ve=u.value)===null||ve===void 0||ve.scrollTo(O,Y)}},ct=C(()=>{const{size:O}=e,{common:{cubicBezierEaseInOut:Y},self:{borderColor:ve,tdColorHover:Fe,tdColorSorting:Be,tdColorSortingModal:U,tdColorSortingPopover:ge,thColorSorting:Te,thColorSortingModal:je,thColorSortingPopover:dt,thColor:et,thColorHover:ne,tdColor:$e,tdTextColor:He,thTextColor:Qe,thFontWeight:Pt,thButtonColorHover:Ft,thIconColor:xt,thIconColorActive:Z,filterSize:ye,borderRadius:Ue,lineHeight:X,tdColorModal:he,thColorModal:ze,borderColorModal:Oe,thColorHoverModal:Le,tdColorHoverModal:pt,borderColorPopover:It,thColorPopover:Ot,tdColorPopover:Yt,tdColorHoverPopover:eo,thColorHoverPopover:ee,paginationMargin:ke,emptyPadding:Ve,boxShadowAfter:gt,boxShadowBefore:at,sorterSize:ut,resizableContainerSize:to,resizableSize:vo,loadingColor:yo,loadingSize:Zo,opacityLoading:Lo,tdColorStriped:Kr,tdColorStripedModal:qr,tdColorStripedPopover:Gr,[le("fontSize",O)]:Yr,[le("thPadding",O)]:Xr,[le("tdPadding",O)]:Zr}}=d.value;return{"--n-font-size":Yr,"--n-th-padding":Xr,"--n-td-padding":Zr,"--n-bezier":Y,"--n-border-radius":Ue,"--n-line-height":X,"--n-border-color":ve,"--n-border-color-modal":Oe,"--n-border-color-popover":It,"--n-th-color":et,"--n-th-color-hover":ne,"--n-th-color-modal":ze,"--n-th-color-hover-modal":Le,"--n-th-color-popover":Ot,"--n-th-color-hover-popover":ee,"--n-td-color":$e,"--n-td-color-hover":Fe,"--n-td-color-modal":he,"--n-td-color-hover-modal":pt,"--n-td-color-popover":Yt,"--n-td-color-hover-popover":eo,"--n-th-text-color":Qe,"--n-td-text-color":He,"--n-th-font-weight":Pt,"--n-th-button-color-hover":Ft,"--n-th-icon-color":xt,"--n-th-icon-color-active":Z,"--n-filter-size":ye,"--n-pagination-margin":ke,"--n-empty-padding":Ve,"--n-box-shadow-before":at,"--n-box-shadow-after":gt,"--n-sorter-size":ut,"--n-resizable-container-size":to,"--n-resizable-size":vo,"--n-loading-size":Zo,"--n-loading-color":yo,"--n-opacity-loading":Lo,"--n-td-color-striped":Kr,"--n-td-color-striped-modal":qr,"--n-td-color-striped-popover":Gr,"n-td-color-sorting":Be,"n-td-color-sorting-modal":U,"n-td-color-sorting-popover":ge,"n-th-color-sorting":Te,"n-th-color-sorting-modal":je,"n-th-color-sorting-popover":dt}}),De=n?it("data-table",C(()=>e.size[0]),ct,e):void 0,Xe=C(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const O=A.value,{pageCount:Y}=O;return Y!==void 0?Y>1:O.itemCount&&O.pageSize&&O.itemCount>O.pageSize});return Object.assign({mainTableInstRef:u,mergedClsPrefix:r,rtlEnabled:s,mergedTheme:d,paginatedData:$,mergedBordered:o,mergedBottomBordered:l,mergedPagination:A,mergedShowPagination:Xe,cssVars:n?void 0:ct,themeClass:De==null?void 0:De.themeClass,onRender:De==null?void 0:De.onRender},yt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:o,$slots:r,spinProps:n}=this;return o==null||o(),i("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},i("div",{class:`${e}-data-table-wrapper`},i(xg,{ref:"mainTableInstRef"})),this.mergedShowPagination?i("div",{class:`${e}-data-table__pagination`},i(bp,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,i(Vt,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?i("div",{class:`${e}-data-table-loading-wrapper`},ft(r.loading,()=>[i(Xo,Object.assign({clsPrefix:e,strokeWidth:20},n))])):null}))}}),Bg={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function Ud(e){const{popoverColor:t,textColor2:o,primaryColor:r,hoverColor:n,dividerColor:a,opacityDisabled:s,boxShadow2:l,borderRadius:d,iconColor:c,iconColorDisabled:u}=e;return Object.assign(Object.assign({},Bg),{panelColor:t,panelBoxShadow:l,panelDividerColor:a,itemTextColor:o,itemTextColorActive:r,itemColorHover:n,itemOpacityDisabled:s,itemBorderRadius:d,borderRadius:d,iconColor:c,iconColorDisabled:u})}const Kd={name:"TimePicker",common:lt,peers:{Scrollbar:Eo,Button:pr,Input:vr},self:Ud},qd={name:"TimePicker",common:_e,peers:{Scrollbar:fo,Button:ho,Input:Po},self:Ud},Og={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function Gd(e){const{hoverColor:t,fontSize:o,textColor2:r,textColorDisabled:n,popoverColor:a,primaryColor:s,borderRadiusSmall:l,iconColor:d,iconColorDisabled:c,textColor1:u,dividerColor:f,boxShadow2:v,borderRadius:p,fontWeightStrong:h}=e;return Object.assign(Object.assign({},Og),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:r,itemTextColorDisabled:n,itemTextColorActive:a,itemTextColorCurrent:s,itemColorIncluded:Se(s,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:s,itemBorderRadius:l,panelColor:a,panelTextColor:r,arrowColor:d,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:v,panelBorderRadius:p,calendarTitleFontWeight:h,scrollItemBorderRadius:p,iconColor:d,iconColorDisabled:c})}const Dg={name:"DatePicker",common:lt,peers:{Input:vr,Button:pr,TimePicker:Kd,Scrollbar:Eo},self:Gd},Mg={name:"DatePicker",common:_e,peers:{Input:Po,Button:ho,TimePicker:qd,Scrollbar:fo},self(e){const{popoverColor:t,hoverColor:o,primaryColor:r}=e,n=Gd(e);return n.itemColorDisabled=We(t,o),n.itemColorIncluded=Se(r,{alpha:.15}),n.itemColorHover=We(t,o),n}};function Ag(e,t){const o=C(()=>{const{isTimeDisabled:u}=e,{value:f}=t;if(!(f===null||Array.isArray(f)))return u==null?void 0:u(f)}),r=C(()=>{var u;return(u=o.value)===null||u===void 0?void 0:u.isHourDisabled}),n=C(()=>{var u;return(u=o.value)===null||u===void 0?void 0:u.isMinuteDisabled}),a=C(()=>{var u;return(u=o.value)===null||u===void 0?void 0:u.isSecondDisabled}),s=C(()=>{const{type:u,isDateDisabled:f}=e,{value:v}=t;return v===null||Array.isArray(v)||!["date","datetime"].includes(u)||!f?!1:f(v,{type:"input"})}),l=C(()=>{const{type:u}=e,{value:f}=t;if(f===null||u==="datetime"||Array.isArray(f))return!1;const v=new Date(f),p=v.getHours(),h=v.getMinutes(),g=v.getMinutes();return(r.value?r.value(p):!1)||(n.value?n.value(h,p):!1)||(a.value?a.value(g,h,p):!1)}),d=C(()=>s.value||l.value);return{isValueInvalidRef:C(()=>{const{type:u}=e;return u==="date"?s.value:u==="datetime"?d.value:!1}),isDateInvalidRef:s,isTimeInvalidRef:l,isDateTimeInvalidRef:d,isHourDisabledRef:r,isMinuteDisabledRef:n,isSecondDisabledRef:a}}function _g(e,t){const o=C(()=>{const{isTimeDisabled:f}=e,{value:v}=t;return!Array.isArray(v)||!f?[void 0,void 0]:[f==null?void 0:f(v[0],"start",v),f==null?void 0:f(v[1],"end",v)]}),r={isStartHourDisabledRef:C(()=>{var f;return(f=o.value[0])===null||f===void 0?void 0:f.isHourDisabled}),isEndHourDisabledRef:C(()=>{var f;return(f=o.value[1])===null||f===void 0?void 0:f.isHourDisabled}),isStartMinuteDisabledRef:C(()=>{var f;return(f=o.value[0])===null||f===void 0?void 0:f.isMinuteDisabled}),isEndMinuteDisabledRef:C(()=>{var f;return(f=o.value[1])===null||f===void 0?void 0:f.isMinuteDisabled}),isStartSecondDisabledRef:C(()=>{var f;return(f=o.value[0])===null||f===void 0?void 0:f.isSecondDisabled}),isEndSecondDisabledRef:C(()=>{var f;return(f=o.value[1])===null||f===void 0?void 0:f.isSecondDisabled})},n=C(()=>{const{type:f,isDateDisabled:v}=e,{value:p}=t;return p===null||!Array.isArray(p)||!["daterange","datetimerange"].includes(f)||!v?!1:v(p[0],"start",p)}),a=C(()=>{const{type:f,isDateDisabled:v}=e,{value:p}=t;return p===null||!Array.isArray(p)||!["daterange","datetimerange"].includes(f)||!v?!1:v(p[1],"end",p)}),s=C(()=>{const{type:f}=e,{value:v}=t;if(v===null||!Array.isArray(v)||f!=="datetimerange")return!1;const p=er(v[0]),h=Wn(v[0]),g=Un(v[0]),{isStartHourDisabledRef:b,isStartMinuteDisabledRef:y,isStartSecondDisabledRef:x}=r;return(b.value?b.value(p):!1)||(y.value?y.value(h,p):!1)||(x.value?x.value(g,h,p):!1)}),l=C(()=>{const{type:f}=e,{value:v}=t;if(v===null||!Array.isArray(v)||f!=="datetimerange")return!1;const p=er(v[1]),h=Wn(v[1]),g=Un(v[1]),{isEndHourDisabledRef:b,isEndMinuteDisabledRef:y,isEndSecondDisabledRef:x}=r;return(b.value?b.value(p):!1)||(y.value?y.value(h,p):!1)||(x.value?x.value(g,h,p):!1)}),d=C(()=>n.value||s.value),c=C(()=>a.value||l.value),u=C(()=>d.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:n,isEndDateInvalidRef:a,isStartTimeInvalidRef:s,isEndTimeInvalidRef:l,isStartValueInvalidRef:d,isEndValueInvalidRef:c,isRangeInvalidRef:u})}const ai="n-date-picker",tn={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function ki(e){return`00${e}`.slice(-2)}function on(e,t,o){return Array.isArray(t)?(o==="am"?t.filter(r=>r<12):o==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>ki(r)):typeof t=="number"?o==="am"?e.filter(r=>{const n=Number(r);return n<12&&n%t===0}):o==="pm"?e.filter(r=>{const n=Number(r);return n>=12&&n%t===0}).map(r=>{const n=Number(r);return ki(n===12?12:n-12)}):e.filter(r=>Number(r)%t===0):o==="am"?e.filter(r=>Number(r)<12):o==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>ki(r===12?12:r-12)):e}function Mn(e,t,o){return o?typeof o=="number"?e%o===0:o.includes(e):!0}function Hg(e,t,o){const r=on(tn[t],o).map(Number);let n,a;for(let s=0;se){a=l;break}n=l}return n===void 0?(a||Go("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),a):a===void 0||a-e>e-n?n:a}function Eg(e){return er(e)<12?"am":"pm"}const Yd="n-time-picker",An=ie({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:o}=this;return this.data.map(r=>{const{label:n,disabled:a,value:s}=r,l=e===s;return i("div",{key:n,"data-active":l?"":null,class:[`${o}-time-picker-col__item`,l&&`${o}-time-picker-col__item--active`,a&&`${o}-time-picker-col__item--disabled`],onClick:t&&!a?()=>{t(s)}:void 0},n)})}}),Lg={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,clearText:String,nowText:String,confirmText:String,transitionDisabled:Boolean,onClearClick:Function,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},Ng=ie({name:"TimePickerPanel",props:Lg,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:o}=Ae(Yd),r=C(()=>{const{isHourDisabled:l,hours:d,use12Hours:c,amPmValue:u}=e;if(c){const f=u??Eg(Date.now());return on(tn.hours,d,f).map(v=>{const p=Number(v),h=f==="pm"&&p!==12?p+12:p;return{label:v,value:h,disabled:l?l(h):!1}})}else return on(tn.hours,d).map(f=>({label:f,value:Number(f),disabled:l?l(Number(f)):!1}))}),n=C(()=>{const{isMinuteDisabled:l,minutes:d}=e;return on(tn.minutes,d).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.hourValue):!1}))}),a=C(()=>{const{isSecondDisabled:l,seconds:d}=e;return on(tn.seconds,d).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.minuteValue,e.hourValue):!1}))}),s=C(()=>{const{isHourDisabled:l}=e;let d=!0,c=!0;for(let u=0;u<12;++u)if(!(l!=null&&l(u))){d=!1;break}for(let u=12;u<24;++u)if(!(l!=null&&l(u))){c=!1;break}return[{label:"AM",value:"am",disabled:d},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:o,hours:r,minutes:n,seconds:a,amPm:s,hourScrollRef:B(null),minuteScrollRef:B(null),secondScrollRef:B(null),amPmScrollRef:B(null)}},render(){var e,t,o,r;const{mergedClsPrefix:n,mergedTheme:a}=this;return i("div",{tabindex:0,class:`${n}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},i("div",{class:`${n}-time-picker-cols`},this.showHour?i("div",{class:[`${n}-time-picker-col`,this.isHourInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},i(Lt,{ref:"hourScrollRef",theme:a.peers.Scrollbar,themeOverrides:a.peerOverrides.Scrollbar},{default:()=>[i(An,{clsPrefix:n,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),i("div",{class:`${n}-time-picker-col__padding`})]})):null,this.showMinute?i("div",{class:[`${n}-time-picker-col`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${n}-time-picker-col--invalid`]},i(Lt,{ref:"minuteScrollRef",theme:a.peers.Scrollbar,themeOverrides:a.peerOverrides.Scrollbar},{default:()=>[i(An,{clsPrefix:n,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),i("div",{class:`${n}-time-picker-col__padding`})]})):null,this.showSecond?i("div",{class:[`${n}-time-picker-col`,this.isSecondInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},i(Lt,{ref:"secondScrollRef",theme:a.peers.Scrollbar,themeOverrides:a.peerOverrides.Scrollbar},{default:()=>[i(An,{clsPrefix:n,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),i("div",{class:`${n}-time-picker-col__padding`})]})):null,this.use12Hours?i("div",{class:[`${n}-time-picker-col`,this.isAmPmInvalid&&`${n}-time-picker-col--invalid`,this.transitionDisabled&&`${n}-time-picker-col--transition-disabled`]},i(Lt,{ref:"amPmScrollRef",theme:a.peers.Scrollbar,themeOverrides:a.peerOverrides.Scrollbar},{default:()=>[i(An,{clsPrefix:n,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),i("div",{class:`${n}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?i("div",{class:`${n}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?i(At,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",onClick:this.onClearClick},{default:()=>this.clearText}):null,!((o=this.actions)===null||o===void 0)&&o.includes("now")?i(At,{size:"tiny",theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?i(At,{size:"tiny",type:"primary",class:`${n}-time-picker-actions__confirm`,theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,i(fr,{onFocus:this.onFocusDetectorFocus}))}}),jg=k([m("time-picker",` + z-index: auto; + position: relative; + `,[m("time-picker-icon",` + color: var(--n-icon-color-override); + transition: color .3s var(--n-bezier); + `),z("disabled",[m("time-picker-icon",` + color: var(--n-icon-color-disabled-override); + `)])]),m("time-picker-panel",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + outline: none; + font-size: var(--n-item-font-size); + border-radius: var(--n-border-radius); + margin: 4px 0; + min-width: 104px; + overflow: hidden; + background-color: var(--n-panel-color); + box-shadow: var(--n-panel-box-shadow); + `,[hr(),m("time-picker-actions",` + padding: var(--n-panel-action-padding); + align-items: center; + display: flex; + justify-content: space-evenly; + `),m("time-picker-cols",` + height: calc(var(--n-item-height) * 6); + display: flex; + position: relative; + transition: border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-panel-divider-color); + `),m("time-picker-col",` + flex-grow: 1; + min-width: var(--n-item-width); + height: calc(var(--n-item-height) * 6); + flex-direction: column; + transition: box-shadow .3s var(--n-bezier); + `,[z("transition-disabled",[P("item","transition: none;",[k("&::before","transition: none;")])]),P("padding",` + height: calc(var(--n-item-height) * 5); + `),k("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[P("item",[k("&::before","left: 4px;")])]),P("item",` + cursor: pointer; + height: var(--n-item-height); + display: flex; + align-items: center; + justify-content: center; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + background: #0000; + text-decoration-color: #0000; + color: var(--n-item-text-color); + z-index: 0; + box-sizing: border-box; + padding-top: 4px; + position: relative; + `,[k("&::before",` + content: ""; + transition: background-color .3s var(--n-bezier); + z-index: -1; + position: absolute; + left: 0; + right: 4px; + top: 4px; + bottom: 0; + border-radius: var(--n-item-border-radius); + `),nt("disabled",[k("&:hover::before",` + background-color: var(--n-item-color-hover); + `)]),z("active",` + color: var(--n-item-text-color-active); + `,[k("&::before",` + background-color: var(--n-item-color-hover); + `)]),z("disabled",` + opacity: var(--n-item-opacity-disabled); + cursor: not-allowed; + `)]),z("invalid",[P("item",[z("active",` + text-decoration: line-through; + text-decoration-color: var(--n-item-text-color-active); + `)])])])])]);function Ri(e,t){return e===void 0?!0:Array.isArray(e)?e.every(o=>o>=0&&o<=t):e>=0&&e<=t}const Vg=Object.assign(Object.assign({},Re.props),{to:Gt.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>Ri(e,23)},minutes:{type:[Number,Array],validator:e=>Ri(e,59)},seconds:{type:[Number,Array],validator:e=>Ri(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),oa=ie({name:"TimePicker",props:Vg,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,namespaceRef:r,inlineThemeDisabled:n}=Ze(e),{localeRef:a,dateLocaleRef:s}=zo("TimePicker"),l=xo(e),{mergedSizeRef:d,mergedDisabledRef:c,mergedStatusRef:u}=l,f=Re("TimePicker","-time-picker",jg,Kd,e,o),v=ha(),p=B(null),h=B(null),g=C(()=>({locale:s.value.locale}));function b(ne){return ne===null?null:co(ne,e.valueFormat||e.format,new Date,g.value).getTime()}const{defaultValue:y,defaultFormattedValue:x}=e,T=B(x!==void 0?b(x):y),$=C(()=>{const{formattedValue:ne}=e;if(ne!==void 0)return b(ne);const{value:$e}=e;return $e!==void 0?$e:T.value}),R=C(()=>{const{timeZone:ne}=e;return ne?($e,He,Qe)=>ju($e,ne,He,Qe):($e,He,Qe)=>Bt($e,He,Qe)}),w=B("");vt(()=>e.timeZone,()=>{const ne=$.value;w.value=ne===null?"":R.value(ne,e.format,g.value)},{immediate:!0});const S=B(!1),A=fe(e,"show"),I=Rt(A,S),M=B($.value),V=B(!1),D=C(()=>a.value.clear),E=C(()=>a.value.now),K=C(()=>e.placeholder!==void 0?e.placeholder:a.value.placeholder),N=C(()=>a.value.negativeText),oe=C(()=>a.value.positiveText),q=C(()=>/H|h|K|k/.test(e.format)),re=C(()=>e.format.includes("m")),me=C(()=>e.format.includes("s")),ue=C(()=>{const{value:ne}=$;return ne===null?null:Number(R.value(ne,"HH",g.value))}),W=C(()=>{const{value:ne}=$;return ne===null?null:Number(R.value(ne,"mm",g.value))}),H=C(()=>{const{value:ne}=$;return ne===null?null:Number(R.value(ne,"ss",g.value))}),F=C(()=>{const{isHourDisabled:ne}=e;return ue.value===null?!1:Mn(ue.value,"hours",e.hours)?ne?ne(ue.value):!1:!0}),j=C(()=>{const{value:ne}=W,{value:$e}=ue;if(ne===null||$e===null)return!1;if(!Mn(ne,"minutes",e.minutes))return!0;const{isMinuteDisabled:He}=e;return He?He(ne,$e):!1}),J=C(()=>{const{value:ne}=W,{value:$e}=ue,{value:He}=H;if(He===null||ne===null||$e===null)return!1;if(!Mn(He,"seconds",e.seconds))return!0;const{isSecondDisabled:Qe}=e;return Qe?Qe(He,ne,$e):!1}),se=C(()=>F.value||j.value||J.value),be=C(()=>e.format.length+4),Ie=C(()=>{const{value:ne}=$;return ne===null?null:er(ne)<12?"am":"pm"});function _(ne,$e){const{onUpdateFormattedValue:He,"onUpdate:formattedValue":Qe}=e;He&&ae(He,ne,$e),Qe&&ae(Qe,ne,$e)}function Pe(ne){return ne===null?null:R.value(ne,e.valueFormat||e.format)}function Me(ne){const{onUpdateValue:$e,"onUpdate:value":He,onChange:Qe}=e,{nTriggerFormChange:Pt,nTriggerFormInput:Ft}=l,xt=Pe(ne);$e&&ae($e,ne,xt),He&&ae(He,ne,xt),Qe&&ae(Qe,ne,xt),_(xt,ne),T.value=ne,Pt(),Ft()}function Ee(ne){const{onFocus:$e}=e,{nTriggerFormFocus:He}=l;$e&&ae($e,ne),He()}function Ge(ne){const{onBlur:$e}=e,{nTriggerFormBlur:He}=l;$e&&ae($e,ne),He()}function Ye(){const{onConfirm:ne}=e;ne&&ae(ne,$.value,Pe($.value))}function st(ne){var $e;ne.stopPropagation(),Me(null),we(null),($e=e.onClear)===null||$e===void 0||$e.call(e)}function ot(){O({returnFocus:!0})}function xe(){Me(null),we(null),O({returnFocus:!0})}function te(ne){ne.key==="Escape"&&I.value&&dn(ne)}function ce(ne){var $e;switch(ne.key){case"Escape":I.value&&(dn(ne),O({returnFocus:!0}));break;case"Tab":v.shift&&ne.target===(($e=h.value)===null||$e===void 0?void 0:$e.$el)&&(ne.preventDefault(),O({returnFocus:!0}));break}}function G(){V.value=!0,zt(()=>{V.value=!1})}function Q(ne){c.value||Xt(ne,"clear")||I.value||De()}function pe(ne){typeof ne!="string"&&($.value===null?Me(Ne(gr(Ru(new Date),ne))):Me(Ne(gr($.value,ne))))}function Ce(ne){typeof ne!="string"&&($.value===null?Me(Ne(ci(zu(new Date),ne))):Me(Ne(ci($.value,ne))))}function de(ne){typeof ne!="string"&&($.value===null?Me(Ne(ui(aa(new Date),ne))):Me(Ne(ui($.value,ne))))}function L(ne){const{value:$e}=$;if($e===null){const He=new Date,Qe=er(He);ne==="pm"&&Qe<12?Me(Ne(gr(He,Qe+12))):ne==="am"&&Qe>=12&&Me(Ne(gr(He,Qe-12))),Me(Ne(He))}else{const He=er($e);ne==="pm"&&He<12?Me(Ne(gr($e,He+12))):ne==="am"&&He>=12&&Me(Ne(gr($e,He-12)))}}function we(ne){ne===void 0&&(ne=$.value),ne===null?w.value="":w.value=R.value(ne,e.format,g.value)}function Ke(ne){ct(ne)||Ee(ne)}function Ct(ne){var $e;if(!ct(ne))if(I.value){const He=($e=h.value)===null||$e===void 0?void 0:$e.$el;He!=null&&He.contains(ne.relatedTarget)||(we(),Ge(ne),O({returnFocus:!1}))}else we(),Ge(ne)}function Tt(){c.value||I.value||De()}function ht(){c.value||(we(),O({returnFocus:!1}))}function bt(){if(!h.value)return;const{hourScrollRef:ne,minuteScrollRef:$e,secondScrollRef:He,amPmScrollRef:Qe}=h.value;[ne,$e,He,Qe].forEach(Pt=>{var Ft;if(!Pt)return;const xt=(Ft=Pt.contentRef)===null||Ft===void 0?void 0:Ft.querySelector("[data-active]");xt&&Pt.scrollTo({top:xt.offsetTop})})}function yt(ne){S.value=ne;const{onUpdateShow:$e,"onUpdate:show":He}=e;$e&&ae($e,ne),He&&ae(He,ne)}function ct(ne){var $e,He,Qe;return!!(!((He=($e=p.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||He===void 0)&&He.contains(ne.relatedTarget)||!((Qe=h.value)===null||Qe===void 0)&&Qe.$el.contains(ne.relatedTarget))}function De(){M.value=$.value,yt(!0),zt(bt)}function Xe(ne){var $e,He;I.value&&!(!((He=($e=p.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||He===void 0)&&He.contains(Uo(ne)))&&O({returnFocus:!1})}function O({returnFocus:ne}){var $e;I.value&&(yt(!1),ne&&(($e=p.value)===null||$e===void 0||$e.focus()))}function Y(ne){if(ne===""){Me(null);return}const $e=co(ne,e.format,new Date,g.value);if(w.value=ne,Fo($e)){const{value:He}=$;if(He!==null){const Qe=Qt(He,{hours:er($e),minutes:Wn($e),seconds:Un($e),milliseconds:Pu($e)});Me(Ne(Qe))}else Me(Ne($e))}}function ve(){Me(M.value),yt(!1)}function Fe(){const ne=new Date,$e={hours:er,minutes:Wn,seconds:Un},[He,Qe,Pt]=["hours","minutes","seconds"].map(xt=>!e[xt]||Mn($e[xt](ne),xt,e[xt])?$e[xt](ne):Hg($e[xt](ne),xt,e[xt])),Ft=ui(ci(gr($.value?$.value:Ne(ne),He),Qe),Pt);Me(Ne(Ft))}function Be(){we(),Ye(),O({returnFocus:!0})}function U(ne){ct(ne)||(we(),Ge(ne),O({returnFocus:!1}))}vt($,ne=>{we(ne),G(),zt(bt)}),vt(I,()=>{se.value&&Me(M.value)}),Je(Yd,{mergedThemeRef:f,mergedClsPrefixRef:o});const ge={focus:()=>{var ne;(ne=p.value)===null||ne===void 0||ne.focus()},blur:()=>{var ne;(ne=p.value)===null||ne===void 0||ne.blur()}},Te=C(()=>{const{common:{cubicBezierEaseInOut:ne},self:{iconColor:$e,iconColorDisabled:He}}=f.value;return{"--n-icon-color-override":$e,"--n-icon-color-disabled-override":He,"--n-bezier":ne}}),je=n?it("time-picker-trigger",void 0,Te,e):void 0,dt=C(()=>{const{self:{panelColor:ne,itemTextColor:$e,itemTextColorActive:He,itemColorHover:Qe,panelDividerColor:Pt,panelBoxShadow:Ft,itemOpacityDisabled:xt,borderRadius:Z,itemFontSize:ye,itemWidth:Ue,itemHeight:X,panelActionPadding:he,itemBorderRadius:ze},common:{cubicBezierEaseInOut:Oe}}=f.value;return{"--n-bezier":Oe,"--n-border-radius":Z,"--n-item-color-hover":Qe,"--n-item-font-size":ye,"--n-item-height":X,"--n-item-opacity-disabled":xt,"--n-item-text-color":$e,"--n-item-text-color-active":He,"--n-item-width":Ue,"--n-panel-action-padding":he,"--n-panel-box-shadow":Ft,"--n-panel-color":ne,"--n-panel-divider-color":Pt,"--n-item-border-radius":ze}}),et=n?it("time-picker",void 0,dt,e):void 0;return{focus:ge.focus,blur:ge.blur,mergedStatus:u,mergedBordered:t,mergedClsPrefix:o,namespace:r,uncontrolledValue:T,mergedValue:$,isMounted:qo(),inputInstRef:p,panelInstRef:h,adjustedTo:Gt(e),mergedShow:I,localizedClear:D,localizedNow:E,localizedPlaceholder:K,localizedNegativeText:N,localizedPositiveText:oe,hourInFormat:q,minuteInFormat:re,secondInFormat:me,mergedAttrSize:be,displayTimeString:w,mergedSize:d,mergedDisabled:c,isValueInvalid:se,isHourInvalid:F,isMinuteInvalid:j,isSecondInvalid:J,transitionDisabled:V,hourValue:ue,minuteValue:W,secondValue:H,amPmValue:Ie,handleInputKeydown:te,handleTimeInputFocus:Ke,handleTimeInputBlur:Ct,handleNowClick:Fe,handleConfirmClick:Be,handleTimeInputUpdateValue:Y,handleMenuFocusOut:U,handleCancelClick:ve,handleClickOutside:Xe,handleTimeInputActivate:Tt,handleTimeInputDeactivate:ht,handleHourClick:pe,handleMinuteClick:Ce,handleSecondClick:de,handleAmPmClick:L,handleTimeInputClear:st,handleFocusDetectorFocus:ot,handleMenuKeydown:ce,handleTriggerClick:Q,mergedTheme:f,triggerCssVars:n?void 0:Te,triggerThemeClass:je==null?void 0:je.themeClass,triggerOnRender:je==null?void 0:je.onRender,cssVars:n?void 0:dt,themeClass:et==null?void 0:et.themeClass,onRender:et==null?void 0:et.onRender,clearSelectedValue:xe}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:o}=this;return o==null||o(),i("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},i(Pr,null,{default:()=>[i(zr,null,{default:()=>i(Bo,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>i(kt,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():i(Cf,null)})}:null)}),i(Rr,{teleportDisabled:this.adjustedTo===Gt.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>i(Vt,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),lo(i(Ng,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,clearText:this.localizedClear,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onClearClick:this.clearSelectedValue,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[Ho,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),kr=40,Wg="HH:mm:ss",Xd={active:Boolean,dateFormat:String,timerPickerFormat:{type:String,value:Wg},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],inputReadonly:Boolean,onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean,onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function};function Zd(e){const{dateLocaleRef:t,timePickerSizeRef:o,timePickerPropsRef:r,localeRef:n,mergedClsPrefixRef:a,mergedThemeRef:s}=Ae(ai),l=C(()=>({locale:t.value.locale})),d=B(null),c=ha();function u(){const{onClear:D}=e;D&&D()}function f(){const{onConfirm:D,value:E}=e;D&&D(E)}function v(D,E){const{onUpdateValue:K}=e;K(D,E)}function p(D=!1){const{onClose:E}=e;E&&E(D)}function h(){const{onTabOut:D}=e;D&&D()}function g(){v(null,!0),p(!0),u()}function b(){h()}function y(){(e.active||e.panel)&&zt(()=>{const{value:D}=d;if(!D)return;const E=D.querySelectorAll("[data-n-date]");E.forEach(K=>{K.classList.add("transition-disabled")}),D.offsetWidth,E.forEach(K=>{K.classList.remove("transition-disabled")})})}function x(D){D.key==="Tab"&&D.target===d.value&&c.shift&&(D.preventDefault(),h())}function T(D){const{value:E}=d;c.tab&&D.target===E&&(E!=null&&E.contains(D.relatedTarget))&&h()}let $=null,R=!1;function w(){$=e.value,R=!0}function S(){R=!1}function A(){R&&(v($,!1),R=!1)}function I(D){return typeof D=="function"?D():D}const M=B(!1);function V(){M.value=!M.value}return{mergedTheme:s,mergedClsPrefix:a,dateFnsOptions:l,timePickerSize:o,timePickerProps:r,selfRef:d,locale:n,doConfirm:f,doClose:p,doUpdateValue:v,doTabOut:h,handleClearClick:g,handleFocusDetectorFocus:b,disableTransitionOneTick:y,handlePanelKeyDown:x,handlePanelFocus:T,cachePendingValue:w,clearPendingValue:S,restorePendingValue:A,getShortcutValue:I,handleShortcutMouseleave:A,showMonthYearPanel:M,handleOpenQuickSelectMonthPanel:V}}const Da=Object.assign(Object.assign({},Xd),{defaultCalendarStartTime:Number,actions:{type:Array,default:()=>["now","clear","confirm"]}});function Ma(e,t){var o;const r=Zd(e),{isValueInvalidRef:n,isDateDisabledRef:a,isDateInvalidRef:s,isTimeInvalidRef:l,isDateTimeInvalidRef:d,isHourDisabledRef:c,isMinuteDisabledRef:u,isSecondDisabledRef:f,localeRef:v,firstDayOfWeekRef:p,datePickerSlots:h,yearFormatRef:g,monthFormatRef:b,quarterFormatRef:y,yearRangeRef:x}=Ae(ai),T={isValueInvalid:n,isDateDisabled:a,isDateInvalid:s,isTimeInvalid:l,isDateTimeInvalid:d,isHourDisabled:c,isMinuteDisabled:u,isSecondDisabled:f},$=C(()=>e.dateFormat||v.value.dateFormat),R=B(e.value===null||Array.isArray(e.value)?"":Bt(e.value,$.value)),w=B(e.value===null||Array.isArray(e.value)?(o=e.defaultCalendarStartTime)!==null&&o!==void 0?o:Date.now():e.value),S=B(null),A=B(null),I=B(null),M=B(Date.now()),V=C(()=>{var L;return Yi(w.value,e.value,M.value,(L=p.value)!==null&&L!==void 0?L:v.value.firstDayOfWeek,!1,t==="week")}),D=C(()=>{const{value:L}=e;return Xi(w.value,Array.isArray(L)?null:L,M.value,{monthFormat:b.value})}),E=C(()=>{const{value:L}=e;return Qi(Array.isArray(L)?null:L,M.value,{yearFormat:g.value},x)}),K=C(()=>{const{value:L}=e;return Zi(w.value,Array.isArray(L)?null:L,M.value,{quarterFormat:y.value})}),N=C(()=>V.value.slice(0,7).map(L=>{const{ts:we}=L;return Bt(we,v.value.dayFormat,r.dateFnsOptions.value)})),oe=C(()=>Bt(w.value,v.value.monthFormat,r.dateFnsOptions.value)),q=C(()=>Bt(w.value,v.value.yearFormat,r.dateFnsOptions.value));vt(w,(L,we)=>{(t==="date"||t==="datetime")&&(fn(L,we)||r.disableTransitionOneTick())}),vt(C(()=>e.value),L=>{L!==null&&!Array.isArray(L)?(R.value=Bt(L,$.value,r.dateFnsOptions.value),w.value=L):R.value=""});function re(L){var we;if(t==="datetime")return Ne(aa(L));if(t==="month")return Ne(jo(L));if(t==="year")return Ne(ei(L));if(t==="quarter")return Ne(Di(L));if(t==="week"){const Ke=(((we=p.value)!==null&&we!==void 0?we:v.value.firstDayOfWeek)+1)%7;return Ne(Fu(L,{weekStartsOn:Ke}))}return Ne(Jl(L))}function me(L,we){const{isDateDisabled:{value:Ke}}=T;return Ke?Ke(L,we):!1}function ue(L){const we=co(L,$.value,new Date,r.dateFnsOptions.value);if(Fo(we)){if(e.value===null)r.doUpdateValue(Ne(re(Date.now())),e.panel);else if(!Array.isArray(e.value)){const Ke=Qt(e.value,{year:Ht(we),month:Dt(we),date:So(we)});r.doUpdateValue(Ne(re(Ne(Ke))),e.panel)}}else R.value=L}function W(){const L=co(R.value,$.value,new Date,r.dateFnsOptions.value);if(Fo(L)){if(e.value===null)r.doUpdateValue(Ne(re(Date.now())),!1);else if(!Array.isArray(e.value)){const we=Qt(e.value,{year:Ht(L),month:Dt(L),date:So(L)});r.doUpdateValue(Ne(re(Ne(we))),!1)}}else Pe()}function H(){r.doUpdateValue(null,!0),R.value="",r.doClose(!0),r.handleClearClick()}function F(){r.doUpdateValue(Ne(re(Date.now())),!0);const L=Date.now();w.value=L,r.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(r.disableTransitionOneTick(),Ce(L))}const j=B(null);function J(L){L.type==="date"&&t==="week"&&(j.value=re(Ne(L.ts)))}function se(L){return L.type==="date"&&t==="week"?re(Ne(L.ts))===j.value:!1}function be(L){if(me(L.ts,L.type==="date"?{type:"date",year:L.dateObject.year,month:L.dateObject.month,date:L.dateObject.date}:L.type==="month"?{type:"month",year:L.dateObject.year,month:L.dateObject.month}:L.type==="year"?{type:"year",year:L.dateObject.year}:{type:"quarter",year:L.dateObject.year,quarter:L.dateObject.quarter}))return;let we;if(e.value!==null&&!Array.isArray(e.value)?we=e.value:we=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const Ke=Vn(e.defaultTime);Ke&&(we=Ne(Qt(we,Ke)))}switch(we=Ne(L.type==="quarter"&&L.dateObject.quarter?$u(Bi(we,L.dateObject.year),L.dateObject.quarter):Qt(we,L.dateObject)),r.doUpdateValue(re(we),e.panel||t==="date"||t==="week"||t==="year"),t){case"date":case"week":r.doClose();break;case"year":e.panel&&r.disableTransitionOneTick(),r.doClose();break;case"month":r.disableTransitionOneTick(),Ce(we);break;case"quarter":r.disableTransitionOneTick(),Ce(we);break}}function Ie(L,we){let Ke;e.value!==null&&!Array.isArray(e.value)?Ke=e.value:Ke=Date.now(),Ke=Ne(L.type==="month"?Tu(Ke,L.dateObject.month):Bi(Ke,L.dateObject.year)),we(Ke),Ce(Ke)}function _(L){w.value=L}function Pe(L){if(e.value===null||Array.isArray(e.value)){R.value="";return}L===void 0&&(L=e.value),R.value=Bt(L,$.value,r.dateFnsOptions.value)}function Me(){T.isDateInvalid.value||T.isTimeInvalid.value||(r.doConfirm(),Ee())}function Ee(){e.active&&r.doClose()}function Ge(){var L;w.value=Ne(Oi(w.value,1)),(L=e.onNextYear)===null||L===void 0||L.call(e)}function Ye(){var L;w.value=Ne(Oi(w.value,-1)),(L=e.onPrevYear)===null||L===void 0||L.call(e)}function st(){var L;w.value=Ne(ro(w.value,1)),(L=e.onNextMonth)===null||L===void 0||L.call(e)}function ot(){var L;w.value=Ne(ro(w.value,-1)),(L=e.onPrevMonth)===null||L===void 0||L.call(e)}function xe(){const{value:L}=S;return(L==null?void 0:L.listElRef)||null}function te(){const{value:L}=S;return(L==null?void 0:L.itemsElRef)||null}function ce(){var L;(L=A.value)===null||L===void 0||L.sync()}function G(L){L!==null&&r.doUpdateValue(L,e.panel)}function Q(L){r.cachePendingValue();const we=r.getShortcutValue(L);typeof we=="number"&&r.doUpdateValue(we,!1)}function pe(L){const we=r.getShortcutValue(L);typeof we=="number"&&(r.doUpdateValue(we,e.panel),r.clearPendingValue(),Me())}function Ce(L){const{value:we}=e;if(I.value){const Ke=L===void 0?we===null?Dt(Date.now()):Dt(we):Dt(L);I.value.scrollTo({top:Ke*kr})}if(S.value){const Ke=(L===void 0?we===null?Ht(Date.now()):Ht(we):Ht(L))-x.value[0];S.value.scrollTo({top:Ke*kr})}}const de={monthScrollbarRef:I,yearScrollbarRef:A,yearVlRef:S};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:V,monthArray:D,yearArray:E,quarterArray:K,calendarYear:q,calendarMonth:oe,weekdays:N,mergedIsDateDisabled:me,nextYear:Ge,prevYear:Ye,nextMonth:st,prevMonth:ot,handleNowClick:F,handleConfirmClick:Me,handleSingleShortcutMouseenter:Q,handleSingleShortcutClick:pe},T),r),de),{handleDateClick:be,handleDateInputBlur:W,handleDateInput:ue,handleDateMouseEnter:J,isWeekHovered:se,handleTimePickerChange:G,clearSelectedDateTime:H,virtualListContainer:xe,virtualListContent:te,handleVirtualListScroll:ce,timePickerSize:r.timePickerSize,dateInputValue:R,datePickerSlots:h,handleQuickMonthClick:Ie,justifyColumnsScrollState:Ce,calendarValue:w,onUpdateCalendarValue:_})}const Qd=ie({name:"MonthPanel",props:Object.assign(Object.assign({},Da),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=Ma(e,e.type),{dateLocaleRef:o}=zo("DatePicker"),r=s=>{switch(s.type){case"year":return Js(s.dateObject.year,s.yearFormat,o.value.locale);case"month":return Qs(s.dateObject.month,s.monthFormat,o.value.locale);case"quarter":return ed(s.dateObject.quarter,s.quarterFormat,o.value.locale)}},{useAsQuickJump:n}=e,a=(s,l,d)=>{const{mergedIsDateDisabled:c,handleDateClick:u,handleQuickMonthClick:f}=t;return i("div",{"data-n-date":!0,key:l,class:[`${d}-date-panel-month-calendar__picker-col-item`,s.isCurrent&&`${d}-date-panel-month-calendar__picker-col-item--current`,s.selected&&`${d}-date-panel-month-calendar__picker-col-item--selected`,!n&&c(s.ts,s.type==="year"?{type:"year",year:s.dateObject.year}:s.type==="month"?{type:"month",year:s.dateObject.year,month:s.dateObject.month}:s.type==="quarter"?{type:"month",year:s.dateObject.year,month:s.dateObject.quarter}:null)&&`${d}-date-panel-month-calendar__picker-col-item--disabled`],onClick:()=>{n?f(s,v=>{e.onUpdateValue(v,!1)}):u(s)}},r(s))};return Jt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:a})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:o,actions:r,renderItem:n,type:a,onRender:s}=this;return s==null||s(),i("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},i("div",{class:`${e}-date-panel-month-calendar`},i(Lt,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>i(Sr,{ref:"yearVlRef",items:this.yearArray,itemSize:kr,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:l,index:d})=>n(l,d,e)})}),a==="month"||a==="quarter"?i("div",{class:`${e}-date-panel-month-calendar__picker-col`},i(Lt,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(a==="month"?this.monthArray:this.quarterArray).map((l,d)=>n(l,d,e)),i("div",{class:`${e}-date-panel-${a}-calendar__padding`})]})):null),this.datePickerSlots.footer?i("div",{class:`${e}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,r!=null&&r.length||o?i("div",{class:`${e}-date-panel-actions`},i("div",{class:`${e}-date-panel-actions__prefix`},o&&Object.keys(o).map(l=>{const d=o[l];return Array.isArray(d)?null:i(Ao,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(d)},onClick:()=>{this.handleSingleShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),i("div",{class:`${e}-date-panel-actions__suffix`},r!=null&&r.includes("clear")?io(this.$slots.now,{onClear:this.handleClearClick,text:this.locale.clear},()=>[i(At,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,r!=null&&r.includes("now")?io(this.$slots.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[i(At,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null,r!=null&&r.includes("confirm")?io(this.$slots.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},()=>[i(At,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,i(fr,{onFocus:this.handleFocusDetectorFocus}))}}),Nr=ie({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=B(null),t=B(null),o=B(!1);function r(a){var s;o.value&&!(!((s=e.value)===null||s===void 0)&&s.contains(Uo(a)))&&(o.value=!1)}function n(){o.value=!o.value}return{show:o,triggerRef:e,monthPanelRef:t,handleHeaderClick:n,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return i("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},i(Pr,null,{default:()=>[i(zr,null,{default:()=>i("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),i(Rr,{show:this.show,teleportDisabled:!0},{default:()=>i(Vt,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?lo(i(Qd,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[Ho,e,void 0,{capture:!0}]]):null})})]}))}}),Ug=ie({name:"DateTimePanel",props:Da,setup(e){return Ma(e,"datetime")},render(){var e,t,o,r;const{mergedClsPrefix:n,mergedTheme:a,shortcuts:s,timePickerProps:l,onRender:d,$slots:c}=this;return d==null||d(),i("div",{ref:"selfRef",tabindex:0,class:[`${n}-date-panel`,`${n}-date-panel--datetime`,!this.panel&&`${n}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},i("div",{class:`${n}-date-panel-header`},i(Bo,{value:this.dateInputValue,theme:a.peers.Input,themeOverrides:a.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:`${n}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),i(oa,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timerPickerFormat},Array.isArray(l)?void 0:l,{showIcon:!1,to:!1,theme:a.peers.TimePicker,themeOverrides:a.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),i("div",{class:`${n}-date-panel-calendar`},i("div",{class:`${n}-date-panel-month`},i("div",{class:`${n}-date-panel-month__fast-prev`,onClick:this.prevYear},ft(c["prev-year"],()=>[i(ar,null)])),i("div",{class:`${n}-date-panel-month__prev`,onClick:this.prevMonth},ft(c["prev-month"],()=>[i(ir,null)])),i(Nr,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:n,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),i("div",{class:`${n}-date-panel-month__next`,onClick:this.nextMonth},ft(c["next-month"],()=>[i(sr,null)])),i("div",{class:`${n}-date-panel-month__fast-next`,onClick:this.nextYear},ft(c["next-year"],()=>[i(lr,null)]))),i("div",{class:`${n}-date-panel-weekdays`},this.weekdays.map(u=>i("div",{key:u,class:`${n}-date-panel-weekdays__day`},u))),i("div",{class:`${n}-date-panel-dates`},this.dateArray.map((u,f)=>i("div",{"data-n-date":!0,key:f,class:[`${n}-date-panel-date`,{[`${n}-date-panel-date--current`]:u.isCurrentDate,[`${n}-date-panel-date--selected`]:u.selected,[`${n}-date-panel-date--excluded`]:!u.inCurrentMonth,[`${n}-date-panel-date--disabled`]:this.mergedIsDateDisabled(u.ts,{type:"date",year:u.dateObject.year,month:u.dateObject.month,date:u.dateObject.date})}],onClick:()=>{this.handleDateClick(u)}},i("div",{class:`${n}-date-panel-date__trigger`}),u.dateObject.date,u.isCurrentDate?i("div",{class:`${n}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?i("div",{class:`${n}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||s?i("div",{class:`${n}-date-panel-actions`},i("div",{class:`${n}-date-panel-actions__prefix`},s&&Object.keys(s).map(u=>{const f=s[u];return Array.isArray(f)?null:i(Ao,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(f)},onClick:()=>{this.handleSingleShortcutClick(f)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>u})})),i("div",{class:`${n}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?io(this.$slots.clear,{onClear:this.clearSelectedDateTime,text:this.locale.clear},()=>[i(At,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("now")?io(c.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[i(At,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?io(c.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},()=>[i(At,{theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,i(fr,{onFocus:this.handleFocusDetectorFocus}))}}),Aa=Object.assign(Object.assign({},Xd),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function _a(e,t){var o,r;const{isDateDisabledRef:n,isStartHourDisabledRef:a,isEndHourDisabledRef:s,isStartMinuteDisabledRef:l,isEndMinuteDisabledRef:d,isStartSecondDisabledRef:c,isEndSecondDisabledRef:u,isStartDateInvalidRef:f,isEndDateInvalidRef:v,isStartTimeInvalidRef:p,isEndTimeInvalidRef:h,isStartValueInvalidRef:g,isEndValueInvalidRef:b,isRangeInvalidRef:y,localeRef:x,rangesRef:T,closeOnSelectRef:$,updateValueOnCloseRef:R,firstDayOfWeekRef:w,datePickerSlots:S,monthFormatRef:A,yearFormatRef:I,quarterFormatRef:M,yearRangeRef:V}=Ae(ai),D={isDateDisabled:n,isStartHourDisabled:a,isEndHourDisabled:s,isStartMinuteDisabled:l,isEndMinuteDisabled:d,isStartSecondDisabled:c,isEndSecondDisabled:u,isStartDateInvalid:f,isEndDateInvalid:v,isStartTimeInvalid:p,isEndTimeInvalid:h,isStartValueInvalid:g,isEndValueInvalid:b,isRangeInvalid:y},E=Zd(e),K=B(null),N=B(null),oe=B(null),q=B(null),re=B(null),me=B(null),ue=B(null),W=B(null),{value:H}=e,F=(o=e.defaultCalendarStartTime)!==null&&o!==void 0?o:Array.isArray(H)&&typeof H[0]=="number"?H[0]:Date.now(),j=B(F),J=B((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(H)&&typeof H[1]=="number"?H[1]:Ne(ro(F,1)));ht(!0);const se=B(Date.now()),be=B(!1),Ie=B(0),_=C(()=>e.dateFormat||x.value.dateFormat),Pe=B(Array.isArray(H)?Bt(H[0],_.value,E.dateFnsOptions.value):""),Me=B(Array.isArray(H)?Bt(H[1],_.value,E.dateFnsOptions.value):""),Ee=C(()=>be.value?"end":"start"),Ge=C(()=>{var ee;return Yi(j.value,e.value,se.value,(ee=w.value)!==null&&ee!==void 0?ee:x.value.firstDayOfWeek)}),Ye=C(()=>{var ee;return Yi(J.value,e.value,se.value,(ee=w.value)!==null&&ee!==void 0?ee:x.value.firstDayOfWeek)}),st=C(()=>Ge.value.slice(0,7).map(ee=>{const{ts:ke}=ee;return Bt(ke,x.value.dayFormat,E.dateFnsOptions.value)})),ot=C(()=>Bt(j.value,x.value.monthFormat,E.dateFnsOptions.value)),xe=C(()=>Bt(J.value,x.value.monthFormat,E.dateFnsOptions.value)),te=C(()=>Bt(j.value,x.value.yearFormat,E.dateFnsOptions.value)),ce=C(()=>Bt(J.value,x.value.yearFormat,E.dateFnsOptions.value)),G=C(()=>{const{value:ee}=e;return Array.isArray(ee)?ee[0]:null}),Q=C(()=>{const{value:ee}=e;return Array.isArray(ee)?ee[1]:null}),pe=C(()=>{const{shortcuts:ee}=e;return ee||T.value}),Ce=C(()=>Qi(Or(e.value,"start"),se.value,{yearFormat:I.value},V)),de=C(()=>Qi(Or(e.value,"end"),se.value,{yearFormat:I.value},V)),L=C(()=>{const ee=Or(e.value,"start");return Zi(ee??Date.now(),ee,se.value,{quarterFormat:M.value})}),we=C(()=>{const ee=Or(e.value,"end");return Zi(ee??Date.now(),ee,se.value,{quarterFormat:M.value})}),Ke=C(()=>{const ee=Or(e.value,"start");return Xi(ee??Date.now(),ee,se.value,{monthFormat:A.value})}),Ct=C(()=>{const ee=Or(e.value,"end");return Xi(ee??Date.now(),ee,se.value,{monthFormat:A.value})});vt(C(()=>e.value),ee=>{if(ee!==null&&Array.isArray(ee)){const[ke,Ve]=ee;Pe.value=Bt(ke,_.value,E.dateFnsOptions.value),Me.value=Bt(Ve,_.value,E.dateFnsOptions.value),be.value||ge(ee)}else Pe.value="",Me.value=""});function Tt(ee,ke){(t==="daterange"||t==="datetimerange")&&(Ht(ee)!==Ht(ke)||Dt(ee)!==Dt(ke))&&E.disableTransitionOneTick()}vt(j,Tt),vt(J,Tt);function ht(ee){const ke=jo(j.value),Ve=jo(J.value);(e.bindCalendarMonths||ke>=Ve)&&(ee?J.value=Ne(ro(ke,1)):j.value=Ne(ro(Ve,-1)))}function bt(){j.value=Ne(ro(j.value,12)),ht(!0)}function yt(){j.value=Ne(ro(j.value,-12)),ht(!0)}function ct(){j.value=Ne(ro(j.value,1)),ht(!0)}function De(){j.value=Ne(ro(j.value,-1)),ht(!0)}function Xe(){J.value=Ne(ro(J.value,12)),ht(!1)}function O(){J.value=Ne(ro(J.value,-12)),ht(!1)}function Y(){J.value=Ne(ro(J.value,1)),ht(!1)}function ve(){J.value=Ne(ro(J.value,-1)),ht(!1)}function Fe(ee){j.value=ee,ht(!0)}function Be(ee){J.value=ee,ht(!1)}function U(ee){const ke=n.value;if(!ke)return!1;if(!Array.isArray(e.value)||Ee.value==="start")return ke(ee,"start",null);{const{value:Ve}=Ie;return ee=Ie.value?He(Ie.value,ee.ts,"wipPreview"):He(ee.ts,Ie.value,"wipPreview")}}function dt(){y.value||(E.doConfirm(),et())}function et(){be.value=!1,e.active&&E.doClose()}function ne(ee){typeof ee!="number"&&(ee=Ne(ee)),e.value===null?E.doUpdateValue([ee,ee],e.panel):Array.isArray(e.value)&&E.doUpdateValue([ee,Math.max(e.value[1],ee)],e.panel)}function $e(ee){typeof ee!="number"&&(ee=Ne(ee)),e.value===null?E.doUpdateValue([ee,ee],e.panel):Array.isArray(e.value)&&E.doUpdateValue([Math.min(e.value[0],ee),ee],e.panel)}function He(ee,ke,Ve){if(typeof ee!="number"&&(ee=Ne(ee)),Ve!=="shortcutPreview"){let gt,at;if(t==="datetimerange"){const{defaultTime:ut}=e;Array.isArray(ut)?(gt=Vn(ut[0]),at=Vn(ut[1])):(gt=Vn(ut),at=gt)}gt&&(ee=Ne(Qt(ee,gt))),at&&(ke=Ne(Qt(ke,at)))}E.doUpdateValue([ee,ke],e.panel&&Ve==="done")}function Qe(ee){return t==="datetimerange"?Ne(aa(ee)):t==="monthrange"?Ne(jo(ee)):Ne(Jl(ee))}function Pt(ee){const ke=co(ee,_.value,new Date,E.dateFnsOptions.value);if(Fo(ke))if(e.value){if(Array.isArray(e.value)){const Ve=Qt(e.value[0],{year:Ht(ke),month:Dt(ke),date:So(ke)});ne(Qe(Ne(Ve)))}}else{const Ve=Qt(new Date,{year:Ht(ke),month:Dt(ke),date:So(ke)});ne(Qe(Ne(Ve)))}else Pe.value=ee}function Ft(ee){const ke=co(ee,_.value,new Date,E.dateFnsOptions.value);if(Fo(ke)){if(e.value===null){const Ve=Qt(new Date,{year:Ht(ke),month:Dt(ke),date:So(ke)});$e(Qe(Ne(Ve)))}else if(Array.isArray(e.value)){const Ve=Qt(e.value[1],{year:Ht(ke),month:Dt(ke),date:So(ke)});$e(Qe(Ne(Ve)))}}else Me.value=ee}function xt(){const ee=co(Pe.value,_.value,new Date,E.dateFnsOptions.value),{value:ke}=e;if(Fo(ee)){if(ke===null){const Ve=Qt(new Date,{year:Ht(ee),month:Dt(ee),date:So(ee)});ne(Qe(Ne(Ve)))}else if(Array.isArray(ke)){const Ve=Qt(ke[0],{year:Ht(ee),month:Dt(ee),date:So(ee)});ne(Qe(Ne(Ve)))}}else ye()}function Z(){const ee=co(Me.value,_.value,new Date,E.dateFnsOptions.value),{value:ke}=e;if(Fo(ee)){if(ke===null){const Ve=Qt(new Date,{year:Ht(ee),month:Dt(ee),date:So(ee)});$e(Qe(Ne(Ve)))}else if(Array.isArray(ke)){const Ve=Qt(ke[1],{year:Ht(ee),month:Dt(ee),date:So(ee)});$e(Qe(Ne(Ve)))}}else ye()}function ye(ee){const{value:ke}=e;if(ke===null||!Array.isArray(ke)){Pe.value="",Me.value="";return}ee===void 0&&(ee=ke),Pe.value=Bt(ee[0],_.value,E.dateFnsOptions.value),Me.value=Bt(ee[1],_.value,E.dateFnsOptions.value)}function Ue(ee){ee!==null&&ne(ee)}function X(ee){ee!==null&&$e(ee)}function he(ee){E.cachePendingValue();const ke=E.getShortcutValue(ee);Array.isArray(ke)&&He(ke[0],ke[1],"shortcutPreview")}function ze(ee){const ke=E.getShortcutValue(ee);Array.isArray(ke)&&(He(ke[0],ke[1],"done"),E.clearPendingValue(),dt())}function Oe(ee,ke){const Ve=ee===void 0?e.value:ee;if(ee===void 0||ke==="start"){if(ue.value){const gt=Array.isArray(Ve)?Dt(Ve[0]):Dt(Date.now());ue.value.scrollTo({debounce:!1,index:gt,elSize:kr})}if(re.value){const gt=(Array.isArray(Ve)?Ht(Ve[0]):Ht(Date.now()))-V.value[0];re.value.scrollTo({index:gt,debounce:!1})}}if(ee===void 0||ke==="end"){if(W.value){const gt=Array.isArray(Ve)?Dt(Ve[1]):Dt(Date.now());W.value.scrollTo({debounce:!1,index:gt,elSize:kr})}if(me.value){const gt=(Array.isArray(Ve)?Ht(Ve[1]):Ht(Date.now()))-V.value[0];me.value.scrollTo({index:gt,debounce:!1})}}}function Le(ee,ke){const{value:Ve}=e,gt=!Array.isArray(Ve),at=ee.type==="year"&&t!=="yearrange"?gt?Qt(ee.ts,{month:Dt(t==="quarterrange"?Di(new Date):new Date)}).valueOf():Qt(ee.ts,{month:Dt(t==="quarterrange"?Di(Ve[ke==="start"?0:1]):Ve[ke==="start"?0:1])}).valueOf():ee.ts;if(gt){const vo=Qe(at),yo=[vo,vo];E.doUpdateValue(yo,e.panel),Oe(yo,"start"),Oe(yo,"end"),E.disableTransitionOneTick();return}const ut=[Ve[0],Ve[1]];let to=!1;switch(ke==="start"?(ut[0]=Qe(at),ut[0]>ut[1]&&(ut[1]=ut[0],to=!0)):(ut[1]=Qe(at),ut[0]>ut[1]&&(ut[0]=ut[1],to=!0)),E.doUpdateValue(ut,e.panel),t){case"monthrange":case"quarterrange":E.disableTransitionOneTick(),to?(Oe(ut,"start"),Oe(ut,"end")):Oe(ut,ke);break;case"yearrange":E.disableTransitionOneTick(),Oe(ut,"start"),Oe(ut,"end")}}function pt(){var ee;(ee=oe.value)===null||ee===void 0||ee.sync()}function It(){var ee;(ee=q.value)===null||ee===void 0||ee.sync()}function Ot(ee){var ke,Ve;return ee==="start"?((ke=re.value)===null||ke===void 0?void 0:ke.listElRef)||null:((Ve=me.value)===null||Ve===void 0?void 0:Ve.listElRef)||null}function Yt(ee){var ke,Ve;return ee==="start"?((ke=re.value)===null||ke===void 0?void 0:ke.itemsElRef)||null:((Ve=me.value)===null||Ve===void 0?void 0:Ve.itemsElRef)||null}const eo={startYearVlRef:re,endYearVlRef:me,startMonthScrollbarRef:ue,endMonthScrollbarRef:W,startYearScrollbarRef:oe,endYearScrollbarRef:q};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:K,endDatesElRef:N,handleDateClick:Te,handleColItemClick:Le,handleDateMouseEnter:je,handleConfirmClick:dt,startCalendarPrevYear:yt,startCalendarPrevMonth:De,startCalendarNextYear:bt,startCalendarNextMonth:ct,endCalendarPrevYear:O,endCalendarPrevMonth:ve,endCalendarNextMonth:Y,endCalendarNextYear:Xe,mergedIsDateDisabled:U,changeStartEndTime:He,ranges:T,startCalendarMonth:ot,startCalendarYear:te,endCalendarMonth:xe,endCalendarYear:ce,weekdays:st,startDateArray:Ge,endDateArray:Ye,startYearArray:Ce,startMonthArray:Ke,startQuarterArray:L,endYearArray:de,endMonthArray:Ct,endQuarterArray:we,isSelecting:be,handleRangeShortcutMouseenter:he,handleRangeShortcutClick:ze},E),D),eo),{startDateDisplayString:Pe,endDateInput:Me,timePickerSize:E.timePickerSize,startTimeValue:G,endTimeValue:Q,datePickerSlots:S,shortcuts:pe,startCalendarDateTime:j,endCalendarDateTime:J,justifyColumnsScrollState:Oe,handleFocusDetectorFocus:E.handleFocusDetectorFocus,handleStartTimePickerChange:Ue,handleEndTimePickerChange:X,handleStartDateInput:Pt,handleStartDateInputBlur:xt,handleEndDateInput:Ft,handleEndDateInputBlur:Z,handleStartYearVlScroll:pt,handleEndYearVlScroll:It,virtualListContainer:Ot,virtualListContent:Yt,onUpdateStartCalendarValue:Fe,onUpdateEndCalendarValue:Be})}const Kg=ie({name:"DateTimeRangePanel",props:Aa,setup(e){return _a(e,"datetimerange")},render(){var e,t,o;const{mergedClsPrefix:r,mergedTheme:n,shortcuts:a,timePickerProps:s,onRender:l,$slots:d}=this;return l==null||l(),i("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},i("div",{class:`${r}-date-panel-header`},i(Bo,{value:this.startDateDisplayString,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,size:this.timePickerSize,stateful:!1,readonly:this.inputReadonly,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),i(oa,Object.assign({placeholder:this.locale.selectTime,format:this.timerPickerFormat,size:this.timePickerSize},Array.isArray(s)?s[0]:s,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:n.peers.TimePicker,themeOverrides:n.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),i(Bo,{value:this.endDateInput,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),i(oa,Object.assign({placeholder:this.locale.selectTime,format:this.timerPickerFormat,size:this.timePickerSize},Array.isArray(s)?s[1]:s,{disabled:this.isSelecting,showIcon:!1,theme:n.peers.TimePicker,themeOverrides:n.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),i("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},i("div",{class:`${r}-date-panel-month`},i("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},ft(d["prev-year"],()=>[i(ar,null)])),i("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},ft(d["prev-month"],()=>[i(ir,null)])),i(Nr,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),i("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},ft(d["next-month"],()=>[i(sr,null)])),i("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},ft(d["next-year"],()=>[i(lr,null)]))),i("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>i("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),i("div",{class:`${r}-date-panel__divider`}),i("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,u)=>{const f=this.mergedIsDateDisabled(c.ts);return i("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>{this.handleDateClick(c)},onMouseenter:f?void 0:()=>{this.handleDateMouseEnter(c)}},i("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?i("div",{class:`${r}-date-panel-date__sup`}):null)}))),i("div",{class:`${r}-date-panel__vertical-divider`}),i("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},i("div",{class:`${r}-date-panel-month`},i("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},ft(d["prev-year"],()=>[i(ar,null)])),i("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},ft(d["prev-month"],()=>[i(ir,null)])),i(Nr,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),i("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},ft(d["next-month"],()=>[i(sr,null)])),i("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},ft(d["next-year"],()=>[i(lr,null)]))),i("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>i("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),i("div",{class:`${r}-date-panel__divider`}),i("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,u)=>{const f=this.mergedIsDateDisabled(c.ts);return i("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>{this.handleDateClick(c)},onMouseenter:f?void 0:()=>{this.handleDateMouseEnter(c)}},i("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?i("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?i("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||a?i("div",{class:`${r}-date-panel-actions`},i("div",{class:`${r}-date-panel-actions__prefix`},a&&Object.keys(a).map(c=>{const u=a[c];return Array.isArray(u)||typeof u=="function"?i(Ao,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(u)},onClick:()=>{this.handleRangeShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),i("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?io(d.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[i(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("confirm")?io(d.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},()=>[i(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,i(fr,{onFocus:this.handleFocusDetectorFocus}))}}),qg=ie({name:"DatePanel",props:Object.assign(Object.assign({},Da),{type:{type:String,required:!0}}),setup(e){return Ma(e,e.type)},render(){var e,t,o;const{mergedClsPrefix:r,mergedTheme:n,shortcuts:a,onRender:s,$slots:l,type:d}=this;return s==null||s(),i("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--${d}`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},i("div",{class:`${r}-date-panel-calendar`},i("div",{class:`${r}-date-panel-month`},i("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},ft(l["prev-year"],()=>[i(ar,null)])),i("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},ft(l["prev-month"],()=>[i(ir,null)])),i(Nr,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),i("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},ft(l["next-month"],()=>[i(sr,null)])),i("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},ft(l["next-year"],()=>[i(lr,null)]))),i("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>i("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),i("div",{class:`${r}-date-panel-dates`},this.dateArray.map((c,u)=>i("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(c.ts,{type:"date",year:c.dateObject.year,month:c.dateObject.month,date:c.dateObject.date}),[`${r}-date-panel-date--week-hovered`]:this.isWeekHovered(c),[`${r}-date-panel-date--week-selected`]:c.inSelectedWeek}],onClick:()=>{this.handleDateClick(c)},onMouseenter:()=>{this.handleDateMouseEnter(c)}},i("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?i("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?i("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||a?i("div",{class:`${r}-date-panel-actions`},i("div",{class:`${r}-date-panel-actions__prefix`},a&&Object.keys(a).map(c=>{const u=a[c];return Array.isArray(u)?null:i(Ao,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(u)},onClick:()=>{this.handleSingleShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c})})),i("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?io(this.$slots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[i(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("now")?io(this.$slots.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[i(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null)):null,i(fr,{onFocus:this.handleFocusDetectorFocus}))}}),Gg=ie({name:"DateRangePanel",props:Aa,setup(e){return _a(e,"daterange")},render(){var e,t,o;const{mergedClsPrefix:r,mergedTheme:n,shortcuts:a,onRender:s,$slots:l}=this;return s==null||s(),i("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},i("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},i("div",{class:`${r}-date-panel-month`},i("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},ft(l["prev-year"],()=>[i(ar,null)])),i("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},ft(l["prev-month"],()=>[i(ir,null)])),i(Nr,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),i("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},ft(l["next-month"],()=>[i(sr,null)])),i("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},ft(l["next-year"],()=>[i(lr,null)]))),i("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(d=>i("div",{key:d,class:`${r}-date-panel-weekdays__day`},d))),i("div",{class:`${r}-date-panel__divider`}),i("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((d,c)=>i("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${r}-date-panel-date--current`]:d.isCurrentDate,[`${r}-date-panel-date--selected`]:d.selected,[`${r}-date-panel-date--covered`]:d.inSpan,[`${r}-date-panel-date--start`]:d.startOfSpan,[`${r}-date-panel-date--end`]:d.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>{this.handleDateClick(d)},onMouseenter:()=>{this.handleDateMouseEnter(d)}},i("div",{class:`${r}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?i("div",{class:`${r}-date-panel-date__sup`}):null)))),i("div",{class:`${r}-date-panel__vertical-divider`}),i("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},i("div",{class:`${r}-date-panel-month`},i("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},ft(l["prev-year"],()=>[i(ar,null)])),i("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},ft(l["prev-month"],()=>[i(ir,null)])),i(Nr,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),i("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},ft(l["next-month"],()=>[i(sr,null)])),i("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},ft(l["next-year"],()=>[i(lr,null)]))),i("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(d=>i("div",{key:d,class:`${r}-date-panel-weekdays__day`},d))),i("div",{class:`${r}-date-panel__divider`}),i("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((d,c)=>i("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${r}-date-panel-date--current`]:d.isCurrentDate,[`${r}-date-panel-date--selected`]:d.selected,[`${r}-date-panel-date--covered`]:d.inSpan,[`${r}-date-panel-date--start`]:d.startOfSpan,[`${r}-date-panel-date--end`]:d.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>{this.handleDateClick(d)},onMouseenter:()=>{this.handleDateMouseEnter(d)}},i("div",{class:`${r}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?i("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?i("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||a?i("div",{class:`${r}-date-panel-actions`},i("div",{class:`${r}-date-panel-actions__prefix`},a&&Object.keys(a).map(d=>{const c=a[d];return Array.isArray(c)||typeof c=="function"?i(Ao,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>d}):null})),i("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?io(l.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[i(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("confirm")?io(l.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},()=>[i(At,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,i(fr,{onFocus:this.handleFocusDetectorFocus}))}}),Yg=ie({name:"MonthRangePanel",props:Object.assign(Object.assign({},Aa),{type:{type:String,required:!0}}),setup(e){const t=_a(e,e.type),{dateLocaleRef:o}=zo("DatePicker"),r=(n,a,s,l)=>{const{handleColItemClick:d}=t;return i("div",{"data-n-date":!0,key:a,class:[`${s}-date-panel-month-calendar__picker-col-item`,n.isCurrent&&`${s}-date-panel-month-calendar__picker-col-item--current`,n.selected&&`${s}-date-panel-month-calendar__picker-col-item--selected`,!1],onClick:()=>{d(n,l)}},n.type==="month"?Qs(n.dateObject.month,n.monthFormat,o.value.locale):n.type==="quarter"?ed(n.dateObject.quarter,n.quarterFormat,o.value.locale):Js(n.dateObject.year,n.yearFormat,o.value.locale))};return Jt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:r})},render(){var e,t,o;const{mergedClsPrefix:r,mergedTheme:n,shortcuts:a,type:s,renderItem:l,onRender:d}=this;return d==null||d(),i("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},i("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},i("div",{class:`${r}-date-panel-month-calendar`},i(Lt,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>i(Sr,{ref:"startYearVlRef",items:this.startYearArray,itemSize:kr,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:u})=>l(c,u,r,"start")})}),s==="monthrange"||s==="quarterrange"?i("div",{class:`${r}-date-panel-month-calendar__picker-col`},i(Lt,{ref:"startMonthScrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar},{default:()=>[(s==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,u)=>l(c,u,r,"start")),s==="monthrange"&&i("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),i("div",{class:`${r}-date-panel__vertical-divider`}),i("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},i("div",{class:`${r}-date-panel-month-calendar`},i(Lt,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>i(Sr,{ref:"endYearVlRef",items:this.endYearArray,itemSize:kr,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:u})=>l(c,u,r,"end")})}),s==="monthrange"||s==="quarterrange"?i("div",{class:`${r}-date-panel-month-calendar__picker-col`},i(Lt,{ref:"endMonthScrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar},{default:()=>[(s==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,u)=>l(c,u,r,"end")),s==="monthrange"&&i("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?i("div",{class:`${r}-date-panel-footer`},Du(this.datePickerSlots,"footer")):null,!((e=this.actions)===null||e===void 0)&&e.length||a?i("div",{class:`${r}-date-panel-actions`},i("div",{class:`${r}-date-panel-actions__prefix`},a&&Object.keys(a).map(c=>{const u=a[c];return Array.isArray(u)||typeof u=="function"?i(Ao,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(u)},onClick:()=>{this.handleRangeShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),i("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?io(this.$slots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[i(Ao,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((o=this.actions)===null||o===void 0)&&o.includes("confirm")?io(this.$slots.confirm,{disabled:this.isRangeInvalid,onConfirm:this.handleConfirmClick,text:this.locale.confirm},()=>[i(Ao,{theme:n.peers.Button,themeOverrides:n.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,i(fr,{onFocus:this.handleFocusDetectorFocus}))}}),Xg=k([m("date-picker",` + position: relative; + z-index: auto; + `,[m("date-picker-icon",` + color: var(--n-icon-color-override); + transition: color .3s var(--n-bezier); + `),m("icon",` + color: var(--n-icon-color-override); + transition: color .3s var(--n-bezier); + `),z("disabled",[m("date-picker-icon",` + color: var(--n-icon-color-disabled-override); + `),m("icon",` + color: var(--n-icon-color-disabled-override); + `)])]),m("date-panel",` + width: fit-content; + outline: none; + margin: 4px 0; + display: grid; + grid-template-columns: 0fr; + border-radius: var(--n-panel-border-radius); + background-color: var(--n-panel-color); + color: var(--n-panel-text-color); + user-select: none; + `,[hr(),z("shadow",` + box-shadow: var(--n-panel-box-shadow); + `),m("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[z("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),m("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[P("picker-col",` + min-width: var(--n-scroll-item-width); + height: calc(var(--n-scroll-item-height) * 6); + user-select: none; + -webkit-user-select: none; + `,[k("&:first-child",` + min-width: calc(var(--n-scroll-item-width) + 4px); + `,[P("picker-col-item",[k("&::before","left: 4px;")])]),P("padding",` + height: calc(var(--n-scroll-item-height) * 5) + `)]),P("picker-col-item",` + z-index: 0; + cursor: pointer; + height: var(--n-scroll-item-height); + box-sizing: border-box; + padding-top: 4px; + display: flex; + align-items: center; + justify-content: center; + position: relative; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + background: #0000; + color: var(--n-item-text-color); + `,[k("&::before",` + z-index: -1; + content: ""; + position: absolute; + left: 0; + right: 4px; + top: 4px; + bottom: 0; + border-radius: var(--n-scroll-item-border-radius); + transition: + background-color .3s var(--n-bezier); + `),nt("disabled",[k("&:hover::before",` + background-color: var(--n-item-color-hover); + `),z("selected",` + color: var(--n-item-color-active); + `,[k("&::before","background-color: var(--n-item-color-hover);")])]),z("disabled",` + color: var(--n-item-text-color-disabled); + cursor: not-allowed; + `,[z("selected",[k("&::before",` + background-color: var(--n-item-color-disabled); + `)])])])]),z("date",{gridTemplateAreas:` + "left-calendar" + "footer" + "action" + `}),z("week",{gridTemplateAreas:` + "left-calendar" + "footer" + "action" + `}),z("daterange",{gridTemplateAreas:` + "left-calendar divider right-calendar" + "footer footer footer" + "action action action" + `}),z("datetime",{gridTemplateAreas:` + "header" + "left-calendar" + "footer" + "action" + `}),z("datetimerange",{gridTemplateAreas:` + "header header header" + "left-calendar divider right-calendar" + "footer footer footer" + "action action action" + `}),z("month",{gridTemplateAreas:` + "left-calendar" + "footer" + "action" + `}),m("date-panel-footer",{gridArea:"footer"}),m("date-panel-actions",{gridArea:"action"}),m("date-panel-header",{gridArea:"header"}),m("date-panel-header",` + box-sizing: border-box; + width: 100%; + align-items: center; + padding: var(--n-panel-header-padding); + display: flex; + justify-content: space-between; + border-bottom: 1px solid var(--n-panel-header-divider-color); + `,[k(">",[k("*:not(:last-child)",{marginRight:"10px"}),k("*",{flex:1,width:0}),m("time-picker",{zIndex:1})])]),m("date-panel-month",` + box-sizing: border-box; + display: grid; + grid-template-columns: var(--n-calendar-title-grid-template-columns); + align-items: center; + justify-items: center; + padding: var(--n-calendar-title-padding); + height: var(--n-calendar-title-height); + `,[P("prev, next, fast-prev, fast-next",` + line-height: 0; + cursor: pointer; + width: var(--n-arrow-size); + height: var(--n-arrow-size); + color: var(--n-arrow-color); + `),P("month-year",` + user-select: none; + -webkit-user-select: none; + flex-grow: 1; + position: relative; + `,[P("text",` + font-size: var(--n-calendar-title-font-size); + line-height: var(--n-calendar-title-font-size); + font-weight: var(--n-calendar-title-font-weight); + padding: 6px 8px; + text-align: center; + color: var(--n-calendar-title-text-color); + cursor: pointer; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-panel-border-radius); + `,[z("active",` + background-color: var(--n-calendar-title-color-hover); + `),k("&:hover",` + background-color: var(--n-calendar-title-color-hover); + `)])])]),m("date-panel-weekdays",` + display: grid; + margin: auto; + grid-template-columns: repeat(7, var(--n-item-cell-width)); + grid-template-rows: repeat(1, var(--n-item-cell-height)); + align-items: center; + justify-items: center; + margin-bottom: 4px; + border-bottom: 1px solid var(--n-calendar-days-divider-color); + `,[P("day",` + user-select: none; + -webkit-user-select: none; + line-height: 15px; + width: var(--n-item-size); + text-align: center; + font-size: var(--n-calendar-days-font-size); + color: var(--n-item-text-color); + `)]),m("date-panel-dates",` + margin: auto; + display: grid; + grid-template-columns: repeat(7, var(--n-item-cell-width)); + grid-template-rows: repeat(6, var(--n-item-cell-height)); + align-items: center; + justify-items: center; + flex-wrap: wrap; + `,[m("date-panel-date",` + user-select: none; + -webkit-user-select: none; + position: relative; + width: var(--n-item-size); + height: var(--n-item-size); + line-height: var(--n-item-size); + text-align: center; + font-size: var(--n-item-font-size); + border-radius: var(--n-item-border-radius); + z-index: 0; + cursor: pointer; + transition: + background-color .2s var(--n-bezier), + color .2s var(--n-bezier); + `,[P("trigger",` + position: absolute; + left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); + top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); + width: var(--n-item-cell-width); + height: var(--n-item-cell-height); + `),z("current",[P("sup",` + position: absolute; + top: 2px; + right: 2px; + content: ""; + height: 4px; + width: 4px; + border-radius: 2px; + background-color: var(--n-item-color-active); + transition: + background-color .2s var(--n-bezier); + `)]),k("&::after",` + content: ""; + z-index: -1; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + transition: background-color .3s var(--n-bezier); + `),z("covered, start, end",[nt("excluded",[k("&::before",` + content: ""; + z-index: -2; + position: absolute; + left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); + right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); + top: 0; + bottom: 0; + background-color: var(--n-item-color-included); + `),k("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),k("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),z("selected",{color:"var(--n-item-text-color-active)"},[k("&::after",{backgroundColor:"var(--n-item-color-active)"}),z("start",[k("&::before",{left:"50%"})]),z("end",[k("&::before",{right:"50%"})]),P("sup",{backgroundColor:"var(--n-panel-color)"})]),z("excluded",{color:"var(--n-item-text-color-disabled)"},[z("selected",[k("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),z("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[z("covered",[k("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),z("selected",[k("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),k("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),z("week-hovered",[k("&::before",` + background-color: var(--n-item-color-included); + `),k("&:nth-child(7n + 1)::before",` + border-top-left-radius: var(--n-item-border-radius); + border-bottom-left-radius: var(--n-item-border-radius); + `),k("&:nth-child(7n + 7)::before",` + border-top-right-radius: var(--n-item-border-radius); + border-bottom-right-radius: var(--n-item-border-radius); + `)]),z("week-selected",` + color: var(--n-item-text-color-active) + `,[k("&::before",` + background-color: var(--n-item-color-active); + `),k("&:nth-child(7n + 1)::before",` + border-top-left-radius: var(--n-item-border-radius); + border-bottom-left-radius: var(--n-item-border-radius); + `),k("&:nth-child(7n + 7)::before",` + border-top-right-radius: var(--n-item-border-radius); + border-bottom-right-radius: var(--n-item-border-radius); + `)])])]),nt("week",[m("date-panel-dates",[m("date-panel-date",[nt("disabled",[nt("selected",[k("&:hover",` + background-color: var(--n-item-color-hover); + `)])])])])]),z("week",[m("date-panel-dates",[m("date-panel-date",[k("&::before",` + content: ""; + z-index: -2; + position: absolute; + left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); + right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); + top: 0; + bottom: 0; + transition: background-color .3s var(--n-bezier); + `)])])]),P("vertical-divider",` + grid-area: divider; + height: 100%; + width: 1px; + background-color: var(--n-calendar-divider-color); + `),m("date-panel-footer",` + border-top: 1px solid var(--n-panel-action-divider-color); + padding: var(--n-panel-extra-footer-padding); + `),m("date-panel-actions",` + flex: 1; + padding: var(--n-panel-action-padding); + display: flex; + align-items: center; + justify-content: space-between; + border-top: 1px solid var(--n-panel-action-divider-color); + `,[P("prefix, suffix",` + display: flex; + margin-bottom: -8px; + `),P("suffix",` + align-self: flex-end; + `),P("prefix",` + flex-wrap: wrap; + `),m("button",` + margin-bottom: 8px; + `,[k("&:not(:last-child)",` + margin-right: 8px; + `)])])]),k("[data-n-date].transition-disabled",{transition:"none !important"},[k("&::before, &::after",{transition:"none !important"})])]),Zg=Object.assign(Object.assign({},Re.props),{to:Gt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timerPickerFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,monthFormat:{type:String,default:"M"},yearFormat:{type:String,default:"y"},quarterFormat:{type:String,default:"'Q'Q"},yearRange:{type:Array,default:()=>[1901,2100]},"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function,onChange:[Function,Array]}),iy=ie({name:"DatePicker",props:Zg,setup(e,{slots:t}){var o;const{localeRef:r,dateLocaleRef:n}=zo("DatePicker"),a=xo(e),{mergedSizeRef:s,mergedDisabledRef:l,mergedStatusRef:d}=a,{mergedComponentPropsRef:c,mergedClsPrefixRef:u,mergedBorderedRef:f,namespaceRef:v,inlineThemeDisabled:p}=Ze(e),h=B(null),g=B(null),b=B(null),y=B(!1),x=fe(e,"show"),T=Rt(x,y),$=C(()=>({locale:n.value.locale,useAdditionalWeekYearTokens:!0})),R=C(()=>{const{format:U}=e;if(U)return U;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat;case"week":return r.value.weekFormat}}),w=C(()=>{var U;return(U=e.valueFormat)!==null&&U!==void 0?U:R.value});function S(U){if(U===null)return null;const{value:ge}=w,{value:Te}=$;return Array.isArray(U)?[co(U[0],ge,new Date,Te).getTime(),co(U[1],ge,new Date,Te).getTime()]:co(U,ge,new Date,Te).getTime()}const{defaultFormattedValue:A,defaultValue:I}=e,M=B((o=A!==void 0?S(A):I)!==null&&o!==void 0?o:null),V=C(()=>{const{formattedValue:U}=e;return U!==void 0?S(U):e.value}),D=Rt(V,M),E=B(null);$t(()=>{E.value=D.value});const K=B(""),N=B(""),oe=B(""),q=Re("DatePicker","-date-picker",Xg,Dg,e,u),re=C(()=>{var U,ge;return((ge=(U=c==null?void 0:c.value)===null||U===void 0?void 0:U.DatePicker)===null||ge===void 0?void 0:ge.timePickerSize)||"small"}),me=C(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),ue=C(()=>{const{placeholder:U}=e;if(U===void 0){const{type:ge}=e;switch(ge){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;case"week":return r.value.weekPlaceholder;default:return""}}else return U}),W=C(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),H=C(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),F=C(()=>{const{actions:U,type:ge,clearable:Te}=e;if(U===null)return[];if(U!==void 0)return U;const je=Te?["clear"]:[];switch(ge){case"date":case"week":return je.push("now"),je;case"datetime":return je.push("now","confirm"),je;case"daterange":return je.push("confirm"),je;case"datetimerange":return je.push("confirm"),je;case"month":return je.push("now","confirm"),je;case"year":return je.push("now"),je;case"quarter":return je.push("now","confirm"),je;case"monthrange":case"yearrange":case"quarterrange":return je.push("confirm"),je;default:{go("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function j(U){if(U===null)return null;if(Array.isArray(U)){const{value:ge}=w,{value:Te}=$;return[Bt(U[0],ge,Te),Bt(U[1],ge,$.value)]}else return Bt(U,w.value,$.value)}function J(U){E.value=U}function se(U,ge){const{"onUpdate:formattedValue":Te,onUpdateFormattedValue:je}=e;Te&&ae(Te,U,ge),je&&ae(je,U,ge)}function be(U,ge){const{"onUpdate:value":Te,onUpdateValue:je,onChange:dt}=e,{nTriggerFormChange:et,nTriggerFormInput:ne}=a,$e=j(U);ge.doConfirm&&_(U,$e),je&&ae(je,U,$e),Te&&ae(Te,U,$e),dt&&ae(dt,U,$e),M.value=U,se($e,U),et(),ne()}function Ie(){const{onClear:U}=e;U==null||U()}function _(U,ge){const{onConfirm:Te}=e;Te&&Te(U,ge)}function Pe(U){const{onFocus:ge}=e,{nTriggerFormFocus:Te}=a;ge&&ae(ge,U),Te()}function Me(U){const{onBlur:ge}=e,{nTriggerFormBlur:Te}=a;ge&&ae(ge,U),Te()}function Ee(U){const{"onUpdate:show":ge,onUpdateShow:Te}=e;ge&&ae(ge,U),Te&&ae(Te,U),y.value=U}function Ge(U){U.key==="Escape"&&T.value&&(dn(U),ct({returnFocus:!0}))}function Ye(U){U.key==="Escape"&&T.value&&dn(U)}function st(){var U;Ee(!1),(U=b.value)===null||U===void 0||U.deactivate(),Ie()}function ot(){var U;(U=b.value)===null||U===void 0||U.deactivate(),Ie()}function xe(){ct({returnFocus:!0})}function te(U){var ge;T.value&&!(!((ge=g.value)===null||ge===void 0)&&ge.contains(Uo(U)))&&ct({returnFocus:!1})}function ce(U){ct({returnFocus:!0,disableUpdateOnClose:U})}function G(U,ge){ge?be(U,{doConfirm:!1}):J(U)}function Q(){const U=E.value;be(Array.isArray(U)?[U[0],U[1]]:U,{doConfirm:!0})}function pe(){const{value:U}=E;me.value?(Array.isArray(U)||U===null)&&de(U):Array.isArray(U)||Ce(U)}function Ce(U){U===null?K.value="":K.value=Bt(U,R.value,$.value)}function de(U){if(U===null)N.value="",oe.value="";else{const ge=$.value;N.value=Bt(U[0],R.value,ge),oe.value=Bt(U[1],R.value,ge)}}function L(){T.value||yt()}function we(U){var ge;!((ge=h.value)===null||ge===void 0)&&ge.$el.contains(U.relatedTarget)||(Me(U),pe(),ct({returnFocus:!1}))}function Ke(){l.value||(pe(),ct({returnFocus:!1}))}function Ct(U){if(U===""){be(null,{doConfirm:!1}),E.value=null,K.value="";return}const ge=co(U,R.value,new Date,$.value);Fo(ge)?(be(Ne(ge),{doConfirm:!1}),pe()):K.value=U}function Tt(U,{source:ge}){if(U[0]===""&&U[1]===""){be(null,{doConfirm:!1}),E.value=null,N.value="",oe.value="";return}const[Te,je]=U,dt=co(Te,R.value,new Date,$.value),et=co(je,R.value,new Date,$.value);if(Fo(dt)&&Fo(et)){let ne=Ne(dt),$e=Ne(et);et{pe()}),pe(),vt(T,U=>{U||(E.value=D.value)});const De=Ag(e,E),Xe=_g(e,E);Je(ai,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:u,mergedThemeRef:q,timePickerSizeRef:re,localeRef:r,dateLocaleRef:n,firstDayOfWeekRef:fe(e,"firstDayOfWeek"),isDateDisabledRef:fe(e,"isDateDisabled"),rangesRef:fe(e,"ranges"),timePickerPropsRef:fe(e,"timePickerProps"),closeOnSelectRef:fe(e,"closeOnSelect"),updateValueOnCloseRef:fe(e,"updateValueOnClose"),monthFormatRef:fe(e,"monthFormat"),yearFormatRef:fe(e,"yearFormat"),quarterFormatRef:fe(e,"quarterFormat"),yearRangeRef:fe(e,"yearRange")},De),Xe),{datePickerSlots:t}));const O={focus:()=>{var U;(U=b.value)===null||U===void 0||U.focus()},blur:()=>{var U;(U=b.value)===null||U===void 0||U.blur()}},Y=C(()=>{const{common:{cubicBezierEaseInOut:U},self:{iconColor:ge,iconColorDisabled:Te}}=q.value;return{"--n-bezier":U,"--n-icon-color-override":ge,"--n-icon-color-disabled-override":Te}}),ve=p?it("date-picker-trigger",void 0,Y,e):void 0,Fe=C(()=>{const{type:U}=e,{common:{cubicBezierEaseInOut:ge},self:{calendarTitleFontSize:Te,calendarDaysFontSize:je,itemFontSize:dt,itemTextColor:et,itemColorDisabled:ne,itemColorIncluded:$e,itemColorHover:He,itemColorActive:Qe,itemBorderRadius:Pt,itemTextColorDisabled:Ft,itemTextColorActive:xt,panelColor:Z,panelTextColor:ye,arrowColor:Ue,calendarTitleTextColor:X,panelActionDividerColor:he,panelHeaderDividerColor:ze,calendarDaysDividerColor:Oe,panelBoxShadow:Le,panelBorderRadius:pt,calendarTitleFontWeight:It,panelExtraFooterPadding:Ot,panelActionPadding:Yt,itemSize:eo,itemCellWidth:ee,itemCellHeight:ke,scrollItemWidth:Ve,scrollItemHeight:gt,calendarTitlePadding:at,calendarTitleHeight:ut,calendarDaysHeight:to,calendarDaysTextColor:vo,arrowSize:yo,panelHeaderPadding:Zo,calendarDividerColor:Lo,calendarTitleGridTempateColumns:Kr,iconColor:qr,iconColorDisabled:Gr,scrollItemBorderRadius:Yr,calendarTitleColorHover:Xr,[le("calendarLeftPadding",U)]:Zr,[le("calendarRightPadding",U)]:di}}=q.value;return{"--n-bezier":ge,"--n-panel-border-radius":pt,"--n-panel-color":Z,"--n-panel-box-shadow":Le,"--n-panel-text-color":ye,"--n-panel-header-padding":Zo,"--n-panel-header-divider-color":ze,"--n-calendar-left-padding":Zr,"--n-calendar-right-padding":di,"--n-calendar-title-color-hover":Xr,"--n-calendar-title-height":ut,"--n-calendar-title-padding":at,"--n-calendar-title-font-size":Te,"--n-calendar-title-font-weight":It,"--n-calendar-title-text-color":X,"--n-calendar-title-grid-template-columns":Kr,"--n-calendar-days-height":to,"--n-calendar-days-divider-color":Oe,"--n-calendar-days-font-size":je,"--n-calendar-days-text-color":vo,"--n-calendar-divider-color":Lo,"--n-panel-action-padding":Yt,"--n-panel-extra-footer-padding":Ot,"--n-panel-action-divider-color":he,"--n-item-font-size":dt,"--n-item-border-radius":Pt,"--n-item-size":eo,"--n-item-cell-width":ee,"--n-item-cell-height":ke,"--n-item-text-color":et,"--n-item-color-included":$e,"--n-item-color-disabled":ne,"--n-item-color-hover":He,"--n-item-color-active":Qe,"--n-item-text-color-disabled":Ft,"--n-item-text-color-active":xt,"--n-scroll-item-width":Ve,"--n-scroll-item-height":gt,"--n-scroll-item-border-radius":Yr,"--n-arrow-size":yo,"--n-arrow-color":Ue,"--n-icon-color":qr,"--n-icon-color-disabled":Gr}}),Be=p?it("date-picker",C(()=>e.type),Fe,e):void 0;return Object.assign(Object.assign({},O),{mergedStatus:d,mergedClsPrefix:u,mergedBordered:f,namespace:v,uncontrolledValue:M,pendingValue:E,panelInstRef:h,triggerElRef:g,inputInstRef:b,isMounted:qo(),displayTime:K,displayStartTime:N,displayEndTime:oe,mergedShow:T,adjustedTo:Gt(e),isRange:me,localizedStartPlaceholder:W,localizedEndPlaceholder:H,mergedSize:s,mergedDisabled:l,localizedPlacehoder:ue,isValueInvalid:De.isValueInvalidRef,isStartValueInvalid:Xe.isStartValueInvalidRef,isEndValueInvalid:Xe.isEndValueInvalidRef,handleInputKeydown:Ye,handleClickOutside:te,handleKeydown:Ge,handleClear:st,handlePanelClear:ot,handleTriggerClick:ht,handleInputActivate:L,handleInputDeactivate:Ke,handleInputFocus:bt,handleInputBlur:we,handlePanelTabOut:xe,handlePanelClose:ce,handleRangeUpdateValue:Tt,handleSingleUpdateValue:Ct,handlePanelUpdateValue:G,handlePanelConfirm:Q,mergedTheme:q,actions:F,triggerCssVars:p?void 0:Y,triggerThemeClass:ve==null?void 0:ve.themeClass,triggerOnRender:ve==null?void 0:ve.onRender,cssVars:p?void 0:Fe,themeClass:Be==null?void 0:Be.themeClass,onRender:Be==null?void 0:Be.onRender,onNextMonth:e.onNextMonth,onPrevMonth:e.onPrevMonth,onNextYear:e.onNextYear,onPrevYear:e.onPrevYear})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:o,$slots:r}=this,n={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,inputReadonly:this.inputReadonly||this.mergedDisabled,onRender:this.onRender,onNextMonth:this.onNextMonth,onPrevMonth:this.onPrevMonth,onNextYear:this.onNextYear,onPrevYear:this.onPrevYear,timerPickerFormat:this.timerPickerFormat},a=()=>{const{type:l}=this;return l==="datetime"?i(Ug,Object.assign({},n,{defaultCalendarStartTime:this.defaultCalendarStartTime}),r):l==="daterange"?i(Gg,Object.assign({},n,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="datetimerange"?i(Kg,Object.assign({},n,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="month"||l==="year"||l==="quarter"?i(Qd,Object.assign({},n,{type:l,key:l})):l==="monthrange"||l==="yearrange"||l==="quarterrange"?i(Yg,Object.assign({},n,{type:l})):i(qg,Object.assign({},n,{type:l,defaultCalendarStartTime:this.defaultCalendarStartTime}),r)};if(this.panel)return a();t==null||t();const s={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return i("div",{ref:"triggerElRef",class:[`${o}-date-picker`,this.mergedDisabled&&`${o}-date-picker--disabled`,this.isRange&&`${o}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},i(Pr,null,{default:()=>[i(zr,null,{default:()=>this.isRange?i(Bo,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},s),{separator:()=>this.separator===void 0?ft(r.separator,()=>[i(kt,{clsPrefix:o,class:`${o}-date-picker-icon`},{default:()=>i(Sf,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>ft(r["date-icon"],()=>[i(kt,{clsPrefix:o,class:`${o}-date-picker-icon`},{default:()=>i(pl,null)})])}):i(Bo,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},s),{[e?"clear-icon-placeholder":"suffix"]:()=>i(kt,{clsPrefix:o,class:`${o}-date-picker-icon`},{default:()=>ft(r["date-icon"],()=>[i(pl,null)])})})}),i(Rr,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Gt.tdkey,placement:this.placement},{default:()=>i(Vt,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?lo(a(),[[Ho,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),Qg={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function Jd(e){const{tableHeaderColor:t,textColor2:o,textColor1:r,cardColor:n,modalColor:a,popoverColor:s,dividerColor:l,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:v,fontSizeLarge:p}=e;return Object.assign(Object.assign({},Qg),{lineHeight:u,fontSizeSmall:f,fontSizeMedium:v,fontSizeLarge:p,titleTextColor:r,thColor:We(n,t),thColorModal:We(a,t),thColorPopover:We(s,t),thTextColor:r,thFontWeight:c,tdTextColor:o,tdColor:n,tdColorModal:a,tdColorPopover:s,borderColor:We(n,l),borderColorModal:We(a,l),borderColorPopover:We(s,l),borderRadius:d})}const Jg={name:"Descriptions",common:lt,self:Jd},em={name:"Descriptions",common:_e,self:Jd},ec="DESCRIPTION_ITEM_FLAG";function tm(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[ec]:!1}const om=k([m("descriptions",{fontSize:"var(--n-font-size)"},[m("descriptions-separator",` + display: inline-block; + margin: 0 8px 0 2px; + `),m("descriptions-table-wrapper",[m("descriptions-table",[m("descriptions-table-row",[m("descriptions-table-header",{padding:"var(--n-th-padding)"}),m("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),nt("bordered",[m("descriptions-table-wrapper",[m("descriptions-table",[m("descriptions-table-row",[k("&:last-child",[m("descriptions-table-content",{paddingBottom:0})])])])])]),z("left-label-placement",[m("descriptions-table-content",[k("> *",{verticalAlign:"top"})])]),z("left-label-align",[k("th",{textAlign:"left"})]),z("center-label-align",[k("th",{textAlign:"center"})]),z("right-label-align",[k("th",{textAlign:"right"})]),z("bordered",[m("descriptions-table-wrapper",` + border-radius: var(--n-border-radius); + overflow: hidden; + background: var(--n-merged-td-color); + border: 1px solid var(--n-merged-border-color); + `,[m("descriptions-table",[m("descriptions-table-row",[k("&:not(:last-child)",[m("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),m("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),m("descriptions-table-header",` + font-weight: 400; + background-clip: padding-box; + background-color: var(--n-merged-th-color); + `,[k("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),m("descriptions-table-content",[k("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),m("descriptions-header",` + font-weight: var(--n-th-font-weight); + font-size: 18px; + transition: color .3s var(--n-bezier); + line-height: var(--n-line-height); + margin-bottom: 16px; + color: var(--n-title-text-color); + `),m("descriptions-table-wrapper",` + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[m("descriptions-table",` + width: 100%; + border-collapse: separate; + border-spacing: 0; + box-sizing: border-box; + `,[m("descriptions-table-row",` + box-sizing: border-box; + transition: border-color .3s var(--n-bezier); + `,[m("descriptions-table-header",` + font-weight: var(--n-th-font-weight); + line-height: var(--n-line-height); + display: table-cell; + box-sizing: border-box; + color: var(--n-th-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),m("descriptions-table-content",` + vertical-align: top; + line-height: var(--n-line-height); + display: table-cell; + box-sizing: border-box; + color: var(--n-td-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[P("content",` + transition: color .3s var(--n-bezier); + display: inline-block; + color: var(--n-td-text-color); + `)]),P("label",` + font-weight: var(--n-th-font-weight); + transition: color .3s var(--n-bezier); + display: inline-block; + margin-right: 14px; + color: var(--n-th-text-color); + `)])])])]),m("descriptions-table-wrapper",` + --n-merged-th-color: var(--n-th-color); + --n-merged-td-color: var(--n-td-color); + --n-merged-border-color: var(--n-border-color); + `),jr(m("descriptions-table-wrapper",` + --n-merged-th-color: var(--n-th-color-modal); + --n-merged-td-color: var(--n-td-color-modal); + --n-merged-border-color: var(--n-border-color-modal); + `)),pn(m("descriptions-table-wrapper",` + --n-merged-th-color: var(--n-th-color-popover); + --n-merged-td-color: var(--n-td-color-popover); + --n-merged-border-color: var(--n-border-color-popover); + `))]),rm=Object.assign(Object.assign({},Re.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelClass:String,labelStyle:[Object,String],contentClass:String,contentStyle:[Object,String]}),ay=ie({name:"Descriptions",props:rm,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),r=Re("Descriptions","-descriptions",om,Jg,e,t),n=C(()=>{const{size:s,bordered:l}=e,{common:{cubicBezierEaseInOut:d},self:{titleTextColor:c,thColor:u,thColorModal:f,thColorPopover:v,thTextColor:p,thFontWeight:h,tdTextColor:g,tdColor:b,tdColorModal:y,tdColorPopover:x,borderColor:T,borderColorModal:$,borderColorPopover:R,borderRadius:w,lineHeight:S,[le("fontSize",s)]:A,[le(l?"thPaddingBordered":"thPadding",s)]:I,[le(l?"tdPaddingBordered":"tdPadding",s)]:M}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":I,"--n-td-padding":M,"--n-font-size":A,"--n-bezier":d,"--n-th-font-weight":h,"--n-line-height":S,"--n-th-text-color":p,"--n-td-text-color":g,"--n-th-color":u,"--n-th-color-modal":f,"--n-th-color-popover":v,"--n-td-color":b,"--n-td-color-modal":y,"--n-td-color-popover":x,"--n-border-radius":w,"--n-border-color":T,"--n-border-color-modal":$,"--n-border-color-popover":R}}),a=o?it("descriptions",C(()=>{let s="";const{size:l,bordered:d}=e;return d&&(s+="a"),s+=l[0],s}),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender,compitableColumn:nr(e,["columns","column"]),inlineThemeDisabled:o}},render(){const e=this.$slots.default,t=e?Io(e()):[];t.length;const{contentClass:o,labelClass:r,compitableColumn:n,labelPlacement:a,labelAlign:s,size:l,bordered:d,title:c,cssVars:u,mergedClsPrefix:f,separator:v,onRender:p}=this;p==null||p();const h=t.filter(x=>tm(x)),g={span:0,row:[],secondRow:[],rows:[]},y=h.reduce((x,T,$)=>{const R=T.props||{},w=h.length-1===$,S=["label"in R?R.label:ol(T,"label")],A=[ol(T)],I=R.span||1,M=x.span;x.span+=I;const V=R.labelStyle||R["label-style"]||this.labelStyle,D=R.contentStyle||R["content-style"]||this.contentStyle;if(a==="left")d?x.row.push(i("th",{class:[`${f}-descriptions-table-header`,r],colspan:1,style:V},S),i("td",{class:[`${f}-descriptions-table-content`,o],colspan:w?(n-M)*2+1:I*2-1,style:D},A)):x.row.push(i("td",{class:`${f}-descriptions-table-content`,colspan:w?(n-M)*2:I*2},i("span",{class:[`${f}-descriptions-table-content__label`,r],style:V},[...S,v&&i("span",{class:`${f}-descriptions-separator`},v)]),i("span",{class:[`${f}-descriptions-table-content__content`,o],style:D},A)));else{const E=w?(n-M)*2:I*2;x.row.push(i("th",{class:[`${f}-descriptions-table-header`,r],colspan:E,style:V},S)),x.secondRow.push(i("td",{class:[`${f}-descriptions-table-content`,o],colspan:E,style:D},A))}return(x.span>=n||w)&&(x.span=0,x.row.length&&(x.rows.push(x.row),x.row=[]),a!=="left"&&x.secondRow.length&&(x.rows.push(x.secondRow),x.secondRow=[])),x},g).rows.map(x=>i("tr",{class:`${f}-descriptions-table-row`},x));return i("div",{style:u,class:[`${f}-descriptions`,this.themeClass,`${f}-descriptions--${a}-label-placement`,`${f}-descriptions--${s}-label-align`,`${f}-descriptions--${l}-size`,d&&`${f}-descriptions--bordered`]},c||this.$slots.header?i("div",{class:`${f}-descriptions-header`},c||vn(this,"header")):null,i("div",{class:`${f}-descriptions-table-wrapper`},i("table",{class:`${f}-descriptions-table`},i("tbody",null,a==="top"&&i("tr",{class:`${f}-descriptions-table-row`,style:{visibility:"collapse"}},la(n*2,i("td",null))),y))))}}),nm={label:String,span:{type:Number,default:1},labelClass:String,labelStyle:[Object,String],contentClass:String,contentStyle:[Object,String]},ly=ie({name:"DescriptionsItem",[ec]:!0,props:nm,render(){return null}}),im={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"};function tc(e){const{textColor1:t,textColor2:o,modalColor:r,closeIconColor:n,closeIconColorHover:a,closeIconColorPressed:s,closeColorHover:l,closeColorPressed:d,infoColor:c,successColor:u,warningColor:f,errorColor:v,primaryColor:p,dividerColor:h,borderRadius:g,fontWeightStrong:b,lineHeight:y,fontSize:x}=e;return Object.assign(Object.assign({},im),{fontSize:x,lineHeight:y,border:`1px solid ${h}`,titleTextColor:t,textColor:o,color:r,closeColorHover:l,closeColorPressed:d,closeIconColor:n,closeIconColorHover:a,closeIconColorPressed:s,closeBorderRadius:g,iconColor:p,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:v,borderRadius:g,titleFontWeight:b})}const oc={name:"Dialog",common:lt,peers:{Button:pr},self:tc},rc={name:"Dialog",common:_e,peers:{Button:ho},self:tc},li={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,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function},nc=ko(li),am=k([m("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); + position: relative; + background: var(--n-color); + color: var(--n-text-color); + box-sizing: border-box; + margin: auto; + border-radius: var(--n-border-radius); + padding: var(--n-padding); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `,[P("icon",{color:"var(--n-icon-color)"}),z("bordered",{border:"var(--n-border)"}),z("icon-top",[P("close",{margin:"var(--n-close-margin)"}),P("icon",{margin:"var(--n-icon-margin)"}),P("content",{textAlign:"center"}),P("title",{justifyContent:"center"}),P("action",{justifyContent:"center"})]),z("icon-left",[P("icon",{margin:"var(--n-icon-margin)"}),z("closable",[P("title",` + padding-right: calc(var(--n-close-size) + 6px); + `)])]),P("close",` + position: absolute; + right: 0; + top: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + z-index: 1; + `),P("content",` + font-size: var(--n-font-size); + margin: var(--n-content-margin); + position: relative; + word-break: break-word; + `,[z("last","margin-bottom: 0;")]),P("action",` + display: flex; + justify-content: flex-end; + `,[k("> *:not(:last-child)",` + margin-right: var(--n-action-space); + `)]),P("icon",` + font-size: var(--n-icon-size); + transition: color .3s var(--n-bezier); + `),P("title",` + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + font-size: var(--n-title-font-size); + font-weight: var(--n-title-font-weight); + color: var(--n-title-text-color); + `),m("dialog-icon-container",` + display: flex; + justify-content: center; + `)]),jr(m("dialog",` + width: 446px; + max-width: calc(100vw - 32px); + `)),m("dialog",[fs(` + width: 446px; + max-width: calc(100vw - 32px); + `)])]),lm={default:()=>i(Er,null),info:()=>i(Er,null),success:()=>i(xn,null),warning:()=>i(Cn,null),error:()=>i(bn,null)},ic=ie({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Re.props),li),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=Ze(e),a=Nt("Dialog",n,o),s=C(()=>{var p,h;const{iconPlacement:g}=e;return g||((h=(p=t==null?void 0:t.value)===null||p===void 0?void 0:p.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function l(p){const{onPositiveClick:h}=e;h&&h(p)}function d(p){const{onNegativeClick:h}=e;h&&h(p)}function c(){const{onClose:p}=e;p&&p()}const u=Re("Dialog","-dialog",am,oc,e,o),f=C(()=>{const{type:p}=e,h=s.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:b,lineHeight:y,border:x,titleTextColor:T,textColor:$,color:R,closeBorderRadius:w,closeColorHover:S,closeColorPressed:A,closeIconColor:I,closeIconColorHover:M,closeIconColorPressed:V,closeIconSize:D,borderRadius:E,titleFontWeight:K,titleFontSize:N,padding:oe,iconSize:q,actionSpace:re,contentMargin:me,closeSize:ue,[h==="top"?"iconMarginIconTop":"iconMargin"]:W,[h==="top"?"closeMarginIconTop":"closeMargin"]:H,[le("iconColor",p)]:F}}=u.value,j=qt(W);return{"--n-font-size":b,"--n-icon-color":F,"--n-bezier":g,"--n-close-margin":H,"--n-icon-margin-top":j.top,"--n-icon-margin-right":j.right,"--n-icon-margin-bottom":j.bottom,"--n-icon-margin-left":j.left,"--n-icon-size":q,"--n-close-size":ue,"--n-close-icon-size":D,"--n-close-border-radius":w,"--n-close-color-hover":S,"--n-close-color-pressed":A,"--n-close-icon-color":I,"--n-close-icon-color-hover":M,"--n-close-icon-color-pressed":V,"--n-color":R,"--n-text-color":$,"--n-border-radius":E,"--n-padding":oe,"--n-line-height":y,"--n-border":x,"--n-content-margin":me,"--n-title-font-size":N,"--n-title-font-weight":K,"--n-title-text-color":T,"--n-action-space":re}}),v=r?it("dialog",C(()=>`${e.type[0]}${s.value[0]}`),f,e):void 0;return{mergedClsPrefix:o,rtlEnabled:a,mergedIconPlacement:s,mergedTheme:u,handlePositiveClick:l,handleNegativeClick:d,handleCloseClick:c,cssVars:r?void 0:f,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:o,cssVars:r,closable:n,showIcon:a,title:s,content:l,action:d,negativeText:c,positiveText:u,positiveButtonProps:f,negativeButtonProps:v,handlePositiveClick:p,handleNegativeClick:h,mergedTheme:g,loading:b,type:y,mergedClsPrefix:x}=this;(e=this.onRender)===null||e===void 0||e.call(this);const T=a?i(kt,{clsPrefix:x,class:`${x}-dialog__icon`},{default:()=>mt(this.$slots.icon,R=>R||(this.icon?St(this.icon):lm[this.type]()))}):null,$=mt(this.$slots.action,R=>R||u||c||d?i("div",{class:[`${x}-dialog__action`,this.actionClass],style:this.actionStyle},R||(d?[St(d)]:[this.negativeText&&i(At,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:h},v),{default:()=>St(this.negativeText)}),this.positiveText&&i(At,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:"small",type:y==="default"?"primary":y,disabled:b,loading:b,onClick:p},f),{default:()=>St(this.positiveText)})])):null);return i("div",{class:[`${x}-dialog`,this.themeClass,this.closable&&`${x}-dialog--closable`,`${x}-dialog--icon-${o}`,t&&`${x}-dialog--bordered`,this.rtlEnabled&&`${x}-dialog--rtl`],style:r,role:"dialog"},n?mt(this.$slots.close,R=>{const w=[`${x}-dialog__close`,this.rtlEnabled&&`${x}-dialog--rtl`];return R?i("div",{class:w},R):i(ur,{clsPrefix:x,class:w,onClick:this.handleCloseClick})}):null,a&&o==="top"?i("div",{class:`${x}-dialog-icon-container`},T):null,i("div",{class:[`${x}-dialog__title`,this.titleClass],style:this.titleStyle},a&&o==="left"?T:null,ft(this.$slots.header,()=>[St(s)])),i("div",{class:[`${x}-dialog__content`,$?"":`${x}-dialog__content--last`,this.contentClass],style:this.contentStyle},ft(this.$slots.default,()=>[St(l)])),$)}}),ac="n-dialog-provider",lc="n-dialog-api",sm="n-dialog-reactive-list";function sc(e){const{modalColor:t,textColor2:o,boxShadow3:r}=e;return{color:t,textColor:o,boxShadow:r}}const dm={name:"Modal",common:lt,peers:{Scrollbar:Eo,Dialog:oc,Card:nd},self:sc},cm={name:"Modal",common:_e,peers:{Scrollbar:fo,Dialog:rc,Card:id},self:sc},Ha=Object.assign(Object.assign({},ka),li),um=ko(Ha),fm=ie({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},Ha),{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=B(null),o=B(null),r=B(e.show),n=B(null),a=B(null);vt(fe(e,"show"),b=>{b&&(r.value=!0)}),xs(C(()=>e.blockScroll&&r.value));const s=Ae(gs);function l(){if(s.transformOriginRef.value==="center")return"";const{value:b}=n,{value:y}=a;if(b===null||y===null)return"";if(o.value){const x=o.value.containerScrollTop;return`${b}px ${y+x}px`}return""}function d(b){if(s.transformOriginRef.value==="center")return;const y=s.getMousePosition();if(!y||!o.value)return;const x=o.value.containerScrollTop,{offsetLeft:T,offsetTop:$}=b;if(y){const R=y.y,w=y.x;n.value=-(T-w),a.value=-($-R-x)}b.style.transformOrigin=l()}function c(b){zt(()=>{d(b)})}function u(b){b.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,n.value=null,a.value=null,e.onAfterLeave()}function v(){const{onClose:b}=e;b&&b()}function p(){e.onNegativeClick()}function h(){e.onPositiveClick()}const g=B(null);return vt(g,b=>{b&&zt(()=>{const y=b.el;y&&t.value!==y&&(t.value=y)})}),Je(gn,t),Je(mn,null),Je(Vr,null),{mergedTheme:s.mergedThemeRef,appear:s.appearRef,isMounted:s.isMountedRef,mergedClsPrefix:s.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,displayed:r,childNodeRef:g,handlePositiveClick:h,handleNegativeClick:p,handleCloseClick:v,handleAfterLeave:f,handleBeforeLeave:u,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterLeave:r,handleBeforeLeave:n,preset:a,mergedClsPrefix:s}=this;let l=null;if(!a){if(l=Ui(e),!l){go("modal","default slot is empty");return}l=an(l),l.props=ao({class:`${s}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?lo(i("div",{role:"none",class:`${s}-modal-body-wrapper`},i(Lt,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${s}-modal-scroll-content`},{default:()=>{var d;return[(d=this.renderMask)===null||d===void 0?void 0:d.call(this),i(fa,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return i(Vt,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:o,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:n},{default:()=>{const u=[[_o,this.show]],{onClickoutside:f}=this;return f&&u.push([Ho,this.onClickoutside,void 0,{capture:!0}]),lo(this.preset==="confirm"||this.preset==="dialog"?i(ic,Object.assign({},this.$attrs,{class:[`${s}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},po(this.$props,nc),{"aria-modal":"true"}),e):this.preset==="card"?i(jv,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${s}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},po(this.$props,Lv),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,u)}})}})]}})),[[_o,this.displayDirective==="if"||this.displayed||this.show]]):null}}),hm=k([m("modal-container",` + position: fixed; + left: 0; + top: 0; + height: 0; + width: 0; + display: flex; + `),m("modal-mask",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + background-color: rgba(0, 0, 0, .4); + `,[Sn({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),m("modal-body-wrapper",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: visible; + `,[m("modal-scroll-content",` + min-height: 100%; + display: flex; + position: relative; + `)]),m("modal",` + position: relative; + align-self: center; + color: var(--n-text-color); + margin: auto; + box-shadow: var(--n-box-shadow); + `,[hr({duration:".25s",enterScale:".5"})])]),dc=Object.assign(Object.assign(Object.assign(Object.assign({},Re.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}}),Ha),{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,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),cc=ie({name:"Modal",inheritAttrs:!1,props:dc,setup(e){const t=B(null),{mergedClsPrefixRef:o,namespaceRef:r,inlineThemeDisabled:n}=Ze(e),a=Re("Modal","-modal",hm,dm,e,o),s=Kn(64),l=qn(),d=qo(),c=e.internalDialog?Ae(ac,null):null,u=e.internalModal?Ae(of,null):null,f=Cs();function v(w){const{onUpdateShow:S,"onUpdate:show":A,onHide:I}=e;S&&ae(S,w),A&&ae(A,w),I&&!w&&I(w)}function p(){const{onClose:w}=e;w?Promise.resolve(w()).then(S=>{S!==!1&&v(!1)}):v(!1)}function h(){const{onPositiveClick:w}=e;w?Promise.resolve(w()).then(S=>{S!==!1&&v(!1)}):v(!1)}function g(){const{onNegativeClick:w}=e;w?Promise.resolve(w()).then(S=>{S!==!1&&v(!1)}):v(!1)}function b(){const{onBeforeLeave:w,onBeforeHide:S}=e;w&&ae(w),S&&S()}function y(){const{onAfterLeave:w,onAfterHide:S}=e;w&&ae(w),S&&S()}function x(w){var S;const{onMaskClick:A}=e;A&&A(w),e.maskClosable&&!((S=t.value)===null||S===void 0)&&S.contains(Uo(w))&&v(!1)}function T(w){var S;(S=e.onEsc)===null||S===void 0||S.call(e),e.show&&e.closeOnEsc&&vs(w)&&(f.value||v(!1))}Je(gs,{getMousePosition:()=>{const w=c||u;if(w){const{clickedRef:S,clickedPositionRef:A}=w;if(S.value&&A.value)return A.value}return s.value?l.value:null},mergedClsPrefixRef:o,mergedThemeRef:a,isMountedRef:d,appearRef:fe(e,"internalAppear"),transformOriginRef:fe(e,"transformOrigin")});const $=C(()=>{const{common:{cubicBezierEaseOut:w},self:{boxShadow:S,color:A,textColor:I}}=a.value;return{"--n-bezier-ease-out":w,"--n-box-shadow":S,"--n-color":A,"--n-text-color":I}}),R=n?it("theme-class",void 0,$,e):void 0;return{mergedClsPrefix:o,namespace:r,isMounted:d,containerRef:t,presetProps:C(()=>po(e,um)),handleEsc:T,handleAfterLeave:y,handleClickoutside:x,handleBeforeLeave:b,doUpdateShow:v,handleNegativeClick:g,handlePositiveClick:h,handleCloseClick:p,cssVars:n?void 0:$,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender}},render(){const{mergedClsPrefix:e}=this;return i(ns,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:o}=this;return lo(i("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},i(fm,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:o?void 0:this.handleClickoutside,renderMask:o?()=>{var r;return i(Vt,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?i("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[va,{zIndex:this.zIndex,enabled:this.show}]])}})}}),vm=Object.assign(Object.assign({},li),{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}),pm=ie({name:"DialogEnvironment",props:Object.assign(Object.assign({},vm),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=B(!0);function o(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:v}=e;u&&u(f),v&&v()}function r(u){const{onPositiveClick:f}=e;f?Promise.resolve(f(u)).then(v=>{v!==!1&&d()}):d()}function n(u){const{onNegativeClick:f}=e;f?Promise.resolve(f(u)).then(v=>{v!==!1&&d()}):d()}function a(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function s(u){const{onMaskClick:f,maskClosable:v}=e;f&&(f(u),v&&d())}function l(){const{onEsc:u}=e;u&&u()}function d(){t.value=!1}function c(u){t.value=u}return{show:t,hide:d,handleUpdateShow:c,handleAfterLeave:o,handleCloseClick:a,handleNegativeClick:n,handlePositiveClick:r,handleMaskClick:s,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:r,handleAfterLeave:n,handleMaskClick:a,handleEsc:s,to:l,maskClosable:d,show:c}=this;return i(cc,{show:c,onUpdateShow:t,onMaskClick:a,onEsc:s,to:l,maskClosable:d,onAfterEnter:this.onAfterEnter,onAfterLeave:n,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>i(ic,Object.assign({},po(this.$props,nc),{style:this.internalStyle,onClose:r,onNegativeClick:o,onPositiveClick:e}))})}}),gm={injectionKey:String,to:[String,Object]},mm=ie({name:"DialogProvider",props:gm,setup(){const e=B([]),t={};function o(l={}){const d=Ko(),c=ti(Object.assign(Object.assign({},l),{key:d,destroy:()=>{var u;(u=t[`n-dialog-${d}`])===null||u===void 0||u.hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>d=>o(Object.assign(Object.assign({},d),{type:l})));function n(l){const{value:d}=e;d.splice(d.findIndex(c=>c.key===l),1)}function a(){Object.values(t).forEach(l=>{l==null||l.hide()})}const s={create:o,destroyAll:a,info:r[0],success:r[1],warning:r[2],error:r[3]};return Je(lc,s),Je(ac,{clickedRef:Kn(64),clickedPositionRef:qn()}),Je(sm,e),Object.assign(Object.assign({},s),{dialogList:e,dialogInstRefs:t,handleAfterLeave:n})},render(){var e,t;return i(Wt,null,[this.dialogList.map(o=>i(pm,$r(o,["destroy","style"],{internalStyle:o.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${o.key}`]:this.dialogInstRefs[`n-dialog-${o.key}`]=r},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function bm(){const e=Ae(lc,null);return e===null&&Go("use-dialog","No outer founded."),e}function uc(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const xm={name:"Divider",common:lt,self:uc},Cm={name:"Divider",common:_e,self:uc},ym=m("divider",` + position: relative; + display: flex; + width: 100%; + box-sizing: border-box; + font-size: 16px; + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); +`,[nt("vertical",` + margin-top: 24px; + margin-bottom: 24px; + `,[nt("no-title",` + display: flex; + align-items: center; + `)]),P("title",` + display: flex; + align-items: center; + margin-left: 12px; + margin-right: 12px; + white-space: nowrap; + font-weight: var(--n-font-weight); + `),z("title-position-left",[P("line",[z("left",{width:"28px"})])]),z("title-position-right",[P("line",[z("right",{width:"28px"})])]),z("dashed",[P("line",` + background-color: #0000; + height: 0px; + width: 100%; + border-style: dashed; + border-width: 1px 0 0; + `)]),z("vertical",` + display: inline-block; + height: 1em; + margin: 0 8px; + vertical-align: middle; + width: 1px; + `),P("line",` + border: none; + transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); + height: 1px; + width: 100%; + margin: 0; + `),nt("dashed",[P("line",{backgroundColor:"var(--n-color)"})]),z("dashed",[P("line",{borderColor:"var(--n-color)"})]),z("vertical",{backgroundColor:"var(--n-color)"})]),wm=Object.assign(Object.assign({},Re.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),sy=ie({name:"Divider",props:wm,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),r=Re("Divider","-divider",ym,xm,e,t),n=C(()=>{const{common:{cubicBezierEaseInOut:s},self:{color:l,textColor:d,fontWeight:c}}=r.value;return{"--n-bezier":s,"--n-color":l,"--n-text-color":d,"--n-font-weight":c}}),a=o?it("divider",void 0,n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;const{$slots:t,titlePlacement:o,vertical:r,dashed:n,cssVars:a,mergedClsPrefix:s}=this;return(e=this.onRender)===null||e===void 0||e.call(this),i("div",{role:"separator",class:[`${s}-divider`,this.themeClass,{[`${s}-divider--vertical`]:r,[`${s}-divider--no-title`]:!t.default,[`${s}-divider--dashed`]:n,[`${s}-divider--title-position-${o}`]:t.default&&o}],style:a},r?null:i("div",{class:`${s}-divider__line ${s}-divider__line--left`}),!r&&t.default?i(Wt,null,i("div",{class:`${s}-divider__title`},this.$slots),i("div",{class:`${s}-divider__line ${s}-divider__line--right`})):null)}});function fc(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:a,fontWeightStrong:s,dividerColor:l,closeColorHover:d,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,borderRadius:p,primaryColorHover:h}=e;return{bodyPadding:"16px 24px",borderRadius:p,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:s,boxShadow:n,lineHeight:a,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,closeSize:"22px",closeIconSize:"18px",closeColorHover:d,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:h}}const Sm={name:"Drawer",common:lt,peers:{Scrollbar:Eo},self:fc},km={name:"Drawer",common:_e,peers:{Scrollbar:fo},self:fc},Rm=ie({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=B(!!e.show),o=B(null),r=Ae(ga);let n=0,a="",s=null;const l=B(!1),d=B(!1),c=C(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:u,mergedRtlRef:f}=Ze(e),v=Nt("Drawer",f,u),p=w,h=I=>{d.value=!0,n=c.value?I.clientY:I.clientX,a=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",R),document.body.addEventListener("mouseleave",p),document.body.addEventListener("mouseup",w)},g=()=>{s!==null&&(window.clearTimeout(s),s=null),d.value?l.value=!0:s=window.setTimeout(()=>{l.value=!0},300)},b=()=>{s!==null&&(window.clearTimeout(s),s=null),l.value=!1},{doUpdateHeight:y,doUpdateWidth:x}=r,T=I=>{const{maxWidth:M}=e;if(M&&I>M)return M;const{minWidth:V}=e;return V&&I{const{maxHeight:M}=e;if(M&&I>M)return M;const{minHeight:V}=e;return V&&I{e.show&&(t.value=!0)}),vt(()=>e.show,I=>{I||w()}),mo(()=>{w()});const S=C(()=>{const{show:I}=e,M=[[_o,I]];return e.showMask||M.push([Ho,e.onClickoutside,void 0,{capture:!0}]),M});function A(){var I;t.value=!1,(I=e.onAfterLeave)===null||I===void 0||I.call(e)}return xs(C(()=>e.blockScroll&&t.value)),Je(mn,o),Je(Vr,null),Je(gn,null),{bodyRef:o,rtlEnabled:v,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:C(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:A,bodyDirectives:S,handleMousedownResizeTrigger:h,handleMouseenterResizeTrigger:g,handleMouseleaveResizeTrigger:b,isDragging:d,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?lo(i("div",{role:"none"},i(fa,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>i(Vt,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>lo(i("div",ao(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?i("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?i("div",{class:[`${t}-drawer-content-wrapper`,this.contentClass],style:this.contentStyle,role:"none"},e):i(Lt,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[_o,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:zm,cubicBezierEaseOut:Pm}=Co;function $m({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-right"}={}){return[k(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${zm}`}),k(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${Pm}`}),k(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),k(`&.${o}-transition-enter-from`,{transform:"translateX(100%)"}),k(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),k(`&.${o}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:Tm,cubicBezierEaseOut:Fm}=Co;function Im({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-left"}={}){return[k(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${Tm}`}),k(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${Fm}`}),k(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),k(`&.${o}-transition-enter-from`,{transform:"translateX(-100%)"}),k(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),k(`&.${o}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:Bm,cubicBezierEaseOut:Om}=Co;function Dm({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-top"}={}){return[k(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${Bm}`}),k(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${Om}`}),k(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),k(`&.${o}-transition-enter-from`,{transform:"translateY(-100%)"}),k(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),k(`&.${o}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:Mm,cubicBezierEaseOut:Am}=Co;function _m({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-bottom"}={}){return[k(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${Mm}`}),k(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${Am}`}),k(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),k(`&.${o}-transition-enter-from`,{transform:"translateY(100%)"}),k(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),k(`&.${o}-transition-leave-to`,{transform:"translateY(100%)"})]}const Hm=k([m("drawer",` + word-break: break-word; + line-height: var(--n-line-height); + position: absolute; + pointer-events: all; + box-shadow: var(--n-box-shadow); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + background-color: var(--n-color); + color: var(--n-text-color); + box-sizing: border-box; + `,[$m(),Im(),Dm(),_m(),z("unselectable",` + user-select: none; + -webkit-user-select: none; + `),z("native-scrollbar",[m("drawer-content-wrapper",` + overflow: auto; + height: 100%; + `)]),P("resize-trigger",` + position: absolute; + background-color: #0000; + transition: background-color .3s var(--n-bezier); + `,[z("hover",` + background-color: var(--n-resize-trigger-color-hover); + `)]),m("drawer-content-wrapper",` + box-sizing: border-box; + `),m("drawer-content",` + height: 100%; + display: flex; + flex-direction: column; + `,[z("native-scrollbar",[m("drawer-body-content-wrapper",` + height: 100%; + overflow: auto; + `)]),m("drawer-body",` + flex: 1 0 0; + overflow: hidden; + `),m("drawer-body-content-wrapper",` + box-sizing: border-box; + padding: var(--n-body-padding); + `),m("drawer-header",` + font-weight: var(--n-title-font-weight); + line-height: 1; + font-size: var(--n-title-font-size); + color: var(--n-title-text-color); + padding: var(--n-header-padding); + transition: border .3s var(--n-bezier); + border-bottom: 1px solid var(--n-divider-color); + border-bottom: var(--n-header-border-bottom); + display: flex; + justify-content: space-between; + align-items: center; + `,[P("main",` + flex: 1; + `),P("close",` + margin-left: 6px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),m("drawer-footer",` + display: flex; + justify-content: flex-end; + border-top: var(--n-footer-border-top); + transition: border .3s var(--n-bezier); + padding: var(--n-footer-padding); + `)]),z("right-placement",` + top: 0; + bottom: 0; + right: 0; + border-top-left-radius: var(--n-border-radius); + border-bottom-left-radius: var(--n-border-radius); + `,[P("resize-trigger",` + width: 3px; + height: 100%; + top: 0; + left: 0; + transform: translateX(-1.5px); + cursor: ew-resize; + `)]),z("left-placement",` + top: 0; + bottom: 0; + left: 0; + border-top-right-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `,[P("resize-trigger",` + width: 3px; + height: 100%; + top: 0; + right: 0; + transform: translateX(1.5px); + cursor: ew-resize; + `)]),z("top-placement",` + top: 0; + left: 0; + right: 0; + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `,[P("resize-trigger",` + width: 100%; + height: 3px; + bottom: 0; + left: 0; + transform: translateY(1.5px); + cursor: ns-resize; + `)]),z("bottom-placement",` + left: 0; + bottom: 0; + right: 0; + border-top-left-radius: var(--n-border-radius); + border-top-right-radius: var(--n-border-radius); + `,[P("resize-trigger",` + width: 100%; + height: 3px; + top: 0; + left: 0; + transform: translateY(-1.5px); + cursor: ns-resize; + `)])]),k("body",[k(">",[m("drawer-container",` + position: fixed; + `)])]),m("drawer-container",` + position: relative; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + `,[k("> *",` + pointer-events: all; + `)]),m("drawer-mask",` + background-color: rgba(0, 0, 0, .3); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[z("invisible",` + background-color: rgba(0, 0, 0, 0) + `),Sn({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),Em=Object.assign(Object.assign({},Re.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),dy=ie({name:"Drawer",inheritAttrs:!1,props:Em,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:r}=Ze(e),n=qo(),a=Re("Drawer","-drawer",Hm,Sm,e,t),s=B(e.defaultWidth),l=B(e.defaultHeight),d=Rt(fe(e,"width"),s),c=Rt(fe(e,"height"),l),u=C(()=>{const{placement:w}=e;return w==="top"||w==="bottom"?"":_t(d.value)}),f=C(()=>{const{placement:w}=e;return w==="left"||w==="right"?"":_t(c.value)}),v=w=>{const{onUpdateWidth:S,"onUpdate:width":A}=e;S&&ae(S,w),A&&ae(A,w),s.value=w},p=w=>{const{onUpdateHeight:S,"onUpdate:width":A}=e;S&&ae(S,w),A&&ae(A,w),l.value=w},h=C(()=>[{width:u.value,height:f.value},e.drawerStyle||""]);function g(w){const{onMaskClick:S,maskClosable:A}=e;A&&T(!1),S&&S(w)}function b(w){g(w)}const y=Cs();function x(w){var S;(S=e.onEsc)===null||S===void 0||S.call(e),e.show&&e.closeOnEsc&&vs(w)&&(y.value||T(!1))}function T(w){const{onHide:S,onUpdateShow:A,"onUpdate:show":I}=e;A&&ae(A,w),I&&ae(I,w),S&&!w&&ae(S,w)}Je(ga,{isMountedRef:n,mergedThemeRef:a,mergedClsPrefixRef:t,doUpdateShow:T,doUpdateHeight:p,doUpdateWidth:v});const $=C(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:S,cubicBezierEaseOut:A},self:{color:I,textColor:M,boxShadow:V,lineHeight:D,headerPadding:E,footerPadding:K,borderRadius:N,bodyPadding:oe,titleFontSize:q,titleTextColor:re,titleFontWeight:me,headerBorderBottom:ue,footerBorderTop:W,closeIconColor:H,closeIconColorHover:F,closeIconColorPressed:j,closeColorHover:J,closeColorPressed:se,closeIconSize:be,closeSize:Ie,closeBorderRadius:_,resizableTriggerColorHover:Pe}}=a.value;return{"--n-line-height":D,"--n-color":I,"--n-border-radius":N,"--n-text-color":M,"--n-box-shadow":V,"--n-bezier":w,"--n-bezier-out":A,"--n-bezier-in":S,"--n-header-padding":E,"--n-body-padding":oe,"--n-footer-padding":K,"--n-title-text-color":re,"--n-title-font-size":q,"--n-title-font-weight":me,"--n-header-border-bottom":ue,"--n-footer-border-top":W,"--n-close-icon-color":H,"--n-close-icon-color-hover":F,"--n-close-icon-color-pressed":j,"--n-close-size":Ie,"--n-close-color-hover":J,"--n-close-color-pressed":se,"--n-close-icon-size":be,"--n-close-border-radius":_,"--n-resize-trigger-color-hover":Pe}}),R=r?it("drawer",void 0,$,e):void 0;return{mergedClsPrefix:t,namespace:o,mergedBodyStyle:h,handleOutsideClick:b,handleMaskClick:g,handleEsc:x,mergedTheme:a,cssVars:r?void 0:$,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender,isMounted:n}},render(){const{mergedClsPrefix:e}=this;return i(ns,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),lo(i("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?i(Vt,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?i("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,i(Rm,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),this.$slots)),[[va,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Lm={title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},cy=ie({name:"DrawerContent",props:Lm,setup(){const e=Ae(ga,null);e||Go("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function o(){t(!1)}return{handleCloseClick:o,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:o,mergedTheme:r,bodyClass:n,bodyStyle:a,bodyContentClass:s,bodyContentStyle:l,headerClass:d,headerStyle:c,footerClass:u,footerStyle:f,scrollbarProps:v,closable:p,$slots:h}=this;return i("div",{role:"none",class:[`${t}-drawer-content`,o&&`${t}-drawer-content--native-scrollbar`]},h.header||e||p?i("div",{class:[`${t}-drawer-header`,d],style:c,role:"none"},i("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},h.header!==void 0?h.header():e),p&&i(ur,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,o?i("div",{class:[`${t}-drawer-body`,n],style:a,role:"none"},i("div",{class:[`${t}-drawer-body-content-wrapper`,s],style:l,role:"none"},h)):i(Lt,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},v,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,s],contentStyle:l}),h),h.footer?i("div",{class:[`${t}-drawer-footer`,u],style:f,role:"none"},h.footer()):null)}}),Nm={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},jm={name:"DynamicInput",common:_e,peers:{Input:Po,Button:ho},self(){return Nm}},hc={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},vc={name:"Space",self(){return hc}};function Vm(){return hc}const pc={name:"Space",self:Vm};let zi;function Wm(){if(!bo)return!0;if(zi===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),zi=t}return zi}const Um=Object.assign(Object.assign({},Re.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),Km=ie({name:"Space",props:Um,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Ze(e),r=Re("Space","-space",void 0,pc,e,t),n=Nt("Space",o,t);return{useGap:Wm(),rtlEnabled:n,mergedClsPrefix:t,margin:C(()=>{const{size:a}=e;if(Array.isArray(a))return{horizontal:a[0],vertical:a[1]};if(typeof a=="number")return{horizontal:a,vertical:a};const{self:{[le("gap",a)]:s}}=r.value,{row:l,col:d}=ts(s);return{horizontal:Mt(d),vertical:Mt(l)}})}},render(){const{vertical:e,reverse:t,align:o,inline:r,justify:n,itemClass:a,itemStyle:s,margin:l,wrap:d,mergedClsPrefix:c,rtlEnabled:u,useGap:f,wrapItem:v,internalUseGap:p}=this,h=Io(vn(this),!1);if(!h.length)return null;const g=`${l.horizontal}px`,b=`${l.horizontal/2}px`,y=`${l.vertical}px`,x=`${l.vertical/2}px`,T=h.length-1,$=n.startsWith("space-");return i("div",{role:"none",class:[`${c}-space`,u&&`${c}-space--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:["start","end"].includes(n)?`flex-${n}`:n,flexWrap:!d||e?"nowrap":"wrap",marginTop:f||e?"":`-${x}`,marginBottom:f||e?"":`-${x}`,alignItems:o,gap:f?`${l.vertical}px ${l.horizontal}px`:""}},!v&&(f||p)?h:h.map((R,w)=>R.type===sa?R:i("div",{role:"none",class:a,style:[s,{maxWidth:"100%"},f?"":e?{marginBottom:w!==T?y:""}:u?{marginLeft:$?n==="space-between"&&w===T?"":b:w!==T?g:"",marginRight:$?n==="space-between"&&w===0?"":b:"",paddingTop:x,paddingBottom:x}:{marginRight:$?n==="space-between"&&w===T?"":b:w!==T?g:"",marginLeft:$?n==="space-between"&&w===0?"":b:"",paddingTop:x,paddingBottom:x}]},R)))}}),qm={name:"DynamicTags",common:_e,peers:{Input:Po,Button:ho,Tag:Ds,Space:vc},self(){return{inputWidth:"64px"}}},Gm={name:"DynamicTags",common:lt,peers:{Input:vr,Button:pr,Tag:Ms,Space:pc},self(){return{inputWidth:"64px"}}},Ym=m("dynamic-tags",[m("input",{minWidth:"var(--n-input-width)"})]),Xm=Object.assign(Object.assign(Object.assign({},Re.props),As),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputClass:String,inputStyle:[String,Object],inputProps:Object,max:Number,tagClass:String,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),uy=ie({name:"DynamicTags",props:Xm,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),{localeRef:r}=zo("DynamicTags"),n=xo(e),{mergedDisabledRef:a}=n,s=B(""),l=B(!1),d=B(!0),c=B(null),u=Re("DynamicTags","-dynamic-tags",Ym,Gm,e,t),f=B(e.defaultValue),v=fe(e,"value"),p=Rt(v,f),h=C(()=>r.value.add),g=C(()=>Wi(e.size)),b=C(()=>a.value||!!e.max&&p.value.length>=e.max);function y(I){const{onChange:M,"onUpdate:value":V,onUpdateValue:D}=e,{nTriggerFormInput:E,nTriggerFormChange:K}=n;M&&ae(M,I),D&&ae(D,I),V&&ae(V,I),f.value=I,E(),K()}function x(I){const M=p.value.slice(0);M.splice(I,1),y(M)}function T(I){switch(I.key){case"Enter":$()}}function $(I){const M=I??s.value;if(M){const V=p.value.slice(0);V.push(e.onCreate(M)),y(V)}l.value=!1,d.value=!0,s.value=""}function R(){$()}function w(){l.value=!0,zt(()=>{var I;(I=c.value)===null||I===void 0||I.focus(),d.value=!1})}const S=C(()=>{const{self:{inputWidth:I}}=u.value;return{"--n-input-width":I}}),A=o?it("dynamic-tags",void 0,S,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:h,inputSize:g,inputValue:s,showInput:l,inputForceFocused:d,mergedValue:p,mergedDisabled:a,triggerDisabled:b,handleInputKeyDown:T,handleAddClick:w,handleInputBlur:R,handleCloseClick:x,handleInputConfirm:$,mergedTheme:u,cssVars:o?void 0:S,themeClass:A==null?void 0:A.themeClass,onRender:A==null?void 0:A.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:o,onRender:r,renderTag:n}=this;return r==null||r(),i(Km,{class:[`${o}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:a,tagClass:s,tagStyle:l,type:d,round:c,size:u,color:f,closable:v,mergedDisabled:p,showInput:h,inputValue:g,inputClass:b,inputStyle:y,inputSize:x,inputForceFocused:T,triggerDisabled:$,handleInputKeyDown:R,handleInputBlur:w,handleAddClick:S,handleCloseClick:A,handleInputConfirm:I,$slots:M}=this;return this.mergedValue.map((V,D)=>n?n(V,D):i(jn,{key:D,theme:a.peers.Tag,themeOverrides:a.peerOverrides.Tag,class:s,style:l,type:d,round:c,size:u,color:f,closable:v,disabled:p,onClose:()=>{A(D)}},{default:()=>typeof V=="string"?V:V.label})).concat(h?M.input?M.input({submit:I,deactivate:w}):i(Bo,Object.assign({placeholder:"",size:x,style:y,class:b,autosize:!0},this.inputProps,{ref:"inputInstRef",value:g,onUpdateValue:V=>{this.inputValue=V},theme:a.peers.Input,themeOverrides:a.peerOverrides.Input,onKeydown:R,onBlur:w,internalForceFocus:T})):M.trigger?M.trigger({activate:S,disabled:$}):i(At,{dashed:!0,disabled:$,theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,size:x,onClick:S},{icon:()=>i(kt,{clsPrefix:o},{default:()=>i(xa,null)})}))}})}}),Zm={name:"Element",common:_e},gc={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},Qm={name:"Flex",self(){return gc}};function Jm(){return gc}const eb={name:"Flex",self:Jm},tb=Object.assign(Object.assign({},Re.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrap:{type:Boolean,default:!0}}),fy=ie({name:"Flex",props:tb,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Ze(e),r=Re("Flex","-flex",void 0,eb,e,t);return{rtlEnabled:Nt("Flex",o,t),mergedClsPrefix:t,margin:C(()=>{const{size:a}=e;if(Array.isArray(a))return{horizontal:a[0],vertical:a[1]};if(typeof a=="number")return{horizontal:a,vertical:a};const{self:{[le("gap",a)]:s}}=r.value,{row:l,col:d}=ts(s);return{horizontal:Mt(d),vertical:Mt(l)}})}},render(){const{vertical:e,reverse:t,align:o,inline:r,justify:n,margin:a,wrap:s,mergedClsPrefix:l,rtlEnabled:d}=this,c=Io(vn(this),!1);return c.length?i("div",{role:"none",class:[`${l}-flex`,d&&`${l}-flex--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:n,flexWrap:!s||e?"nowrap":"wrap",alignItems:o,gap:`${a.vertical}px ${a.horizontal}px`}},c):null}}),ob={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function mc(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:a,warningColor:s,lineHeight:l,textColor3:d}=e;return Object.assign(Object.assign({},ob),{blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:l,labelTextColor:n,asteriskColor:a,feedbackTextColorError:a,feedbackTextColorWarning:s,feedbackTextColor:d})}const bc={name:"Form",common:lt,self:mc},rb={name:"Form",common:_e,self:mc},nb=m("form",[z("inline",` + width: 100%; + display: inline-flex; + align-items: flex-start; + align-content: space-around; + `,[m("form-item",{width:"auto",marginRight:"18px"},[k("&:last-child",{marginRight:0})])])]),zn="n-form",xc="n-form-item-insts";var ib=function(e,t,o,r){function n(a){return a instanceof o?a:new o(function(s){s(a)})}return new(o||(o=Promise))(function(a,s){function l(u){try{c(r.next(u))}catch(f){s(f)}}function d(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?a(u.value):n(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};const ab=Object.assign(Object.assign({},Re.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>{e.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),hy=ie({name:"Form",props:ab,setup(e){const{mergedClsPrefixRef:t}=Ze(e);Re("Form","-form",nb,bc,e,t);const o={},r=B(void 0),n=d=>{const c=r.value;(c===void 0||d>=c)&&(r.value=d)};function a(d){return ib(this,arguments,void 0,function*(c,u=()=>!0){return yield new Promise((f,v)=>{const p=[];for(const h of ko(o)){const g=o[h];for(const b of g)b.path&&p.push(b.internalValidate(null,u))}Promise.all(p).then(h=>{const g=h.some(x=>!x.valid),b=[],y=[];h.forEach(x=>{var T,$;!((T=x.errors)===null||T===void 0)&&T.length&&b.push(x.errors),!(($=x.warnings)===null||$===void 0)&&$.length&&y.push(x.warnings)}),c&&c(b.length?b:void 0,{warnings:y.length?y:void 0}),g?v(b.length?b:void 0):f({warnings:y.length?y:void 0})})})})}function s(){for(const d of ko(o)){const c=o[d];for(const u of c)u.restoreValidation()}}return Je(zn,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:n}),Je(xc,{formItems:o}),Object.assign({validate:a,restoreValidation:s},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return i("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function lb(e){const t=Ae(zn,null);return{mergedSize:C(()=>e.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function sb(e){const t=Ae(zn,null),o=C(()=>{const{labelPlacement:h}=e;return h!==void 0?h:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),r=C(()=>o.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),n=C(()=>{if(o.value==="top")return;const{labelWidth:h}=e;if(h!==void 0&&h!=="auto")return _t(h);if(r.value){const g=t==null?void 0:t.maxChildLabelWidthRef.value;return g!==void 0?_t(g):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return _t(t.props.labelWidth)}),a=C(()=>{const{labelAlign:h}=e;if(h)return h;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),s=C(()=>{var h;return[(h=e.labelProps)===null||h===void 0?void 0:h.style,e.labelStyle,{width:n.value}]}),l=C(()=>{const{showRequireMark:h}=e;return h!==void 0?h:t==null?void 0:t.props.showRequireMark}),d=C(()=>{const{requireMarkPlacement:h}=e;return h!==void 0?h:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=B(!1),u=B(!1),f=C(()=>{const{validationStatus:h}=e;if(h!==void 0)return h;if(c.value)return"error";if(u.value)return"warning"}),v=C(()=>{const{showFeedback:h}=e;return h!==void 0?h:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),p=C(()=>{const{showLabel:h}=e;return h!==void 0?h:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,validationWarned:u,mergedLabelStyle:s,mergedLabelPlacement:o,mergedLabelAlign:a,mergedShowRequireMark:l,mergedRequireMarkPlacement:d,mergedValidationStatus:f,mergedShowFeedback:v,mergedShowLabel:p,isAutoLabelWidth:r}}function db(e){const t=Ae(zn,null),o=C(()=>{const{rulePath:s}=e;if(s!==void 0)return s;const{path:l}=e;if(l!==void 0)return l}),r=C(()=>{const s=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?s.push(...l):s.push(l)),t){const{rules:d}=t.props,{value:c}=o;if(d!==void 0&&c!==void 0){const u=Gn(d,c);u!==void 0&&(Array.isArray(u)?s.push(...u):s.push(u))}}return s}),n=C(()=>r.value.some(s=>s.required)),a=C(()=>n.value||e.required);return{mergedRules:r,mergedRequired:a}}const{cubicBezierEaseInOut:Al}=Co;function cb({name:e="fade-down",fromOffset:t="-4px",enterDuration:o=".3s",leaveDuration:r=".3s",enterCubicBezier:n=Al,leaveCubicBezier:a=Al}={}){return[k(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),k(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),k(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${a}, transform ${r} ${a}`}),k(`&.${e}-transition-enter-active`,{transition:`opacity ${o} ${n}, transform ${o} ${n}`})]}const ub=m("form-item",` + display: grid; + line-height: var(--n-line-height); +`,[m("form-item-label",` + grid-area: label; + align-items: center; + line-height: 1.25; + text-align: var(--n-label-text-align); + font-size: var(--n-label-font-size); + min-height: var(--n-label-height); + padding: var(--n-label-padding); + color: var(--n-label-text-color); + transition: color .3s var(--n-bezier); + box-sizing: border-box; + font-weight: var(--n-label-font-weight); + `,[P("asterisk",` + white-space: nowrap; + user-select: none; + -webkit-user-select: none; + color: var(--n-asterisk-color); + transition: color .3s var(--n-bezier); + `),P("asterisk-placeholder",` + grid-area: mark; + user-select: none; + -webkit-user-select: none; + visibility: hidden; + `)]),m("form-item-blank",` + grid-area: blank; + min-height: var(--n-blank-height); + `),z("auto-label-width",[m("form-item-label","white-space: nowrap;")]),z("left-labelled",` + grid-template-areas: + "label blank" + "label feedback"; + grid-template-columns: auto minmax(0, 1fr); + grid-template-rows: auto 1fr; + align-items: flex-start; + `,[m("form-item-label",` + display: grid; + grid-template-columns: 1fr auto; + min-height: var(--n-blank-height); + height: auto; + box-sizing: border-box; + flex-shrink: 0; + flex-grow: 0; + `,[z("reverse-columns-space",` + grid-template-columns: auto 1fr; + `),z("left-mark",` + grid-template-areas: + "mark text" + ". text"; + `),z("right-mark",` + grid-template-areas: + "text mark" + "text ."; + `),z("right-hanging-mark",` + grid-template-areas: + "text mark" + "text ."; + `),P("text",` + grid-area: text; + `),P("asterisk",` + grid-area: mark; + align-self: end; + `)])]),z("top-labelled",` + grid-template-areas: + "label" + "blank" + "feedback"; + grid-template-rows: minmax(var(--n-label-height), auto) 1fr; + grid-template-columns: minmax(0, 100%); + `,[z("no-label",` + grid-template-areas: + "blank" + "feedback"; + grid-template-rows: 1fr; + `),m("form-item-label",` + display: flex; + align-items: flex-start; + justify-content: var(--n-label-text-align); + `)]),m("form-item-blank",` + box-sizing: border-box; + display: flex; + align-items: center; + position: relative; + `),m("form-item-feedback-wrapper",` + grid-area: feedback; + box-sizing: border-box; + min-height: var(--n-feedback-height); + font-size: var(--n-feedback-font-size); + line-height: 1.25; + transform-origin: top left; + `,[k("&:not(:empty)",` + padding: var(--n-feedback-padding); + `),m("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[z("warning",{color:"var(--n-feedback-text-color-warning)"}),z("error",{color:"var(--n-feedback-text-color-error)"}),cb({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var _l=function(e,t,o,r){function n(a){return a instanceof o?a:new o(function(s){s(a)})}return new(o||(o=Promise))(function(a,s){function l(u){try{c(r.next(u))}catch(f){s(f)}}function d(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?a(u.value):n(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};const Ea=Object.assign(Object.assign({},Re.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,feedbackClass:String,feedbackStyle:[String,Object],showLabel:{type:Boolean,default:void 0},labelProps:Object}),fb=ko(Ea);function Hl(e,t){return(...o)=>{try{const r=e(...o);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||r!=null&&r.then?r:(r===void 0||go("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use ${t?"`Promise`":"`boolean`, `Error` or `Promise`"} typed value instead.`),!0)}catch(r){go("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const hb=ie({name:"FormItem",props:Ea,setup(e){ef(xc,"formItems",fe(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),r=Ae(zn,null),n=lb(e),a=sb(e),{validationErrored:s,validationWarned:l}=a,{mergedRequired:d,mergedRules:c}=db(e),{mergedSize:u}=n,{mergedLabelPlacement:f,mergedLabelAlign:v,mergedRequireMarkPlacement:p}=a,h=B([]),g=B(Ko()),b=r?fe(r.props,"disabled"):B(!1),y=Re("Form","-form-item",ub,bc,e,t);vt(fe(e,"path"),()=>{e.ignorePathChange||x()});function x(){h.value=[],s.value=!1,l.value=!1,e.feedback&&(g.value=Ko())}const T=(...K)=>_l(this,[...K],void 0,function*(N=null,oe=()=>!0,q={suppressWarning:!0}){const{path:re}=e;q?q.first||(q.first=e.first):q={};const{value:me}=c,ue=r?Gn(r.props.model,re||""):void 0,W={},H={},F=(N?me.filter(Ee=>Array.isArray(Ee.trigger)?Ee.trigger.includes(N):Ee.trigger===N):me).filter(oe).map((Ee,Ge)=>{const Ye=Object.assign({},Ee);if(Ye.validator&&(Ye.validator=Hl(Ye.validator,!1)),Ye.asyncValidator&&(Ye.asyncValidator=Hl(Ye.asyncValidator,!0)),Ye.renderMessage){const st=`__renderMessage__${Ge}`;H[st]=Ye.message,Ye.message=st,W[st]=Ye.renderMessage}return Ye}),j=F.filter(Ee=>Ee.level!=="warning"),J=F.filter(Ee=>Ee.level==="warning"),se={valid:!0,errors:void 0,warnings:void 0};if(!F.length)return se;const be=re??"__n_no_path__",Ie=new tl({[be]:j}),_=new tl({[be]:J}),{validateMessages:Pe}=(r==null?void 0:r.props)||{};Pe&&(Ie.messages(Pe),_.messages(Pe));const Me=Ee=>{h.value=Ee.map(Ge=>{const Ye=(Ge==null?void 0:Ge.message)||"";return{key:Ye,render:()=>Ye.startsWith("__renderMessage__")?W[Ye]():Ye}}),Ee.forEach(Ge=>{var Ye;!((Ye=Ge.message)===null||Ye===void 0)&&Ye.startsWith("__renderMessage__")&&(Ge.message=H[Ge.message])})};if(j.length){const Ee=yield new Promise(Ge=>{Ie.validate({[be]:ue},q,Ge)});Ee!=null&&Ee.length&&(se.valid=!1,se.errors=Ee,Me(Ee))}if(J.length&&!se.errors){const Ee=yield new Promise(Ge=>{_.validate({[be]:ue},q,Ge)});Ee!=null&&Ee.length&&(Me(Ee),se.warnings=Ee)}return!se.errors&&!se.warnings?x():(s.value=!!se.errors,l.value=!!se.warnings),se});function $(){T("blur")}function R(){T("change")}function w(){T("focus")}function S(){T("input")}function A(K,N){return _l(this,void 0,void 0,function*(){let oe,q,re,me;return typeof K=="string"?(oe=K,q=N):K!==null&&typeof K=="object"&&(oe=K.trigger,q=K.callback,re=K.shouldRuleBeApplied,me=K.options),yield new Promise((ue,W)=>{T(oe,re,me).then(({valid:H,errors:F,warnings:j})=>{H?(q&&q(void 0,{warnings:j}),ue({warnings:j})):(q&&q(F,{warnings:j}),W(F))})})})}Je(qi,{path:fe(e,"path"),disabled:b,mergedSize:n.mergedSize,mergedValidationStatus:a.mergedValidationStatus,restoreValidation:x,handleContentBlur:$,handleContentChange:R,handleContentFocus:w,handleContentInput:S});const I={validate:A,restoreValidation:x,internalValidate:T},M=B(null);Jt(()=>{if(!a.isAutoLabelWidth.value)return;const K=M.value;if(K!==null){const N=K.style.whiteSpace;K.style.whiteSpace="nowrap",K.style.width="",r==null||r.deriveMaxChildLabelWidth(Number(getComputedStyle(K).width.slice(0,-2))),K.style.whiteSpace=N}});const V=C(()=>{var K;const{value:N}=u,{value:oe}=f,q=oe==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:re},self:{labelTextColor:me,asteriskColor:ue,lineHeight:W,feedbackTextColor:H,feedbackTextColorWarning:F,feedbackTextColorError:j,feedbackPadding:J,labelFontWeight:se,[le("labelHeight",N)]:be,[le("blankHeight",N)]:Ie,[le("feedbackFontSize",N)]:_,[le("feedbackHeight",N)]:Pe,[le("labelPadding",q)]:Me,[le("labelTextAlign",q)]:Ee,[le(le("labelFontSize",oe),N)]:Ge}}=y.value;let Ye=(K=v.value)!==null&&K!==void 0?K:Ee;return oe==="top"&&(Ye=Ye==="right"?"flex-end":"flex-start"),{"--n-bezier":re,"--n-line-height":W,"--n-blank-height":Ie,"--n-label-font-size":Ge,"--n-label-text-align":Ye,"--n-label-height":be,"--n-label-padding":Me,"--n-label-font-weight":se,"--n-asterisk-color":ue,"--n-label-text-color":me,"--n-feedback-padding":J,"--n-feedback-font-size":_,"--n-feedback-height":Pe,"--n-feedback-text-color":H,"--n-feedback-text-color-warning":F,"--n-feedback-text-color-error":j}}),D=o?it("form-item",C(()=>{var K;return`${u.value[0]}${f.value[0]}${((K=v.value)===null||K===void 0?void 0:K[0])||""}`}),V,e):void 0,E=C(()=>f.value==="left"&&p.value==="left"&&v.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:M,mergedClsPrefix:t,mergedRequired:d,feedbackId:g,renderExplains:h,reverseColSpace:E},a),n),I),{cssVars:o?void 0:V,themeClass:D==null?void 0:D.themeClass,onRender:D==null?void 0:D.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:o,mergedShowRequireMark:r,mergedRequireMarkPlacement:n,onRender:a}=this,s=r!==void 0?r:this.mergedRequired;a==null||a();const l=()=>{const d=this.$slots.label?this.$slots.label():this.label;if(!d)return null;const c=i("span",{class:`${t}-form-item-label__text`},d),u=s?i("span",{class:`${t}-form-item-label__asterisk`},n!=="left"?" *":"* "):n==="right-hanging"&&i("span",{class:`${t}-form-item-label__asterisk-placeholder`}," *"),{labelProps:f}=this;return i("label",Object.assign({},f,{class:[f==null?void 0:f.class,`${t}-form-item-label`,`${t}-form-item-label--${n}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),n==="left"?[u,c]:[c,u])};return i("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!o&&`${t}-form-item--no-label`],style:this.cssVars},o&&l(),i("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?i("div",{key:this.feedbackId,style:this.feedbackStyle,class:[`${t}-form-item-feedback-wrapper`,this.feedbackClass]},i(Vt,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:d}=this;return mt(e.feedback,c=>{var u;const{feedback:f}=this,v=c||f?i("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||f):this.renderExplains.length?(u=this.renderExplains)===null||u===void 0?void 0:u.map(({key:p,render:h})=>i("div",{key:p,class:`${t}-form-item-feedback__line`},h())):null;return v?d==="warning"?i("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},v):d==="error"?i("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},v):d==="success"?i("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},v):i("div",{key:"controlled-default",class:`${t}-form-item-feedback`},v):null})}})):null)}}),El=1,Cc="n-grid",yc=1,La={span:{type:[Number,String],default:yc},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},vb=ko(La),pb=ie({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:La,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:o,overflowRef:r,layoutShiftDisabledRef:n}=Ae(Cc),a=da();return{overflow:r,itemStyle:o,layoutShiftDisabled:n,mergedXGap:C(()=>Et(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:s=yc,privateShow:l=!0,privateColStart:d=void 0,privateOffset:c=0}=a.vnode.props,{value:u}=t,f=Et(u||0);return{display:l?"":"none",gridColumn:`${d??`span ${s}`} / span ${s}`,marginLeft:c?`calc((100% - (${s} - 1) * ${f}) / ${s} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:o,offset:r,mergedXGap:n}=this;return i("div",{style:{gridColumn:`span ${o} / span ${o}`,marginLeft:r?`calc((100% - (${o} - 1) * ${n}) / ${o} * ${r} + ${n} * ${r})`:""}},this.$slots)}return i("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),gb=Object.assign(Object.assign({},La),Ea),vy=ie({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:gb,setup(){const e=B(null);return{formItemInstRef:e,validate:(...r)=>{const{value:n}=e;if(n)return n.validate(...r)},restoreValidation:()=>{const{value:r}=e;r&&r.restoreValidation()}}},render(){return i(pb,po(this.$.vnode.props||{},vb),{default:()=>{const e=po(this.$props,fb);return i(hb,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),mb={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function wc(e){const{textColor2:t,successColor:o,infoColor:r,warningColor:n,errorColor:a,popoverColor:s,closeIconColor:l,closeIconColorHover:d,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:f,textColor1:v,textColor3:p,borderRadius:h,fontWeightStrong:g,boxShadow2:b,lineHeight:y,fontSize:x}=e;return Object.assign(Object.assign({},mb),{borderRadius:h,lineHeight:y,fontSize:x,headerFontWeight:g,iconColor:t,iconColorSuccess:o,iconColorInfo:r,iconColorWarning:n,iconColorError:a,color:s,textColor:t,closeIconColor:l,closeIconColorHover:d,closeIconColorPressed:c,closeBorderRadius:h,closeColorHover:u,closeColorPressed:f,headerTextColor:v,descriptionTextColor:p,actionTextColor:t,boxShadow:b})}const bb={name:"Notification",common:lt,peers:{Scrollbar:Eo},self:wc},xb={name:"Notification",common:_e,peers:{Scrollbar:fo},self:wc},Cb={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"};function Sc(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,infoColor:a,successColor:s,errorColor:l,warningColor:d,popoverColor:c,boxShadow2:u,primaryColor:f,lineHeight:v,borderRadius:p,closeColorHover:h,closeColorPressed:g}=e;return Object.assign(Object.assign({},Cb),{closeBorderRadius:p,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:a,iconColorSuccess:s,iconColorWarning:d,iconColorError:l,iconColorLoading:f,closeColorHover:h,closeColorPressed:g,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,closeColorHoverInfo:h,closeColorPressedInfo:g,closeIconColorInfo:o,closeIconColorHoverInfo:r,closeIconColorPressedInfo:n,closeColorHoverSuccess:h,closeColorPressedSuccess:g,closeIconColorSuccess:o,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:n,closeColorHoverError:h,closeColorPressedError:g,closeIconColorError:o,closeIconColorHoverError:r,closeIconColorPressedError:n,closeColorHoverWarning:h,closeColorPressedWarning:g,closeIconColorWarning:o,closeIconColorHoverWarning:r,closeIconColorPressedWarning:n,closeColorHoverLoading:h,closeColorPressedLoading:g,closeIconColorLoading:o,closeIconColorHoverLoading:r,closeIconColorPressedLoading:n,loadingColor:f,lineHeight:v,borderRadius:p})}const yb={name:"Message",common:lt,self:Sc},wb={name:"Message",common:_e,self:Sc},Sb={name:"ButtonGroup",common:_e},kb={name:"GradientText",common:_e,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:a,primaryColorSuppl:s,successColorSuppl:l,warningColorSuppl:d,errorColorSuppl:c,infoColorSuppl:u,fontWeightStrong:f}=e;return{fontWeight:f,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:s,colorStartInfo:a,colorEndInfo:u,colorStartWarning:r,colorEndWarning:d,colorStartError:n,colorEndError:c,colorStartSuccess:o,colorEndSuccess:l}}};function Rb(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:a,fontWeightStrong:s}=e;return{fontWeight:s,rotate:"252deg",colorStartPrimary:Se(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:Se(a,{alpha:.6}),colorEndInfo:a,colorStartWarning:Se(r,{alpha:.6}),colorEndWarning:r,colorStartError:Se(n,{alpha:.6}),colorEndError:n,colorStartSuccess:Se(o,{alpha:.6}),colorEndSuccess:o}}const zb={name:"GradientText",common:lt,self:Rb},Pb={name:"InputNumber",common:_e,peers:{Button:ho,Input:Po},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function $b(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const Tb={name:"InputNumber",common:lt,peers:{Button:pr,Input:vr},self:$b},Fb={name:"Layout",common:_e,peers:{Scrollbar:fo},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:a,scrollbarColor:s,scrollbarColorHover:l}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:a,headerBorderColorInverted:a,footerBorderColor:a,footerBorderColorInverted:a,siderBorderColor:a,siderBorderColorInverted:a,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:We(o,s),siderToggleBarColorHover:We(o,l),__invertScrollbar:"false"}}};function Ib(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:a,actionColor:s,scrollbarColor:l,scrollbarColorHover:d,invertedColor:c}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:s,headerColor:n,headerColorInverted:c,footerColor:s,footerColorInverted:c,headerBorderColor:a,headerBorderColorInverted:c,footerBorderColor:a,footerBorderColorInverted:c,siderBorderColor:a,siderBorderColorInverted:c,siderColor:n,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${a}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:We(r,l),siderToggleBarColorHover:We(r,d),__invertScrollbar:"true"}}const Na={name:"Layout",common:lt,peers:{Scrollbar:Eo},self:Ib};function Bb(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:a,borderRadius:s,fontSize:l,hoverColor:d}=e;return{textColor:t,color:o,colorHover:d,colorModal:r,colorHoverModal:We(r,d),colorPopover:n,colorHoverPopover:We(n,d),borderColor:a,borderColorModal:We(r,a),borderColorPopover:We(n,a),borderRadius:s,fontSize:l}}const Ob={name:"List",common:_e,self:Bb},Db={name:"LoadingBar",common:_e,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};function Mb(e){const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}}const Ab={name:"LoadingBar",common:lt,self:Mb},_b={name:"Log",common:_e,peers:{Scrollbar:fo,Code:sd},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}},Hb={name:"Mention",common:_e,peers:{InternalSelectMenu:kn,Input:Po},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function Eb(e,t,o,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:r}}function kc(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:a,fontSize:s,dividerColor:l,hoverColor:d,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:d,itemColorActive:Se(r,{alpha:.1}),itemColorActiveHover:Se(r,{alpha:.1}),itemColorActiveCollapsed:Se(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:a,itemIconColorHover:a,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:a,itemIconColorHorizontal:a,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:s,dividerColor:l},Eb("#BBB",r,"#FFF","#AAA"))}const Lb={name:"Menu",common:lt,peers:{Tooltip:$a,Dropdown:Fa},self:kc},Nb={name:"Menu",common:_e,peers:{Tooltip:ni,Dropdown:Ia},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=kc(e);return r.itemColorActive=Se(t,{alpha:.15}),r.itemColorActiveHover=Se(t,{alpha:.15}),r.itemColorActiveCollapsed=Se(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}},jb={titleFontSize:"18px",backSize:"22px"};function Vb(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:a,primaryColorHover:s,primaryColorPressed:l}=e;return Object.assign(Object.assign({},jb),{titleFontWeight:a,fontSize:n,titleTextColor:t,backColor:o,backColorHover:s,backColorPressed:l,subtitleTextColor:r})}const Wb={name:"PageHeader",common:_e,self:Vb},Ub={iconSize:"22px"};function Kb(e){const{fontSize:t,warningColor:o}=e;return Object.assign(Object.assign({},Ub),{fontSize:t,iconColor:o})}const qb={name:"Popconfirm",common:_e,peers:{Button:ho,Popover:Fr},self:Kb};function Gb(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:a,progressRailColor:s,fontSize:l,fontWeight:d}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:d,railColor:s,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:a,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:a,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const Rc={name:"Progress",common:_e,self(e){const t=Gb(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},Yb={name:"Rate",common:_e,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},Xb={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function zc(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:a,warningColor:s,lineHeight:l,fontWeightStrong:d}=e;return Object.assign(Object.assign({},Xb),{lineHeight:l,titleFontWeight:d,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:a,iconColorWarning:s})}const Zb={name:"Result",common:lt,self:zc},Qb={name:"Result",common:_e,self:zc},Jb={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},e0={name:"Slider",common:_e,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:a,textColor2:s,cardColor:l,borderRadius:d,fontSize:c,opacityDisabled:u}=e;return Object.assign(Object.assign({},Jb),{fontSize:c,markFontSize:c,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:l,dotColorModal:r,dotColorPopover:a,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:a,indicatorBoxShadow:t,indicatorTextColor:s,indicatorBorderRadius:d,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})}};function Pc(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:a,heightHuge:s,primaryColor:l,fontSize:d}=e;return{fontSize:d,textColor:l,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:a,sizeHuge:s,color:l,opacitySpinning:t}}const t0={name:"Spin",common:lt,self:Pc},o0={name:"Spin",common:_e,self:Pc};function r0(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const n0={name:"Statistic",common:_e,self:r0},i0={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function a0(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:a,textColor1:s,textColor2:l}=e;return Object.assign(Object.assign({},i0),{stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:a,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:a,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:s,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:a,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:a})}const l0={name:"Steps",common:_e,self:a0},$c={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},s0={name:"Switch",common:_e,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:a,baseColor:s}=e;return Object.assign(Object.assign({},$c),{iconColor:s,textColor:a,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${Se(n,{alpha:.3})}`})}};function d0(e){const{primaryColor:t,opacityDisabled:o,borderRadius:r,textColor3:n}=e;return Object.assign(Object.assign({},$c),{iconColor:n,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${Se(t,{alpha:.2})}`})}const c0={name:"Switch",common:lt,self:d0},u0={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function f0(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:a,tableColorStriped:s,textColor1:l,textColor2:d,borderRadius:c,fontWeightStrong:u,lineHeight:f,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:h}=e;return Object.assign(Object.assign({},u0),{fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:h,lineHeight:f,borderRadius:c,borderColor:We(o,t),borderColorModal:We(r,t),borderColorPopover:We(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:We(o,s),tdColorStripedModal:We(r,s),tdColorStripedPopover:We(n,s),thColor:We(o,a),thColorModal:We(r,a),thColorPopover:We(n,a),thTextColor:l,tdTextColor:d,thFontWeight:u})}const h0={name:"Table",common:_e,self:f0},v0={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Tc(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:a,closeIconColorPressed:s,closeColorHover:l,closeColorPressed:d,tabColor:c,baseColor:u,dividerColor:f,fontWeight:v,textColor1:p,borderRadius:h,fontSize:g,fontWeightStrong:b}=e;return Object.assign(Object.assign({},v0),{colorSegment:c,tabFontSizeCard:g,tabTextColorLine:p,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:a,closeIconColorPressed:s,closeColorHover:l,closeColorPressed:d,closeBorderRadius:h,tabColor:c,tabColorSegment:u,tabBorderColor:f,tabFontWeightActive:v,tabFontWeight:v,tabBorderRadius:h,paneTextColor:t,fontWeightStrong:b})}const p0={name:"Tabs",common:lt,self:Tc},g0={name:"Tabs",common:_e,self(e){const t=Tc(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function m0(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const b0={name:"Thing",common:_e,self:m0},x0={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},C0={name:"Timeline",common:_e,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:a,textColor1:s,textColor2:l,railColor:d,fontWeightStrong:c,fontSize:u}=e;return Object.assign(Object.assign({},x0),{contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:a,titleTextColor:s,contentTextColor:l,metaTextColor:t,lineColor:d})}},y0={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},w0={name:"Transfer",common:_e,peers:{Checkbox:Ur,Scrollbar:fo,Input:Po,Empty:Tr,Button:ho},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:a,heightMedium:s,borderRadius:l,inputColor:d,tableHeaderColor:c,textColor1:u,textColorDisabled:f,textColor2:v,textColor3:p,hoverColor:h,closeColorHover:g,closeColorPressed:b,closeIconColor:y,closeIconColorHover:x,closeIconColorPressed:T,dividerColor:$}=e;return Object.assign(Object.assign({},y0),{itemHeightSmall:s,itemHeightMedium:s,itemHeightLarge:a,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:l,dividerColor:$,borderColor:"#0000",listColor:d,headerColor:c,titleTextColor:u,titleTextColorDisabled:f,extraTextColor:p,extraTextColorDisabled:f,itemTextColor:v,itemTextColorDisabled:f,itemColorPending:h,titleFontWeight:t,closeColorHover:g,closeColorPressed:b,closeIconColor:y,closeIconColorHover:x,closeIconColorPressed:T})}};function Fc(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:a,textColor3:s,textColor2:l,textColorDisabled:d,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:Se(a,{alpha:.1}),arrowColor:s,nodeTextColor:l,nodeTextColorDisabled:d,loadingColor:a,dropMarkColor:a,lineColor:o}}const S0={name:"Tree",common:lt,peers:{Checkbox:Ra,Scrollbar:Eo,Empty:wn},self:Fc},Ic={name:"Tree",common:_e,peers:{Checkbox:Ur,Scrollbar:fo,Empty:Tr},self(e){const{primaryColor:t}=e,o=Fc(e);return o.nodeColorActive=Se(t,{alpha:.15}),o}},k0={name:"TreeSelect",common:_e,peers:{Tree:Ic,Empty:Tr,InternalSelection:wa}},R0={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Bc(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:a,borderRadiusSmall:s,dividerColor:l,fontWeightStrong:d,textColor1:c,textColor3:u,infoColor:f,warningColor:v,errorColor:p,successColor:h,codeColor:g}=e;return Object.assign(Object.assign({},R0),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:a,codeBorderRadius:s,liTextColor:o,liLineHeight:n,liFontSize:a,hrColor:l,headerFontWeight:d,headerTextColor:c,pTextColor:o,pTextColor1Depth:c,pTextColor2Depth:o,pTextColor3Depth:u,pLineHeight:n,pFontSize:a,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:p,headerBarColorWarning:v,headerBarColorSuccess:h,textColor:o,textColor1Depth:c,textColor2Depth:o,textColor3Depth:u,textColorPrimary:t,textColorInfo:f,textColorSuccess:h,textColorWarning:v,textColorError:p,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"})}const ja={name:"Typography",common:lt,self:Bc},z0={name:"Typography",common:_e,self:Bc};function P0(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:a,opacityDisabled:s,actionColor:l,borderColor:d,hoverColor:c,lineHeight:u,borderRadius:f,fontSize:v}=e;return{fontSize:v,lineHeight:u,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${d}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:c,itemColorHoverError:Se(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:a,itemIconColor:t,itemDisabledOpacity:s,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${d}`}}const $0={name:"Upload",common:_e,peers:{Button:ho,Progress:Rc},self(e){const{errorColor:t}=e,o=P0(e);return o.itemColorHoverError=Se(t,{alpha:.09}),o}},T0={name:"Watermark",common:_e,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},F0={name:"Watermark",common:lt,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},I0={name:"Row",common:_e},B0={name:"FloatButton",common:_e,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:a,primaryColorHover:s,primaryColorPressed:l,baseColor:d,borderRadius:c}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:a,colorPrimaryHover:s,colorPrimaryPressed:l,textColorPrimary:d,borderRadiusSquare:c}}},py=ie({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Ae(Ro,null),{body:t}=document,{style:o}=t;let r=!1,n=!0;hn(()=>{$t(()=>{var a,s;const{textColor2:l,fontSize:d,fontFamily:c,bodyColor:u,cubicBezierEaseInOut:f,lineHeight:v}=e?Mr({},((a=e.mergedThemeRef.value)===null||a===void 0?void 0:a.common)||lt,(s=e.mergedThemeOverridesRef.value)===null||s===void 0?void 0:s.common):lt;if(r||!t.hasAttribute("n-styled")){o.setProperty("-webkit-text-size-adjust","100%"),o.setProperty("-webkit-tap-highlight-color","transparent"),o.padding="0",o.margin="0",o.backgroundColor=u,o.color=l,o.fontSize=d,o.fontFamily=c,o.lineHeight=v;const p=`color .3s ${f}, background-color .3s ${f}`;n?setTimeout(()=>{o.transition=p},0):o.transition=p,t.setAttribute("n-styled",""),r=!0,n=!1}})}),ca(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),O0=m("gradient-text",` + display: inline-block; + font-weight: var(--n-font-weight); + -webkit-background-clip: text; + background-clip: text; + color: #0000; + white-space: nowrap; + background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); + transition: + --n-color-start .3s var(--n-bezier), + --n-color-end .3s var(--n-bezier); +`),D0=Object.assign(Object.assign({},Re.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),gy=ie({name:"GradientText",props:D0,setup(e){rf();const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),r=C(()=>{const{type:c}=e;return c==="danger"?"error":c}),n=C(()=>{let c=e.size||e.fontSize;return c&&(c=_t(c)),c||void 0}),a=C(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const u=c.deg||0,f=c.from,v=c.to;return`linear-gradient(${u}deg, ${f} 0%, ${v} 100%)`}}),s=Re("GradientText","-gradient-text",O0,zb,e,t),l=C(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:u},self:{rotate:f,[le("colorStart",c)]:v,[le("colorEnd",c)]:p,fontWeight:h}}=s.value;return{"--n-bezier":u,"--n-rotate":f,"--n-color-start":v,"--n-color-end":p,"--n-font-weight":h}}),d=o?it("gradient-text",C(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:n,styleBgImage:a,cssVars:o?void 0:l,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),i("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),M0={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},Oc=24,Pi="__ssr__",A0={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:Oc},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},my=ie({name:"Grid",inheritAttrs:!1,props:A0,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:o}=Ze(e),r=/^\d+$/,n=B(void 0),a=Hu((o==null?void 0:o.value)||M0),s=tt(()=>!!(e.itemResponsive||!r.test(e.cols.toString())||!r.test(e.xGap.toString())||!r.test(e.yGap.toString()))),l=C(()=>{if(s.value)return e.responsive==="self"?n.value:a.value}),d=tt(()=>{var y;return(y=Number(Ir(e.cols.toString(),l.value)))!==null&&y!==void 0?y:Oc}),c=tt(()=>Ir(e.xGap.toString(),l.value)),u=tt(()=>Ir(e.yGap.toString(),l.value)),f=y=>{n.value=y.contentRect.width},v=y=>{Ni(f,y)},p=B(!1),h=C(()=>{if(e.responsive==="self")return v}),g=B(!1),b=B();return Jt(()=>{const{value:y}=b;y&&y.hasAttribute(Pi)&&(y.removeAttribute(Pi),g.value=!0)}),Je(Cc,{layoutShiftDisabledRef:fe(e,"layoutShiftDisabled"),isSsrRef:g,itemStyleRef:fe(e,"itemStyle"),xGapRef:c,overflowRef:p}),{isSsr:!bo,contentEl:b,mergedClsPrefix:t,style:C(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:Et(e.xGap),rowGap:Et(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${d.value}, minmax(0, 1fr))`,columnGap:Et(c.value),rowGap:Et(u.value)}),isResponsive:s,responsiveQuery:l,responsiveCols:d,handleResize:h,overflow:p}},render(){if(this.layoutShiftDisabled)return i("div",ao({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,o,r,n,a,s,l;this.overflow=!1;const d=Io(vn(this)),c=[],{collapsed:u,collapsedRows:f,responsiveCols:v,responsiveQuery:p}=this;d.forEach(x=>{var T,$,R,w,S;if(((T=x==null?void 0:x.type)===null||T===void 0?void 0:T.__GRID_ITEM__)!==!0)return;if(qu(x)){const M=an(x);M.props?M.props.privateShow=!1:M.props={privateShow:!1},c.push({child:M,rawChildSpan:0});return}x.dirs=(($=x.dirs)===null||$===void 0?void 0:$.filter(({dir:M})=>M!==_o))||null,((R=x.dirs)===null||R===void 0?void 0:R.length)===0&&(x.dirs=null);const A=an(x),I=Number((S=Ir((w=A.props)===null||w===void 0?void 0:w.span,p))!==null&&S!==void 0?S:El);I!==0&&c.push({child:A,rawChildSpan:I})});let h=0;const g=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(g!=null&&g.props){const x=(o=g.props)===null||o===void 0?void 0:o.suffix;x!==void 0&&x!==!1&&(h=Number((n=Ir((r=g.props)===null||r===void 0?void 0:r.span,p))!==null&&n!==void 0?n:El),g.props.privateSpan=h,g.props.privateColStart=v+1-h,g.props.privateShow=(a=g.props.privateShow)!==null&&a!==void 0?a:!0)}let b=0,y=!1;for(const{child:x,rawChildSpan:T}of c){if(y&&(this.overflow=!0),!y){const $=Number((l=Ir((s=x.props)===null||s===void 0?void 0:s.offset,p))!==null&&l!==void 0?l:0),R=Math.min(T+$,v);if(x.props?(x.props.privateSpan=R,x.props.privateOffset=$):x.props={privateSpan:R,privateOffset:$},u){const w=b%v;R+w>v&&(b+=v-w),R+b+h>f*v?y=!0:b+=R}}y&&(x.props?x.props.privateShow!==!0&&(x.props.privateShow=!1):x.props={privateShow:!1})}return i("div",ao({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[Pi]:this.isSsr||void 0},this.$attrs),c.map(({child:x})=>x))};return this.isResponsive&&this.responsive==="self"?i(Mo,{onResize:this.handleResize},{default:e}):e()}});function _0(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const H0={name:"IconWrapper",common:_e,self:_0},E0={name:"Image",common:_e,peers:{Tooltip:ni},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}};function L0(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function N0(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function $i(e){return e==null?!0:!Number.isNaN(e)}function Ll(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function Ti(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const j0=k([m("input-number-suffix",` + display: inline-block; + margin-right: 10px; + `),m("input-number-prefix",` + display: inline-block; + margin-left: 10px; + `)]),Nl=800,jl=100,V0=Object.assign(Object.assign({},Re.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),by=ie({name:"InputNumber",props:V0,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,mergedRtlRef:r}=Ze(e),n=Re("InputNumber","-input-number",j0,Tb,e,o),{localeRef:a}=zo("InputNumber"),s=xo(e),{mergedSizeRef:l,mergedDisabledRef:d,mergedStatusRef:c}=s,u=B(null),f=B(null),v=B(null),p=B(e.defaultValue),h=fe(e,"value"),g=Rt(h,p),b=B(""),y=xe=>{const te=String(xe).split(".")[1];return te?te.length:0},x=xe=>{const te=[e.min,e.max,e.step,xe].map(ce=>ce===void 0?0:y(ce));return Math.max(...te)},T=tt(()=>{const{placeholder:xe}=e;return xe!==void 0?xe:a.value.placeholder}),$=tt(()=>{const xe=Ti(e.step);return xe!==null?xe===0?1:Math.abs(xe):1}),R=tt(()=>{const xe=Ti(e.min);return xe!==null?xe:null}),w=tt(()=>{const xe=Ti(e.max);return xe!==null?xe:null}),S=()=>{const{value:xe}=g;if($i(xe)){const{format:te,precision:ce}=e;te?b.value=te(xe):xe===null||ce===void 0||y(xe)>ce?b.value=Ll(xe,void 0):b.value=Ll(xe,ce)}else b.value=String(xe)};S();const A=xe=>{const{value:te}=g;if(xe===te){S();return}const{"onUpdate:value":ce,onUpdateValue:G,onChange:Q}=e,{nTriggerFormInput:pe,nTriggerFormChange:Ce}=s;Q&&ae(Q,xe),G&&ae(G,xe),ce&&ae(ce,xe),p.value=xe,pe(),Ce()},I=({offset:xe,doUpdateIfValid:te,fixPrecision:ce,isInputing:G})=>{const{value:Q}=b;if(G&&N0(Q))return!1;const pe=(e.parse||L0)(Q);if(pe===null)return te&&A(null),null;if($i(pe)){const Ce=y(pe),{precision:de}=e;if(de!==void 0&&dewe){if(!te||G)return!1;L=we}if(Ke!==null&&LI({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),V=tt(()=>{const{value:xe}=g;if(e.validator&&xe===null)return!1;const{value:te}=$;return I({offset:-te,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),D=tt(()=>{const{value:xe}=g;if(e.validator&&xe===null)return!1;const{value:te}=$;return I({offset:+te,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function E(xe){const{onFocus:te}=e,{nTriggerFormFocus:ce}=s;te&&ae(te,xe),ce()}function K(xe){var te,ce;if(xe.target===((te=u.value)===null||te===void 0?void 0:te.wrapperElRef))return;const G=I({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(G!==!1){const Ce=(ce=u.value)===null||ce===void 0?void 0:ce.inputElRef;Ce&&(Ce.value=String(G||"")),g.value===G&&S()}else S();const{onBlur:Q}=e,{nTriggerFormBlur:pe}=s;Q&&ae(Q,xe),pe(),zt(()=>{S()})}function N(xe){const{onClear:te}=e;te&&ae(te,xe)}function oe(){const{value:xe}=D;if(!xe){Ie();return}const{value:te}=g;if(te===null)e.validator||A(ue());else{const{value:ce}=$;I({offset:ce,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function q(){const{value:xe}=V;if(!xe){se();return}const{value:te}=g;if(te===null)e.validator||A(ue());else{const{value:ce}=$;I({offset:-ce,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const re=E,me=K;function ue(){if(e.validator)return null;const{value:xe}=R,{value:te}=w;return xe!==null?Math.max(0,xe):te!==null?Math.min(0,te):0}function W(xe){N(xe),A(null)}function H(xe){var te,ce,G;!((te=v.value)===null||te===void 0)&&te.$el.contains(xe.target)&&xe.preventDefault(),!((ce=f.value)===null||ce===void 0)&&ce.$el.contains(xe.target)&&xe.preventDefault(),(G=u.value)===null||G===void 0||G.activate()}let F=null,j=null,J=null;function se(){J&&(window.clearTimeout(J),J=null),F&&(window.clearInterval(F),F=null)}let be=null;function Ie(){be&&(window.clearTimeout(be),be=null),j&&(window.clearInterval(j),j=null)}function _(){se(),J=window.setTimeout(()=>{F=window.setInterval(()=>{q()},jl)},Nl),Zt("mouseup",document,se,{once:!0})}function Pe(){Ie(),be=window.setTimeout(()=>{j=window.setInterval(()=>{oe()},jl)},Nl),Zt("mouseup",document,Ie,{once:!0})}const Me=()=>{j||oe()},Ee=()=>{F||q()};function Ge(xe){var te,ce;if(xe.key==="Enter"){if(xe.target===((te=u.value)===null||te===void 0?void 0:te.wrapperElRef))return;I({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ce=u.value)===null||ce===void 0||ce.deactivate())}else if(xe.key==="ArrowUp"){if(!D.value||e.keyboard.ArrowUp===!1)return;xe.preventDefault(),I({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&oe()}else if(xe.key==="ArrowDown"){if(!V.value||e.keyboard.ArrowDown===!1)return;xe.preventDefault(),I({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&q()}}function Ye(xe){b.value=xe,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&I({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}vt(g,()=>{S()});const st={focus:()=>{var xe;return(xe=u.value)===null||xe===void 0?void 0:xe.focus()},blur:()=>{var xe;return(xe=u.value)===null||xe===void 0?void 0:xe.blur()},select:()=>{var xe;return(xe=u.value)===null||xe===void 0?void 0:xe.select()}},ot=Nt("InputNumber",r,o);return Object.assign(Object.assign({},st),{rtlEnabled:ot,inputInstRef:u,minusButtonInstRef:f,addButtonInstRef:v,mergedClsPrefix:o,mergedBordered:t,uncontrolledValue:p,mergedValue:g,mergedPlaceholder:T,displayedValueInvalid:M,mergedSize:l,mergedDisabled:d,displayedValue:b,addable:D,minusable:V,mergedStatus:c,handleFocus:re,handleBlur:me,handleClear:W,handleMouseDown:H,handleAddClick:Me,handleMinusClick:Ee,handleAddMousedown:Pe,handleMinusMousedown:_,handleKeyDown:Ge,handleUpdateDisplayedValue:Ye,mergedTheme:n,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:C(()=>{const{self:{iconColorDisabled:xe}}=n.value,[te,ce,G,Q]=so(xe);return{textColorTextDisabled:`rgb(${te}, ${ce}, ${G})`,opacityDisabled:`${Q}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,o=()=>i(Ao,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>ft(t["minus-icon"],()=>[i(kt,{clsPrefix:e},{default:()=>i(bf,null)})])}),r=()=>i(Ao,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>ft(t["add-icon"],()=>[i(kt,{clsPrefix:e},{default:()=>i(xa,null)})])});return i("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},i(Bo,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var n;return this.showButton&&this.buttonPlacement==="both"?[o(),mt(t.prefix,a=>a?i("span",{class:`${e}-input-number-prefix`},a):null)]:(n=t.prefix)===null||n===void 0?void 0:n.call(t)},suffix:()=>{var n;return this.showButton?[mt(t.suffix,a=>a?i("span",{class:`${e}-input-number-suffix`},a):null),this.buttonPlacement==="right"?o():null,r()]:(n=t.suffix)===null||n===void 0?void 0:n.call(t)}}))}}),Dc="n-layout-sider",Va={type:String,default:"static"},W0=m("layout",` + color: var(--n-text-color); + background-color: var(--n-color); + box-sizing: border-box; + position: relative; + z-index: auto; + flex: auto; + overflow: hidden; + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); +`,[m("layout-scroll-container",` + overflow-x: hidden; + box-sizing: border-box; + height: 100%; + `),z("absolute-positioned",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),U0={embedded:Boolean,position:Va,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},Mc="n-layout";function Ac(e){return ie({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Re.props),U0),setup(t){const o=B(null),r=B(null),{mergedClsPrefixRef:n,inlineThemeDisabled:a}=Ze(t),s=Re("Layout","-layout",W0,Na,t,n);function l(g,b){if(t.nativeScrollbar){const{value:y}=o;y&&(b===void 0?y.scrollTo(g):y.scrollTo(g,b))}else{const{value:y}=r;y&&y.scrollTo(g,b)}}Je(Mc,t);let d=0,c=0;const u=g=>{var b;const y=g.target;d=y.scrollLeft,c=y.scrollTop,(b=t.onScroll)===null||b===void 0||b.call(t,g)};ba(()=>{if(t.nativeScrollbar){const g=o.value;g&&(g.scrollTop=c,g.scrollLeft=d)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},v={scrollTo:l},p=C(()=>{const{common:{cubicBezierEaseInOut:g},self:b}=s.value;return{"--n-bezier":g,"--n-color":t.embedded?b.colorEmbedded:b.color,"--n-text-color":b.textColor}}),h=a?it("layout",C(()=>t.embedded?"e":""),p,t):void 0;return Object.assign({mergedClsPrefix:n,scrollableElRef:o,scrollbarInstRef:r,hasSiderStyle:f,mergedTheme:s,handleNativeElScroll:u,cssVars:a?void 0:p,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender},v)},render(){var t;const{mergedClsPrefix:o,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const n=r?this.hasSiderStyle:void 0,a=[this.themeClass,e&&`${o}-layout-content`,`${o}-layout`,`${o}-layout--${this.position}-positioned`];return i("div",{class:a,style:this.cssVars},this.nativeScrollbar?i("div",{ref:"scrollableElRef",class:[`${o}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,n],onScroll:this.handleNativeElScroll},this.$slots):i(Lt,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,n]}),this.$slots))}})}const xy=Ac(!1),Cy=Ac(!0),K0=m("layout-header",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + box-sizing: border-box; + width: 100%; + background-color: var(--n-color); + color: var(--n-text-color); +`,[z("absolute-positioned",` + position: absolute; + left: 0; + right: 0; + top: 0; + `),z("bordered",` + border-bottom: solid 1px var(--n-border-color); + `)]),q0={position:Va,inverted:Boolean,bordered:{type:Boolean,default:!1}},yy=ie({name:"LayoutHeader",props:Object.assign(Object.assign({},Re.props),q0),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),r=Re("Layout","-layout-header",K0,Na,e,t),n=C(()=>{const{common:{cubicBezierEaseInOut:s},self:l}=r.value,d={"--n-bezier":s};return e.inverted?(d["--n-color"]=l.headerColorInverted,d["--n-text-color"]=l.textColorInverted,d["--n-border-color"]=l.headerBorderColorInverted):(d["--n-color"]=l.headerColor,d["--n-text-color"]=l.textColor,d["--n-border-color"]=l.headerBorderColor),d}),a=o?it("layout-header",C(()=>e.inverted?"a":"b"),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),i("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),G0=m("layout-sider",` + flex-shrink: 0; + box-sizing: border-box; + position: relative; + z-index: 1; + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + min-width .3s var(--n-bezier), + max-width .3s var(--n-bezier), + transform .3s var(--n-bezier), + background-color .3s var(--n-bezier); + background-color: var(--n-color); + display: flex; + justify-content: flex-end; +`,[z("bordered",[P("border",` + content: ""; + position: absolute; + top: 0; + bottom: 0; + width: 1px; + background-color: var(--n-border-color); + transition: background-color .3s var(--n-bezier); + `)]),P("left-placement",[z("bordered",[P("border",` + right: 0; + `)])]),z("right-placement",` + justify-content: flex-start; + `,[z("bordered",[P("border",` + left: 0; + `)]),z("collapsed",[m("layout-toggle-button",[m("base-icon",` + transform: rotate(180deg); + `)]),m("layout-toggle-bar",[k("&:hover",[P("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),P("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),m("layout-toggle-button",` + left: 0; + transform: translateX(-50%) translateY(-50%); + `,[m("base-icon",` + transform: rotate(0); + `)]),m("layout-toggle-bar",` + left: -28px; + transform: rotate(180deg); + `,[k("&:hover",[P("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),P("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),z("collapsed",[m("layout-toggle-bar",[k("&:hover",[P("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),P("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),m("layout-toggle-button",[m("base-icon",` + transform: rotate(0); + `)])]),m("layout-toggle-button",` + transition: + color .3s var(--n-bezier), + right .3s var(--n-bezier), + left .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + cursor: pointer; + width: 24px; + height: 24px; + position: absolute; + top: 50%; + right: 0; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-size: 18px; + color: var(--n-toggle-button-icon-color); + border: var(--n-toggle-button-border); + background-color: var(--n-toggle-button-color); + box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); + transform: translateX(50%) translateY(-50%); + z-index: 1; + `,[m("base-icon",` + transition: transform .3s var(--n-bezier); + transform: rotate(180deg); + `)]),m("layout-toggle-bar",` + cursor: pointer; + height: 72px; + width: 32px; + position: absolute; + top: calc(50% - 36px); + right: -28px; + `,[P("top, bottom",` + position: absolute; + width: 4px; + border-radius: 2px; + height: 38px; + left: 14px; + transition: + background-color .3s var(--n-bezier), + transform .3s var(--n-bezier); + `),P("bottom",` + position: absolute; + top: 34px; + `),k("&:hover",[P("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),P("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),P("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),k("&:hover",[P("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),P("border",` + position: absolute; + top: 0; + right: 0; + bottom: 0; + width: 1px; + transition: background-color .3s var(--n-bezier); + `),m("layout-sider-scroll-container",` + flex-grow: 1; + flex-shrink: 0; + box-sizing: border-box; + height: 100%; + opacity: 0; + transition: opacity .3s var(--n-bezier); + max-width: 100%; + `),z("show-content",[m("layout-sider-scroll-container",{opacity:1})]),z("absolute-positioned",` + position: absolute; + left: 0; + top: 0; + bottom: 0; + `)]),Y0=ie({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return i("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},i(kt,{clsPrefix:e},{default:()=>i(Ca,null)}))}}),X0=ie({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return i("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},i("div",{class:`${e}-layout-toggle-bar__top`}),i("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),Z0={position:Va,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},wy=ie({name:"LayoutSider",props:Object.assign(Object.assign({},Re.props),Z0),setup(e){const t=Ae(Mc),o=B(null),r=B(null),n=B(e.defaultCollapsed),a=Rt(fe(e,"collapsed"),n),s=C(()=>_t(a.value?e.collapsedWidth:e.width)),l=C(()=>e.collapseMode!=="transform"?{}:{minWidth:_t(e.width)}),d=C(()=>t?t.siderPlacement:"left");function c(R,w){if(e.nativeScrollbar){const{value:S}=o;S&&(w===void 0?S.scrollTo(R):S.scrollTo(R,w))}else{const{value:S}=r;S&&S.scrollTo(R,w)}}function u(){const{"onUpdate:collapsed":R,onUpdateCollapsed:w,onExpand:S,onCollapse:A}=e,{value:I}=a;w&&ae(w,!I),R&&ae(R,!I),n.value=!I,I?S&&ae(S):A&&ae(A)}let f=0,v=0;const p=R=>{var w;const S=R.target;f=S.scrollLeft,v=S.scrollTop,(w=e.onScroll)===null||w===void 0||w.call(e,R)};ba(()=>{if(e.nativeScrollbar){const R=o.value;R&&(R.scrollTop=v,R.scrollLeft=f)}}),Je(Dc,{collapsedRef:a,collapseModeRef:fe(e,"collapseMode")});const{mergedClsPrefixRef:h,inlineThemeDisabled:g}=Ze(e),b=Re("Layout","-layout-sider",G0,Na,e,h);function y(R){var w,S;R.propertyName==="max-width"&&(a.value?(w=e.onAfterLeave)===null||w===void 0||w.call(e):(S=e.onAfterEnter)===null||S===void 0||S.call(e))}const x={scrollTo:c},T=C(()=>{const{common:{cubicBezierEaseInOut:R},self:w}=b.value,{siderToggleButtonColor:S,siderToggleButtonBorder:A,siderToggleBarColor:I,siderToggleBarColorHover:M}=w,V={"--n-bezier":R,"--n-toggle-button-color":S,"--n-toggle-button-border":A,"--n-toggle-bar-color":I,"--n-toggle-bar-color-hover":M};return e.inverted?(V["--n-color"]=w.siderColorInverted,V["--n-text-color"]=w.textColorInverted,V["--n-border-color"]=w.siderBorderColorInverted,V["--n-toggle-button-icon-color"]=w.siderToggleButtonIconColorInverted,V.__invertScrollbar=w.__invertScrollbar):(V["--n-color"]=w.siderColor,V["--n-text-color"]=w.textColor,V["--n-border-color"]=w.siderBorderColor,V["--n-toggle-button-icon-color"]=w.siderToggleButtonIconColor),V}),$=g?it("layout-sider",C(()=>e.inverted?"a":"b"),T,e):void 0;return Object.assign({scrollableElRef:o,scrollbarInstRef:r,mergedClsPrefix:h,mergedTheme:b,styleMaxWidth:s,mergedCollapsed:a,scrollContainerStyle:l,siderPlacement:d,handleNativeElScroll:p,handleTransitionend:y,handleTriggerClick:u,inlineThemeDisabled:g,cssVars:T,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender},x)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:o,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),i("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,o&&`${t}-layout-sider--collapsed`,(!o||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:_t(this.width)}]},this.nativeScrollbar?i("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):i(Lt,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?i(X0,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):i(Y0,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?i("div",{class:`${t}-layout-sider__border`}):null)}}),Q0={extraFontSize:"12px",width:"440px"},J0={name:"Transfer",common:_e,peers:{Checkbox:Ur,Scrollbar:fo,Input:Po,Empty:Tr,Button:ho},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:a,fontSizeSmall:s,heightLarge:l,heightMedium:d,heightSmall:c,borderRadius:u,inputColor:f,tableHeaderColor:v,textColor1:p,textColorDisabled:h,textColor2:g,hoverColor:b}=e;return Object.assign(Object.assign({},Q0),{itemHeightSmall:c,itemHeightMedium:d,itemHeightLarge:l,fontSizeSmall:s,fontSizeMedium:a,fontSizeLarge:n,borderRadius:u,borderColor:"#0000",listColor:f,headerColor:v,titleTextColor:p,titleTextColorDisabled:h,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:h,itemColorPending:b,titleFontWeight:r,iconColor:o,iconColorDisabled:t})}},_c="n-loading-bar",Hc="n-loading-bar-api",ex=m("loading-bar-container",` + z-index: 5999; + position: fixed; + top: 0; + left: 0; + right: 0; + height: 2px; +`,[Sn({enterDuration:"0.3s",leaveDuration:"0.8s"}),m("loading-bar",` + width: 100%; + transition: + max-width 4s linear, + background .2s linear; + height: var(--n-height); + `,[z("starting",` + background: var(--n-color-loading); + `),z("finishing",` + background: var(--n-color-loading); + transition: + max-width .2s linear, + background .2s linear; + `),z("error",` + background: var(--n-color-error); + transition: + max-width .2s linear, + background .2s linear; + `)])]);var _n=function(e,t,o,r){function n(a){return a instanceof o?a:new o(function(s){s(a)})}return new(o||(o=Promise))(function(a,s){function l(u){try{c(r.next(u))}catch(f){s(f)}}function d(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?a(u.value):n(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};function Hn(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const tx=ie({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=Ze(),{props:t,mergedClsPrefixRef:o}=Ae(_c),r=B(null),n=B(!1),a=B(!1),s=B(!1),l=B(!1);let d=!1;const c=B(!1),u=C(()=>{const{loadingBarStyle:R}=t;return R?R[c.value?"error":"loading"]:""});function f(){return _n(this,void 0,void 0,function*(){n.value=!1,s.value=!1,d=!1,c.value=!1,l.value=!0,yield zt(),l.value=!1})}function v(){return _n(this,arguments,void 0,function*(R=0,w=80,S="starting"){if(a.value=!0,yield f(),d)return;s.value=!0,yield zt();const A=r.value;A&&(A.style.maxWidth=`${R}%`,A.style.transition="none",A.offsetWidth,A.className=Hn(S,o.value),A.style.transition="",A.style.maxWidth=`${w}%`)})}function p(){return _n(this,void 0,void 0,function*(){if(d||c.value)return;a.value&&(yield zt()),d=!0;const R=r.value;R&&(R.className=Hn("finishing",o.value),R.style.maxWidth="100%",R.offsetWidth,s.value=!1)})}function h(){if(!(d||c.value))if(!s.value)v(100,100,"error").then(()=>{c.value=!0;const R=r.value;R&&(R.className=Hn("error",o.value),R.offsetWidth,s.value=!1)});else{c.value=!0;const R=r.value;if(!R)return;R.className=Hn("error",o.value),R.style.maxWidth="100%",R.offsetWidth,s.value=!1}}function g(){n.value=!0}function b(){n.value=!1}function y(){return _n(this,void 0,void 0,function*(){yield f()})}const x=Re("LoadingBar","-loading-bar",ex,Ab,t,o),T=C(()=>{const{self:{height:R,colorError:w,colorLoading:S}}=x.value;return{"--n-height":R,"--n-color-loading":S,"--n-color-error":w}}),$=e?it("loading-bar",void 0,T,t):void 0;return{mergedClsPrefix:o,loadingBarRef:r,started:a,loading:s,entering:n,transitionDisabled:l,start:v,error:h,finish:p,handleEnter:g,handleAfterEnter:b,handleAfterLeave:y,mergedLoadingBarStyle:u,cssVars:e?void 0:T,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return i(Vt,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),lo(i("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},i("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[_o,this.loading||!this.loading&&this.entering]])}})}}),ox=Object.assign(Object.assign({},Re.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),rx=ie({name:"LoadingBarProvider",props:ox,setup(e){const t=qo(),o=B(null),r={start(){var a;t.value?(a=o.value)===null||a===void 0||a.start():zt(()=>{var s;(s=o.value)===null||s===void 0||s.start()})},error(){var a;t.value?(a=o.value)===null||a===void 0||a.error():zt(()=>{var s;(s=o.value)===null||s===void 0||s.error()})},finish(){var a;t.value?(a=o.value)===null||a===void 0||a.finish():zt(()=>{var s;(s=o.value)===null||s===void 0||s.finish()})}},{mergedClsPrefixRef:n}=Ze(e);return Je(Hc,r),Je(_c,{props:e,mergedClsPrefixRef:n}),Object.assign(r,{loadingBarRef:o})},render(){var e,t;return i(Wt,null,i(ua,{disabled:this.to===!1,to:this.to||"body"},i(tx,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function nx(){const e=Ae(Hc,null);return e===null&&Go("use-loading-bar","No outer founded."),e}const Pn="n-menu",Wa="n-submenu",Ua="n-menu-item-group",En=8;function Ka(e){const t=Ae(Pn),{props:o,mergedCollapsedRef:r}=t,n=Ae(Wa,null),a=Ae(Ua,null),s=C(()=>o.mode==="horizontal"),l=C(()=>s.value?o.dropdownPlacement:"tmNodes"in e?"right-start":"right"),d=C(()=>{var v;return Math.max((v=o.collapsedIconSize)!==null&&v!==void 0?v:o.iconSize,o.iconSize)}),c=C(()=>{var v;return!s.value&&e.root&&r.value&&(v=o.collapsedIconSize)!==null&&v!==void 0?v:o.iconSize}),u=C(()=>{if(s.value)return;const{collapsedWidth:v,indent:p,rootIndent:h}=o,{root:g,isGroup:b}=e,y=h===void 0?p:h;return g?r.value?v/2-d.value/2:y:a&&typeof a.paddingLeftRef.value=="number"?p/2+a.paddingLeftRef.value:n&&typeof n.paddingLeftRef.value=="number"?(b?p/2:p)+n.paddingLeftRef.value:0}),f=C(()=>{const{collapsedWidth:v,indent:p,rootIndent:h}=o,{value:g}=d,{root:b}=e;return s.value||!b||!r.value?En:(h===void 0?p:h)+g+En-(v+g)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:d,paddingLeft:u,iconMarginRight:f,NMenu:t,NSubmenu:n}}const qa={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},Ec=Object.assign(Object.assign({},qa),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),ix=ie({name:"MenuOptionGroup",props:Ec,setup(e){Je(Wa,null);const t=Ka(e);Je(Ua,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:o,props:r}=Ae(Pn);return function(){const{value:n}=o,a=t.paddingLeft.value,{nodeProps:s}=r,l=s==null?void 0:s(e.tmNode.rawNode);return i("div",{class:`${n}-menu-item-group`,role:"group"},i("div",Object.assign({},l,{class:[`${n}-menu-item-group-title`,l==null?void 0:l.class],style:[(l==null?void 0:l.style)||"",a!==void 0?`padding-left: ${a}px;`:""]}),St(e.title),e.extra?i(Wt,null," ",St(e.extra)):null),i("div",null,e.tmNodes.map(d=>Ga(d,r))))}}}),Lc=ie({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:t}=Ae(Pn);return{menuProps:t,style:C(()=>{const{paddingLeft:o}=e;return{paddingLeft:o&&`${o}px`}}),iconStyle:C(()=>{const{maxIconSize:o,activeIconSize:r,iconMarginRight:n}=e;return{width:`${o}px`,height:`${o}px`,fontSize:`${r}px`,marginRight:`${n}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:o,renderLabel:r,renderExtra:n,expandIcon:a}}=this,s=o?o(t.rawNode):St(this.icon);return i("div",{onClick:l=>{var d;(d=this.onClick)===null||d===void 0||d.call(this,l)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},s&&i("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[s]),i("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:r?r(t.rawNode):St(this.title),this.extra||n?i("span",{class:`${e}-menu-item-content-header__extra`}," ",n?n(t.rawNode):St(this.extra)):null),this.showArrow?i(kt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>a?a(t.rawNode):i(wf,null)}):null)}}),Nc=Object.assign(Object.assign({},qa),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),ra=ie({name:"Submenu",props:Nc,setup(e){const t=Ka(e),{NMenu:o,NSubmenu:r}=t,{props:n,mergedCollapsedRef:a,mergedThemeRef:s}=o,l=C(()=>{const{disabled:v}=e;return r!=null&&r.mergedDisabledRef.value||n.disabled?!0:v}),d=B(!1);Je(Wa,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:l}),Je(Ua,null);function c(){const{onClick:v}=e;v&&v()}function u(){l.value||(a.value||o.toggleExpand(e.internalKey),c())}function f(v){d.value=v}return{menuProps:n,mergedTheme:s,doSelect:o.doSelect,inverted:o.invertedRef,isHorizontal:o.isHorizontalRef,mergedClsPrefix:o.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:d,paddingLeft:t.paddingLeft,mergedDisabled:l,mergedValue:o.mergedValueRef,childActive:tt(()=>{var v;return(v=e.virtualChildActive)!==null&&v!==void 0?v:o.activePathRef.value.includes(e.internalKey)}),collapsed:C(()=>n.mode==="horizontal"?!1:a.value?!0:!o.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:C(()=>!l.value&&(n.mode==="horizontal"||a.value)),handlePopoverShowChange:f,handleClick:u}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:o,renderLabel:r}}=this,n=()=>{const{isHorizontal:s,paddingLeft:l,collapsed:d,mergedDisabled:c,maxIconSize:u,activeIconSize:f,title:v,childActive:p,icon:h,handleClick:g,menuProps:{nodeProps:b},dropdownShow:y,iconMarginRight:x,tmNode:T,mergedClsPrefix:$,isEllipsisPlaceholder:R,extra:w}=this,S=b==null?void 0:b(T.rawNode);return i("div",Object.assign({},S,{class:[`${$}-menu-item`,S==null?void 0:S.class],role:"menuitem"}),i(Lc,{tmNode:T,paddingLeft:l,collapsed:d,disabled:c,iconMarginRight:x,maxIconSize:u,activeIconSize:f,title:v,extra:w,showArrow:!s,childActive:p,clsPrefix:$,icon:h,hover:y,onClick:g,isEllipsisPlaceholder:R}))},a=()=>i(yn,null,{default:()=>{const{tmNodes:s,collapsed:l}=this;return l?null:i("div",{class:`${t}-submenu-children`,role:"menu"},s.map(d=>Ga(d,this.menuProps)))}});return this.root?i(Nd,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:o,renderLabel:r}),{default:()=>i("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},n(),this.isHorizontal?null:a())}):i("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},n(),a())}}),jc=Object.assign(Object.assign({},qa),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),ax=ie({name:"MenuOption",props:jc,setup(e){const t=Ka(e),{NSubmenu:o,NMenu:r}=t,{props:n,mergedClsPrefixRef:a,mergedCollapsedRef:s}=r,l=o?o.mergedDisabledRef:{value:!1},d=C(()=>l.value||e.disabled);function c(f){const{onClick:v}=e;v&&v(f)}function u(f){d.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),c(f))}return{mergedClsPrefix:a,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:n,dropdownEnabled:tt(()=>e.root&&s.value&&n.mode!=="horizontal"&&!d.value),selected:tt(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:d,handleClick:u}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:o,menuProps:{renderLabel:r,nodeProps:n}}=this,a=n==null?void 0:n(o.rawNode);return i("div",Object.assign({},a,{role:"menuitem",class:[`${e}-menu-item`,a==null?void 0:a.class]}),i(Rd,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(o.rawNode):St(this.title),trigger:()=>i(Lc,{tmNode:o,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),lx=ie({name:"MenuDivider",setup(){const e=Ae(Pn),{mergedClsPrefixRef:t,isHorizontalRef:o}=e;return()=>o.value?null:i("div",{class:`${t.value}-menu-divider`})}}),sx=ko(Ec),dx=ko(jc),cx=ko(Nc);function na(e){return e.type==="divider"||e.type==="render"}function ux(e){return e.type==="divider"}function Ga(e,t){const{rawNode:o}=e,{show:r}=o;if(r===!1)return null;if(na(o))return ux(o)?i(lx,Object.assign({key:e.key},o.props)):null;const{labelField:n}=t,{key:a,level:s,isGroup:l}=e,d=Object.assign(Object.assign({},o),{title:o.title||o[n],extra:o.titleExtra||o.extra,key:a,internalKey:a,level:s,root:s===0,isGroup:l});return e.children?e.isGroup?i(ix,po(d,sx,{tmNode:e,tmNodes:e.children,key:a})):i(ra,po(d,cx,{key:a,rawNodes:o[t.childrenField],tmNodes:e.children,tmNode:e})):i(ax,po(d,dx,{key:a,tmNode:e}))}const Vl=[k("&::before","background-color: var(--n-item-color-hover);"),P("arrow",` + color: var(--n-arrow-color-hover); + `),P("icon",` + color: var(--n-item-icon-color-hover); + `),m("menu-item-content-header",` + color: var(--n-item-text-color-hover); + `,[k("a",` + color: var(--n-item-text-color-hover); + `),P("extra",` + color: var(--n-item-text-color-hover); + `)])],Wl=[P("icon",` + color: var(--n-item-icon-color-hover-horizontal); + `),m("menu-item-content-header",` + color: var(--n-item-text-color-hover-horizontal); + `,[k("a",` + color: var(--n-item-text-color-hover-horizontal); + `),P("extra",` + color: var(--n-item-text-color-hover-horizontal); + `)])],fx=k([m("menu",` + background-color: var(--n-color); + color: var(--n-item-text-color); + overflow: hidden; + transition: background-color .3s var(--n-bezier); + box-sizing: border-box; + font-size: var(--n-font-size); + padding-bottom: 6px; + `,[z("horizontal",` + max-width: 100%; + width: 100%; + display: flex; + overflow: hidden; + padding-bottom: 0; + `,[m("submenu","margin: 0;"),m("menu-item","margin: 0;"),m("menu-item-content",` + padding: 0 20px; + border-bottom: 2px solid #0000; + `,[k("&::before","display: none;"),z("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),m("menu-item-content",[z("selected",[P("icon","color: var(--n-item-icon-color-active-horizontal);"),m("menu-item-content-header",` + color: var(--n-item-text-color-active-horizontal); + `,[k("a","color: var(--n-item-text-color-active-horizontal);"),P("extra","color: var(--n-item-text-color-active-horizontal);")])]),z("child-active",` + border-bottom: 2px solid var(--n-border-color-horizontal); + `,[m("menu-item-content-header",` + color: var(--n-item-text-color-child-active-horizontal); + `,[k("a",` + color: var(--n-item-text-color-child-active-horizontal); + `),P("extra",` + color: var(--n-item-text-color-child-active-horizontal); + `)]),P("icon",` + color: var(--n-item-icon-color-child-active-horizontal); + `)]),nt("disabled",[nt("selected, child-active",[k("&:focus-within",Wl)]),z("selected",[Cr(null,[P("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),m("menu-item-content-header",` + color: var(--n-item-text-color-active-hover-horizontal); + `,[k("a","color: var(--n-item-text-color-active-hover-horizontal);"),P("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),z("child-active",[Cr(null,[P("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),m("menu-item-content-header",` + color: var(--n-item-text-color-child-active-hover-horizontal); + `,[k("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),P("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Cr("border-bottom: 2px solid var(--n-border-color-horizontal);",Wl)]),m("menu-item-content-header",[k("a","color: var(--n-item-text-color-horizontal);")])])]),nt("responsive",[m("menu-item-content-header",` + overflow: hidden; + text-overflow: ellipsis; + `)]),z("collapsed",[m("menu-item-content",[z("selected",[k("&::before",` + background-color: var(--n-item-color-active-collapsed) !important; + `)]),m("menu-item-content-header","opacity: 0;"),P("arrow","opacity: 0;"),P("icon","color: var(--n-item-icon-color-collapsed);")])]),m("menu-item",` + height: var(--n-item-height); + margin-top: 6px; + position: relative; + `),m("menu-item-content",` + box-sizing: border-box; + line-height: 1.75; + height: 100%; + display: grid; + grid-template-areas: "icon content arrow"; + grid-template-columns: auto 1fr auto; + align-items: center; + cursor: pointer; + position: relative; + padding-right: 18px; + transition: + background-color .3s var(--n-bezier), + padding-left .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[k("> *","z-index: 1;"),k("&::before",` + z-index: auto; + content: ""; + background-color: #0000; + position: absolute; + left: 8px; + right: 8px; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: var(--n-border-radius); + transition: background-color .3s var(--n-bezier); + `),z("disabled",` + opacity: .45; + cursor: not-allowed; + `),z("collapsed",[P("arrow","transform: rotate(0);")]),z("selected",[k("&::before","background-color: var(--n-item-color-active);"),P("arrow","color: var(--n-arrow-color-active);"),P("icon","color: var(--n-item-icon-color-active);"),m("menu-item-content-header",` + color: var(--n-item-text-color-active); + `,[k("a","color: var(--n-item-text-color-active);"),P("extra","color: var(--n-item-text-color-active);")])]),z("child-active",[m("menu-item-content-header",` + color: var(--n-item-text-color-child-active); + `,[k("a",` + color: var(--n-item-text-color-child-active); + `),P("extra",` + color: var(--n-item-text-color-child-active); + `)]),P("arrow",` + color: var(--n-arrow-color-child-active); + `),P("icon",` + color: var(--n-item-icon-color-child-active); + `)]),nt("disabled",[nt("selected, child-active",[k("&:focus-within",Vl)]),z("selected",[Cr(null,[P("arrow","color: var(--n-arrow-color-active-hover);"),P("icon","color: var(--n-item-icon-color-active-hover);"),m("menu-item-content-header",` + color: var(--n-item-text-color-active-hover); + `,[k("a","color: var(--n-item-text-color-active-hover);"),P("extra","color: var(--n-item-text-color-active-hover);")])])]),z("child-active",[Cr(null,[P("arrow","color: var(--n-arrow-color-child-active-hover);"),P("icon","color: var(--n-item-icon-color-child-active-hover);"),m("menu-item-content-header",` + color: var(--n-item-text-color-child-active-hover); + `,[k("a","color: var(--n-item-text-color-child-active-hover);"),P("extra","color: var(--n-item-text-color-child-active-hover);")])])]),z("selected",[Cr(null,[k("&::before","background-color: var(--n-item-color-active-hover);")])]),Cr(null,Vl)]),P("icon",` + grid-area: icon; + color: var(--n-item-icon-color); + transition: + color .3s var(--n-bezier), + font-size .3s var(--n-bezier), + margin-right .3s var(--n-bezier); + box-sizing: content-box; + display: inline-flex; + align-items: center; + justify-content: center; + `),P("arrow",` + grid-area: arrow; + font-size: 16px; + color: var(--n-arrow-color); + transform: rotate(180deg); + opacity: 1; + transition: + color .3s var(--n-bezier), + transform 0.2s var(--n-bezier), + opacity 0.2s var(--n-bezier); + `),m("menu-item-content-header",` + grid-area: content; + transition: + color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + opacity: 1; + white-space: nowrap; + color: var(--n-item-text-color); + `,[k("a",` + outline: none; + text-decoration: none; + transition: color .3s var(--n-bezier); + color: var(--n-item-text-color); + `,[k("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),P("extra",` + font-size: .93em; + color: var(--n-group-text-color); + transition: color .3s var(--n-bezier); + `)])]),m("submenu",` + cursor: pointer; + position: relative; + margin-top: 6px; + `,[m("menu-item-content",` + height: var(--n-item-height); + `),m("submenu-children",` + overflow: hidden; + padding: 0; + `,[cn({duration:".2s"})])]),m("menu-item-group",[m("menu-item-group-title",` + margin-top: 6px; + color: var(--n-group-text-color); + cursor: default; + font-size: .93em; + height: 36px; + display: flex; + align-items: center; + transition: + padding-left .3s var(--n-bezier), + color .3s var(--n-bezier); + `)])]),m("menu-tooltip",[k("a",` + color: inherit; + text-decoration: none; + `)]),m("menu-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 6px 18px; + `)]);function Cr(e,t){return[z("hover",e,t),k("&:hover",e,t)]}const hx=Object.assign(Object.assign({},Re.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),Sy=ie({name:"Menu",inheritAttrs:!1,props:hx,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),r=Re("Menu","-menu",fx,Lb,e,t),n=Ae(Dc,null),a=C(()=>{var W;const{collapsed:H}=e;if(H!==void 0)return H;if(n){const{collapseModeRef:F,collapsedRef:j}=n;if(F.value==="width")return(W=j.value)!==null&&W!==void 0?W:!1}return!1}),s=C(()=>{const{keyField:W,childrenField:H,disabledField:F}=e;return Wo(e.items||e.options,{getIgnored(j){return na(j)},getChildren(j){return j[H]},getDisabled(j){return j[F]},getKey(j){var J;return(J=j[W])!==null&&J!==void 0?J:j.name}})}),l=C(()=>new Set(s.value.treeNodes.map(W=>W.key))),{watchProps:d}=e,c=B(null);d!=null&&d.includes("defaultValue")?$t(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const u=fe(e,"value"),f=Rt(u,c),v=B([]),p=()=>{v.value=e.defaultExpandAll?s.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||s.value.getPath(f.value,{includeSelf:!1}).keyPath};d!=null&&d.includes("defaultExpandedKeys")?$t(p):p();const h=nr(e,["expandedNames","expandedKeys"]),g=Rt(h,v),b=C(()=>s.value.treeNodes),y=C(()=>s.value.getPath(f.value).keyPath);Je(Pn,{props:e,mergedCollapsedRef:a,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:g,activePathRef:y,mergedClsPrefixRef:t,isHorizontalRef:C(()=>e.mode==="horizontal"),invertedRef:fe(e,"inverted"),doSelect:x,toggleExpand:$});function x(W,H){const{"onUpdate:value":F,onUpdateValue:j,onSelect:J}=e;j&&ae(j,W,H),F&&ae(F,W,H),J&&ae(J,W,H),c.value=W}function T(W){const{"onUpdate:expandedKeys":H,onUpdateExpandedKeys:F,onExpandedNamesChange:j,onOpenNamesChange:J}=e;H&&ae(H,W),F&&ae(F,W),j&&ae(j,W),J&&ae(J,W),v.value=W}function $(W){const H=Array.from(g.value),F=H.findIndex(j=>j===W);if(~F)H.splice(F,1);else{if(e.accordion&&l.value.has(W)){const j=H.findIndex(J=>l.value.has(J));j>-1&&H.splice(j,1)}H.push(W)}T(H)}const R=W=>{const H=s.value.getPath(W??f.value,{includeSelf:!1}).keyPath;if(!H.length)return;const F=Array.from(g.value),j=new Set([...F,...H]);e.accordion&&l.value.forEach(J=>{j.has(J)&&!H.includes(J)&&j.delete(J)}),T(Array.from(j))},w=C(()=>{const{inverted:W}=e,{common:{cubicBezierEaseInOut:H},self:F}=r.value,{borderRadius:j,borderColorHorizontal:J,fontSize:se,itemHeight:be,dividerColor:Ie}=F,_={"--n-divider-color":Ie,"--n-bezier":H,"--n-font-size":se,"--n-border-color-horizontal":J,"--n-border-radius":j,"--n-item-height":be};return W?(_["--n-group-text-color"]=F.groupTextColorInverted,_["--n-color"]=F.colorInverted,_["--n-item-text-color"]=F.itemTextColorInverted,_["--n-item-text-color-hover"]=F.itemTextColorHoverInverted,_["--n-item-text-color-active"]=F.itemTextColorActiveInverted,_["--n-item-text-color-child-active"]=F.itemTextColorChildActiveInverted,_["--n-item-text-color-child-active-hover"]=F.itemTextColorChildActiveInverted,_["--n-item-text-color-active-hover"]=F.itemTextColorActiveHoverInverted,_["--n-item-icon-color"]=F.itemIconColorInverted,_["--n-item-icon-color-hover"]=F.itemIconColorHoverInverted,_["--n-item-icon-color-active"]=F.itemIconColorActiveInverted,_["--n-item-icon-color-active-hover"]=F.itemIconColorActiveHoverInverted,_["--n-item-icon-color-child-active"]=F.itemIconColorChildActiveInverted,_["--n-item-icon-color-child-active-hover"]=F.itemIconColorChildActiveHoverInverted,_["--n-item-icon-color-collapsed"]=F.itemIconColorCollapsedInverted,_["--n-item-text-color-horizontal"]=F.itemTextColorHorizontalInverted,_["--n-item-text-color-hover-horizontal"]=F.itemTextColorHoverHorizontalInverted,_["--n-item-text-color-active-horizontal"]=F.itemTextColorActiveHorizontalInverted,_["--n-item-text-color-child-active-horizontal"]=F.itemTextColorChildActiveHorizontalInverted,_["--n-item-text-color-child-active-hover-horizontal"]=F.itemTextColorChildActiveHoverHorizontalInverted,_["--n-item-text-color-active-hover-horizontal"]=F.itemTextColorActiveHoverHorizontalInverted,_["--n-item-icon-color-horizontal"]=F.itemIconColorHorizontalInverted,_["--n-item-icon-color-hover-horizontal"]=F.itemIconColorHoverHorizontalInverted,_["--n-item-icon-color-active-horizontal"]=F.itemIconColorActiveHorizontalInverted,_["--n-item-icon-color-active-hover-horizontal"]=F.itemIconColorActiveHoverHorizontalInverted,_["--n-item-icon-color-child-active-horizontal"]=F.itemIconColorChildActiveHorizontalInverted,_["--n-item-icon-color-child-active-hover-horizontal"]=F.itemIconColorChildActiveHoverHorizontalInverted,_["--n-arrow-color"]=F.arrowColorInverted,_["--n-arrow-color-hover"]=F.arrowColorHoverInverted,_["--n-arrow-color-active"]=F.arrowColorActiveInverted,_["--n-arrow-color-active-hover"]=F.arrowColorActiveHoverInverted,_["--n-arrow-color-child-active"]=F.arrowColorChildActiveInverted,_["--n-arrow-color-child-active-hover"]=F.arrowColorChildActiveHoverInverted,_["--n-item-color-hover"]=F.itemColorHoverInverted,_["--n-item-color-active"]=F.itemColorActiveInverted,_["--n-item-color-active-hover"]=F.itemColorActiveHoverInverted,_["--n-item-color-active-collapsed"]=F.itemColorActiveCollapsedInverted):(_["--n-group-text-color"]=F.groupTextColor,_["--n-color"]=F.color,_["--n-item-text-color"]=F.itemTextColor,_["--n-item-text-color-hover"]=F.itemTextColorHover,_["--n-item-text-color-active"]=F.itemTextColorActive,_["--n-item-text-color-child-active"]=F.itemTextColorChildActive,_["--n-item-text-color-child-active-hover"]=F.itemTextColorChildActiveHover,_["--n-item-text-color-active-hover"]=F.itemTextColorActiveHover,_["--n-item-icon-color"]=F.itemIconColor,_["--n-item-icon-color-hover"]=F.itemIconColorHover,_["--n-item-icon-color-active"]=F.itemIconColorActive,_["--n-item-icon-color-active-hover"]=F.itemIconColorActiveHover,_["--n-item-icon-color-child-active"]=F.itemIconColorChildActive,_["--n-item-icon-color-child-active-hover"]=F.itemIconColorChildActiveHover,_["--n-item-icon-color-collapsed"]=F.itemIconColorCollapsed,_["--n-item-text-color-horizontal"]=F.itemTextColorHorizontal,_["--n-item-text-color-hover-horizontal"]=F.itemTextColorHoverHorizontal,_["--n-item-text-color-active-horizontal"]=F.itemTextColorActiveHorizontal,_["--n-item-text-color-child-active-horizontal"]=F.itemTextColorChildActiveHorizontal,_["--n-item-text-color-child-active-hover-horizontal"]=F.itemTextColorChildActiveHoverHorizontal,_["--n-item-text-color-active-hover-horizontal"]=F.itemTextColorActiveHoverHorizontal,_["--n-item-icon-color-horizontal"]=F.itemIconColorHorizontal,_["--n-item-icon-color-hover-horizontal"]=F.itemIconColorHoverHorizontal,_["--n-item-icon-color-active-horizontal"]=F.itemIconColorActiveHorizontal,_["--n-item-icon-color-active-hover-horizontal"]=F.itemIconColorActiveHoverHorizontal,_["--n-item-icon-color-child-active-horizontal"]=F.itemIconColorChildActiveHorizontal,_["--n-item-icon-color-child-active-hover-horizontal"]=F.itemIconColorChildActiveHoverHorizontal,_["--n-arrow-color"]=F.arrowColor,_["--n-arrow-color-hover"]=F.arrowColorHover,_["--n-arrow-color-active"]=F.arrowColorActive,_["--n-arrow-color-active-hover"]=F.arrowColorActiveHover,_["--n-arrow-color-child-active"]=F.arrowColorChildActive,_["--n-arrow-color-child-active-hover"]=F.arrowColorChildActiveHover,_["--n-item-color-hover"]=F.itemColorHover,_["--n-item-color-active"]=F.itemColorActive,_["--n-item-color-active-hover"]=F.itemColorActiveHover,_["--n-item-color-active-collapsed"]=F.itemColorActiveCollapsed),_}),S=o?it("menu",C(()=>e.inverted?"a":"b"),w,e):void 0,A=Ko(),I=B(null),M=B(null);let V=!0;const D=()=>{var W;V?V=!1:(W=I.value)===null||W===void 0||W.sync({showAllItemsBeforeCalculate:!0})};function E(){return document.getElementById(A)}const K=B(-1);function N(W){K.value=e.options.length-W}function oe(W){W||(K.value=-1)}const q=C(()=>{const W=K.value;return{children:W===-1?[]:e.options.slice(W)}}),re=C(()=>{const{childrenField:W,disabledField:H,keyField:F}=e;return Wo([q.value],{getIgnored(j){return na(j)},getChildren(j){return j[W]},getDisabled(j){return j[H]},getKey(j){var J;return(J=j[F])!==null&&J!==void 0?J:j.name}})}),me=C(()=>Wo([{}]).treeNodes[0]);function ue(){var W;if(K.value===-1)return i(ra,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:me.value,domId:A,isEllipsisPlaceholder:!0});const H=re.value.treeNodes[0],F=y.value,j=!!(!((W=H.children)===null||W===void 0)&&W.some(J=>F.includes(J.key)));return i(ra,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:j,tmNode:H,domId:A,rawNodes:H.rawNode.children||[],tmNodes:H.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:h,uncontrolledExpanededKeys:v,mergedExpandedKeys:g,uncontrolledValue:c,mergedValue:f,activePath:y,tmNodes:b,mergedTheme:r,mergedCollapsed:a,cssVars:o?void 0:w,themeClass:S==null?void 0:S.themeClass,overflowRef:I,counterRef:M,updateCounter:()=>{},onResize:D,onUpdateOverflow:oe,onUpdateCount:N,renderCounter:ue,getCounter:E,onRender:S==null?void 0:S.onRender,showOption:R,deriveResponsiveState:D}},render(){const{mergedClsPrefix:e,mode:t,themeClass:o,onRender:r}=this;r==null||r();const n=()=>this.tmNodes.map(d=>Ga(d,this.$props)),s=t==="horizontal"&&this.responsive,l=()=>i("div",ao(this.$attrs,{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,o,`${e}-menu--${t}`,s&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),s?i(Vi,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:n,counter:this.renderCounter}):n());return s?i(Mo,{onResize:this.onResize},{default:l}):l()}}),Vc={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},Wc="n-message-api",Uc="n-message-provider",vx=k([m("message-wrapper",` + margin: var(--n-margin); + z-index: 0; + transform-origin: top center; + display: flex; + `,[cn({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),m("message",` + box-sizing: border-box; + display: flex; + align-items: center; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier), + margin-bottom .3s var(--n-bezier); + padding: var(--n-padding); + border-radius: var(--n-border-radius); + flex-wrap: nowrap; + overflow: hidden; + max-width: var(--n-max-width); + color: var(--n-text-color); + background-color: var(--n-color); + box-shadow: var(--n-box-shadow); + `,[P("content",` + display: inline-block; + line-height: var(--n-line-height); + font-size: var(--n-font-size); + `),P("icon",` + position: relative; + margin: var(--n-icon-margin); + height: var(--n-icon-size); + width: var(--n-icon-size); + font-size: var(--n-icon-size); + flex-shrink: 0; + `,[["default","info","success","warning","error","loading"].map(e=>z(`${e}-type`,[k("> *",` + color: var(--n-icon-color-${e}); + transition: color .3s var(--n-bezier); + `)])),k("> *",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + `,[uo()])]),P("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + flex-shrink: 0; + `,[k("&:hover",` + color: var(--n-close-icon-color-hover); + `),k("&:active",` + color: var(--n-close-icon-color-pressed); + `)])]),m("message-container",` + z-index: 6000; + position: fixed; + height: 0; + overflow: visible; + display: flex; + flex-direction: column; + align-items: center; + `,[z("top",` + top: 12px; + left: 0; + right: 0; + `),z("top-left",` + top: 12px; + left: 12px; + right: 0; + align-items: flex-start; + `),z("top-right",` + top: 12px; + left: 0; + right: 12px; + align-items: flex-end; + `),z("bottom",` + bottom: 4px; + left: 0; + right: 0; + justify-content: flex-end; + `),z("bottom-left",` + bottom: 4px; + left: 12px; + right: 0; + justify-content: flex-end; + align-items: flex-start; + `),z("bottom-right",` + bottom: 4px; + left: 0; + right: 12px; + justify-content: flex-end; + align-items: flex-end; + `)])]),px={info:()=>i(Er,null),success:()=>i(xn,null),warning:()=>i(Cn,null),error:()=>i(bn,null),default:()=>null},gx=ie({name:"Message",props:Object.assign(Object.assign({},Vc),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=Ze(e),{props:r,mergedClsPrefixRef:n}=Ae(Uc),a=Nt("Message",o,n),s=Re("Message","-message",vx,yb,r,n),l=C(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:f,margin:v,maxWidth:p,iconMargin:h,closeMargin:g,closeSize:b,iconSize:y,fontSize:x,lineHeight:T,borderRadius:$,iconColorInfo:R,iconColorSuccess:w,iconColorWarning:S,iconColorError:A,iconColorLoading:I,closeIconSize:M,closeBorderRadius:V,[le("textColor",c)]:D,[le("boxShadow",c)]:E,[le("color",c)]:K,[le("closeColorHover",c)]:N,[le("closeColorPressed",c)]:oe,[le("closeIconColor",c)]:q,[le("closeIconColorPressed",c)]:re,[le("closeIconColorHover",c)]:me}}=s.value;return{"--n-bezier":u,"--n-margin":v,"--n-padding":f,"--n-max-width":p,"--n-font-size":x,"--n-icon-margin":h,"--n-icon-size":y,"--n-close-icon-size":M,"--n-close-border-radius":V,"--n-close-size":b,"--n-close-margin":g,"--n-text-color":D,"--n-color":K,"--n-box-shadow":E,"--n-icon-color-info":R,"--n-icon-color-success":w,"--n-icon-color-warning":S,"--n-icon-color-error":A,"--n-icon-color-loading":I,"--n-close-color-hover":N,"--n-close-color-pressed":oe,"--n-close-icon-color":q,"--n-close-icon-color-pressed":re,"--n-close-icon-color-hover":me,"--n-line-height":T,"--n-border-radius":$}}),d=t?it("message",C(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:n,rtlEnabled:a,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:o,content:r,mergedClsPrefix:n,cssVars:a,themeClass:s,onRender:l,icon:d,handleClose:c,showIcon:u}=this;l==null||l();let f;return i("div",{class:[`${n}-message-wrapper`,s],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},a]},e?e(this.$props):i("div",{class:[`${n}-message ${n}-message--${t}-type`,this.rtlEnabled&&`${n}-message--rtl`]},(f=mx(d,t,n))&&u?i("div",{class:`${n}-message__icon ${n}-message__icon--${t}-type`},i(cr,null,{default:()=>f})):null,i("div",{class:`${n}-message__content`},St(r)),o?i(ur,{clsPrefix:n,class:`${n}-message__close`,onClick:c,absolute:!0}):null))}});function mx(e,t,o){if(typeof e=="function")return e();{const r=t==="loading"?i(Xo,{clsPrefix:o,strokeWidth:24,scale:.85}):px[t]();return r?i(kt,{clsPrefix:o,key:t},{default:()=>r}):null}}const bx=ie({name:"MessageEnvironment",props:Object.assign(Object.assign({},Vc),{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 o=B(!0);Jt(()=>{r()});function r(){const{duration:u}=e;u&&(t=window.setTimeout(s,u))}function n(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function a(u){u.currentTarget===u.target&&r()}function s(){const{onHide:u}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function l(){const{onClose:u}=e;u&&u(),s()}function d(){const{onAfterLeave:u,onInternalAfterLeave:f,onAfterHide:v,internalKey:p}=e;u&&u(),f&&f(p),v&&v()}function c(){s()}return{show:o,hide:s,handleClose:l,handleAfterLeave:d,handleMouseleave:a,handleMouseenter:n,deactivate:c}},render(){return i(yn,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?i(gx,{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]})}}),xx=Object.assign(Object.assign({},Re.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]}),Cx=ie({name:"MessageProvider",props:xx,setup(e){const{mergedClsPrefixRef:t}=Ze(e),o=B([]),r=B({}),n={create(d,c){return a(d,Object.assign({type:"default"},c))},info(d,c){return a(d,Object.assign(Object.assign({},c),{type:"info"}))},success(d,c){return a(d,Object.assign(Object.assign({},c),{type:"success"}))},warning(d,c){return a(d,Object.assign(Object.assign({},c),{type:"warning"}))},error(d,c){return a(d,Object.assign(Object.assign({},c),{type:"error"}))},loading(d,c){return a(d,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};Je(Uc,{props:e,mergedClsPrefixRef:t}),Je(Wc,n);function a(d,c){const u=Ko(),f=ti(Object.assign(Object.assign({},c),{content:d,key:u,destroy:()=>{var p;(p=r.value[u])===null||p===void 0||p.hide()}})),{max:v}=e;return v&&o.value.length>=v&&o.value.shift(),o.value.push(f),f}function s(d){o.value.splice(o.value.findIndex(c=>c.key===d),1),delete r.value[d]}function l(){Object.values(r.value).forEach(d=>{d.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:o,handleAfterLeave:s},n)},render(){var e,t,o;return i(Wt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?i(ua,{to:(o=this.to)!==null&&o!==void 0?o:"body"},i("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(r=>i(bx,Object.assign({ref:n=>{n&&(this.messageRefs[r.key]=n)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},$r(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)}});function yx(){const e=Ae(Wc,null);return e===null&&Go("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const wx=ie({name:"ModalEnvironment",props:Object.assign(Object.assign({},dc),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=B(!0);function o(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:v}=e;u&&u(f),v&&v()}function r(){const{onPositiveClick:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function n(){const{onNegativeClick:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function a(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function s(u){const{onMaskClick:f,maskClosable:v}=e;f&&(f(u),v&&d())}function l(){const{onEsc:u}=e;u&&u()}function d(){t.value=!1}function c(u){t.value=u}return{show:t,hide:d,handleUpdateShow:c,handleAfterLeave:o,handleCloseClick:a,handleNegativeClick:n,handlePositiveClick:r,handleMaskClick:s,handleEsc:l}},render(){const{handleUpdateShow:e,handleAfterLeave:t,handleMaskClick:o,handleEsc:r,show:n}=this;return i(cc,Object.assign({},this.$props,{show:n,onUpdateShow:e,onMaskClick:o,onEsc:r,onAfterLeave:t,internalAppear:!0,internalModal:!0}))}}),Ul="n-modal-provider",Kc="n-modal-api",Sx="n-modal-reactive-list",kx={to:[String,Object]},Rx=ie({name:"ModalProvider",props:kx,setup(){const e=Kn(64),t=qn(),o=B([]),r={};function n(d={}){const c=Ko(),u=ti(Object.assign(Object.assign({},d),{key:c,destroy:()=>{var f;(f=r[`n-modal-${c}`])===null||f===void 0||f.hide()}}));return o.value.push(u),u}function a(d){const{value:c}=o;c.splice(c.findIndex(u=>u.key===d),1)}function s(){Object.values(r).forEach(d=>{d==null||d.hide()})}const l={create:n,destroyAll:s};return Je(Kc,l),Je(Ul,{clickedRef:Kn(64),clickedPositionRef:qn()}),Je(Sx,o),Je(Ul,{clickedRef:e,clickedPositionRef:t}),Object.assign(Object.assign({},l),{modalList:o,modalInstRefs:r,handleAfterLeave:a})},render(){var e,t;return i(Wt,null,[this.modalList.map(o=>{var r;return i(wx,$r(o,["destroy"],{to:(r=o.to)!==null&&r!==void 0?r:this.to,ref:n=>{n===null?delete this.modalInstRefs[`n-modal-${o.key}`]:this.modalInstRefs[`n-modal-${o.key}`]=n},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function zx(){const e=Ae(Kc,null);return e===null&&Go("use-modal","No outer founded."),e}const si="n-notification-provider",Px=ie({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:o}=Ae(si),r=B(null);return $t(()=>{var n,a;o.value>0?(n=r==null?void 0:r.value)===null||n===void 0||n.classList.add("transitioning"):(a=r==null?void 0:r.value)===null||a===void 0||a.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:o}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:o,mergedTheme:r,placement:n}=this;return i("div",{ref:"selfRef",class:[`${o}-notification-container`,t&&`${o}-notification-container--scrollable`,`${o}-notification-container--${n}`]},t?i(Lt,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),$x={info:()=>i(Er,null),success:()=>i(xn,null),warning:()=>i(Cn,null),error:()=>i(bn,null),default:()=>null},Ya={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},Tx=ko(Ya),Fx=ie({name:"Notification",props:Ya,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:o,props:r}=Ae(si),{inlineThemeDisabled:n,mergedRtlRef:a}=Ze(),s=Nt("Notification",a,t),l=C(()=>{const{type:c}=e,{self:{color:u,textColor:f,closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:h,headerTextColor:g,descriptionTextColor:b,actionTextColor:y,borderRadius:x,headerFontWeight:T,boxShadow:$,lineHeight:R,fontSize:w,closeMargin:S,closeSize:A,width:I,padding:M,closeIconSize:V,closeBorderRadius:D,closeColorHover:E,closeColorPressed:K,titleFontSize:N,metaFontSize:oe,descriptionFontSize:q,[le("iconColor",c)]:re},common:{cubicBezierEaseOut:me,cubicBezierEaseIn:ue,cubicBezierEaseInOut:W}}=o.value,{left:H,right:F,top:j,bottom:J}=qt(M);return{"--n-color":u,"--n-font-size":w,"--n-text-color":f,"--n-description-text-color":b,"--n-action-text-color":y,"--n-title-text-color":g,"--n-title-font-weight":T,"--n-bezier":W,"--n-bezier-ease-out":me,"--n-bezier-ease-in":ue,"--n-border-radius":x,"--n-box-shadow":$,"--n-close-border-radius":D,"--n-close-color-hover":E,"--n-close-color-pressed":K,"--n-close-icon-color":v,"--n-close-icon-color-hover":p,"--n-close-icon-color-pressed":h,"--n-line-height":R,"--n-icon-color":re,"--n-close-margin":S,"--n-close-size":A,"--n-close-icon-size":V,"--n-width":I,"--n-padding-left":H,"--n-padding-right":F,"--n-padding-top":j,"--n-padding-bottom":J,"--n-title-font-size":N,"--n-meta-font-size":oe,"--n-description-font-size":q}}),d=n?it("notification",C(()=>e.type[0]),l,r):void 0;return{mergedClsPrefix:t,showAvatar:C(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:s,cssVars:n?void 0:l,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),i("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},i("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?i("div",{class:`${t}-notification__avatar`},this.avatar?St(this.avatar):this.type!=="default"?i(kt,{clsPrefix:t},{default:()=>$x[this.type]()}):null):null,this.closable?i(ur,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,i("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?i("div",{class:`${t}-notification-main__header`},St(this.title)):null,this.description?i("div",{class:`${t}-notification-main__description`},St(this.description)):null,this.content?i("pre",{class:`${t}-notification-main__content`},St(this.content)):null,this.meta||this.action?i("div",{class:`${t}-notification-main-footer`},this.meta?i("div",{class:`${t}-notification-main-footer__meta`},St(this.meta)):null,this.action?i("div",{class:`${t}-notification-main-footer__action`},St(this.action)):null):null)))}}),Ix=Object.assign(Object.assign({},Ya),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),Bx=ie({name:"NotificationEnvironment",props:Object.assign(Object.assign({},Ix),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Ae(si),o=B(!0);let r=null;function n(){o.value=!1,r&&window.clearTimeout(r)}function a(h){t.value++,zt(()=>{h.style.height=`${h.offsetHeight}px`,h.style.maxHeight="0",h.style.transition="none",h.offsetHeight,h.style.transition="",h.style.maxHeight=h.style.height})}function s(h){t.value--,h.style.height="",h.style.maxHeight="";const{onAfterEnter:g,onAfterShow:b}=e;g&&g(),b&&b()}function l(h){t.value++,h.style.maxHeight=`${h.offsetHeight}px`,h.style.height=`${h.offsetHeight}px`,h.offsetHeight}function d(h){const{onHide:g}=e;g&&g(),h.style.maxHeight="0",h.offsetHeight}function c(){t.value--;const{onAfterLeave:h,onInternalAfterLeave:g,onAfterHide:b,internalKey:y}=e;h&&h(),g(y),b&&b()}function u(){const{duration:h}=e;h&&(r=window.setTimeout(n,h))}function f(h){h.currentTarget===h.target&&r!==null&&(window.clearTimeout(r),r=null)}function v(h){h.currentTarget===h.target&&u()}function p(){const{onClose:h}=e;h?Promise.resolve(h()).then(g=>{g!==!1&&n()}):n()}return Jt(()=>{e.duration&&(r=window.setTimeout(n,e.duration))}),{show:o,hide:n,handleClose:p,handleAfterLeave:c,handleLeave:d,handleBeforeLeave:l,handleAfterEnter:s,handleBeforeEnter:a,handleMouseenter:f,handleMouseleave:v}},render(){return i(Vt,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?i(Fx,Object.assign({},po(this.$props,Tx),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),Ox=k([m("notification-container",` + z-index: 4000; + position: fixed; + overflow: visible; + display: flex; + flex-direction: column; + align-items: flex-end; + `,[k(">",[m("scrollbar",` + width: initial; + overflow: visible; + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[k(">",[m("scrollbar-container",` + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[m("scrollbar-content",` + padding-top: 12px; + padding-bottom: 33px; + `)])])])]),z("top, top-right, top-left",` + top: 12px; + `,[k("&.transitioning >",[m("scrollbar",[k(">",[m("scrollbar-container",` + min-height: 100vh !important; + `)])])])]),z("bottom, bottom-right, bottom-left",` + bottom: 12px; + `,[k(">",[m("scrollbar",[k(">",[m("scrollbar-container",[m("scrollbar-content",` + padding-bottom: 12px; + `)])])])]),m("notification-wrapper",` + display: flex; + align-items: flex-end; + margin-bottom: 0; + margin-top: 12px; + `)]),z("top, bottom",` + left: 50%; + transform: translateX(-50%); + `,[m("notification-wrapper",[k("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: scale(0.85); + `),k("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: scale(1); + `)])]),z("top",[m("notification-wrapper",` + transform-origin: top center; + `)]),z("bottom",[m("notification-wrapper",` + transform-origin: bottom center; + `)]),z("top-right, bottom-right",[m("notification",` + margin-left: 28px; + margin-right: 16px; + `)]),z("top-left, bottom-left",[m("notification",` + margin-left: 16px; + margin-right: 28px; + `)]),z("top-right",` + right: 0; + `,[Ln("top-right")]),z("top-left",` + left: 0; + `,[Ln("top-left")]),z("bottom-right",` + right: 0; + `,[Ln("bottom-right")]),z("bottom-left",` + left: 0; + `,[Ln("bottom-left")]),z("scrollable",[z("top-right",` + top: 0; + `),z("top-left",` + top: 0; + `),z("bottom-right",` + bottom: 0; + `),z("bottom-left",` + bottom: 0; + `)]),m("notification-wrapper",` + margin-bottom: 12px; + `,[k("&.notification-transition-enter-from, &.notification-transition-leave-to",` + opacity: 0; + margin-top: 0 !important; + margin-bottom: 0 !important; + `),k("&.notification-transition-leave-from, &.notification-transition-enter-to",` + opacity: 1; + `),k("&.notification-transition-leave-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-in), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `),k("&.notification-transition-enter-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-out), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `)]),m("notification",` + background-color: var(--n-color); + color: var(--n-text-color); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + font-family: inherit; + font-size: var(--n-font-size); + font-weight: 400; + position: relative; + display: flex; + overflow: hidden; + flex-shrink: 0; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + width: var(--n-width); + max-width: calc(100vw - 16px - 16px); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + box-sizing: border-box; + opacity: 1; + `,[P("avatar",[m("icon",` + color: var(--n-icon-color); + `),m("base-icon",` + color: var(--n-icon-color); + `)]),z("show-avatar",[m("notification-main",` + margin-left: 40px; + width: calc(100% - 40px); + `)]),z("closable",[m("notification-main",[k("> *:first-child",` + padding-right: 20px; + `)]),P("close",` + position: absolute; + top: 0; + right: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),P("avatar",` + position: absolute; + top: var(--n-padding-top); + left: var(--n-padding-left); + width: 28px; + height: 28px; + font-size: 28px; + display: flex; + align-items: center; + justify-content: center; + `,[m("icon","transition: color .3s var(--n-bezier);")]),m("notification-main",` + padding-top: var(--n-padding-top); + padding-bottom: var(--n-padding-bottom); + box-sizing: border-box; + display: flex; + flex-direction: column; + margin-left: 8px; + width: calc(100% - 8px); + `,[m("notification-main-footer",` + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 12px; + `,[P("meta",` + font-size: var(--n-meta-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),P("action",` + cursor: pointer; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-action-text-color); + `)]),P("header",` + font-weight: var(--n-title-font-weight); + font-size: var(--n-title-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-title-text-color); + `),P("description",` + margin-top: 8px; + font-size: var(--n-description-font-size); + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),P("content",` + line-height: var(--n-line-height); + margin: 12px 0 0 0; + font-family: inherit; + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-text-color); + `,[k("&:first-child","margin: 0;")])])])])]);function Ln(e){const o=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)";return m("notification-wrapper",[k("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: translate(${o}, 0); + `),k("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: translate(0, 0); + `)])}const qc="n-notification-api",Dx=Object.assign(Object.assign({},Re.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),Mx=ie({name:"NotificationProvider",props:Dx,setup(e){const{mergedClsPrefixRef:t}=Ze(e),o=B([]),r={},n=new Set;function a(p){const h=Ko(),g=()=>{n.add(h),r[h]&&r[h].hide()},b=ti(Object.assign(Object.assign({},p),{key:h,destroy:g,hide:g,deactivate:g})),{max:y}=e;if(y&&o.value.length-n.size>=y){let x=!1,T=0;for(const $ of o.value){if(!n.has($.key)){r[$.key]&&($.destroy(),x=!0);break}T++}x||o.value.splice(T,1)}return o.value.push(b),b}const s=["info","success","warning","error"].map(p=>h=>a(Object.assign(Object.assign({},h),{type:p})));function l(p){n.delete(p),o.value.splice(o.value.findIndex(h=>h.key===p),1)}const d=Re("Notification","-notification",Ox,bb,e,t),c={create:a,info:s[0],success:s[1],warning:s[2],error:s[3],open:f,destroyAll:v},u=B(0);Je(qc,c),Je(si,{props:e,mergedClsPrefixRef:t,mergedThemeRef:d,wipTransitionCountRef:u});function f(p){return a(p)}function v(){Object.values(o.value).forEach(p=>{p.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:r,handleAfterLeave:l},c)},render(){var e,t,o;const{placement:r}=this;return i(Wt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?i(ua,{to:(o=this.to)!==null&&o!==void 0?o:"body"},i(Px,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(n=>i(Bx,Object.assign({ref:a=>{const s=n.key;a===null?delete this.notificationRefs[s]:this.notificationRefs[s]=a}},$r(n,["destroy","hide","deactivate"]),{internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover})))})):null)}});function Ax(){const e=Ae(qc,null);return e===null&&Go("use-notification","No outer `n-notification-provider` found."),e}const _x={name:"QrCode",common:_e,self:e=>({borderRadius:e.borderRadius})},Hx=i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},i("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),i("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),i("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),i("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),i("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),i("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),Ex=i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},i("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),i("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),i("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),Lx=i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},i("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),i("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),i("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),i("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),i("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),i("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),Nx=i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},i("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),i("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),jx=m("result",` + color: var(--n-text-color); + line-height: var(--n-line-height); + font-size: var(--n-font-size); + transition: + color .3s var(--n-bezier); +`,[m("result-icon",` + display: flex; + justify-content: center; + transition: color .3s var(--n-bezier); + `,[P("status-image",` + font-size: var(--n-icon-size); + width: 1em; + height: 1em; + `),m("base-icon",` + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)]),m("result-content",{marginTop:"24px"}),m("result-footer",` + margin-top: 24px; + text-align: center; + `),m("result-header",[P("title",` + margin-top: 16px; + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + text-align: center; + color: var(--n-title-text-color); + font-size: var(--n-title-font-size); + `),P("description",` + margin-top: 4px; + text-align: center; + font-size: var(--n-font-size); + `)])]),Vx={403:()=>Nx,404:()=>Hx,418:()=>Lx,500:()=>Ex,info:()=>i(Er,null),success:()=>i(xn,null),warning:()=>i(Cn,null),error:()=>i(bn,null)},Wx=Object.assign(Object.assign({},Re.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),ky=ie({name:"Result",props:Wx,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),r=Re("Result","-result",jx,Zb,e,t),n=C(()=>{const{size:s,status:l}=e,{common:{cubicBezierEaseInOut:d},self:{textColor:c,lineHeight:u,titleTextColor:f,titleFontWeight:v,[le("iconColor",l)]:p,[le("fontSize",s)]:h,[le("titleFontSize",s)]:g,[le("iconSize",s)]:b}}=r.value;return{"--n-bezier":d,"--n-font-size":h,"--n-icon-size":b,"--n-line-height":u,"--n-text-color":c,"--n-title-font-size":g,"--n-title-font-weight":v,"--n-title-text-color":f,"--n-icon-color":p||""}}),a=o?it("result",C(()=>{const{size:s,status:l}=e;let d="";return s&&(d+=s[0]),l&&(d+=l[0]),d}),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;const{status:t,$slots:o,mergedClsPrefix:r,onRender:n}=this;return n==null||n(),i("div",{class:[`${r}-result`,this.themeClass],style:this.cssVars},i("div",{class:`${r}-result-icon`},((e=o.icon)===null||e===void 0?void 0:e.call(o))||i(kt,{clsPrefix:r},{default:()=>Vx[t]()})),i("div",{class:`${r}-result-header`},this.title?i("div",{class:`${r}-result-header__title`},this.title):null,this.description?i("div",{class:`${r}-result-header__description`},this.description):null),o.default&&i("div",{class:`${r}-result-content`},o),o.footer&&i("div",{class:`${r}-result-footer`},o.footer()))}}),Ux=Object.assign(Object.assign({},Re.props),{trigger:String,xScrollable:Boolean,onScroll:Function,contentClass:String,contentStyle:[Object,String],size:Number,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),Ry=ie({name:"Scrollbar",props:Ux,setup(){const e=B(null);return Object.assign(Object.assign({},{scrollTo:(...o)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(o[0],o[1])},scrollBy:(...o)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(o[0],o[1])}}),{scrollbarInstRef:e})},render(){return i(Lt,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),Kx={name:"Skeleton",common:_e,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},qx=k([k("@keyframes spin-rotate",` + from { + transform: rotate(0); + } + to { + transform: rotate(360deg); + } + `),m("spin-container",` + position: relative; + `,[m("spin-body",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + `,[Sn()])]),m("spin-body",` + display: inline-flex; + align-items: center; + justify-content: center; + flex-direction: column; + `),m("spin",` + display: inline-flex; + height: var(--n-size); + width: var(--n-size); + font-size: var(--n-size); + color: var(--n-color); + `,[z("rotate",` + animation: spin-rotate 2s linear infinite; + `)]),m("spin-description",` + display: inline-block; + font-size: var(--n-font-size); + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + margin-top: 8px; + `),m("spin-content",` + opacity: 1; + transition: opacity .3s var(--n-bezier); + pointer-events: all; + `,[z("spinning",` + user-select: none; + -webkit-user-select: none; + pointer-events: none; + opacity: var(--n-opacity-spinning); + `)])]),Gx={small:20,medium:18,large:16},Yx=Object.assign(Object.assign({},Re.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),zy=ie({name:"Spin",props:Yx,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),r=Re("Spin","-spin",qx,t0,e,t),n=C(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:c},self:u}=r.value,{opacitySpinning:f,color:v,textColor:p}=u,h=typeof d=="number"?Et(d):u[le("size",d)];return{"--n-bezier":c,"--n-opacity-spinning":f,"--n-size":h,"--n-color":v,"--n-text-color":p}}),a=o?it("spin",C(()=>{const{size:d}=e;return typeof d=="number"?String(d):d[0]}),n,e):void 0,s=nr(e,["spinning","show"]),l=B(!1);return $t(d=>{let c;if(s.value){const{delay:u}=e;if(u){c=window.setTimeout(()=>{l.value=!0},u),d(()=>{clearTimeout(c)});return}}l.value=s.value}),{mergedClsPrefix:t,active:l,mergedStrokeWidth:C(()=>{const{strokeWidth:d}=e;if(d!==void 0)return d;const{size:c}=e;return Gx[typeof c=="number"?"medium":c]}),cssVars:o?void 0:n,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t;const{$slots:o,mergedClsPrefix:r,description:n}=this,a=o.icon&&this.rotate,s=(n||o.description)&&i("div",{class:`${r}-spin-description`},n||((e=o.description)===null||e===void 0?void 0:e.call(o))),l=o.icon?i("div",{class:[`${r}-spin-body`,this.themeClass]},i("div",{class:[`${r}-spin`,a&&`${r}-spin--rotate`],style:o.default?"":this.cssVars},o.icon()),s):i("div",{class:[`${r}-spin-body`,this.themeClass]},i(Xo,{clsPrefix:r,style:o.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),s);return(t=this.onRender)===null||t===void 0||t.call(this),o.default?i("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},i("div",{class:[`${r}-spin-content`,this.active&&`${r}-spin-content--spinning`,this.contentClass],style:this.contentStyle},o),i(Vt,{name:"fade-in-transition"},{default:()=>this.active?l:null})):l}}),Xx={name:"Split",common:_e},Zx=m("switch",` + height: var(--n-height); + min-width: var(--n-width); + vertical-align: middle; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + outline: none; + justify-content: center; + align-items: center; +`,[P("children-placeholder",` + height: var(--n-rail-height); + display: flex; + flex-direction: column; + overflow: hidden; + pointer-events: none; + visibility: hidden; + `),P("rail-placeholder",` + display: flex; + flex-wrap: none; + `),P("button-placeholder",` + width: calc(1.75 * var(--n-rail-height)); + height: var(--n-rail-height); + `),m("base-loading",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + font-size: calc(var(--n-button-width) - 4px); + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + `,[uo({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),P("checked, unchecked",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + box-sizing: border-box; + position: absolute; + white-space: nowrap; + top: 0; + bottom: 0; + display: flex; + align-items: center; + line-height: 1; + `),P("checked",` + right: 0; + padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),P("unchecked",` + left: 0; + justify-content: flex-end; + padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),k("&:focus",[P("rail",` + box-shadow: var(--n-box-shadow-focus); + `)]),z("round",[P("rail","border-radius: calc(var(--n-rail-height) / 2);",[P("button","border-radius: calc(var(--n-button-height) / 2);")])]),nt("disabled",[nt("icon",[z("rubber-band",[z("pressed",[P("rail",[P("button","max-width: var(--n-button-width-pressed);")])]),P("rail",[k("&:active",[P("button","max-width: var(--n-button-width-pressed);")])]),z("active",[z("pressed",[P("rail",[P("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),P("rail",[k("&:active",[P("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),z("active",[P("rail",[P("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),P("rail",` + overflow: hidden; + height: var(--n-rail-height); + min-width: var(--n-rail-width); + border-radius: var(--n-rail-border-radius); + cursor: pointer; + position: relative; + transition: + opacity .3s var(--n-bezier), + background .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-rail-color); + `,[P("button-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + font-size: calc(var(--n-button-height) - 4px); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + justify-content: center; + align-items: center; + line-height: 1; + `,[uo()]),P("button",` + align-items: center; + top: var(--n-offset); + left: var(--n-offset); + height: var(--n-button-height); + width: var(--n-button-width-pressed); + max-width: var(--n-button-width); + border-radius: var(--n-button-border-radius); + background-color: var(--n-button-color); + box-shadow: var(--n-button-box-shadow); + box-sizing: border-box; + cursor: inherit; + content: ""; + position: absolute; + transition: + background-color .3s var(--n-bezier), + left .3s var(--n-bezier), + opacity .3s var(--n-bezier), + max-width .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `)]),z("active",[P("rail","background-color: var(--n-rail-color-active);")]),z("loading",[P("rail",` + cursor: wait; + `)]),z("disabled",[P("rail",` + cursor: not-allowed; + opacity: .5; + `)])]),Qx=Object.assign(Object.assign({},Re.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let en;const Py=ie({name:"Switch",props:Qx,setup(e){en===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?en=CSS.supports("width","max(1px)"):en=!1:en=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),r=Re("Switch","-switch",Zx,c0,e,t),n=xo(e),{mergedSizeRef:a,mergedDisabledRef:s}=n,l=B(e.defaultValue),d=fe(e,"value"),c=Rt(d,l),u=C(()=>c.value===e.checkedValue),f=B(!1),v=B(!1),p=C(()=>{const{railStyle:A}=e;if(A)return A({focused:v.value,checked:u.value})});function h(A){const{"onUpdate:value":I,onChange:M,onUpdateValue:V}=e,{nTriggerFormInput:D,nTriggerFormChange:E}=n;I&&ae(I,A),V&&ae(V,A),M&&ae(M,A),l.value=A,D(),E()}function g(){const{nTriggerFormFocus:A}=n;A()}function b(){const{nTriggerFormBlur:A}=n;A()}function y(){e.loading||s.value||(c.value!==e.checkedValue?h(e.checkedValue):h(e.uncheckedValue))}function x(){v.value=!0,g()}function T(){v.value=!1,b(),f.value=!1}function $(A){e.loading||s.value||A.key===" "&&(c.value!==e.checkedValue?h(e.checkedValue):h(e.uncheckedValue),f.value=!1)}function R(A){e.loading||s.value||A.key===" "&&(A.preventDefault(),f.value=!0)}const w=C(()=>{const{value:A}=a,{self:{opacityDisabled:I,railColor:M,railColorActive:V,buttonBoxShadow:D,buttonColor:E,boxShadowFocus:K,loadingColor:N,textColor:oe,iconColor:q,[le("buttonHeight",A)]:re,[le("buttonWidth",A)]:me,[le("buttonWidthPressed",A)]:ue,[le("railHeight",A)]:W,[le("railWidth",A)]:H,[le("railBorderRadius",A)]:F,[le("buttonBorderRadius",A)]:j},common:{cubicBezierEaseInOut:J}}=r.value;let se,be,Ie;return en?(se=`calc((${W} - ${re}) / 2)`,be=`max(${W}, ${re})`,Ie=`max(${H}, calc(${H} + ${re} - ${W}))`):(se=Et((Mt(W)-Mt(re))/2),be=Et(Math.max(Mt(W),Mt(re))),Ie=Mt(W)>Mt(re)?H:Et(Mt(H)+Mt(re)-Mt(W))),{"--n-bezier":J,"--n-button-border-radius":j,"--n-button-box-shadow":D,"--n-button-color":E,"--n-button-width":me,"--n-button-width-pressed":ue,"--n-button-height":re,"--n-height":be,"--n-offset":se,"--n-opacity-disabled":I,"--n-rail-border-radius":F,"--n-rail-color":M,"--n-rail-color-active":V,"--n-rail-height":W,"--n-rail-width":H,"--n-width":Ie,"--n-box-shadow-focus":K,"--n-loading-color":N,"--n-text-color":oe,"--n-icon-color":q}}),S=o?it("switch",C(()=>a.value[0]),w,e):void 0;return{handleClick:y,handleBlur:T,handleFocus:x,handleKeyup:$,handleKeydown:R,mergedRailStyle:p,pressed:f,mergedClsPrefix:t,mergedValue:c,checked:u,mergedDisabled:s,cssVars:o?void 0:w,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:o,mergedRailStyle:r,onRender:n,$slots:a}=this;n==null||n();const{checked:s,unchecked:l,icon:d,"checked-icon":c,"unchecked-icon":u}=a,f=!(_r(d)&&_r(c)&&_r(u));return i("div",{role:"switch","aria-checked":o,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,o&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},i("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},mt(s,v=>mt(l,p=>v||p?i("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},i("div",{class:`${e}-switch__rail-placeholder`},i("div",{class:`${e}-switch__button-placeholder`}),v),i("div",{class:`${e}-switch__rail-placeholder`},i("div",{class:`${e}-switch__button-placeholder`}),p)):null)),i("div",{class:`${e}-switch__button`},mt(d,v=>mt(c,p=>mt(u,h=>i(cr,null,{default:()=>this.loading?i(Xo,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(p||v)?i("div",{class:`${e}-switch__button-icon`,key:p?"checked-icon":"icon"},p||v):!this.checked&&(h||v)?i("div",{class:`${e}-switch__button-icon`,key:h?"unchecked-icon":"icon"},h||v):null})))),mt(s,v=>v&&i("div",{key:"checked",class:`${e}-switch__checked`},v)),mt(l,v=>v&&i("div",{key:"unchecked",class:`${e}-switch__unchecked`},v)))))}}),Xa="n-tabs",Gc={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},$y=ie({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:Gc,setup(e){const t=Ae(Xa,null);return t||Go("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return i("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Jx=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},$r(Gc,["displayDirective"])),ia=ie({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:Jx,setup(e){const{mergedClsPrefixRef:t,valueRef:o,typeRef:r,closableRef:n,tabStyleRef:a,addTabStyleRef:s,tabClassRef:l,addTabClassRef:d,tabChangeIdRef:c,onBeforeLeaveRef:u,triggerRef:f,handleAdd:v,activateTab:p,handleClose:h}=Ae(Xa);return{trigger:f,mergedClosable:C(()=>{if(e.internalAddable)return!1;const{closable:g}=e;return g===void 0?n.value:g}),style:a,addStyle:s,tabClass:l,addTabClass:d,clsPrefix:t,value:o,type:r,handleClose(g){g.stopPropagation(),!e.disabled&&h(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){v();return}const{name:g}=e,b=++c.id;if(g!==o.value){const{value:y}=u;y?Promise.resolve(y(e.name,o.value)).then(x=>{x&&c.id===b&&p(g)}):p(g)}}}},render(){const{internalAddable:e,clsPrefix:t,name:o,disabled:r,label:n,tab:a,value:s,mergedClosable:l,trigger:d,$slots:{default:c}}=this,u=n??a;return i("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?i("div",{class:`${t}-tabs-tab-pad`}):null,i("div",Object.assign({key:o,"data-name":o,"data-disabled":r?!0:void 0},ao({class:[`${t}-tabs-tab`,s===o&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:d==="click"?this.activateTab:void 0,onMouseenter:d==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),i("span",{class:`${t}-tabs-tab__label`},e?i(Wt,null,i("div",{class:`${t}-tabs-tab__height-placeholder`}," "),i(kt,{clsPrefix:t},{default:()=>i(xa,null)})):c?c():typeof u=="object"?u:St(u??o)),l&&this.type==="card"?i(ur,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),eC=m("tabs",` + box-sizing: border-box; + width: 100%; + display: flex; + flex-direction: column; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); +`,[z("segment-type",[m("tabs-rail",[k("&.transition-disabled",[m("tabs-capsule",` + transition: none; + `)])])]),z("top",[m("tab-pane",` + padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left); + `)]),z("left",[m("tab-pane",` + padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top); + `)]),z("left, right",` + flex-direction: row; + `,[m("tabs-bar",` + width: 2px; + right: 0; + transition: + top .2s var(--n-bezier), + max-height .2s var(--n-bezier), + background-color .3s var(--n-bezier); + `),m("tabs-tab",` + padding: var(--n-tab-padding-vertical); + `)]),z("right",` + flex-direction: row-reverse; + `,[m("tab-pane",` + padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom); + `),m("tabs-bar",` + left: 0; + `)]),z("bottom",` + flex-direction: column-reverse; + justify-content: flex-end; + `,[m("tab-pane",` + padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left); + `),m("tabs-bar",` + top: 0; + `)]),m("tabs-rail",` + position: relative; + padding: 3px; + border-radius: var(--n-tab-border-radius); + width: 100%; + background-color: var(--n-color-segment); + transition: background-color .3s var(--n-bezier); + display: flex; + align-items: center; + `,[m("tabs-capsule",` + border-radius: var(--n-tab-border-radius); + position: absolute; + pointer-events: none; + background-color: var(--n-tab-color-segment); + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); + transition: transform 0.3s var(--n-bezier); + `),m("tabs-tab-wrapper",` + flex-basis: 0; + flex-grow: 1; + display: flex; + align-items: center; + justify-content: center; + `,[m("tabs-tab",` + overflow: hidden; + border-radius: var(--n-tab-border-radius); + width: 100%; + display: flex; + align-items: center; + justify-content: center; + `,[z("active",` + font-weight: var(--n-font-weight-strong); + color: var(--n-tab-text-color-active); + `),k("&:hover",` + color: var(--n-tab-text-color-hover); + `)])])]),z("flex",[m("tabs-nav",` + width: 100%; + position: relative; + `,[m("tabs-wrapper",` + width: 100%; + `,[m("tabs-tab",` + margin-right: 0; + `)])])]),m("tabs-nav",` + box-sizing: border-box; + line-height: 1.5; + display: flex; + transition: border-color .3s var(--n-bezier); + `,[P("prefix, suffix",` + display: flex; + align-items: center; + `),P("prefix","padding-right: 16px;"),P("suffix","padding-left: 16px;")]),z("top, bottom",[m("tabs-nav-scroll-wrapper",[k("&::before",` + top: 0; + bottom: 0; + left: 0; + width: 20px; + `),k("&::after",` + top: 0; + bottom: 0; + right: 0; + width: 20px; + `),z("shadow-start",[k("&::before",` + box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); + `)]),z("shadow-end",[k("&::after",` + box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); + `)])])]),z("left, right",[m("tabs-nav-scroll-content",` + flex-direction: column; + `),m("tabs-nav-scroll-wrapper",[k("&::before",` + top: 0; + left: 0; + right: 0; + height: 20px; + `),k("&::after",` + bottom: 0; + left: 0; + right: 0; + height: 20px; + `),z("shadow-start",[k("&::before",` + box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12); + `)]),z("shadow-end",[k("&::after",` + box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12); + `)])])]),m("tabs-nav-scroll-wrapper",` + flex: 1; + position: relative; + overflow: hidden; + `,[m("tabs-nav-y-scroll",` + height: 100%; + width: 100%; + overflow-y: auto; + scrollbar-width: none; + `,[k("&::-webkit-scrollbar",` + width: 0; + height: 0; + `)]),k("&::before, &::after",` + transition: box-shadow .3s var(--n-bezier); + pointer-events: none; + content: ""; + position: absolute; + z-index: 1; + `)]),m("tabs-nav-scroll-content",` + display: flex; + position: relative; + min-width: 100%; + min-height: 100%; + width: fit-content; + box-sizing: border-box; + `),m("tabs-wrapper",` + display: inline-flex; + flex-wrap: nowrap; + position: relative; + `),m("tabs-tab-wrapper",` + display: flex; + flex-wrap: nowrap; + flex-shrink: 0; + flex-grow: 0; + `),m("tabs-tab",` + cursor: pointer; + white-space: nowrap; + flex-wrap: nowrap; + display: inline-flex; + align-items: center; + color: var(--n-tab-text-color); + font-size: var(--n-tab-font-size); + background-clip: padding-box; + padding: var(--n-tab-padding); + transition: + box-shadow .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[z("disabled",{cursor:"not-allowed"}),P("close",` + margin-left: 6px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),P("label",` + display: flex; + align-items: center; + z-index: 1; + `)]),m("tabs-bar",` + position: absolute; + bottom: 0; + height: 2px; + border-radius: 1px; + background-color: var(--n-bar-color); + transition: + left .2s var(--n-bezier), + max-width .2s var(--n-bezier), + opacity .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `,[k("&.transition-disabled",` + transition: none; + `),z("disabled",` + background-color: var(--n-tab-text-color-disabled) + `)]),m("tabs-pane-wrapper",` + position: relative; + overflow: hidden; + transition: max-height .2s var(--n-bezier); + `),m("tab-pane",` + color: var(--n-pane-text-color); + width: 100%; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .2s var(--n-bezier); + left: 0; + right: 0; + top: 0; + `,[k("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + transform .2s var(--n-bezier), + opacity .2s var(--n-bezier); + `),k("&.next-transition-leave-active, &.prev-transition-leave-active",` + position: absolute; + `),k("&.next-transition-enter-from, &.prev-transition-leave-to",` + transform: translateX(32px); + opacity: 0; + `),k("&.next-transition-leave-to, &.prev-transition-enter-from",` + transform: translateX(-32px); + opacity: 0; + `),k("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` + transform: translateX(0); + opacity: 1; + `)]),m("tabs-tab-pad",` + box-sizing: border-box; + width: var(--n-tab-gap); + flex-grow: 0; + flex-shrink: 0; + `),z("line-type, bar-type",[m("tabs-tab",` + font-weight: var(--n-tab-font-weight); + box-sizing: border-box; + vertical-align: bottom; + `,[k("&:hover",{color:"var(--n-tab-text-color-hover)"}),z("active",` + color: var(--n-tab-text-color-active); + font-weight: var(--n-tab-font-weight-active); + `),z("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),m("tabs-nav",[z("line-type",[z("top",[P("prefix, suffix",` + border-bottom: 1px solid var(--n-tab-border-color); + `),m("tabs-nav-scroll-content",` + border-bottom: 1px solid var(--n-tab-border-color); + `),m("tabs-bar",` + bottom: -1px; + `)]),z("left",[P("prefix, suffix",` + border-right: 1px solid var(--n-tab-border-color); + `),m("tabs-nav-scroll-content",` + border-right: 1px solid var(--n-tab-border-color); + `),m("tabs-bar",` + right: -1px; + `)]),z("right",[P("prefix, suffix",` + border-left: 1px solid var(--n-tab-border-color); + `),m("tabs-nav-scroll-content",` + border-left: 1px solid var(--n-tab-border-color); + `),m("tabs-bar",` + left: -1px; + `)]),z("bottom",[P("prefix, suffix",` + border-top: 1px solid var(--n-tab-border-color); + `),m("tabs-nav-scroll-content",` + border-top: 1px solid var(--n-tab-border-color); + `),m("tabs-bar",` + top: -1px; + `)]),P("prefix, suffix",` + transition: border-color .3s var(--n-bezier); + `),m("tabs-nav-scroll-content",` + transition: border-color .3s var(--n-bezier); + `),m("tabs-bar",` + border-radius: 0; + `)]),z("card-type",[P("prefix, suffix",` + transition: border-color .3s var(--n-bezier); + `),m("tabs-pad",` + flex-grow: 1; + transition: border-color .3s var(--n-bezier); + `),m("tabs-tab-pad",` + transition: border-color .3s var(--n-bezier); + `),m("tabs-tab",` + font-weight: var(--n-tab-font-weight); + border: 1px solid var(--n-tab-border-color); + background-color: var(--n-tab-color); + box-sizing: border-box; + position: relative; + vertical-align: bottom; + display: flex; + justify-content: space-between; + font-size: var(--n-tab-font-size); + color: var(--n-tab-text-color); + `,[z("addable",` + padding-left: 8px; + padding-right: 8px; + font-size: 16px; + justify-content: center; + `,[P("height-placeholder",` + width: 0; + font-size: var(--n-tab-font-size); + `),nt("disabled",[k("&:hover",` + color: var(--n-tab-text-color-hover); + `)])]),z("closable","padding-right: 8px;"),z("active",` + background-color: #0000; + font-weight: var(--n-tab-font-weight-active); + color: var(--n-tab-text-color-active); + `),z("disabled","color: var(--n-tab-text-color-disabled);")])]),z("left, right",` + flex-direction: column; + `,[P("prefix, suffix",` + padding: var(--n-tab-padding-vertical); + `),m("tabs-wrapper",` + flex-direction: column; + `),m("tabs-tab-wrapper",` + flex-direction: column; + `,[m("tabs-tab-pad",` + height: var(--n-tab-gap-vertical); + width: 100%; + `)])]),z("top",[z("card-type",[m("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);"),P("prefix, suffix",` + border-bottom: 1px solid var(--n-tab-border-color); + `),m("tabs-tab",` + border-top-left-radius: var(--n-tab-border-radius); + border-top-right-radius: var(--n-tab-border-radius); + `,[z("active",` + border-bottom: 1px solid #0000; + `)]),m("tabs-tab-pad",` + border-bottom: 1px solid var(--n-tab-border-color); + `),m("tabs-pad",` + border-bottom: 1px solid var(--n-tab-border-color); + `)])]),z("left",[z("card-type",[m("tabs-scroll-padding","border-right: 1px solid var(--n-tab-border-color);"),P("prefix, suffix",` + border-right: 1px solid var(--n-tab-border-color); + `),m("tabs-tab",` + border-top-left-radius: var(--n-tab-border-radius); + border-bottom-left-radius: var(--n-tab-border-radius); + `,[z("active",` + border-right: 1px solid #0000; + `)]),m("tabs-tab-pad",` + border-right: 1px solid var(--n-tab-border-color); + `),m("tabs-pad",` + border-right: 1px solid var(--n-tab-border-color); + `)])]),z("right",[z("card-type",[m("tabs-scroll-padding","border-left: 1px solid var(--n-tab-border-color);"),P("prefix, suffix",` + border-left: 1px solid var(--n-tab-border-color); + `),m("tabs-tab",` + border-top-right-radius: var(--n-tab-border-radius); + border-bottom-right-radius: var(--n-tab-border-radius); + `,[z("active",` + border-left: 1px solid #0000; + `)]),m("tabs-tab-pad",` + border-left: 1px solid var(--n-tab-border-color); + `),m("tabs-pad",` + border-left: 1px solid var(--n-tab-border-color); + `)])]),z("bottom",[z("card-type",[m("tabs-scroll-padding","border-top: 1px solid var(--n-tab-border-color);"),P("prefix, suffix",` + border-top: 1px solid var(--n-tab-border-color); + `),m("tabs-tab",` + border-bottom-left-radius: var(--n-tab-border-radius); + border-bottom-right-radius: var(--n-tab-border-radius); + `,[z("active",` + border-top: 1px solid #0000; + `)]),m("tabs-tab-pad",` + border-top: 1px solid var(--n-tab-border-color); + `),m("tabs-pad",` + border-top: 1px solid var(--n-tab-border-color); + `)])])])]),tC=Object.assign(Object.assign({},Re.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),Ty=ie({name:"Tabs",props:tC,setup(e,{slots:t}){var o,r,n,a;const{mergedClsPrefixRef:s,inlineThemeDisabled:l}=Ze(e),d=Re("Tabs","-tabs",eC,p0,e,s),c=B(null),u=B(null),f=B(null),v=B(null),p=B(null),h=B(null),g=B(!0),b=B(!0),y=nr(e,["labelSize","size"]),x=nr(e,["activeName","value"]),T=B((r=(o=x.value)!==null&&o!==void 0?o:e.defaultValue)!==null&&r!==void 0?r:t.default?(a=(n=Io(t.default())[0])===null||n===void 0?void 0:n.props)===null||a===void 0?void 0:a.name:null),$=Rt(x,T),R={id:0},w=C(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});vt($,()=>{R.id=0,V(),D()});function S(){var G;const{value:Q}=$;return Q===null?null:(G=c.value)===null||G===void 0?void 0:G.querySelector(`[data-name="${Q}"]`)}function A(G){if(e.type==="card")return;const{value:Q}=u;if(!Q)return;const pe=Q.style.opacity==="0";if(G){const Ce=`${s.value}-tabs-bar--disabled`,{barWidth:de,placement:L}=e;if(G.dataset.disabled==="true"?Q.classList.add(Ce):Q.classList.remove(Ce),["top","bottom"].includes(L)){if(M(["top","maxHeight","height"]),typeof de=="number"&&G.offsetWidth>=de){const we=Math.floor((G.offsetWidth-de)/2)+G.offsetLeft;Q.style.left=`${we}px`,Q.style.maxWidth=`${de}px`}else Q.style.left=`${G.offsetLeft}px`,Q.style.maxWidth=`${G.offsetWidth}px`;Q.style.width="8192px",pe&&(Q.style.transition="none"),Q.offsetWidth,pe&&(Q.style.transition="",Q.style.opacity="1")}else{if(M(["left","maxWidth","width"]),typeof de=="number"&&G.offsetHeight>=de){const we=Math.floor((G.offsetHeight-de)/2)+G.offsetTop;Q.style.top=`${we}px`,Q.style.maxHeight=`${de}px`}else Q.style.top=`${G.offsetTop}px`,Q.style.maxHeight=`${G.offsetHeight}px`;Q.style.height="8192px",pe&&(Q.style.transition="none"),Q.offsetHeight,pe&&(Q.style.transition="",Q.style.opacity="1")}}}function I(){if(e.type==="card")return;const{value:G}=u;G&&(G.style.opacity="0")}function M(G){const{value:Q}=u;if(Q)for(const pe of G)Q.style[pe]=""}function V(){if(e.type==="card")return;const G=S();G?A(G):I()}function D(){var G;const Q=(G=p.value)===null||G===void 0?void 0:G.$el;if(!Q)return;const pe=S();if(!pe)return;const{scrollLeft:Ce,offsetWidth:de}=Q,{offsetLeft:L,offsetWidth:we}=pe;Ce>L?Q.scrollTo({top:0,left:L,behavior:"smooth"}):L+we>Ce+de&&Q.scrollTo({top:0,left:L+we-de,behavior:"smooth"})}const E=B(null);let K=0,N=null;function oe(G){const Q=E.value;if(Q){K=G.getBoundingClientRect().height;const pe=`${K}px`,Ce=()=>{Q.style.height=pe,Q.style.maxHeight=pe};N?(Ce(),N(),N=null):N=Ce}}function q(G){const Q=E.value;if(Q){const pe=G.getBoundingClientRect().height,Ce=()=>{document.body.offsetHeight,Q.style.maxHeight=`${pe}px`,Q.style.height=`${Math.max(K,pe)}px`};N?(N(),N=null,Ce()):N=Ce}}function re(){const G=E.value;if(G){G.style.maxHeight="",G.style.height="";const{paneWrapperStyle:Q}=e;if(typeof Q=="string")G.style.cssText=Q;else if(Q){const{maxHeight:pe,height:Ce}=Q;pe!==void 0&&(G.style.maxHeight=pe),Ce!==void 0&&(G.style.height=Ce)}}}const me={value:[]},ue=B("next");function W(G){const Q=$.value;let pe="next";for(const Ce of me.value){if(Ce===Q)break;if(Ce===G){pe="prev";break}}ue.value=pe,H(G)}function H(G){const{onActiveNameChange:Q,onUpdateValue:pe,"onUpdate:value":Ce}=e;Q&&ae(Q,G),pe&&ae(pe,G),Ce&&ae(Ce,G),T.value=G}function F(G){const{onClose:Q}=e;Q&&ae(Q,G)}function j(){const{value:G}=u;if(!G)return;const Q="transition-disabled";G.classList.add(Q),V(),G.classList.remove(Q)}const J=B(null);function se({transitionDisabled:G}){const Q=c.value;if(!Q)return;G&&Q.classList.add("transition-disabled");const pe=S();pe&&J.value&&(J.value.style.width=`${pe.offsetWidth}px`,J.value.style.height=`${pe.offsetHeight}px`,J.value.style.transform=`translateX(${pe.offsetLeft-Mt(getComputedStyle(Q).paddingLeft)}px)`,G&&J.value.offsetWidth),G&&Q.classList.remove("transition-disabled")}vt([$],()=>{e.type==="segment"&&zt(()=>{se({transitionDisabled:!1})})}),Jt(()=>{e.type==="segment"&&se({transitionDisabled:!0})});let be=0;function Ie(G){var Q;if(G.contentRect.width===0&&G.contentRect.height===0||be===G.contentRect.width)return;be=G.contentRect.width;const{type:pe}=e;if((pe==="line"||pe==="bar")&&j(),pe!=="segment"){const{placement:Ce}=e;Ye((Ce==="top"||Ce==="bottom"?(Q=p.value)===null||Q===void 0?void 0:Q.$el:h.value)||null)}}const _=fi(Ie,64);vt([()=>e.justifyContent,()=>e.size],()=>{zt(()=>{const{type:G}=e;(G==="line"||G==="bar")&&j()})});const Pe=B(!1);function Me(G){var Q;const{target:pe,contentRect:{width:Ce,height:de}}=G,L=pe.parentElement.parentElement.offsetWidth,we=pe.parentElement.parentElement.offsetHeight,{placement:Ke}=e;if(!Pe.value)Ke==="top"||Ke==="bottom"?LCt.$el.offsetWidth&&(Pe.value=!1):we-de>Ct.$el.offsetHeight&&(Pe.value=!1)}Ye(((Q=p.value)===null||Q===void 0?void 0:Q.$el)||null)}const Ee=fi(Me,64);function Ge(){const{onAdd:G}=e;G&&G(),zt(()=>{const Q=S(),{value:pe}=p;!Q||!pe||pe.scrollTo({left:Q.offsetLeft,top:0,behavior:"smooth"})})}function Ye(G){if(!G)return;const{placement:Q}=e;if(Q==="top"||Q==="bottom"){const{scrollLeft:pe,scrollWidth:Ce,offsetWidth:de}=G;g.value=pe<=0,b.value=pe+de>=Ce}else{const{scrollTop:pe,scrollHeight:Ce,offsetHeight:de}=G;g.value=pe<=0,b.value=pe+de>=Ce}}const st=fi(G=>{Ye(G.target)},64);Je(Xa,{triggerRef:fe(e,"trigger"),tabStyleRef:fe(e,"tabStyle"),tabClassRef:fe(e,"tabClass"),addTabStyleRef:fe(e,"addTabStyle"),addTabClassRef:fe(e,"addTabClass"),paneClassRef:fe(e,"paneClass"),paneStyleRef:fe(e,"paneStyle"),mergedClsPrefixRef:s,typeRef:fe(e,"type"),closableRef:fe(e,"closable"),valueRef:$,tabChangeIdRef:R,onBeforeLeaveRef:fe(e,"onBeforeLeave"),activateTab:W,handleClose:F,handleAdd:Ge}),as(()=>{V(),D()}),$t(()=>{const{value:G}=f;if(!G)return;const{value:Q}=s,pe=`${Q}-tabs-nav-scroll-wrapper--shadow-start`,Ce=`${Q}-tabs-nav-scroll-wrapper--shadow-end`;g.value?G.classList.remove(pe):G.classList.add(pe),b.value?G.classList.remove(Ce):G.classList.add(Ce)});const ot={syncBarPosition:()=>{V()}},xe=()=>{se({transitionDisabled:!0})},te=C(()=>{const{value:G}=y,{type:Q}=e,pe={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[Q],Ce=`${G}${pe}`,{self:{barColor:de,closeIconColor:L,closeIconColorHover:we,closeIconColorPressed:Ke,tabColor:Ct,tabBorderColor:Tt,paneTextColor:ht,tabFontWeight:bt,tabBorderRadius:yt,tabFontWeightActive:ct,colorSegment:De,fontWeightStrong:Xe,tabColorSegment:O,closeSize:Y,closeIconSize:ve,closeColorHover:Fe,closeColorPressed:Be,closeBorderRadius:U,[le("panePadding",G)]:ge,[le("tabPadding",Ce)]:Te,[le("tabPaddingVertical",Ce)]:je,[le("tabGap",Ce)]:dt,[le("tabGap",`${Ce}Vertical`)]:et,[le("tabTextColor",Q)]:ne,[le("tabTextColorActive",Q)]:$e,[le("tabTextColorHover",Q)]:He,[le("tabTextColorDisabled",Q)]:Qe,[le("tabFontSize",G)]:Pt},common:{cubicBezierEaseInOut:Ft}}=d.value;return{"--n-bezier":Ft,"--n-color-segment":De,"--n-bar-color":de,"--n-tab-font-size":Pt,"--n-tab-text-color":ne,"--n-tab-text-color-active":$e,"--n-tab-text-color-disabled":Qe,"--n-tab-text-color-hover":He,"--n-pane-text-color":ht,"--n-tab-border-color":Tt,"--n-tab-border-radius":yt,"--n-close-size":Y,"--n-close-icon-size":ve,"--n-close-color-hover":Fe,"--n-close-color-pressed":Be,"--n-close-border-radius":U,"--n-close-icon-color":L,"--n-close-icon-color-hover":we,"--n-close-icon-color-pressed":Ke,"--n-tab-color":Ct,"--n-tab-font-weight":bt,"--n-tab-font-weight-active":ct,"--n-tab-padding":Te,"--n-tab-padding-vertical":je,"--n-tab-gap":dt,"--n-tab-gap-vertical":et,"--n-pane-padding-left":qt(ge,"left"),"--n-pane-padding-right":qt(ge,"right"),"--n-pane-padding-top":qt(ge,"top"),"--n-pane-padding-bottom":qt(ge,"bottom"),"--n-font-weight-strong":Xe,"--n-tab-color-segment":O}}),ce=l?it("tabs",C(()=>`${y.value[0]}${e.type[0]}`),te,e):void 0;return Object.assign({mergedClsPrefix:s,mergedValue:$,renderedNames:new Set,segmentCapsuleElRef:J,tabsPaneWrapperRef:E,tabsElRef:c,barElRef:u,addTabInstRef:v,xScrollInstRef:p,scrollWrapperElRef:f,addTabFixed:Pe,tabWrapperStyle:w,handleNavResize:_,mergedSize:y,handleScroll:st,handleTabsResize:Ee,cssVars:l?void 0:te,themeClass:ce==null?void 0:ce.themeClass,animationDirection:ue,renderNameListRef:me,yScrollElRef:h,handleSegmentResize:xe,onAnimationBeforeLeave:oe,onAnimationEnter:q,onAnimationAfterEnter:re,onRender:ce==null?void 0:ce.onRender},ot)},render(){const{mergedClsPrefix:e,type:t,placement:o,addTabFixed:r,addable:n,mergedSize:a,renderNameListRef:s,onRender:l,paneWrapperClass:d,paneWrapperStyle:c,$slots:{default:u,prefix:f,suffix:v}}=this;l==null||l();const p=u?Io(u()).filter(R=>R.type.__TAB_PANE__===!0):[],h=u?Io(u()).filter(R=>R.type.__TAB__===!0):[],g=!h.length,b=t==="card",y=t==="segment",x=!b&&!y&&this.justifyContent;s.value=[];const T=()=>{const R=i("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},x?null:i("div",{class:`${e}-tabs-scroll-padding`,style:o==="top"||o==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?p.map((w,S)=>(s.value.push(w.props.name),Fi(i(ia,Object.assign({},w.props,{internalCreatedByPane:!0,internalLeftPadded:S!==0&&(!x||x==="center"||x==="start"||x==="end")}),w.children?{default:w.children.tab}:void 0)))):h.map((w,S)=>(s.value.push(w.props.name),Fi(S!==0&&!x?Gl(w):w))),!r&&n&&b?ql(n,(g?p.length:h.length)!==0):null,x?null:i("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return i("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},b&&n?i(Mo,{onResize:this.handleTabsResize},{default:()=>R}):R,b?i("div",{class:`${e}-tabs-pad`}):null,b?null:i("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},$=y?"top":o;return i("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${a}-size`,x&&`${e}-tabs--flex`,`${e}-tabs--${$}`],style:this.cssVars},i("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${$}`,`${e}-tabs-nav`]},mt(f,R=>R&&i("div",{class:`${e}-tabs-nav__prefix`},R)),y?i(Mo,{onResize:this.handleSegmentResize},{default:()=>i("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},i("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},i("div",{class:`${e}-tabs-wrapper`},i("div",{class:`${e}-tabs-tab`}))),g?p.map((R,w)=>(s.value.push(R.props.name),i(ia,Object.assign({},R.props,{internalCreatedByPane:!0,internalLeftPadded:w!==0}),R.children?{default:R.children.tab}:void 0))):h.map((R,w)=>(s.value.push(R.props.name),w===0?R:Gl(R))))}):i(Mo,{onResize:this.handleNavResize},{default:()=>i("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes($)?i(Mu,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:T}):i("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},T()))}),r&&n&&b?ql(n,!0):null,mt(v,R=>R&&i("div",{class:`${e}-tabs-nav__suffix`},R))),g&&(this.animated&&($==="top"||$==="bottom")?i("div",{ref:"tabsPaneWrapperRef",style:c,class:[`${e}-tabs-pane-wrapper`,d]},Kl(p,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):Kl(p,this.mergedValue,this.renderedNames)))}});function Kl(e,t,o,r,n,a,s){const l=[];return e.forEach(d=>{const{name:c,displayDirective:u,"display-directive":f}=d.props,v=h=>u===h||f===h,p=t===c;if(d.key!==void 0&&(d.key=c),p||v("show")||v("show:lazy")&&o.has(c)){o.has(c)||o.add(c);const h=!v("if");l.push(h?lo(d,[[_o,p]]):d)}}),s?i(is,{name:`${s}-transition`,onBeforeLeave:r,onEnter:n,onAfterEnter:a},{default:()=>l}):l}function ql(e,t){return i(ia,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function Gl(e){const t=an(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Fi(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const Yc="n-tree-select",$n="n-tree",oC=ie({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{renderSwitcherIconRef:t}=Ae($n,null);return()=>{const{clsPrefix:o,expanded:r,hide:n,indent:a,onClick:s}=e;return i("span",{"data-switcher":!0,class:[`${o}-tree-node-switcher`,r&&`${o}-tree-node-switcher--expanded`,n&&`${o}-tree-node-switcher--hide`],style:{width:`${a}px`},onClick:s},i("div",{class:`${o}-tree-node-switcher__icon`},i(cr,null,{default:()=>{if(e.loading)return i(Xo,{clsPrefix:o,key:"loading",radius:85,strokeWidth:20});const{value:l}=t;return l?l({expanded:e.expanded,selected:e.selected,option:e.tmNode.rawNode}):i(kt,{clsPrefix:o,key:"switcher"},{default:()=>i(xf,null)})}})))}}}),rC=ie({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=Ae($n);function o(n){const{onCheck:a}=e;a&&a(n)}function r(n){o(n)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:o,indeterminate:r,disabled:n,focusable:a,indent:s,handleUpdateValue:l}=this;return i("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],style:{width:`${s}px`},"data-checkbox":!0},i(ri,{focusable:a,disabled:n,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:o,indeterminate:r,onUpdateChecked:l}))}}),nC=ie({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){const{renderLabelRef:t,renderPrefixRef:o,renderSuffixRef:r,labelFieldRef:n}=Ae($n),a=B(null);function s(d){const{onClick:c}=e;c&&c(d)}function l(d){s(d)}return{selfRef:a,renderLabel:t,renderPrefix:o,renderSuffix:r,labelField:n,handleClick:l}},render(){const{clsPrefix:e,labelField:t,nodeProps:o,checked:r=!1,selected:n=!1,renderLabel:a,renderPrefix:s,renderSuffix:l,handleClick:d,onDragstart:c,tmNode:{rawNode:u,rawNode:{prefix:f,suffix:v,[t]:p}}}=this;return i("span",Object.assign({},o,{ref:"selfRef",class:[`${e}-tree-node-content`,o==null?void 0:o.class],onClick:d,draggable:c===void 0?void 0:!0,onDragstart:c}),s||f?i("div",{class:`${e}-tree-node-content__prefix`},s?s({option:u,selected:n,checked:r}):St(f)):null,i("div",{class:`${e}-tree-node-content__text`},a?a({option:u,selected:n,checked:r}):St(p)),l||v?i("div",{class:`${e}-tree-node-content__suffix`},l?l({option:u,selected:n,checked:r}):St(v)):null)}});function Yl({position:e,offsetLevel:t,indent:o,el:r}){const n={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")n.left=0,n.top=0,n.bottom=0,n.borderRadius="inherit",n.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const a=e==="before"?"top":"bottom";n[a]=0,n.left=`${r.offsetLeft+6-t*o}px`,n.height="2px",n.backgroundColor="var(--n-drop-mark-color)",n.transformOrigin=a,n.borderRadius="1px",n.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return i("div",{style:n})}function iC({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function aC(e){return C(()=>e.leafOnly?"child":e.checkStrategy)}function Jo(e,t){return!!e.rawNode[t]}function Xc(e,t,o,r){e==null||e.forEach(n=>{o(n),Xc(n[t],t,o,r),r(n)})}function lC(e,t,o,r,n){const a=new Set,s=new Set,l=[];return Xc(e,r,d=>{if(l.push(d),n(t,d)){s.add(d[o]);for(let c=l.length-2;c>=0;--c)if(!a.has(l[c][o]))a.add(l[c][o]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(a),highlightKeySet:s}}if(bo&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function sC(e,t,o,r,n){const a=new Set,s=new Set,l=new Set,d=[],c=[],u=[];function f(p){p.forEach(h=>{if(u.push(h),t(o,h)){a.add(h[r]),l.add(h[r]);for(let b=u.length-2;b>=0;--b){const y=u[b][r];if(!s.has(y))s.add(y),a.has(y)&&a.delete(y);else break}}const g=h[n];g&&f(g),u.pop()})}f(e);function v(p,h){p.forEach(g=>{const b=g[r],y=a.has(b),x=s.has(b);if(!y&&!x)return;const T=g[n];if(T)if(y)h.push(g);else{d.push(b);const $=Object.assign(Object.assign({},g),{[n]:[]});h.push($),v(T,$[n])}else h.push(g)})}return v(e,c),{filteredTree:c,highlightKeySet:l,expandedKeys:d}}const Zc=ie({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Ae($n),{droppingNodeParentRef:o,droppingMouseNodeRef:r,draggingNodeRef:n,droppingPositionRef:a,droppingOffsetLevelRef:s,nodePropsRef:l,indentRef:d,blockLineRef:c,checkboxPlacementRef:u,checkOnClickRef:f,disabledFieldRef:v,showLineRef:p,renderSwitcherIconRef:h,overrideDefaultNodeClickBehaviorRef:g}=t,b=tt(()=>!!e.tmNode.rawNode.checkboxDisabled),y=tt(()=>Jo(e.tmNode,v.value)),x=tt(()=>t.disabledRef.value||y.value),T=C(()=>{const{value:F}=l;if(F)return F({option:e.tmNode.rawNode})}),$=B(null),R={value:null};Jt(()=>{R.value=$.value.$el});function w(){const F=()=>{const{tmNode:j}=e;if(!j.isLeaf&&!j.shallowLoaded){if(!t.loadingKeysRef.value.has(j.key))t.loadingKeysRef.value.add(j.key);else return;const{onLoadRef:{value:J}}=t;J&&J(j.rawNode).then(se=>{se!==!1&&t.handleSwitcherClick(j)}).finally(()=>{t.loadingKeysRef.value.delete(j.key)})}else t.handleSwitcherClick(j)};h.value?setTimeout(F,0):F()}const S=tt(()=>!y.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),A=tt(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),I=tt(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),M=tt(()=>{const{value:F}=A;if(!F)return!1;const{value:j}=f,{tmNode:J}=e;return typeof j=="boolean"?!J.disabled&&j:j(e.tmNode.rawNode)});function V(F){const{value:j}=t.expandOnClickRef,{value:J}=S,{value:se}=M;if(!J&&!j&&!se||Xt(F,"checkbox")||Xt(F,"switcher"))return;const{tmNode:be}=e;J&&t.handleSelect(be),j&&!be.isLeaf&&w(),se&&N(!I.value)}function D(F){var j,J;if(!(Xt(F,"checkbox")||Xt(F,"switcher"))){if(!x.value){const se=g.value;let be=!1;if(se)switch(se({option:e.tmNode.rawNode})){case"toggleCheck":be=!0,N(!I.value);break;case"toggleSelect":be=!0,t.handleSelect(e.tmNode);break;case"toggleExpand":be=!0,w(),be=!0;break;case"none":be=!0,be=!0;return}be||V(F)}(J=(j=T.value)===null||j===void 0?void 0:j.onClick)===null||J===void 0||J.call(j,F)}}function E(F){c.value||D(F)}function K(F){c.value&&D(F)}function N(F){t.handleCheck(e.tmNode,F)}function oe(F){t.handleDragStart({event:F,node:e.tmNode})}function q(F){F.currentTarget===F.target&&t.handleDragEnter({event:F,node:e.tmNode})}function re(F){F.preventDefault(),t.handleDragOver({event:F,node:e.tmNode})}function me(F){t.handleDragEnd({event:F,node:e.tmNode})}function ue(F){F.currentTarget===F.target&&t.handleDragLeave({event:F,node:e.tmNode})}function W(F){F.preventDefault(),a.value!==null&&t.handleDrop({event:F,node:e.tmNode,dropPosition:a.value})}const H=C(()=>{const{clsPrefix:F}=e,{value:j}=d;if(p.value){const J=[];let se=e.tmNode.parent;for(;se;)se.isLastChild?J.push(i("div",{class:`${F}-tree-node-indent`},i("div",{style:{width:`${j}px`}}))):J.push(i("div",{class:[`${F}-tree-node-indent`,`${F}-tree-node-indent--show-line`]},i("div",{style:{width:`${j}px`}}))),se=se.parent;return J.reverse()}else return la(e.tmNode.level,i("div",{class:`${e.clsPrefix}-tree-node-indent`},i("div",{style:{width:`${j}px`}})))});return{showDropMark:tt(()=>{const{value:F}=n;if(!F)return;const{value:j}=a;if(!j)return;const{value:J}=r;if(!J)return;const{tmNode:se}=e;return se.key===J.key}),showDropMarkAsParent:tt(()=>{const{value:F}=o;if(!F)return!1;const{tmNode:j}=e,{value:J}=a;return J==="before"||J==="after"?F.key===j.key:!1}),pending:tt(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:tt(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:tt(()=>{var F;return(F=t.highlightKeySetRef.value)===null||F===void 0?void 0:F.has(e.tmNode.key)}),checked:I,indeterminate:tt(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:tt(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:tt(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:x,checkable:A,mergedCheckOnClick:M,checkboxDisabled:b,selectable:S,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:T,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:a,droppingOffsetLevel:s,indent:d,checkboxPlacement:u,showLine:p,contentInstRef:$,contentElRef:R,indentNodes:H,handleCheck:N,handleDrop:W,handleDragStart:oe,handleDragEnter:q,handleDragOver:re,handleDragEnd:me,handleDragLeave:ue,handleLineClick:K,handleContentClick:E,handleSwitcherClick:w}},render(){const{tmNode:e,clsPrefix:t,checkable:o,expandOnClick:r,selectable:n,selected:a,checked:s,highlight:l,draggable:d,blockLine:c,indent:u,indentNodes:f,disabled:v,pending:p,internalScrollable:h,nodeProps:g,checkboxPlacement:b}=this,y=d&&!v?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,x=h?ss(e.key):void 0,T=b==="right",$=o?i(rC,{indent:u,right:T,focusable:this.checkboxFocusable,disabled:v||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return i("div",Object.assign({class:`${t}-tree-node-wrapper`},y),i("div",Object.assign({},c?g:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:a,[`${t}-tree-node--checkable`]:o,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:p,[`${t}-tree-node--disabled`]:v,[`${t}-tree-node--selectable`]:n,[`${t}-tree-node--clickable`]:n||r||this.mergedCheckOnClick},g==null?void 0:g.class],"data-key":x,draggable:d&&c,onClick:this.handleLineClick,onDragstart:d&&c&&!v?this.handleDragStart:void 0}),f,e.isLeaf&&this.showLine?i("div",{class:[`${t}-tree-node-indent`,`${t}-tree-node-indent--show-line`,e.isLeaf&&`${t}-tree-node-indent--is-leaf`,e.isLastChild&&`${t}-tree-node-indent--last-child`]},i("div",{style:{width:`${u}px`}})):i(oC,{clsPrefix:t,expanded:this.expanded,selected:a,loading:this.loading,hide:e.isLeaf,tmNode:this.tmNode,indent:u,onClick:this.handleSwitcherClick}),T?null:$,i(nC,{ref:"contentInstRef",clsPrefix:t,checked:s,selected:a,onClick:this.handleContentClick,nodeProps:c?void 0:g,onDragstart:d&&!c&&!v?this.handleDragStart:void 0,tmNode:e}),d?this.showDropMark?Yl({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:u}):this.showDropMarkAsParent?Yl({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:u}):null:null,T?$:null))}});function dC({props:e,fNodesRef:t,mergedExpandedKeysRef:o,mergedSelectedKeysRef:r,mergedCheckedKeysRef:n,handleCheck:a,handleSelect:s,handleSwitcherClick:l}){const{value:d}=r,c=Ae(Yc,null),u=c?c.pendingNodeKeyRef:B(d.length?d[d.length-1]:null);function f(v){var p;if(!e.keyboard)return{enterBehavior:null};const{value:h}=u;let g=null;if(h===null){if((v.key==="ArrowDown"||v.key==="ArrowUp")&&v.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(v.key)&&h===null){const{value:b}=t;let y=0;for(;yx.key===h);if(!~y)return{enterBehavior:null};if(v.key==="Enter"){const x=b[y];switch(g=((p=e.overrideDefaultNodeClickBehavior)===null||p===void 0?void 0:p.call(e,{option:x.rawNode}))||null,g){case"toggleCheck":a(x,!n.value.includes(x.key));break;case"toggleSelect":s(x);break;case"toggleExpand":l(x);break;case"none":break;case"default":default:g="default",s(x)}}else if(v.key==="ArrowDown")for(v.preventDefault(),y+=1;y=0;){if(!b[y].disabled){u.value=b[y].key;break}y-=1}else if(v.key==="ArrowLeft"){const x=b[y];if(x.isLeaf||!o.value.includes(h)){const T=x.getParent();T&&(u.value=T.key)}else l(x)}else if(v.key==="ArrowRight"){const x=b[y];if(x.isLeaf)return{enterBehavior:null};if(!o.value.includes(h))l(x);else for(y+=1;yi("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:Et(this.height)}},this.nodes.map(t=>i(Zc,{clsPrefix:e,tmNode:t})))})}}),Ii=uo(),uC=m("tree",` + font-size: var(--n-font-size); + outline: none; +`,[k("ul, li",` + margin: 0; + padding: 0; + list-style: none; + `),k(">",[m("tree-node",[k("&:first-child","margin-top: 0;")])]),m("tree-motion-wrapper",[z("expand",[cn({duration:"0.2s"})]),z("collapse",[cn({duration:"0.2s",reverse:!0})])]),m("tree-node-wrapper",` + box-sizing: border-box; + padding: var(--n-node-wrapper-padding); + `),m("tree-node",` + transform: translate3d(0,0,0); + position: relative; + display: flex; + border-radius: var(--n-node-border-radius); + transition: background-color .3s var(--n-bezier); + `,[z("highlight",[m("tree-node-content",[P("text","border-bottom-color: var(--n-node-text-color-disabled);")])]),z("disabled",[m("tree-node-content",` + color: var(--n-node-text-color-disabled); + cursor: not-allowed; + `)]),nt("disabled",[z("clickable",[m("tree-node-content",` + cursor: pointer; + `)])])]),z("block-node",[m("tree-node-content",` + flex: 1; + min-width: 0; + `)]),nt("block-line",[m("tree-node",[nt("disabled",[m("tree-node-content",[k("&:hover","background: var(--n-node-color-hover);")]),z("selectable",[m("tree-node-content",[k("&:active","background: var(--n-node-color-pressed);")])]),z("pending",[m("tree-node-content",` + background: var(--n-node-color-hover); + `)]),z("selected",[m("tree-node-content","background: var(--n-node-color-active);")])]),z("selected",[m("tree-node-content","background: var(--n-node-color-active);")])])]),z("block-line",[m("tree-node",[nt("disabled",[k("&:hover","background: var(--n-node-color-hover);"),z("pending",` + background: var(--n-node-color-hover); + `),z("selectable",[nt("selected",[k("&:active","background: var(--n-node-color-pressed);")])]),z("selected","background: var(--n-node-color-active);")]),z("selected","background: var(--n-node-color-active);"),z("disabled",` + cursor: not-allowed; + `)])]),m("tree-node-indent",` + flex-grow: 0; + flex-shrink: 0; + `,[z("show-line","position: relative",[k("&::before",` + position: absolute; + left: 50%; + border-left: 1px solid var(--n-line-color); + transition: border-color .3s var(--n-bezier); + transform: translate(-50%); + content: ""; + top: var(--n-line-offset-top); + bottom: var(--n-line-offset-bottom); + `),z("last-child",[k("&::before",` + bottom: 50%; + `)]),z("is-leaf",[k("&::after",` + position: absolute; + content: ""; + left: calc(50% + 0.5px); + right: 0; + bottom: 50%; + transition: border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-line-color); + `)])]),nt("show-line","height: 0;")]),m("tree-node-switcher",` + cursor: pointer; + display: inline-flex; + flex-shrink: 0; + height: var(--n-node-content-height); + align-items: center; + justify-content: center; + transition: transform .15s var(--n-bezier); + vertical-align: bottom; + `,[P("icon",` + position: relative; + height: 14px; + width: 14px; + display: flex; + color: var(--n-arrow-color); + transition: color .3s var(--n-bezier); + font-size: 14px; + `,[m("icon",[Ii]),m("base-loading",` + color: var(--n-loading-color); + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + `,[Ii]),m("base-icon",[Ii])]),z("hide","visibility: hidden;"),z("expanded","transform: rotate(90deg);")]),m("tree-node-checkbox",` + display: inline-flex; + height: var(--n-node-content-height); + vertical-align: bottom; + align-items: center; + justify-content: center; + `),m("tree-node-content",` + user-select: none; + position: relative; + display: inline-flex; + align-items: center; + min-height: var(--n-node-content-height); + box-sizing: border-box; + line-height: var(--n-line-height); + vertical-align: bottom; + padding: 0 6px 0 4px; + cursor: default; + border-radius: var(--n-node-border-radius); + color: var(--n-node-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[k("&:last-child","margin-bottom: 0;"),P("prefix",` + display: inline-flex; + margin-right: 8px; + `),P("text",` + border-bottom: 1px solid #0000; + transition: border-color .3s var(--n-bezier); + flex-grow: 1; + max-width: 100%; + `),P("suffix",` + display: inline-flex; + `)]),P("empty","margin: auto;")]);var fC=function(e,t,o,r){function n(a){return a instanceof o?a:new o(function(s){s(a)})}return new(o||(o=Promise))(function(a,s){function l(u){try{c(r.next(u))}catch(f){s(f)}}function d(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?a(u.value):n(u.value).then(l,d)}c((r=r.apply(e,[])).next())})};function Xl(e,t,o,r){return{getIsGroup(){return!1},getKey(a){return a[e]},getChildren:r||(a=>a[t]),getDisabled(a){return!!(a[o]||a.checkboxDisabled)}}}const hC={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array],overrideDefaultNodeClickBehavior:Function},vC=Object.assign(Object.assign(Object.assign(Object.assign({},Re.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,showLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},scrollbarProps:Object,indent:{type:Number,default:24},allowDrop:{type:Function,default:iC},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),hC),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),Fy=ie({name:"Tree",props:vC,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:r}=Ze(e),n=Nt("Tree",r,t),a=Re("Tree","-tree",uC,S0,e,t),s=B(null),l=B(null),d=B(null);function c(){var X;return(X=d.value)===null||X===void 0?void 0:X.listElRef}function u(){var X;return(X=d.value)===null||X===void 0?void 0:X.itemsElRef}const f=C(()=>{const{filter:X}=e;if(X)return X;const{labelField:he}=e;return(ze,Oe)=>{if(!ze.length)return!0;const Le=Oe[he];return typeof Le=="string"?Le.toLowerCase().includes(ze.toLowerCase()):!1}}),v=C(()=>{const{pattern:X}=e;return X?!X.length||!f.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:sC(e.data,f.value,X,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),p=C(()=>Wo(e.showIrrelevantNodes?e.data:v.value.filteredTree,Xl(e.keyField,e.childrenField,e.disabledField,e.getChildren))),h=Ae(Yc,null),g=e.internalTreeSelect?h.dataTreeMate:C(()=>e.showIrrelevantNodes?p.value:Wo(e.data,Xl(e.keyField,e.childrenField,e.disabledField,e.getChildren))),{watchProps:b}=e,y=B([]);b!=null&&b.includes("defaultCheckedKeys")?$t(()=>{y.value=e.defaultCheckedKeys}):y.value=e.defaultCheckedKeys;const x=fe(e,"checkedKeys"),T=Rt(x,y),$=C(()=>g.value.getCheckedKeys(T.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),R=aC(e),w=C(()=>$.value.checkedKeys),S=C(()=>{const{indeterminateKeys:X}=e;return X!==void 0?X:$.value.indeterminateKeys}),A=B([]);b!=null&&b.includes("defaultSelectedKeys")?$t(()=>{A.value=e.defaultSelectedKeys}):A.value=e.defaultSelectedKeys;const I=fe(e,"selectedKeys"),M=Rt(I,A),V=B([]),D=X=>{V.value=e.defaultExpandAll?g.value.getNonLeafKeys():X===void 0?e.defaultExpandedKeys:X};b!=null&&b.includes("defaultExpandedKeys")?$t(()=>{D(void 0)}):$t(()=>{D(e.defaultExpandedKeys)});const E=fe(e,"expandedKeys"),K=Rt(E,V),N=C(()=>p.value.getFlattenedNodes(K.value)),{pendingNodeKeyRef:oe,handleKeydown:q}=dC({props:e,mergedCheckedKeysRef:T,mergedSelectedKeysRef:M,fNodesRef:N,mergedExpandedKeysRef:K,handleCheck:ve,handleSelect:U,handleSwitcherClick:Be});let re=null,me=null;const ue=B(new Set),W=C(()=>e.internalHighlightKeySet||v.value.highlightKeySet),H=Rt(W,ue),F=B(new Set),j=C(()=>K.value.filter(X=>!F.value.has(X)));let J=0;const se=B(null),be=B(null),Ie=B(null),_=B(null),Pe=B(0),Me=C(()=>{const{value:X}=be;return X?X.parent:null});let Ee=!1;vt(fe(e,"data"),()=>{Ee=!0,zt(()=>{Ee=!1}),F.value.clear(),oe.value=null,De()},{deep:!1});let Ge=!1;const Ye=()=>{Ge=!0,zt(()=>{Ge=!1})};let st;vt(fe(e,"pattern"),(X,he)=>{if(e.showIrrelevantNodes)if(st=void 0,X){const{expandedKeys:ze,highlightKeySet:Oe}=lC(e.data,e.pattern,e.keyField,e.childrenField,f.value);ue.value=Oe,Ye(),de(ze,Ce(ze),{node:null,action:"filter"})}else ue.value=new Set;else if(!X.length)st!==void 0&&(Ye(),de(st,Ce(st),{node:null,action:"filter"}));else{he.length||(st=K.value);const{expandedKeys:ze}=v.value;ze!==void 0&&(Ye(),de(ze,Ce(ze),{node:null,action:"filter"}))}});function ot(X){return fC(this,void 0,void 0,function*(){const{onLoad:he}=e;if(!he){yield Promise.resolve();return}const{value:ze}=F;if(!ze.has(X.key)){ze.add(X.key);try{(yield he(X.rawNode))===!1&&Y()}catch(Oe){console.error(Oe),Y()}ze.delete(X.key)}})}$t(()=>{var X;const{value:he}=p;if(!he)return;const{getNode:ze}=he;(X=K.value)===null||X===void 0||X.forEach(Oe=>{const Le=ze(Oe);Le&&!Le.shallowLoaded&&ot(Le)})});const xe=B(!1),te=B([]);vt(j,(X,he)=>{if(!e.animated||Ge){zt(Q);return}if(Ee)return;const ze=Mt(a.value.self.nodeHeight),Oe=new Set(he);let Le=null,pt=null;for(const ke of X)if(!Oe.has(ke)){if(Le!==null)return;Le=ke}const It=new Set(X);for(const ke of he)if(!It.has(ke)){if(pt!==null)return;pt=ke}if(Le===null&&pt===null)return;const{virtualScroll:Ot}=e,Yt=(Ot?d.value.listElRef:s.value).offsetHeight,eo=Math.ceil(Yt/ze)+1;let ee;if(Le!==null&&(ee=he),pt!==null&&(ee===void 0?ee=X:ee=ee.filter(ke=>ke!==pt)),xe.value=!0,te.value=p.value.getFlattenedNodes(ee),Le!==null){const ke=te.value.findIndex(Ve=>Ve.key===Le);if(~ke){const Ve=te.value[ke].children;if(Ve){const gt=el(Ve,X);te.value.splice(ke+1,0,{__motion:!0,mode:"expand",height:Ot?gt.length*ze:void 0,nodes:Ot?gt.slice(0,eo):gt})}}}if(pt!==null){const ke=te.value.findIndex(Ve=>Ve.key===pt);if(~ke){const Ve=te.value[ke].children;if(!Ve)return;xe.value=!0;const gt=el(Ve,X);te.value.splice(ke+1,0,{__motion:!0,mode:"collapse",height:Ot?gt.length*ze:void 0,nodes:Ot?gt.slice(0,eo):gt})}}});const ce=C(()=>ls(N.value)),G=C(()=>xe.value?te.value:N.value);function Q(){const{value:X}=l;X&&X.sync()}function pe(){xe.value=!1,e.virtualScroll&&zt(Q)}function Ce(X){const{getNode:he}=g.value;return X.map(ze=>{var Oe;return((Oe=he(ze))===null||Oe===void 0?void 0:Oe.rawNode)||null})}function de(X,he,ze){const{"onUpdate:expandedKeys":Oe,onUpdateExpandedKeys:Le}=e;V.value=X,Oe&&ae(Oe,X,he,ze),Le&&ae(Le,X,he,ze)}function L(X,he,ze){const{"onUpdate:checkedKeys":Oe,onUpdateCheckedKeys:Le}=e;y.value=X,Le&&ae(Le,X,he,ze),Oe&&ae(Oe,X,he,ze)}function we(X,he){const{"onUpdate:indeterminateKeys":ze,onUpdateIndeterminateKeys:Oe}=e;ze&&ae(ze,X,he),Oe&&ae(Oe,X,he)}function Ke(X,he,ze){const{"onUpdate:selectedKeys":Oe,onUpdateSelectedKeys:Le}=e;A.value=X,Le&&ae(Le,X,he,ze),Oe&&ae(Oe,X,he,ze)}function Ct(X){const{onDragenter:he}=e;he&&ae(he,X)}function Tt(X){const{onDragleave:he}=e;he&&ae(he,X)}function ht(X){const{onDragend:he}=e;he&&ae(he,X)}function bt(X){const{onDragstart:he}=e;he&&ae(he,X)}function yt(X){const{onDragover:he}=e;he&&ae(he,X)}function ct(X){const{onDrop:he}=e;he&&ae(he,X)}function De(){Xe(),O()}function Xe(){se.value=null}function O(){Pe.value=0,be.value=null,Ie.value=null,_.value=null,Y()}function Y(){re&&(window.clearTimeout(re),re=null),me=null}function ve(X,he){if(e.disabled||Jo(X,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){U(X);return}const ze=he?"check":"uncheck",{checkedKeys:Oe,indeterminateKeys:Le}=g.value[ze](X.key,w.value,{cascade:e.cascade,checkStrategy:R.value,allowNotLoaded:e.allowCheckingNotLoaded});L(Oe,Ce(Oe),{node:X.rawNode,action:ze}),we(Le,Ce(Le))}function Fe(X){if(e.disabled)return;const{key:he}=X,{value:ze}=K,Oe=ze.findIndex(Le=>Le===he);if(~Oe){const Le=Array.from(ze);Le.splice(Oe,1),de(Le,Ce(Le),{node:X.rawNode,action:"collapse"})}else{const Le=p.value.getNode(he);if(!Le||Le.isLeaf)return;let pt;if(e.accordion){const It=new Set(X.siblings.map(({key:Ot})=>Ot));pt=ze.filter(Ot=>!It.has(Ot)),pt.push(he)}else pt=ze.concat(he);de(pt,Ce(pt),{node:X.rawNode,action:"expand"})}}function Be(X){e.disabled||xe.value||Fe(X)}function U(X){if(!(e.disabled||!e.selectable)){if(oe.value=X.key,e.internalUnifySelectCheck){const{value:{checkedKeys:he,indeterminateKeys:ze}}=$;e.multiple?ve(X,!(he.includes(X.key)||ze.includes(X.key))):L([X.key],Ce([X.key]),{node:X.rawNode,action:"check"})}if(e.multiple){const he=Array.from(M.value),ze=he.findIndex(Oe=>Oe===X.key);~ze?e.cancelable&&he.splice(ze,1):~ze||he.push(X.key),Ke(he,Ce(he),{node:X.rawNode,action:~ze?"unselect":"select"})}else M.value.includes(X.key)?e.cancelable&&Ke([],[],{node:X.rawNode,action:"unselect"}):Ke([X.key],Ce([X.key]),{node:X.rawNode,action:"select"})}}function ge(X){if(re&&(window.clearTimeout(re),re=null),X.isLeaf)return;me=X.key;const he=()=>{if(me!==X.key)return;const{value:ze}=Ie;if(ze&&ze.key===X.key&&!K.value.includes(X.key)){const Oe=K.value.concat(X.key);de(Oe,Ce(Oe),{node:X.rawNode,action:"expand"})}re=null,me=null};X.shallowLoaded?re=window.setTimeout(()=>{he()},1e3):re=window.setTimeout(()=>{ot(X).then(()=>{he()})},1e3)}function Te({event:X,node:he}){!e.draggable||e.disabled||Jo(he,e.disabledField)||($e({event:X,node:he},!1),Ct({event:X,node:he.rawNode}))}function je({event:X,node:he}){!e.draggable||e.disabled||Jo(he,e.disabledField)||Tt({event:X,node:he.rawNode})}function dt(X){X.target===X.currentTarget&&O()}function et({event:X,node:he}){De(),!(!e.draggable||e.disabled||Jo(he,e.disabledField))&&ht({event:X,node:he.rawNode})}function ne({event:X,node:he}){!e.draggable||e.disabled||Jo(he,e.disabledField)||(J=X.clientX,se.value=he,bt({event:X,node:he.rawNode}))}function $e({event:X,node:he},ze=!0){var Oe;if(!e.draggable||e.disabled||Jo(he,e.disabledField))return;const{value:Le}=se;if(!Le)return;const{allowDrop:pt,indent:It}=e;ze&&yt({event:X,node:he.rawNode});const Ot=X.currentTarget,{height:Yt,top:eo}=Ot.getBoundingClientRect(),ee=X.clientY-eo;let ke;pt({node:he.rawNode,dropPosition:"inside",phase:"drag"})?ee<=8?ke="before":ee>=Yt-8?ke="after":ke="inside":ee<=Yt/2?ke="before":ke="after";const{value:gt}=ce;let at,ut;const to=gt(he.key);if(to===null){O();return}let vo=!1;ke==="inside"?(at=he,ut="inside"):ke==="before"?he.isFirstChild?(at=he,ut="before"):(at=N.value[to-1],ut="after"):(at=he,ut="after"),!at.isLeaf&&K.value.includes(at.key)&&(vo=!0,ut==="after"&&(at=N.value[to+1],at?ut="before":(at=he,ut="inside")));const yo=at;if(Ie.value=yo,!vo&&Le.isLastChild&&Le.key===at.key&&(ut="after"),ut==="after"){let Zo=J-X.clientX,Lo=0;for(;Zo>=It/2&&at.parent!==null&&at.isLastChild&&Lo<1;)Zo-=It,Lo+=1,at=at.parent;Pe.value=Lo}else Pe.value=0;if((Le.contains(at)||ut==="inside"&&((Oe=Le.parent)===null||Oe===void 0?void 0:Oe.key)===at.key)&&!(Le.key===yo.key&&Le.key===at.key)){O();return}if(!pt({node:at.rawNode,dropPosition:ut,phase:"drag"})){O();return}if(Le.key===at.key)Y();else if(me!==at.key)if(ut==="inside"){if(e.expandOnDragenter){if(ge(at),!at.shallowLoaded&&me!==at.key){De();return}}else if(!at.shallowLoaded){De();return}}else Y();else ut!=="inside"&&Y();_.value=ut,be.value=at}function He({event:X,node:he,dropPosition:ze}){if(!e.draggable||e.disabled||Jo(he,e.disabledField))return;const{value:Oe}=se,{value:Le}=be,{value:pt}=_;if(!(!Oe||!Le||!pt)&&e.allowDrop({node:Le.rawNode,dropPosition:pt,phase:"drag"})&&Oe.key!==Le.key){if(pt==="before"){const It=Oe.getNext({includeDisabled:!0});if(It&&It.key===Le.key){O();return}}if(pt==="after"){const It=Oe.getPrev({includeDisabled:!0});if(It&&It.key===Le.key){O();return}}ct({event:X,node:Le.rawNode,dragNode:Oe.rawNode,dropPosition:ze}),De()}}function Qe(){Q()}function Pt(){Q()}function Ft(X){var he;if(e.virtualScroll||e.internalScrollable){const{value:ze}=l;if(!((he=ze==null?void 0:ze.containerRef)===null||he===void 0)&&he.contains(X.relatedTarget))return;oe.value=null}else{const{value:ze}=s;if(ze!=null&&ze.contains(X.relatedTarget))return;oe.value=null}}vt(oe,X=>{var he,ze;if(X!==null){if(e.virtualScroll)(he=d.value)===null||he===void 0||he.scrollTo({key:X});else if(e.internalScrollable){const{value:Oe}=l;if(Oe===null)return;const Le=(ze=Oe.contentRef)===null||ze===void 0?void 0:ze.querySelector(`[data-key="${ss(X)}"]`);if(!Le)return;Oe.scrollTo({el:Le})}}}),Je($n,{loadingKeysRef:F,highlightKeySetRef:H,displayedCheckedKeysRef:w,displayedIndeterminateKeysRef:S,mergedSelectedKeysRef:M,mergedExpandedKeysRef:K,mergedThemeRef:a,mergedCheckStrategyRef:R,nodePropsRef:fe(e,"nodeProps"),disabledRef:fe(e,"disabled"),checkableRef:fe(e,"checkable"),selectableRef:fe(e,"selectable"),expandOnClickRef:fe(e,"expandOnClick"),onLoadRef:fe(e,"onLoad"),draggableRef:fe(e,"draggable"),blockLineRef:fe(e,"blockLine"),indentRef:fe(e,"indent"),cascadeRef:fe(e,"cascade"),checkOnClickRef:fe(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Ie,droppingNodeParentRef:Me,draggingNodeRef:se,droppingPositionRef:_,droppingOffsetLevelRef:Pe,fNodesRef:N,pendingNodeKeyRef:oe,showLineRef:fe(e,"showLine"),disabledFieldRef:fe(e,"disabledField"),internalScrollableRef:fe(e,"internalScrollable"),internalCheckboxFocusableRef:fe(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:fe(e,"renderLabel"),renderPrefixRef:fe(e,"renderPrefix"),renderSuffixRef:fe(e,"renderSuffix"),renderSwitcherIconRef:fe(e,"renderSwitcherIcon"),labelFieldRef:fe(e,"labelField"),multipleRef:fe(e,"multiple"),overrideDefaultNodeClickBehaviorRef:fe(e,"overrideDefaultNodeClickBehavior"),handleSwitcherClick:Be,handleDragEnd:et,handleDragEnter:Te,handleDragLeave:je,handleDragStart:ne,handleDrop:He,handleDragOver:$e,handleSelect:U,handleCheck:ve});function xt(X,he){var ze,Oe;typeof X=="number"?(ze=d.value)===null||ze===void 0||ze.scrollTo(X,he||0):(Oe=d.value)===null||Oe===void 0||Oe.scrollTo(X)}const Z={handleKeydown:q,scrollTo:xt,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:X}=$.value;return{keys:X,options:Ce(X)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:X}=$.value;return{keys:X,options:Ce(X)}}},ye=C(()=>{const{common:{cubicBezierEaseInOut:X},self:{fontSize:he,nodeBorderRadius:ze,nodeColorHover:Oe,nodeColorPressed:Le,nodeColorActive:pt,arrowColor:It,loadingColor:Ot,nodeTextColor:Yt,nodeTextColorDisabled:eo,dropMarkColor:ee,nodeWrapperPadding:ke,nodeHeight:Ve,lineHeight:gt,lineColor:at}}=a.value,ut=qt(ke,"top"),to=qt(ke,"bottom"),vo=Et(Mt(Ve)-Mt(ut)-Mt(to));return{"--n-arrow-color":It,"--n-loading-color":Ot,"--n-bezier":X,"--n-font-size":he,"--n-node-border-radius":ze,"--n-node-color-active":pt,"--n-node-color-hover":Oe,"--n-node-color-pressed":Le,"--n-node-text-color":Yt,"--n-node-text-color-disabled":eo,"--n-drop-mark-color":ee,"--n-node-wrapper-padding":ke,"--n-line-offset-top":`-${ut}`,"--n-line-offset-bottom":`-${to}`,"--n-node-content-height":vo,"--n-line-height":gt,"--n-line-color":at}}),Ue=o?it("tree",void 0,ye,e):void 0;return Object.assign(Object.assign({},Z),{mergedClsPrefix:t,mergedTheme:a,rtlEnabled:n,fNodes:G,aip:xe,selfElRef:s,virtualListInstRef:d,scrollbarInstRef:l,handleFocusout:Ft,handleDragLeaveTree:dt,handleScroll:Qe,getScrollContainer:c,getScrollContent:u,handleAfterEnter:pe,handleResize:Pt,cssVars:o?void 0:ye,themeClass:Ue==null?void 0:Ue.themeClass,onRender:Ue==null?void 0:Ue.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:o}=this;if(!t.length&&o)return o();const{mergedClsPrefix:r,blockNode:n,blockLine:a,draggable:s,disabled:l,internalFocusable:d,checkable:c,handleKeydown:u,rtlEnabled:f,handleFocusout:v,scrollbarProps:p}=this,h=d&&!l,g=h?"0":void 0,b=[`${r}-tree`,f&&`${r}-tree--rtl`,c&&`${r}-tree--checkable`,(a||n)&&`${r}-tree--block-node`,a&&`${r}-tree--block-line`],y=T=>"__motion"in T?i(cC,{height:T.height,nodes:T.nodes,clsPrefix:r,mode:T.mode,onAfterEnter:this.handleAfterEnter}):i(Zc,{key:T.key,tmNode:T,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:T,internalScrollablePadding:$}=this,R=qt($||"0");return i(Qn,Object.assign({},p,{ref:"scrollbarInstRef",onDragleave:s?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:b,theme:T.peers.Scrollbar,themeOverrides:T.peerOverrides.Scrollbar,tabindex:g,onKeydown:h?u:void 0,onFocusout:h?v:void 0}),{default:()=>{var w;return(w=this.onRender)===null||w===void 0||w.call(this),t.length?i(Sr,{ref:"virtualListInstRef",items:this.fNodes,itemSize:Mt(T.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:R.top,paddingBottom:R.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:R.left,paddingRight:R.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:S})=>y(S)}):ft(this.$slots.empty,()=>[i(Zn,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}const{internalScrollable:x}=this;return b.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),x?i(Qn,Object.assign({},p,{class:b,tabindex:g,onKeydown:h?u:void 0,onFocusout:h?v:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>i("div",{onDragleave:s?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(y))}):i("div",{class:b,tabindex:g,ref:"selfElRef",style:this.cssVars,onKeydown:h?u:void 0,onFocusout:h?v:void 0,onDragleave:s?this.handleDragLeaveTree:void 0},t.length?t.map(y):ft(this.$slots.empty,()=>[i(Zn,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),pC=m("h",` + font-size: var(--n-font-size); + font-weight: var(--n-font-weight); + margin: var(--n-margin); + transition: color .3s var(--n-bezier); + color: var(--n-text-color); +`,[k("&:first-child",{marginTop:0}),z("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[z("align-text",{paddingLeft:0},[k("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),k("&::before",` + content: ""; + width: var(--n-bar-width); + border-radius: calc(var(--n-bar-width) / 2); + transition: background-color .3s var(--n-bezier); + left: 0; + top: 0; + bottom: 0; + position: absolute; + `),k("&::before",{backgroundColor:"var(--n-bar-color)"})])]),gC=Object.assign(Object.assign({},Re.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),mC=e=>ie({name:`H${e}`,props:gC,setup(t){const{mergedClsPrefixRef:o,inlineThemeDisabled:r}=Ze(t),n=Re("Typography","-h",pC,ja,t,o),a=C(()=>{const{type:l}=t,{common:{cubicBezierEaseInOut:d},self:{headerFontWeight:c,headerTextColor:u,[le("headerPrefixWidth",e)]:f,[le("headerFontSize",e)]:v,[le("headerMargin",e)]:p,[le("headerBarWidth",e)]:h,[le("headerBarColor",l)]:g}}=n.value;return{"--n-bezier":d,"--n-font-size":v,"--n-margin":p,"--n-bar-color":g,"--n-bar-width":h,"--n-font-weight":c,"--n-text-color":u,"--n-prefix-width":f}}),s=r?it(`h${e}`,C(()=>t.type[0]),a,t):void 0;return{mergedClsPrefix:o,cssVars:r?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var t;const{prefix:o,alignText:r,mergedClsPrefix:n,cssVars:a,$slots:s}=this;return(t=this.onRender)===null||t===void 0||t.call(this),i(`h${e}`,{class:[`${n}-h`,`${n}-h${e}`,this.themeClass,{[`${n}-h--prefix-bar`]:o,[`${n}-h--align-text`]:r}],style:a},s)}}),Iy=mC("6"),bC=m("p",` + box-sizing: border-box; + transition: color .3s var(--n-bezier); + margin: var(--n-margin); + font-size: var(--n-font-size); + line-height: var(--n-line-height); + color: var(--n-text-color); +`,[k("&:first-child","margin-top: 0;"),k("&:last-child","margin-bottom: 0;")]),xC=Object.assign(Object.assign({},Re.props),{depth:[String,Number]}),By=ie({name:"P",props:xC,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),r=Re("Typography","-p",bC,ja,e,t),n=C(()=>{const{depth:s}=e,l=s||"1",{common:{cubicBezierEaseInOut:d},self:{pFontSize:c,pLineHeight:u,pMargin:f,pTextColor:v,[`pTextColor${l}Depth`]:p}}=r.value;return{"--n-bezier":d,"--n-font-size":c,"--n-line-height":u,"--n-margin":f,"--n-text-color":s===void 0?v:p}}),a=o?it("p",C(()=>`${e.depth||""}`),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),i("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),CC=m("text",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); +`,[z("strong",` + font-weight: var(--n-font-weight-strong); + `),z("italic",{fontStyle:"italic"}),z("underline",{textDecoration:"underline"}),z("code",` + line-height: 1.4; + display: inline-block; + font-family: var(--n-font-famliy-mono); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + box-sizing: border-box; + padding: .05em .35em 0 .35em; + border-radius: var(--n-code-border-radius); + font-size: .9em; + color: var(--n-code-text-color); + background-color: var(--n-code-color); + border: var(--n-code-border); + `)]),yC=Object.assign(Object.assign({},Re.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),Oy=ie({name:"Text",props:yC,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Ze(e),r=Re("Typography","-text",CC,ja,e,t),n=C(()=>{const{depth:s,type:l}=e,d=l==="default"?s===void 0?"textColor":`textColor${s}Depth`:le("textColor",l),{common:{fontWeightStrong:c,fontFamilyMono:u,cubicBezierEaseInOut:f},self:{codeTextColor:v,codeBorderRadius:p,codeColor:h,codeBorder:g,[d]:b}}=r.value;return{"--n-bezier":f,"--n-text-color":b,"--n-font-weight-strong":c,"--n-font-famliy-mono":u,"--n-code-border-radius":p,"--n-code-text-color":v,"--n-code-color":h,"--n-code-border":g}}),a=o?it("text",C(()=>`${e.type[0]}${e.depth||""}`),n,e):void 0;return{mergedClsPrefix:t,compitableTag:nr(e,["as","tag"]),cssVars:o?void 0:n,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,o;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const n=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],a=(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t);return this.code?i("code",{class:n,style:this.cssVars},this.delete?i("del",null,a):a):this.delete?i("del",{class:n,style:this.cssVars},a):i(this.compitableTag||"span",{class:n,style:this.cssVars},a)}}),wC=k([m("watermark-container",` + position: relative; + `,[nt("selectable",` + user-select: none; + -webkit-user-select: none; + `),z("global-rotate",` + overflow: hidden; + `),z("fullscreen",` + top: 0; + left: 0; + width: 100%; + height: 100%; + pointer-events: none; + position: fixed; + `)]),m("watermark",` + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + pointer-events: none; + background-repeat: repeat; + `,[z("fullscreen",` + position: fixed; + `),z("global-rotate",` + position: absolute; + height: max(284vh, 284vw); + width: max(284vh, 284vw); + `)])]);function SC(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const kC=Object.assign(Object.assign({},Re.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},textAlign:{type:String,default:"left"},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),Dy=ie({name:"Watermark",props:kC,setup(e,{slots:t}){const{mergedClsPrefixRef:o}=Ze(e),r=Re("Watermark","-watermark",wC,F0,e,o),n=B(""),a=bo?document.createElement("canvas"):null,s=a?a.getContext("2d"):null,l=B(!1);return as(()=>l.value=!0),$t(()=>{if(!a)return;l.value;const d=SC(s),{xGap:c,yGap:u,width:f,height:v,yOffset:p,xOffset:h,rotate:g,image:b,content:y,fontColor:x,fontStyle:T,fontVariant:$,fontStretch:R,fontWeight:w,fontFamily:S,fontSize:A,lineHeight:I,debug:M}=e,V=(c+f)*d,D=(u+v)*d,E=h*d,K=p*d;if(a.width=V,a.height=D,s){s.translate(0,0);const N=f*d,oe=v*d;if(M&&(s.strokeStyle="grey",s.strokeRect(0,0,N,oe)),s.rotate(g*(Math.PI/180)),b){const q=new Image;q.crossOrigin="anonymous",q.referrerPolicy="no-referrer",q.src=b,q.onload=()=>{s.globalAlpha=e.imageOpacity;const{imageWidth:re,imageHeight:me}=e;s.drawImage(q,E,K,(e.imageWidth||(me?q.width*me/q.height:q.width))*d,(e.imageHeight||(re?q.height*re/q.width:q.height))*d),n.value=a.toDataURL()}}else if(y){M&&(s.strokeStyle="green",s.strokeRect(0,0,N,oe)),s.font=`${T} ${$} ${w} ${R} ${A*d}px/${I*d}px ${S||r.value.self.fontFamily}`,s.fillStyle=x;let q=0;const{textAlign:re}=e;y.split(` +`).map(me=>{const ue=s.measureText(me).width;return q=Math.max(q,ue),{width:ue,line:me}}).forEach(({line:me,width:ue},W)=>{const H=re==="left"?0:re==="center"?(q-ue)/2:q-ue;s.fillText(me,E+H,K+I*d*(W+1))}),n.value=a.toDataURL()}else y||(s.clearRect(0,0,a.width,a.height),n.value=a.toDataURL())}else Ku("watermark","Canvas is not supported in the browser.")}),()=>{var d;const{globalRotate:c,fullscreen:u,zIndex:f}=e,v=o.value,p=c!==0&&u,h="max(142vh, 142vw)",g=i("div",{class:[`${v}-watermark`,c!==0&&`${v}-watermark--global-rotate`,u&&`${v}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:p?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${h} + ${e.width/2}px) calc(${h} + ${e.height/2}px), ${h} ${h}`:h,backgroundImage:e.cross?`url(${n.value}), url(${n.value})`:`url(${n.value})`}});return e.fullscreen&&!c?g:i("div",{class:[`${v}-watermark-container`,c!==0&&`${v}-watermark-container--global-rotate`,u&&`${v}-watermark-container--fullscreen`,e.selectable&&`${v}-watermark-container--selectable`],style:{zIndex:p?f:void 0}},(d=t.default)===null||d===void 0?void 0:d.call(t),g)}}}),RC=ie({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var o;return(o=e.onSetup)===null||o===void 0||o.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),zC={message:yx,notification:Ax,loadingBar:nx,dialog:bm,modal:zx};function PC({providersAndProps:e,configProviderProps:t}){let o=Au(n);const r={app:o};function n(){return i(ip,Qa(t),{default:()=>e.map(({type:l,Provider:d,props:c})=>i(d,Qa(c),{default:()=>i(RC,{onSetup:()=>r[l]=zC[l]()})}))})}let a;return bo&&(a=document.createElement("div"),document.body.appendChild(a),o.mount(a)),Object.assign({unmount:()=>{var l;if(o===null||a===null){go("discrete","unmount call no need because discrete app has been unmounted");return}o.unmount(),(l=a.parentNode)===null||l===void 0||l.removeChild(a),a=null,o=null}},r)}function My(e,{configProviderProps:t,messageProviderProps:o,dialogProviderProps:r,notificationProviderProps:n,loadingBarProviderProps:a,modalProviderProps:s}={}){const l=[];return e.forEach(c=>{switch(c){case"message":l.push({type:c,Provider:Cx,props:o});break;case"notification":l.push({type:c,Provider:Mx,props:n});break;case"dialog":l.push({type:c,Provider:mm,props:r});break;case"loadingBar":l.push({type:c,Provider:rx,props:a});break;case"modal":l.push({type:c,Provider:Rx,props:s})}}),PC({providersAndProps:l,configProviderProps:t})}const $C=()=>({}),TC={name:"Equation",common:_e,self:$C},FC={name:"FloatButtonGroup",common:_e,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},Ay={name:"dark",common:_e,Alert:ah,Anchor:ph,AutoComplete:Ih,Avatar:Gs,AvatarGroup:Lh,BackTop:jh,Badge:Vh,Breadcrumb:Kh,Button:ho,ButtonGroup:Sb,Calendar:cv,Card:id,Carousel:Wv,Cascader:qv,Checkbox:Ur,Code:sd,Collapse:tp,CollapseTransition:rp,ColorPicker:fv,DataTable:kp,DatePicker:Mg,Descriptions:em,Dialog:rc,Divider:Cm,Drawer:km,Dropdown:Ia,DynamicInput:jm,DynamicTags:qm,Element:Zm,Empty:Tr,Ellipsis:xd,Equation:TC,Flex:Qm,Form:rb,GradientText:kb,Icon:Xp,IconWrapper:H0,Image:E0,Input:Po,InputNumber:Pb,LegacyTransfer:J0,Layout:Fb,List:Ob,LoadingBar:Db,Log:_b,Menu:Nb,Mention:Hb,Message:wb,Modal:cm,Notification:xb,PageHeader:Wb,Pagination:gd,Popconfirm:qb,Popover:Fr,Popselect:dd,Progress:Rc,QrCode:_x,Radio:wd,Rate:Yb,Result:Qb,Row:I0,Scrollbar:fo,Select:hd,Skeleton:Kx,Slider:e0,Space:vc,Spin:o0,Statistic:n0,Steps:l0,Switch:s0,Table:h0,Tabs:g0,Tag:Ds,Thing:b0,TimePicker:qd,Timeline:C0,Tooltip:ni,Transfer:w0,Tree:Ic,TreeSelect:k0,Typography:z0,Upload:$0,Watermark:T0,Split:Xx,FloatButton:B0,FloatButtonGroup:FC};export{Rx as $,Sy as A,wy as B,Rp as C,Py as D,cy as E,sy as F,oy as G,hp as H,ay as I,ly as J,ty as K,ey as L,Bo as M,jv as N,ky as O,Oy as P,At as Q,Hh as R,Ry as S,JC as T,yy as U,Jp as V,Cy as W,xy as X,rx as Y,Cx as Z,mm as _,my as a,Mx as a0,py as a1,Ay as a2,ip as a3,My as a4,hb as a5,Dy as a6,Yx as a7,gy as a8,$y as a9,Wx as aa,Iy as ab,By as ac,ZC as ad,Ph as ae,QC as af,by as ag,vy as ah,iy as ai,Mp as aj,Id as ak,uy as al,ry as am,pb as b,fy as c,XC as d,zy as e,cc as f,A0 as g,sg as h,Nd as i,Pp as j,cp as k,Rn as l,dc as m,Fy as n,ny as o,ab as p,hy as q,ia as r,Ty as s,tC as t,zx as u,jn as v,Ba as w,Rd as x,dy as y,YC as z}; diff --git a/js/naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js.gz b/js/naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js.gz new file mode 100644 index 00000000..07df5039 Binary files /dev/null and b/js/naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js.gz differ diff --git a/js/pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js b/js/pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js deleted file mode 100644 index 22025246..00000000 --- a/js/pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js +++ /dev/null @@ -1 +0,0 @@ -import{d as S}from"./destr@2.0.3-CVtkxrq9.js";import{d as $,a as h}from"./deep-pick-omit@1.2.0-DyxInw53.js";function p(s,{storage:c,serializer:e,key:i,debug:t,pick:o,omit:d,beforeHydrate:a,afterHydrate:r},n,f=!0){try{f&&(a==null||a(n));const l=c.getItem(i);if(l){const u=e.deserialize(l),g=o?$(u,o):u,z=d?h(g,d):g;s.$patch(z)}f&&(r==null||r(n))}catch(l){t&&console.error("[pinia-plugin-persistedstate]",l)}}function m(s,{storage:c,serializer:e,key:i,debug:t,pick:o,omit:d}){try{const a=o?$(s,o):s,r=d?h(a,d):a,n=e.serialize(r);c.setItem(i,n)}catch(a){t&&console.error("[pinia-plugin-persistedstate]",a)}}function y(s,c,e=i=>i()){const{pinia:i,store:t,options:{persist:o}}=s;if(!o)return;if(!(t.$id in i.state.value)){const r=i._s.get(t.$id.replace("__hot:",""));r&&Promise.resolve().then(()=>r.$persist());return}const a=(Array.isArray(o)?o:o===!0?[{}]:[o]).map(c);t.$hydrate=({runHooks:r=!0}={})=>{a.forEach(n=>{e(()=>p(t,n,s,r))})},t.$persist=()=>{a.forEach(r=>{e(()=>m(t.$state,r))})},a.forEach(r=>{e(()=>p(t,r,s)),t.$subscribe((n,f)=>e(()=>m(f,r)),{detached:!0})})}function k(s={}){return function(c){y(c,e=>({key:(s.key?s.key:i=>i)(e.key??c.store.$id),debug:e.debug??s.debug??!1,serializer:e.serializer??s.serializer??{serialize:i=>JSON.stringify(i),deserialize:i=>S(i)},storage:e.storage??s.storage??window.localStorage,beforeHydrate:e.beforeHydrate,afterHydrate:e.afterHydrate,pick:e.pick,omit:e.omit}))}}var P=k();export{P as s}; diff --git a/js/pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js.gz b/js/pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js.gz deleted file mode 100644 index f3b9722f..00000000 Binary files a/js/pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js.gz and /dev/null differ diff --git a/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js b/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js new file mode 100644 index 00000000..2e38f4a1 --- /dev/null +++ b/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js @@ -0,0 +1 @@ +import{d as S}from"./destr@2.0.3-CVtkxrq9.js";import{d as h,a as $}from"./deep-pick-omit@1.2.1-CegYQlcN.js";function p(e,{storage:c,serializer:t,key:s,debug:i,pick:o,omit:d,beforeHydrate:a,afterHydrate:r},n,f=!0){try{f&&(a==null||a(n));const l=c.getItem(s);if(l){const u=t.deserialize(l),g=o?h(u,o):u,z=d?$(g,d):g;e.$patch(z)}f&&(r==null||r(n))}catch(l){i&&console.error("[pinia-plugin-persistedstate]",l)}}function m(e,{storage:c,serializer:t,key:s,debug:i,pick:o,omit:d}){try{const a=o?h(e,o):e,r=d?$(a,d):a,n=t.serialize(r);c.setItem(s,n)}catch(a){i&&console.error("[pinia-plugin-persistedstate]",a)}}function y(e,c,t){const{pinia:s,store:i,options:{persist:o=t}}=e;if(!o)return;if(!(i.$id in s.state.value)){const r=s._s.get(i.$id.replace("__hot:",""));r&&Promise.resolve().then(()=>r.$persist());return}const a=(Array.isArray(o)?o:o===!0?[{}]:[o]).map(c);i.$hydrate=({runHooks:r=!0}={})=>{a.forEach(n=>{p(i,n,e,r)})},i.$persist=()=>{a.forEach(r=>{m(i.$state,r)})},a.forEach(r=>{p(i,r,e),i.$subscribe((n,f)=>m(f,r),{detached:!0})})}function k(e={}){return function(c){y(c,t=>({key:(e.key?e.key:s=>s)(t.key??c.store.$id),debug:t.debug??e.debug??!1,serializer:t.serializer??e.serializer??{serialize:s=>JSON.stringify(s),deserialize:s=>S(s)},storage:t.storage??e.storage??window.localStorage,beforeHydrate:t.beforeHydrate,afterHydrate:t.afterHydrate,pick:t.pick,omit:t.omit}),e.auto??!1)}}var P=k();export{P as s}; diff --git a/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js.gz b/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js.gz new file mode 100644 index 00000000..5cab62a1 Binary files /dev/null and b/js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js.gz differ diff --git a/js/pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js b/js/pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js new file mode 100644 index 00000000..3313901c --- /dev/null +++ b/js/pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js @@ -0,0 +1,5 @@ +import{i as G}from"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import{i as $,w as T,V as tt,n as et,j as st}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{x as H,k as M,m as B,e as nt,a as E,y as D,d as ot,n as ct,o as rt,v as ut}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";/*! + * pinia v2.2.4 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */let J;const R=t=>J=t,K=Symbol();function L(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var x;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(x||(x={}));function mt(){const t=H(!0),c=t.run(()=>M({}));let s=[],e=[];const r=B({install(u){R(r),r._a=u,u.provide(K,r),u.config.globalProperties.$pinia=r,e.forEach(f=>s.push(f)),e=[]},use(u){return!this._a&&!G?e.push(u):s.push(u),this},_p:s,_a:null,_e:t,_s:new Map,state:c});return r}const q=()=>{};function F(t,c,s,e=q){t.push(c);const r=()=>{const u=t.indexOf(c);u>-1&&(t.splice(u,1),e())};return!s&&ct()&&rt(r),r}function P(t,...c){t.slice().forEach(s=>{s(...c)})}const at=t=>t(),A=Symbol(),I=Symbol();function O(t,c){t instanceof Map&&c instanceof Map?c.forEach((s,e)=>t.set(e,s)):t instanceof Set&&c instanceof Set&&c.forEach(t.add,t);for(const s in c){if(!c.hasOwnProperty(s))continue;const e=c[s],r=t[s];L(r)&&L(e)&&t.hasOwnProperty(s)&&!E(e)&&!D(e)?t[s]=O(r,e):t[s]=e}return t}const ft=Symbol();function it(t){return!L(t)||!t.hasOwnProperty(ft)}const{assign:y}=Object;function lt(t){return!!(E(t)&&t.effect)}function ht(t,c,s,e){const{state:r,actions:u,getters:f}=c,a=s.state.value[t];let C;function b(){a||(s.state.value[t]=r?r():{});const S=ut(s.state.value[t]);return y(S,u,Object.keys(f||{}).reduce((v,m)=>(v[m]=B(st(()=>{R(s);const _=s._s.get(t);return f[m].call(_,_)})),v),{}))}return C=z(t,b,c,s,e,!0),C}function z(t,c,s={},e,r,u){let f;const a=y({actions:{}},s),C={deep:!0};let b,S,v=[],m=[],_;const d=e.state.value[t];!u&&!d&&(e.state.value[t]={}),M({});let W;function N(o){let n;b=S=!1,typeof o=="function"?(o(e.state.value[t]),n={type:x.patchFunction,storeId:t,events:_}):(O(e.state.value[t],o),n={type:x.patchObject,payload:o,storeId:t,events:_});const i=W=Symbol();et().then(()=>{W===i&&(b=!0)}),S=!0,P(v,n,e.state.value[t])}const Q=u?function(){const{state:n}=s,i=n?n():{};this.$patch(j=>{y(j,i)})}:q;function U(){f.stop(),v=[],m=[],e._s.delete(t)}const V=(o,n="")=>{if(A in o)return o[I]=n,o;const i=function(){R(e);const j=Array.from(arguments),p=[],k=[];function Y(l){p.push(l)}function Z(l){k.push(l)}P(m,{args:j,name:i[I],store:h,after:Y,onError:Z});let w;try{w=o.apply(this&&this.$id===t?this:h,j)}catch(l){throw P(k,l),l}return w instanceof Promise?w.then(l=>(P(p,l),l)).catch(l=>(P(k,l),Promise.reject(l))):(P(p,w),w)};return i[A]=!0,i[I]=n,i},X={_p:e,$id:t,$onAction:F.bind(null,m),$patch:N,$reset:Q,$subscribe(o,n={}){const i=F(v,o,n.detached,()=>j()),j=f.run(()=>T(()=>e.state.value[t],p=>{(n.flush==="sync"?S:b)&&o({storeId:t,type:x.direct,events:_},p)},y({},C,n)));return i},$dispose:U},h=nt(X);e._s.set(t,h);const g=(e._a&&e._a.runWithContext||at)(()=>e._e.run(()=>(f=H()).run(()=>c({action:V}))));for(const o in g){const n=g[o];if(E(n)&&!lt(n)||D(n))u||(d&&it(n)&&(E(n)?n.value=d[o]:O(n,d[o])),e.state.value[t][o]=n);else if(typeof n=="function"){const i=V(n,o);g[o]=i,a.actions[o]=n}}return y(h,g),y(ot(h),g),Object.defineProperty(h,"$state",{get:()=>e.state.value[t],set:o=>{N(n=>{y(n,o)})}}),e._p.forEach(o=>{y(h,f.run(()=>o({store:h,app:e._a,pinia:e,options:a})))}),d&&u&&s.hydrate&&s.hydrate(h.$state,d),b=!0,S=!0,h}function _t(t,c,s){let e,r;const u=typeof c=="function";typeof t=="string"?(e=t,r=u?s:c):(r=t,e=t.id);function f(a,C){const b=tt();return a=a||(b?$(K,null):null),a&&R(a),a=J,a._s.has(e)||(u?z(e,c,r,a):ht(e,r,a)),a._s.get(e)}return f.$id=e,f}export{mt as c,_t as d}; diff --git a/js/pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js.gz b/js/pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js.gz new file mode 100644 index 00000000..643281b5 Binary files /dev/null and b/js/pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js.gz differ diff --git a/js/seemly@0.3.8-DjGKl9dV.js b/js/seemly@0.3.8-DjGKl9dV.js new file mode 100644 index 00000000..e418d6ed --- /dev/null +++ b/js/seemly@0.3.8-DjGKl9dV.js @@ -0,0 +1 @@ +let R=[];const N=new WeakMap;function S(){R.forEach(n=>n(...N.get(n))),R=[]}function B(n,...t){N.set(n,t),!R.includes(n)&&R.push(n)===1&&requestAnimationFrame(S)}function P(n,t){let{target:r}=n;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function T(n){return n.composedPath()[0]||null}function H(n){if(typeof n=="number")return{"":n.toString()};const t={};return n.split(/ +/).forEach(r=>{if(r==="")return;const[e,i]=r.split(":");i===void 0?t[""]=e:t[e]=i}),t}function _(n,t){var r;if(n==null)return;const e=H(n);if(t===void 0)return e[""];if(typeof t=="string")return(r=e[t])!==null&&r!==void 0?r:e[""];if(Array.isArray(t)){for(let i=t.length-1;i>=0;--i){const u=t[i];if(u in e)return e[u]}return e[""]}else{let i,u=-1;return Object.keys(e).forEach(f=>{const d=Number(f);!Number.isNaN(d)&&t>=d&&d>=u&&(u=d,i=e[f])}),i}}function J(n){return typeof n=="string"?n.endsWith("px")?Number(n.slice(0,n.length-2)):Number(n):n}function Q(n){if(n!=null)return typeof n=="number"?`${n}px`:n.endsWith("px")?n:`${n}px`}function V(n,t){const r=n.trim().split(/\s+/g),e={top:r[0]};switch(r.length){case 1:e.right=r[0],e.bottom=r[0],e.left=r[0];break;case 2:e.right=r[1],e.left=r[1],e.bottom=r[0];break;case 3:e.right=r[1],e.bottom=r[2],e.left=r[1];break;case 4:e.right=r[1],e.bottom=r[2],e.left=r[3];break;default:throw new Error("[seemly/getMargin]:"+n+" is not a valid value.")}return t===void 0?e:e[t]}function X(n,t){const[r,e]=n.split(" ");return{row:r,col:e||r}}const C={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"};function Y(n,t,r){t/=100,r/=100;const e=t*Math.min(r,1-r)+r;return[n,e?(2-2*r/e)*100:0,e*100]}function Z(n,t,r){t/=100,r/=100;const e=r-r*t/2,i=Math.min(e,1-e);return[n,i?(r-e)/i*100:0,e*100]}function L(n,t,r){t/=100,r/=100;let e=(i,u=(i+n/60)%6)=>r-r*t*Math.max(Math.min(u,4-u,1),0);return[e(5)*255,e(3)*255,e(1)*255]}function O(n,t,r){n/=255,t/=255,r/=255;let e=Math.max(n,t,r),i=e-Math.min(n,t,r),u=i&&(e==n?(t-r)/i:e==t?2+(r-n)/i:4+(n-t)/i);return[60*(u<0?u+6:u),e&&i/e*100,e*100]}function z(n,t,r){n/=255,t/=255,r/=255;let e=Math.max(n,t,r),i=e-Math.min(n,t,r),u=1-Math.abs(e+e-i-1),f=i&&(e==n?(t-r)/i:e==t?2+(r-n)/i:4+(n-t)/i);return[60*(f<0?f+6:f),u?i/u*100:0,(e+e-i)*50]}function K(n,t,r){t/=100,r/=100;let e=t*Math.min(r,1-r),i=(u,f=(u+n/30)%12)=>r-e*Math.max(Math.min(f-3,9-f,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}const h="^\\s*",l="\\s*$",x="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",c="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",p="([0-9A-Fa-f])",m="([0-9A-Fa-f]{2})",I=new RegExp(`${h}hsl\\s*\\(${c},${x},${x}\\)${l}`),j=new RegExp(`${h}hsv\\s*\\(${c},${x},${x}\\)${l}`),q=new RegExp(`${h}hsla\\s*\\(${c},${x},${x},${c}\\)${l}`),G=new RegExp(`${h}hsva\\s*\\(${c},${x},${x},${c}\\)${l}`),U=new RegExp(`${h}rgb\\s*\\(${c},${c},${c}\\)${l}`),W=new RegExp(`${h}rgba\\s*\\(${c},${c},${c},${c}\\)${l}`),E=new RegExp(`${h}#${p}${p}${p}${l}`),M=new RegExp(`${h}#${m}${m}${m}${l}`),A=new RegExp(`${h}#${p}${p}${p}${p}${l}`),v=new RegExp(`${h}#${m}${m}${m}${m}${l}`);function a(n){return parseInt(n,16)}function tt(n){try{let t;if(t=q.exec(n))return[$(t[1]),o(t[5]),o(t[9]),g(t[13])];if(t=I.exec(n))return[$(t[1]),o(t[5]),o(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${n}.`)}catch(t){throw t}}function nt(n){try{let t;if(t=G.exec(n))return[$(t[1]),o(t[5]),o(t[9]),g(t[13])];if(t=j.exec(n))return[$(t[1]),o(t[5]),o(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${n}.`)}catch(t){throw t}}function w(n){try{let t;if(t=M.exec(n))return[a(t[1]),a(t[2]),a(t[3]),1];if(t=U.exec(n))return[s(t[1]),s(t[5]),s(t[9]),1];if(t=W.exec(n))return[s(t[1]),s(t[5]),s(t[9]),g(t[13])];if(t=E.exec(n))return[a(t[1]+t[1]),a(t[2]+t[2]),a(t[3]+t[3]),1];if(t=v.exec(n))return[a(t[1]),a(t[2]),a(t[3]),g(a(t[4])/255)];if(t=A.exec(n))return[a(t[1]+t[1]),a(t[2]+t[2]),a(t[3]+t[3]),g(a(t[4]+t[4])/255)];if(n in C)return w(C[n]);throw new Error(`[seemly/rgba]: Invalid color value ${n}.`)}catch(t){throw t}}function b(n){return n>1?1:n<0?0:n}function k(n,t,r){return`rgb(${s(n)}, ${s(t)}, ${s(r)})`}function F(n,t,r,e){return`rgba(${s(n)}, ${s(t)}, ${s(r)}, ${b(e)})`}function y(n,t,r,e,i){return s((n*t*(1-e)+r*e)/i)}function et(n,t){Array.isArray(n)||(n=w(n)),Array.isArray(t)||(t=w(t));const r=n[3],e=t[3],i=g(r+e-r*e);return F(y(n[0],r,t[0],e,i),y(n[1],r,t[1],e,i),y(n[2],r,t[2],e,i),i)}function rt(n,t){const[r,e,i,u=1]=Array.isArray(n)?n:w(n);return t.alpha?F(r,e,i,t.alpha):F(r,e,i,u)}function it(n,t){const[r,e,i,u=1]=Array.isArray(n)?n:w(n),{lightness:f=1,alpha:d=1}=t;return D([r*f,e*f,i*f,u*d])}function g(n){const t=Math.round(Number(n)*100)/100;return t>1?1:t<0?0:t}function $(n){const t=Math.round(Number(n));return t>=360||t<0?0:t}function s(n){const t=Math.round(Number(n));return t>255?255:t<0?0:t}function o(n){const t=Math.round(Number(n));return t>100?100:t<0?0:t}function st(n){const[t,r,e]=Array.isArray(n)?n:w(n);return k(t,r,e)}function D(n){const[t,r,e]=n;return 3 in n?`rgba(${s(t)}, ${s(r)}, ${s(e)}, ${g(n[3])})`:`rgba(${s(t)}, ${s(r)}, ${s(e)}, 1)`}function ut(n){return`hsv(${$(n[0])}, ${o(n[1])}%, ${o(n[2])}%)`}function ot(n){const[t,r,e]=n;return 3 in n?`hsva(${$(t)}, ${o(r)}%, ${o(e)}%, ${g(n[3])})`:`hsva(${$(t)}, ${o(r)}%, ${o(e)}%, 1)`}function at(n){return`hsl(${$(n[0])}, ${o(n[1])}%, ${o(n[2])}%)`}function ft(n){const[t,r,e]=n;return 3 in n?`hsla(${$(t)}, ${o(r)}%, ${o(e)}%, ${g(n[3])})`:`hsla(${$(t)}, ${o(r)}%, ${o(e)}%, 1)`}function ct(n){if(typeof n=="string"){let e;if(e=M.exec(n))return`${e[0]}FF`;if(e=v.exec(n))return e[0];if(e=E.exec(n))return`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}FF`;if(e=A.exec(n))return`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}${e[4]}${e[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${n}.`)}const t=`#${n.slice(0,3).map(e=>s(e).toString(16).toUpperCase().padStart(2,"0")).join("")}`,r=n.length===3?"FF":s(n[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+r}function $t(n){if(typeof n=="string"){let t;if(t=M.exec(n))return t[0];if(t=v.exec(n))return t[0].slice(0,7);if(t=E.exec(n)||A.exec(n))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${n}.`)}return`#${n.slice(0,3).map(t=>s(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function ht(n=8){return Math.random().toString(16).slice(2,2+n)}function lt(n,t){const r=[];for(let e=0;eM(r,n))}function F(e,n={}){const{preserveGroup:t=!1}=n,r=[],s=t?i=>{i.isLeaf||(r.push(i.key),u(i.children))}:i=>{i.isLeaf||(i.isGroup||r.push(i.key),u(i.children))};function u(i){i.forEach(s)}return u(e),r}function R(e,n){const{isLeaf:t}=e;return t!==void 0?t:!n(e)}function j(e){return e.children}function U(e){return e.key}function q(){return!1}function V(e,n){const{isLeaf:t}=e;return!(t===!1&&!Array.isArray(n(e)))}function W(e){return e.disabled===!0}function Z(e,n){return e.isLeaf===!1&&!Array.isArray(n(e))}function P(e){var n;return e==null?[]:Array.isArray(e)?e:(n=e.checkedKeys)!==null&&n!==void 0?n:[]}function x(e){var n;return e==null||Array.isArray(e)?[]:(n=e.indeterminateKeys)!==null&&n!==void 0?n:[]}function z(e,n){const t=new Set(e);return n.forEach(r=>{t.has(r)||t.add(r)}),Array.from(t)}function B(e,n){const t=new Set(e);return n.forEach(r=>{t.has(r)&&t.delete(r)}),Array.from(t)}function H(e){return(e==null?void 0:e.type)==="group"}function le(e){const n=new Map;return e.forEach((t,r)=>{n.set(t.key,r)}),t=>{var r;return(r=n.get(t))!==null&&r!==void 0?r:null}}class J extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Q(e,n,t,r){return w(n.concat(e),t,r,!1)}function X(e,n){const t=new Set;return e.forEach(r=>{const s=n.treeNodeMap.get(r);if(s!==void 0){let u=s.parent;for(;u!==null&&!(u.disabled||t.has(u.key));)t.add(u.key),u=u.parent}}),t}function Y(e,n,t,r){const s=w(n,t,r,!1),u=w(e,t,r,!0),i=X(e,t),d=[];return s.forEach(f=>{(u.has(f)||i.has(f))&&d.push(f)}),d.forEach(f=>s.delete(f)),s}function E(e,n){const{checkedKeys:t,keysToCheck:r,keysToUncheck:s,indeterminateKeys:u,cascade:i,leafOnly:d,checkStrategy:f,allowNotLoaded:o}=e;if(!i)return r!==void 0?{checkedKeys:z(t,r),indeterminateKeys:Array.from(u)}:s!==void 0?{checkedKeys:B(t,s),indeterminateKeys:Array.from(u)}:{checkedKeys:Array.from(t),indeterminateKeys:Array.from(u)};const{levelTreeNodeMap:h}=n;let c;s!==void 0?c=Y(s,t,n,o):r!==void 0?c=Q(r,t,n,o):c=w(t,n,o,!1);const v=f==="parent",N=f==="child"||d,g=c,A=new Set,C=Math.max.apply(null,Array.from(h.keys()));for(let b=C;b>=0;b-=1){const L=b===0,S=h.get(b);for(const a of S){if(a.isLeaf)continue;const{key:l,shallowLoaded:p}=a;if(N&&p&&a.children.forEach(y=>{!y.disabled&&!y.isLeaf&&y.shallowLoaded&&g.has(y.key)&&g.delete(y.key)}),a.disabled||!p)continue;let m=!0,k=!1,K=!0;for(const y of a.children){const O=y.key;if(!y.disabled){if(K&&(K=!1),g.has(O))k=!0;else if(A.has(O)){k=!0,m=!1;break}else if(m=!1,k)break}}m&&!K?(v&&a.children.forEach(y=>{!y.disabled&&g.has(y.key)&&g.delete(y.key)}),g.add(l)):k&&A.add(l),L&&N&&g.has(l)&&g.delete(l)}}return{checkedKeys:Array.from(g),indeterminateKeys:Array.from(A)}}function w(e,n,t,r){const{treeNodeMap:s,getChildren:u}=n,i=new Set,d=new Set(e);return e.forEach(f=>{const o=s.get(f);o!==void 0&&M(o,h=>{if(h.disabled)return G.STOP;const{key:c}=h;if(!i.has(c)&&(i.add(c),d.add(c),Z(h.rawNode,u))){if(r)return G.STOP;if(!t)throw new J}})}),d}function $(e,{includeGroup:n=!1,includeSelf:t=!0},r){var s;const u=r.treeNodeMap;let i=e==null?null:(s=u.get(e))!==null&&s!==void 0?s:null;const d={keyPath:[],treeNodePath:[],treeNode:i};if(i!=null&&i.ignored)return d.treeNode=null,d;for(;i;)!i.ignored&&(n||!i.isGroup)&&d.treeNodePath.push(i),i=i.parent;return d.treeNodePath.reverse(),t||d.treeNodePath.pop(),d.keyPath=d.treeNodePath.map(f=>f.key),d}function ee(e){if(e.length===0)return null;const n=e[0];return n.isGroup||n.ignored||n.disabled?n.getNext():n}function te(e,n){const t=e.siblings,r=t.length,{index:s}=e;return n?t[(s+1)%r]:s===t.length-1?null:t[s+1]}function _(e,n,{loop:t=!1,includeDisabled:r=!1}={}){const s=n==="prev"?ne:te,u={reverse:n==="prev"};let i=!1,d=null;function f(o){if(o!==null){if(o===e){if(!i)i=!0;else if(!e.disabled&&!e.isGroup){d=e;return}}else if((!o.disabled||r)&&!o.ignored&&!o.isGroup){d=o;return}if(o.isGroup){const h=T(o,u);h!==null?d=h:f(s(o,t))}else{const h=s(o,!1);if(h!==null)f(h);else{const c=re(o);c!=null&&c.isGroup?f(s(c,t)):t&&f(s(o,!0))}}}}return f(e),d}function ne(e,n){const t=e.siblings,r=t.length,{index:s}=e;return n?t[(s-1+r)%r]:s===0?null:t[s-1]}function re(e){return e.parent}function T(e,n={}){const{reverse:t=!1}=n,{children:r}=e;if(r){const{length:s}=r,u=t?s-1:0,i=t?-1:s,d=t?-1:1;for(let f=u;f!==i;f+=d){const o=r[f];if(!o.disabled&&!o.ignored)if(o.isGroup){const h=T(o,n);if(h!==null)return h}else return o}}return null}const ie={getChild(){return this.ignored?null:T(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return _(this,"next",e)},getPrev(e={}){return _(this,"prev",e)}};function se(e,n){const t=n?new Set(n):void 0,r=[];function s(u){u.forEach(i=>{r.push(i),!(i.isLeaf||!i.children||i.ignored)&&(i.isGroup||t===void 0||t.has(i.key))&&s(i.children)})}return s(e),r}function ae(e,n){const t=e.key;for(;n;){if(n.key===t)return!0;n=n.parent}return!1}function D(e,n,t,r,s,u=null,i=0){const d=[];return e.forEach((f,o)=>{var h;const c=Object.create(r);if(c.rawNode=f,c.siblings=d,c.level=i,c.index=o,c.isFirstChild=o===0,c.isLastChild=o+1===e.length,c.parent=u,!c.ignored){const v=s(f);Array.isArray(v)&&(c.children=D(v,n,t,r,s,c,i+1))}d.push(c),n.set(c.key,c),t.has(i)||t.set(i,[]),(h=t.get(i))===null||h===void 0||h.push(c)}),d}function oe(e,n={}){var t;const r=new Map,s=new Map,{getDisabled:u=W,getIgnored:i=q,getIsGroup:d=H,getKey:f=U}=n,o=(t=n.getChildren)!==null&&t!==void 0?t:j,h=n.ignoreEmptyChildren?a=>{const l=o(a);return Array.isArray(l)?l.length?l:null:l}:o,c=Object.assign({get key(){return f(this.rawNode)},get disabled(){return u(this.rawNode)},get isGroup(){return d(this.rawNode)},get isLeaf(){return R(this.rawNode,h)},get shallowLoaded(){return V(this.rawNode,h)},get ignored(){return i(this.rawNode)},contains(a){return ae(this,a)}},ie),v=D(e,r,s,c,h);function N(a){if(a==null)return null;const l=r.get(a);return l&&!l.isGroup&&!l.ignored?l:null}function g(a){if(a==null)return null;const l=r.get(a);return l&&!l.ignored?l:null}function A(a,l){const p=g(a);return p?p.getPrev(l):null}function C(a,l){const p=g(a);return p?p.getNext(l):null}function b(a){const l=g(a);return l?l.getParent():null}function L(a){const l=g(a);return l?l.getChild():null}const S={treeNodes:v,treeNodeMap:r,levelTreeNodeMap:s,maxLevel:Math.max(...s.keys()),getChildren:h,getFlattenedNodes(a){return se(v,a)},getNode:N,getPrev:A,getNext:C,getParent:b,getChild:L,getFirstAvailableNode(){return ee(v)},getPath(a,l={}){return $(a,l,S)},getCheckedKeys(a,l={}){const{cascade:p=!0,leafOnly:m=!1,checkStrategy:k="all",allowNotLoaded:K=!1}=l;return E({checkedKeys:P(a),indeterminateKeys:x(a),cascade:p,leafOnly:m,checkStrategy:k,allowNotLoaded:K},S)},check(a,l,p={}){const{cascade:m=!0,leafOnly:k=!1,checkStrategy:K="all",allowNotLoaded:y=!1}=p;return E({checkedKeys:P(l),indeterminateKeys:x(l),keysToCheck:a==null?[]:I(a),cascade:m,leafOnly:k,checkStrategy:K,allowNotLoaded:y},S)},uncheck(a,l,p={}){const{cascade:m=!0,leafOnly:k=!1,checkStrategy:K="all",allowNotLoaded:y=!1}=p;return E({checkedKeys:P(l),indeterminateKeys:x(l),keysToUncheck:a==null?[]:I(a),cascade:m,leafOnly:k,checkStrategy:K,allowNotLoaded:y},S)},getNonLeafKeys(a={}){return F(v,a)}};return S}export{oe as a,le as c,se as f}; diff --git a/js/treemate@0.3.11-DKekKYbv.js.gz b/js/treemate@0.3.11-DKekKYbv.js.gz new file mode 100644 index 00000000..48833175 Binary files /dev/null and b/js/treemate@0.3.11-DKekKYbv.js.gz differ diff --git a/js/utils-CozJMALc.js b/js/utils-CozJMALc.js new file mode 100644 index 00000000..1ee79c22 --- /dev/null +++ b/js/utils-CozJMALc.js @@ -0,0 +1 @@ +import{u as We,a as Le,b as ve,c as Pe,L as Ie,S as Fe,A as y,d as Re}from"./hooks-Dx3WCPci.js";import{c as i}from"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import{o as je,c as _}from"./lodash-es@4.17.21-CeZG2a4n.js";import{k as Be,a as Te,n as Me,o as De}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{w as g,f as Oe}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";const A=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2","#9b8bba","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc","#7EC4FF","#5FCBB0","#49C4BF","#F0C9CA","#34DC90","#3295E0","#EAB62E","#76C3F3","#2DC2C0","#FCC43F","#84CFFF"],$="transparent",k={},E={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},W={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},L={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},v={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},P={itemStyle:{borderWidth:0,borderColor:"#ccc"}},I={itemStyle:{borderWidth:0,borderColor:"#ccc"}},F={itemStyle:{borderWidth:0,borderColor:"#ccc"}},R={itemStyle:{borderWidth:0,borderColor:"#ccc"}},j={itemStyle:{borderWidth:0,borderColor:"#ccc"}},B={itemStyle:{borderWidth:0,borderColor:"#ccc"}},T={itemStyle:{borderWidth:0,borderColor:"#ccc"}},M={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},D={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},O={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},U={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},V={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},z={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},q={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},K={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Z={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},G={textStyle:{color:"#999999"},pageTextStyle:{color:"#999999"}},X={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Y={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},H={color:["#fc97af","#87f7cf"]},J={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},N={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Ue={color:A,backgroundColor:$,textStyle:k,title:E,line:W,radar:L,bar:v,pie:P,scatter:I,boxplot:F,parallel:R,sankey:j,funnel:B,gauge:T,candlestick:M,graph:D,map:O,geo:U,categoryAxis:V,valueAxis:z,logAxis:q,timeAxis:K,toolbox:Z,legend:G,tooltip:X,timeline:Y,visualMap:H,dataZoom:J,markPoint:N},Ve=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:$,bar:v,boxplot:F,candlestick:M,categoryAxis:V,color:A,dataZoom:J,default:Ue,funnel:B,gauge:T,geo:U,graph:D,legend:G,line:W,logAxis:q,map:O,markPoint:N,parallel:R,pie:P,radar:L,sankey:j,scatter:I,textStyle:k,timeAxis:K,timeline:Y,title:E,toolbox:Z,tooltip:X,valueAxis:z,visualMap:H},Symbol.toStringTag,{value:"Module"})),Q=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089","#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],ee="transparent",oe={},te={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},re={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},le={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},ae={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},se={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ce={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ne={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ie={itemStyle:{borderWidth:0,borderColor:"#ccc"}},de={itemStyle:{borderWidth:0,borderColor:"#ccc"}},fe={itemStyle:{borderWidth:0,borderColor:"#ccc"}},be={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ue={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},me={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},he={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},pe={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},Se={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ye={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ge={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},we={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Ce={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},xe={textStyle:{color:"#333333"}},_e={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},Ae={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},$e={color:["#5ab1ef","#e0ffff"]},ke={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},Ee={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},ze={color:Q,backgroundColor:ee,textStyle:oe,title:te,line:re,radar:le,bar:ae,pie:se,scatter:ce,boxplot:ne,parallel:ie,sankey:de,funnel:fe,gauge:be,candlestick:ue,graph:me,map:he,geo:pe,categoryAxis:Se,valueAxis:ye,logAxis:ge,timeAxis:we,toolbox:Ce,legend:xe,tooltip:_e,timeline:Ae,visualMap:$e,dataZoom:ke,markPoint:Ee},qe=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:ee,bar:ae,boxplot:ne,candlestick:ue,categoryAxis:Se,color:Q,dataZoom:ke,default:ze,funnel:fe,gauge:be,geo:pe,graph:me,legend:xe,line:re,logAxis:ge,map:he,markPoint:Ee,parallel:ie,pie:se,radar:le,sankey:de,scatter:ce,textStyle:oe,timeAxis:we,timeline:Ae,title:te,toolbox:Ce,tooltip:_e,valueAxis:ye,visualMap:$e},Symbol.toStringTag,{value:"Module"})),io=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Ve,"/src/app-config/echart-themes/macarons/macarons.json":qe}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((l,r)=>{var s;const a=(s=r.match(t))==null?void 0:s[1];if(a)return l.push({name:a,theme:e[r].default}),l;throw new Error(`[RChart Theme Error]: name ${r} is invalid!`)},[])},fo=e=>{const{getAppTheme:t}=We(),{theme:o}=t();return Object.assign({},e,{text:"loading",color:"#c23531",textColor:o?"#fff":"#000",maskColor:o?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.8)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"})},bo=()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]}),uo=(e,t)=>{var a;const{domToImageOptions:o,printOptions:l}=t??{},{create:r}=Le(e,{...o,beforeCreate:s=>{var c,n;(c=o==null?void 0:o.beforeCreate)==null||c.call(o,s),(n=window.$loadingBar)==null||n.start()},created(s,c){var n,f;(n=o==null?void 0:o.created)==null||n.call(o,s,c),(f=window.$loadingBar)==null||f.finish()},createdError(s){var c,n;(c=o==null?void 0:o.createdError)==null||c.call(o,s),(n=window.$loadingBar)==null||n.error()}});(a=r("jpeg"))==null||a.then(s=>{const{print:c}=ve(s,{type:"image",base64:!0,targetStyles:["*"],...je(l,["type","base64"])});c()})},Ke=".n-menu-item-content--selected",Ze="n-menu-item",mo=()=>{const e=b(Ie),t=e==null?void 0:e.querySelector(Ke),o=b(Fe);let l=0;const r=e==null?void 0:e.querySelector(Ze);if(o){const{height:a}=o.getBoundingClientRect();l=a}if(t&&e){const a=Pe(),{top:s}=e.getBoundingClientRect(),{top:c}=t.getBoundingClientRect(),n=e.scrollTop,f=r?parseInt(window.getComputedStyle(r).marginTop):6;a({top:c-s+n-l-f,left:0,behavior:"smooth"})}};var m=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(m||{});const Ge={BASE_URL:"/ray-template/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",VITE_APP_URL:"/"},ho=()=>Ge,po=(e,t)=>{const o=document.createElement("a");o.href=e,o.download=t,o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)},S=(e,t)=>Object.prototype.toString.call(e).includes(t),So=(e=16,t=62)=>{const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),l=[],r=window.crypto||window.msCrypto;let a=0;for(a=0;a{const e=navigator.userAgent;return/windows/i.test(e)?m.Windows:/macintosh|mac os x/i.test(e)?m.MacOS:/linux/i.test(e)?m.Linux:/android/i.test(e)?m.Android:/iphone|ipad|ipod/i.test(e)?m.IOS:m.Unknown},go=(e,t)=>{const o=e.split("?").filter(Boolean)[0],l=t.split("?").filter(Boolean)[0],r=/\/$/;return o.replace(r,"")===l.replace(r,"")};function wo(e,t="sessionStorage",o){const{prefix:l,prefixKey:r}=o??{},a=l?r||y:"",s=t==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(s).find(c=>c===a+e)}function Co(e,t,o="sessionStorage",l){if(!e){console.error(`[setStorage]: Failed to set stored data: key ${e} is empty`);return}const{prefix:r,prefixKey:a}=l??{},s=r?a||y:"";try{const c=JSON.stringify(t);o==="localStorage"?window.localStorage.setItem(s+e,c):window.sessionStorage.setItem(s+e,c)}catch(c){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,c)}}function xo(e,t="sessionStorage",o){const{prefix:l,prefixKey:r,defaultValue:a}=o??{},s=l?r||y:"";try{const c=t==="localStorage"?window.localStorage.getItem(s+e):window.sessionStorage.getItem(s+e);return c===null?a??null:JSON.parse(c)}catch(c){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,c),a??null}}const _o=(e,t,o)=>{if(!e){console.error(`[removeStorage]: Failed to remove stored data: key ${e} is empty or undefined`);return}const{prefix:l,prefixKey:r}=o??{},a=l?r||y:"",s=Object.keys(window.localStorage),c=Object.keys(window.sessionStorage),n=(f,h)=>{(f?[...c,...s]:h==="localStorage"?s:c).forEach(u=>{e==="__all__"?(window.sessionStorage.removeItem(a+u),window.localStorage.removeItem(a+u)):h==="localStorage"?window.localStorage.removeItem(a+u):window.sessionStorage.removeItem(a+u)})};switch(e){case"__all__":n(!0);break;case"__all_sessionStorage__":n(!1,"sessionStorage");break;case"__all_localStorage__":n(!1,"localStorage");break;default:t==="localStorage"?window.localStorage.removeItem(a+e):window.sessionStorage.removeItem(a+e);break}},Ao=(e,t)=>{const l=g(()=>b(e),()=>{const r=b(e);r&&(typeof t=="string"?t.trim().split(" "):t).forEach(s=>{s&&r.classList.add(s)})},{immediate:!0});p(l)},$o=(e,t)=>{const l=g(()=>b(e),()=>{const r=b(e);if(r)if(t==="removeAllClass"){const a=r.classList;a.forEach(s=>a.remove(s))}else(typeof t=="string"?t.trim().split(" "):t).forEach(s=>{s&&r.classList.remove(s)})},{immediate:!0});p(l)},ko=(e,t)=>{const o=Be(!1),r=g(()=>b(e),()=>{const a=b(e);if(!a)o.value=!1;else{const s=a.className,c=t.trim().split(" ").filter(n=>n!=="");o.value=c.some(n=>s.includes(n))}},{immediate:!0});return p(r),o},Xe=e=>{const t=["webkit","moz","ms","o"],o={};return t.forEach(l=>{o[`${l}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),o[e]=e,o},Eo=(e,t)=>{const o=(a,s)=>{a.split(";").forEach(c=>{const[n,f]=c.split(":");if(n&&f){const h=n.trim(),C=f.trim();if(n.startsWith("--"))s.style.setProperty(h,C);else if(n.startsWith("-"))s.style[n]=f;else{const u=Xe(h);Object.keys(u).forEach(x=>{s.style[x]=u[x]}),s.style[h]=C}}})},r=g(()=>b(e),()=>{const a=b(e);a&&(S(t,"String")?o(t,a):S(t,"Array")?t.forEach(s=>{o(s,a)}):Object.keys(t).forEach(c=>{o(`${c}: ${t[c]}`,a)}))},{immediate:!0});p(r)},Wo=(e,t=1)=>{if(e.includes("rgba"))return e;if(e.includes("rgb"))return e.replace("rgb","rgba").replace(")",`, ${t})`);if(e.includes("#")){const o=e.replace("#","");switch(o.length){case 3:return`rgba(${parseInt(o[0]+o[0],16)}, ${parseInt(o[1]+o[1],16)}, ${parseInt(o[2]+o[2],16)}, ${t})`;case 6:return`rgba(${parseInt(o.slice(0,2),16)}, ${parseInt(o.slice(2,4),16)}, ${parseInt(o.slice(4,6),16)}, ${t})`;case 8:return`rgba(${parseInt(o.slice(0,2),16)}, ${parseInt(o.slice(2,4),16)}, ${parseInt(o.slice(4,6),16)}, ${(parseInt(o.slice(6,8),16)/255).toFixed(2)})`;default:return e}}return e},Lo=(e,t)=>{const{defaultElement:o}={};if(!e)return o?[o]:null;const l=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const r=Array.from(document.querySelectorAll(l));return!r.length&&o?[o]:r}catch(r){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,r),o?[o]:null}},vo=(e,t="px")=>e==="auto"?e:typeof e=="number"?e.toString()+t:S(e,"String")&&Re.cssUnit.test(e)?e:e+t,d={precision:8,decimal:"."},w=(e,t,o)=>e!=null&&e.length?e.length===1?i(e[0],d):e.reduce((r,a,s,c)=>(r=o==null?void 0:o(r,a,s,c),r),t):0,Ye=(e,t)=>{const o=Object.assign({},d,t),l=i(e,o),{type:r="number"}=o;return r==="number"?l.value:l.toString()},Po=(...e)=>e.length===1?i(e[0],d).add(0):w(e,0,(t,o)=>i(t,d).add(o)),Io=(...e)=>{if(e.length===1)return i(e[0],d).subtract(0);if(e.length===2){const[l,r]=e;return i(l,d).subtract(r)}const t=_(e),o=t.shift();return t.length?w(t,o,(l,r)=>i(l,d).subtract(r)):o},Fo=(...e)=>e.length===1?i(e[0],d).multiply(1):w(e,1,(t,o)=>i(t,d).multiply(o)),Ro=(...e)=>{if(e.length===1)return i(e[0],d).divide(1);if(e.length===2){const[l,r]=e;return i(l,d).divide(r)}const t=_(e),o=t.shift();return w(t,o,(l,r)=>i(l,d).divide(r))},jo=(e,t,o)=>{if(t<=1)return[e||0];if(!e)return new Array(t).fill(0);const l=Object.assign({},d,o);return i(e,l).distribute(t).map(a=>Ye(a,l))};function He(e,...t){if(Array.isArray(e))e.forEach(o=>He(o,...t));else return e(...t)}function b(e,t){var l;if(!e)return t;let o;return typeof e=="function"?o=e():Te(e)?o=((l=e.value)==null?void 0:l.$el)??e.value:o=e,o}function Bo(e,t){if(!e){const{defaultElement:o=null}=t??{};return typeof o=="function"?o:()=>o}if(typeof e=="string"||S(e,"Object"))return()=>e;if(typeof e=="function")return e}function p(e){return Me()?(De(e),!0):!1}function To(e,t){const o=Oe(e,t);p(o)}export{wo as A,Ye as B,jo as C,Po as D,Io as E,Fo as F,Ro as G,ho as a,bo as b,Wo as c,io as d,vo as e,He as f,xo as g,po as h,S as i,Eo as j,Ao as k,fo as l,p as m,go as n,_o as o,uo as p,Lo as q,Bo as r,Co as s,mo as t,So as u,$o as v,yo as w,ko as x,To as y,b as z}; diff --git a/js/utils-CozJMALc.js.gz b/js/utils-CozJMALc.js.gz new file mode 100644 index 00000000..f9775ead Binary files /dev/null and b/js/utils-CozJMALc.js.gz differ diff --git a/js/utils-DvxnuKiq.js b/js/utils-DvxnuKiq.js deleted file mode 100644 index af69a569..00000000 --- a/js/utils-DvxnuKiq.js +++ /dev/null @@ -1 +0,0 @@ -import{u as Ee,a as We,b as Le,c as ve,L as Pe,S as Ie,A as y,d as Fe}from"./hooks-DUpKDX8W.js";import{c as i}from"./currency.js@2.0.4-9OAR_aOO.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{o as Re,c as x}from"./lodash-es@4.17.21-BALnwRTu.js";const _=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2","#9b8bba","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc","#7EC4FF","#5FCBB0","#49C4BF","#F0C9CA","#34DC90","#3295E0","#EAB62E","#76C3F3","#2DC2C0","#FCC43F","#84CFFF"],A="transparent",$={},k={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},E={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},W={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},L={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},v={itemStyle:{borderWidth:0,borderColor:"#ccc"}},P={itemStyle:{borderWidth:0,borderColor:"#ccc"}},I={itemStyle:{borderWidth:0,borderColor:"#ccc"}},F={itemStyle:{borderWidth:0,borderColor:"#ccc"}},R={itemStyle:{borderWidth:0,borderColor:"#ccc"}},j={itemStyle:{borderWidth:0,borderColor:"#ccc"}},B={itemStyle:{borderWidth:0,borderColor:"#ccc"}},T={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},M={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},V={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},D={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},O={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},U={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},z={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},q={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},K={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},Z={textStyle:{color:"#999999"},pageTextStyle:{color:"#999999"}},G={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},X={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},Y={color:["#fc97af","#87f7cf"]},H={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},J={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},je={color:_,backgroundColor:A,textStyle:$,title:k,line:E,radar:W,bar:L,pie:v,scatter:P,boxplot:I,parallel:F,sankey:R,funnel:j,gauge:B,candlestick:T,graph:M,map:V,geo:D,categoryAxis:O,valueAxis:U,logAxis:z,timeAxis:q,toolbox:K,legend:Z,tooltip:G,timeline:X,visualMap:Y,dataZoom:H,markPoint:J},Be=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:A,bar:L,boxplot:I,candlestick:T,categoryAxis:O,color:_,dataZoom:H,default:je,funnel:j,gauge:B,geo:D,graph:M,legend:Z,line:E,logAxis:z,map:V,markPoint:J,parallel:F,pie:v,radar:W,sankey:R,scatter:P,textStyle:$,timeAxis:q,timeline:X,title:k,toolbox:K,tooltip:G,valueAxis:U,visualMap:Y},Symbol.toStringTag,{value:"Module"})),N=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089","#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],Q="transparent",ee={},oe={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},te={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},re={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},le={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},ae={itemStyle:{borderWidth:0,borderColor:"#ccc"}},se={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ce={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ne={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ie={itemStyle:{borderWidth:0,borderColor:"#ccc"}},de={itemStyle:{borderWidth:0,borderColor:"#ccc"}},fe={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ue={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},be={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},he={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},me={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},pe={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Se={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ye={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ge={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},we={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},Ce={textStyle:{color:"#333333"}},xe={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},_e={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},Ae={color:["#5ab1ef","#e0ffff"]},$e={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},ke={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Te={color:N,backgroundColor:Q,textStyle:ee,title:oe,line:te,radar:re,bar:le,pie:ae,scatter:se,boxplot:ce,parallel:ne,sankey:ie,funnel:de,gauge:fe,candlestick:ue,graph:be,map:he,geo:me,categoryAxis:pe,valueAxis:Se,logAxis:ye,timeAxis:ge,toolbox:we,legend:Ce,tooltip:xe,timeline:_e,visualMap:Ae,dataZoom:$e,markPoint:ke},Me=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:Q,bar:le,boxplot:ce,candlestick:ue,categoryAxis:pe,color:N,dataZoom:$e,default:Te,funnel:de,gauge:fe,geo:me,graph:be,legend:Ce,line:te,logAxis:ye,map:he,markPoint:ke,parallel:ne,pie:ae,radar:re,sankey:ie,scatter:se,textStyle:ee,timeAxis:ge,timeline:_e,title:oe,toolbox:we,tooltip:xe,valueAxis:Se,visualMap:Ae},Symbol.toStringTag,{value:"Module"})),Qe=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Be,"/src/app-config/echart-themes/macarons/macarons.json":Me}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((l,r)=>{var s;const a=(s=r.match(t))==null?void 0:s[1];if(a)return l.push({name:a,theme:e[r].default}),l;throw new Error(`[RChart Theme Error]: name ${r} is invalid!`)},[])},eo=e=>{const{getAppTheme:t}=Ee(),{theme:o}=t();return Object.assign({},e,{text:"loading",color:"#c23531",textColor:o?"#fff":"#000",maskColor:o?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.8)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"})},oo=()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]}),to=(e,t)=>{var a;const{domToImageOptions:o,printOptions:l}=t??{},{create:r}=We(e,{...o,beforeCreate:s=>{var c,n;(c=o==null?void 0:o.beforeCreate)==null||c.call(o,s),(n=window.$loadingBar)==null||n.start()},created(s,c){var n,f;(n=o==null?void 0:o.created)==null||n.call(o,s,c),(f=window.$loadingBar)==null||f.finish()},createdError(s){var c,n;(c=o==null?void 0:o.createdError)==null||c.call(o,s),(n=window.$loadingBar)==null||n.error()}});(a=r("jpeg"))==null||a.then(s=>{const{print:c}=Le(s,{type:"image",base64:!0,targetStyles:["*"],...Re(l,["type","base64"])});c()})},Ve=".n-menu-item-content--selected",De="n-menu-item",ro=()=>{const e=u(Pe),t=e==null?void 0:e.querySelector(Ve),o=u(Ie);let l=0;const r=e==null?void 0:e.querySelector(De);if(o){const{height:a}=o.getBoundingClientRect();l=a}if(t&&e){const a=ve(),{top:s}=e.getBoundingClientRect(),{top:c}=t.getBoundingClientRect(),n=e.scrollTop,f=r?parseInt(window.getComputedStyle(r).marginTop):6;a({top:c-s+n-l-f,left:0,behavior:"smooth"})}};var h=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(h||{});const Oe={BASE_URL:"/ray-template/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",VITE_APP_URL:"/"},lo=()=>Oe,ao=(e,t)=>{const o=document.createElement("a");o.href=e,o.download=t,o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)},S=(e,t)=>Object.prototype.toString.call(e).includes(t),so=(e=16,t=62)=>{const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),l=[],r=window.crypto||window.msCrypto;let a=0;for(a=0;a{const e=navigator.userAgent;return/windows/i.test(e)?h.Windows:/macintosh|mac os x/i.test(e)?h.MacOS:/linux/i.test(e)?h.Linux:/android/i.test(e)?h.Android:/iphone|ipad|ipod/i.test(e)?h.IOS:h.Unknown},no=(e,t)=>{const o=e.split("?").filter(Boolean)[0],l=t.split("?").filter(Boolean)[0],r=/\/$/;return o.replace(r,"")===l.replace(r,"")};function io(e,t="sessionStorage",o){const{prefix:l,prefixKey:r}=o??{},a=l?r||y:"",s=t==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(s).find(c=>c===a+e)}function fo(e,t,o="sessionStorage",l){if(!e){console.error(`[setStorage]: Failed to set stored data: key ${e} is empty`);return}const{prefix:r,prefixKey:a}=l??{},s=r?a||y:"";try{const c=JSON.stringify(t);o==="localStorage"?window.localStorage.setItem(s+e,c):window.sessionStorage.setItem(s+e,c)}catch(c){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,c)}}function uo(e,t="sessionStorage",o){const{prefix:l,prefixKey:r,defaultValue:a}=o??{},s=l?r||y:"";try{const c=t==="localStorage"?window.localStorage.getItem(s+e):window.sessionStorage.getItem(s+e);return c===null?a??null:JSON.parse(c)}catch(c){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,c),a??null}}const bo=(e,t,o)=>{if(!e){console.error(`[removeStorage]: Failed to remove stored data: key ${e} is empty or undefined`);return}const{prefix:l,prefixKey:r}=o??{},a=l?r||y:"",s=Object.keys(window.localStorage),c=Object.keys(window.sessionStorage),n=(f,m)=>{(f?[...c,...s]:m==="localStorage"?s:c).forEach(b=>{e==="__all__"?(window.sessionStorage.removeItem(a+b),window.localStorage.removeItem(a+b)):m==="localStorage"?window.localStorage.removeItem(a+b):window.sessionStorage.removeItem(a+b)})};switch(e){case"__all__":n(!0);break;case"__all_sessionStorage__":n(!1,"sessionStorage");break;case"__all_localStorage__":n(!1,"localStorage");break;default:t==="localStorage"?window.localStorage.removeItem(a+e):window.sessionStorage.removeItem(a+e);break}},ho=(e,t)=>{const o=()=>{const r=u(e);r&&(typeof t=="string"?t.trim().split(" "):t).forEach(s=>{s&&r.classList.add(s)})},l=Vue.watch(()=>u(e),o,{immediate:!0});p(l)},mo=(e,t)=>{const o=()=>{const r=u(e);if(r)if(t==="removeAllClass"){const a=r.classList;a.forEach(s=>a.remove(s))}else(typeof t=="string"?t.trim().split(" "):t).forEach(s=>{s&&r.classList.remove(s)})},l=Vue.watch(()=>u(e),o,{immediate:!0});p(l)},po=(e,t)=>{const o=Vue.ref(!1),l=()=>{const a=u(e);if(!a)o.value=!1;else{const s=a.className,c=t.trim().split(" ").filter(n=>n!=="");o.value=c.some(n=>s.includes(n))}},r=Vue.watch(()=>u(e),l,{immediate:!0});return p(r),o},Ue=e=>{const t=["webkit","moz","ms","o"],o={};return t.forEach(l=>{o[`${l}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),o[e]=e,o},So=(e,t)=>{const o=(a,s)=>{a.split(";").forEach(c=>{const[n,f]=c.split(":");if(n&&f){const m=n.trim(),w=f.trim();if(n.startsWith("--"))s.style.setProperty(m,w);else if(n.startsWith("-"))s.style[n]=f;else{const b=Ue(m);Object.keys(b).forEach(C=>{s.style[C]=b[C]}),s.style[m]=w}}})},l=()=>{const a=u(e);a&&(S(t,"String")?o(t,a):S(t,"Array")?t.forEach(s=>{o(s,a)}):Object.keys(t).forEach(c=>{o(`${c}: ${t[c]}`,a)}))},r=Vue.watch(()=>u(e),l,{immediate:!0});p(r)},yo=(e,t=1)=>{if(e.includes("rgba"))return e;if(e.includes("rgb"))return e.replace("rgb","rgba").replace(")",`, ${t})`);if(e.includes("#")){const o=e.replace("#","");switch(o.length){case 3:return`rgba(${parseInt(o[0]+o[0],16)}, ${parseInt(o[1]+o[1],16)}, ${parseInt(o[2]+o[2],16)}, ${t})`;case 6:return`rgba(${parseInt(o.slice(0,2),16)}, ${parseInt(o.slice(2,4),16)}, ${parseInt(o.slice(4,6),16)}, ${t})`;case 8:return`rgba(${parseInt(o.slice(0,2),16)}, ${parseInt(o.slice(2,4),16)}, ${parseInt(o.slice(4,6),16)}, ${(parseInt(o.slice(6,8),16)/255).toFixed(2)})`;default:return e}}return e},go=(e,t)=>{const{defaultElement:o}={};if(!e)return o?[o]:null;const l=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const r=Array.from(document.querySelectorAll(l));return!r.length&&o?[o]:r}catch(r){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,r),o?[o]:null}},wo=(e,t="px")=>e==="auto"?e:typeof e=="number"?e.toString()+t:S(e,"String")&&Fe.cssUnit.test(e)?e:e+t,d={precision:8,decimal:"."},g=(e,t,o)=>e!=null&&e.length?e.length===1?i(e[0],d):e.reduce((r,a,s,c)=>(r=o==null?void 0:o(r,a,s,c),r),t):0,ze=(e,t)=>{const o=Object.assign({},d,t),l=i(e,o),{type:r="number"}=o;return r==="number"?l.value:l.toString()},Co=(...e)=>e.length===1?i(e[0],d).add(0):g(e,0,(t,o)=>i(t,d).add(o)),xo=(...e)=>{if(e.length===1)return i(e[0],d).subtract(0);if(e.length===2){const[l,r]=e;return i(l,d).subtract(r)}const t=x(e),o=t.shift();return t.length?g(t,o,(l,r)=>i(l,d).subtract(r)):o},_o=(...e)=>e.length===1?i(e[0],d).multiply(1):g(e,1,(t,o)=>i(t,d).multiply(o)),Ao=(...e)=>{if(e.length===1)return i(e[0],d).divide(1);if(e.length===2){const[l,r]=e;return i(l,d).divide(r)}const t=x(e),o=t.shift();return g(t,o,(l,r)=>i(l,d).divide(r))},$o=(e,t,o)=>{if(t<=1)return[e||0];if(!e)return new Array(t).fill(0);const l=Object.assign({},d,o);return i(e,l).distribute(t).map(a=>ze(a,l))};function qe(e,...t){if(Array.isArray(e))e.forEach(o=>qe(o,...t));else return e(...t)}function u(e,t){var l;if(!e)return t;let o;return typeof e=="function"?o=e():Vue.isRef(e)?o=((l=e.value)==null?void 0:l.$el)??e.value:o=e,o}function ko(e,t){if(!e){const{defaultElement:o=null}=t??{};return typeof o=="function"?o:()=>o}if(typeof e=="string"||S(e,"Object"))return()=>e;if(typeof e=="function")return e}function p(e){return Vue.getCurrentScope()?(Vue.onScopeDispose(e),!0):!1}function Eo(e,t){const o=Vue.watchEffect(e,t);p(o)}export{io as A,ze as B,$o as C,Co as D,xo as E,_o as F,Ao as G,lo as a,oo as b,yo as c,Qe as d,wo as e,qe as f,uo as g,ao as h,S as i,So as j,ho as k,eo as l,p as m,no as n,bo as o,to as p,go as q,ko as r,fo as s,ro as t,so as u,mo as v,co as w,po as x,Eo as y,u as z}; diff --git a/js/utils-DvxnuKiq.js.gz b/js/utils-DvxnuKiq.js.gz deleted file mode 100644 index 5cae0c62..00000000 Binary files a/js/utils-DvxnuKiq.js.gz and /dev/null differ diff --git a/js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js b/js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js new file mode 100644 index 00000000..9049a30c --- /dev/null +++ b/js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js @@ -0,0 +1 @@ +import{o as c,a}from"./evtd@0.2.4-CI_DDEu_.js";const i="@@mmoContext",I={mounted(n,{value:e}){n[i]={handler:void 0},typeof e=="function"&&(n[i].handler=e,c("mousemoveoutside",n,e))},updated(n,{value:e}){const t=n[i];typeof e=="function"?t.handler?t.handler!==e&&(a("mousemoveoutside",n,t.handler),t.handler=e,c("mousemoveoutside",n,e)):(n[i].handler=e,c("mousemoveoutside",n,e)):t.handler&&(a("mousemoveoutside",n,t.handler),t.handler=void 0)},unmounted(n){const{handler:e}=n[i];e&&a("mousemoveoutside",n,e),n[i].handler=void 0}},o="@@coContext",l={mounted(n,{value:e,modifiers:t}){n[o]={handler:void 0},typeof e=="function"&&(n[o].handler=e,c("clickoutside",n,e,{capture:t.capture}))},updated(n,{value:e,modifiers:t}){const d=n[o];typeof e=="function"?d.handler?d.handler!==e&&(a("clickoutside",n,d.handler,{capture:t.capture}),d.handler=e,c("clickoutside",n,e,{capture:t.capture})):(n[o].handler=e,c("clickoutside",n,e,{capture:t.capture})):d.handler&&(a("clickoutside",n,d.handler,{capture:t.capture}),d.handler=void 0)},unmounted(n,{modifiers:e}){const{handler:t}=n[o];t&&a("clickoutside",n,t,{capture:e.capture}),n[o].handler=void 0}};function x(n,e){console.error(`[vdirs/${n}]: ${e}`)}class f{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){const{elementZIndex:d}=this;if(t!==void 0){e.style.zIndex=`${t}`,d.delete(e);return}const{nextZIndex:s}=this;d.has(e)&&d.get(e)+1===this.nextZIndex||(e.style.zIndex=`${s}`,d.set(e,s),this.nextZIndex=s+1,this.squashState())}unregister(e,t){const{elementZIndex:d}=this;d.has(e)?d.delete(e):t===void 0&&x("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){const e=Array.from(this.elementZIndex.entries());e.sort((t,d)=>t[1]-d[1]),this.nextZIndex=2e3,e.forEach(t=>{const d=t[0],s=this.nextZIndex++;`${s}`!==d.style.zIndex&&(d.style.zIndex=`${s}`)})}}const u=new f,r="@@ziContext",p={mounted(n,e){const{value:t={}}=e,{zIndex:d,enabled:s}=t;n[r]={enabled:!!s,initialized:!1},s&&(u.ensureZIndex(n,d),n[r].initialized=!0)},updated(n,e){const{value:t={}}=e,{zIndex:d,enabled:s}=t,h=n[r].enabled;s&&!h&&(u.ensureZIndex(n,d),n[r].initialized=!0),n[r].enabled=!!s},unmounted(n,e){if(!n[r].initialized)return;const{value:t={}}=e,{zIndex:d}=t;u.unregister(n,d)}};export{l as c,I as m,p as z}; diff --git a/js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js.gz b/js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js.gz new file mode 100644 index 00000000..465673bc Binary files /dev/null and b/js/vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js.gz differ diff --git a/js/vooks@0.2.12_vue@3.5.12-fnTfirhD.js b/js/vooks@0.2.12_vue@3.5.12-fnTfirhD.js new file mode 100644 index 00000000..b74bbda1 --- /dev/null +++ b/js/vooks@0.2.12_vue@3.5.12-fnTfirhD.js @@ -0,0 +1 @@ +import{k as c,l as d,e as L}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{w as C,j as v,d as S,k as H,q as b,p as T}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{o as m,a as p}from"./evtd@0.2.4-CI_DDEu_.js";function K(e){const t=c(!!e.value);if(t.value)return d(t);const n=C(e,o=>{o&&(t.value=!0,n())});return d(t)}function Q(e){const t=v(e),n=c(t.value);return C(t,o=>{n.value=o}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(o){e.set(o)}}}function B(){return S()!==null}const E=typeof window<"u";let k,y;const D=()=>{var e,t;k=E?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,y=!1,k!==void 0?k.then(()=>{y=!0}):y=!0};D();function z(e){if(y)return;let t=!1;H(()=>{y||k==null||k.then(()=>{t||e()})}),b(()=>{t=!0})}const h=c(null);function I(e){if(e.clientX>0||e.clientY>0)h.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:o,width:u,height:a}=t.getBoundingClientRect();n>0||o>0?h.value={x:n+u/2,y:o+a/2}:h.value={x:0,y:0}}else h.value=null}}let g=0,_=!0;function A(){if(!E)return d(c(null));g===0&&m("click",document,I,!0);const e=()=>{g+=1};return _&&(_=B())?(T(e),b(()=>{g-=1,g===0&&p("click",document,I,!0)})):e(),d(h)}const F=c(void 0);let M=0;function j(){F.value=Date.now()}let q=!0;function G(e){if(!E)return d(c(!1));const t=c(!1);let n=null;function o(){n!==null&&window.clearTimeout(n)}function u(){o(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}M===0&&m("click",window,j,!0);const a=()=>{M+=1,m("click",window,u,!0)};return q&&(q=B())?(T(a),b(()=>{M-=1,M===0&&p("click",window,j,!0),p("click",window,u,!0),o()})):a(),d(t)}function J(e,t){return C(e,n=>{n!==void 0&&(t.value=n)}),v(()=>e.value===void 0?t.value:e.value)}function O(){const e=c(!1);return H(()=>{e.value=!0}),d(e)}function W(e,t){return v(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const R=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Z(){return R}const $={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function U(e){return`(min-width: ${e}px)`}const w={};function N(e=$){if(!E)return v(()=>[]);if(typeof window.matchMedia!="function")return v(()=>[]);const t=c({}),n=Object.keys(e),o=(u,a)=>{u.matches?t.value[a]=!0:t.value[a]=!1};return n.forEach(u=>{const a=e[u];let s,r;w[a]===void 0?(s=window.matchMedia(U(a)),s.addEventListener?s.addEventListener("change",i=>{r.forEach(f=>{f(i,u)})}):s.addListener&&s.addListener(i=>{r.forEach(f=>{f(i,u)})}),r=new Set,w[a]={mql:s,cbs:r}):(s=w[a].mql,r=w[a].cbs),r.add(o),s.matches&&r.forEach(i=>{i(s,u)})}),b(()=>{n.forEach(u=>{const{cbs:a}=w[e[u]];a.has(o)&&a.delete(o)})}),v(()=>{const{value:u}=t;return n.filter(a=>u[a])})}function ee(e={},t){const n=L({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:u}=e,a=i=>{switch(i.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}o!==void 0&&Object.keys(o).forEach(f=>{if(f!==i.key)return;const l=o[f];if(typeof l=="function")l(i);else{const{stop:x=!1,prevent:P=!1}=l;x&&i.stopPropagation(),P&&i.preventDefault(),l.handler(i)}})},s=i=>{switch(i.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}u!==void 0&&Object.keys(u).forEach(f=>{if(f!==i.key)return;const l=u[f];if(typeof l=="function")l(i);else{const{stop:x=!1,prevent:P=!1}=l;x&&i.stopPropagation(),P&&i.preventDefault(),l.handler(i)}})},r=()=>{(t===void 0||t.value)&&(m("keydown",document,a),m("keyup",document,s)),t!==void 0&&C(t,i=>{i?(m("keydown",document,a),m("keyup",document,s)):(p("keydown",document,a),p("keyup",document,s))})};return B()?(T(r),b(()=>{(t===void 0||t.value)&&(p("keydown",document,a),p("keyup",document,s))})):r(),d(n)}export{Z as a,J as b,W as c,ee as d,G as e,A as f,N as g,K as h,O as i,z as o,Q as u}; diff --git a/js/vooks@0.2.12_vue@3.5.12-fnTfirhD.js.gz b/js/vooks@0.2.12_vue@3.5.12-fnTfirhD.js.gz new file mode 100644 index 00000000..7a12d78b Binary files /dev/null and b/js/vooks@0.2.12_vue@3.5.12-fnTfirhD.js.gz differ diff --git a/js/vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js b/js/vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js new file mode 100644 index 00000000..5b98a072 --- /dev/null +++ b/js/vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js @@ -0,0 +1 @@ +var a=!1;export{a as i}; diff --git a/js/vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js b/js/vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js new file mode 100644 index 00000000..d13c4790 --- /dev/null +++ b/js/vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js @@ -0,0 +1 @@ +import{u as h,k as b,o as B,e as X,a as Y,v as Z,l as K}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{f as P,w as V,j as q,i as k,Q as ee}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{d as te,t as ne,c as j}from"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import{s as g}from"./screenfull@5.2.0-DmMZCkhi.js";const z=(n,{manual:e,ready:t=!0,refreshDeps:s=[],refreshDepsAction:i})=>{const o=b(!1);return P(()=>{!e&&n.options.refreshDeps!==!0&&(o.value=h(t))}),s instanceof Array?V([o,...s],([r])=>{r&&!e&&r&&(i?i():n.refresh())},{deep:!0,immediate:!1}):V(o,r=>{!e&&r&&(i?i():n.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!h(t))return{stopNow:!0}}}};z.onInit=({ready:n=!0,manual:e})=>({loading:!e&&h(n)});const T=new Map,se=(n,e,t)=>{const s=T.get(n);s!=null&&s.timer&&clearTimeout(s.timer);let i;e>-1&&(i=setTimeout(()=>{T.delete(n)},e)),T.set(n,{...t,timer:i})},ie=n=>T.get(n),F=new Map,re=n=>F.get(n),oe=(n,e)=>{F.set(n,e),e.then(t=>(F.delete(n),t)).catch(t=>{throw F.delete(n),t})},S={},le=[],ae=(n,e)=>{S[n]&&(S[n].forEach(t=>t(e)),le.forEach(t=>t({type:n,data:e})))},C=(n,e)=>(S[n]||(S[n]=[]),S[n].push(e),function(){const s=S[n].indexOf(e);S[n].splice(s,1)}),ue=(n,{cacheKey:e,cacheTime:t=5*60*1e3,staleTime:s=0,setCache:i,getCache:o})=>{const r=b(),u=b(),c=(l,f)=>{i?i(f):se(l,t,f),ae(l,f.data)},d=(l,f=[])=>o?o(f):ie(l);return P(()=>{if(!e)return;const l=d(e);l&&Object.hasOwnProperty.call(l,"data")&&(n.state.data=l.data,n.state.params=l.params,(s===-1||new Date().getTime()-l.time<=s)&&(n.state.loading=!1)),r.value=C(e,f=>{n.setState({data:f})})}),B(()=>{var l;(l=r.value)==null||l.call(r)}),e?{name:"cachePlugin",onBefore:l=>{const f=d(e,l);return!f||!Object.hasOwnProperty.call(f,"data")?{}:s===-1||new Date().getTime()-f.time<=s?{loading:!1,data:f==null?void 0:f.data,returnNow:!0}:{data:f==null?void 0:f.data}},onRequest:(l,f)=>{let v=re(e);return v&&v!==u.value?{servicePromise:v}:(v=l(...f),u.value=v,oe(e,v),{servicePromise:v})},onSuccess:(l,f)=>{var v;e&&((v=r.value)==null||v.call(r),c(e,{data:l,params:f,time:new Date().getTime()}),r.value=C(e,a=>{n.setState({data:a})}))},onMutate:l=>{var f;e&&((f=r.value)==null||f.call(r),c(e,{data:l,params:n.state.params,time:new Date().getTime()}),r.value=C(e,v=>{n.setState({data:v})}))}}:{}},ce=(n,{debounceWait:e,debounceLeading:t,debounceTrailing:s,debounceMaxWait:i})=>{const o=b(),r=q(()=>{const u={},c=h(t),d=h(s),l=h(i);return c!==void 0&&(u.leading=c),d!==void 0&&(u.trailing=d),l!==void 0&&(u.maxWait=l),u});return P(u=>{if(h(e)){const c=n.runAsync.bind(n);o.value=te(d=>{d()},h(e),r.value),n.runAsync=(...d)=>new Promise((l,f)=>{var v;(v=o.value)==null||v.call(o,()=>{c(...d).then(l).catch(f)})}),u(()=>{var d;(d=o.value)==null||d.cancel(),n.runAsync=c})}}),h(e)?{name:"debouncePlugin",onCancel:()=>{var u;(u=o.value)==null||u.cancel()}}:{}};var fe=Object.defineProperty,de=(n,e,t)=>e in n?fe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,I=(n,e,t)=>(de(n,typeof e!="symbol"?e+"":e,t),t);class he{constructor(){I(this,"table",{}),I(this,"hashTable",{})}insert(e){const t=Symbol(e);return this.table[e]=!0,this.hashTable[t]=e,t}find(e){return this.hashTable[e]}}new he;var ve=Object.defineProperty,me=(n,e,t)=>e in n?ve(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Q=(n,e,t)=>(me(n,typeof e!="symbol"?e+"":e,t),t);class pe{constructor(){Q(this,"requestInstances",new Map),Q(this,"listeners",[])}emit(e){this.listeners.forEach(t=>t(e))}subscribe(e){return this.listeners.push(e),()=>{const t=this.listeners.indexOf(e);this.listeners.splice(t,1)}}insert(e,t){this.requestInstances.set(e,{...t}),this.emit({key:e,...t})}update(e,t){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...t})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const t=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,t)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}new pe;const be=(n,{loadingDelay:e})=>{const t=b(),s=()=>{t.value&&(clearTimeout(h(t.value)),t.value=void 0)};return{name:"loadingDelayPlugin",onFinally:()=>{s();const i=h(e);i&&(n.setState({loading:!0}),t.value=setTimeout(()=>{n.setState({loading:!1})},i))},onError:()=>{s()}}};function x(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const ge=!!(typeof window<"u"&&window.document&&window.document.createElement);function U(){return x()?document.visibilityState!=="hidden":!0}const O=[];function _e(n){return O.push(n),function(){const t=O.indexOf(n);O.splice(t,1)}}if(x()){const n=()=>{if(U())for(let e=0;e{let i;const o=b(),r=b(0),u=()=>{var c;i&&clearTimeout(i),(c=o.value)==null||c.call(o)};return P(()=>{h(e)||u()}),h(e)?{name:"pollingPlugin",onBefore:()=>{u()},onError:()=>{r.value+=1},onSuccess:()=>{r.value=0},onFinally:()=>{s===-1||s!==-1&&r.value<=s?i=setTimeout(()=>{!t&&!U()?o.value=_e(()=>{n.refresh()}):n.refresh()},h(e)):r.value=0},onCancel:()=>{u()}}:{}};function Pe(n,e){let t=!1;return(...s)=>{t||(t=!0,n(...s),setTimeout(()=>{t=!1},e))}}function Ee(){return x()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const D=[];function Re(n){return D.push(n),function(){const t=D.indexOf(n);t>-1&&D.splice(t,1)}}if(ge){const n=()=>{if(!(!U()||!Ee()))for(let e=0;e{const s=b(),i=()=>{var o;(o=s.value)==null||o.call(s)};return P(o=>{if(h(e)){const r=Pe(n.refresh.bind(n),h(t));s.value=Re(()=>{r()})}o(()=>{i()})}),B(()=>{i()}),{name:"refreshOnWindowFocusPlugin"}},Oe=(n,{retryInterval:e,retryCount:t})=>{const s=b(),i=b(0),o=b(!1);return t?{name:"retryPlugin",onBefore:()=>{o.value||(i.value=0),o.value=!1,s.value&&clearTimeout(s.value)},onSuccess:()=>{i.value=0},onError:()=>{if(i.value+=1,t===-1||i.value<=t){const r=e??Math.min(1e3*2**i.value,3e4);s.value=setTimeout(()=>{o.value=!0,n.refresh()},r)}else i.value=0},onCancel:()=>{i.value=0,s.value&&clearTimeout(s.value)}}:{}},De=(n,{throttleWait:e,throttleLeading:t,throttleTrailing:s})=>{const i=q(()=>{const r={};return h(t)!==void 0&&(r.leading=h(t)),h(s)!==void 0&&(r.trailing=h(s)),r}),o=q(()=>ne(r=>{r()},h(e),i.value));return P(r=>{if(h(e)){const u=n.runAsync.bind(n);n.runAsync=(...c)=>new Promise((d,l)=>{var f;(f=o.value)==null||f.call(o,()=>{u(...c).then(d).catch(l)})}),r(()=>{var c;n.runAsync=u,(c=o.value)==null||c.cancel()})}}),h(e)?{name:"throttlePlugin",onCancel:()=>{var r;(r=o.value)==null||r.cancel()}}:{}},G=n=>typeof n=="function",Ae=n=>typeof n=="boolean";var Te=Object.defineProperty,Fe=(n,e,t)=>e in n?Te(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,A=(n,e,t)=>(Fe(n,typeof e!="symbol"?e+"":e,t),t);class qe{constructor(e,t,s,i={}){A(this,"pluginImpls"),A(this,"count",0),A(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),A(this,"previousValidData"),this.serviceRef=e,this.options=t,this.setUpdateData=s,this.initState=i,this.state={...this.state,loading:!t.manual,...i}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,t){console.warn("Please use 'setFetchState' instead of 'setData'"),t instanceof Array?t.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[t]=e,this.setUpdateData(e,t))}setFetchState(e,t){t instanceof Array?t.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[t]=e,this.setUpdateData(e,t))}runPluginHandler(e,...t){var s,i,o;const r=(o=(i=(s=this.pluginImpls)==null?void 0:s.map(u=>{var c;return(c=u[e])==null?void 0:c.call(u,...t)}))!=null?i:[])==null?void 0:o.filter(Boolean);return Object.assign({},...r)}async runAsync(...e){var t,s,i,o,r,u,c,d,l,f,v;this.count+=1;const a=this.count,{stopNow:w=!1,returnNow:m=!1,..._}=this.runPluginHandler("onBefore",e);if(w)return new Promise(()=>{});if(this.setState({loading:!0,params:e,..._}),m)return Promise.resolve(_.data);try{(s=(t=this.options).onBefore)==null||s.call(t,e)}catch(p){return this.setState({error:p,loading:!1}),(o=(i=this.options).onError)==null||o.call(i,p,e),this.runPluginHandler("onError",p,e),new Promise(()=>{})}try{let{servicePromise:p}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const J=$=>{var L,H,N,M;if(a!==this.count)return new Promise(()=>{});const E=this.options.formatResult?this.options.formatResult($):$;return this.setState({data:E,error:void 0,loading:!1}),(H=(L=this.options).onSuccess)==null||H.call(L,E,e),this.runPluginHandler("onSuccess",E,e),this.previousValidData=E,(M=(N=this.options).onFinally)==null||M.call(N,e,E,void 0),a===this.count&&this.runPluginHandler("onFinally",e,E,void 0),E};p||(p=this.serviceRef.value(...e));const W=await p;return J(W)}catch(p){if(a!==this.count)return new Promise(()=>{});throw this.setState({error:p,loading:!1}),(u=(r=this.options).onError)==null||u.call(r,p,e),this.runPluginHandler("onError",p,e),(G((c=this.options)==null?void 0:c.rollbackOnError)&&((d=this.options)!=null&&d.rollbackOnError(e))||Ae((l=this.options)==null?void 0:l.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(v=(f=this.options).onFinally)==null||v.call(f,e,void 0,p),a===this.count&&this.runPluginHandler("onFinally",e,void 0,p),p}}run(...e){this.runAsync(...e).catch(t=>{this.options.onError||console.error(t)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){const t=G(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})}}const Ce=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function ye(n){return Object.keys(n).filter(t=>["data","loading","params","error"].includes(t)).length===4}function Be(n,e={},t=[]){const s=k(Ce,{}),{initialData:i=void 0,manual:o=!1,ready:r=!0,...u}={...s??{},...e??{}},c={manual:o,ready:r,initialData:i,...u},d=b(n),l=X({data:i,loading:!1,params:void 0,error:void 0}),f=(m,_)=>{_?l[_]=m:ye(m)&&(l.data=m.data,l.loading=m.loading,l.error=m.error,l.params=m.params)},v=t.map(m=>{var _;return(_=m==null?void 0:m.onInit)==null?void 0:_.call(m,c)}).filter(Boolean),a=new qe(d,c,f,Object.assign({},...v,l));a.options=c,a.pluginImpls=t.map(m=>m(a,c));const w=q(()=>Y(r)?r.value:r);if(P(()=>{if(!o){const m=a.state.params||e.defaultParams||[];w.value&&a.options.refreshDeps===!0&&d.value&&a.run(...m)}}),!o&&a.options.refreshDeps!==!0){const m=a.state.params||e.defaultParams||[];h(r)&&a.run(...m)}return B(()=>{a.cancel()}),{...Z(l),cancel:a.cancel.bind(a),refresh:a.refresh.bind(a),refreshAsync:a.refreshAsync.bind(a),run:a.run.bind(a),runAsync:a.runAsync.bind(a),mutate:a.mutate.bind(a)}}const xe=(n,e)=>function(s,i={},o=[]){let r=n;const u=e||[];for(let c=u.length;c--;)r=u[c](r);return r(s,i,o)};function Qe(n,e,t){var s;const i=(s=[null,ce,be,we,Se,De,z,ue,Oe])==null?void 0:s.filter(Boolean);return xe(Be,e==null?void 0:e.use)(n,e,[...i])}const Ue=!!(typeof window<"u"&&window.document&&window.document.createElement);function y(n,e){var t,s;if(!Ue)return;if(!n)return e;let i;return typeof n=="function"?i=n():Y(n)?i=(s=(t=n.value)==null?void 0:t.$el)!=null?s:n.value:i=n,i}var $e=Object.defineProperty,Le=(n,e,t)=>e in n?$e(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,R=(n,e,t)=>(Le(n,typeof e!="symbol"?e+"":e,t),t);class He{constructor(){R(this,"subscriptions",new Map),R(this,"emitEffectCache",new Map),R(this,"useSubscription",(e,t)=>{const s=b();P(i=>{var o,r;s.value=t;function u(d){s.value&&s.value(d)}const c=(r=(o=this.subscriptions)==null?void 0:o.get(e))!=null?r:[];c.push(u),this.subscriptions.set(e,c),this.emitEffect(e),i(()=>{this.subscriptions.delete(e)})})}),R(this,"emit",(e,...t)=>{if(typeof e=="string"||typeof e=="number"){const s=this.subscriptions.get(e);s==null||s.forEach(i=>{i==null||i({params:j(t),event:e})}),this.emitEffectCache.set(e,{params:j(t),event:e})}else throw new TypeError("event must be string or number !")}),R(this,"emitEffect",e=>{const t=this.emitEffectCache.get(e),s=this.subscriptions.get(e);t&&(s==null||s.forEach(i=>{i==null||i({...t})}))}),R(this,"removeListener",e=>{this.subscriptions.delete(e)}),R(this,"clear",()=>{this.subscriptions.clear()}),this.clear()}}new He;const Ge=(n,e)=>{const{onExit:t,onEnter:s,defaultElement:i=document.documentElement}={},o=b(t),r=b(s),u=b(!1),c=a=>{u.value=a},d=()=>{var a,w,m;if(g.isEnabled){const _=y(n,i);if(!g.element)(a=o.value)==null||a.call(o),c(!1),g.off("change",d);else{const p=g.element===_;p?(w=r.value)==null||w.call(r):(m=o.value)==null||m.call(o),c(p)}}},l=()=>{const a=y(n,i);if(a&&g.isEnabled)try{g.request(a),g.on("change",d)}catch(w){console.error(w)}},f=()=>{const a=y(n,i);g.isEnabled&&g.element===a&&g.exit()},v=()=>{u.value?f():l()};return ee(()=>{g.isEnabled&&g.off("change",d)}),[K(u),{enterFullscreen:l,exitFullscreen:f,toggleFullscreen:v,isEnabled:g.isEnabled}]};export{Qe as a,Ge as u}; diff --git a/js/vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js.gz b/js/vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js.gz new file mode 100644 index 00000000..12a96692 Binary files /dev/null and b/js/vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js.gz differ diff --git a/js/vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js b/js/vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js deleted file mode 100644 index 580632da..00000000 --- a/js/vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js +++ /dev/null @@ -1 +0,0 @@ -import{d as Q,t as W,c as U}from"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import{s as p}from"./screenfull@5.2.0-DmMZCkhi.js";const M=(n,{manual:e,ready:t=!0,refreshDeps:s=[],refreshDepsAction:r})=>{const u=Vue.ref(!1);return Vue.watchEffect(()=>{!e&&n.options.refreshDeps!==!0&&(u.value=Vue.unref(t))}),s instanceof Array?Vue.watch([u,...s],([i])=>{i&&!e&&i&&(r?r():n.refresh())},{deep:!0,immediate:!1}):Vue.watch(u,i=>{!e&&i&&(r?r():n.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!Vue.unref(t))return{stopNow:!0}}}};M.onInit=({ready:n=!0,manual:e})=>({loading:!e&&Vue.unref(n)});const S=new Map,G=(n,e,t)=>{const s=S.get(n);s!=null&&s.timer&&clearTimeout(s.timer);let r;e>-1&&(r=setTimeout(()=>{S.delete(n)},e)),S.set(n,{...t,timer:r})},Y=n=>S.get(n),O=new Map,z=n=>O.get(n),J=(n,e)=>{O.set(n,e),e.then(t=>(O.delete(n),t)).catch(t=>{throw O.delete(n),t})},w={},X=[],Z=(n,e)=>{w[n]&&(w[n].forEach(t=>t(e)),X.forEach(t=>t({type:n,data:e})))},D=(n,e)=>(w[n]||(w[n]=[]),w[n].push(e),function(){const s=w[n].indexOf(e);w[n].splice(s,1)}),K=(n,{cacheKey:e,cacheTime:t=5*60*1e3,staleTime:s=0,setCache:r,getCache:u})=>{const i=Vue.ref(),a=Vue.ref(),o=(l,c)=>{r?r(c):G(l,t,c),Z(l,c.data)},d=(l,c=[])=>u?u(c):Y(l);return Vue.watchEffect(()=>{if(!e)return;const l=d(e);l&&Object.hasOwnProperty.call(l,"data")&&(n.state.data=l.data,n.state.params=l.params,(s===-1||new Date().getTime()-l.time<=s)&&(n.state.loading=!1)),i.value=D(e,c=>{n.setState({data:c})})}),Vue.onScopeDispose(()=>{var l;(l=i.value)==null||l.call(i)}),e?{name:"cachePlugin",onBefore:l=>{const c=d(e,l);return!c||!Object.hasOwnProperty.call(c,"data")?{}:s===-1||new Date().getTime()-c.time<=s?{loading:!1,data:c==null?void 0:c.data,returnNow:!0}:{data:c==null?void 0:c.data}},onRequest:(l,c)=>{let h=z(e);return h&&h!==a.value?{servicePromise:h}:(h=l(...c),a.value=h,J(e,h),{servicePromise:h})},onSuccess:(l,c)=>{var h;e&&((h=i.value)==null||h.call(i),o(e,{data:l,params:c,time:new Date().getTime()}),i.value=D(e,f=>{n.setState({data:f})}))},onMutate:l=>{var c;e&&((c=i.value)==null||c.call(i),o(e,{data:l,params:n.state.params,time:new Date().getTime()}),i.value=D(e,h=>{n.setState({data:h})}))}}:{}},k=(n,{debounceWait:e,debounceLeading:t,debounceTrailing:s,debounceMaxWait:r})=>{const u=Vue.ref(),i=Vue.computed(()=>{const a={},o=Vue.unref(t),d=Vue.unref(s),l=Vue.unref(r);return o!==void 0&&(a.leading=o),d!==void 0&&(a.trailing=d),l!==void 0&&(a.maxWait=l),a});return Vue.watchEffect(a=>{if(Vue.unref(e)){const o=n.runAsync.bind(n);u.value=Q(d=>{d()},Vue.unref(e),i.value),n.runAsync=(...d)=>new Promise((l,c)=>{var h;(h=u.value)==null||h.call(u,()=>{o(...d).then(l).catch(c)})}),a(()=>{var d;(d=u.value)==null||d.cancel(),n.runAsync=o})}}),Vue.unref(e)?{name:"debouncePlugin",onCancel:()=>{var a;(a=u.value)==null||a.cancel()}}:{}};var ee=Object.defineProperty,te=(n,e,t)=>e in n?ee(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,L=(n,e,t)=>(te(n,typeof e!="symbol"?e+"":e,t),t);class ne{constructor(){L(this,"table",{}),L(this,"hashTable",{})}insert(e){const t=Symbol(e);return this.table[e]=!0,this.hashTable[t]=e,t}find(e){return this.hashTable[e]}}new ne;var se=Object.defineProperty,re=(n,e,t)=>e in n?se(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e,t)=>(re(n,typeof e!="symbol"?e+"":e,t),t);class ie{constructor(){$(this,"requestInstances",new Map),$(this,"listeners",[])}emit(e){this.listeners.forEach(t=>t(e))}subscribe(e){return this.listeners.push(e),()=>{const t=this.listeners.indexOf(e);this.listeners.splice(t,1)}}insert(e,t){this.requestInstances.set(e,{...t}),this.emit({key:e,...t})}update(e,t){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...t})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const t=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,t)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}new ie;const ue=(n,{loadingDelay:e})=>{const t=Vue.ref(),s=()=>{t.value&&(clearTimeout(Vue.unref(t.value)),t.value=void 0)};return{name:"loadingDelayPlugin",onFinally:()=>{s();const r=Vue.unref(e);r&&(n.setState({loading:!0}),t.value=setTimeout(()=>{n.setState({loading:!1})},r))},onError:()=>{s()}}};function T(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const oe=!!(typeof window<"u"&&window.document&&window.document.createElement);function F(){return T()?document.visibilityState!=="hidden":!0}const E=[];function le(n){return E.push(n),function(){const t=E.indexOf(n);E.splice(t,1)}}if(T()){const n=()=>{if(F())for(let e=0;e{let r;const u=Vue.ref(),i=Vue.ref(0),a=()=>{var o;r&&clearTimeout(r),(o=u.value)==null||o.call(u)};return Vue.watchEffect(()=>{Vue.unref(e)||a()}),Vue.unref(e)?{name:"pollingPlugin",onBefore:()=>{a()},onError:()=>{i.value+=1},onSuccess:()=>{i.value=0},onFinally:()=>{s===-1||s!==-1&&i.value<=s?r=setTimeout(()=>{!t&&!F()?u.value=le(()=>{n.refresh()}):n.refresh()},Vue.unref(e)):i.value=0},onCancel:()=>{a()}}:{}};function ce(n,e){let t=!1;return(...s)=>{t||(t=!0,n(...s),setTimeout(()=>{t=!1},e))}}function fe(){return T()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const P=[];function de(n){return P.push(n),function(){const t=P.indexOf(n);t>-1&&P.splice(t,1)}}if(oe){const n=()=>{if(!(!F()||!fe()))for(let e=0;e{const s=Vue.ref(),r=()=>{var u;(u=s.value)==null||u.call(s)};return Vue.watchEffect(u=>{if(Vue.unref(e)){const i=ce(n.refresh.bind(n),Vue.unref(t));s.value=de(()=>{i()})}u(()=>{r()})}),Vue.onScopeDispose(()=>{r()}),{name:"refreshOnWindowFocusPlugin"}},ve=(n,{retryInterval:e,retryCount:t})=>{const s=Vue.ref(),r=Vue.ref(0),u=Vue.ref(!1);return t?{name:"retryPlugin",onBefore:()=>{u.value||(r.value=0),u.value=!1,s.value&&clearTimeout(s.value)},onSuccess:()=>{r.value=0},onError:()=>{if(r.value+=1,t===-1||r.value<=t){const i=e??Math.min(1e3*2**r.value,3e4);s.value=setTimeout(()=>{u.value=!0,n.refresh()},i)}else r.value=0},onCancel:()=>{r.value=0,s.value&&clearTimeout(s.value)}}:{}},me=(n,{throttleWait:e,throttleLeading:t,throttleTrailing:s})=>{const r=Vue.computed(()=>{const i={};return Vue.unref(t)!==void 0&&(i.leading=Vue.unref(t)),Vue.unref(s)!==void 0&&(i.trailing=Vue.unref(s)),i}),u=Vue.computed(()=>W(i=>{i()},Vue.unref(e),r.value));return Vue.watchEffect(i=>{if(Vue.unref(e)){const a=n.runAsync.bind(n);n.runAsync=(...o)=>new Promise((d,l)=>{var c;(c=u.value)==null||c.call(u,()=>{a(...o).then(d).catch(l)})}),i(()=>{var o;n.runAsync=a,(o=u.value)==null||o.cancel()})}}),Vue.unref(e)?{name:"throttlePlugin",onCancel:()=>{var i;(i=u.value)==null||i.cancel()}}:{}},H=n=>typeof n=="function",pe=n=>typeof n=="boolean";var be=Object.defineProperty,ge=(n,e,t)=>e in n?be(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,R=(n,e,t)=>(ge(n,typeof e!="symbol"?e+"":e,t),t);class _e{constructor(e,t,s,r={}){R(this,"pluginImpls"),R(this,"count",0),R(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),R(this,"previousValidData"),this.serviceRef=e,this.options=t,this.setUpdateData=s,this.initState=r,this.state={...this.state,loading:!t.manual,...r}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,t){console.warn("Please use 'setFetchState' instead of 'setData'"),t instanceof Array?t.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[t]=e,this.setUpdateData(e,t))}setFetchState(e,t){t instanceof Array?t.forEach(s=>{this.state[s]=e,this.setUpdateData(e,s)}):(this.state[t]=e,this.setUpdateData(e,t))}runPluginHandler(e,...t){var s,r,u;const i=(u=(r=(s=this.pluginImpls)==null?void 0:s.map(a=>{var o;return(o=a[e])==null?void 0:o.call(a,...t)}))!=null?r:[])==null?void 0:u.filter(Boolean);return Object.assign({},...i)}async runAsync(...e){var t,s,r,u,i,a,o,d,l,c,h;this.count+=1;const f=this.count,{stopNow:g=!1,returnNow:v=!1,...b}=this.runPluginHandler("onBefore",e);if(g)return new Promise(()=>{});if(this.setState({loading:!0,params:e,...b}),v)return Promise.resolve(b.data);try{(s=(t=this.options).onBefore)==null||s.call(t,e)}catch(m){return this.setState({error:m,loading:!1}),(u=(r=this.options).onError)==null||u.call(r,m,e),this.runPluginHandler("onError",m,e),new Promise(()=>{})}try{let{servicePromise:m}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const I=y=>{var q,C,B,x;if(f!==this.count)return new Promise(()=>{});const _=this.options.formatResult?this.options.formatResult(y):y;return this.setState({data:_,error:void 0,loading:!1}),(C=(q=this.options).onSuccess)==null||C.call(q,_,e),this.runPluginHandler("onSuccess",_,e),this.previousValidData=_,(x=(B=this.options).onFinally)==null||x.call(B,e,_,void 0),f===this.count&&this.runPluginHandler("onFinally",e,_,void 0),_};m||(m=this.serviceRef.value(...e));const j=await m;return I(j)}catch(m){if(f!==this.count)return new Promise(()=>{});throw this.setState({error:m,loading:!1}),(a=(i=this.options).onError)==null||a.call(i,m,e),this.runPluginHandler("onError",m,e),(H((o=this.options)==null?void 0:o.rollbackOnError)&&((d=this.options)!=null&&d.rollbackOnError(e))||pe((l=this.options)==null?void 0:l.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(h=(c=this.options).onFinally)==null||h.call(c,e,void 0,m),f===this.count&&this.runPluginHandler("onFinally",e,void 0,m),m}}run(...e){this.runAsync(...e).catch(t=>{this.options.onError||console.error(t)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){const t=H(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})}}const Ve=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function we(n){return Object.keys(n).filter(t=>["data","loading","params","error"].includes(t)).length===4}function Ee(n,e={},t=[]){const s=Vue.inject(Ve,{}),{initialData:r=void 0,manual:u=!1,ready:i=!0,...a}={...s??{},...e??{}},o={manual:u,ready:i,initialData:r,...a},d=Vue.ref(n),l=Vue.reactive({data:r,loading:!1,params:void 0,error:void 0}),c=(v,b)=>{b?l[b]=v:we(v)&&(l.data=v.data,l.loading=v.loading,l.error=v.error,l.params=v.params)},h=t.map(v=>{var b;return(b=v==null?void 0:v.onInit)==null?void 0:b.call(v,o)}).filter(Boolean),f=new _e(d,o,c,Object.assign({},...h,l));f.options=o,f.pluginImpls=t.map(v=>v(f,o));const g=Vue.computed(()=>Vue.isRef(i)?i.value:i);if(Vue.watchEffect(()=>{if(!u){const v=f.state.params||e.defaultParams||[];g.value&&f.options.refreshDeps===!0&&d.value&&f.run(...v)}}),!u&&f.options.refreshDeps!==!0){const v=f.state.params||e.defaultParams||[];Vue.unref(i)&&f.run(...v)}return Vue.onScopeDispose(()=>{f.cancel()}),{...Vue.toRefs(l),cancel:f.cancel.bind(f),refresh:f.refresh.bind(f),refreshAsync:f.refreshAsync.bind(f),run:f.run.bind(f),runAsync:f.runAsync.bind(f),mutate:f.mutate.bind(f)}}const Pe=(n,e)=>function(s,r={},u=[]){let i=n;const a=e||[];for(let o=a.length;o--;)i=a[o](i);return i(s,r,u)};function qe(n,e,t){var s;const r=(s=[null,k,ue,ae,he,me,M,K,ve])==null?void 0:s.filter(Boolean);return Pe(Ee,e==null?void 0:e.use)(n,e,[...r])}const Re=!!(typeof window<"u"&&window.document&&window.document.createElement);function A(n,e){var t,s;if(!Re)return;if(!n)return e;let r;return typeof n=="function"?r=n():Vue.isRef(n)?r=(s=(t=n.value)==null?void 0:t.$el)!=null?s:n.value:r=n,r}function N(n,e){if(n===e)return!0;for(let t=0;t(t,s,r)=>{const u=Vue.ref(!1),i=Vue.ref([]),a=Vue.ref([]),o=Vue.ref();n(()=>{var d;const c=(Array.isArray(r)?r:[r]).map(h=>A(h));if(!u.value){u.value=!0,i.value=c,a.value=s,o.value=t();return}(c.length!==i.value.length||!N(c,i.value)||!N(s,a.value))&&((d=o.value)==null||d.call(o),i.value=c,a.value=s,o.value=t())}),Vue.onUnmounted(()=>{var d;(d=o.value)==null||d.call(o),u.value=!1})};Se(Vue.watchEffect);var Oe=Object.defineProperty,Ae=(n,e,t)=>e in n?Oe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,V=(n,e,t)=>(Ae(n,typeof e!="symbol"?e+"":e,t),t);class De{constructor(){V(this,"subscriptions",new Map),V(this,"emitEffectCache",new Map),V(this,"useSubscription",(e,t)=>{const s=Vue.ref();Vue.watchEffect(r=>{var u,i;s.value=t;function a(d){s.value&&s.value(d)}const o=(i=(u=this.subscriptions)==null?void 0:u.get(e))!=null?i:[];o.push(a),this.subscriptions.set(e,o),this.emitEffect(e),r(()=>{this.subscriptions.delete(e)})})}),V(this,"emit",(e,...t)=>{if(typeof e=="string"||typeof e=="number"){const s=this.subscriptions.get(e);s==null||s.forEach(r=>{r==null||r({params:U(t),event:e})}),this.emitEffectCache.set(e,{params:U(t),event:e})}else throw new TypeError("event must be string or number !")}),V(this,"emitEffect",e=>{const t=this.emitEffectCache.get(e),s=this.subscriptions.get(e);t&&(s==null||s.forEach(r=>{r==null||r({...t})}))}),V(this,"removeListener",e=>{this.subscriptions.delete(e)}),V(this,"clear",()=>{this.subscriptions.clear()}),this.clear()}}new De;const Ce=(n,e)=>{const{onExit:t,onEnter:s,defaultElement:r=document.documentElement}={},u=Vue.ref(t),i=Vue.ref(s),a=Vue.ref(!1),o=f=>{a.value=f},d=()=>{var f,g,v;if(p.isEnabled){const b=A(n,r);if(!p.element)(f=u.value)==null||f.call(u),o(!1),p.off("change",d);else{const m=p.element===b;m?(g=i.value)==null||g.call(i):(v=u.value)==null||v.call(u),o(m)}}},l=()=>{const f=A(n,r);if(f&&p.isEnabled)try{p.request(f),p.on("change",d)}catch(g){console.error(g)}},c=()=>{const f=A(n,r);p.isEnabled&&p.element===f&&p.exit()},h=()=>{a.value?c():l()};return Vue.onUnmounted(()=>{p.isEnabled&&p.off("change",d)}),[Vue.readonly(a),{enterFullscreen:l,exitFullscreen:c,toggleFullscreen:h,isEnabled:p.isEnabled}]};export{qe as a,Ce as u}; diff --git a/js/vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js.gz b/js/vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js.gz deleted file mode 100644 index 4cd7ef13..00000000 Binary files a/js/vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js.gz and /dev/null differ diff --git a/js/vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js b/js/vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js new file mode 100644 index 00000000..1741876e --- /dev/null +++ b/js/vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js @@ -0,0 +1,5 @@ +import{e as C,l as W,b as T,j as p,f as D,m as Rt,g as Ae,r as A,c as k,d as F,h as _e,a as $,s as J,i as he,u as X,v as K}from"./@intlify_shared@9.13.1-BxU0OzX2.js";import{s as Lt,D as pt,u as x,N as vt,a as Pt,C as Ft,c as Ct,b as me,d as fe,e as St,g as Dt,f as yt,p as ge,t as Ee,M as be,h as de,i as Oe,j as Te,n as Ie,k as kt,l as At,m as Me,r as ht,o as Mt,q as Vt,v as Ut,w as Ne,x as xt,y as wt}from"./@intlify_core-base@9.13.1-C6DqbPB6.js";import{c as Wt}from"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import{l as ne,h as Ve,i as jt,k as Yt,Q as Gt,j as w,w as z,F as Ue,d as re,b as Ht,T as Bt}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{x as $t,a as Xt,k as Jt,s as Kt}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";/*! + * vue-i18n v9.13.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const qt="9.13.1";function Qt(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ae().__INTLIFY_PROD_DEVTOOLS__=!1)}const xe=Ut.__EXTEND_POINT__,S=he(xe);S(),S(),S(),S(),S(),S(),S(),S(),S();const we=Ft.__EXTEND_POINT__,N=he(we),R={UNEXPECTED_RETURN_TYPE:we,INVALID_ARGUMENT:N(),MUST_BE_CALL_SETUP_TOP:N(),NOT_INSTALLED:N(),NOT_AVAILABLE_IN_LEGACY_MODE:N(),REQUIRED_VALUE:N(),INVALID_VALUE:N(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:N(),NOT_INSTALLED_WITH_PROVIDE:N(),UNEXPECTED_ERROR:N(),NOT_COMPATIBLE_LEGACY_VUE_I18N:N(),BRIDGE_SUPPORT_VUE_2_ONLY:N(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:N(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:N(),__EXTEND_POINT__:N()};function v(e,...l){return Wt(e,null,void 0)}const Z=A("__translateVNode"),ee=A("__datetimeParts"),te=A("__numberParts"),zt=A("__setPluralRules"),Zt=A("__injectWithOption"),ae=A("__dispose");function j(e){if(!p(e))return e;for(const l in e)if(K(e,l))if(!l.includes("."))p(e[l])&&j(e[l]);else{const n=l.split("."),o=n.length-1;let s=e,c=!1;for(let r=0;r{if("locale"in u&&"resource"in u){const{locale:m,resource:_}=u;m?(r[m]=r[m]||{},X(_,r[m])):X(_,r)}else T(u)&&X(JSON.parse(u),r)}),s==null&&c)for(const u in r)K(r,u)&&j(r[u]);return r}function je(e){return e.type}function ea(e,l,n){let o=p(l.messages)?l.messages:{};"__i18nGlobal"in n&&(o=We(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const s=Object.keys(o);s.length&&s.forEach(c=>{e.mergeLocaleMessage(c,o[c])});{if(p(l.datetimeFormats)){const c=Object.keys(l.datetimeFormats);c.length&&c.forEach(r=>{e.mergeDateTimeFormat(r,l.datetimeFormats[r])})}if(p(l.numberFormats)){const c=Object.keys(l.numberFormats);c.length&&c.forEach(r=>{e.mergeNumberFormat(r,l.numberFormats[r])})}}}function Re(e){return Ht(Bt,null,e,0)}const Le="__INTLIFY_META__",pe=()=>[],ta=()=>!1;let ve=0;function Pe(e){return(l,n,o,s)=>e(n,o,re()||void 0,s)}const aa=()=>{const e=re();let l=null;return e&&(l=je(e)[Le])?{[Le]:l}:null};function Ye(e={},l){const{__root:n,__injectWithOption:o}=e,s=n===void 0,c=e.flatJson,r=J?Jt:Kt,u=!!e.translateExistCompatible;let m=D(e.inheritLocale)?e.inheritLocale:!0;const _=r(n&&m?n.locale.value:T(e.locale)?e.locale:pt),b=r(n&&m?n.fallbackLocale.value:T(e.fallbackLocale)||k(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:_.value),f=r(We(_.value,e)),g=r(F(e.datetimeFormats)?e.datetimeFormats:{[_.value]:{}}),O=r(F(e.numberFormats)?e.numberFormats:{[_.value]:{}});let L=n?n.missingWarn:D(e.missingWarn)||_e(e.missingWarn)?e.missingWarn:!0,P=n?n.fallbackWarn:D(e.fallbackWarn)||_e(e.fallbackWarn)?e.fallbackWarn:!0,M=n?n.fallbackRoot:D(e.fallbackRoot)?e.fallbackRoot:!0,Y=!!e.fallbackFormat,oe=$(e.missing)?e.missing:null,G=$(e.missing)?Pe(e.missing):null,U=$(e.postTranslation)?e.postTranslation:null,q=n?n.warnHtmlMessage:D(e.warnHtmlMessage)?e.warnHtmlMessage:!0,Q=!!e.escapeParameter;const ce=n?n.modifiers:F(e.modifiers)?e.modifiers:{};let H=e.pluralRules||n&&n.pluralRules,i;i=(()=>{s&&Ne(null);const t={version:qt,locale:_.value,fallbackLocale:b.value,messages:f.value,modifiers:ce,pluralRules:H,missing:G===null?void 0:G,missingWarn:L,fallbackWarn:P,fallbackFormat:Y,unresolving:!0,postTranslation:U===null?void 0:U,warnHtmlMessage:q,escapeParameter:Q,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=g.value,t.numberFormats=O.value,t.__datetimeFormatters=F(i)?i.__datetimeFormatters:void 0,t.__numberFormatters=F(i)?i.__numberFormatters:void 0;const a=Ct(t);return s&&Ne(a),a})(),x(i,_.value,b.value);function Be(){return[_.value,b.value,f.value,g.value,O.value]}const $e=w({get:()=>_.value,set:t=>{_.value=t,i.locale=_.value}}),Xe=w({get:()=>b.value,set:t=>{b.value=t,i.fallbackLocale=b.value,x(i,_.value,t)}}),Je=w(()=>f.value),Ke=w(()=>g.value),qe=w(()=>O.value);function Qe(){return $(U)?U:null}function ze(t){U=t,i.postTranslation=t}function Ze(){return oe}function et(t){t!==null&&(G=Pe(t)),oe=t,i.missing=G}const h=(t,a,E,d,y,B)=>{Be();let V;try{__INTLIFY_PROD_DEVTOOLS__&&St(aa()),s||(i.fallbackContext=n?Dt():void 0),V=t(i)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(i.fallbackContext=void 0)}if(E!=="translate exists"&&W(V)&&V===yt||E==="translate exists"&&!V){const[Nt,La]=a();return n&&M?d(n):y(Nt)}else{if(B(V))return V;throw v(R.UNEXPECTED_RETURN_TYPE)}};function ue(...t){return h(a=>Reflect.apply(Ee,null,[a,...t]),()=>ge(...t),"translate",a=>Reflect.apply(a.t,a,[...t]),a=>a,a=>T(a))}function tt(...t){const[a,E,d]=t;if(d&&!p(d))throw v(R.INVALID_ARGUMENT);return ue(a,E,C({resolvedMessage:!0},d||{}))}function at(...t){return h(a=>Reflect.apply(Oe,null,[a,...t]),()=>de(...t),"datetime format",a=>Reflect.apply(a.d,a,[...t]),()=>be,a=>T(a))}function nt(...t){return h(a=>Reflect.apply(Ie,null,[a,...t]),()=>Te(...t),"number format",a=>Reflect.apply(a.n,a,[...t]),()=>be,a=>T(a))}function rt(t){return t.map(a=>T(a)||W(a)||D(a)?Re(String(a)):a)}const lt={normalize:rt,interpolate:t=>t,type:"vnode"};function st(...t){return h(a=>{let E;const d=a;try{d.processor=lt,E=Reflect.apply(Ee,null,[d,...t])}finally{d.processor=null}return E},()=>ge(...t),"translate",a=>a[Z](...t),a=>[Re(a)],a=>k(a))}function ot(...t){return h(a=>Reflect.apply(Ie,null,[a,...t]),()=>Te(...t),"number format",a=>a[te](...t),pe,a=>T(a)||k(a))}function ct(...t){return h(a=>Reflect.apply(Oe,null,[a,...t]),()=>de(...t),"datetime format",a=>a[ee](...t),pe,a=>T(a)||k(a))}function ut(t){H=t,i.pluralRules=H}function it(t,a){return h(()=>{if(!t)return!1;const E=T(a)?a:_.value,d=ie(E),y=i.messageResolver(d,t);return u?y!=null:kt(y)||At(y)||T(y)},()=>[t],"translate exists",E=>Reflect.apply(E.te,E,[t,a]),ta,E=>D(E))}function _t(t){let a=null;const E=Me(i,b.value,_.value);for(let d=0;d{m&&(_.value=t,i.locale=t,x(i,_.value,b.value))}),z(n.fallbackLocale,t=>{m&&(b.value=t,i.fallbackLocale=t,x(i,_.value,b.value))}));const I={id:ve,locale:$e,fallbackLocale:Xe,get inheritLocale(){return m},set inheritLocale(t){m=t,t&&n&&(_.value=n.locale.value,b.value=n.fallbackLocale.value,x(i,_.value,b.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:Je,get modifiers(){return ce},get pluralRules(){return H||{}},get isGlobal(){return s},get missingWarn(){return L},set missingWarn(t){L=t,i.missingWarn=L},get fallbackWarn(){return P},set fallbackWarn(t){P=t,i.fallbackWarn=P},get fallbackRoot(){return M},set fallbackRoot(t){M=t},get fallbackFormat(){return Y},set fallbackFormat(t){Y=t,i.fallbackFormat=Y},get warnHtmlMessage(){return q},set warnHtmlMessage(t){q=t,i.warnHtmlMessage=t},get escapeParameter(){return Q},set escapeParameter(t){Q=t,i.escapeParameter=t},t:ue,getLocaleMessage:ie,setLocaleMessage:ft,mergeLocaleMessage:gt,getPostTranslationHandler:Qe,setPostTranslationHandler:ze,getMissingHandler:Ze,setMissingHandler:et,[zt]:ut};return I.datetimeFormats=Ke,I.numberFormats=qe,I.rt=tt,I.te=it,I.tm=mt,I.d=at,I.n=nt,I.getDateTimeFormat=Et,I.setDateTimeFormat=bt,I.mergeDateTimeFormat=dt,I.getNumberFormat=Ot,I.setNumberFormat=Tt,I.mergeNumberFormat=It,I[Zt]=o,I[Z]=st,I[ee]=ct,I[te]=ot,I}const le={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function na({slots:e},l){return l.length===1&&l[0]==="default"?(e.default?e.default():[]).reduce((o,s)=>[...o,...s.type===Ue?s.children:[s]],[]):l.reduce((n,o)=>{const s=e[o];return s&&(n[o]=s()),n},{})}function Ge(e){return Ue}const ra=ne({name:"i18n-t",props:C({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>W(e)||!isNaN(e)}},le),setup(e,l){const{slots:n,attrs:o}=l,s=e.i18n||se({useScope:e.scope,__useComponent:!0});return()=>{const c=Object.keys(n).filter(f=>f!=="_"),r={};e.locale&&(r.locale=e.locale),e.plural!==void 0&&(r.plural=T(e.plural)?+e.plural:e.plural);const u=na(l,c),m=s[Z](e.keypath,u,r),_=C({},o),b=T(e.tag)||p(e.tag)?e.tag:Ge();return Ve(b,_,m)}}}),Fe=ra;function la(e){return k(e)&&!T(e[0])}function He(e,l,n,o){const{slots:s,attrs:c}=l;return()=>{const r={part:!0};let u={};e.locale&&(r.locale=e.locale),T(e.format)?r.key=e.format:p(e.format)&&(T(e.format.key)&&(r.key=e.format.key),u=Object.keys(e.format).reduce((g,O)=>n.includes(O)?C({},g,{[O]:e.format[O]}):g,{}));const m=o(e.value,r,u);let _=[r.key];k(m)?_=m.map((g,O)=>{const L=s[g.type],P=L?L({[g.type]:g.value,index:O,parts:m}):[g.value];return la(P)&&(P[0].key=`${g.type}-${O}`),P}):T(m)&&(_=[m]);const b=C({},c),f=T(e.tag)||p(e.tag)?e.tag:Ge();return Ve(f,b,_)}}const sa=ne({name:"i18n-n",props:C({value:{type:Number,required:!0},format:{type:[String,Object]}},le),setup(e,l){const n=e.i18n||se({useScope:e.scope,__useComponent:!0});return He(e,l,vt,(...o)=>n[te](...o))}}),Ce=sa,oa=ne({name:"i18n-d",props:C({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},le),setup(e,l){const n=e.i18n||se({useScope:e.scope,__useComponent:!0});return He(e,l,Pt,(...o)=>n[ee](...o))}}),Se=oa;function ca(e,l){const n=e;if(e.mode==="composition")return n.__getInstance(l)||e.global;{const o=n.__getInstance(l);return o!=null?o.__composer:e.global.__composer}}function ua(e){const l=r=>{const{instance:u,modifiers:m,value:_}=r;if(!u||!u.$)throw v(R.UNEXPECTED_ERROR);const b=ca(e,u.$),f=De(_);return[Reflect.apply(b.t,b,[...ye(f)]),b]};return{created:(r,u)=>{const[m,_]=l(u);J&&e.global===_&&(r.__i18nWatcher=z(_.locale,()=>{u.instance&&u.instance.$forceUpdate()})),r.__composer=_,r.textContent=m},unmounted:r=>{J&&r.__i18nWatcher&&(r.__i18nWatcher(),r.__i18nWatcher=void 0,delete r.__i18nWatcher),r.__composer&&(r.__composer=void 0,delete r.__composer)},beforeUpdate:(r,{value:u})=>{if(r.__composer){const m=r.__composer,_=De(u);r.textContent=Reflect.apply(m.t,m,[...ye(_)])}},getSSRProps:r=>{const[u]=l(r);return{textContent:u}}}}function De(e){if(T(e))return{path:e};if(F(e)){if(!("path"in e))throw v(R.REQUIRED_VALUE,"path");return e}else throw v(R.INVALID_VALUE)}function ye(e){const{path:l,locale:n,args:o,choice:s,plural:c}=e,r={},u=o||{};return T(n)&&(r.locale=n),W(s)&&(r.plural=s),W(c)&&(r.plural=c),[l,u,r]}function ia(e,l,...n){const o=F(n[0])?n[0]:{},s=!!o.useI18nComponentName;(D(o.globalInstall)?o.globalInstall:!0)&&([s?"i18n":Fe.name,"I18nT"].forEach(r=>e.component(r,Fe)),[Ce.name,"I18nN"].forEach(r=>e.component(r,Ce)),[Se.name,"I18nD"].forEach(r=>e.component(r,Se))),e.directive("t",ua(l))}const _a=A("global-vue-i18n");function Sa(e={},l){const n=D(e.globalInjection)?e.globalInjection:!0,o=!0,s=new Map,[c,r]=ma(e),u=A("");function m(f){return s.get(f)||null}function _(f,g){s.set(f,g)}function b(f){s.delete(f)}{const f={get mode(){return"composition"},get allowComposition(){return o},async install(g,...O){if(g.__VUE_I18N_SYMBOL__=u,g.provide(g.__VUE_I18N_SYMBOL__,f),F(O[0])){const M=O[0];f.__composerExtend=M.__composerExtend,f.__vueI18nExtend=M.__vueI18nExtend}let L=null;n&&(L=Ia(g,f.global)),ia(g,f,...O);const P=g.unmount;g.unmount=()=>{L&&L(),f.dispose(),P()}},get global(){return r},dispose(){c.stop()},__instances:s,__getInstance:m,__setInstance:_,__deleteInstance:b};return f}}function se(e={}){const l=re();if(l==null)throw v(R.MUST_BE_CALL_SETUP_TOP);if(!l.isCE&&l.appContext.app!=null&&!l.appContext.app.__VUE_I18N_SYMBOL__)throw v(R.NOT_INSTALLED);const n=fa(l),o=Ea(n),s=je(l),c=ga(e,s);if(c==="global")return ea(o,e,s),o;if(c==="parent"){let m=ba(n,l,e.__useComponent);return m==null&&(m=o),m}const r=n;let u=r.__getInstance(l);if(u==null){const m=C({},e);"__i18n"in s&&(m.__i18n=s.__i18n),o&&(m.__root=o),u=Ye(m),r.__composerExtend&&(u[ae]=r.__composerExtend(u)),Oa(r,l,u),r.__setInstance(l,u)}return u}function ma(e,l,n){const o=$t();{const s=o.run(()=>Ye(e));if(s==null)throw v(R.UNEXPECTED_ERROR);return[o,s]}}function fa(e){{const l=jt(e.isCE?_a:e.appContext.app.__VUE_I18N_SYMBOL__);if(!l)throw v(e.isCE?R.NOT_INSTALLED_WITH_PROVIDE:R.UNEXPECTED_ERROR);return l}}function ga(e,l){return Rt(e)?"__i18n"in l?"local":"global":e.useScope?e.useScope:"local"}function Ea(e){return e.mode==="composition"?e.global:e.global.__composer}function ba(e,l,n=!1){let o=null;const s=l.root;let c=da(l,n);for(;c!=null;){const r=e;if(e.mode==="composition"&&(o=r.__getInstance(c)),o!=null||s===c)break;c=c.parent}return o}function da(e,l=!1){return e==null?null:l&&e.vnode.ctx||e.parent}function Oa(e,l,n){Yt(()=>{},l),Gt(()=>{const o=n;e.__deleteInstance(l);const s=o[ae];s&&(s(),delete o[ae])},l)}const Ta=["locale","fallbackLocale","availableLocales"],ke=["t","rt","d","n","tm","te"];function Ia(e,l){const n=Object.create(null);return Ta.forEach(s=>{const c=Object.getOwnPropertyDescriptor(l,s);if(!c)throw v(R.UNEXPECTED_ERROR);const r=Xt(c.value)?{get(){return c.value.value},set(u){c.value.value=u}}:{get(){return c.get&&c.get()}};Object.defineProperty(n,s,r)}),e.config.globalProperties.$i18n=n,ke.forEach(s=>{const c=Object.getOwnPropertyDescriptor(l,s);if(!c||!c.value)throw v(R.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,c)}),()=>{delete e.config.globalProperties.$i18n,ke.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}Qt();ht(xt);Mt(wt);Vt(Me);if(__INTLIFY_PROD_DEVTOOLS__){const e=Ae();e.__INTLIFY__=!0,Lt(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}export{Sa as c}; diff --git a/js/vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js.gz b/js/vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js.gz new file mode 100644 index 00000000..f8231259 Binary files /dev/null and b/js/vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js.gz differ diff --git a/js/vue-router@4.3.2_vue@3.5.12-DofREeSi.js b/js/vue-router@4.3.2_vue@3.5.12-DofREeSi.js new file mode 100644 index 00000000..63abc0e2 --- /dev/null +++ b/js/vue-router@4.3.2_vue@3.5.12-DofREeSi.js @@ -0,0 +1,5 @@ +import{s as nt,u as W,g as rt,e as ot,k as st}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{i as B,n as ct,Q as it,N as at,M as lt,l as Ge,j as N,h as qe,x as le,w as ut}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";/*! + * vue-router v4.3.2 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const q=typeof document<"u";function ft(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const S=Object.assign;function ue(e,t){const n={};for(const r in t){const o=t[r];n[r]=L(o)?o.map(e):e(o)}return n}const F=()=>{},L=Array.isArray,ze=/#/g,ht=/&/g,dt=/\//g,pt=/=/g,mt=/\?/g,Ue=/\+/g,gt=/%5B/g,vt=/%5D/g,Ke=/%5E/g,yt=/%60/g,Ve=/%7B/g,Rt=/%7C/g,De=/%7D/g,Et=/%20/g;function ge(e){return encodeURI(""+e).replace(Rt,"|").replace(gt,"[").replace(vt,"]")}function Pt(e){return ge(e).replace(Ve,"{").replace(De,"}").replace(Ke,"^")}function de(e){return ge(e).replace(Ue,"%2B").replace(Et,"+").replace(ze,"%23").replace(ht,"%26").replace(yt,"`").replace(Ve,"{").replace(De,"}").replace(Ke,"^")}function wt(e){return de(e).replace(pt,"%3D")}function St(e){return ge(e).replace(ze,"%23").replace(mt,"%3F")}function kt(e){return e==null?"":St(e).replace(dt,"%2F")}function X(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Ct=/\/$/,bt=e=>e.replace(Ct,"");function fe(e,t,n="/"){let r,o={},u="",d="";const g=t.indexOf("#");let i=t.indexOf("?");return g=0&&(i=-1),i>-1&&(r=t.slice(0,i),u=t.slice(i+1,g>-1?g:t.length),o=e(u)),g>-1&&(r=r||t.slice(0,g),d=t.slice(g,t.length)),r=xt(r??t,n),{fullPath:r+(u&&"?")+u+d,path:r,query:o,hash:X(d)}}function At(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ke(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _t(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&z(t.matched[r],n.matched[o])&&Qe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function z(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ot(e[n],t[n]))return!1;return!0}function Ot(e,t){return L(e)?Ce(e,t):L(t)?Ce(t,e):e===t}function Ce(e,t){return L(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function xt(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 u=n.length-1,d,g;for(d=0;d1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(d).join("/")}var Z;(function(e){e.pop="pop",e.push="push"})(Z||(Z={}));var Y;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Y||(Y={}));function Mt(e){if(!e)if(q){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),bt(e)}const Lt=/^[^#]+#/;function Nt(e,t){return e.replace(Lt,"#")+t}function jt(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 te=()=>({left:window.scrollX,top:window.scrollY});function It(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=jt(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function be(e,t){return(history.state?history.state.position-t:-1)+e}const pe=new Map;function Tt(e,t){pe.set(e,t)}function $t(e){const t=pe.get(e);return pe.delete(e),t}let Bt=()=>location.protocol+"//"+location.host;function We(e,t){const{pathname:n,search:r,hash:o}=t,u=e.indexOf("#");if(u>-1){let g=o.includes(e.slice(u))?e.slice(u).length:1,i=o.slice(g);return i[0]!=="/"&&(i="/"+i),ke(i,"")}return ke(n,e)+r+o}function Ht(e,t,n,r){let o=[],u=[],d=null;const g=({state:a})=>{const m=We(e,location),R=n.value,b=t.value;let C=0;if(a){if(n.value=m,t.value=a,d&&d===R){d=null;return}C=b?a.position-b.position:0}else r(m);o.forEach(E=>{E(n.value,R,{delta:C,type:Z.pop,direction:C?C>0?Y.forward:Y.back:Y.unknown})})};function i(){d=n.value}function f(a){o.push(a);const m=()=>{const R=o.indexOf(a);R>-1&&o.splice(R,1)};return u.push(m),m}function s(){const{history:a}=window;a.state&&a.replaceState(S({},a.state,{scroll:te()}),"")}function l(){for(const a of u)a();u=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",s)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:i,listen:f,destroy:l}}function Ae(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?te():null}}function Gt(e){const{history:t,location:n}=window,r={value:We(e,n)},o={value:t.state};o.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(i,f,s){const l=e.indexOf("#"),a=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+i:Bt()+e+i;try{t[s?"replaceState":"pushState"](f,"",a),o.value=f}catch(m){console.error(m),n[s?"replace":"assign"](a)}}function d(i,f){const s=S({},t.state,Ae(o.value.back,i,o.value.forward,!0),f,{position:o.value.position});u(i,s,!0),r.value=i}function g(i,f){const s=S({},o.value,t.state,{forward:i,scroll:te()});u(s.current,s,!0);const l=S({},Ae(r.value,i,null),{position:s.position+1},f);u(i,l,!1),r.value=i}return{location:r,state:o,push:g,replace:d}}function qt(e){e=Mt(e);const t=Gt(e),n=Ht(e,t.state,t.location,t.replace);function r(u,d=!0){d||n.pauseListeners(),history.go(u)}const o=S({location:"",base:e,go:r,createHref:Nt.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 gn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),qt(e)}function zt(e){return typeof e=="string"||e&&typeof e=="object"}function Fe(e){return typeof e=="string"||typeof e=="symbol"}const T={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ye=Symbol("");var _e;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_e||(_e={}));function U(e,t){return S(new Error,{type:e,[Ye]:!0},t)}function I(e,t){return e instanceof Error&&Ye in e&&(t==null||!!(e.type&t))}const Oe="[^/]+?",Ut={sensitive:!1,strict:!1,start:!0,end:!0},Kt=/[.+*?^${}()[\]/\\]/g;function Vt(e,t){const n=S({},Ut,t),r=[];let o=n.start?"^":"";const u=[];for(const f of e){const s=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let l=0;lt.length?t.length===1&&t[0]===80?1:-1:0}function Qt(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Wt={type:0,value:""},Ft=/[a-zA-Z0-9_]/;function Yt(e){if(!e)return[[]];if(e==="/")return[[Wt]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${f}": ${m}`)}let n=0,r=n;const o=[];let u;function d(){u&&o.push(u),u=[]}let g=0,i,f="",s="";function l(){f&&(n===0?u.push({type:0,value:f}):n===1||n===2||n===3?(u.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:f,regexp:s,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),f="")}function a(){f+=i}for(;g{d(P)}:F}function d(s){if(Fe(s)){const l=r.get(s);l&&(r.delete(s),n.splice(n.indexOf(l),1),l.children.forEach(d),l.alias.forEach(d))}else{const l=n.indexOf(s);l>-1&&(n.splice(l,1),s.record.name&&r.delete(s.record.name),s.children.forEach(d),s.alias.forEach(d))}}function g(){return n}function i(s){let l=0;for(;l=0&&(s.record.path!==n[l].record.path||!Xe(s,n[l]));)l++;n.splice(l,0,s),s.record.name&&!Le(s)&&r.set(s.record.name,s)}function f(s,l){let a,m={},R,b;if("name"in s&&s.name){if(a=r.get(s.name),!a)throw U(1,{location:s});b=a.record.name,m=S(Me(l.params,a.keys.filter(P=>!P.optional).concat(a.parent?a.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),s.params&&Me(s.params,a.keys.map(P=>P.name))),R=a.stringify(m)}else if(s.path!=null)R=s.path,a=n.find(P=>P.re.test(R)),a&&(m=a.parse(R),b=a.record.name);else{if(a=l.name?r.get(l.name):n.find(P=>P.re.test(l.path)),!a)throw U(1,{location:s,currentLocation:l});b=a.record.name,m=S({},l.params,s.params),R=a.stringify(m)}const C=[];let E=a;for(;E;)C.unshift(E.record),E=E.parent;return{name:b,path:R,params:m,matched:C,meta:tn(C)}}return e.forEach(s=>u(s)),{addRoute:u,resolve:f,removeRoute:d,getRoutes:g,getRecordMatcher:o}}function Me(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Jt(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:en(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 en(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 Le(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tn(e){return e.reduce((t,n)=>S(t,n.meta),{})}function Ne(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Xe(e,t){return t.children.some(n=>n===e||Xe(e,n))}function nn(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;ou&&de(u)):[r&&de(r)]).forEach(u=>{u!==void 0&&(t+=(t.length?"&":"")+n,u!=null&&(t+="="+u))})}return t}function rn(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=L(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Ze=Symbol(""),Ie=Symbol(""),ne=Symbol(""),ve=Symbol(""),me=Symbol("");function Q(){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 on(e,t,n){const r=()=>{e[t].delete(n)};it(r),at(r),lt(()=>{e[t].add(n)}),e[t].add(n)}function vn(e){const t=B(Ze,{}).value;t&&on(t,"updateGuards",e)}function $(e,t,n,r,o,u=d=>d()){const d=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((g,i)=>{const f=a=>{a===!1?i(U(4,{from:n,to:t})):a instanceof Error?i(a):zt(a)?i(U(2,{from:t,to:a})):(d&&r.enterCallbacks[o]===d&&typeof a=="function"&&d.push(a),g())},s=u(()=>e.call(r&&r.instances[o],t,n,f));let l=Promise.resolve(s);e.length<3&&(l=l.then(f)),l.catch(a=>i(a))})}function he(e,t,n,r,o=u=>u()){const u=[];for(const d of e)for(const g in d.components){let i=d.components[g];if(!(t!=="beforeRouteEnter"&&!d.instances[g]))if(sn(i)){const s=(i.__vccOpts||i)[t];s&&u.push($(s,n,r,d,g,o))}else{let f=i();u.push(()=>f.then(s=>{if(!s)return Promise.reject(new Error(`Couldn't resolve component "${g}" at "${d.path}"`));const l=ft(s)?s.default:s;d.components[g]=l;const m=(l.__vccOpts||l)[t];return m&&$(m,n,r,d,g,o)()}))}}return u}function sn(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Te(e){const t=B(ne),n=B(ve),r=N(()=>{const i=W(e.to);return t.resolve(i)}),o=N(()=>{const{matched:i}=r.value,{length:f}=i,s=i[f-1],l=n.matched;if(!s||!l.length)return-1;const a=l.findIndex(z.bind(null,s));if(a>-1)return a;const m=$e(i[f-2]);return f>1&&$e(s)===m&&l[l.length-1].path!==m?l.findIndex(z.bind(null,i[f-2])):a}),u=N(()=>o.value>-1&&un(n.params,r.value.params)),d=N(()=>o.value>-1&&o.value===n.matched.length-1&&Qe(n.params,r.value.params));function g(i={}){return ln(i)?t[W(e.replace)?"replace":"push"](W(e.to)).catch(F):Promise.resolve()}return{route:r,href:N(()=>r.value.href),isActive:u,isExactActive:d,navigate:g}}const cn=Ge({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:Te,setup(e,{slots:t}){const n=ot(Te(e)),{options:r}=B(ne),o=N(()=>({[Be(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Be(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&t.default(n);return e.custom?u:qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},u)}}}),an=cn;function ln(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 un(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(!L(o)||o.length!==r.length||r.some((u,d)=>u!==o[d]))return!1}return!0}function $e(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Be=(e,t,n)=>e??t??n,fn=Ge({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=B(me),o=N(()=>e.route||r.value),u=B(Ie,0),d=N(()=>{let f=W(u);const{matched:s}=o.value;let l;for(;(l=s[f])&&!l.components;)f++;return f}),g=N(()=>o.value.matched[d.value]);le(Ie,N(()=>d.value+1)),le(Ze,g),le(me,o);const i=st();return ut(()=>[i.value,g.value,e.name],([f,s,l],[a,m,R])=>{s&&(s.instances[l]=f,m&&m!==s&&f&&f===a&&(s.leaveGuards.size||(s.leaveGuards=m.leaveGuards),s.updateGuards.size||(s.updateGuards=m.updateGuards))),f&&s&&(!m||!z(s,m)||!a)&&(s.enterCallbacks[l]||[]).forEach(b=>b(f))},{flush:"post"}),()=>{const f=o.value,s=e.name,l=g.value,a=l&&l.components[s];if(!a)return He(n.default,{Component:a,route:f});const m=l.props[s],R=m?m===!0?f.params:typeof m=="function"?m(f):m:null,C=qe(a,S({},R,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(l.instances[s]=null)},ref:i}));return He(n.default,{Component:C,route:f})||C}}});function He(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const hn=fn;function yn(e){const t=Zt(e.routes,e),n=e.parseQuery||nn,r=e.stringifyQuery||je,o=e.history,u=Q(),d=Q(),g=Q(),i=nt(T);let f=T;q&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const s=ue.bind(null,c=>""+c),l=ue.bind(null,kt),a=ue.bind(null,X);function m(c,p){let h,v;return Fe(c)?(h=t.getRecordMatcher(c),v=p):v=c,t.addRoute(v,h)}function R(c){const p=t.getRecordMatcher(c);p&&t.removeRoute(p)}function b(){return t.getRoutes().map(c=>c.record)}function C(c){return!!t.getRecordMatcher(c)}function E(c,p){if(p=S({},p||i.value),typeof c=="string"){const y=fe(n,c,p.path),_=t.resolve({path:y.path},p),D=o.createHref(y.fullPath);return S(y,_,{params:a(_.params),hash:X(y.hash),redirectedFrom:void 0,href:D})}let h;if(c.path!=null)h=S({},c,{path:fe(n,c.path,p.path).path});else{const y=S({},c.params);for(const _ in y)y[_]==null&&delete y[_];h=S({},c,{params:l(y)}),p.params=l(p.params)}const v=t.resolve(h,p),k=c.hash||"";v.params=s(a(v.params));const A=At(r,S({},c,{hash:Pt(k),path:v.path})),w=o.createHref(A);return S({fullPath:A,hash:k,query:r===je?rn(c.query):c.query||{}},v,{redirectedFrom:void 0,href:w})}function P(c){return typeof c=="string"?fe(n,c,i.value.path):S({},c)}function O(c,p){if(f!==c)return U(8,{from:p,to:c})}function M(c){return K(c)}function H(c){return M(S(P(c),{replace:!0}))}function j(c){const p=c.matched[c.matched.length-1];if(p&&p.redirect){const{redirect:h}=p;let v=typeof h=="function"?h(c):h;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=P(v):{path:v},v.params={}),S({query:c.query,hash:c.hash,params:v.path!=null?{}:c.params},v)}}function K(c,p){const h=f=E(c),v=i.value,k=c.state,A=c.force,w=c.replace===!0,y=j(h);if(y)return K(S(P(y),{state:typeof y=="object"?S({},k,y.state):k,force:A,replace:w}),p||h);const _=h;_.redirectedFrom=p;let D;return!A&&_t(r,v,h)&&(D=U(16,{to:_,from:v}),we(v,v,!0,!1)),(D?Promise.resolve(D):ye(_,v)).catch(x=>I(x)?I(x,2)?x:ce(x):se(x,_,v)).then(x=>{if(x){if(I(x,2))return K(S({replace:w},P(x.to),{state:typeof x.to=="object"?S({},k,x.to.state):k,force:A}),p||_)}else x=Ee(_,v,!0,w,k);return Re(_,v,x),x})}function Je(c,p){const h=O(c,p);return h?Promise.reject(h):Promise.resolve()}function re(c){const p=ee.values().next().value;return p&&typeof p.runWithContext=="function"?p.runWithContext(c):c()}function ye(c,p){let h;const[v,k,A]=dn(c,p);h=he(v.reverse(),"beforeRouteLeave",c,p);for(const y of v)y.leaveGuards.forEach(_=>{h.push($(_,c,p))});const w=Je.bind(null,c,p);return h.push(w),G(h).then(()=>{h=[];for(const y of u.list())h.push($(y,c,p));return h.push(w),G(h)}).then(()=>{h=he(k,"beforeRouteUpdate",c,p);for(const y of k)y.updateGuards.forEach(_=>{h.push($(_,c,p))});return h.push(w),G(h)}).then(()=>{h=[];for(const y of A)if(y.beforeEnter)if(L(y.beforeEnter))for(const _ of y.beforeEnter)h.push($(_,c,p));else h.push($(y.beforeEnter,c,p));return h.push(w),G(h)}).then(()=>(c.matched.forEach(y=>y.enterCallbacks={}),h=he(A,"beforeRouteEnter",c,p,re),h.push(w),G(h))).then(()=>{h=[];for(const y of d.list())h.push($(y,c,p));return h.push(w),G(h)}).catch(y=>I(y,8)?y:Promise.reject(y))}function Re(c,p,h){g.list().forEach(v=>re(()=>v(c,p,h)))}function Ee(c,p,h,v,k){const A=O(c,p);if(A)return A;const w=p===T,y=q?history.state:{};h&&(v||w?o.replace(c.fullPath,S({scroll:w&&y&&y.scroll},k)):o.push(c.fullPath,k)),i.value=c,we(c,p,h,w),ce()}let V;function et(){V||(V=o.listen((c,p,h)=>{if(!Se.listening)return;const v=E(c),k=j(v);if(k){K(S(k,{replace:!0}),v).catch(F);return}f=v;const A=i.value;q&&Tt(be(A.fullPath,h.delta),te()),ye(v,A).catch(w=>I(w,12)?w:I(w,2)?(K(w.to,v).then(y=>{I(y,20)&&!h.delta&&h.type===Z.pop&&o.go(-1,!1)}).catch(F),Promise.reject()):(h.delta&&o.go(-h.delta,!1),se(w,v,A))).then(w=>{w=w||Ee(v,A,!1),w&&(h.delta&&!I(w,8)?o.go(-h.delta,!1):h.type===Z.pop&&I(w,20)&&o.go(-1,!1)),Re(v,A,w)}).catch(F)}))}let oe=Q(),Pe=Q(),J;function se(c,p,h){ce(c);const v=Pe.list();return v.length?v.forEach(k=>k(c,p,h)):console.error(c),Promise.reject(c)}function tt(){return J&&i.value!==T?Promise.resolve():new Promise((c,p)=>{oe.add([c,p])})}function ce(c){return J||(J=!c,et(),oe.list().forEach(([p,h])=>c?h(c):p()),oe.reset()),c}function we(c,p,h,v){const{scrollBehavior:k}=e;if(!q||!k)return Promise.resolve();const A=!h&&$t(be(c.fullPath,0))||(v||!h)&&history.state&&history.state.scroll||null;return ct().then(()=>k(c,p,A)).then(w=>w&&It(w)).catch(w=>se(w,c,p))}const ie=c=>o.go(c);let ae;const ee=new Set,Se={currentRoute:i,listening:!0,addRoute:m,removeRoute:R,hasRoute:C,getRoutes:b,resolve:E,options:e,push:M,replace:H,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:u.add,beforeResolve:d.add,afterEach:g.add,onError:Pe.add,isReady:tt,install(c){const p=this;c.component("RouterLink",an),c.component("RouterView",hn),c.config.globalProperties.$router=p,Object.defineProperty(c.config.globalProperties,"$route",{enumerable:!0,get:()=>W(i)}),q&&!ae&&i.value===T&&(ae=!0,M(o.location).catch(k=>{}));const h={};for(const k in T)Object.defineProperty(h,k,{get:()=>i.value[k],enumerable:!0});c.provide(ne,p),c.provide(ve,rt(h)),c.provide(me,i);const v=c.unmount;ee.add(c),c.unmount=function(){ee.delete(c),ee.size<1&&(f=T,V&&V(),V=null,i.value=T,ae=!1,J=!1),v()}}};function G(c){return c.reduce((p,h)=>p.then(()=>re(h)),Promise.resolve())}return Se}function dn(e,t){const n=[],r=[],o=[],u=Math.max(t.matched.length,e.matched.length);for(let d=0;dz(f,g))?r.push(g):n.push(g));const i=e.matched[d];i&&(t.matched.find(f=>z(f,i))||o.push(i))}return[n,r,o]}function Rn(){return B(ne)}function En(){return B(ve)}export{hn as R,En as a,gn as b,yn as c,vn as o,Rn as u}; diff --git a/js/vue-router@4.3.2_vue@3.5.12-DofREeSi.js.gz b/js/vue-router@4.3.2_vue@3.5.12-DofREeSi.js.gz new file mode 100644 index 00000000..ac3b960f Binary files /dev/null and b/js/vue-router@4.3.2_vue@3.5.12-DofREeSi.js.gz differ diff --git a/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js b/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js deleted file mode 100644 index 62ddc283..00000000 --- a/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js +++ /dev/null @@ -1 +0,0 @@ -const me={maskColor:{type:String,default:"rgba(255, 255, 255, 0.96)"},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:o=>[0,1,2,3].includes(o)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}};function we(o,t,e){const r=ie(t),i=o-1;let n=0;switch(e){case X.L:n=rt[i][0];break;case X.M:n=rt[i][1];break;case X.Q:n=rt[i][2];break;case X.H:n=rt[i][3];break}return r<=n}function be(o,t){for(var e=1,r=ie(o),i=0,n=rt.length;irt.length)throw new Error("Too long data");return e}function ie(o){var t=encodeURI(o).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=Number(o)?3:0)}class ye{constructor(t){this.mode=q.MODE_8BIT_BYTE,this.parsedData=[],this.data=t;const e=[];for(let r=0,i=this.data.length;r65536?(n[0]=240|(s&1835008)>>>18,n[1]=128|(s&258048)>>>12,n[2]=128|(s&4032)>>>6,n[3]=128|s&63):s>2048?(n[0]=224|(s&61440)>>>12,n[1]=128|(s&4032)>>>6,n[2]=128|s&63):s>128?(n[0]=192|(s&1984)>>>6,n[1]=128|s&63):n[0]=s,e.push(n)}this.parsedData=Array.prototype.concat.apply([],e),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}getLength(){return this.parsedData.length}write(t){for(let e=0,r=this.parsedData.length;e40)throw new Error(`Invalid QR version: ${this.typeNumber}`);if(!we(this.typeNumber,t,this.errorCorrectLevel))throw new Error(`Data is too long for QR version: ${this.typeNumber}`)}const e=new ye(t);this.dataList.push(e),this.dataCache=void 0}isDark(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(`${t},${e}`);return this.modules[t][e]}getModuleCount(){return this.moduleCount}make(){this.makeImpl(!1,this.getBestMaskPattern())}makeImpl(t,e){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(let r=0;r=7&&this.setupTypeNumber(t),this.dataCache==null&&(this.dataCache=ct.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)}setupPositionProbePattern(t,e){for(let r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(let i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(0<=r&&r<=6&&(i==0||i==6)||0<=i&&i<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=i&&i<=4?this.modules[t+r][e+i]=!0:this.modules[t+r][e+i]=!1)}getBestMaskPattern(){if(Number.isInteger(this.maskPattern)&&Object.values(nt).includes(this.maskPattern))return this.maskPattern;let t=0,e=0;for(let r=0;r<8;r++){this.makeImpl(!0,r);const i=L.getLostPoint(this);(r==0||t>i)&&(t=i,e=r)}return e}setupTimingPattern(){for(let t=8;t>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=i}for(var r=0;r<18;r++){var i=!t&&(e>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=i}}setupTypeInfo(t,e){const r=this.errorCorrectLevel<<3|e,i=L.getBCHTypeInfo(r);for(var n=0;n<15;n++){var s=!t&&(i>>n&1)==1;n<6?this.modules[n][8]=s:n<8?this.modules[n+1][8]=s:this.modules[this.moduleCount-15+n][8]=s}for(var n=0;n<15;n++){var s=!t&&(i>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=s:n<9?this.modules[8][15-n-1+1]=s:this.modules[8][15-n-1]=s}this.modules[this.moduleCount-8][8]=!t}mapData(t,e){let r=-1,i=this.moduleCount-1,n=7,s=0;for(let a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(let l=0;l<2;l++)if(this.modules[i][a-l]==null){let c=!1;s>>n&1)==1),L.getMask(e,i,a-l)&&(c=!c),this.modules[i][a-l]=c,n--,n==-1&&(s++,n=7)}if(i+=r,i<0||this.moduleCount<=i){i-=r,r=-r;break}}}static createData(t,e,r){const i=st.getRSBlocks(t,e),n=new Ce;for(var s=0;sa*8)throw new Error(`code length overflow. (${n.getLengthInBits()}>${a*8})`);for(n.getLengthInBits()+4<=a*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=a*8||(n.put(ct.PAD0,8),n.getLengthInBits()>=a*8));)n.put(ct.PAD1,8);return ct.createBytes(n,i)}static createBytes(t,e){let r=0,i=0,n=0;const s=new Array(e.length),a=new Array(e.length);for(var l=0;l=0?g.get(P):0}}let h=0;for(var c=0;c=0;)e^=L.G15<=0;)e^=L.G18<>>=1;return e}static getPatternPosition(t){return L.PATTERN_POSITION_TABLE[t-1]}static getMask(t,e,r){switch(t){case nt.PATTERN000:return(e+r)%2==0;case nt.PATTERN001:return e%2==0;case nt.PATTERN010:return r%3==0;case nt.PATTERN011:return(e+r)%3==0;case nt.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case nt.PATTERN101:return e*r%2+e*r%3==0;case nt.PATTERN110:return(e*r%2+e*r%3)%2==0;case nt.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error(`bad maskPattern:${t}`)}}static getErrorCorrectPolynomial(t){let e=new pt([1],0);for(let r=0;r5&&(r+=3+l-5)}for(var i=0;i=256;)t-=255;return j.EXP_TABLE[t]}}j.EXP_TABLE=new Array(256);j.LOG_TABLE=new Array(256);j._constructor=function(){for(var o=0;o<8;o++)j.EXP_TABLE[o]=1<>>7-t%8&1)==1}put(t,e){for(let r=0;r>>e-r-1&1)==1)}getLengthInBits(){return this.length}putBit(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}const rt=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function et(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function Xt(o,t){for(var e="",r=0,i=-1,n=0,s,a=0;a<=o.length;++a){if(a2){var l=e.lastIndexOf("/");if(l!==e.length-1){l===-1?(e="",r=0):(e=e.slice(0,l),r=e.length-1-e.lastIndexOf("/")),i=a,n=0;continue}}else if(e.length===2||e.length===1){e="",r=0,i=a,n=0;continue}}t&&(e.length>0?e+="/..":e="..",r=2)}else e.length>0?e+="/"+o.slice(i+1,a):e=o.slice(i+1,a),r=a-i-1;i=a,n=0}else s===46&&n!==-1?++n:n=-1}return e}function Ae(o,t){var e=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return e?e===t.root?e+r:e+o+r:r}var ft={resolve:function(){for(var t="",e=!1,r,i=arguments.length-1;i>=-1&&!e;i--){var n;i>=0?n=arguments[i]:(r===void 0&&(r=process.cwd()),n=r),et(n),n.length!==0&&(t=n+"/"+t,e=n.charCodeAt(0)===47)}return t=Xt(t,!e),e?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(et(t),t.length===0)return".";var e=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Xt(t,!e),t.length===0&&!e&&(t="."),t.length>0&&r&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return et(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,e=0;e0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":ft.normalize(t)},relative:function(t,e){if(et(t),et(e),t===e||(t=ft.resolve(t),e=ft.resolve(e),t===e))return"";for(var r=1;rc){if(e.charCodeAt(s+f)===47)return e.slice(s+f+1);if(f===0)return e.slice(s+f)}else n>c&&(t.charCodeAt(r+f)===47?h=f:f===0&&(h=0));break}var v=t.charCodeAt(r+f),A=e.charCodeAt(s+f);if(v!==A)break;v===47&&(h=f)}var k="";for(f=r+h+1;f<=i;++f)(f===i||t.charCodeAt(f)===47)&&(k.length===0?k+="..":k+="/..");return k.length>0?k+e.slice(s+h):(s+=h,e.charCodeAt(s)===47&&++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(et(t),t.length===0)return".";for(var e=t.charCodeAt(0),r=e===47,i=-1,n=!0,s=t.length-1;s>=1;--s)if(e=t.charCodeAt(s),e===47){if(!n){i=s;break}}else n=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');et(t);var r=0,i=-1,n=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,l=-1;for(s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(c===47){if(!n){r=s+1;break}}else l===-1&&(n=!1,l=s+1),a>=0&&(c===e.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return r===i?i=l:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!n){r=s+1;break}}else i===-1&&(n=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){et(t);for(var e=-1,r=0,i=-1,n=!0,s=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(l===47){if(!n){r=a+1;break}continue}i===-1&&(n=!1,i=a+1),l===46?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===r+1?"":t.slice(e,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return Ae("/",t)},parse:function(t){et(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;var r=t.charCodeAt(0),i=r===47,n;i?(e.root="/",n=1):n=0;for(var s=-1,a=0,l=-1,c=!0,h=t.length-1,f=0;h>=n;--h){if(r=t.charCodeAt(h),r===47){if(!c){a=h+1;break}continue}l===-1&&(c=!1,l=h+1),r===46?s===-1?s=h:f!==1&&(f=1):s!==-1&&(f=-1)}return s===-1||l===-1||f===0||f===1&&s===l-1&&s===a+1?l!==-1&&(a===0&&i?e.base=e.name=t.slice(1,l):e.base=e.name=t.slice(a,l)):(a===0&&i?(e.name=t.slice(1,s),e.base=t.slice(1,l)):(e.name=t.slice(a,s),e.base=t.slice(a,l)),e.ext=t.slice(s,l)),a>0?e.dir=t.slice(0,a-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};ft.posix=ft;const Pe=ft.extname,oe=ft.basename;class Be{constructor(){let t=typeof global>"u",e="image/png",r="image/jpeg",i="image/jpeg",n="image/webp",s="application/pdf",a="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:t?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:t?{png:e,jpg:r,jpeg:i,webp:n}:{png:e,jpg:r,jpeg:i,pdf:s,svg:a},mimes:t?{[e]:"png",[r]:"jpg",[n]:"webp"}:{[e]:"png",[r]:"jpg",[s]:"pdf",[a]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}function De(o,{filename:t="",extension:e="",format:T,page:i,quality:n,matte:s,density:a,outline:l,archive:A}={}){var{fromMime:h,toMime:f,expected:v}=new Be,A=A||"canvas",k=T||e.replace(/@\d+x$/i,"")||Pe(t),T=h(f(k)||k),M=f(T),g=o.length;if(!k)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!T)throw new Error(`Unsupported file format "${k}" (expected ${v})`);if(!g)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let p,P,d=t.replace(/{(\d*)}/g,(m,y)=>(P=!0,y=parseInt(y,10),p=isFinite(y)?y:isFinite(p)?p:-1,"{}")),b=i>0?i-1:i<0?g+i:void 0;if(isFinite(b)&&b<0||b>=g)throw new RangeError(g==1?`Canvas only has a ‘page 1’ (${b} is out of bounds)`:`Canvas has pages 1–${g} (${b} is out of bounds)`);if(o=isFinite(b)?[o[b]]:P||T=="pdf"?o:o.slice(-1),n===void 0)n=.92;else if(typeof n!="number"||!isFinite(n)||n<0||n>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(a===void 0){let m=(e||oe(t,k)).match(/@(\d+)x$/i);a=m?parseInt(m[1],10):1}else if(typeof a!="number"||!Number.isInteger(a)||a<1)throw new TypeError("The density option must be a non-negative integer");return l===void 0?l=!0:T=="svg"&&(l=!!l),{filename:t,pattern:d,format:T,mime:M,pages:o,padding:p,quality:n,matte:s,density:a,outline:l,archive:A}}class Dt{static for(t){return new Dt().append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=this.crc|0,r=this.table,i=0,n=t.length|0;i>>8^r[(e^t[i])&255];return this.crc=e,this}}Dt.prototype.table=(()=>{var o,t,e,r=[];for(o=0;o<256;o++){for(e=o,t=0;t<8;t++)e=e&1?e>>>1^3988292384:e>>>1;r[o]=e}return r})();function St(o){let t=new Uint8Array(o),e=new DataView(t.buffer),r={array:t,view:e,size:o,set8(i,n){return e.setUint8(i,n),r},set16(i,n){return e.setUint16(i,n,!0),r},set32(i,n){return e.setUint32(i,n,!0),r},bytes(i,n){return t.set(n,i),r}};return r}class kt{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let r=!e,i=kt.encoder.encode(`${this.directory}/${r?"":t}`),n=new Uint8Array(r?0:await e.arrayBuffer()),s=30+i.length,a=s+n.length,l=16,{offset:c}=this,h=St(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,Dt.for(n)).set32(14,n.length).set32(18,n.length).set16(22,i.length);c+=s;let f=St(s+n.length+l).set32(0,67324752).bytes(4,h.array).bytes(30,i).bytes(s,n);c+=n.length,f.set32(a,134695760).bytes(a+4,h.array.slice(10,22)),c+=l,this.files.push({offset:c,folder:r,name:i,header:h,payload:f}),this.offset=c}toBuffer(){let t=this.files.reduce((f,{name:v})=>46+v.length+f,0),e=St(t+22),r=0;for(var{offset:i,name:n,header:s,folder:a}of this.files)e.set32(r,33639248).set16(r+4,20).bytes(r+6,s.array).set8(r+38,a?16:0).set32(r+42,i).bytes(r+46,n),r+=46+n.length;e.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let l=new Uint8Array(this.offset+e.size),c=0;for(var{payload:h}of this.files)l.set(h.array,c),c+=h.size;return l.set(e.array,c),l}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}kt.encoder=new TextEncoder;const $t=(o,t,e,r)=>{if(r){let{width:i,height:n}=o,s=Object.assign(document.createElement("canvas"),{width:i,height:n}),a=s.getContext("2d");a.fillStyle=r,a.fillRect(0,0,i,n),a.drawImage(o,0,0),o=s}return new Promise((i,n)=>o.toBlob(i,t,e))},ke=(...o)=>$t(...o).then(t=>t.arrayBuffer()),Te=async(o,t,e,r,i)=>{ne(i,await $t(o,t,e,r))},Ee=async(o,t,e,r,i,n,s)=>{let a=h=>n.replace("{}",String(h+1).padStart(s,"0")),l=oe(i,".zip")||"archive",c=new kt(l);await Promise.all(o.map(async(h,f)=>{let v=a(f);await c.add(v,await $t(h,t,e,r))})),ne(`${l}.zip`,c.blob)},ne=(o,t)=>{const e=window.URL.createObjectURL(t),r=document.createElement("a");r.style.display="none",r.href=e,r.setAttribute("download",o),typeof r.download>"u"&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>window.URL.revokeObjectURL(e),100)},Ie=(o,t,e)=>o.map(r=>{if(t==1&&!e)return r.canvas;let i=document.createElement("canvas"),n=i.getContext("2d"),s=r.canvas?r.canvas:r;return i.width=s.width*t,i.height=s.height*t,e&&(n.fillStyle=e,n.fillRect(0,0,i.width,i.height)),n.scale(t,t),n.drawImage(s,0,0),i}),xe={asBuffer:ke,asDownload:Te,asZipDownload:Ee,atScale:Ie,options:De},{asBuffer:_t,asDownload:Se,asZipDownload:_e,atScale:Lt,options:Mt}=xe,Zt=Symbol.for("toDataURL"),Le=o=>new Promise((t,e)=>Object.assign(new se,{crossOrigin:"Anonymous",onload:t,onerror:e,src:o}));let Me=class{constructor(t,e){let r=document.createElement("canvas"),i=[];Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0});for(var[n,s]of Object.entries({png:()=>_t(r,"image/png"),jpg:()=>_t(r,"image/jpeg"),pages:()=>i.concat(r).map(a=>a.getContext("2d"))}))Object.defineProperty(r,n,{get:s});return Object.assign(r,{width:t,height:e,newPage(...a){var{width:c,height:h}=r,l=Object.assign(document.createElement("canvas"),{width:c,height:h});l.getContext("2d").drawImage(r,0,0),i.push(l);var[c,h]=a.length?a:[c,h];return Object.assign(r,{width:c,height:h}).getContext("2d")},saveAs(a,l){l=typeof l=="number"?{quality:l}:l;let c=Mt(this.pages,{filename:a,...l}),{pattern:h,padding:f,mime:v,quality:A,matte:k,density:T,archive:M}=c,g=Lt(c.pages,T);return f==null?Se(g[0],v,A,k,a):_e(g,v,A,k,M,h,f)},toBuffer(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Mt(this.pages,{extension:a,...l}),{mime:h,quality:f,matte:v,pages:A,density:k}=c,T=Lt(A,k,v)[0];return _t(T,h,f,v)},[Zt]:r.toDataURL.bind(r),toDataURL(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Mt(this.pages,{extension:a,...l}),{mime:h,quality:f,matte:v,pages:A,density:k}=c,T=Lt(A,k,v)[0],M=T[T===r?Zt:"toDataURL"](h,f);return Promise.resolve(M)}})}};const{CanvasRenderingContext2D:Ne,CanvasGradient:Re,CanvasPattern:Oe,Image:se,ImageData:$e,Path2D:Fe,DOMMatrix:Ue,DOMRect:Ge,DOMPoint:je}=window,Ve={Canvas:Me,loadImage:Le,CanvasRenderingContext2D:Ne,CanvasGradient:Re,CanvasPattern:Oe,Image:se,ImageData:$e,Path2D:Fe,DOMMatrix:Ue,DOMRect:Ge,DOMPoint:je},wt=(o,t,e={},r=e)=>{if(Array.isArray(t))t.forEach(i=>wt(o,i,e,r));else if(typeof t=="function")t(o,e,r,wt);else{const i=Object.keys(t)[0];Array.isArray(t[i])?(r[i]={},wt(o,t[i],e,r[i])):r[i]=t[i](o,e,r,wt)}return e},dt=(o,t)=>(e,r,i,n)=>{t(e,r,i)&&n(e,o,r,i)},ze=(o,t)=>(e,r,i,n)=>{const s=[];let a=e.pos;for(;t(e,r,i);){const l={};if(n(e,o,r,l),e.pos===a)break;a=e.pos,s.push(l)}return s},He=o=>({data:o,pos:0}),W=()=>o=>o.data[o.pos++],ae=(o=0)=>t=>t.data[t.pos+o],it=o=>t=>t.data.subarray(t.pos,t.pos+=o),Tt=o=>t=>t.data.subarray(t.pos,t.pos+o),Rt=o=>t=>Array.from(it(o)(t)).map(e=>String.fromCharCode(e)).join(""),ht=o=>t=>{const e=it(2)(t);return(e[1]<<8)+e[0]},le=(o,t)=>(e,r,i)=>{const n=typeof t=="function"?t(e,r,i):t,s=it(o),a=new Array(n);for(var l=0;l{for(var r=0,i=0;it=>{const e=W()(t),r=new Array(8);for(var i=0;i<8;i++)r[7-i]=!!(e&1<{const a=o[s];return a.length?n[s]=Ke(r,a.index,a.length):n[s]=r[a.index],n},{})};var Et={blocks:o=>{const e=[],r=o.data.length;for(var i=0,n=W()(o);n!==0&&n;n=W()(o)){if(o.pos+n>=r){const c=r-o.pos;e.push(it(c)(o)),i+=c;break}e.push(it(n)(o)),i+=n}const s=new Uint8Array(i);for(var a=0,l=0;l{var t=Tt(2)(o);return t[0]===33&&t[1]===249}),Ze=dt({image:[{code:W()},{descriptor:[{left:ht()},{top:ht()},{width:ht()},{height:ht()},{lct:Ft({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},dt({lct:le(3,(o,t,e)=>Math.pow(2,e.descriptor.lct.size+1))},(o,t,e)=>e.descriptor.lct.exists),{data:[{minCodeSize:W()},Et]}]},o=>ae()(o)===44),qe=dt({text:[{codes:it(2)},{blockSize:W()},{preData:(o,t,e)=>it(e.text.blockSize)(o)},Et]},o=>{var t=Tt(2)(o);return t[0]===33&&t[1]===1}),Je=dt({application:[{codes:it(2)},{blockSize:W()},{id:(o,t,e)=>Rt(e.blockSize)(o)},Et]},o=>{var t=Tt(2)(o);return t[0]===33&&t[1]===255}),We=dt({comment:[{codes:it(2)},Et]},o=>{var t=Tt(2)(o);return t[0]===33&&t[1]===254}),Ye=[{header:[{signature:Rt(3)},{version:Rt(3)}]},{lsd:[{width:ht()},{height:ht()},{gct:Ft({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:W()},{pixelAspectRatio:W()}]},dt({gct:le(3,(o,t)=>Math.pow(2,t.lsd.gct.size+1))},(o,t)=>t.lsd.gct.exists),{frames:ze([Xe,Je,We,Ze,qe],o=>{var t=ae()(o);return t===33||t===44})}],Qe=(o,t)=>{const e=new Array(o.length),r=o.length/t,i=function(h,f){const v=o.slice(f*t,(f+1)*t);e.splice.apply(e,[h*t,t].concat(v))},n=[0,4,2,1],s=[8,8,4,2];for(var a=0,l=0;l<4;l++)for(var c=n[l];c{const n=e;var s,a,l,c,h,f,v,b,A,k,d,T,m,y,I,B;const M=new Array(e),g=new Array(4096),p=new Array(4096),P=new Array(4097);for(T=o,a=1<>=c,b-=c,A>s||A==h)break;if(A==a){c=T+1,l=(1<a;)P[y++]=p[A],A=g[A];m=p[A]&255,P[y++]=m,s<4096&&(g[s]=v,p[s]=m,s++,!(s&l)&&s<4096&&(c++,l+=s)),v=f}y--,M[B++]=P[y],k++}for(k=B;k{const t=new Uint8Array(o);return wt(He(t),Ye)},rr=o=>{const t=o.pixels.length,e=new Uint8ClampedArray(t*4);for(var r=0;r{if(!o.image){console.warn("gif frame does not have associated image.");return}const{image:r}=o,i=r.descriptor.width*r.descriptor.height;var n=tr(r.data.minCodeSize,r.data.blocks,i);r.descriptor.lct.interlaced&&(n=Qe(n,r.descriptor.width));const s={pixels:n,dims:{top:o.image.descriptor.top,left:o.image.descriptor.left,width:o.image.descriptor.width,height:o.image.descriptor.height}};return r.descriptor.lct&&r.descriptor.lct.exists?s.colorTable=r.lct:s.colorTable=t,o.gce&&(s.delay=(o.gce.delay||10)*10,s.disposalType=o.gce.extras.disposal,o.gce.extras.transparentColorGiven&&(s.transparentIndex=o.gce.transparentColorIndex)),s.patch=rr(s),s},or=(o,t)=>o.frames.filter(e=>e.image).map(e=>ir(e,o.gct));var nr=100,H=256,qt=H-1,lt=4,ce=16,Ut=1<>Gt,ar=Ut<>3,Ot=6,cr=1<>3);var g,p;for(g=0;g>=lt,e[g][1]>>=lt,e[g][2]>>=lt,e[g][3]=g}function c(g,p,P,d,b){e[p][0]-=g*(e[p][0]-P)/yt,e[p][1]-=g*(e[p][1]-d)/yt,e[p][2]-=g*(e[p][2]-b)/yt}function h(g,p,P,d,b){for(var m=Math.abs(p-g),y=Math.min(p+g,H),B=p+1,I=p-1,N=1,u,R;Bm;)R=s[N++],Bm&&(u=e[I--],u[0]-=R*(u[0]-P)/gt,u[1]-=R*(u[1]-d)/gt,u[2]-=R*(u[2]-b)/gt)}function f(g,p,P){var d=2147483647,b=d,m=-1,y=m,B,I,N,u,R;for(B=0;B>ce-lt),u>Gt,n[B]-=R,i[B]+=R<>1,p=y+1;p>1,p=y+1;p<256;p++)r[p]=qt}function A(g,p,P){for(var d,b,m,y=1e3,B=-1,I=r[p],N=I-1;I=0;)I=y?I=H:(I++,m<0&&(m=-m),d=b[0]-g,d<0&&(d=-d),m+=d,m=0&&(b=e[N],m=p-b[1],m>=y?N=-1:(N--,m<0&&(m=-m),d=b[0]-g,d<0&&(d=-d),m+=d,m>Ot;for(B<=1&&(B=0),g=0;g=p&&(O-=p),g++,b===0&&(b=1),g%b===0)for(m-=m/P,y-=y/hr,B=y>>Ot,B<=1&&(B=0),C=0;C=254&&I(O)}function b(C){m(mt),f=T+2,A=!0,R(T,C)}function m(C){for(var O=0;O=0){at=V-G,G===0&&(at=1);do if((G-=at)<0&&(G+=V),s[G]===w){Y=a[G];continue t}while(s[G]>=0)}R(Y,O),Y=ut,f<1<0&&(C.writeByte(h),C.writeBytes(n,0,h),h=0)}function N(C){return(1<0?l|=C<=8;)d(l&255,O),l>>=8,c-=8;if((f>v||A)&&(A?(v=N(P=k),A=!1):(++P,P==Ct?v=1<0;)d(l&255,O),l>>=8,c-=8;I(O)}}this.encode=B}function Z(){this.page=-1,this.pages=[],this.newPage()}Z.pageSize=4096;Z.charMap={};for(var At=0;At<256;At++)Z.charMap[At]=String.fromCharCode(At);Z.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(Z.pageSize),this.cursor=0};Z.prototype.getData=function(){for(var o="",t=0;tr+i.length,0));return o.reduce((r,i)=>(e.set(i,r),r+i.length),0),e};Z.prototype.writeByte=function(o){this.cursor>=Z.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=o};Z.prototype.writeUTFBytes=function(o){for(var t=o.length,e=0;e=0&&(this.dispose=o)};$.prototype.setRepeat=function(o){this.repeat=o};$.prototype.setTransparent=function(o){this.transparent=o};$.prototype.addFrame=function(o){this.image=o,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),this.globalPalette===!0&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),!this.firstFrame&&!this.globalPalette&&this.writePalette(),this.writePixels(),this.firstFrame=!1};$.prototype.finish=function(){this.out.writeByte(59)};$.prototype.setQuality=function(o){o<1&&(o=1),this.sample=o};$.prototype.setDither=function(o){o===!0&&(o="FloydSteinberg"),this.dither=o};$.prototype.setGlobalPalette=function(o){this.globalPalette=o};$.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};$.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};$.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new gr(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,this.transparent!==null&&(this.transIndex=this.findClosest(this.transparent,!0))};$.prototype.indexPixels=function(o){var t=this.pixels.length/3;this.indexedPixels=new Uint8Array(t);for(var e=0,r=0;r=0&&B+h=0&&I+c>16,(o&65280)>>8,o&255,t)};$.prototype.findClosestRGB=function(o,t,e,r){if(this.colorTab===null)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(o,t,e);for(var i=0,n=256*256*256,s=this.colorTab.length,a=0,l=0;a=0&&(t=this.dispose&7),t<<=2,this.out.writeByte(0|t|0|o),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)};$.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)};$.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)};$.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)};$.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var o=3*256-this.colorTab.length,t=0;t>8&255)};$.prototype.writePixels=function(){var o=new vr(this.width,this.height,this.indexedPixels,this.colorDepth);o.encode(this.out)};$.prototype.stream=function(){return this.out};var mr=globalThis&&globalThis.__awaiter||function(o,t,e,r){function i(n){return n instanceof e?n:new e(function(s){s(n)})}return new(e||(e=Promise))(function(n,s){function a(h){try{c(r.next(h))}catch(f){s(f)}}function l(h){try{c(r.throw(h))}catch(f){s(f)}}function c(h){h.done?n(h.value):i(h.value).then(a,l)}c((r=r.apply(o,t||[])).next())})};const{Canvas:ot}=Ve,Pt=.4;function ee(o){if(!o)return;function t(e){e.onload=null,e.onerror=null}return new Promise(function(e,r){if(o.slice(0,4)=="data"){let n=new Image;n.onload=function(){e(n),t(n)},n.onerror=function(){r("Image load error"),t(n)},n.src=o;return}let i=new Image;i.setAttribute("crossOrigin","Anonymous"),i.onload=function(){e(i)},i.onerror=function(){r("Image load error")},i.src=o})}class _{constructor(t){const e=Object.assign({},t);if(Object.keys(_.defaultOptions).forEach(r=>{r in e||Object.defineProperty(e,r,{value:_.defaultOptions[r],enumerable:!0,writable:!0})}),e.components?typeof e.components=="object"&&Object.keys(_.defaultComponentOptions).forEach(r=>{r in e.components?Object.defineProperty(e.components,r,{value:Object.assign(Object.assign({},_.defaultComponentOptions[r]),e.components[r]),enumerable:!0,writable:!0}):Object.defineProperty(e.components,r,{value:_.defaultComponentOptions[r],enumerable:!0,writable:!0})}):e.components=_.defaultComponentOptions,e.dotScale!==null&&e.dotScale!==void 0){if(e.dotScale<=0||e.dotScale>1)throw new Error("dotScale should be in range (0, 1].");e.components.data.scale=e.dotScale,e.components.timing.scale=e.dotScale,e.components.alignment.scale=e.dotScale}this.options=e,this.canvas=new ot(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new ct(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}draw(){return new Promise(t=>this._draw().then(t))}_clear(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}static _prepareRoundedCornerClip(t,e,r,i,n,s){t.beginPath(),t.moveTo(e,r),t.arcTo(e+i,r,e+i,r+n,s),t.arcTo(e+i,r+n,e,r+n,s),t.arcTo(e,r+n,e,r,s),t.arcTo(e,r,e+i,r,s),t.closePath()}static _getAverageRGB(t){const r={r:0,g:0,b:0};let i,n,s=-4;const a={r:0,g:0,b:0};let l=0;n=t.naturalHeight||t.height,i=t.naturalWidth||t.width;const h=new ot(i,n).getContext("2d");if(!h)return r;h.drawImage(t,0,0);let f;try{f=h.getImageData(0,0,i,n)}catch{return r}for(;(s+=5*4)200||f.data[s+1]>200||f.data[s+2]>200||(++l,a.r+=f.data[s],a.g+=f.data[s+1],a.b+=f.data[s+2]);return a.r=~~(a.r/l),a.g=~~(a.g/l),a.b=~~(a.b/l),a}static _drawDot(t,e,r,i,n=0,s=1){t.fillRect((e+n)*i,(r+n)*i,s*i,s*i)}static _drawAlignProtector(t,e,r,i){t.clearRect((e-2)*i,(r-2)*i,5*i,5*i),t.fillRect((e-2)*i,(r-2)*i,5*i,5*i)}static _drawAlign(t,e,r,i,n=0,s=1,a,l){const c=t.fillStyle;t.fillStyle=a,new Array(4).fill(0).map((h,f)=>{_._drawDot(t,e-2+f,r-2,i,n,s),_._drawDot(t,e+2,r-2+f,i,n,s),_._drawDot(t,e+2-f,r+2,i,n,s),_._drawDot(t,e-2,r+2-f,i,n,s)}),_._drawDot(t,e,r,i,n,s),l||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((h,f)=>{_._drawDot(t,e-1+f,r-1,i,n,s),_._drawDot(t,e+1,r-1+f,i,n,s),_._drawDot(t,e+1-f,r+1,i,n,s),_._drawDot(t,e-1,r+1-f,i,n,s)})),t.fillStyle=c}_draw(){var t,e,r,i,n,s,a,l,c,h,f,v,A,k,T,M,g,p,P;return mr(this,void 0,void 0,function*(){const d=(t=this.qrCode)===null||t===void 0?void 0:t.moduleCount,b=this.options.size;let m=this.options.margin;(m<0||m*2>=b)&&(m=0);const y=Math.ceil(m),B=b-2*m,I=this.options.whiteMargin,N=this.options.backgroundDimming,u=Math.ceil(B/d),R=u*d,C=R+2*y,O=new ot(C,C),w=O.getContext("2d");this._clear(),w.save(),w.translate(y,y);const ut=new ot(C,C),G=ut.getContext("2d");let Y=null,at=[];if(this.options.gifBackground){const D=er(this.options.gifBackground);if(Y=D,at=or(D),this.options.autoColor){let E=0,x=0,S=0,z=0;for(let F=0;F200||U[1]>200||U[2]>200||U[0]===0&&U[1]===0&&U[2]===0||(z++,E+=U[0],x+=U[1],S+=U[2])}E=~~(E/z),x=~~(x/z),S=~~(S/z),this.options.colorDark=`rgb(${E},${x},${S})`}}else if(this.options.backgroundImage){const D=yield ee(this.options.backgroundImage);if(this.options.autoColor){const E=_._getAverageRGB(D);this.options.colorDark=`rgb(${E.r},${E.g},${E.b})`}G.drawImage(D,0,0,D.width,D.height,0,0,C,C),G.rect(0,0,C,C),G.fillStyle=N,G.fill()}else G.rect(0,0,C,C),G.fillStyle=this.options.colorLight,G.fill();const V=L.getPatternPosition(this.qrCode.typeNumber),Q=((r=(e=this.options.components)===null||e===void 0?void 0:e.data)===null||r===void 0?void 0:r.scale)||Pt,jt=(1-Q)*.5;for(let D=0;D=d-8)||E>=d-8&&D<8,z=D==6&&E>=8&&E<=d-8||E==6&&D>=8&&D<=d-8;let F=S||z;for(let K=1;K=V[K]-2&&D<=V[K]+2&&E>=V[K]-2&&E<=V[K]+2;const U=E*u+(F?0:jt*u),tt=D*u+(F?0:jt*u);if(w.strokeStyle=x?this.options.colorDark:this.options.colorLight,w.lineWidth=.5,w.fillStyle=x?this.options.colorDark:this.options.colorLight,V.length===0)F||w.fillRect(U,tt,(F?1:Q)*u,(F?1:Q)*u);else{const K=E=d-4-5&&D=d-4-5;!F&&!K&&w.fillRect(U,tt,(F?1:Q)*u,(F?1:Q)*u)}}const J=V[V.length-1],ge=this.options.colorLight;if(w.fillStyle=ge,w.fillRect(0,0,8*u,8*u),w.fillRect(0,(d-8)*u,8*u,8*u),w.fillRect((d-8)*u,0,8*u,8*u),!((n=(i=this.options.components)===null||i===void 0?void 0:i.timing)===null||n===void 0)&&n.protectors&&(w.fillRect(8*u,6*u,(d-8-8)*u,u),w.fillRect(6*u,8*u,u,(d-8-8)*u)),!((a=(s=this.options.components)===null||s===void 0?void 0:s.cornerAlignment)===null||a===void 0)&&a.protectors&&_._drawAlignProtector(w,J,J,u),!((c=(l=this.options.components)===null||l===void 0?void 0:l.alignment)===null||c===void 0)&&c.protectors)for(let D=0;D=1)&&(E=.2),x<0&&(x=0),S<0&&(S=0);const z=R*E,F=.5*(C-z),U=F;w.restore(),w.fillStyle=this.options.logoBackgroundColor,w.save(),_._prepareRoundedCornerClip(w,F-x,U-x,z+2*x,z+2*x,S+x),w.clip();const tt=w.globalCompositeOperation;w.globalCompositeOperation="destination-out",w.fill(),w.globalCompositeOperation=tt,w.restore(),w.save(),_._prepareRoundedCornerClip(w,F,U,z,z,S),w.clip(),w.drawImage(D,F,U,z,z),w.restore(),w.save(),w.translate(y,y)}if(Y){let D,E,x,S,z,F;if(at.forEach(function(U){D||(D=new $(b,b),D.setDelay(U.delay),D.setRepeat(0));const{width:tt,height:K}=U.dims;E||(E=new ot(tt,K),x=E.getContext("2d"),x.rect(0,0,E.width,E.height),x.fillStyle="#ffffff",x.fill()),(!S||!F||tt!==S.width||K!==S.height)&&(S=new ot(tt,K),z=S.getContext("2d"),F=z.createImageData(tt,K)),F.data.set(U.patch),z.putImageData(F,0,0),x.drawImage(S.getContext("2d").canvas,U.dims.left,U.dims.top);const bt=new ot(C,C),vt=bt.getContext("2d");vt.drawImage(E.getContext("2d").canvas,0,0,C,C),vt.rect(0,0,C,C),vt.fillStyle=N,vt.fill(),vt.drawImage(O.getContext("2d").canvas,0,0,C,C);const xt=new ot(b,b),Kt=xt.getContext("2d");Kt.drawImage(bt.getContext("2d").canvas,0,0,b,b),D.addFrame(Kt.getImageData(0,0,xt.width,xt.height).data)}),!D)throw new Error("No frames.");if(D.finish(),re(this.canvas)){const tt=D.stream().toFlattenUint8Array().reduce((K,bt)=>K+String.fromCharCode(bt),"");return Promise.resolve(`data:image/gif;base64,${window.btoa(tt)}`)}return Promise.resolve(Buffer.from(D.stream().toFlattenUint8Array()))}else{G.drawImage(O.getContext("2d").canvas,0,0,C,C),w.drawImage(ut.getContext("2d").canvas,-y,-y,C,C);const D=new ot(b,b);D.getContext("2d").drawImage(O.getContext("2d").canvas,0,0,b,b),this.canvas=D;const x=this.options.gifBackground?"gif":"png";return re(this.canvas)?Promise.resolve(this.canvas.toDataURL(x)):Promise.resolve(this.canvas.toBuffer(x))}})}}_.CorrectLevel=X;_.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}};_.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:X.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:_.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"};function re(o){try{return o instanceof HTMLElement}catch{return typeof o=="object"&&o.nodeType===1&&typeof o.style=="object"&&typeof o.ownerDocument=="object"}}function Bt(o,...t){if(Array.isArray(o))o.forEach(e=>Bt(e,...t));else return o(...t)}const wr=(o,t)=>{const e=document.createElement("a");e.href=o,e.download=t||new Date().getTime()+".png",e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)},br=o=>new Promise((t,e)=>{const r=new XMLHttpRequest;r.responseType="blob",r.onload=()=>{const i=new FileReader;i.onloadend=()=>{t(i.result)},i.onerror=n=>{e(n)},i.onabort=n=>{e(n)},i.readAsArrayBuffer(r.response)},r.open("GET",o),r.send()}),Nt=Vue.defineComponent({name:"Vue3NextQrcode",props:me,setup(o,t){const{expose:e}=t,r=Vue.computed(()=>({"--ray-qrcode-width":o.size+"px","--ray-qrcode-height":o.size+"px","--ray-qrcode-border-radius":o.logoCornerRadius+"px","--ray-qrcode-mask-color":o.maskColor})),i=Vue.ref();let n;const s=Vue.ref(!1);let a;const l=async()=>{const{gifBackgroundURL:v}=o;if(v)try{n=await br(v)}catch(A){console.error(A)}},c=()=>{const{gifBackgroundURL:v,gifBackground:A,...k}=o;new _({...k,gifBackground:n??void 0}).draw().then(T=>{const{onSuccess:M}=o;M&&Bt(M,T),i.value=T}).catch(T=>{const{onError:M}=o;M&&Bt(M,T)})},h=()=>{if(t.slots.errorAction)return;const{onReload:v}=o;v&&Bt(v)},f=v=>i.value&&typeof i.value=="string"?new Promise(A=>{wr(i.value,v),A()}):Promise.reject();return Vue.watchEffect(()=>{o.watchText?a=Vue.watch(()=>o.text,()=>c()):a==null||a()}),e({downloadQRCode:f}),Vue.onMounted(async()=>{await l(),c()}),Vue.onBeforeUnmount(()=>{a==null||a()}),{qrcodeURL:i,errorActionClick:h,cssVars:r,isClick:s}},render(){return Vue.createVNode("div",{class:"ray-qrcode",style:[this.cssVars]},[Vue.createVNode("div",{class:[this.status==="loading"&&!this.$slots.loading?"ray-qrcode__loading":"",this.$slots.loading?"ray-qrcode__loading--custom":""]},[this.status==="loading"?this.$slots.loading?Vue.createVNode("div",{class:"ray-qrcode__loading-slots"},[this.$slots.loading()]):Vue.createVNode("div",{class:"ray-qrcode__spin"},null):null,Vue.createVNode("img",Vue.mergeProps({src:this.qrcodeURL},{img_tag:"VUE3_NEXT_QRCODE"}),null)]),this.status==="error"?Vue.createVNode("div",{class:"ray-qrcode__error"},[Vue.createVNode("div",{class:"ray-qrcode__error-content"},[typeof this.errorDescription=="string"?this.errorDescription:()=>this.errorDescription]),Vue.createVNode("div",{class:"ray-qrcode__error-btn",onClick:this.errorActionClick.bind(this)},[this.$slots.errorAction?this.$slots.errorAction():Vue.createVNode("span",{onMousedown:()=>{this.isClick=!0},onMouseup:()=>{this.isClick=!1},class:[this.isClick?"ray-qrcode__error-btn-click":""]},[this.errorActionDescription])])]):null])}});Nt.install=function(o){o.component(Nt.name,Nt)};export{Nt as Q}; diff --git a/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js.gz b/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js.gz deleted file mode 100644 index 82429466..00000000 Binary files a/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js.gz and /dev/null differ diff --git a/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-jc-XBHxJ.js b/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-jc-XBHxJ.js new file mode 100644 index 00000000..06a90cc7 --- /dev/null +++ b/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-jc-XBHxJ.js @@ -0,0 +1 @@ +import{l as be,j as ye,f as Ce,k as Ae,q as Pe,b as ot,t as Be,w as De}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as qt}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";const ke={maskColor:{type:String,default:"rgba(255, 255, 255, 0.96)"},watchText:{type:Boolean,default:!0},status:{type:String},errorDescription:{type:[String,Object],default:"二维码已过期"},errorActionDescription:{type:String,default:"重新加载"},text:{type:String,required:!0},size:{type:Number,default:160},margin:{type:Number,default:12},correctLevel:{type:Number,default:1,validator:o=>[0,1,2,3].includes(o)},maskPattern:{type:Number},version:{type:Number},components:{type:Object,default:()=>({data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}})},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#ffffff"},autoColor:{type:Boolean,default:!0},backgroundImage:{type:String},backgroundDimming:{type:String,default:"rgba(0, 0, 0, 0)"},gifBackgroundURL:{type:String},gifBackground:{type:ArrayBuffer},whiteMargin:{type:Boolean,default:!0},logoImage:{type:String},logoScale:{type:Number,default:.4},logoMargin:{type:Number,default:6},logoCornerRadius:{type:Number,default:8},dotScale:{type:Number,default:1},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onReload:{type:[Function,Array],default:null}};function Te(o,t,e){const r=ne(t),i=o-1;let n=0;switch(e){case Z.L:n=rt[i][0];break;case Z.M:n=rt[i][1];break;case Z.Q:n=rt[i][2];break;case Z.H:n=rt[i][3];break}return r<=n}function Ee(o,t){for(var e=1,r=ne(o),i=0,n=rt.length;irt.length)throw new Error("Too long data");return e}function ne(o){var t=encodeURI(o).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=Number(o)?3:0)}class Ie{constructor(t){this.mode=V.MODE_8BIT_BYTE,this.parsedData=[],this.data=t;const e=[];for(let r=0,i=this.data.length;r65536?(n[0]=240|(s&1835008)>>>18,n[1]=128|(s&258048)>>>12,n[2]=128|(s&4032)>>>6,n[3]=128|s&63):s>2048?(n[0]=224|(s&61440)>>>12,n[1]=128|(s&4032)>>>6,n[2]=128|s&63):s>128?(n[0]=192|(s&1984)>>>6,n[1]=128|s&63):n[0]=s,e.push(n)}this.parsedData=Array.prototype.concat.apply([],e),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}getLength(){return this.parsedData.length}write(t){for(let e=0,r=this.parsedData.length;e40)throw new Error(`Invalid QR version: ${this.typeNumber}`);if(!Te(this.typeNumber,t,this.errorCorrectLevel))throw new Error(`Data is too long for QR version: ${this.typeNumber}`)}const e=new Ie(t);this.dataList.push(e),this.dataCache=void 0}isDark(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(`${t},${e}`);return this.modules[t][e]}getModuleCount(){return this.moduleCount}make(){this.makeImpl(!1,this.getBestMaskPattern())}makeImpl(t,e){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(let r=0;r=7&&this.setupTypeNumber(t),this.dataCache==null&&(this.dataCache=ht.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)}setupPositionProbePattern(t,e){for(let r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(let i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(0<=r&&r<=6&&(i==0||i==6)||0<=i&&i<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=i&&i<=4?this.modules[t+r][e+i]=!0:this.modules[t+r][e+i]=!1)}getBestMaskPattern(){if(Number.isInteger(this.maskPattern)&&Object.values(st).includes(this.maskPattern))return this.maskPattern;let t=0,e=0;for(let r=0;r<8;r++){this.makeImpl(!0,r);const i=L.getLostPoint(this);(r==0||t>i)&&(t=i,e=r)}return e}setupTimingPattern(){for(let t=8;t>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=i}for(var r=0;r<18;r++){var i=!t&&(e>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=i}}setupTypeInfo(t,e){const r=this.errorCorrectLevel<<3|e,i=L.getBCHTypeInfo(r);for(var n=0;n<15;n++){var s=!t&&(i>>n&1)==1;n<6?this.modules[n][8]=s:n<8?this.modules[n+1][8]=s:this.modules[this.moduleCount-15+n][8]=s}for(var n=0;n<15;n++){var s=!t&&(i>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=s:n<9?this.modules[8][15-n-1+1]=s:this.modules[8][15-n-1]=s}this.modules[this.moduleCount-8][8]=!t}mapData(t,e){let r=-1,i=this.moduleCount-1,n=7,s=0;for(let a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(let l=0;l<2;l++)if(this.modules[i][a-l]==null){let c=!1;s>>n&1)==1),L.getMask(e,i,a-l)&&(c=!c),this.modules[i][a-l]=c,n--,n==-1&&(s++,n=7)}if(i+=r,i<0||this.moduleCount<=i){i-=r,r=-r;break}}}static createData(t,e,r){const i=at.getRSBlocks(t,e),n=new xe;for(var s=0;sa*8)throw new Error(`code length overflow. (${n.getLengthInBits()}>${a*8})`);for(n.getLengthInBits()+4<=a*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=a*8||(n.put(ht.PAD0,8),n.getLengthInBits()>=a*8));)n.put(ht.PAD1,8);return ht.createBytes(n,i)}static createBytes(t,e){let r=0,i=0,n=0;const s=new Array(e.length),a=new Array(e.length);for(var l=0;l=0?g.get(P):0}}let u=0;for(var c=0;c=0;)e^=L.G15<=0;)e^=L.G18<>>=1;return e}static getPatternPosition(t){return L.PATTERN_POSITION_TABLE[t-1]}static getMask(t,e,r){switch(t){case st.PATTERN000:return(e+r)%2==0;case st.PATTERN001:return e%2==0;case st.PATTERN010:return r%3==0;case st.PATTERN011:return(e+r)%3==0;case st.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case st.PATTERN101:return e*r%2+e*r%3==0;case st.PATTERN110:return(e*r%2+e*r%3)%2==0;case st.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error(`bad maskPattern:${t}`)}}static getErrorCorrectPolynomial(t){let e=new vt([1],0);for(let r=0;r5&&(r+=3+l-5)}for(var i=0;i=256;)t-=255;return j.EXP_TABLE[t]}}j.EXP_TABLE=new Array(256);j.LOG_TABLE=new Array(256);j._constructor=function(){for(var o=0;o<8;o++)j.EXP_TABLE[o]=1<>>7-t%8&1)==1}put(t,e){for(let r=0;r>>e-r-1&1)==1)}getLengthInBits(){return this.length}putBit(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}const rt=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function et(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function Vt(o,t){for(var e="",r=0,i=-1,n=0,s,a=0;a<=o.length;++a){if(a2){var l=e.lastIndexOf("/");if(l!==e.length-1){l===-1?(e="",r=0):(e=e.slice(0,l),r=e.length-1-e.lastIndexOf("/")),i=a,n=0;continue}}else if(e.length===2||e.length===1){e="",r=0,i=a,n=0;continue}}t&&(e.length>0?e+="/..":e="..",r=2)}else e.length>0?e+="/"+o.slice(i+1,a):e=o.slice(i+1,a),r=a-i-1;i=a,n=0}else s===46&&n!==-1?++n:n=-1}return e}function Se(o,t){var e=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return e?e===t.root?e+r:e+o+r:r}var dt={resolve:function(){for(var t="",e=!1,r,i=arguments.length-1;i>=-1&&!e;i--){var n;i>=0?n=arguments[i]:(r===void 0&&(r=process.cwd()),n=r),et(n),n.length!==0&&(t=n+"/"+t,e=n.charCodeAt(0)===47)}return t=Vt(t,!e),e?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(et(t),t.length===0)return".";var e=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Vt(t,!e),t.length===0&&!e&&(t="."),t.length>0&&r&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return et(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,e=0;e0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dt.normalize(t)},relative:function(t,e){if(et(t),et(e),t===e||(t=dt.resolve(t),e=dt.resolve(e),t===e))return"";for(var r=1;rc){if(e.charCodeAt(s+f)===47)return e.slice(s+f+1);if(f===0)return e.slice(s+f)}else n>c&&(t.charCodeAt(r+f)===47?u=f:f===0&&(u=0));break}var v=t.charCodeAt(r+f),A=e.charCodeAt(s+f);if(v!==A)break;v===47&&(u=f)}var k="";for(f=r+u+1;f<=i;++f)(f===i||t.charCodeAt(f)===47)&&(k.length===0?k+="..":k+="/..");return k.length>0?k+e.slice(s+u):(s+=u,e.charCodeAt(s)===47&&++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(et(t),t.length===0)return".";for(var e=t.charCodeAt(0),r=e===47,i=-1,n=!0,s=t.length-1;s>=1;--s)if(e=t.charCodeAt(s),e===47){if(!n){i=s;break}}else n=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');et(t);var r=0,i=-1,n=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,l=-1;for(s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(c===47){if(!n){r=s+1;break}}else l===-1&&(n=!1,l=s+1),a>=0&&(c===e.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return r===i?i=l:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!n){r=s+1;break}}else i===-1&&(n=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){et(t);for(var e=-1,r=0,i=-1,n=!0,s=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(l===47){if(!n){r=a+1;break}continue}i===-1&&(n=!1,i=a+1),l===46?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===r+1?"":t.slice(e,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return Se("/",t)},parse:function(t){et(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;var r=t.charCodeAt(0),i=r===47,n;i?(e.root="/",n=1):n=0;for(var s=-1,a=0,l=-1,c=!0,u=t.length-1,f=0;u>=n;--u){if(r=t.charCodeAt(u),r===47){if(!c){a=u+1;break}continue}l===-1&&(c=!1,l=u+1),r===46?s===-1?s=u:f!==1&&(f=1):s!==-1&&(f=-1)}return s===-1||l===-1||f===0||f===1&&s===l-1&&s===a+1?l!==-1&&(a===0&&i?e.base=e.name=t.slice(1,l):e.base=e.name=t.slice(a,l)):(a===0&&i?(e.name=t.slice(1,s),e.base=t.slice(1,l)):(e.name=t.slice(a,s),e.base=t.slice(a,l)),e.ext=t.slice(s,l)),a>0?e.dir=t.slice(0,a-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};dt.posix=dt;const _e=dt.extname,se=dt.basename;class Le{constructor(){let t=typeof global>"u",e="image/png",r="image/jpeg",i="image/jpeg",n="image/webp",s="application/pdf",a="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:t?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:t?{png:e,jpg:r,jpeg:i,webp:n}:{png:e,jpg:r,jpeg:i,pdf:s,svg:a},mimes:t?{[e]:"png",[r]:"jpg",[n]:"webp"}:{[e]:"png",[r]:"jpg",[s]:"pdf",[a]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}function Me(o,{filename:t="",extension:e="",format:T,page:i,quality:n,matte:s,density:a,outline:l,archive:A}={}){var{fromMime:u,toMime:f,expected:v}=new Le,A=A||"canvas",k=T||e.replace(/@\d+x$/i,"")||_e(t),T=u(f(k)||k),M=f(T),g=o.length;if(!k)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!T)throw new Error(`Unsupported file format "${k}" (expected ${v})`);if(!g)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let p,P,d=t.replace(/{(\d*)}/g,(m,y)=>(P=!0,y=parseInt(y,10),p=isFinite(y)?y:isFinite(p)?p:-1,"{}")),b=i>0?i-1:i<0?g+i:void 0;if(isFinite(b)&&b<0||b>=g)throw new RangeError(g==1?`Canvas only has a ‘page 1’ (${b} is out of bounds)`:`Canvas has pages 1–${g} (${b} is out of bounds)`);if(o=isFinite(b)?[o[b]]:P||T=="pdf"?o:o.slice(-1),n===void 0)n=.92;else if(typeof n!="number"||!isFinite(n)||n<0||n>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(a===void 0){let m=(e||se(t,k)).match(/@(\d+)x$/i);a=m?parseInt(m[1],10):1}else if(typeof a!="number"||!Number.isInteger(a)||a<1)throw new TypeError("The density option must be a non-negative integer");return l===void 0?l=!0:T=="svg"&&(l=!!l),{filename:t,pattern:d,format:T,mime:M,pages:o,padding:p,quality:n,matte:s,density:a,outline:l,archive:A}}class kt{static for(t){return new kt().append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=this.crc|0,r=this.table,i=0,n=t.length|0;i>>8^r[(e^t[i])&255];return this.crc=e,this}}kt.prototype.table=(()=>{var o,t,e,r=[];for(o=0;o<256;o++){for(e=o,t=0;t<8;t++)e=e&1?e>>>1^3988292384:e>>>1;r[o]=e}return r})();function _t(o){let t=new Uint8Array(o),e=new DataView(t.buffer),r={array:t,view:e,size:o,set8(i,n){return e.setUint8(i,n),r},set16(i,n){return e.setUint16(i,n,!0),r},set32(i,n){return e.setUint32(i,n,!0),r},bytes(i,n){return t.set(n,i),r}};return r}class Tt{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let r=!e,i=Tt.encoder.encode(`${this.directory}/${r?"":t}`),n=new Uint8Array(r?0:await e.arrayBuffer()),s=30+i.length,a=s+n.length,l=16,{offset:c}=this,u=_t(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,kt.for(n)).set32(14,n.length).set32(18,n.length).set16(22,i.length);c+=s;let f=_t(s+n.length+l).set32(0,67324752).bytes(4,u.array).bytes(30,i).bytes(s,n);c+=n.length,f.set32(a,134695760).bytes(a+4,u.array.slice(10,22)),c+=l,this.files.push({offset:c,folder:r,name:i,header:u,payload:f}),this.offset=c}toBuffer(){let t=this.files.reduce((f,{name:v})=>46+v.length+f,0),e=_t(t+22),r=0;for(var{offset:i,name:n,header:s,folder:a}of this.files)e.set32(r,33639248).set16(r+4,20).bytes(r+6,s.array).set8(r+38,a?16:0).set32(r+42,i).bytes(r+46,n),r+=46+n.length;e.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let l=new Uint8Array(this.offset+e.size),c=0;for(var{payload:u}of this.files)l.set(u.array,c),c+=u.size;return l.set(e.array,c),l}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}Tt.encoder=new TextEncoder;const Ft=(o,t,e,r)=>{if(r){let{width:i,height:n}=o,s=Object.assign(document.createElement("canvas"),{width:i,height:n}),a=s.getContext("2d");a.fillStyle=r,a.fillRect(0,0,i,n),a.drawImage(o,0,0),o=s}return new Promise((i,n)=>o.toBlob(i,t,e))},Re=(...o)=>Ft(...o).then(t=>t.arrayBuffer()),Ne=async(o,t,e,r,i)=>{ae(i,await Ft(o,t,e,r))},Oe=async(o,t,e,r,i,n,s)=>{let a=u=>n.replace("{}",String(u+1).padStart(s,"0")),l=se(i,".zip")||"archive",c=new Tt(l);await Promise.all(o.map(async(u,f)=>{let v=a(f);await c.add(v,await Ft(u,t,e,r))})),ae(`${l}.zip`,c.blob)},ae=(o,t)=>{const e=window.URL.createObjectURL(t),r=document.createElement("a");r.style.display="none",r.href=e,r.setAttribute("download",o),typeof r.download>"u"&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>window.URL.revokeObjectURL(e),100)},$e=(o,t,e)=>o.map(r=>{if(t==1&&!e)return r.canvas;let i=document.createElement("canvas"),n=i.getContext("2d"),s=r.canvas?r.canvas:r;return i.width=s.width*t,i.height=s.height*t,e&&(n.fillStyle=e,n.fillRect(0,0,i.width,i.height)),n.scale(t,t),n.drawImage(s,0,0),i}),Fe={asBuffer:Re,asDownload:Ne,asZipDownload:Oe,atScale:$e,options:Me},{asBuffer:Lt,asDownload:Ue,asZipDownload:Ge,atScale:Mt,options:Rt}=Fe,Jt=Symbol.for("toDataURL"),je=o=>new Promise((t,e)=>Object.assign(new le,{crossOrigin:"Anonymous",onload:t,onerror:e,src:o}));let ze=class{constructor(t,e){let r=document.createElement("canvas"),i=[];Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0});for(var[n,s]of Object.entries({png:()=>Lt(r,"image/png"),jpg:()=>Lt(r,"image/jpeg"),pages:()=>i.concat(r).map(a=>a.getContext("2d"))}))Object.defineProperty(r,n,{get:s});return Object.assign(r,{width:t,height:e,newPage(...a){var{width:c,height:u}=r,l=Object.assign(document.createElement("canvas"),{width:c,height:u});l.getContext("2d").drawImage(r,0,0),i.push(l);var[c,u]=a.length?a:[c,u];return Object.assign(r,{width:c,height:u}).getContext("2d")},saveAs(a,l){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{filename:a,...l}),{pattern:u,padding:f,mime:v,quality:A,matte:k,density:T,archive:M}=c,g=Mt(c.pages,T);return f==null?Ue(g[0],v,A,k,a):Ge(g,v,A,k,M,u,f)},toBuffer(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{extension:a,...l}),{mime:u,quality:f,matte:v,pages:A,density:k}=c,T=Mt(A,k,v)[0];return Lt(T,u,f,v)},[Jt]:r.toDataURL.bind(r),toDataURL(a="png",l={}){l=typeof l=="number"?{quality:l}:l;let c=Rt(this.pages,{extension:a,...l}),{mime:u,quality:f,matte:v,pages:A,density:k}=c,T=Mt(A,k,v)[0],M=T[T===r?Jt:"toDataURL"](u,f);return Promise.resolve(M)}})}};const{CanvasRenderingContext2D:He,CanvasGradient:Ke,CanvasPattern:Xe,Image:le,ImageData:Ze,Path2D:qe,DOMMatrix:Ve,DOMRect:Je,DOMPoint:We}=window,Ye={Canvas:ze,loadImage:je,CanvasRenderingContext2D:He,CanvasGradient:Ke,CanvasPattern:Xe,Image:le,ImageData:Ze,Path2D:qe,DOMMatrix:Ve,DOMRect:Je,DOMPoint:We},bt=(o,t,e={},r=e)=>{if(Array.isArray(t))t.forEach(i=>bt(o,i,e,r));else if(typeof t=="function")t(o,e,r,bt);else{const i=Object.keys(t)[0];Array.isArray(t[i])?(r[i]={},bt(o,t[i],e,r[i])):r[i]=t[i](o,e,r,bt)}return e},gt=(o,t)=>(e,r,i,n)=>{t(e,r,i)&&n(e,o,r,i)},Qe=(o,t)=>(e,r,i,n)=>{const s=[];let a=e.pos;for(;t(e,r,i);){const l={};if(n(e,o,r,l),e.pos===a)break;a=e.pos,s.push(l)}return s},tr=o=>({data:o,pos:0}),W=()=>o=>o.data[o.pos++],ce=(o=0)=>t=>t.data[t.pos+o],it=o=>t=>t.data.subarray(t.pos,t.pos+=o),Et=o=>t=>t.data.subarray(t.pos,t.pos+o),Ot=o=>t=>Array.from(it(o)(t)).map(e=>String.fromCharCode(e)).join(""),ft=o=>t=>{const e=it(2)(t);return(e[1]<<8)+e[0]},he=(o,t)=>(e,r,i)=>{const n=typeof t=="function"?t(e,r,i):t,s=it(o),a=new Array(n);for(var l=0;l{for(var r=0,i=0;it=>{const e=W()(t),r=new Array(8);for(var i=0;i<8;i++)r[7-i]=!!(e&1<{const a=o[s];return a.length?n[s]=er(r,a.index,a.length):n[s]=r[a.index],n},{})};var It={blocks:o=>{const e=[],r=o.data.length;for(var i=0,n=W()(o);n!==0&&n;n=W()(o)){if(o.pos+n>=r){const c=r-o.pos;e.push(it(c)(o)),i+=c;break}e.push(it(n)(o)),i+=n}const s=new Uint8Array(i);for(var a=0,l=0;l{var t=Et(2)(o);return t[0]===33&&t[1]===249}),ir=gt({image:[{code:W()},{descriptor:[{left:ft()},{top:ft()},{width:ft()},{height:ft()},{lct:Ut({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},gt({lct:he(3,(o,t,e)=>Math.pow(2,e.descriptor.lct.size+1))},(o,t,e)=>e.descriptor.lct.exists),{data:[{minCodeSize:W()},It]}]},o=>ce()(o)===44),or=gt({text:[{codes:it(2)},{blockSize:W()},{preData:(o,t,e)=>it(e.text.blockSize)(o)},It]},o=>{var t=Et(2)(o);return t[0]===33&&t[1]===1}),nr=gt({application:[{codes:it(2)},{blockSize:W()},{id:(o,t,e)=>Ot(e.blockSize)(o)},It]},o=>{var t=Et(2)(o);return t[0]===33&&t[1]===255}),sr=gt({comment:[{codes:it(2)},It]},o=>{var t=Et(2)(o);return t[0]===33&&t[1]===254}),ar=[{header:[{signature:Ot(3)},{version:Ot(3)}]},{lsd:[{width:ft()},{height:ft()},{gct:Ut({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:W()},{pixelAspectRatio:W()}]},gt({gct:he(3,(o,t)=>Math.pow(2,t.lsd.gct.size+1))},(o,t)=>t.lsd.gct.exists),{frames:Qe([rr,nr,sr,ir,or],o=>{var t=ce()(o);return t===33||t===44})}],lr=(o,t)=>{const e=new Array(o.length),r=o.length/t,i=function(u,f){const v=o.slice(f*t,(f+1)*t);e.splice.apply(e,[u*t,t].concat(v))},n=[0,4,2,1],s=[8,8,4,2];for(var a=0,l=0;l<4;l++)for(var c=n[l];c{const n=e;var s,a,l,c,u,f,v,b,A,k,d,T,m,y,I,B;const M=new Array(e),g=new Array(4096),p=new Array(4096),P=new Array(4097);for(T=o,a=1<>=c,b-=c,A>s||A==u)break;if(A==a){c=T+1,l=(1<a;)P[y++]=p[A],A=g[A];m=p[A]&255,P[y++]=m,s<4096&&(g[s]=v,p[s]=m,s++,!(s&l)&&s<4096&&(c++,l+=s)),v=f}y--,M[B++]=P[y],k++}for(k=B;k{const t=new Uint8Array(o);return bt(tr(t),ar)},ur=o=>{const t=o.pixels.length,e=new Uint8ClampedArray(t*4);for(var r=0;r{if(!o.image){console.warn("gif frame does not have associated image.");return}const{image:r}=o,i=r.descriptor.width*r.descriptor.height;var n=cr(r.data.minCodeSize,r.data.blocks,i);r.descriptor.lct.interlaced&&(n=lr(n,r.descriptor.width));const s={pixels:n,dims:{top:o.image.descriptor.top,left:o.image.descriptor.left,width:o.image.descriptor.width,height:o.image.descriptor.height}};return r.descriptor.lct&&r.descriptor.lct.exists?s.colorTable=r.lct:s.colorTable=t,o.gce&&(s.delay=(o.gce.delay||10)*10,s.disposalType=o.gce.extras.disposal,o.gce.extras.transparentColorGiven&&(s.transparentIndex=o.gce.transparentColorIndex)),s.patch=ur(s),s},dr=(o,t)=>o.frames.filter(e=>e.image).map(e=>fr(e,o.gct));var gr=100,K=256,Wt=K-1,ct=4,ue=16,Gt=1<>jt,vr=Gt<>3,$t=6,wr=1<<$t,br=mr*wr,yr=30,de=10,Ct=1<>3);var g,p;for(g=0;g>=ct,e[g][1]>>=ct,e[g][2]>>=ct,e[g][3]=g}function c(g,p,P,d,b){e[p][0]-=g*(e[p][0]-P)/Ct,e[p][1]-=g*(e[p][1]-d)/Ct,e[p][2]-=g*(e[p][2]-b)/Ct}function u(g,p,P,d,b){for(var m=Math.abs(p-g),y=Math.min(p+g,K),B=p+1,I=p-1,R=1,h,N;Bm;)N=s[R++],Bm&&(h=e[I--],h[0]-=N*(h[0]-P)/pt,h[1]-=N*(h[1]-d)/pt,h[2]-=N*(h[2]-b)/pt)}function f(g,p,P){var d=2147483647,b=d,m=-1,y=m,B,I,R,h,N;for(B=0;B>ue-ct),h>jt,n[B]-=N,i[B]+=N<>1,p=y+1;p>1,p=y+1;p<256;p++)r[p]=Wt}function A(g,p,P){for(var d,b,m,y=1e3,B=-1,I=r[p],R=I-1;I=0;)I=y?I=K:(I++,m<0&&(m=-m),d=b[0]-g,d<0&&(d=-d),m+=d,m=0&&(b=e[R],m=p-b[1],m>=y?R=-1:(R--,m<0&&(m=-m),d=b[0]-g,d<0&&(d=-d),m+=d,m>$t;for(B<=1&&(B=0),g=0;g=p&&(O-=p),g++,b===0&&(b=1),g%b===0)for(m-=m/P,y-=y/yr,B=y>>$t,B<=1&&(B=0),C=0;C=254&&I(O)}function b(C){m(wt),f=T+2,A=!0,N(T,C)}function m(C){for(var O=0;O=0){lt=z-G,G===0&&(lt=1);do if((G-=lt)<0&&(G+=z),s[G]===w){Y=a[G];continue t}while(s[G]>=0)}N(Y,O),Y=ut,f<1<0&&(C.writeByte(u),C.writeBytes(n,0,u),u=0)}function R(C){return(1<0?l|=C<=8;)d(l&255,O),l>>=8,c-=8;if((f>v||A)&&(A?(v=R(P=k),A=!1):(++P,P==At?v=1<0;)d(l&255,O),l>>=8,c-=8;I(O)}}this.encode=B}function q(){this.page=-1,this.pages=[],this.newPage()}q.pageSize=4096;q.charMap={};for(var Pt=0;Pt<256;Pt++)q.charMap[Pt]=String.fromCharCode(Pt);q.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(q.pageSize),this.cursor=0};q.prototype.getData=function(){for(var o="",t=0;tr+i.length,0));return o.reduce((r,i)=>(e.set(i,r),r+i.length),0),e};q.prototype.writeByte=function(o){this.cursor>=q.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=o};q.prototype.writeUTFBytes=function(o){for(var t=o.length,e=0;e=0&&(this.dispose=o)};$.prototype.setRepeat=function(o){this.repeat=o};$.prototype.setTransparent=function(o){this.transparent=o};$.prototype.addFrame=function(o){this.image=o,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),this.globalPalette===!0&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),!this.firstFrame&&!this.globalPalette&&this.writePalette(),this.writePixels(),this.firstFrame=!1};$.prototype.finish=function(){this.out.writeByte(59)};$.prototype.setQuality=function(o){o<1&&(o=1),this.sample=o};$.prototype.setDither=function(o){o===!0&&(o="FloydSteinberg"),this.dither=o};$.prototype.setGlobalPalette=function(o){this.globalPalette=o};$.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};$.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};$.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new Pr(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,this.transparent!==null&&(this.transIndex=this.findClosest(this.transparent,!0))};$.prototype.indexPixels=function(o){var t=this.pixels.length/3;this.indexedPixels=new Uint8Array(t);for(var e=0,r=0;r=0&&B+u=0&&I+c>16,(o&65280)>>8,o&255,t)};$.prototype.findClosestRGB=function(o,t,e,r){if(this.colorTab===null)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(o,t,e);for(var i=0,n=256*256*256,s=this.colorTab.length,a=0,l=0;a=0&&(t=this.dispose&7),t<<=2,this.out.writeByte(0|t|0|o),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)};$.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)};$.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)};$.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)};$.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var o=3*256-this.colorTab.length,t=0;t>8&255)};$.prototype.writePixels=function(){var o=new Dr(this.width,this.height,this.indexedPixels,this.colorDepth);o.encode(this.out)};$.prototype.stream=function(){return this.out};var kr=globalThis&&globalThis.__awaiter||function(o,t,e,r){function i(n){return n instanceof e?n:new e(function(s){s(n)})}return new(e||(e=Promise))(function(n,s){function a(u){try{c(r.next(u))}catch(f){s(f)}}function l(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?n(u.value):i(u.value).then(a,l)}c((r=r.apply(o,t||[])).next())})};const{Canvas:nt}=Ye,Bt=.4;function ie(o){if(!o)return;function t(e){e.onload=null,e.onerror=null}return new Promise(function(e,r){if(o.slice(0,4)=="data"){let n=new Image;n.onload=function(){e(n),t(n)},n.onerror=function(){r("Image load error"),t(n)},n.src=o;return}let i=new Image;i.setAttribute("crossOrigin","Anonymous"),i.onload=function(){e(i)},i.onerror=function(){r("Image load error")},i.src=o})}class _{constructor(t){const e=Object.assign({},t);if(Object.keys(_.defaultOptions).forEach(r=>{r in e||Object.defineProperty(e,r,{value:_.defaultOptions[r],enumerable:!0,writable:!0})}),e.components?typeof e.components=="object"&&Object.keys(_.defaultComponentOptions).forEach(r=>{r in e.components?Object.defineProperty(e.components,r,{value:Object.assign(Object.assign({},_.defaultComponentOptions[r]),e.components[r]),enumerable:!0,writable:!0}):Object.defineProperty(e.components,r,{value:_.defaultComponentOptions[r],enumerable:!0,writable:!0})}):e.components=_.defaultComponentOptions,e.dotScale!==null&&e.dotScale!==void 0){if(e.dotScale<=0||e.dotScale>1)throw new Error("dotScale should be in range (0, 1].");e.components.data.scale=e.dotScale,e.components.timing.scale=e.dotScale,e.components.alignment.scale=e.dotScale}this.options=e,this.canvas=new nt(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new ht(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}draw(){return new Promise(t=>this._draw().then(t))}_clear(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}static _prepareRoundedCornerClip(t,e,r,i,n,s){t.beginPath(),t.moveTo(e,r),t.arcTo(e+i,r,e+i,r+n,s),t.arcTo(e+i,r+n,e,r+n,s),t.arcTo(e,r+n,e,r,s),t.arcTo(e,r,e+i,r,s),t.closePath()}static _getAverageRGB(t){const r={r:0,g:0,b:0};let i,n,s=-4;const a={r:0,g:0,b:0};let l=0;n=t.naturalHeight||t.height,i=t.naturalWidth||t.width;const u=new nt(i,n).getContext("2d");if(!u)return r;u.drawImage(t,0,0);let f;try{f=u.getImageData(0,0,i,n)}catch{return r}for(;(s+=5*4)200||f.data[s+1]>200||f.data[s+2]>200||(++l,a.r+=f.data[s],a.g+=f.data[s+1],a.b+=f.data[s+2]);return a.r=~~(a.r/l),a.g=~~(a.g/l),a.b=~~(a.b/l),a}static _drawDot(t,e,r,i,n=0,s=1){t.fillRect((e+n)*i,(r+n)*i,s*i,s*i)}static _drawAlignProtector(t,e,r,i){t.clearRect((e-2)*i,(r-2)*i,5*i,5*i),t.fillRect((e-2)*i,(r-2)*i,5*i,5*i)}static _drawAlign(t,e,r,i,n=0,s=1,a,l){const c=t.fillStyle;t.fillStyle=a,new Array(4).fill(0).map((u,f)=>{_._drawDot(t,e-2+f,r-2,i,n,s),_._drawDot(t,e+2,r-2+f,i,n,s),_._drawDot(t,e+2-f,r+2,i,n,s),_._drawDot(t,e-2,r+2-f,i,n,s)}),_._drawDot(t,e,r,i,n,s),l||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((u,f)=>{_._drawDot(t,e-1+f,r-1,i,n,s),_._drawDot(t,e+1,r-1+f,i,n,s),_._drawDot(t,e+1-f,r+1,i,n,s),_._drawDot(t,e-1,r+1-f,i,n,s)})),t.fillStyle=c}_draw(){var t,e,r,i,n,s,a,l,c,u,f,v,A,k,T,M,g,p,P;return kr(this,void 0,void 0,function*(){const d=(t=this.qrCode)===null||t===void 0?void 0:t.moduleCount,b=this.options.size;let m=this.options.margin;(m<0||m*2>=b)&&(m=0);const y=Math.ceil(m),B=b-2*m,I=this.options.whiteMargin,R=this.options.backgroundDimming,h=Math.ceil(B/d),N=h*d,C=N+2*y,O=new nt(C,C),w=O.getContext("2d");this._clear(),w.save(),w.translate(y,y);const ut=new nt(C,C),G=ut.getContext("2d");let Y=null,lt=[];if(this.options.gifBackground){const D=hr(this.options.gifBackground);if(Y=D,lt=dr(D),this.options.autoColor){let E=0,x=0,S=0,H=0;for(let F=0;F200||U[1]>200||U[2]>200||U[0]===0&&U[1]===0&&U[2]===0||(H++,E+=U[0],x+=U[1],S+=U[2])}E=~~(E/H),x=~~(x/H),S=~~(S/H),this.options.colorDark=`rgb(${E},${x},${S})`}}else if(this.options.backgroundImage){const D=yield ie(this.options.backgroundImage);if(this.options.autoColor){const E=_._getAverageRGB(D);this.options.colorDark=`rgb(${E.r},${E.g},${E.b})`}G.drawImage(D,0,0,D.width,D.height,0,0,C,C),G.rect(0,0,C,C),G.fillStyle=R,G.fill()}else G.rect(0,0,C,C),G.fillStyle=this.options.colorLight,G.fill();const z=L.getPatternPosition(this.qrCode.typeNumber),Q=((r=(e=this.options.components)===null||e===void 0?void 0:e.data)===null||r===void 0?void 0:r.scale)||Bt,zt=(1-Q)*.5;for(let D=0;D=d-8)||E>=d-8&&D<8,H=D==6&&E>=8&&E<=d-8||E==6&&D>=8&&D<=d-8;let F=S||H;for(let X=1;X=z[X]-2&&D<=z[X]+2&&E>=z[X]-2&&E<=z[X]+2;const U=E*h+(F?0:zt*h),tt=D*h+(F?0:zt*h);if(w.strokeStyle=x?this.options.colorDark:this.options.colorLight,w.lineWidth=.5,w.fillStyle=x?this.options.colorDark:this.options.colorLight,z.length===0)F||w.fillRect(U,tt,(F?1:Q)*h,(F?1:Q)*h);else{const X=E=d-4-5&&D=d-4-5;!F&&!X&&w.fillRect(U,tt,(F?1:Q)*h,(F?1:Q)*h)}}const J=z[z.length-1],ve=this.options.colorLight;if(w.fillStyle=ve,w.fillRect(0,0,8*h,8*h),w.fillRect(0,(d-8)*h,8*h,8*h),w.fillRect((d-8)*h,0,8*h,8*h),!((n=(i=this.options.components)===null||i===void 0?void 0:i.timing)===null||n===void 0)&&n.protectors&&(w.fillRect(8*h,6*h,(d-8-8)*h,h),w.fillRect(6*h,8*h,h,(d-8-8)*h)),!((a=(s=this.options.components)===null||s===void 0?void 0:s.cornerAlignment)===null||a===void 0)&&a.protectors&&_._drawAlignProtector(w,J,J,h),!((c=(l=this.options.components)===null||l===void 0?void 0:l.alignment)===null||c===void 0)&&c.protectors)for(let D=0;D=1)&&(E=.2),x<0&&(x=0),S<0&&(S=0);const H=N*E,F=.5*(C-H),U=F;w.restore(),w.fillStyle=this.options.logoBackgroundColor,w.save(),_._prepareRoundedCornerClip(w,F-x,U-x,H+2*x,H+2*x,S+x),w.clip();const tt=w.globalCompositeOperation;w.globalCompositeOperation="destination-out",w.fill(),w.globalCompositeOperation=tt,w.restore(),w.save(),_._prepareRoundedCornerClip(w,F,U,H,H,S),w.clip(),w.drawImage(D,F,U,H,H),w.restore(),w.save(),w.translate(y,y)}if(Y){let D,E,x,S,H,F;if(lt.forEach(function(U){D||(D=new $(b,b),D.setDelay(U.delay),D.setRepeat(0));const{width:tt,height:X}=U.dims;E||(E=new nt(tt,X),x=E.getContext("2d"),x.rect(0,0,E.width,E.height),x.fillStyle="#ffffff",x.fill()),(!S||!F||tt!==S.width||X!==S.height)&&(S=new nt(tt,X),H=S.getContext("2d"),F=H.createImageData(tt,X)),F.data.set(U.patch),H.putImageData(F,0,0),x.drawImage(S.getContext("2d").canvas,U.dims.left,U.dims.top);const yt=new nt(C,C),mt=yt.getContext("2d");mt.drawImage(E.getContext("2d").canvas,0,0,C,C),mt.rect(0,0,C,C),mt.fillStyle=R,mt.fill(),mt.drawImage(O.getContext("2d").canvas,0,0,C,C);const St=new nt(b,b),Zt=St.getContext("2d");Zt.drawImage(yt.getContext("2d").canvas,0,0,b,b),D.addFrame(Zt.getImageData(0,0,St.width,St.height).data)}),!D)throw new Error("No frames.");if(D.finish(),oe(this.canvas)){const tt=D.stream().toFlattenUint8Array().reduce((X,yt)=>X+String.fromCharCode(yt),"");return Promise.resolve(`data:image/gif;base64,${window.btoa(tt)}`)}return Promise.resolve(Buffer.from(D.stream().toFlattenUint8Array()))}else{G.drawImage(O.getContext("2d").canvas,0,0,C,C),w.drawImage(ut.getContext("2d").canvas,-y,-y,C,C);const D=new nt(b,b);D.getContext("2d").drawImage(O.getContext("2d").canvas,0,0,b,b),this.canvas=D;const x=this.options.gifBackground?"gif":"png";return oe(this.canvas)?Promise.resolve(this.canvas.toDataURL(x)):Promise.resolve(this.canvas.toBuffer(x))}})}}_.CorrectLevel=Z;_.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}};_.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:Z.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:_.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"};function oe(o){try{return o instanceof HTMLElement}catch{return typeof o=="object"&&o.nodeType===1&&typeof o.style=="object"&&typeof o.ownerDocument=="object"}}function Dt(o,...t){if(Array.isArray(o))o.forEach(e=>Dt(e,...t));else return o(...t)}const Tr=(o,t)=>{const e=document.createElement("a");e.href=o,e.download=t||new Date().getTime()+".png",e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)},Er=o=>new Promise((t,e)=>{const r=new XMLHttpRequest;r.responseType="blob",r.onload=()=>{const i=new FileReader;i.onloadend=()=>{t(i.result)},i.onerror=n=>{e(n)},i.onabort=n=>{e(n)},i.readAsArrayBuffer(r.response)},r.open("GET",o),r.send()}),Nt=be({name:"Vue3NextQrcode",props:ke,setup(o,t){const{expose:e}=t,r=ye(()=>({"--ray-qrcode-width":o.size+"px","--ray-qrcode-height":o.size+"px","--ray-qrcode-border-radius":o.logoCornerRadius+"px","--ray-qrcode-mask-color":o.maskColor})),i=qt();let n;const s=qt(!1);let a;const l=async()=>{const{gifBackgroundURL:v}=o;if(v)try{n=await Er(v)}catch(A){console.error(A)}},c=()=>{const{gifBackgroundURL:v,gifBackground:A,...k}=o;new _({...k,gifBackground:n??void 0}).draw().then(T=>{const{onSuccess:M}=o;M&&Dt(M,T),i.value=T}).catch(T=>{const{onError:M}=o;M&&Dt(M,T)})},u=()=>{if(t.slots.errorAction)return;const{onReload:v}=o;v&&Dt(v)},f=v=>i.value&&typeof i.value=="string"?new Promise(A=>{Tr(i.value,v),A()}):Promise.reject();return Ce(()=>{o.watchText?a=De(()=>o.text,()=>c()):a==null||a()}),e({downloadQRCode:f}),Ae(async()=>{await l(),c()}),Pe(()=>{a==null||a()}),{qrcodeURL:i,errorActionClick:u,cssVars:r,isClick:s}},render(){return ot("div",{class:"ray-qrcode",style:[this.cssVars]},[ot("div",{class:[this.status==="loading"&&!this.$slots.loading?"ray-qrcode__loading":"",this.$slots.loading?"ray-qrcode__loading--custom":""]},[this.status==="loading"?this.$slots.loading?ot("div",{class:"ray-qrcode__loading-slots"},[this.$slots.loading()]):ot("div",{class:"ray-qrcode__spin"},null):null,ot("img",Be({src:this.qrcodeURL},{img_tag:"VUE3_NEXT_QRCODE"}),null)]),this.status==="error"?ot("div",{class:"ray-qrcode__error"},[ot("div",{class:"ray-qrcode__error-content"},[typeof this.errorDescription=="string"?this.errorDescription:()=>this.errorDescription]),ot("div",{class:"ray-qrcode__error-btn",onClick:this.errorActionClick.bind(this)},[this.$slots.errorAction?this.$slots.errorAction():ot("span",{onMousedown:()=>{this.isClick=!0},onMouseup:()=>{this.isClick=!1},class:[this.isClick?"ray-qrcode__error-btn-click":""]},[this.errorActionDescription])])]):null])}});Nt.install=function(o){o.component(Nt.name,Nt)};export{Nt as Q}; diff --git a/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-jc-XBHxJ.js.gz b/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-jc-XBHxJ.js.gz new file mode 100644 index 00000000..90f1277d Binary files /dev/null and b/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-jc-XBHxJ.js.gz differ diff --git a/js/vue@3.5.6_typescript@5.2.2-l0sNRNKZ.js b/js/vue@3.5.12_typescript@5.2.2-l0sNRNKZ.js similarity index 100% rename from js/vue@3.5.6_typescript@5.2.2-l0sNRNKZ.js rename to js/vue@3.5.12_typescript@5.2.2-l0sNRNKZ.js diff --git a/js/vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js b/js/vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js new file mode 100644 index 00000000..87cb1bf5 --- /dev/null +++ b/js/vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js @@ -0,0 +1 @@ +import{a as Z,o as fe}from"./evtd@0.2.4-CI_DDEu_.js";import{B as ze,d as pe,z as G,y as De,a as Ne}from"./seemly@0.3.8-DjGKl9dV.js";import{I as _e,F as Ie,L as je,l as W,x as Ee,d as Ce,i as ne,q as re,O as Fe,j as D,h as z,U as Pe,k as R,w as Q,n as Ae,R as Be,M as Ue,N as qe,t as Ke}from"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import{k as F,q as N}from"./@vue_reactivity@3.5.12-IcmYCeX3.js";import{u as oe}from"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import{h as Ge,u as q,o as Je,i as Qe}from"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import{z as Ze}from"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import{R as Re}from"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import{C as et}from"./css-render@0.15.14-C5toWlUr.js";function ce(n,e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/${n}]: slot[${t}] is empty.`);return r()}function he(n,e=!0,t=[]){return n.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&t.push(_e(String(r)));return}if(Array.isArray(r)){he(r,e,t);return}if(r.type===Ie){if(r.children===null)return;Array.isArray(r.children)&&he(r.children,e,t)}else r.type!==je&&t.push(r)}}),t}function me(n,e,t="default"){const r=e[t];if(r===void 0)throw new Error(`[vueuc/${n}]: slot[${t}] is empty.`);const o=he(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${n}]: slot[${t}] should have exactly one child.`)}let L=null;function We(){if(L===null&&(L=document.getElementById("v-binder-view-measurer"),L===null)){L=document.createElement("div"),L.id="v-binder-view-measurer";const{style:n}=L;n.position="fixed",n.left="0",n.right="0",n.top="0",n.bottom="0",n.pointerEvents="none",n.visibility="hidden",document.body.appendChild(L)}return L.getBoundingClientRect()}function tt(n,e){const t=We();return{top:e,left:n,height:0,width:0,right:t.width-n,bottom:t.height-e}}function ue(n){const e=n.getBoundingClientRect(),t=We();return{left:e.left-t.left,top:e.top-t.top,bottom:t.height+t.top-e.bottom,right:t.width+t.left-e.right,width:e.width,height:e.height}}function nt(n){return n.nodeType===9?null:n.parentNode}function ke(n){if(n===null)return null;const e=nt(n);if(e===null)return null;if(e.nodeType===9)return document;if(e.nodeType===1){const{overflow:t,overflowX:r,overflowY:o}=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(t+o+r))return e}return ke(e)}const It=W({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(n){var e;Ee("VBinder",(e=Ce())===null||e===void 0?void 0:e.proxy);const t=ne("VBinder",null),r=F(null),o=i=>{r.value=i,t&&n.syncTargetWithParent&&t.setTargetRef(i)};let u=[];const b=()=>{let i=r.value;for(;i=ke(i),i!==null;)u.push(i);for(const g of u)fe("scroll",g,x,!0)},w=()=>{for(const i of u)Z("scroll",i,x,!0);u=[]},l=new Set,h=i=>{l.size===0&&b(),l.has(i)||l.add(i)},p=i=>{l.has(i)&&l.delete(i),l.size===0&&w()},x=()=>{ze(d)},d=()=>{l.forEach(i=>i())},f=new Set,m=i=>{f.size===0&&fe("resize",window,a),f.has(i)||f.add(i)},v=i=>{f.has(i)&&f.delete(i),f.size===0&&Z("resize",window,a)},a=()=>{f.forEach(i=>i())};return re(()=>{Z("resize",window,a),w()}),{targetRef:r,setTargetRef:o,addScrollListener:h,removeScrollListener:p,addResizeListener:m,removeResizeListener:v}},render(){return ce("binder",this.$slots)}}),Et=W({name:"Target",setup(){const{setTargetRef:n,syncTarget:e}=ne("VBinder");return{syncTarget:e,setTargetDirective:{mounted:n,updated:n}}},render(){const{syncTarget:n,setTargetDirective:e}=this;return n?Fe(me("follower",this.$slots),[[e]]):me("follower",this.$slots)}});function ve(n,e){console.error(`[vueuc/${n}]: ${e}`)}const{c:B}=et(),ie="vueuc-style";function be(n){return n&-n}class Oe{constructor(e,t){this.l=e,this.min=t;const r=new Array(e+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let u=e*r;for(;e>0;)u+=t[e],e-=be(e);return u}getBound(e){let t=0,r=this.l;for(;r>t;){const o=Math.floor((t+r)/2),u=this.sum(o);if(u>e){r=o;continue}else if(u{const{to:e}=n;return e??"body"})}},render(){return this.showTeleport?this.disabled?ce("lazy-teleport",this.$slots):z(Pe,{disabled:this.disabled,to:this.mergedTo},ce("lazy-teleport",this.$slots)):null}}),ee={top:"bottom",bottom:"top",left:"right",right:"left"},ge={start:"end",center:"center",end:"start"},ae={top:"height",bottom:"height",left:"width",right:"width"},ot={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},it={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},lt={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ye={top:!0,bottom:!1,left:!0,right:!1},xe={top:"end",bottom:"start",left:"end",right:"start"};function st(n,e,t,r,o,u){if(!o||u)return{placement:n,top:0,left:0};const[b,w]=n.split("-");let l=w??"center",h={top:0,left:0};const p=(f,m,v)=>{let a=0,i=0;const g=t[f]-e[m]-e[f];return g>0&&r&&(v?i=ye[m]?g:-g:a=ye[m]?g:-g),{left:a,top:i}},x=b==="left"||b==="right";if(l!=="center"){const f=lt[n],m=ee[f],v=ae[f];if(t[v]>e[v]){if(e[f]+e[v]e[m]&&(l=ge[w])}else{const f=b==="bottom"||b==="top"?"left":"top",m=ee[f],v=ae[f],a=(t[v]-e[v])/2;(e[f]e[m]?(l=xe[f],h=p(v,f,x)):(l=xe[m],h=p(v,m,x)))}let d=b;return e[b] *",{pointerEvents:"all"})])]),Ct=W({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(n){const e=ne("VBinder"),t=q(()=>n.enabled!==void 0?n.enabled:n.show),r=F(null),o=F(null),u=()=>{const{syncTrigger:d}=n;d.includes("scroll")&&e.addScrollListener(l),d.includes("resize")&&e.addResizeListener(l)},b=()=>{e.removeScrollListener(l),e.removeResizeListener(l)};R(()=>{t.value&&(l(),u())});const w=oe();dt.mount({id:"vueuc/binder",head:!0,anchorMetaName:ie,ssr:w}),re(()=>{b()}),Je(()=>{t.value&&l()});const l=()=>{if(!t.value)return;const d=r.value;if(d===null)return;const f=e.targetRef,{x:m,y:v,overlap:a}=n,i=m!==void 0&&v!==void 0?tt(m,v):ue(f);d.style.setProperty("--v-target-width",`${Math.round(i.width)}px`),d.style.setProperty("--v-target-height",`${Math.round(i.height)}px`);const{width:g,minWidth:M,placement:E,internalShift:_,flip:V}=n;d.setAttribute("v-placement",E),a?d.setAttribute("v-overlap",""):d.removeAttribute("v-overlap");const{style:T}=d;g==="target"?T.width=`${i.width}px`:g!==void 0?T.width=g:T.width="",M==="target"?T.minWidth=`${i.width}px`:M!==void 0?T.minWidth=M:T.minWidth="";const H=ue(d),j=ue(o.value),{left:X,top:P,placement:U}=st(E,i,H,_,V,a),s=ut(U,a),{left:c,top:y,transform:$}=at(U,j,i,P,X,a);d.setAttribute("v-placement",U),d.style.setProperty("--v-offset-left",`${Math.round(X)}px`),d.style.setProperty("--v-offset-top",`${Math.round(P)}px`),d.style.transform=`translateX(${c}) translateY(${y}) ${$}`,d.style.setProperty("--v-transform-origin",s),d.style.transformOrigin=s};Q(t,d=>{d?(u(),h()):b()});const h=()=>{Ae().then(l).catch(d=>console.error(d))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(d=>{Q(N(n,d),l)}),["teleportDisabled"].forEach(d=>{Q(N(n,d),h)}),Q(N(n,"syncTrigger"),d=>{d.includes("resize")?e.addResizeListener(l):e.removeResizeListener(l),d.includes("scroll")?e.addScrollListener(l):e.removeScrollListener(l)});const p=Qe(),x=q(()=>{const{to:d}=n;if(d!==void 0)return d;p.value});return{VBinder:e,mergedEnabled:t,offsetContainerRef:o,followerRef:r,mergedTo:x,syncPosition:l}},render(){return z(rt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var n,e;const t=z("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[z("div",{class:"v-binder-follower-content",ref:"followerRef"},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))]);return this.zindexable?Fe(t,[[Ze,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}});class ft{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Re)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const t of e){const r=this.elHandlersMap.get(t.target);r!==void 0&&r(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}}const Me=new ft,$e=W({name:"ResizeObserver",props:{onResize:Function},setup(n){let e=!1;const t=Ce().proxy;function r(o){const{onResize:u}=n;u!==void 0&&u(o)}R(()=>{const o=t.$el;if(o===void 0){ve("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){ve("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Me.registerHandler(o.nextElementSibling,r),e=!0)}),re(()=>{e&&Me.unregisterHandler(t.$el.nextElementSibling)})},render(){return Be(this.$slots,"default")}});let te;function ct(){return typeof document>"u"?!1:(te===void 0&&("matchMedia"in window?te=window.matchMedia("(pointer:coarse)").matches:te=!1),te)}let de;function Se(){return typeof document>"u"?1:(de===void 0&&(de="chrome"in window?window.devicePixelRatio:1),de)}const Le="VVirtualListXScroll";function ht({columnsRef:n,renderColRef:e,renderItemWithColsRef:t}){const r=F(0),o=F(0),u=D(()=>{const h=n.value;if(h.length===0)return null;const p=new Oe(h.length,0);return h.forEach((x,d)=>{p.add(d,x.width)}),p}),b=q(()=>{const h=u.value;return h!==null?Math.max(h.getBound(o.value)-1,0):0}),w=h=>{const p=u.value;return p!==null?p.sum(h):0},l=q(()=>{const h=u.value;return h!==null?Math.min(h.getBound(o.value+r.value)+1,n.value.length-1):0});return Ee(Le,{startIndexRef:b,endIndexRef:l,columnsRef:n,renderColRef:e,renderItemWithColsRef:t,getLeft:w}),{listWidthRef:r,scrollLeftRef:o}}const Te=W({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:n,endIndexRef:e,columnsRef:t,getLeft:r,renderColRef:o,renderItemWithColsRef:u}=ne(Le);return{startIndex:n,endIndex:e,columns:t,renderCol:o,renderItemWithCols:u,getLeft:r}},render(){const{startIndex:n,endIndex:e,columns:t,renderCol:r,renderItemWithCols:o,getLeft:u,item:b}=this;if(o!=null)return o({itemIndex:this.index,startColIndex:n,endColIndex:e,allColumns:t,item:b,getLeft:u});if(r!=null){const w=[];for(let l=n;l<=e;++l){const h=t[l];w.push(r({column:h,left:u(l),item:b}))}return w}return null}}),pt=B(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[B("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[B("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Ft=W({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,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(n){const e=oe();pt.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:ie,ssr:e}),R(()=>{const{defaultScrollIndex:s,defaultScrollKey:c}=n;s!=null?a({index:s}):c!=null&&a({key:c})});let t=!1,r=!1;Ue(()=>{if(t=!1,!r){r=!0;return}a({top:f.value,left:b.value})}),qe(()=>{t=!0,r||(r=!0)});const o=q(()=>{if(n.renderCol==null&&n.renderItemWithCols==null||n.columns.length===0)return;let s=0;return n.columns.forEach(c=>{s+=c.width}),s}),u=D(()=>{const s=new Map,{keyField:c}=n;return n.items.forEach((y,$)=>{s.set(y[c],$)}),s}),{scrollLeftRef:b,listWidthRef:w}=ht({columnsRef:N(n,"columns"),renderColRef:N(n,"renderCol"),renderItemWithColsRef:N(n,"renderItemWithCols")}),l=F(null),h=F(void 0),p=new Map,x=D(()=>{const{items:s,itemSize:c,keyField:y}=n,$=new Oe(s.length,c);return s.forEach((I,C)=>{const S=I[y],A=p.get(S);A!==void 0&&$.add(C,A)}),$}),d=F(0),f=F(0),m=q(()=>Math.max(x.value.getBound(f.value-pe(n.paddingTop))-1,0)),v=D(()=>{const{value:s}=h;if(s===void 0)return[];const{items:c,itemSize:y}=n,$=m.value,I=Math.min($+Math.ceil(s/y+1),c.length-1),C=[];for(let S=$;S<=I;++S)C.push(c[S]);return C}),a=(s,c)=>{if(typeof s=="number"){E(s,c,"auto");return}const{left:y,top:$,index:I,key:C,position:S,behavior:A,debounce:O=!0}=s;if(y!==void 0||$!==void 0)E(y,$,A);else if(I!==void 0)M(I,A,O);else if(C!==void 0){const le=u.value.get(C);le!==void 0&&M(le,A,O)}else S==="bottom"?E(0,Number.MAX_SAFE_INTEGER,A):S==="top"&&E(0,0,A)};let i,g=null;function M(s,c,y){const{value:$}=x,I=$.sum(s)+pe(n.paddingTop);if(!y)l.value.scrollTo({left:0,top:I,behavior:c});else{i=s,g!==null&&window.clearTimeout(g),g=window.setTimeout(()=>{i=void 0,g=null},16);const{scrollTop:C,offsetHeight:S}=l.value;if(I>C){const A=$.get(s);I+A<=C+S||l.value.scrollTo({left:0,top:I+A-S,behavior:c})}else l.value.scrollTo({left:0,top:I,behavior:c})}}function E(s,c,y){l.value.scrollTo({left:s,top:c,behavior:y})}function _(s,c){var y,$,I;if(t||n.ignoreItemResize||U(c.target))return;const{value:C}=x,S=u.value.get(s),A=C.get(S),O=(I=($=(y=c.borderBoxSize)===null||y===void 0?void 0:y[0])===null||$===void 0?void 0:$.blockSize)!==null&&I!==void 0?I:c.contentRect.height;if(O===A)return;O-n.itemSize===0?p.delete(s):p.set(s,O-n.itemSize);const K=O-A;if(K===0)return;C.add(S,K);const Y=l.value;if(Y!=null){if(i===void 0){const se=C.sum(S);Y.scrollTop>se&&Y.scrollBy(0,K)}else if(SY.scrollTop+Y.offsetHeight&&Y.scrollBy(0,K)}P()}d.value++}const V=!ct();let T=!1;function H(s){var c;(c=n.onScroll)===null||c===void 0||c.call(n,s),(!V||!T)&&P()}function j(s){var c;if((c=n.onWheel)===null||c===void 0||c.call(n,s),V){const y=l.value;if(y!=null){if(s.deltaX===0&&(y.scrollTop===0&&s.deltaY<=0||y.scrollTop+y.offsetHeight>=y.scrollHeight&&s.deltaY>=0))return;s.preventDefault(),y.scrollTop+=s.deltaY/Se(),y.scrollLeft+=s.deltaX/Se(),P(),T=!0,ze(()=>{T=!1})}}}function X(s){if(t||U(s.target))return;if(n.renderCol==null&&n.renderItemWithCols==null){if(s.contentRect.height===h.value)return}else if(s.contentRect.height===h.value&&s.contentRect.width===w.value)return;h.value=s.contentRect.height,w.value=s.contentRect.width;const{onResize:c}=n;c!==void 0&&c(s)}function P(){const{value:s}=l;s!=null&&(f.value=s.scrollTop,b.value=s.scrollLeft)}function U(s){let c=s;for(;c!==null;){if(c.style.display==="none")return!0;c=c.parentElement}return!1}return{listHeight:h,listStyle:{overflow:"auto"},keyToIndex:u,itemsStyle:D(()=>{const{itemResizable:s}=n,c=G(x.value.sum());return d.value,[n.itemsStyle,{boxSizing:"content-box",width:G(o.value),height:s?"":c,minHeight:s?c:"",paddingTop:G(n.paddingTop),paddingBottom:G(n.paddingBottom)}]}),visibleItemsStyle:D(()=>(d.value,{transform:`translateY(${G(x.value.sum(m.value))})`})),viewportItems:v,listElRef:l,itemsElRef:F(null),scrollTo:a,handleListResize:X,handleListScroll:H,handleListWheel:j,handleItemResize:_}},render(){const{itemResizable:n,keyField:e,keyToIndex:t,visibleItemsTag:r}=this;return z($e,{onResize:this.handleListResize},{default:()=>{var o,u;return z("div",Ke(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?z("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[z(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:b,renderItemWithCols:w}=this;return this.viewportItems.map(l=>{const h=l[e],p=t.get(h),x=b!=null?z(Te,{index:p,item:l}):void 0,d=w!=null?z(Te,{index:p,item:l}):void 0,f=this.$slots.default({item:l,renderedCols:x,renderedItemWithCols:d,index:p})[0];return n?z($e,{key:h,onResize:m=>this.handleItemResize(h,m)},{default:()=>f}):(f.key=h,f)})}})]):(u=(o=this.$slots).empty)===null||u===void 0?void 0:u.call(o)])}})}}),mt=B(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[B("&::-webkit-scrollbar",{width:0,height:0})]),At=W({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const n=F(null);function e(o){!(o.currentTarget.offsetWidthd){const{updateCounter:V}=n;for(let T=M;T>=0;--T){const H=i-1-T;V!==void 0?V(H):p.textContent=`${H}`;const j=p.offsetWidth;if(v-=f[T],v+j<=d||T===0){a=!0,M=T-1,m&&(M===-1?(m.style.maxWidth=`${d-j}px`,m.style.boxSizing="border-box"):m.style.maxWidth="");const{onUpdateCount:X}=n;X&&X(H);break}}}}const{onUpdateOverflow:g}=n;a?g!==void 0&&g(!0):(g!==void 0&&g(!1),p.setAttribute(k,""))}const u=oe();return vt.mount({id:"vueuc/overflow",head:!0,anchorMetaName:ie,ssr:u}),R(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:t,counterRef:r,sync:o}},render(){const{$slots:n}=this;return Ae(()=>this.sync({showAllItemsBeforeCalculate:!1})),z("div",{class:"v-overflow",ref:"selfRef"},[Be(n,"default"),n.counter?n.counter():z("span",{style:{display:"inline-block"},ref:"counterRef"}),n.tail?n.tail():null])}});function Ve(n){return n instanceof HTMLElement}function He(n){for(let e=0;e=0;e--){const t=n.childNodes[e];if(Ve(t)&&(Ye(t)||Xe(t)))return!0}return!1}function Ye(n){if(!bt(n))return!1;try{n.focus({preventScroll:!0})}catch{}return document.activeElement===n}function bt(n){if(n.tabIndex>0||n.tabIndex===0&&n.getAttribute("tabIndex")!==null)return!0;if(n.getAttribute("disabled"))return!1;switch(n.nodeName){case"A":return!!n.href&&n.rel!=="ignore";case"INPUT":return n.type!=="hidden"&&n.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let J=[];const Wt=W({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(n){const e=De(),t=F(null),r=F(null);let o=!1,u=!1;const b=typeof document>"u"?null:document.activeElement;function w(){return J[J.length-1]===e}function l(a){var i;a.code==="Escape"&&w()&&((i=n.onEsc)===null||i===void 0||i.call(n,a))}R(()=>{Q(()=>n.active,a=>{a?(x(),fe("keydown",document,l)):(Z("keydown",document,l),o&&d())},{immediate:!0})}),re(()=>{Z("keydown",document,l),o&&d()});function h(a){if(!u&&w()){const i=p();if(i===null||i.contains(Ne(a)))return;f("first")}}function p(){const a=t.value;if(a===null)return null;let i=a;for(;i=i.nextSibling,!(i===null||i instanceof Element&&i.tagName==="DIV"););return i}function x(){var a;if(!n.disabled){if(J.push(e),n.autoFocus){const{initialFocusTo:i}=n;i===void 0?f("first"):(a=we(i))===null||a===void 0||a.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",h,!0)}}function d(){var a;if(n.disabled||(document.removeEventListener("focus",h,!0),J=J.filter(g=>g!==e),w()))return;const{finalFocusTo:i}=n;i!==void 0?(a=we(i))===null||a===void 0||a.focus({preventScroll:!0}):n.returnFocusOnDeactivated&&b instanceof HTMLElement&&(u=!0,b.focus({preventScroll:!0}),u=!1)}function f(a){if(w()&&n.active){const i=t.value,g=r.value;if(i!==null&&g!==null){const M=p();if(M==null||M===g){u=!0,i.focus({preventScroll:!0}),u=!1;return}u=!0;const E=a==="first"?He(M):Xe(M);u=!1,E||(u=!0,i.focus({preventScroll:!0}),u=!1)}}}function m(a){if(u)return;const i=p();i!==null&&(a.relatedTarget!==null&&i.contains(a.relatedTarget)?f("last"):f("first"))}function v(a){u||(a.relatedTarget!==null&&a.relatedTarget===t.value?f("last"):f("first"))}return{focusableStartRef:t,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:m,handleEndFocus:v}},render(){const{default:n}=this.$slots;if(n===void 0)return null;if(this.disabled)return n();const{active:e,focusableStyle:t}=this;return z(Ie,null,[z("div",{"aria-hidden":"true",tabindex:e?"0":"-1",ref:"focusableStartRef",style:t,onFocus:this.handleStartFocus}),n(),z("div",{"aria-hidden":"true",style:t,ref:"focusableEndRef",tabindex:e?"0":"-1",onFocus:this.handleEndFocus})])}});export{It as B,Wt as F,rt as L,$e as V,Ft as a,Ct as b,Et as c,Bt as d,At as e,Me as r}; diff --git a/js/vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js.gz b/js/vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js.gz new file mode 100644 index 00000000..dc38e1ac Binary files /dev/null and b/js/vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js.gz differ diff --git a/js/zh-CN-CeI0xlBH.js b/js/zh-CN-CeI0xlBH.js deleted file mode 100644 index ea730940..00000000 --- a/js/zh-CN-CeI0xlBH.js +++ /dev/null @@ -1 +0,0 @@ -import{y as Z}from"./hooks-DUpKDX8W.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.6-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.5.6-CMHqEu2-.js";import"./@vueuse_shared@10.9.0_vue@3.5.6-BTLxKjPf.js";import"./utils-DvxnuKiq.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.0.1_pinia@2.1.7-MNUqeAcu.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.0-DyxInw53.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.5.6-CUaD_-7Q.js";import"./@vue_reactivity@3.5.6-CXMPYrvZ.js";import"./@vue_shared@3.5.6-6BrT-eFF.js";const e="当前环境不支持全屏",ee={isEnabledFullscreen:e},oe=Object.freeze(Object.defineProperty({__proto__:null,default:ee,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",c="动画效果",te={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},ne=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:te},Symbol.toStringTag,{value:"Module"})),s="刷新当前页面",i="锁屏",l="设置",r="Github",a="全屏",_="退出全屏",m="搜索",ce={Reload:s,Lock:i,Setting:l,Github:r,FullScreen:a,CancelFullScreen:_,Search:m},se=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:_,FullScreen:a,Github:r,Lock:i,Reload:s,Search:m,Setting:l,default:ce},Symbol.toStringTag,{value:"Module"})),p="请求",d="条形码",g="缓存工具函数",u="数字精度",f="右键菜单",b="首页",h="指令",S="文档",T="文档 (加速地址)",O="文档(内嵌)",y="可视化",C="表单",D="Mock 数据",P="模态框",M="多级菜单(缓存)",j="办公",v="文档",R="演示",z="表格",N="二维码",I="依赖项",L="关于",k="页面详情模式",F="分段器",x="SVG 图标",w="表格",A="模板内置 Api",E="滚动动画",G="高级表格",ie={Axios:p,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:y,Error:"错误页",Form:C,Mock:D,Modal:P,MultiMenu:M,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:I,RelyAbout:L,RouterDemo:k,Segment:F,SvgIcon:x,Table:w,TemplateHooks:A,scrollReveal:E,TablePro:G},le=Object.freeze(Object.defineProperty({__proto__:null,Axios:p,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:y,Form:C,Mock:D,Modal:P,MultiMenu:M,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:I,RelyAbout:L,RouterDemo:k,Segment:F,SvgIcon:x,Table:w,TablePro:G,TemplateHooks:A,default:ie,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),Q="项目配置",$={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},B="界面显示",re={Title:Q,ThemeOptions:$,InterfaceDisplay:B},ae=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:B,ThemeOptions:$,Title:Q,default:re},Symbol.toStringTag,{value:"Module"})),H="注册",V="登录",q="扫码登陆",J="请输入用户名",K="请输入密码",U="登 陆",W="用户名",X="密码",Y="开箱即用的中后台管理系统",_e={Register:H,Signing:V,QRCodeSigning:q,NamePlaceholder:J,PasswordPlaceholder:K,Login:U,Name:W,Password:X,RayTemplate:Y},me=Object.freeze(Object.defineProperty({__proto__:null,Login:U,Name:W,NamePlaceholder:J,Password:X,PasswordPlaceholder:K,QRCodeSigning:q,RayTemplate:Y,Register:H,Signing:V,default:_e},Symbol.toStringTag,{value:"Module"})),pe=Object.assign({"./zh-CN/globalMessage.json":oe,"./zh-CN/headerSettingOptions.json":ne,"./zh-CN/headerTooltip.json":se,"./zh-CN/menu.json":le,"./zh-CN/setting.json":ae,"./zh-CN/views/login/index.json":me}),Fe={message:{...Z(pe,"zh-CN")}};export{Fe as default}; diff --git a/js/zh-CN-CeI0xlBH.js.gz b/js/zh-CN-CeI0xlBH.js.gz deleted file mode 100644 index 78b5616b..00000000 Binary files a/js/zh-CN-CeI0xlBH.js.gz and /dev/null differ diff --git a/js/zh-CN-CvShabvr.js b/js/zh-CN-CvShabvr.js new file mode 100644 index 00000000..3f5b8973 --- /dev/null +++ b/js/zh-CN-CvShabvr.js @@ -0,0 +1 @@ +import{y as Z}from"./hooks-Dx3WCPci.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.5.12-CDC3yd1M.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./jsbarcode@3.11.6-DGNGFp02.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-CeZG2a4n.js";import"./naive-ui@2.40.1_vue@3.5.12-DHsO9NF4.js";import"./date-fns@3.6.0-q9PkOyxq.js";import"./seemly@0.3.8-DjGKl9dV.js";import"./@vue_runtime-core@3.5.12-o4JnKqGq.js";import"./@vue_reactivity@3.5.12-IcmYCeX3.js";import"./@vue_shared@3.5.12--5_uv9t5.js";import"./vueuc@0.4.64_vue@3.5.12-C5OYL2zc.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.12-CozsU_5I.js";import"./vooks@0.2.12_vue@3.5.12-fnTfirhD.js";import"./vdirs@0.1.8_vue@3.5.12-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-C8OzoCMD.js";import"./css-render@0.15.14-C5toWlUr.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./@vue_runtime-dom@3.5.12-CgYSV3BI.js";import"./treemate@0.3.11-DKekKYbv.js";import"./date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js";import"./@vueuse_core@11.1.0_vue@3.5.12-DcbFWgSD.js";import"./@vueuse_shared@11.1.0_vue@3.5.12-C48LWOin.js";import"./utils-CozJMALc.js";import"./interactjs@1.10.26-DZL_TZzP.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4-_Zka_ujQ.js";import"./destr@2.0.3-CVtkxrq9.js";import"./deep-pick-omit@1.2.1-CegYQlcN.js";import"./pinia@2.2.4_typescript@5.2.2_vue@3.5.12-DcSddqfC.js";import"./vue-demi@0.14.10_vue@3.5.12-Dq6ymT-8.js";import"./html-to-image@1.11.11-BOFdlgi9.js";import"./vue-router@4.3.2_vue@3.5.12-DofREeSi.js";import"./vue-i18n@9.13.1_vue@3.5.12-BPgVS6jR.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-C6DqbPB6.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.0-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";const o="当前环境不支持全屏",oo={isEnabledFullscreen:o},eo=Object.freeze(Object.defineProperty({__proto__:null,default:oo,isEnabledFullscreen:o},Symbol.toStringTag,{value:"Module"})),e="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",i="动画效果",to={Title:e,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:i},no=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:i,InterfaceDisplay:n,ThemeOptions:t,Title:e,default:to},Symbol.toStringTag,{value:"Module"})),r="刷新当前页面",c="锁屏",s="设置",l="Github",a="全屏",m="退出全屏",p="搜索",io={Reload:r,Lock:c,Setting:s,Github:l,FullScreen:a,CancelFullScreen:m,Search:p},ro=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:a,Github:l,Lock:c,Reload:r,Search:p,Setting:s,default:io},Symbol.toStringTag,{value:"Module"})),_="请求",d="条形码",g="缓存工具函数",u="数字精度",f="右键菜单",b="首页",h="指令",S="文档",T="文档 (加速地址)",O="文档(内嵌)",y="可视化",C="表单",D="Mock 数据",P="模态框",M="多级菜单(缓存)",j="办公",v="文档",R="演示",z="表格",N="二维码",I="依赖项",L="关于",k="页面详情模式",F="分段器",x="SVG 图标",w="表格",A="模板内置 Api",E="滚动动画",G="高级表格",co={Axios:_,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:y,Error:"错误页",Form:C,Mock:D,Modal:P,MultiMenu:M,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:I,RelyAbout:L,RouterDemo:k,Segment:F,SvgIcon:x,Table:w,TemplateHooks:A,scrollReveal:E,TablePro:G},so=Object.freeze(Object.defineProperty({__proto__:null,Axios:_,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:y,Form:C,Mock:D,Modal:P,MultiMenu:M,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:I,RelyAbout:L,RouterDemo:k,Segment:F,SvgIcon:x,Table:w,TablePro:G,TemplateHooks:A,default:co,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),Q="项目配置",$={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},B="界面显示",lo={Title:Q,ThemeOptions:$,InterfaceDisplay:B},ao=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:B,ThemeOptions:$,Title:Q,default:lo},Symbol.toStringTag,{value:"Module"})),H="注册",V="登录",q="扫码登陆",J="请输入用户名",K="请输入密码",U="登 陆",W="用户名",X="密码",Y="开箱即用的中后台管理系统",mo={Register:H,Signing:V,QRCodeSigning:q,NamePlaceholder:J,PasswordPlaceholder:K,Login:U,Name:W,Password:X,RayTemplate:Y},po=Object.freeze(Object.defineProperty({__proto__:null,Login:U,Name:W,NamePlaceholder:J,Password:X,PasswordPlaceholder:K,QRCodeSigning:q,RayTemplate:Y,Register:H,Signing:V,default:mo},Symbol.toStringTag,{value:"Module"})),_o=Object.assign({"./zh-CN/globalMessage.json":eo,"./zh-CN/headerSettingOptions.json":no,"./zh-CN/headerTooltip.json":ro,"./zh-CN/menu.json":so,"./zh-CN/setting.json":ao,"./zh-CN/views/login/index.json":po}),le={message:{...Z(_o,"zh-CN")}};export{le as default}; diff --git a/js/zh-CN-CvShabvr.js.gz b/js/zh-CN-CvShabvr.js.gz new file mode 100644 index 00000000..c4810757 Binary files /dev/null and b/js/zh-CN-CvShabvr.js.gz differ diff --git a/mockServer/mock-data.js b/mockServer/mock-data.js index c95023d3..3eabf349 100644 --- a/mockServer/mock-data.js +++ b/mockServer/mock-data.js @@ -4,7 +4,7 @@ var __export = (target, all) => { __defProp(target, name, { get: all[name], enumerable: true }); }; -// mock-data-1727424193385.js +// mock-data-1729043721967.js import { transformMockData } from "vite-plugin-mock-dev-server"; // mock/demo/person.mock.ts @@ -85,7 +85,7 @@ var getPersonList = defineMock({ } }); -// mock-data-1727424193385.js +// mock-data-1729043721967.js var exporters = [person_mock_exports]; var mockList = exporters.map((raw) => { let mockConfig; @@ -99,7 +99,7 @@ var mockList = exporters.map((raw) => { } return mockConfig; }); -var mock_data_1727424193385_default = transformMockData(mockList); +var mock_data_1729043721967_default = transformMockData(mockList); export { - mock_data_1727424193385_default as default + mock_data_1729043721967_default as default }; diff --git a/mockServer/mock-data.js.gz b/mockServer/mock-data.js.gz index 0fb9f4ef..3dfee1ce 100644 Binary files a/mockServer/mock-data.js.gz and b/mockServer/mock-data.js.gz differ