1199 lines
405 KiB
JavaScript
1199 lines
405 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/readme.js","assets/_plugin-vue_export-helper.js","assets/readme.css","assets/Log.js","assets/HelpText.js","assets/HelpText.css","assets/DropDown.js","assets/op_select.js","assets/use-locale.js","assets/Select.js","assets/Tag.js","assets/Input.js","assets/VirtualList.js","assets/Scrollbar.js","assets/index.js","assets/get-slot.js","assets/Avatar.js","assets/utils.js","assets/Forward.js","assets/DropDown.css","assets/Play.js","assets/Log.css","assets/Plan.js","assets/SlickOperatorSelect.js","assets/Image.js","assets/download.js","assets/SlickOperatorSelect.css","assets/IosArrowForward.js","assets/TrashOutline.js","assets/RadioGroup.js","assets/Plan.css","assets/Settings.js","assets/Slider.js","assets/Alert.js","assets/Divider.js","assets/headers.js","assets/Grid.js","assets/Settings.css","assets/Material_all_in_one.js","assets/Doc.js","assets/BasementSkill.js","assets/BasementSkill.css","assets/DebugConsole.js","assets/RecordLine.js","assets/record.js","assets/RecordLine.css","assets/depot.js","assets/RecordPie.js","assets/RecordPie.css","assets/report.js","assets/report.css","assets/NotFound.js"])))=>i.map(i=>d[i]);
|
|
import{e as ls,r as B,m as In,t as ss,i as uo,a as mi,b as be,c as me,w as Be,d as Zo,h as Vu,g as Uu,o as Ku,n as qe,f as Gu,j as F,k as Ye,F as gt,C as cs,l as Wo,p as Gt,q as ds,s as St,u as ut,v as Ue,x as Jo,y as He,z as ze,A as Ze,B as se,D as ve,E as Ct,G as qu,H as b,T as gi,I as vi,J as Wn,K as Xu,L as Vn,M as An,N as us,O as bi,P as Vo,Q as Un,R as Qo,S as Yu,U as Zu,V as xi,W as Ju,X as zt,Y as yi,Z as Qu,_ as vo,$ as Hr,a0 as fs,a1 as ca,a2 as ef,a3 as da,a4 as ua,a5 as wn,a6 as tf,a7 as fa,a8 as of,a9 as nf,aa as rf,ab as af,ac as lf,ad as sf,ae as fr,af as _o,ag as cf,ah as Eo,ai as Kn,aj as hs,ak as Ci,al as Ve,am as ie,an as xe,ao as df,ap as We,aq as bo,ar as K,as as T,at as lt,au as j,av as N,aw as uf,ax as Xe,ay as Re,az as wt,aA as Uo,aB as ao,aC as ft,aD as en,aE as ha,aF as xo,aG as At,aH as ps,aI as fo,aJ as wi,aK as ff,aL as $e,aM as J,aN as hf,aO as Gn,aP as pf,aQ as mf,aR as Dr,aS as ms,aT as pa,aU as ma,aV as tn,aW as gf,aX as Tt,aY as Oe,aZ as on,a_ as vf,a$ as bf,b0 as gs,b1 as Oo,b2 as nn,b3 as Nr,b4 as ga,b5 as Si,b6 as xf,b7 as yf,b8 as _i,b9 as vs,ba as Cf,bb as bs,bc as wf,bd as xs,be as ys,bf as Sn,bg as Sf,bh as _f,bi as Ef,bj as Pf,bk as kf,bl as Tf,bm as et,bn as Rf,bo as Pe,bp as Of,bq as $f,br as If,bs as Af,bt as un,bu as fn,bv as Me,bw as Te,bx as hr,by as pt,bz as zf}from"./_plugin-vue_export-helper.js";var Mf=!1;/*!
|
|
* pinia v2.2.6
|
|
* (c) 2024 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let Cs;const qn=e=>Cs=e,ws=Symbol();function Fr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ao;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ao||(Ao={}));function Lf(){const e=ls(!0),t=e.run(()=>B({}));let o=[],n=[];const r=In({install(i){qn(r),r._a=i,i.provide(ws,r),i.config.globalProperties.$pinia=r,n.forEach(a=>o.push(a)),n=[]},use(i){return!this._a&&!Mf?n.push(i):o.push(i),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return r}const Ss=()=>{};function va(e,t,o,n=Ss){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!o&&Uu()&&Ku(r),r}function Qt(e,...t){e.slice().forEach(o=>{o(...t)})}const Bf=e=>e(),ba=Symbol(),pr=Symbol();function jr(e,t){e instanceof Map&&t instanceof Map?t.forEach((o,n)=>e.set(n,o)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){if(!t.hasOwnProperty(o))continue;const n=t[o],r=e[o];Fr(r)&&Fr(n)&&e.hasOwnProperty(o)&&!uo(n)&&!mi(n)?e[o]=jr(r,n):e[o]=n}return e}const Hf=Symbol();function Df(e){return!Fr(e)||!e.hasOwnProperty(Hf)}const{assign:Rt}=Object;function Nf(e){return!!(uo(e)&&e.effect)}function Ff(e,t,o,n){const{state:r,actions:i,getters:a}=t,s=o.state.value[e];let l;function c(){s||(o.state.value[e]=r?r():{});const d=Gu(o.state.value[e]);return Rt(d,i,Object.keys(a||{}).reduce((u,f)=>(u[f]=In(F(()=>{qn(o);const h=o._s.get(e);return a[f].call(h,h)})),u),{}))}return l=_s(e,c,t,o,n,!0),l}function _s(e,t,o={},n,r,i){let a;const s=Rt({actions:{}},o),l={deep:!0};let c,d,u=[],f=[],h;const m=n.state.value[e];!i&&!m&&(n.state.value[e]={}),B({});let p;function g(A){let S;c=d=!1,typeof A=="function"?(A(n.state.value[e]),S={type:Ao.patchFunction,storeId:e,events:h}):(jr(n.state.value[e],A),S={type:Ao.patchObject,payload:A,storeId:e,events:h});const R=p=Symbol();qe().then(()=>{p===R&&(c=!0)}),d=!0,Qt(u,S,n.state.value[e])}const v=i?function(){const{state:S}=o,R=S?S():{};this.$patch(z=>{Rt(z,R)})}:Ss;function y(){a.stop(),u=[],f=[],n._s.delete(e)}const k=(A,S="")=>{if(ba in A)return A[pr]=S,A;const R=function(){qn(n);const z=Array.from(arguments),O=[],Q=[];function ne(w){O.push(w)}function L(w){Q.push(w)}Qt(f,{args:z,name:R[pr],store:x,after:ne,onError:L});let le;try{le=A.apply(this&&this.$id===e?this:x,z)}catch(w){throw Qt(Q,w),w}return le instanceof Promise?le.then(w=>(Qt(O,w),w)).catch(w=>(Qt(Q,w),Promise.reject(w))):(Qt(O,le),le)};return R[ba]=!0,R[pr]=S,R},E={_p:n,$id:e,$onAction:va.bind(null,f),$patch:g,$reset:v,$subscribe(A,S={}){const R=va(u,A,S.detached,()=>z()),z=a.run(()=>Be(()=>n.state.value[e],O=>{(S.flush==="sync"?d:c)&&A({storeId:e,type:Ao.direct,events:h},O)},Rt({},l,S)));return R},$dispose:y},x=Zo(E);n._s.set(e,x);const C=(n._a&&n._a.runWithContext||Bf)(()=>n._e.run(()=>(a=ls()).run(()=>t({action:k}))));for(const A in C){const S=C[A];if(uo(S)&&!Nf(S)||mi(S))i||(m&&Df(S)&&(uo(S)?S.value=m[A]:jr(S,m[A])),n.state.value[e][A]=S);else if(typeof S=="function"){const R=k(S,A);C[A]=R,s.actions[A]=S}}return Rt(x,C),Rt(ss(x),C),Object.defineProperty(x,"$state",{get:()=>n.state.value[e],set:A=>{g(S=>{Rt(S,A)})}}),n._p.forEach(A=>{Rt(x,a.run(()=>A({store:x,app:n._a,pinia:n,options:s})))}),m&&i&&o.hydrate&&o.hydrate(x.$state,m),c=!0,d=!0,x}/*! #__NO_SIDE_EFFECTS__ */function Xn(e,t,o){let n,r;const i=typeof t=="function";typeof e=="string"?(n=e,r=i?o:t):(r=e,n=e.id);function a(s,l){const c=Vu();return s=s||(c?me(ws,null):null),s&&qn(s),s=Cs,s._s.has(n)||(i?_s(n,t,r,s):Ff(n,r,s)),s._s.get(n)}return a.$id=n,a}function mr(e){{const t=ss(e),o={};for(const n in t){const r=t[n];(uo(r)||mi(r))&&(o[n]=be(e,n))}return o}}let zn=[];const Es=new WeakMap;function jf(){zn.forEach(e=>e(...Es.get(e))),zn=[]}function Wf(e,...t){Es.set(e,t),!zn.includes(e)&&zn.push(e)===1&&requestAnimationFrame(jf)}function xa(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function yt(e,t=[],o){const n={};return t.forEach(r=>{n[r]=e[r]}),Object.assign(n,o)}function Ei(e,t=[],o){const n={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),Object.assign(n,o)}function lo(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(Ye(String(n)));return}if(Array.isArray(n)){lo(n,t,o);return}if(n.type===gt){if(n.children===null)return;Array.isArray(n.children)&&lo(n.children,t,o)}else{if(n.type===cs&&t)return;o.push(n)}}}),o}function je(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?Ye(e):typeof e=="number"?Ye(String(e)):null}function Wr(e,t="default",o=void 0){const n=e[t];if(!n)return Wo("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=lo(n(o));return r.length===1?r[0]:(Wo("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Vf(e){return t=>{t?e.value=t.$el:e.value=null}}let gr;function Uf(){return gr===void 0&&(gr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),gr}const Ps=new WeakSet;function qS(e){Ps.add(e)}function Kf(e){return!Ps.has(e)}function Gf(e,t,o){const n=B(e.value);let r=null;return Be(e,i=>{r!==null&&window.clearTimeout(r),i===!0?o&&!o.value?n.value=!0:r=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}function qf(e){const t=B(!!e.value);if(t.value)return Gt(t);const o=Be(e,n=>{n&&(t.value=!0,o())});return Gt(t)}function Pi(){return ds()!==null}const ki=typeof window<"u";let so,zo;const Xf=()=>{var e,t;so=ki?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,zo=!1,so!==void 0?so.then(()=>{zo=!0}):zo=!0};Xf();function Ti(e){if(zo)return;let t=!1;St(()=>{zo||so==null||so.then(()=>{t||e()})}),ut(()=>{t=!0})}const $o=B(null);function ya(e){if(e.clientX>0||e.clientY>0)$o.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:o,top:n,width:r,height:i}=t.getBoundingClientRect();o>0||n>0?$o.value={x:o+r/2,y:n+i/2}:$o.value={x:0,y:0}}else $o.value=null}}let hn=0,Ca=!0;function ks(){if(!ki)return Gt(B(null));hn===0&&Ue("click",document,ya,!0);const e=()=>{hn+=1};return Ca&&(Ca=Pi())?(Jo(e),ut(()=>{hn-=1,hn===0&&He("click",document,ya,!0)})):e(),Gt($o)}const Yf=B(void 0);let pn=0;function wa(){Yf.value=Date.now()}let Sa=!0;function Ts(e){if(!ki)return Gt(B(!1));const t=B(!1);let o=null;function n(){o!==null&&window.clearTimeout(o)}function r(){n(),t.value=!0,o=window.setTimeout(()=>{t.value=!1},e)}pn===0&&Ue("click",window,wa,!0);const i=()=>{pn+=1,Ue("click",window,r,!0)};return Sa&&(Sa=Pi())?(Jo(i),ut(()=>{pn-=1,pn===0&&He("click",window,wa,!0),He("click",window,r,!0),n()})):i(),Gt(t)}function Mn(e,t){return F(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}function Zf(e={},t){const o=Zo({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:r}=e,i=l=>{switch(l.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}n!==void 0&&Object.keys(n).forEach(c=>{if(c!==l.key)return;const d=n[c];if(typeof d=="function")d(l);else{const{stop:u=!1,prevent:f=!1}=d;u&&l.stopPropagation(),f&&l.preventDefault(),d.handler(l)}})},a=l=>{switch(l.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==l.key)return;const d=r[c];if(typeof d=="function")d(l);else{const{stop:u=!1,prevent:f=!1}=d;u&&l.stopPropagation(),f&&l.preventDefault(),d.handler(l)}})},s=()=>{(t===void 0||t.value)&&(Ue("keydown",document,i),Ue("keyup",document,a)),t!==void 0&&Be(t,l=>{l?(Ue("keydown",document,i),Ue("keyup",document,a)):(He("keydown",document,i),He("keyup",document,a))})};return Pi()?(Jo(s),ut(()=>{(t===void 0||t.value)&&(He("keydown",document,i),He("keyup",document,a))})):s(),Gt(o)}const XS=ze("n-internal-select-menu"),Jf=ze("n-internal-select-menu-body"),Yn=ze("n-modal-body"),Qf=ze("n-modal-provider"),Rs=ze("n-modal"),Zn=ze("n-drawer-body"),rn=ze("n-popover-body"),Os="__disabled__";function ho(e){const t=me(Yn,null),o=me(Zn,null),n=me(rn,null),r=me(Jf,null),i=B();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};St(()=>{Ue("fullscreenchange",document,a)}),ut(()=>{He("fullscreenchange",document,a)})}return Ze(()=>{var a;const{to:s}=e;return s!==void 0?s===!1?Os:s===!0?i.value||"body":s:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:o!=null&&o.value?o.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:s??(i.value||"body")})}ho.tdkey=Os;ho.propTo={type:[String,Object,Boolean],default:void 0};function Vr(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return n()}function Ur(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(Ye(String(n)));return}if(Array.isArray(n)){Ur(n,t,o);return}if(n.type===gt){if(n.children===null)return;Array.isArray(n.children)&&Ur(n.children,t,o)}else n.type!==cs&&o.push(n)}}),o}function _a(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const r=Ur(n());if(r.length===1)return r[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}let _t=null;function $s(){if(_t===null&&(_t=document.getElementById("v-binder-view-measurer"),_t===null)){_t=document.createElement("div"),_t.id="v-binder-view-measurer";const{style:e}=_t;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(_t)}return _t.getBoundingClientRect()}function eh(e,t){const o=$s();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function vr(e){const t=e.getBoundingClientRect(),o=$s();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function th(e){return e.nodeType===9?null:e.parentNode}function Is(e){if(e===null)return null;const t=th(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+r+n))return t}return Is(t)}const As=se({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ve("VBinder",(t=ds())===null||t===void 0?void 0:t.proxy);const o=me("VBinder",null),n=B(null),r=v=>{n.value=v,o&&e.syncTargetWithParent&&o.setTargetRef(v)};let i=[];const a=()=>{let v=n.value;for(;v=Is(v),v!==null;)i.push(v);for(const y of i)Ue("scroll",y,u,!0)},s=()=>{for(const v of i)He("scroll",v,u,!0);i=[]},l=new Set,c=v=>{l.size===0&&a(),l.has(v)||l.add(v)},d=v=>{l.has(v)&&l.delete(v),l.size===0&&s()},u=()=>{Wf(f)},f=()=>{l.forEach(v=>v())},h=new Set,m=v=>{h.size===0&&Ue("resize",window,g),h.has(v)||h.add(v)},p=v=>{h.has(v)&&h.delete(v),h.size===0&&He("resize",window,g)},g=()=>{h.forEach(v=>v())};return ut(()=>{He("resize",window,g),s()}),{targetRef:n,setTargetRef:r,addScrollListener:c,removeScrollListener:d,addResizeListener:m,removeResizeListener:p}},render(){return Vr("binder",this.$slots)}}),zs=se({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=me("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Ct(_a("follower",this.$slots),[[t]]):_a("follower",this.$slots)}}),eo="@@mmoContext",oh={mounted(e,{value:t}){e[eo]={handler:void 0},typeof t=="function"&&(e[eo].handler=t,Ue("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[eo];typeof t=="function"?o.handler?o.handler!==t&&(He("mousemoveoutside",e,o.handler),o.handler=t,Ue("mousemoveoutside",e,t)):(e[eo].handler=t,Ue("mousemoveoutside",e,t)):o.handler&&(He("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[eo];t&&He("mousemoveoutside",e,t),e[eo].handler=void 0}},to="@@coContext",Kr={mounted(e,{value:t,modifiers:o}){e[to]={handler:void 0},typeof t=="function"&&(e[to].handler=t,Ue("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const n=e[to];typeof t=="function"?n.handler?n.handler!==t&&(He("clickoutside",e,n.handler,{capture:o.capture}),n.handler=t,Ue("clickoutside",e,t,{capture:o.capture})):(e[to].handler=t,Ue("clickoutside",e,t,{capture:o.capture})):n.handler&&(He("clickoutside",e,n.handler,{capture:o.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[to];o&&He("clickoutside",e,o,{capture:t.capture}),e[to].handler=void 0}};function nh(e,t){console.error(`[vdirs/${e}]: ${t}`)}class rh{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,o){const{elementZIndex:n}=this;if(o!==void 0){t.style.zIndex=`${o}`,n.delete(t);return}const{nextZIndex:r}=this;n.has(t)&&n.get(t)+1===this.nextZIndex||(t.style.zIndex=`${r}`,n.set(t,r),this.nextZIndex=r+1,this.squashState())}unregister(t,o){const{elementZIndex:n}=this;n.has(t)?n.delete(t):o===void 0&&nh("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((o,n)=>o[1]-n[1]),this.nextZIndex=2e3,t.forEach(o=>{const n=o[0],r=this.nextZIndex++;`${r}`!==n.style.zIndex&&(n.style.zIndex=`${r}`)})}}const br=new rh,oo="@@ziContext",Ri={mounted(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o;e[oo]={enabled:!!r,initialized:!1},r&&(br.ensureZIndex(e,n),e[oo].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o,i=e[oo].enabled;r&&!i&&(br.ensureZIndex(e,n),e[oo].initialized=!0),e[oo].enabled=!!r},unmounted(e,t){if(!e[oo].initialized)return;const{value:o={}}=t,{zIndex:n}=o;br.unregister(e,n)}},{c:Dt}=qu(),Oi="vueuc-style";function Ea(e){return typeof e=="string"?document.querySelector(e):e()}const Ms=se({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:qf(be(e,"show")),mergedTo:F(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Vr("lazy-teleport",this.$slots):b(gi,{disabled:this.disabled,to:this.mergedTo},Vr("lazy-teleport",this.$slots)):null}}),mn={top:"bottom",bottom:"top",left:"right",right:"left"},Pa={start:"end",center:"center",end:"start"},xr={top:"height",bottom:"height",left:"width",right:"width"},ih={"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"},ah={"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"},lh={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ka={top:!0,bottom:!1,left:!0,right:!1},Ta={top:"end",bottom:"start",left:"end",right:"start"};function sh(e,t,o,n,r,i){if(!r||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=s??"center",c={top:0,left:0};const d=(h,m,p)=>{let g=0,v=0;const y=o[h]-t[m]-t[h];return y>0&&n&&(p?v=ka[m]?y:-y:g=ka[m]?y:-y),{left:g,top:v}},u=a==="left"||a==="right";if(l!=="center"){const h=lh[e],m=mn[h],p=xr[h];if(o[p]>t[p]){if(t[h]+t[p]<o[p]){const g=(o[p]-t[p])/2;t[h]<g||t[m]<g?t[h]<t[m]?(l=Pa[s],c=d(p,m,u)):c=d(p,h,u):l="center"}}else o[p]<t[p]&&t[m]<0&&t[h]>t[m]&&(l=Pa[s])}else{const h=a==="bottom"||a==="top"?"left":"top",m=mn[h],p=xr[h],g=(o[p]-t[p])/2;(t[h]<g||t[m]<g)&&(t[h]>t[m]?(l=Ta[h],c=d(p,h,u)):(l=Ta[m],c=d(p,m,u)))}let f=a;return t[a]<o[xr[a]]&&t[a]<t[mn[a]]&&(f=mn[a]),{placement:l!=="center"?`${f}-${l}`:f,left:c.left,top:c.top}}function ch(e,t){return t?ah[e]:ih[e]}function dh(e,t,o,n,r,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:""};case"bottom-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:""};case"right-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width/2+r)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width/2+r)}px`,transform:"translateX(-50%)"}}}const uh=Dt([Dt(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),Dt(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[Dt("> *",{pointerEvents:"all"})])]),Ls=se({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=me("VBinder"),o=Ze(()=>e.enabled!==void 0?e.enabled:e.show),n=B(null),r=B(null),i=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(l),f.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};St(()=>{o.value&&(l(),i())});const s=vi();uh.mount({id:"vueuc/binder",head:!0,anchorMetaName:Oi,ssr:s}),ut(()=>{a()}),Ti(()=>{o.value&&l()});const l=()=>{if(!o.value)return;const f=n.value;if(f===null)return;const h=t.targetRef,{x:m,y:p,overlap:g}=e,v=m!==void 0&&p!==void 0?eh(m,p):vr(h);f.style.setProperty("--v-target-width",`${Math.round(v.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(v.height)}px`);const{width:y,minWidth:k,placement:E,internalShift:x,flip:_}=e;f.setAttribute("v-placement",E),g?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:C}=f;y==="target"?C.width=`${v.width}px`:y!==void 0?C.width=y:C.width="",k==="target"?C.minWidth=`${v.width}px`:k!==void 0?C.minWidth=k:C.minWidth="";const A=vr(f),S=vr(r.value),{left:R,top:z,placement:O}=sh(E,v,A,x,_,g),Q=ch(O,g),{left:ne,top:L,transform:le}=dh(O,S,v,z,R,g);f.setAttribute("v-placement",O),f.style.setProperty("--v-offset-left",`${Math.round(R)}px`),f.style.setProperty("--v-offset-top",`${Math.round(z)}px`),f.style.transform=`translateX(${ne}) translateY(${L}) ${le}`,f.style.setProperty("--v-transform-origin",Q),f.style.transformOrigin=Q};Be(o,f=>{f?(i(),c()):a()});const c=()=>{qe().then(l).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{Be(be(e,f),l)}),["teleportDisabled"].forEach(f=>{Be(be(e,f),c)}),Be(be(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),f.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const d=Wn(),u=Ze(()=>{const{to:f}=e;if(f!==void 0)return f;d.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:r,followerRef:n,mergedTo:u,syncPosition:l}},render(){return b(Ms,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=b("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[b("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?Ct(o,[[Ri,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}}),fh=Dt(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Dt("&::-webkit-scrollbar",{width:0,height:0})]),hh=se({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=B(null);function t(r){!(r.currentTarget.offsetWidth<r.currentTarget.scrollWidth)||r.deltaY===0||(r.currentTarget.scrollLeft+=r.deltaY+r.deltaX,r.preventDefault())}const o=vi();return fh.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:Oi,ssr:o}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...r){var i;(i=e.value)===null||i===void 0||i.scrollTo(...r)}})},render(){return b("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}}),vt="v-hidden",ph=Dt("[v-hidden]",{display:"none!important"}),mh=se({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const o=B(null),n=B(null);function r(a){const{value:s}=o,{getCounter:l,getTail:c}=e;let d;if(l!==void 0?d=l():d=n.value,!s||!d)return;d.hasAttribute(vt)&&d.removeAttribute(vt);const{children:u}=s;if(a.showAllItemsBeforeCalculate)for(const k of u)k.hasAttribute(vt)&&k.removeAttribute(vt);const f=s.offsetWidth,h=[],m=t.tail?c==null?void 0:c():null;let p=m?m.offsetWidth:0,g=!1;const v=s.children.length-(t.tail?1:0);for(let k=0;k<v-1;++k){if(k<0)continue;const E=u[k];if(g){E.hasAttribute(vt)||E.setAttribute(vt,"");continue}else E.hasAttribute(vt)&&E.removeAttribute(vt);const x=E.offsetWidth;if(p+=x,h[k]=x,p>f){const{updateCounter:_}=e;for(let C=k;C>=0;--C){const A=v-1-C;_!==void 0?_(A):d.textContent=`${A}`;const S=d.offsetWidth;if(p-=h[C],p+S<=f||C===0){g=!0,k=C-1,m&&(k===-1?(m.style.maxWidth=`${f-S}px`,m.style.boxSizing="border-box"):m.style.maxWidth="");const{onUpdateCount:R}=e;R&&R(A);break}}}}const{onUpdateOverflow:y}=e;g?y!==void 0&&y(!0):(y!==void 0&&y(!1),d.setAttribute(vt,""))}const i=vi();return ph.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Oi,ssr:i}),St(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:n,sync:r}},render(){const{$slots:e}=this;return qe(()=>this.sync({showAllItemsBeforeCalculate:!1})),b("div",{class:"v-overflow",ref:"selfRef"},[Xu(e,"default"),e.counter?e.counter():b("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Bs(e){return e instanceof HTMLElement}function Hs(e){for(let t=0;t<e.childNodes.length;t++){const o=e.childNodes[t];if(Bs(o)&&(Ns(o)||Hs(o)))return!0}return!1}function Ds(e){for(let t=e.childNodes.length-1;t>=0;t--){const o=e.childNodes[t];if(Bs(o)&&(Ns(o)||Ds(o)))return!0}return!1}function Ns(e){if(!gh(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function gh(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Po=[];const Fs=se({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Vn(),o=B(null),n=B(null);let r=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return Po[Po.length-1]===t}function l(g){var v;g.code==="Escape"&&s()&&((v=e.onEsc)===null||v===void 0||v.call(e,g))}St(()=>{Be(()=>e.active,g=>{g?(u(),Ue("keydown",document,l)):(He("keydown",document,l),r&&f())},{immediate:!0})}),ut(()=>{He("keydown",document,l),r&&f()});function c(g){if(!i&&s()){const v=d();if(v===null||v.contains(An(g)))return;h("first")}}function d(){const g=o.value;if(g===null)return null;let v=g;for(;v=v.nextSibling,!(v===null||v instanceof Element&&v.tagName==="DIV"););return v}function u(){var g;if(!e.disabled){if(Po.push(t),e.autoFocus){const{initialFocusTo:v}=e;v===void 0?h("first"):(g=Ea(v))===null||g===void 0||g.focus({preventScroll:!0})}r=!0,document.addEventListener("focus",c,!0)}}function f(){var g;if(e.disabled||(document.removeEventListener("focus",c,!0),Po=Po.filter(y=>y!==t),s()))return;const{finalFocusTo:v}=e;v!==void 0?(g=Ea(v))===null||g===void 0||g.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function h(g){if(s()&&e.active){const v=o.value,y=n.value;if(v!==null&&y!==null){const k=d();if(k==null||k===y){i=!0,v.focus({preventScroll:!0}),i=!1;return}i=!0;const E=g==="first"?Hs(k):Ds(k);i=!1,E||(i=!0,v.focus({preventScroll:!0}),i=!1)}}}function m(g){if(i)return;const v=d();v!==null&&(g.relatedTarget!==null&&v.contains(g.relatedTarget)?h("last"):h("first"))}function p(g){i||(g.relatedTarget!==null&&g.relatedTarget===o.value?h("last"):h("first"))}return{focusableStartRef:o,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:m,handleEndFocus:p}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return b(gt,null,[b("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),b("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let no=0,Ra="",Oa="",$a="",Ia="";const Aa=B("0px");function vh(e){if(typeof document>"u")return;const t=document.documentElement;let o,n=!1;const r=()=>{t.style.marginRight=Ra,t.style.overflow=Oa,t.style.overflowX=$a,t.style.overflowY=Ia,Aa.value="0px"};St(()=>{o=Be(e,i=>{if(i){if(!no){const a=window.innerWidth-t.offsetWidth;a>0&&(Ra=t.style.marginRight,t.style.marginRight=`${a}px`,Aa.value=`${a}px`),Oa=t.style.overflow,$a=t.style.overflowX,Ia=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,no++}else no--,no||r(),n=!1},{immediate:!0})}),ut(()=>{o==null||o(),n&&(no--,no||r(),n=!1)})}const $i=B(!1);function za(){$i.value=!0}function Ma(){$i.value=!1}let ko=0;function bh(){return us&&(Jo(()=>{ko||(window.addEventListener("compositionstart",za),window.addEventListener("compositionend",Ma)),ko++}),ut(()=>{ko<=1?(window.removeEventListener("compositionstart",za),window.removeEventListener("compositionend",Ma),ko=0):ko--})),$i}var xh=/\s/;function yh(e){for(var t=e.length;t--&&xh.test(e.charAt(t)););return t}var Ch=/^\s+/;function wh(e){return e&&e.slice(0,yh(e)+1).replace(Ch,"")}var La=NaN,Sh=/^[-+]0x[0-9a-f]+$/i,_h=/^0b[01]+$/i,Eh=/^0o[0-7]+$/i,Ph=parseInt;function Ba(e){if(typeof e=="number")return e;if(bi(e))return La;if(Vo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Vo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wh(e);var o=_h.test(e);return o||Eh.test(e)?Ph(e.slice(2),o?2:8):Sh.test(e)?La:+e}var Gr=Un(Qo,"WeakMap"),kh=Yu(Object.keys,Object),Th=Object.prototype,Rh=Th.hasOwnProperty;function Oh(e){if(!Zu(e))return kh(e);var t=[];for(var o in Object(e))Rh.call(e,o)&&o!="constructor"&&t.push(o);return t}function Ii(e){return xi(e)?Ju(e):Oh(e)}var $h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ih=/^\w*$/;function Ai(e,t){if(zt(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||bi(e)?!0:Ih.test(e)||!$h.test(e)||t!=null&&e in Object(t)}var Ah="Expected a function";function zi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ah);var o=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=o.cache;if(i.has(r))return i.get(r);var a=e.apply(this,n);return o.cache=i.set(r,a)||i,a};return o.cache=new(zi.Cache||yi),o}zi.Cache=yi;var zh=500;function Mh(e){var t=zi(e,function(n){return o.size===zh&&o.clear(),n}),o=t.cache;return t}var Lh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bh=/\\(\\)?/g,Hh=Mh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Lh,function(o,n,r,i){t.push(r?i.replace(Bh,"$1"):n||o)}),t});function js(e,t){return zt(e)?e:Ai(e,t)?[e]:Hh(Qu(e))}var Dh=1/0;function Jn(e){if(typeof e=="string"||bi(e))return e;var t=e+"";return t=="0"&&1/e==-Dh?"-0":t}function Ws(e,t){t=js(t,e);for(var o=0,n=t.length;e!=null&&o<n;)e=e[Jn(t[o++])];return o&&o==n?e:void 0}function Nh(e,t,o){var n=e==null?void 0:Ws(e,t);return n===void 0?o:n}function Fh(e,t){for(var o=-1,n=t.length,r=e.length;++o<n;)e[r+o]=t[o];return e}function jh(e,t){for(var o=-1,n=e==null?0:e.length,r=0,i=[];++o<n;){var a=e[o];t(a,o,e)&&(i[r++]=a)}return i}function Wh(){return[]}var Vh=Object.prototype,Uh=Vh.propertyIsEnumerable,Ha=Object.getOwnPropertySymbols,Kh=Ha?function(e){return e==null?[]:(e=Object(e),jh(Ha(e),function(t){return Uh.call(e,t)}))}:Wh;function Gh(e,t,o){var n=t(e);return zt(e)?n:Fh(n,o(e))}function Da(e){return Gh(e,Ii,Kh)}var qr=Un(Qo,"DataView"),Xr=Un(Qo,"Promise"),Yr=Un(Qo,"Set"),Na="[object Map]",qh="[object Object]",Fa="[object Promise]",ja="[object Set]",Wa="[object WeakMap]",Va="[object DataView]",Xh=vo(qr),Yh=vo(Hr),Zh=vo(Xr),Jh=vo(Yr),Qh=vo(Gr),Ot=fs;(qr&&Ot(new qr(new ArrayBuffer(1)))!=Va||Hr&&Ot(new Hr)!=Na||Xr&&Ot(Xr.resolve())!=Fa||Yr&&Ot(new Yr)!=ja||Gr&&Ot(new Gr)!=Wa)&&(Ot=function(e){var t=fs(e),o=t==qh?e.constructor:void 0,n=o?vo(o):"";if(n)switch(n){case Xh:return Va;case Yh:return Na;case Zh:return Fa;case Jh:return ja;case Qh:return Wa}return t});var ep="__lodash_hash_undefined__";function tp(e){return this.__data__.set(e,ep),this}function op(e){return this.__data__.has(e)}function Ln(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new yi;++t<o;)this.add(e[t])}Ln.prototype.add=Ln.prototype.push=tp;Ln.prototype.has=op;function np(e,t){for(var o=-1,n=e==null?0:e.length;++o<n;)if(t(e[o],o,e))return!0;return!1}function rp(e,t){return e.has(t)}var ip=1,ap=2;function Vs(e,t,o,n,r,i){var a=o&ip,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,h=o&ap?new Ln:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var m=e[u],p=t[u];if(n)var g=a?n(p,m,u,t,e,i):n(m,p,u,e,t,i);if(g!==void 0){if(g)continue;f=!1;break}if(h){if(!np(t,function(v,y){if(!rp(h,y)&&(m===v||r(m,v,o,n,i)))return h.push(y)})){f=!1;break}}else if(!(m===p||r(m,p,o,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function lp(e){var t=-1,o=Array(e.size);return e.forEach(function(n,r){o[++t]=[r,n]}),o}function sp(e){var t=-1,o=Array(e.size);return e.forEach(function(n){o[++t]=n}),o}var cp=1,dp=2,up="[object Boolean]",fp="[object Date]",hp="[object Error]",pp="[object Map]",mp="[object Number]",gp="[object RegExp]",vp="[object Set]",bp="[object String]",xp="[object Symbol]",yp="[object ArrayBuffer]",Cp="[object DataView]",Ua=ca?ca.prototype:void 0,yr=Ua?Ua.valueOf:void 0;function wp(e,t,o,n,r,i,a){switch(o){case Cp:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case yp:return!(e.byteLength!=t.byteLength||!i(new da(e),new da(t)));case up:case fp:case mp:return ef(+e,+t);case hp:return e.name==t.name&&e.message==t.message;case gp:case bp:return e==t+"";case pp:var s=lp;case vp:var l=n&cp;if(s||(s=sp),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=dp,a.set(e,t);var d=Vs(s(e),s(t),n,r,i,a);return a.delete(e),d;case xp:if(yr)return yr.call(e)==yr.call(t)}return!1}var Sp=1,_p=Object.prototype,Ep=_p.hasOwnProperty;function Pp(e,t,o,n,r,i){var a=o&Sp,s=Da(e),l=s.length,c=Da(t),d=c.length;if(l!=d&&!a)return!1;for(var u=l;u--;){var f=s[u];if(!(a?f in t:Ep.call(t,f)))return!1}var h=i.get(e),m=i.get(t);if(h&&m)return h==t&&m==e;var p=!0;i.set(e,t),i.set(t,e);for(var g=a;++u<l;){f=s[u];var v=e[f],y=t[f];if(n)var k=a?n(y,v,f,t,e,i):n(v,y,f,e,t,i);if(!(k===void 0?v===y||r(v,y,o,n,i):k)){p=!1;break}g||(g=f=="constructor")}if(p&&!g){var E=e.constructor,x=t.constructor;E!=x&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof x=="function"&&x instanceof x)&&(p=!1)}return i.delete(e),i.delete(t),p}var kp=1,Ka="[object Arguments]",Ga="[object Array]",gn="[object Object]",Tp=Object.prototype,qa=Tp.hasOwnProperty;function Rp(e,t,o,n,r,i){var a=zt(e),s=zt(t),l=a?Ga:Ot(e),c=s?Ga:Ot(t);l=l==Ka?gn:l,c=c==Ka?gn:c;var d=l==gn,u=c==gn,f=l==c;if(f&&ua(e)){if(!ua(t))return!1;a=!0,d=!1}if(f&&!d)return i||(i=new wn),a||tf(e)?Vs(e,t,o,n,r,i):wp(e,t,l,o,n,r,i);if(!(o&kp)){var h=d&&qa.call(e,"__wrapped__"),m=u&&qa.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,g=m?t.value():t;return i||(i=new wn),r(p,g,o,n,i)}}return f?(i||(i=new wn),Pp(e,t,o,n,r,i)):!1}function Mi(e,t,o,n,r){return e===t?!0:e==null||t==null||!fa(e)&&!fa(t)?e!==e&&t!==t:Rp(e,t,o,n,Mi,r)}var Op=1,$p=2;function Ip(e,t,o,n){var r=o.length,i=r;if(e==null)return!i;for(e=Object(e);r--;){var a=o[r];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<i;){a=o[r];var s=a[0],l=e[s],c=a[1];if(a[2]){if(l===void 0&&!(s in e))return!1}else{var d=new wn,u;if(!(u===void 0?Mi(c,l,Op|$p,n,d):u))return!1}}return!0}function Us(e){return e===e&&!Vo(e)}function Ap(e){for(var t=Ii(e),o=t.length;o--;){var n=t[o],r=e[n];t[o]=[n,r,Us(r)]}return t}function Ks(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}function zp(e){var t=Ap(e);return t.length==1&&t[0][2]?Ks(t[0][0],t[0][1]):function(o){return o===e||Ip(o,e,t)}}function Mp(e,t){return e!=null&&t in Object(e)}function Lp(e,t,o){t=js(t,e);for(var n=-1,r=t.length,i=!1;++n<r;){var a=Jn(t[n]);if(!(i=e!=null&&o(e,a)))break;e=e[a]}return i||++n!=r?i:(r=e==null?0:e.length,!!r&&of(r)&&nf(a,r)&&(zt(e)||rf(e)))}function Bp(e,t){return e!=null&&Lp(e,t,Mp)}var Hp=1,Dp=2;function Np(e,t){return Ai(e)&&Us(t)?Ks(Jn(e),t):function(o){var n=Nh(o,e);return n===void 0&&n===t?Bp(o,e):Mi(t,n,Hp|Dp)}}function Fp(e){return function(t){return t==null?void 0:t[e]}}function jp(e){return function(t){return Ws(t,e)}}function Wp(e){return Ai(e)?Fp(Jn(e)):jp(e)}function Vp(e){return typeof e=="function"?e:e==null?af:typeof e=="object"?zt(e)?Np(e[0],e[1]):zp(e):Wp(e)}function Up(e,t){return e&&lf(e,t,Ii)}function Kp(e,t){return function(o,n){if(o==null)return o;if(!xi(o))return e(o,n);for(var r=o.length,i=-1,a=Object(o);++i<r&&n(a[i],i,a)!==!1;);return o}}var Gp=Kp(Up),Cr=function(){return Qo.Date.now()},qp="Expected a function",Xp=Math.max,Yp=Math.min;function Zp(e,t,o){var n,r,i,a,s,l,c=0,d=!1,u=!1,f=!0;if(typeof e!="function")throw new TypeError(qp);t=Ba(t)||0,Vo(o)&&(d=!!o.leading,u="maxWait"in o,i=u?Xp(Ba(o.maxWait)||0,t):i,f="trailing"in o?!!o.trailing:f);function h(_){var C=n,A=r;return n=r=void 0,c=_,a=e.apply(A,C),a}function m(_){return c=_,s=setTimeout(v,t),d?h(_):a}function p(_){var C=_-l,A=_-c,S=t-C;return u?Yp(S,i-A):S}function g(_){var C=_-l,A=_-c;return l===void 0||C>=t||C<0||u&&A>=i}function v(){var _=Cr();if(g(_))return y(_);s=setTimeout(v,p(_))}function y(_){return s=void 0,f&&n?h(_):(n=r=void 0,a)}function k(){s!==void 0&&clearTimeout(s),c=0,n=l=r=s=void 0}function E(){return s===void 0?a:y(Cr())}function x(){var _=Cr(),C=g(_);if(n=arguments,r=this,l=_,C){if(s===void 0)return m(l);if(u)return clearTimeout(s),s=setTimeout(v,t),h(l)}return s===void 0&&(s=setTimeout(v,t)),a}return x.cancel=k,x.flush=E,x}function Jp(e,t){var o=-1,n=xi(e)?Array(e.length):[];return Gp(e,function(r,i,a){n[++o]=t(r,i,a)}),n}function Qp(e,t){var o=zt(e)?sf:Jp;return o(e,Vp(t))}var em="Expected a function";function wr(e,t,o){var n=!0,r=!0;if(typeof e!="function")throw new TypeError(em);return Vo(o)&&(n="leading"in o?!!o.leading:n,r="trailing"in o?!!o.trailing:r),Zp(e,t,{leading:n,maxWait:t,trailing:r})}const tm={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:"缩放到原始尺寸"}};function om(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}let nm={};function rm(){return nm}function Xa(e,t){var s,l,c,d;const o=rm(),n=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??o.weekStartsOn??((d=(c=o.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,r=om(e),i=r.getDay(),a=(i<n?7:0)+i-n;return r.setDate(r.getDate()-a),r.setHours(0,0,0,0),r}function im(e,t,o){const n=Xa(e,o),r=Xa(t,o);return+n==+r}const am={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}} 年"}},lm=(e,t,o)=>{let n;const r=am[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",String(t)),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?n+"内":n+"前":n},sm={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},cm={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},dm={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},um={date:fr({formats:sm,defaultWidth:"full"}),time:fr({formats:cm,defaultWidth:"full"}),dateTime:fr({formats:dm,defaultWidth:"full"})};function Ya(e,t,o){const n="eeee p";return im(e,t,o)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}const fm={lastWeek:Ya,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Ya,other:"PP p"},hm=(e,t,o,n)=>{const r=fm[e];return typeof r=="function"?r(t,o,n):r},pm={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},mm={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},gm={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},vm={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},bm={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:"夜间"}},xm={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:"夜间"}},ym=(e,t)=>{const o=Number(e);switch(t==null?void 0:t.unit){case"date":return o.toString()+"日";case"hour":return o.toString()+"时";case"minute":return o.toString()+"分";case"second":return o.toString()+"秒";default:return"第 "+o.toString()}},Cm={ordinalNumber:ym,era:_o({values:pm,defaultWidth:"wide"}),quarter:_o({values:mm,defaultWidth:"wide",argumentCallback:e=>e-1}),month:_o({values:gm,defaultWidth:"wide"}),day:_o({values:vm,defaultWidth:"wide"}),dayPeriod:_o({values:bm,defaultWidth:"wide",formattingValues:xm,defaultFormattingWidth:"wide"})},wm=/^(第\s*)?\d+(日|时|分|秒)?/i,Sm=/\d+/i,_m={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Em={any:[/^(前)/i,/^(公元)/i]},Pm={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},km={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Tm={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Rm={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]},Om={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},$m={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Im={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Am={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},zm={ordinalNumber:cf({matchPattern:wm,parsePattern:Sm,valueCallback:e=>parseInt(e,10)}),era:Eo({matchPatterns:_m,defaultMatchWidth:"wide",parsePatterns:Em,defaultParseWidth:"any"}),quarter:Eo({matchPatterns:Pm,defaultMatchWidth:"wide",parsePatterns:km,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Eo({matchPatterns:Tm,defaultMatchWidth:"wide",parsePatterns:Rm,defaultParseWidth:"any"}),day:Eo({matchPatterns:Om,defaultMatchWidth:"wide",parsePatterns:$m,defaultParseWidth:"any"}),dayPeriod:Eo({matchPatterns:Im,defaultMatchWidth:"any",parsePatterns:Am,defaultParseWidth:"any"})},Mm={code:"zh-CN",formatDistance:lm,formatLong:um,formatRelative:hm,localize:Cm,match:zm,options:{weekStartsOn:1,firstWeekContainsDate:4}},Lm={name:"zh-CN",locale:Mm},Bm=se({name:"Add",render(){return b("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),Gs=se({name:"ChevronRight",render(){return b("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("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"}))}}),qs=Kn("error",b("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("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"}))))),Zr=Kn("info",b("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("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"}))))),Xs=Kn("success",b("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("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"}))))),Ys=Kn("warning",b("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("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"}))))),Hm=se({name:"ChevronDownFilled",render(){return b("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("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"}))}});function Za(e){return Array.isArray(e)?e:[e]}const Jr={STOP:"STOP"};function Zs(e,t){const o=t(e);e.children!==void 0&&o!==Jr.STOP&&e.children.forEach(n=>Zs(n,t))}function Dm(e,t={}){const{preserveGroup:o=!1}=t,n=[],r=o?a=>{a.isLeaf||(n.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||n.push(a.key),i(a.children))};function i(a){a.forEach(r)}return i(e),n}function Nm(e,t){const{isLeaf:o}=e;return o!==void 0?o:!t(e)}function Fm(e){return e.children}function jm(e){return e.key}function Wm(){return!1}function Vm(e,t){const{isLeaf:o}=e;return!(o===!1&&!Array.isArray(t(e)))}function Um(e){return e.disabled===!0}function Km(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Sr(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function _r(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function Gm(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)||o.add(n)}),Array.from(o)}function qm(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)&&o.delete(n)}),Array.from(o)}function Xm(e){return(e==null?void 0:e.type)==="group"}function YS(e){const t=new Map;return e.forEach((o,n)=>{t.set(o.key,n)}),o=>{var n;return(n=t.get(o))!==null&&n!==void 0?n:null}}class Ym extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Zm(e,t,o,n){return Bn(t.concat(e),o,n,!1)}function Jm(e,t){const o=new Set;return e.forEach(n=>{const r=t.treeNodeMap.get(n);if(r!==void 0){let i=r.parent;for(;i!==null&&!(i.disabled||o.has(i.key));)o.add(i.key),i=i.parent}}),o}function Qm(e,t,o,n){const r=Bn(t,o,n,!1),i=Bn(e,o,n,!0),a=Jm(e,o),s=[];return r.forEach(l=>{(i.has(l)||a.has(l))&&s.push(l)}),s.forEach(l=>r.delete(l)),r}function Er(e,t){const{checkedKeys:o,keysToCheck:n,keysToUncheck:r,indeterminateKeys:i,cascade:a,leafOnly:s,checkStrategy:l,allowNotLoaded:c}=e;if(!a)return n!==void 0?{checkedKeys:Gm(o,n),indeterminateKeys:Array.from(i)}:r!==void 0?{checkedKeys:qm(o,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(o),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let u;r!==void 0?u=Qm(r,o,t,c):n!==void 0?u=Zm(n,o,t,c):u=Bn(o,t,c,!1);const f=l==="parent",h=l==="child"||s,m=u,p=new Set,g=Math.max.apply(null,Array.from(d.keys()));for(let v=g;v>=0;v-=1){const y=v===0,k=d.get(v);for(const E of k){if(E.isLeaf)continue;const{key:x,shallowLoaded:_}=E;if(h&&_&&E.children.forEach(R=>{!R.disabled&&!R.isLeaf&&R.shallowLoaded&&m.has(R.key)&&m.delete(R.key)}),E.disabled||!_)continue;let C=!0,A=!1,S=!0;for(const R of E.children){const z=R.key;if(!R.disabled){if(S&&(S=!1),m.has(z))A=!0;else if(p.has(z)){A=!0,C=!1;break}else if(C=!1,A)break}}C&&!S?(f&&E.children.forEach(R=>{!R.disabled&&m.has(R.key)&&m.delete(R.key)}),m.add(x)):A&&p.add(x),y&&h&&m.has(x)&&m.delete(x)}}return{checkedKeys:Array.from(m),indeterminateKeys:Array.from(p)}}function Bn(e,t,o,n){const{treeNodeMap:r,getChildren:i}=t,a=new Set,s=new Set(e);return e.forEach(l=>{const c=r.get(l);c!==void 0&&Zs(c,d=>{if(d.disabled)return Jr.STOP;const{key:u}=d;if(!a.has(u)&&(a.add(u),s.add(u),Km(d.rawNode,i))){if(n)return Jr.STOP;if(!o)throw new Ym}})}),s}function eg(e,{includeGroup:t=!1,includeSelf:o=!0},n){var r;const i=n.treeNodeMap;let a=e==null?null:(r=i.get(e))!==null&&r!==void 0?r:null;const s={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return s.treeNode=null,s;for(;a;)!a.ignored&&(t||!a.isGroup)&&s.treeNodePath.push(a),a=a.parent;return s.treeNodePath.reverse(),o||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(l=>l.key),s}function tg(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function og(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r+1)%n]:r===o.length-1?null:o[r+1]}function Ja(e,t,{loop:o=!1,includeDisabled:n=!1}={}){const r=t==="prev"?ng:og,i={reverse:t==="prev"};let a=!1,s=null;function l(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!c.disabled||n)&&!c.ignored&&!c.isGroup){s=c;return}if(c.isGroup){const d=Li(c,i);d!==null?s=d:l(r(c,o))}else{const d=r(c,!1);if(d!==null)l(d);else{const u=rg(c);u!=null&&u.isGroup?l(r(u,o)):o&&l(r(c,!0))}}}}return l(e),s}function ng(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r-1+n)%n]:r===0?null:o[r-1]}function rg(e){return e.parent}function Li(e,t={}){const{reverse:o=!1}=t,{children:n}=e;if(n){const{length:r}=n,i=o?r-1:0,a=o?-1:r,s=o?-1:1;for(let l=i;l!==a;l+=s){const c=n[l];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=Li(c,t);if(d!==null)return d}else return c}}return null}const ig={getChild(){return this.ignored?null:Li(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Ja(this,"next",e)},getPrev(e={}){return Ja(this,"prev",e)}};function ag(e,t){const o=t?new Set(t):void 0,n=[];function r(i){i.forEach(a=>{n.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||o===void 0||o.has(a.key))&&r(a.children)})}return r(e),n}function lg(e,t){const o=e.key;for(;t;){if(t.key===o)return!0;t=t.parent}return!1}function Js(e,t,o,n,r,i=null,a=0){const s=[];return e.forEach((l,c)=>{var d;const u=Object.create(n);if(u.rawNode=l,u.siblings=s,u.level=a,u.index=c,u.isFirstChild=c===0,u.isLastChild=c+1===e.length,u.parent=i,!u.ignored){const f=r(l);Array.isArray(f)&&(u.children=Js(f,t,o,n,r,u,a+1))}s.push(u),t.set(u.key,u),o.has(a)||o.set(a,[]),(d=o.get(a))===null||d===void 0||d.push(u)}),s}function _n(e,t={}){var o;const n=new Map,r=new Map,{getDisabled:i=Um,getIgnored:a=Wm,getIsGroup:s=Xm,getKey:l=jm}=t,c=(o=t.getChildren)!==null&&o!==void 0?o:Fm,d=t.ignoreEmptyChildren?E=>{const x=c(E);return Array.isArray(x)?x.length?x:null:x}:c,u=Object.assign({get key(){return l(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return Nm(this.rawNode,d)},get shallowLoaded(){return Vm(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(E){return lg(this,E)}},ig),f=Js(e,n,r,u,d);function h(E){if(E==null)return null;const x=n.get(E);return x&&!x.isGroup&&!x.ignored?x:null}function m(E){if(E==null)return null;const x=n.get(E);return x&&!x.ignored?x:null}function p(E,x){const _=m(E);return _?_.getPrev(x):null}function g(E,x){const _=m(E);return _?_.getNext(x):null}function v(E){const x=m(E);return x?x.getParent():null}function y(E){const x=m(E);return x?x.getChild():null}const k={treeNodes:f,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:d,getFlattenedNodes(E){return ag(f,E)},getNode:h,getPrev:p,getNext:g,getParent:v,getChild:y,getFirstAvailableNode(){return tg(f)},getPath(E,x={}){return eg(E,x,k)},getCheckedKeys(E,x={}){const{cascade:_=!0,leafOnly:C=!1,checkStrategy:A="all",allowNotLoaded:S=!1}=x;return Er({checkedKeys:Sr(E),indeterminateKeys:_r(E),cascade:_,leafOnly:C,checkStrategy:A,allowNotLoaded:S},k)},check(E,x,_={}){const{cascade:C=!0,leafOnly:A=!1,checkStrategy:S="all",allowNotLoaded:R=!1}=_;return Er({checkedKeys:Sr(x),indeterminateKeys:_r(x),keysToCheck:E==null?[]:Za(E),cascade:C,leafOnly:A,checkStrategy:S,allowNotLoaded:R},k)},uncheck(E,x,_={}){const{cascade:C=!0,leafOnly:A=!1,checkStrategy:S="all",allowNotLoaded:R=!1}=_;return Er({checkedKeys:Sr(x),indeterminateKeys:_r(x),keysToUncheck:E==null?[]:Za(E),cascade:C,leafOnly:A,checkStrategy:S,allowNotLoaded:R},k)},getNonLeafKeys(E={}){return Dm(f,E)}};return k}const ee={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)"},sg=hs(ee.neutralBase),Qs=hs(ee.neutralInvertBase),cg=`rgba(${Qs.slice(0,3).join(", ")}, `;function ye(e){return`${cg+String(e)})`}function dg(e){const t=Array.from(Qs);return t[3]=Number(e),ie(sg,t)}const V=Object.assign(Object.assign({name:"common"},Ci),{baseColor:ee.neutralBase,primaryColor:ee.primaryDefault,primaryColorHover:ee.primaryHover,primaryColorPressed:ee.primaryActive,primaryColorSuppl:ee.primarySuppl,infoColor:ee.infoDefault,infoColorHover:ee.infoHover,infoColorPressed:ee.infoActive,infoColorSuppl:ee.infoSuppl,successColor:ee.successDefault,successColorHover:ee.successHover,successColorPressed:ee.successActive,successColorSuppl:ee.successSuppl,warningColor:ee.warningDefault,warningColorHover:ee.warningHover,warningColorPressed:ee.warningActive,warningColorSuppl:ee.warningSuppl,errorColor:ee.errorDefault,errorColorHover:ee.errorHover,errorColorPressed:ee.errorActive,errorColorSuppl:ee.errorSuppl,textColorBase:ee.neutralTextBase,textColor1:ye(ee.alpha1),textColor2:ye(ee.alpha2),textColor3:ye(ee.alpha3),textColorDisabled:ye(ee.alpha4),placeholderColor:ye(ee.alpha4),placeholderColorDisabled:ye(ee.alpha5),iconColor:ye(ee.alpha4),iconColorDisabled:ye(ee.alpha5),iconColorHover:ye(Number(ee.alpha4)*1.25),iconColorPressed:ye(Number(ee.alpha4)*.8),opacity1:ee.alpha1,opacity2:ee.alpha2,opacity3:ee.alpha3,opacity4:ee.alpha4,opacity5:ee.alpha5,dividerColor:ye(ee.alphaDivider),borderColor:ye(ee.alphaBorder),closeIconColorHover:ye(Number(ee.alphaClose)),closeIconColor:ye(Number(ee.alphaClose)),closeIconColorPressed:ye(Number(ee.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:ye(ee.alpha4),clearColorHover:Ve(ye(ee.alpha4),{alpha:1.25}),clearColorPressed:Ve(ye(ee.alpha4),{alpha:.8}),scrollbarColor:ye(ee.alphaScrollbar),scrollbarColorHover:ye(ee.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:ye(ee.alphaProgressRail),railColor:ye(ee.alphaRail),popoverColor:ee.neutralPopover,tableColor:ee.neutralCard,cardColor:ee.neutralCard,modalColor:ee.neutralModal,bodyColor:ee.neutralBody,tagColor:dg(ee.alphaTag),avatarColor:ye(ee.alphaAvatar),invertedColor:ee.neutralBase,inputColor:ye(ee.alphaInput),codeColor:ye(ee.alphaCode),tabColor:ye(ee.alphaTab),actionColor:ye(ee.alphaAction),tableHeaderColor:ye(ee.alphaAction),hoverColor:ye(ee.alphaPending),tableColorHover:ye(ee.alphaTablePending),tableColorStriped:ye(ee.alphaTableStriped),pressedColor:ye(ee.alphaPressed),opacityDisabled:ee.alphaDisabled,inputColorDisabled:ye(ee.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)"}),ug={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function ec(e){const{textColorDisabled:t,iconColor:o,textColor2:n,fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:s,fontSizeHuge:l}=e;return Object.assign(Object.assign({},ug),{fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:s,fontSizeHuge:l,textColor:t,iconColor:o,extraTextColor:n})}const Bi={name:"Empty",common:xe,self:ec},Xt={name:"Empty",common:V,self:ec},tt={name:"Scrollbar",common:V,self:df},fg={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 tc(e){const{borderRadius:t,popoverColor:o,textColor3:n,dividerColor:r,textColor2:i,primaryColorPressed:a,textColorDisabled:s,primaryColor:l,opacityDisabled:c,hoverColor:d,fontSizeTiny:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:m,fontSizeHuge:p,heightTiny:g,heightSmall:v,heightMedium:y,heightLarge:k,heightHuge:E}=e;return Object.assign(Object.assign({},fg),{optionFontSizeTiny:u,optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:m,optionFontSizeHuge:p,optionHeightTiny:g,optionHeightSmall:v,optionHeightMedium:y,optionHeightLarge:k,optionHeightHuge:E,borderRadius:t,color:o,groupHeaderTextColor:n,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:s,optionTextColorActive:l,optionOpacityDisabled:c,optionCheckColor:l,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:l})}const Hi=We({name:"InternalSelectMenu",common:xe,peers:{Scrollbar:bo,Empty:Bi},self:tc}),an={name:"InternalSelectMenu",common:V,peers:{Scrollbar:tt,Empty:Xt},self:tc},{cubicBezierEaseIn:Qa,cubicBezierEaseOut:el}=Ci;function oc({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:n="",originalTransition:r=""}={}){return[K("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Qa}, transform ${t} ${Qa} ${r&&`,${r}`}`}),K("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${el}, transform ${t} ${el} ${r&&`,${r}`}`}),K("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${o})`}),K("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}const hg={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function nc(e){const{boxShadow2:t,popoverColor:o,textColor2:n,borderRadius:r,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},hg),{fontSize:i,borderRadius:r,color:o,dividerColor:a,textColor:n,boxShadow:t})}const yo={name:"Popover",common:xe,self:nc},Yt={name:"Popover",common:V,self:nc},Pr={top:"bottom",bottom:"top",left:"right",right:"left"},Le="var(--n-arrow-height) * 1.414",pg=K([T("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(">",[T("scrollbar",`
|
|
height: inherit;
|
|
max-height: inherit;
|
|
`)]),lt("raw",`
|
|
background-color: var(--n-color);
|
|
border-radius: var(--n-border-radius);
|
|
`,[lt("scrollable",[lt("show-header-or-footer","padding: var(--n-padding);")])]),j("header",`
|
|
padding: var(--n-padding);
|
|
border-bottom: 1px solid var(--n-divider-color);
|
|
transition: border-color .3s var(--n-bezier);
|
|
`),j("footer",`
|
|
padding: var(--n-padding);
|
|
border-top: 1px solid var(--n-divider-color);
|
|
transition: border-color .3s var(--n-bezier);
|
|
`),N("scrollable, show-header-or-footer",[j("content",`
|
|
padding: var(--n-padding);
|
|
`)])]),T("popover-shared",`
|
|
transform-origin: inherit;
|
|
`,[T("popover-arrow-wrapper",`
|
|
position: absolute;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
`,[T("popover-arrow",`
|
|
transition: background-color .3s var(--n-bezier);
|
|
position: absolute;
|
|
display: block;
|
|
width: calc(${Le});
|
|
height: calc(${Le});
|
|
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);
|
|
`)]),it("top-start",`
|
|
top: calc(${Le} / -2);
|
|
left: calc(${bt("top-start")} - var(--v-offset-left));
|
|
`),it("top",`
|
|
top: calc(${Le} / -2);
|
|
transform: translateX(calc(${Le} / -2)) rotate(45deg);
|
|
left: 50%;
|
|
`),it("top-end",`
|
|
top: calc(${Le} / -2);
|
|
right: calc(${bt("top-end")} + var(--v-offset-left));
|
|
`),it("bottom-start",`
|
|
bottom: calc(${Le} / -2);
|
|
left: calc(${bt("bottom-start")} - var(--v-offset-left));
|
|
`),it("bottom",`
|
|
bottom: calc(${Le} / -2);
|
|
transform: translateX(calc(${Le} / -2)) rotate(45deg);
|
|
left: 50%;
|
|
`),it("bottom-end",`
|
|
bottom: calc(${Le} / -2);
|
|
right: calc(${bt("bottom-end")} + var(--v-offset-left));
|
|
`),it("left-start",`
|
|
left: calc(${Le} / -2);
|
|
top: calc(${bt("left-start")} - var(--v-offset-top));
|
|
`),it("left",`
|
|
left: calc(${Le} / -2);
|
|
transform: translateY(calc(${Le} / -2)) rotate(45deg);
|
|
top: 50%;
|
|
`),it("left-end",`
|
|
left: calc(${Le} / -2);
|
|
bottom: calc(${bt("left-end")} + var(--v-offset-top));
|
|
`),it("right-start",`
|
|
right: calc(${Le} / -2);
|
|
top: calc(${bt("right-start")} - var(--v-offset-top));
|
|
`),it("right",`
|
|
right: calc(${Le} / -2);
|
|
transform: translateY(calc(${Le} / -2)) rotate(45deg);
|
|
top: 50%;
|
|
`),it("right-end",`
|
|
right: calc(${Le} / -2);
|
|
bottom: calc(${bt("right-end")} + var(--v-offset-top));
|
|
`),...Qp({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),n=o?"width":"height";return e.map(r=>{const i=r.split("-")[1]==="end",s=`calc((${`var(--v-target-${n}, 0px)`} - ${Le}) / 2)`,l=bt(r);return K(`[v-placement="${r}"] >`,[T("popover-shared",[N("center-arrow",[T("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})})]);function bt(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function it(e,t){const o=e.split("-")[0],n=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return K(`[v-placement="${e}"] >`,[T("popover-shared",`
|
|
margin-${Pr[o]}: var(--n-space);
|
|
`,[N("show-arrow",`
|
|
margin-${Pr[o]}: var(--n-space-arrow);
|
|
`),N("overlap",`
|
|
margin: 0;
|
|
`),uf("popover-arrow-wrapper",`
|
|
right: 0;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
${o}: 100%;
|
|
${Pr[o]}: auto;
|
|
${n}
|
|
`,[T("popover-arrow",t)])])])}const rc=Object.assign(Object.assign({},Re.props),{to:ho.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 ic({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:n,clsPrefix:r}){return b("div",{key:"__popover-arrow__",style:n,class:[`${r}-popover-arrow-wrapper`,o]},b("div",{class:[`${r}-popover-arrow`,e],style:t}))}const mg=se({name:"PopoverBody",inheritAttrs:!1,props:rc,setup(e,{slots:t,attrs:o}){const{namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:i}=Xe(e),a=Re("Popover","-popover",pg,yo,e,r),s=B(null),l=me("NPopover"),c=B(null),d=B(e.show),u=B(!1);wt(()=>{const{show:C}=e;C&&!Uf()&&!e.internalDeactivateImmediately&&(u.value=!0)});const f=F(()=>{const{trigger:C,onClickoutside:A}=e,S=[],{positionManuallyRef:{value:R}}=l;return R||(C==="click"&&!A&&S.push([Kr,E,void 0,{capture:!0}]),C==="hover"&&S.push([oh,k])),A&&S.push([Kr,E,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&u.value)&&S.push([Uo,e.show]),S}),h=F(()=>{const{common:{cubicBezierEaseInOut:C,cubicBezierEaseIn:A,cubicBezierEaseOut:S},self:{space:R,spaceArrow:z,padding:O,fontSize:Q,textColor:ne,dividerColor:L,color:le,boxShadow:w,borderRadius:D,arrowHeight:q,arrowOffset:te,arrowOffsetVertical:U}}=a.value;return{"--n-box-shadow":w,"--n-bezier":C,"--n-bezier-ease-in":A,"--n-bezier-ease-out":S,"--n-font-size":Q,"--n-text-color":ne,"--n-color":le,"--n-divider-color":L,"--n-border-radius":D,"--n-arrow-height":q,"--n-arrow-offset":te,"--n-arrow-offset-vertical":U,"--n-padding":O,"--n-space":R,"--n-space-arrow":z}}),m=F(()=>{const C=e.width==="trigger"?void 0:ao(e.width),A=[];C&&A.push({width:C});const{maxWidth:S,minWidth:R}=e;return S&&A.push({maxWidth:ao(S)}),R&&A.push({maxWidth:ao(R)}),i||A.push(h.value),A}),p=i?ft("popover",void 0,h,e):void 0;l.setBodyInstance({syncPosition:g}),ut(()=>{l.setBodyInstance(null)}),Be(be(e,"show"),C=>{e.animated||(C?d.value=!0:d.value=!1)});function g(){var C;(C=s.value)===null||C===void 0||C.syncPosition()}function v(C){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(C)}function y(C){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(C)}function k(C){e.trigger==="hover"&&!x().contains(An(C))&&l.handleMouseMoveOutside(C)}function E(C){(e.trigger==="click"&&!x().contains(An(C))||e.onClickoutside)&&l.handleClickOutside(C)}function x(){return l.getTriggerElement()}ve(rn,c),ve(Zn,null),ve(Yn,null);function _(){if(p==null||p.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&u.value))return null;let A;const S=l.internalRenderBodyRef.value,{value:R}=r;if(S)A=S([`${R}-popover-shared`,p==null?void 0:p.themeClass.value,e.overlap&&`${R}-popover-shared--overlap`,e.showArrow&&`${R}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${R}-popover-shared--center-arrow`],c,m.value,v,y);else{const{value:z}=l.extraClassRef,{internalTrapFocus:O}=e,Q=!ha(t.header)||!ha(t.footer),ne=()=>{var L,le;const w=Q?b(gt,null,At(t.header,te=>te?b("div",{class:[`${R}-popover__header`,e.headerClass],style:e.headerStyle},te):null),At(t.default,te=>te?b("div",{class:[`${R}-popover__content`,e.contentClass],style:e.contentStyle},t):null),At(t.footer,te=>te?b("div",{class:[`${R}-popover__footer`,e.footerClass],style:e.footerStyle},te):null)):e.scrollable?(L=t.default)===null||L===void 0?void 0:L.call(t):b("div",{class:[`${R}-popover__content`,e.contentClass],style:e.contentStyle},t),D=e.scrollable?b(ps,{contentClass:Q?void 0:`${R}-popover__content ${(le=e.contentClass)!==null&&le!==void 0?le:""}`,contentStyle:Q?void 0:e.contentStyle},{default:()=>w}):w,q=e.showArrow?ic({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:R}):null;return[D,q]};A=b("div",xo({class:[`${R}-popover`,`${R}-popover-shared`,p==null?void 0:p.themeClass.value,z.map(L=>`${R}-${L}`),{[`${R}-popover--scrollable`]:e.scrollable,[`${R}-popover--show-header-or-footer`]:Q,[`${R}-popover--raw`]:e.raw,[`${R}-popover-shared--overlap`]:e.overlap,[`${R}-popover-shared--show-arrow`]:e.showArrow,[`${R}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:m.value,onKeydown:l.handleKeydown,onMouseenter:v,onMouseleave:y},o),O?b(Fs,{active:e.show,autoFocus:!0},{default:ne}):ne())}return Ct(A,f.value)}return{displayed:u,namespace:n,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:ho(e),followerEnabled:d,renderContentNode:_}},render(){return b(Ls,{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===ho.tdkey},{default:()=>this.animated?b(en,{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()})}}),gg=Object.keys(rc),vg={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function bg(e,t,o){vg[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[n],i=o[n];r?e.props[n]=(...a)=>{r(...a),i(...a)}:e.props[n]=i})}const Qn={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:ho.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},xg=Object.assign(Object.assign(Object.assign({},Re.props),Qn),{internalOnAfterLeave:Function,internalRenderBody:Function}),ac=se({name:"Popover",inheritAttrs:!1,props:xg,__popover__:!0,setup(e){const t=Wn(),o=B(null),n=F(()=>e.show),r=B(e.defaultShow),i=fo(n,r),a=Ze(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!(L!=null&&L())},l=()=>s()?!1:i.value,c=Mn(e,["arrow","showArrow"]),d=F(()=>e.overlap?!1:c.value);let u=null;const f=B(null),h=B(null),m=Ze(()=>e.x!==void 0&&e.y!==void 0);function p(L){const{"onUpdate:show":le,onUpdateShow:w,onShow:D,onHide:q}=e;r.value=L,le&&$e(le,L),w&&$e(w,L),L&&D&&$e(D,!0),L&&q&&$e(q,!1)}function g(){u&&u.syncPosition()}function v(){const{value:L}=f;L&&(window.clearTimeout(L),f.value=null)}function y(){const{value:L}=h;L&&(window.clearTimeout(L),h.value=null)}function k(){const L=s();if(e.trigger==="focus"&&!L){if(l())return;p(!0)}}function E(){const L=s();if(e.trigger==="focus"&&!L){if(!l())return;p(!1)}}function x(){const L=s();if(e.trigger==="hover"&&!L){if(y(),f.value!==null||l())return;const le=()=>{p(!0),f.value=null},{delay:w}=e;w===0?le():f.value=window.setTimeout(le,w)}}function _(){const L=s();if(e.trigger==="hover"&&!L){if(v(),h.value!==null||!l())return;const le=()=>{p(!1),h.value=null},{duration:w}=e;w===0?le():h.value=window.setTimeout(le,w)}}function C(){_()}function A(L){var le;l()&&(e.trigger==="click"&&(v(),y(),p(!1)),(le=e.onClickoutside)===null||le===void 0||le.call(e,L))}function S(){if(e.trigger==="click"&&!s()){v(),y();const L=!l();p(L)}}function R(L){e.internalTrapFocus&&L.key==="Escape"&&(v(),y(),p(!1))}function z(L){r.value=L}function O(){var L;return(L=o.value)===null||L===void 0?void 0:L.targetRef}function Q(L){u=L}return ve("NPopover",{getTriggerElement:O,handleKeydown:R,handleMouseEnter:x,handleMouseLeave:_,handleClickOutside:A,handleMouseMoveOutside:C,setBodyInstance:Q,positionManuallyRef:m,isMountedRef:t,zIndexRef:be(e,"zIndex"),extraClassRef:be(e,"internalExtraClass"),internalRenderBodyRef:be(e,"internalRenderBody")}),wt(()=>{i.value&&s()&&p(!1)}),{binderInstRef:o,positionManually:m,mergedShowConsideringDisabledProp:a,uncontrolledShow:r,mergedShowArrow:d,getMergedShow:l,setShow:z,handleClick:S,handleMouseEnter:x,handleMouseLeave:_,handleFocus:k,handleBlur:E,syncPosition:g}},render(){var e;const{positionManually:t,$slots:o}=this;let n,r=!1;if(!t&&(o.activator?n=Wr(o,"activator"):n=Wr(o,"trigger"),n)){n=wi(n),n=n.type===ff?b("span",[n]):n;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)r=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[i,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],l={onBlur:c=>{s.forEach(d=>{d.onBlur(c)})},onFocus:c=>{s.forEach(d=>{d.onFocus(c)})},onClick:c=>{s.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{s.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{s.forEach(d=>{d.onMouseleave(c)})}};bg(n,a?"nested":t?"manual":this.trigger,l)}}return b(As,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?Ct(b("div",{style:{position:"fixed",inset:0}}),[[Ri,{enabled:i,zIndex:this.zIndex}]]):null,t?null:b(zs,null,{default:()=>n}),b(mg,yt(this.$props,gg,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,s;return(s=(a=this.$slots).default)===null||s===void 0?void 0:s.call(a)},header:()=>{var a,s;return(s=(a=this.$slots).header)===null||s===void 0?void 0:s.call(a)},footer:()=>{var a,s;return(s=(a=this.$slots).footer)===null||s===void 0?void 0:s.call(a)}})]}})}}),yg={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},lc={name:"Tag",common:V,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:d,tagColor:u,opacityDisabled:f,closeIconColor:h,closeIconColorHover:m,closeIconColorPressed:p,closeColorHover:g,closeColorPressed:v,borderRadiusSmall:y,fontSizeMini:k,fontSizeTiny:E,fontSizeSmall:x,fontSizeMedium:_,heightMini:C,heightTiny:A,heightSmall:S,heightMedium:R,buttonColor2Hover:z,buttonColor2Pressed:O,fontWeightStrong:Q}=e;return Object.assign(Object.assign({},yg),{closeBorderRadius:y,heightTiny:C,heightSmall:A,heightMedium:S,heightLarge:R,borderRadius:y,opacityDisabled:f,fontSizeTiny:k,fontSizeSmall:E,fontSizeMedium:x,fontSizeLarge:_,fontWeightStrong:Q,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:z,colorPressedCheckable:O,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${d}`,textColor:t,color:u,colorBordered:"#0000",closeIconColor:h,closeIconColorHover:m,closeIconColorPressed:p,closeColorHover:g,closeColorPressed:v,borderPrimary:`1px solid ${J(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:J(r,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:Ve(r,{lightness:.7}),closeIconColorHoverPrimary:Ve(r,{lightness:.7}),closeIconColorPressedPrimary:Ve(r,{lightness:.7}),closeColorHoverPrimary:J(r,{alpha:.16}),closeColorPressedPrimary:J(r,{alpha:.12}),borderInfo:`1px solid ${J(i,{alpha:.3})}`,textColorInfo:i,colorInfo:J(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:Ve(i,{alpha:.7}),closeIconColorHoverInfo:Ve(i,{alpha:.7}),closeIconColorPressedInfo:Ve(i,{alpha:.7}),closeColorHoverInfo:J(i,{alpha:.16}),closeColorPressedInfo:J(i,{alpha:.12}),borderSuccess:`1px solid ${J(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:J(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:Ve(a,{alpha:.7}),closeIconColorHoverSuccess:Ve(a,{alpha:.7}),closeIconColorPressedSuccess:Ve(a,{alpha:.7}),closeColorHoverSuccess:J(a,{alpha:.16}),closeColorPressedSuccess:J(a,{alpha:.12}),borderWarning:`1px solid ${J(s,{alpha:.3})}`,textColorWarning:s,colorWarning:J(s,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:Ve(s,{alpha:.7}),closeIconColorHoverWarning:Ve(s,{alpha:.7}),closeIconColorPressedWarning:Ve(s,{alpha:.7}),closeColorHoverWarning:J(s,{alpha:.16}),closeColorPressedWarning:J(s,{alpha:.11}),borderError:`1px solid ${J(l,{alpha:.3})}`,textColorError:l,colorError:J(l,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:Ve(l,{alpha:.7}),closeIconColorHoverError:Ve(l,{alpha:.7}),closeIconColorPressedError:Ve(l,{alpha:.7}),closeColorHoverError:J(l,{alpha:.16}),closeColorPressedError:J(l,{alpha:.12})})}},sc={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function Cg(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,borderColor:f,iconColor:h,iconColorDisabled:m,clearColor:p,clearColorHover:g,clearColorPressed:v,placeholderColor:y,placeholderColorDisabled:k,fontSizeTiny:E,fontSizeSmall:x,fontSizeMedium:_,fontSizeLarge:C,heightTiny:A,heightSmall:S,heightMedium:R,heightLarge:z}=e;return Object.assign(Object.assign({},sc),{fontSizeTiny:E,fontSizeSmall:x,fontSizeMedium:_,fontSizeLarge:C,heightTiny:A,heightSmall:S,heightMedium:R,heightLarge:z,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:y,placeholderColorDisabled:k,color:r,colorDisabled:i,colorActive:r,border:`1px solid ${f}`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${J(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${J(a,{alpha:.2})}`,caretColor:a,arrowColor:h,arrowColorDisabled:m,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${J(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${J(l,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:l,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${J(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${J(d,{alpha:.2})}`,colorActiveError:r,caretColorError:d,clearColor:p,clearColorHover:g,clearColorPressed:v})}const wg=We({name:"InternalSelection",common:xe,peers:{Popover:yo},self:Cg}),Di={name:"InternalSelection",common:V,peers:{Popover:Yt},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,iconColor:f,iconColorDisabled:h,clearColor:m,clearColorHover:p,clearColorPressed:g,placeholderColor:v,placeholderColorDisabled:y,fontSizeTiny:k,fontSizeSmall:E,fontSizeMedium:x,fontSizeLarge:_,heightTiny:C,heightSmall:A,heightMedium:S,heightLarge:R}=e;return Object.assign(Object.assign({},sc),{fontSizeTiny:k,fontSizeSmall:E,fontSizeMedium:x,fontSizeLarge:_,heightTiny:C,heightSmall:A,heightMedium:S,heightLarge:R,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:v,placeholderColorDisabled:y,color:r,colorDisabled:i,colorActive:J(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${J(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${J(a,{alpha:.4})}`,caretColor:a,arrowColor:f,arrowColorDisabled:h,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${J(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${J(l,{alpha:.4})}`,colorActiveWarning:J(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${J(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${J(d,{alpha:.4})}`,colorActiveError:J(d,{alpha:.1}),caretColorError:d,clearColor:m,clearColorHover:p,clearColorPressed:g})}},Sg={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"},_g={name:"Alert",common:V,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:n,dividerColor:r,inputColor:i,textColor1:a,textColor2:s,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,infoColorSuppl:h,successColorSuppl:m,warningColorSuppl:p,errorColorSuppl:g,fontSize:v}=e;return Object.assign(Object.assign({},Sg),{fontSize:v,lineHeight:t,titleFontWeight:n,borderRadius:o,border:`1px solid ${r}`,color:i,titleTextColor:a,iconColor:s,contentTextColor:s,closeBorderRadius:o,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,borderInfo:`1px solid ${J(h,{alpha:.35})}`,colorInfo:J(h,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:h,contentTextColorInfo:s,closeColorHoverInfo:l,closeColorPressedInfo:c,closeIconColorInfo:d,closeIconColorHoverInfo:u,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${J(m,{alpha:.35})}`,colorSuccess:J(m,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:m,contentTextColorSuccess:s,closeColorHoverSuccess:l,closeColorPressedSuccess:c,closeIconColorSuccess:d,closeIconColorHoverSuccess:u,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${J(p,{alpha:.35})}`,colorWarning:J(p,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:p,contentTextColorWarning:s,closeColorHoverWarning:l,closeColorPressedWarning:c,closeIconColorWarning:d,closeIconColorHoverWarning:u,closeIconColorPressedWarning:f,borderError:`1px solid ${J(g,{alpha:.35})}`,colorError:J(g,{alpha:.25}),titleTextColorError:a,iconColorError:g,contentTextColorError:s,closeColorHoverError:l,closeColorPressedError:c,closeIconColorError:d,closeIconColorHoverError:u,closeIconColorPressedError:f})}},{cubicBezierEaseInOut:mt,cubicBezierEaseOut:Eg,cubicBezierEaseIn:Pg}=Ci;function cc({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:n="0s",foldPadding:r=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:s=!1}={}){const l=s?"leave":"enter",c=s?"enter":"leave";return[K(`&.fade-in-height-expand-transition-${c}-from,
|
|
&.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),K(`&.fade-in-height-expand-transition-${c}-to,
|
|
&.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:r?"0 !important":void 0,paddingBottom:r?"0 !important":void 0})),K(`&.fade-in-height-expand-transition-${c}-active`,`
|
|
overflow: ${e};
|
|
transition:
|
|
max-height ${t} ${mt} ${n},
|
|
opacity ${t} ${Eg} ${n},
|
|
margin-top ${t} ${mt} ${n},
|
|
margin-bottom ${t} ${mt} ${n},
|
|
padding-top ${t} ${mt} ${n},
|
|
padding-bottom ${t} ${mt} ${n}
|
|
${o?`,${o}`:""}
|
|
`),K(`&.fade-in-height-expand-transition-${l}-active`,`
|
|
overflow: ${e};
|
|
transition:
|
|
max-height ${t} ${mt},
|
|
opacity ${t} ${Pg},
|
|
margin-top ${t} ${mt},
|
|
margin-bottom ${t} ${mt},
|
|
padding-top ${t} ${mt},
|
|
padding-bottom ${t} ${mt}
|
|
${o?`,${o}`:""}
|
|
`)]}const kg={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function Tg(e){const{borderRadius:t,railColor:o,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},kg),{borderRadius:t,railColor:o,railColorActive:n,linkColor:J(n,{alpha:.15}),linkTextColor:a,linkTextColorHover:r,linkTextColorPressed:i,linkTextColorActive:n})}const Rg={name:"Anchor",common:V,self:Tg},st={name:"Input",common:V,self(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:s,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,borderRadius:f,lineHeight:h,fontSizeTiny:m,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:v,heightTiny:y,heightSmall:k,heightMedium:E,heightLarge:x,clearColor:_,clearColorHover:C,clearColorPressed:A,placeholderColor:S,placeholderColorDisabled:R,iconColor:z,iconColorDisabled:O,iconColorHover:Q,iconColorPressed:ne}=e;return Object.assign(Object.assign({},hf),{countTextColorDisabled:n,countTextColor:o,heightTiny:y,heightSmall:k,heightMedium:E,heightLarge:x,fontSizeTiny:m,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:v,lineHeight:h,lineHeightTextarea:h,borderRadius:f,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:n,textDecorationColor:t,groupLabelTextColor:t,caretColor:r,placeholderColor:S,placeholderColorDisabled:R,color:a,colorDisabled:s,colorFocus:J(r,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${J(r,{alpha:.3})}`,loadingColor:r,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:J(l,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${J(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,colorFocusError:J(d,{alpha:.1}),borderFocusError:`1px solid ${u}`,boxShadowFocusError:`0 0 8px 0 ${J(d,{alpha:.3})}`,caretColorError:d,clearColor:_,clearColorHover:C,clearColorPressed:A,iconColor:z,iconColorDisabled:O,iconColorHover:Q,iconColorPressed:ne,suffixTextColor:t})}};function dc(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ZS=We({name:"AutoComplete",common:xe,peers:{InternalSelectMenu:Hi,Input:Gn},self:dc}),Og={name:"AutoComplete",common:V,peers:{InternalSelectMenu:an,Input:st},self:dc};function uc(e){const{borderRadius:t,avatarColor:o,cardColor:n,fontSize:r,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,modalColor:d,popoverColor:u}=e;return{borderRadius:t,fontSize:r,border:`2px solid ${n}`,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,color:ie(n,o),colorModal:ie(d,o),colorPopover:ie(u,o)}}const JS={name:"Avatar",common:xe,self:uc},fc={name:"Avatar",common:V,self:uc};function $g(){return{gap:"-12px"}}const Ig={name:"AvatarGroup",common:V,peers:{Avatar:fc},self:$g},Ag={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},zg={name:"BackTop",common:V,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:n,primaryColorPressed:r}=e;return Object.assign(Object.assign({},Ag),{color:t,textColor:o,iconColor:o,iconColorHover:n,iconColorPressed:r,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)"})}},Mg={name:"Badge",common:V,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:n,warningColorSuppl:r,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:n,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}},Lg={fontWeightActive:"400"};function Bg(e){const{fontSize:t,textColor3:o,textColor2:n,borderRadius:r,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},Lg),{fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:n,itemTextColorPressed:n,itemTextColorActive:n,itemBorderRadius:r,itemColorHover:i,itemColorPressed:a,separatorColor:o})}const Hg={name:"Breadcrumb",common:V,self:Bg},ot={name:"Button",common:V,self(e){const t=pf(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},Dg={titleFontSize:"22px"};function Ng(e){const{borderRadius:t,fontSize:o,lineHeight:n,textColor2:r,textColor1:i,textColorDisabled:a,dividerColor:s,fontWeightStrong:l,primaryColor:c,baseColor:d,hoverColor:u,cardColor:f,modalColor:h,popoverColor:m}=e;return Object.assign(Object.assign({},Dg),{borderRadius:t,borderColor:ie(f,s),borderColorModal:ie(h,s),borderColorPopover:ie(m,s),textColor:r,titleFontWeight:l,titleTextColor:i,dayTextColor:a,fontSize:o,lineHeight:n,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:ie(f,u),cellColorHoverModal:ie(h,u),cellColorHoverPopover:ie(m,u),cellColor:f,cellColorModal:h,cellColorPopover:m,barColor:c})}const Fg={name:"Calendar",common:V,peers:{Button:ot},self:Ng};function jg(e){const{fontSize:t,boxShadow2:o,popoverColor:n,textColor2:r,borderRadius:i,borderColor:a,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,dividerColor:h}=e;return{panelFontSize:t,boxShadow:o,color:n,textColor:r,borderRadius:i,border:`1px solid ${a}`,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,dividerColor:h}}const Wg={name:"ColorPicker",common:V,peers:{Input:st,Button:ot},self:jg},hc={name:"Card",common:V,self(e){const t=mf(e),{cardColor:o,modalColor:n,popoverColor:r}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=n,t.colorEmbeddedPopover=r,t}};function Vg(){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 Ug={name:"Carousel",common:V,self:Vg},Kg={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function pc(e){const{baseColor:t,inputColorDisabled:o,cardColor:n,modalColor:r,popoverColor:i,textColorDisabled:a,borderColor:s,primaryColor:l,textColor2:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadiusSmall:h,lineHeight:m}=e;return Object.assign(Object.assign({},Kg),{labelLineHeight:m,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadius:h,color:t,colorChecked:l,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:n,colorTableHeaderModal:r,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${l}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${J(l,{alpha:.3})}`,textColor:c,textColorDisabled:a})}const Gg={name:"Checkbox",common:xe,self:pc},Co={name:"Checkbox",common:V,self(e){const{cardColor:t}=e,o=pc(e);return o.color="#0000",o.checkMarkColor=t,o}};function qg(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r,textColor3:i,primaryColor:a,textColorDisabled:s,dividerColor:l,hoverColor:c,fontSizeMedium:d,heightMedium:u}=e;return{menuBorderRadius:t,menuColor:n,menuBoxShadow:o,menuDividerColor:l,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:u,optionFontSize:d,optionColorHover:c,optionTextColor:r,optionTextColorActive:a,optionTextColorDisabled:s,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}}const Xg={name:"Cascader",common:V,peers:{InternalSelectMenu:an,InternalSelection:Di,Scrollbar:tt,Checkbox:Co,Empty:Bi},self:qg},mc={name:"Code",common:V,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:n,textColor3:r}=e;return{textColor:t,fontSize:o,fontWeightStrong:n,"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:r}}};function Yg(e){const{fontWeight:t,textColor1:o,textColor2:n,textColorDisabled:r,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:r,fontSize:a,textColor:n,arrowColor:n,arrowColorDisabled:r,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const Zg={name:"Collapse",common:V,self:Yg};function Jg(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const Qg={name:"CollapseTransition",common:V,self:Jg},ev={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:()=>(Wo("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},tv=se({name:"ConfigProvider",alias:["App"],props:ev,setup(e){const t=me(Dr,null),o=F(()=>{const{theme:p}=e;if(p===null)return;const g=t==null?void 0:t.mergedThemeRef.value;return p===void 0?g:g===void 0?p:Object.assign({},g,p)}),n=F(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const g=t==null?void 0:t.mergedThemeOverridesRef.value;return g===void 0?p:ms({},g,p)}}}),r=Ze(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=Ze(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),a=F(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),s=F(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),l=F(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t?t.mergedClsPrefixRef.value:pa}),c=F(()=>{var p;const{rtl:g}=e;if(g===void 0)return t==null?void 0:t.mergedRtlRef.value;const v={};for(const y of g)v[y.name]=In(y),(p=y.peers)===null||p===void 0||p.forEach(k=>{k.name in v||(v[k.name]=In(k))});return v}),d=F(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),u=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),f=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),h=e.styleMountTarget||(t==null?void 0:t.styleMountTarget),m=F(()=>{const{value:p}=o,{value:g}=n,v=g&&Object.keys(g).length!==0,y=p==null?void 0:p.name;return y?v?`${y}-${ma(JSON.stringify(n.value))}`:y:v?ma(JSON.stringify(n.value)):""});return ve(Dr,{mergedThemeHashRef:m,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:s,mergedBorderedRef:i,mergedNamespaceRef:r,mergedClsPrefixRef:l,mergedLocaleRef:F(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:F(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:F(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:F(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:o,mergedThemeOverridesRef:n,inlineThemeDisabled:u||!1,preflightStyleDisabled:f||!1,styleMountTarget:h}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:r,mergedTheme:o,mergedThemeOverrides:n}},render(){var e,t,o,n;return this.abstract?(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o):b(this.as||this.tag,{class:`${this.mergedClsPrefix||pa}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),gc={name:"Popselect",common:V,peers:{Popover:Yt,InternalSelectMenu:an}};function ov(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const nv=We({name:"Popselect",common:xe,peers:{Popover:yo,InternalSelectMenu:Hi},self:ov});function vc(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const rv=We({name:"Select",common:xe,peers:{InternalSelection:wg,InternalSelectMenu:Hi},self:vc}),bc={name:"Select",common:V,peers:{InternalSelection:Di,InternalSelectMenu:an},self:vc},iv={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 xc(e){const{textColor2:t,primaryColor:o,primaryColorHover:n,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:a,borderColor:s,borderRadius:l,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:u,heightTiny:f,heightSmall:h,heightMedium:m}=e;return Object.assign(Object.assign({},iv),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:n,itemTextColorPressed:r,itemTextColorActive:o,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:l,itemSizeSmall:f,itemSizeMedium:h,itemSizeLarge:m,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:u,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:u,jumperTextColor:t,jumperTextColorDisabled:a})}const av=We({name:"Pagination",common:xe,peers:{Select:rv,Input:Gn,Popselect:nv},self:xc}),yc={name:"Pagination",common:V,peers:{Select:bc,Input:st,Popselect:gc},self(e){const{primaryColor:t,opacity3:o}=e,n=J(t,{alpha:Number(o)}),r=xc(e);return r.itemBorderActive=`1px solid ${n}`,r.itemBorderDisabled="1px solid #0000",r}},Cc={padding:"8px 14px"},er={name:"Tooltip",common:V,peers:{Popover:Yt},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r}=e;return Object.assign(Object.assign({},Cc),{borderRadius:t,boxShadow:o,color:n,textColor:r})}};function lv(e){const{borderRadius:t,boxShadow2:o,baseColor:n}=e;return Object.assign(Object.assign({},Cc),{borderRadius:t,boxShadow:o,color:ie(n,"rgba(0, 0, 0, .85)"),textColor:n})}const Ni=We({name:"Tooltip",common:xe,peers:{Popover:yo},self:lv}),wc={name:"Ellipsis",common:V,peers:{Tooltip:er}},sv=We({name:"Ellipsis",common:xe,peers:{Tooltip:Ni}}),Sc={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},_c={name:"Radio",common:V,self(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:f,heightMedium:h,heightLarge:m,lineHeight:p}=e;return Object.assign(Object.assign({},Sc),{labelLineHeight:p,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:m,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,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 ${J(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:o,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${J(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}};function cv(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:f,heightMedium:h,heightLarge:m,lineHeight:p}=e;return Object.assign(Object.assign({},Sc),{labelLineHeight:p,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:m,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,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 ${J(o,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:n,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:t,buttonColor:n,buttonColorActive:n,buttonTextColor:a,buttonTextColorActive:o,buttonTextColorHover:o,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${J(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}const dv={name:"Radio",common:xe,self:cv},uv={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 Ec(e){const{primaryColor:t,textColor2:o,dividerColor:n,hoverColor:r,popoverColor:i,invertedColor:a,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,heightSmall:f,heightMedium:h,heightLarge:m,heightHuge:p,textColor3:g,opacityDisabled:v}=e;return Object.assign(Object.assign({},uv),{optionHeightSmall:f,optionHeightMedium:h,optionHeightLarge:m,optionHeightHuge:p,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:o,prefixColor:o,optionColorHover:r,optionColorActive:J(t,{alpha:.1}),groupHeaderTextColor:g,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:v})}const Fi=We({name:"Dropdown",common:xe,peers:{Popover:yo},self:Ec}),ji={name:"Dropdown",common:V,peers:{Popover:Yt},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:n}=e,r=Ec(e);return r.colorInverted=n,r.optionColorActive=J(o,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}},fv={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 Pc(e){const{cardColor:t,modalColor:o,popoverColor:n,textColor2:r,textColor1:i,tableHeaderColor:a,tableColorHover:s,iconColor:l,primaryColor:c,fontWeightStrong:d,borderRadius:u,lineHeight:f,fontSizeSmall:h,fontSizeMedium:m,fontSizeLarge:p,dividerColor:g,heightSmall:v,opacityDisabled:y,tableColorStriped:k}=e;return Object.assign(Object.assign({},fv),{actionDividerColor:g,lineHeight:f,borderRadius:u,fontSizeSmall:h,fontSizeMedium:m,fontSizeLarge:p,borderColor:ie(t,g),tdColorHover:ie(t,s),tdColorSorting:ie(t,s),tdColorStriped:ie(t,k),thColor:ie(t,a),thColorHover:ie(ie(t,a),s),thColorSorting:ie(ie(t,a),s),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:d,thButtonColorHover:s,thIconColor:l,thIconColorActive:c,borderColorModal:ie(o,g),tdColorHoverModal:ie(o,s),tdColorSortingModal:ie(o,s),tdColorStripedModal:ie(o,k),thColorModal:ie(o,a),thColorHoverModal:ie(ie(o,a),s),thColorSortingModal:ie(ie(o,a),s),tdColorModal:o,borderColorPopover:ie(n,g),tdColorHoverPopover:ie(n,s),tdColorSortingPopover:ie(n,s),tdColorStripedPopover:ie(n,k),thColorPopover:ie(n,a),thColorHoverPopover:ie(ie(n,a),s),thColorSortingPopover:ie(ie(n,a),s),tdColorPopover:n,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:v,opacityLoading:y})}const QS=We({name:"DataTable",common:xe,peers:{Button:tn,Checkbox:Gg,Radio:dv,Pagination:av,Scrollbar:bo,Empty:Bi,Popover:yo,Ellipsis:sv,Dropdown:Fi},self:Pc}),hv={name:"DataTable",common:V,peers:{Button:ot,Checkbox:Co,Radio:_c,Pagination:yc,Scrollbar:tt,Empty:Xt,Popover:Yt,Ellipsis:wc,Dropdown:ji},self(e){const t=Pc(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}},pv=Object.assign(Object.assign({},Qn),Re.props),mv=se({name:"Tooltip",props:pv,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Xe(e),o=Re("Tooltip","-tooltip",void 0,Ni,e,t),n=B(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(i){n.value.setShow(i)}}),{popoverRef:n,mergedTheme:o,popoverThemeOverrides:F(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return b(ac,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)}}),kc=se({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return b("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),gv={name:"Icon",common:V,self:gf},Wi=ze("n-dropdown-menu"),tr=ze("n-dropdown"),tl=ze("n-dropdown-option");function Qr(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function vv(e){return e.type==="group"}function Tc(e){return e.type==="divider"}function bv(e){return e.type==="render"}const Rc=se({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=me(tr),{hoverKeyRef:o,keyboardKeyRef:n,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:s,mergedShowRef:l,renderLabelRef:c,renderIconRef:d,labelFieldRef:u,childrenFieldRef:f,renderOptionRef:h,nodePropsRef:m,menuPropsRef:p}=t,g=me(tl,null),v=me(Wi),y=me(rn),k=F(()=>e.tmNode.rawNode),E=F(()=>{const{value:w}=f;return Qr(e.tmNode.rawNode,w)}),x=F(()=>{const{disabled:w}=e.tmNode;return w}),_=F(()=>{if(!E.value)return!1;const{key:w,disabled:D}=e.tmNode;if(D)return!1;const{value:q}=o,{value:te}=n,{value:U}=r,{value:oe}=i;return q!==null?oe.includes(w):te!==null?oe.includes(w)&&oe[oe.length-1]!==w:U!==null?oe.includes(w):!1}),C=F(()=>n.value===null&&!s.value),A=Gf(_,300,C),S=F(()=>!!(g!=null&&g.enteringSubmenuRef.value)),R=B(!1);ve(tl,{enteringSubmenuRef:R});function z(){R.value=!0}function O(){R.value=!1}function Q(){const{parentKey:w,tmNode:D}=e;D.disabled||l.value&&(r.value=w,n.value=null,o.value=D.key)}function ne(){const{tmNode:w}=e;w.disabled||l.value&&o.value!==w.key&&Q()}function L(w){if(e.tmNode.disabled||!l.value)return;const{relatedTarget:D}=w;D&&!xa({target:D},"dropdownOption")&&!xa({target:D},"scrollbarRail")&&(o.value=null)}function le(){const{value:w}=E,{tmNode:D}=e;l.value&&!w&&!D.disabled&&(t.doSelect(D.key,D.rawNode),t.doUpdateShow(!1))}return{labelField:u,renderLabel:c,renderIcon:d,siblingHasIcon:v.showIconRef,siblingHasSubmenu:v.hasSubmenuRef,menuProps:p,popoverBody:y,animated:s,mergedShowSubmenu:F(()=>A.value&&!S.value),rawNode:k,hasSubmenu:E,pending:Ze(()=>{const{value:w}=i,{key:D}=e.tmNode;return w.includes(D)}),childActive:Ze(()=>{const{value:w}=a,{key:D}=e.tmNode,q=w.findIndex(te=>D===te);return q===-1?!1:q<w.length-1}),active:Ze(()=>{const{value:w}=a,{key:D}=e.tmNode,q=w.findIndex(te=>D===te);return q===-1?!1:q===w.length-1}),mergedDisabled:x,renderOption:h,nodeProps:m,handleClick:le,handleMouseMove:ne,handleMouseEnter:Q,handleMouseLeave:L,handleSubmenuBeforeEnter:z,handleSubmenuAfterEnter:O}},render(){var e,t;const{animated:o,rawNode:n,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:s,renderLabel:l,renderIcon:c,renderOption:d,nodeProps:u,props:f,scrollable:h}=this;let m=null;if(r){const y=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);m=b(Oc,Object.assign({},y,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const p={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},g=u==null?void 0:u(n),v=b("div",Object.assign({class:[`${i}-dropdown-option`,g==null?void 0:g.class],"data-dropdown-option":!0},g),b("div",xo(p,f),[b("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(n):je(n.icon)]),b("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},l?l(n):je((t=n[this.labelField])!==null&&t!==void 0?t:n.title)),b("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,s&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?b(Tt,null,{default:()=>b(Gs,null)}):null)]),this.hasSubmenu?b(As,null,{default:()=>[b(zs,null,{default:()=>b("div",{class:`${i}-dropdown-offset-container`},b(Ls,{show:this.mergedShowSubmenu,placement:this.placement,to:h&&this.popoverBody||void 0,teleportDisabled:!h},{default:()=>b("div",{class:`${i}-dropdown-menu-wrapper`},o?b(en,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>m}):m)}))})]}):null);return d?d({node:v,option:n}):v}}),xv=se({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=me(Wi),{renderLabelRef:o,labelFieldRef:n,nodePropsRef:r,renderOptionRef:i}=me(tr);return{labelField:n,showIcon:e,hasSubmenu:t,renderLabel:o,nodeProps:r,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:o,showIcon:n,nodeProps:r,renderLabel:i,renderOption:a}=this,{rawNode:s}=this.tmNode,l=b("div",Object.assign({class:`${t}-dropdown-option`},r==null?void 0:r(s)),b("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},b("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,n&&`${t}-dropdown-option-body__prefix--show-icon`]},je(s.icon)),b("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(s):je((e=s.title)!==null&&e!==void 0?e:s[this.labelField])),b("div",{class:[`${t}-dropdown-option-body__suffix`,o&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:l,option:s}):l}}),yv=se({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:n}=e;return b(gt,null,b(xv,{clsPrefix:o,tmNode:e,key:e.key}),n==null?void 0:n.map(r=>{const{rawNode:i}=r;return i.show===!1?null:Tc(i)?b(kc,{clsPrefix:o,key:r.key}):r.isGroup?(Wo("dropdown","`group` node is not allowed to be put in `group` node."),null):b(Rc,{clsPrefix:o,tmNode:r,parentKey:t,key:r.key})}))}}),Cv=se({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return b("div",t,[e==null?void 0:e()])}}),Oc=se({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}=me(tr);ve(Wi,{showIconRef:F(()=>{const r=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>r?r(l):l.icon);const{rawNode:s}=i;return r?r(s):s.icon})}),hasSubmenuRef:F(()=>{const{value:r}=o;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>Qr(l,r));const{rawNode:s}=i;return Qr(s,r)})})});const n=B(null);return ve(Yn,null),ve(Zn,null),ve(rn,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:t,scrollable:o}=this,n=this.tmNodes.map(r=>{const{rawNode:i}=r;return i.show===!1?null:bv(i)?b(Cv,{tmNode:r,key:r.key}):Tc(i)?b(kc,{clsPrefix:t,key:r.key}):vv(i)?b(yv,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):b(Rc,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:o})});return b("div",{class:[`${t}-dropdown-menu`,o&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},o?b(ps,{contentClass:`${t}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?ic({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),wv=T("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);
|
|
`,[oc(),T("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;
|
|
`)]),T("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);
|
|
`),lt("disabled",[N("pending",`
|
|
color: var(--n-option-text-color-hover);
|
|
`,[j("prefix, suffix",`
|
|
color: var(--n-option-text-color-hover);
|
|
`),K("&::before","background-color: var(--n-option-color-hover);")]),N("active",`
|
|
color: var(--n-option-text-color-active);
|
|
`,[j("prefix, suffix",`
|
|
color: var(--n-option-text-color-active);
|
|
`),K("&::before","background-color: var(--n-option-color-active);")]),N("child-active",`
|
|
color: var(--n-option-text-color-child-active);
|
|
`,[j("prefix, suffix",`
|
|
color: var(--n-option-text-color-child-active);
|
|
`)])]),N("disabled",`
|
|
cursor: not-allowed;
|
|
opacity: var(--n-option-opacity-disabled);
|
|
`),N("group",`
|
|
font-size: calc(var(--n-font-size) - 1px);
|
|
color: var(--n-group-header-text-color);
|
|
`,[j("prefix",`
|
|
width: calc(var(--n-option-prefix-width) / 2);
|
|
`,[N("show-icon",`
|
|
width: calc(var(--n-option-icon-prefix-width) / 2);
|
|
`)])]),j("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;
|
|
`,[N("show-icon",`
|
|
width: var(--n-option-icon-prefix-width);
|
|
`),T("icon",`
|
|
font-size: var(--n-option-icon-size);
|
|
`)]),j("label",`
|
|
white-space: nowrap;
|
|
flex: 1;
|
|
z-index: 1;
|
|
`),j("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;
|
|
`,[N("has-submenu",`
|
|
width: var(--n-option-icon-suffix-width);
|
|
`),T("icon",`
|
|
font-size: var(--n-option-icon-size);
|
|
`)]),T("dropdown-menu","pointer-events: all;")]),T("dropdown-offset-container",`
|
|
pointer-events: none;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: -4px;
|
|
bottom: -4px;
|
|
`)]),T("dropdown-divider",`
|
|
transition: background-color .3s var(--n-bezier);
|
|
background-color: var(--n-divider-color);
|
|
height: 1px;
|
|
margin: 4px 0;
|
|
`),T("dropdown-menu-wrapper",`
|
|
transform-origin: var(--v-transform-origin);
|
|
width: fit-content;
|
|
`),K(">",[T("scrollbar",`
|
|
height: inherit;
|
|
max-height: inherit;
|
|
`)]),lt("scrollable",`
|
|
padding: var(--n-padding);
|
|
`),N("scrollable",[j("content",`
|
|
padding: var(--n-padding);
|
|
`)])]),Sv={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]},_v=Object.keys(Qn),Ev=Object.assign(Object.assign(Object.assign({},Qn),Sv),Re.props),Pv=se({name:"Dropdown",inheritAttrs:!1,props:Ev,setup(e){const t=B(!1),o=fo(be(e,"show"),t),n=F(()=>{const{keyField:O,childrenField:Q}=e;return _n(e.options,{getKey(ne){return ne[O]},getDisabled(ne){return ne.disabled===!0},getIgnored(ne){return ne.type==="divider"||ne.type==="render"},getChildren(ne){return ne[Q]}})}),r=F(()=>n.value.treeNodes),i=B(null),a=B(null),s=B(null),l=F(()=>{var O,Q,ne;return(ne=(Q=(O=i.value)!==null&&O!==void 0?O:a.value)!==null&&Q!==void 0?Q:s.value)!==null&&ne!==void 0?ne:null}),c=F(()=>n.value.getPath(l.value).keyPath),d=F(()=>n.value.getPath(e.value).keyPath),u=Ze(()=>e.keyboard&&o.value);Zf({keydown:{ArrowUp:{prevent:!0,handler:x},ArrowRight:{prevent:!0,handler:E},ArrowDown:{prevent:!0,handler:_},ArrowLeft:{prevent:!0,handler:k},Enter:{prevent:!0,handler:C},Escape:y}},u);const{mergedClsPrefixRef:f,inlineThemeDisabled:h}=Xe(e),m=Re("Dropdown","-dropdown",wv,Fi,e,f);ve(tr,{labelFieldRef:be(e,"labelField"),childrenFieldRef:be(e,"childrenField"),renderLabelRef:be(e,"renderLabel"),renderIconRef:be(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:be(e,"animated"),mergedShowRef:o,nodePropsRef:be(e,"nodeProps"),renderOptionRef:be(e,"renderOption"),menuPropsRef:be(e,"menuProps"),doSelect:p,doUpdateShow:g}),Be(o,O=>{!e.animated&&!O&&v()});function p(O,Q){const{onSelect:ne}=e;ne&&$e(ne,O,Q)}function g(O){const{"onUpdate:show":Q,onUpdateShow:ne}=e;Q&&$e(Q,O),ne&&$e(ne,O),t.value=O}function v(){i.value=null,a.value=null,s.value=null}function y(){g(!1)}function k(){S("left")}function E(){S("right")}function x(){S("up")}function _(){S("down")}function C(){const O=A();O!=null&&O.isLeaf&&o.value&&(p(O.key,O.rawNode),g(!1))}function A(){var O;const{value:Q}=n,{value:ne}=l;return!Q||ne===null?null:(O=Q.getNode(ne))!==null&&O!==void 0?O:null}function S(O){const{value:Q}=l,{value:{getFirstAvailableNode:ne}}=n;let L=null;if(Q===null){const le=ne();le!==null&&(L=le.key)}else{const le=A();if(le){let w;switch(O){case"down":w=le.getNext();break;case"up":w=le.getPrev();break;case"right":w=le.getChild();break;case"left":w=le.getParent();break}w&&(L=w.key)}}L!==null&&(i.value=null,a.value=L)}const R=F(()=>{const{size:O,inverted:Q}=e,{common:{cubicBezierEaseInOut:ne},self:L}=m.value,{padding:le,dividerColor:w,borderRadius:D,optionOpacityDisabled:q,[Oe("optionIconSuffixWidth",O)]:te,[Oe("optionSuffixWidth",O)]:U,[Oe("optionIconPrefixWidth",O)]:oe,[Oe("optionPrefixWidth",O)]:M,[Oe("fontSize",O)]:ae,[Oe("optionHeight",O)]:ce,[Oe("optionIconSize",O)]:ke}=L,$={"--n-bezier":ne,"--n-font-size":ae,"--n-padding":le,"--n-border-radius":D,"--n-option-height":ce,"--n-option-prefix-width":M,"--n-option-icon-prefix-width":oe,"--n-option-suffix-width":U,"--n-option-icon-suffix-width":te,"--n-option-icon-size":ke,"--n-divider-color":w,"--n-option-opacity-disabled":q};return Q?($["--n-color"]=L.colorInverted,$["--n-option-color-hover"]=L.optionColorHoverInverted,$["--n-option-color-active"]=L.optionColorActiveInverted,$["--n-option-text-color"]=L.optionTextColorInverted,$["--n-option-text-color-hover"]=L.optionTextColorHoverInverted,$["--n-option-text-color-active"]=L.optionTextColorActiveInverted,$["--n-option-text-color-child-active"]=L.optionTextColorChildActiveInverted,$["--n-prefix-color"]=L.prefixColorInverted,$["--n-suffix-color"]=L.suffixColorInverted,$["--n-group-header-text-color"]=L.groupHeaderTextColorInverted):($["--n-color"]=L.color,$["--n-option-color-hover"]=L.optionColorHover,$["--n-option-color-active"]=L.optionColorActive,$["--n-option-text-color"]=L.optionTextColor,$["--n-option-text-color-hover"]=L.optionTextColorHover,$["--n-option-text-color-active"]=L.optionTextColorActive,$["--n-option-text-color-child-active"]=L.optionTextColorChildActive,$["--n-prefix-color"]=L.prefixColor,$["--n-suffix-color"]=L.suffixColor,$["--n-group-header-text-color"]=L.groupHeaderTextColor),$}),z=h?ft("dropdown",F(()=>`${e.size[0]}${e.inverted?"i":""}`),R,e):void 0;return{mergedClsPrefix:f,mergedTheme:m,tmNodes:r,mergedShow:o,handleAfterLeave:()=>{e.animated&&v()},doUpdateShow:g,cssVars:h?void 0:R,themeClass:z==null?void 0:z.themeClass,onRender:z==null?void 0:z.onRender}},render(){const e=(n,r,i,a,s)=>{var l;const{mergedClsPrefix:c,menuProps:d}=this;(l=this.onRender)===null||l===void 0||l.call(this);const u=(d==null?void 0:d(void 0,this.tmNodes.map(h=>h.rawNode)))||{},f={ref:Vf(r),class:[n,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:s};return b(Oc,xo(this.$attrs,f,u))},{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 b(ac,Object.assign({},yt(this.$props,_v),o),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}}),kv={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function $c(e){const{popoverColor:t,textColor2:o,primaryColor:n,hoverColor:r,dividerColor:i,opacityDisabled:a,boxShadow2:s,borderRadius:l,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},kv),{panelColor:t,panelBoxShadow:s,panelDividerColor:i,itemTextColor:o,itemTextColorActive:n,itemColorHover:r,itemOpacityDisabled:a,itemBorderRadius:l,borderRadius:l,iconColor:c,iconColorDisabled:d})}const Tv=We({name:"TimePicker",common:xe,peers:{Scrollbar:bo,Button:tn,Input:Gn},self:$c}),Ic={name:"TimePicker",common:V,peers:{Scrollbar:tt,Button:ot,Input:st},self:$c},Rv={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 Ac(e){const{hoverColor:t,fontSize:o,textColor2:n,textColorDisabled:r,popoverColor:i,primaryColor:a,borderRadiusSmall:s,iconColor:l,iconColorDisabled:c,textColor1:d,dividerColor:u,boxShadow2:f,borderRadius:h,fontWeightStrong:m}=e;return Object.assign(Object.assign({},Rv),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:n,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:J(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:s,panelColor:i,panelTextColor:n,arrowColor:l,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:n,panelHeaderDividerColor:u,calendarDaysDividerColor:u,calendarDividerColor:u,panelActionDividerColor:u,panelBoxShadow:f,panelBorderRadius:h,calendarTitleFontWeight:m,scrollItemBorderRadius:h,iconColor:l,iconColorDisabled:c})}const e2=We({name:"DatePicker",common:xe,peers:{Input:Gn,Button:tn,TimePicker:Tv,Scrollbar:bo},self:Ac}),Ov={name:"DatePicker",common:V,peers:{Input:st,Button:ot,TimePicker:Ic,Scrollbar:tt},self(e){const{popoverColor:t,hoverColor:o,primaryColor:n}=e,r=Ac(e);return r.itemColorDisabled=ie(t,o),r.itemColorIncluded=J(n,{alpha:.15}),r.itemColorHover=ie(t,o),r}},$v={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 Iv(e){const{tableHeaderColor:t,textColor2:o,textColor1:n,cardColor:r,modalColor:i,popoverColor:a,dividerColor:s,borderRadius:l,fontWeightStrong:c,lineHeight:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:h}=e;return Object.assign(Object.assign({},$v),{lineHeight:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:h,titleTextColor:n,thColor:ie(r,t),thColorModal:ie(i,t),thColorPopover:ie(a,t),thTextColor:n,thFontWeight:c,tdTextColor:o,tdColor:r,tdColorModal:i,tdColorPopover:a,borderColor:ie(r,s),borderColorModal:ie(i,s),borderColorPopover:ie(a,s),borderRadius:l})}const Av={name:"Descriptions",common:V,self:Iv},zv={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 zc(e){const{textColor1:t,textColor2:o,modalColor:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,infoColor:c,successColor:d,warningColor:u,errorColor:f,primaryColor:h,dividerColor:m,borderRadius:p,fontWeightStrong:g,lineHeight:v,fontSize:y}=e;return Object.assign(Object.assign({},zv),{fontSize:y,lineHeight:v,border:`1px solid ${m}`,titleTextColor:t,textColor:o,color:n,closeColorHover:s,closeColorPressed:l,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:p,iconColor:h,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:u,iconColorError:f,borderRadius:p,titleFontWeight:g})}const Mc=We({name:"Dialog",common:xe,peers:{Button:tn},self:zc}),Lc={name:"Dialog",common:V,peers:{Button:ot},self:zc},or={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},Bc=on(or),Mv=K([T("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);
|
|
`,[j("icon",{color:"var(--n-icon-color)"}),N("bordered",{border:"var(--n-border)"}),N("icon-top",[j("close",{margin:"var(--n-close-margin)"}),j("icon",{margin:"var(--n-icon-margin)"}),j("content",{textAlign:"center"}),j("title",{justifyContent:"center"}),j("action",{justifyContent:"center"})]),N("icon-left",[j("icon",{margin:"var(--n-icon-margin)"}),N("closable",[j("title",`
|
|
padding-right: calc(var(--n-close-size) + 6px);
|
|
`)])]),j("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;
|
|
`),j("content",`
|
|
font-size: var(--n-font-size);
|
|
margin: var(--n-content-margin);
|
|
position: relative;
|
|
word-break: break-word;
|
|
`,[N("last","margin-bottom: 0;")]),j("action",`
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
`,[K("> *:not(:last-child)",`
|
|
margin-right: var(--n-action-space);
|
|
`)]),j("icon",`
|
|
font-size: var(--n-icon-size);
|
|
transition: color .3s var(--n-bezier);
|
|
`),j("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);
|
|
`),T("dialog-icon-container",`
|
|
display: flex;
|
|
justify-content: center;
|
|
`)]),vf(T("dialog",`
|
|
width: 446px;
|
|
max-width: calc(100vw - 32px);
|
|
`)),T("dialog",[bf(`
|
|
width: 446px;
|
|
max-width: calc(100vw - 32px);
|
|
`)])]),Lv={default:()=>b(Zr,null),info:()=>b(Zr,null),success:()=>b(Xs,null),warning:()=>b(Ys,null),error:()=>b(qs,null)},Hc=se({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Re.props),or),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=Xe(e),i=gs("Dialog",r,o),a=F(()=>{var h,m;const{iconPlacement:p}=e;return p||((m=(h=t==null?void 0:t.value)===null||h===void 0?void 0:h.Dialog)===null||m===void 0?void 0:m.iconPlacement)||"left"});function s(h){const{onPositiveClick:m}=e;m&&m(h)}function l(h){const{onNegativeClick:m}=e;m&&m(h)}function c(){const{onClose:h}=e;h&&h()}const d=Re("Dialog","-dialog",Mv,Mc,e,o),u=F(()=>{const{type:h}=e,m=a.value,{common:{cubicBezierEaseInOut:p},self:{fontSize:g,lineHeight:v,border:y,titleTextColor:k,textColor:E,color:x,closeBorderRadius:_,closeColorHover:C,closeColorPressed:A,closeIconColor:S,closeIconColorHover:R,closeIconColorPressed:z,closeIconSize:O,borderRadius:Q,titleFontWeight:ne,titleFontSize:L,padding:le,iconSize:w,actionSpace:D,contentMargin:q,closeSize:te,[m==="top"?"iconMarginIconTop":"iconMargin"]:U,[m==="top"?"closeMarginIconTop":"closeMargin"]:oe,[Oe("iconColor",h)]:M}}=d.value,ae=Oo(U);return{"--n-font-size":g,"--n-icon-color":M,"--n-bezier":p,"--n-close-margin":oe,"--n-icon-margin-top":ae.top,"--n-icon-margin-right":ae.right,"--n-icon-margin-bottom":ae.bottom,"--n-icon-margin-left":ae.left,"--n-icon-size":w,"--n-close-size":te,"--n-close-icon-size":O,"--n-close-border-radius":_,"--n-close-color-hover":C,"--n-close-color-pressed":A,"--n-close-icon-color":S,"--n-close-icon-color-hover":R,"--n-close-icon-color-pressed":z,"--n-color":x,"--n-text-color":E,"--n-border-radius":Q,"--n-padding":le,"--n-line-height":v,"--n-border":y,"--n-content-margin":q,"--n-title-font-size":L,"--n-title-font-weight":ne,"--n-title-text-color":k,"--n-action-space":D}}),f=n?ft("dialog",F(()=>`${e.type[0]}${a.value[0]}`),u,e):void 0;return{mergedClsPrefix:o,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:d,handlePositiveClick:s,handleNegativeClick:l,handleCloseClick:c,cssVars:n?void 0:u,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:o,cssVars:n,closable:r,showIcon:i,title:a,content:s,action:l,negativeText:c,positiveText:d,positiveButtonProps:u,negativeButtonProps:f,handlePositiveClick:h,handleNegativeClick:m,mergedTheme:p,loading:g,type:v,mergedClsPrefix:y}=this;(e=this.onRender)===null||e===void 0||e.call(this);const k=i?b(nn,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>At(this.$slots.icon,x=>x||(this.icon?je(this.icon):Lv[this.type]()))}):null,E=At(this.$slots.action,x=>x||d||c||l?b("div",{class:[`${y}-dialog__action`,this.actionClass],style:this.actionStyle},x||(l?[je(l)]:[this.negativeText&&b(Nr,Object.assign({theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,ghost:!0,size:"small",onClick:m},f),{default:()=>je(this.negativeText)}),this.positiveText&&b(Nr,Object.assign({theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,size:"small",type:v==="default"?"primary":v,disabled:g,loading:g,onClick:h},u),{default:()=>je(this.positiveText)})])):null);return b("div",{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${o}`,t&&`${y}-dialog--bordered`,this.rtlEnabled&&`${y}-dialog--rtl`],style:n,role:"dialog"},r?At(this.$slots.close,x=>{const _=[`${y}-dialog__close`,this.rtlEnabled&&`${y}-dialog--rtl`];return x?b("div",{class:_},x):b(Si,{clsPrefix:y,class:_,onClick:this.handleCloseClick})}):null,i&&o==="top"?b("div",{class:`${y}-dialog-icon-container`},k):null,b("div",{class:[`${y}-dialog__title`,this.titleClass],style:this.titleStyle},i&&o==="left"?k:null,ga(this.$slots.header,()=>[je(a)])),b("div",{class:[`${y}-dialog__content`,E?"":`${y}-dialog__content--last`,this.contentClass],style:this.contentStyle},ga(this.$slots.default,()=>[je(s)])),E)}}),Dc=ze("n-dialog-provider"),Bv=ze("n-dialog-api"),Hv=ze("n-dialog-reactive-list");function Nc(e){const{modalColor:t,textColor2:o,boxShadow3:n}=e;return{color:t,textColor:o,boxShadow:n}}const Dv=We({name:"Modal",common:xe,peers:{Scrollbar:bo,Dialog:Mc,Card:xf},self:Nc}),Nv={name:"Modal",common:V,peers:{Scrollbar:tt,Dialog:Lc,Card:hc},self:Nc},Vi=Object.assign(Object.assign({},yf),or),Fv=on(Vi),jv=se({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},Vi),{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),n=B(e.show),r=B(null),i=B(null);Be(be(e,"show"),g=>{g&&(n.value=!0)}),vh(F(()=>e.blockScroll&&n.value));const a=me(Rs);function s(){if(a.transformOriginRef.value==="center")return"";const{value:g}=r,{value:v}=i;if(g===null||v===null)return"";if(o.value){const y=o.value.containerScrollTop;return`${g}px ${v+y}px`}return""}function l(g){if(a.transformOriginRef.value==="center")return;const v=a.getMousePosition();if(!v||!o.value)return;const y=o.value.containerScrollTop,{offsetLeft:k,offsetTop:E}=g;if(v){const x=v.y,_=v.x;r.value=-(k-_),i.value=-(E-x-y)}g.style.transformOrigin=s()}function c(g){qe(()=>{l(g)})}function d(g){g.style.transformOrigin=s(),e.onBeforeLeave()}function u(){n.value=!1,r.value=null,i.value=null,e.onAfterLeave()}function f(){const{onClose:g}=e;g&&g()}function h(){e.onNegativeClick()}function m(){e.onPositiveClick()}const p=B(null);return Be(p,g=>{g&&qe(()=>{const v=g.el;v&&t.value!==v&&(t.value=v)})}),ve(Yn,t),ve(Zn,null),ve(rn,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,displayed:n,childNodeRef:p,handlePositiveClick:m,handleNegativeClick:h,handleCloseClick:f,handleAfterLeave:u,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterLeave:n,handleBeforeLeave:r,preset:i,mergedClsPrefix:a}=this;let s=null;if(!i){if(s=Wr(e),!s){Wo("modal","default slot is empty");return}s=wi(s),s.props=xo({class:`${a}-modal`},t,s.props||{})}return this.displayDirective==="show"||this.displayed||this.show?Ct(b("div",{role:"none",class:`${a}-modal-body-wrapper`},b(_i,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var l;return[(l=this.renderMask)===null||l===void 0?void 0:l.call(this),b(Fs,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return b(en,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:o,onAfterEnter:this.onAfterEnter,onAfterLeave:n,onBeforeLeave:r},{default:()=>{const d=[[Uo,this.show]],{onClickoutside:u}=this;return u&&d.push([Kr,this.onClickoutside,void 0,{capture:!0}]),Ct(this.preset==="confirm"||this.preset==="dialog"?b(Hc,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},yt(this.$props,Bc),{"aria-modal":"true"}),e):this.preset==="card"?b(vs,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},yt(this.$props,Cf),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=s,d)}})}})]}})),[[Uo,this.displayDirective==="if"||this.displayed||this.show]]):null}}),Wv=K([T("modal-container",`
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
height: 0;
|
|
width: 0;
|
|
display: flex;
|
|
`),T("modal-mask",`
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, .4);
|
|
`,[bs({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),T("modal-body-wrapper",`
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
overflow: visible;
|
|
`,[T("modal-scroll-content",`
|
|
min-height: 100%;
|
|
display: flex;
|
|
position: relative;
|
|
`)]),T("modal",`
|
|
position: relative;
|
|
align-self: center;
|
|
color: var(--n-text-color);
|
|
margin: auto;
|
|
box-shadow: var(--n-box-shadow);
|
|
`,[oc({duration:".25s",enterScale:".5"})])]),Vv=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}}),Vi),{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}),Fc=se({name:"Modal",inheritAttrs:!1,props:Vv,setup(e){const t=B(null),{mergedClsPrefixRef:o,namespaceRef:n,inlineThemeDisabled:r}=Xe(e),i=Re("Modal","-modal",Wv,Dv,e,o),a=Ts(64),s=ks(),l=Wn(),c=e.internalDialog?me(Dc,null):null,d=e.internalModal?me(Qf,null):null,u=bh();function f(_){const{onUpdateShow:C,"onUpdate:show":A,onHide:S}=e;C&&$e(C,_),A&&$e(A,_),S&&!_&&S(_)}function h(){const{onClose:_}=e;_?Promise.resolve(_()).then(C=>{C!==!1&&f(!1)}):f(!1)}function m(){const{onPositiveClick:_}=e;_?Promise.resolve(_()).then(C=>{C!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:_}=e;_?Promise.resolve(_()).then(C=>{C!==!1&&f(!1)}):f(!1)}function g(){const{onBeforeLeave:_,onBeforeHide:C}=e;_&&$e(_),C&&C()}function v(){const{onAfterLeave:_,onAfterHide:C}=e;_&&$e(_),C&&C()}function y(_){var C;const{onMaskClick:A}=e;A&&A(_),e.maskClosable&&!((C=t.value)===null||C===void 0)&&C.contains(An(_))&&f(!1)}function k(_){var C;(C=e.onEsc)===null||C===void 0||C.call(e),e.show&&e.closeOnEsc&&Kf(_)&&(u.value||f(!1))}ve(Rs,{getMousePosition:()=>{const _=c||d;if(_){const{clickedRef:C,clickedPositionRef:A}=_;if(C.value&&A.value)return A.value}return a.value?s.value:null},mergedClsPrefixRef:o,mergedThemeRef:i,isMountedRef:l,appearRef:be(e,"internalAppear"),transformOriginRef:be(e,"transformOrigin")});const E=F(()=>{const{common:{cubicBezierEaseOut:_},self:{boxShadow:C,color:A,textColor:S}}=i.value;return{"--n-bezier-ease-out":_,"--n-box-shadow":C,"--n-color":A,"--n-text-color":S}}),x=r?ft("theme-class",void 0,E,e):void 0;return{mergedClsPrefix:o,namespace:n,isMounted:l,containerRef:t,presetProps:F(()=>yt(e,Fv)),handleEsc:k,handleAfterLeave:v,handleClickoutside:y,handleBeforeLeave:g,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:m,handleCloseClick:h,cssVars:r?void 0:E,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e}=this;return b(Ms,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:o}=this;return Ct(b("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},b(jv,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 n;return b(en,{name:"fade-in-transition",key:"mask",appear:(n=this.internalAppear)!==null&&n!==void 0?n:this.isMounted},{default:()=>this.show?b("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[Ri,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Uv=Object.assign(Object.assign({},or),{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}),Kv=se({name:"DialogEnvironment",props:Object.assign(Object.assign({},Uv),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=B(!0);function o(){const{onInternalAfterLeave:d,internalKey:u,onAfterLeave:f}=e;d&&d(u),f&&f()}function n(d){const{onPositiveClick:u}=e;u?Promise.resolve(u(d)).then(f=>{f!==!1&&l()}):l()}function r(d){const{onNegativeClick:u}=e;u?Promise.resolve(u(d)).then(f=>{f!==!1&&l()}):l()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(u=>{u!==!1&&l()}):l()}function a(d){const{onMaskClick:u,maskClosable:f}=e;u&&(u(d),f&&l())}function s(){const{onEsc:d}=e;d&&d()}function l(){t.value=!1}function c(d){t.value=d}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:n,handleMaskClick:a,handleEsc:s}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:n,handleAfterLeave:r,handleMaskClick:i,handleEsc:a,to:s,maskClosable:l,show:c}=this;return b(Fc,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:s,maskClosable:l,onAfterEnter:this.onAfterEnter,onAfterLeave:r,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>b(Hc,Object.assign({},yt(this.$props,Bc),{style:this.internalStyle,onClose:n,onNegativeClick:o,onPositiveClick:e}))})}}),Gv={injectionKey:String,to:[String,Object]},qv=se({name:"DialogProvider",props:Gv,setup(){const e=B([]),t={};function o(s={}){const l=Vn(),c=Zo(Object.assign(Object.assign({},s),{key:l,destroy:()=>{var d;(d=t[`n-dialog-${l}`])===null||d===void 0||d.hide()}}));return e.value.push(c),c}const n=["info","success","warning","error"].map(s=>l=>o(Object.assign(Object.assign({},l),{type:s})));function r(s){const{value:l}=e;l.splice(l.findIndex(c=>c.key===s),1)}function i(){Object.values(t).forEach(s=>{s==null||s.hide()})}const a={create:o,destroyAll:i,info:n[0],success:n[1],warning:n[2],error:n[3]};return ve(Bv,a),ve(Dc,{clickedRef:Ts(64),clickedPositionRef:ks()}),ve(Hv,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:r})},render(){var e,t;return b(gt,null,[this.dialogList.map(o=>b(Kv,Ei(o,["destroy","style"],{internalStyle:o.style,to:this.to,ref:n=>{n===null?delete this.dialogInstRefs[`n-dialog-${o.key}`]:this.dialogInstRefs[`n-dialog-${o.key}`]=n},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function jc(e){const{textColor1:t,dividerColor:o,fontWeightStrong:n}=e;return{textColor:t,color:o,fontWeight:n}}const t2={name:"Divider",common:xe,self:jc},Xv={name:"Divider",common:V,self:jc};function Yv(e){const{modalColor:t,textColor1:o,textColor2:n,boxShadow3:r,lineHeight:i,fontWeightStrong:a,dividerColor:s,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:m}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:n,titleTextColor:o,titleFontSize:"18px",titleFontWeight:a,boxShadow:r,lineHeight:i,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:c,closeBorderRadius:h,resizableTriggerColorHover:m}}const Zv={name:"Drawer",common:V,peers:{Scrollbar:tt},self:Yv},Jv={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},Qv={name:"DynamicInput",common:V,peers:{Input:st,Button:ot},self(){return Jv}},eb={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},Wc={name:"Space",self(){return eb}},tb={name:"DynamicTags",common:V,peers:{Input:st,Button:ot,Tag:lc,Space:Wc},self(){return{inputWidth:"64px"}}},ob={name:"Element",common:V},nb={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},rb={name:"Flex",self(){return nb}},ib={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 Vc(e){const{heightSmall:t,heightMedium:o,heightLarge:n,textColor1:r,errorColor:i,warningColor:a,lineHeight:s,textColor3:l}=e;return Object.assign(Object.assign({},ib),{blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:n,lineHeight:s,labelTextColor:r,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:l})}const o2={name:"Form",common:xe,self:Vc},ab={name:"Form",common:V,self:Vc},lb={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function sb(e){const{textColor2:t,successColor:o,infoColor:n,warningColor:r,errorColor:i,popoverColor:a,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:u,textColor1:f,textColor3:h,borderRadius:m,fontWeightStrong:p,boxShadow2:g,lineHeight:v,fontSize:y}=e;return Object.assign(Object.assign({},lb),{borderRadius:m,lineHeight:v,fontSize:y,headerFontWeight:p,iconColor:t,iconColorSuccess:o,iconColorInfo:n,iconColorWarning:r,iconColorError:i,color:a,textColor:t,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeBorderRadius:m,closeColorHover:d,closeColorPressed:u,headerTextColor:f,descriptionTextColor:h,actionTextColor:t,boxShadow:g})}const cb={name:"Notification",common:V,peers:{Scrollbar:tt},self:sb},db={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 Uc(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,infoColor:i,successColor:a,errorColor:s,warningColor:l,popoverColor:c,boxShadow2:d,primaryColor:u,lineHeight:f,borderRadius:h,closeColorHover:m,closeColorPressed:p}=e;return Object.assign(Object.assign({},db),{closeBorderRadius:h,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:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:l,iconColorError:s,iconColorLoading:u,closeColorHover:m,closeColorPressed:p,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,closeColorHoverInfo:m,closeColorPressedInfo:p,closeIconColorInfo:o,closeIconColorHoverInfo:n,closeIconColorPressedInfo:r,closeColorHoverSuccess:m,closeColorPressedSuccess:p,closeIconColorSuccess:o,closeIconColorHoverSuccess:n,closeIconColorPressedSuccess:r,closeColorHoverError:m,closeColorPressedError:p,closeIconColorError:o,closeIconColorHoverError:n,closeIconColorPressedError:r,closeColorHoverWarning:m,closeColorPressedWarning:p,closeIconColorWarning:o,closeIconColorHoverWarning:n,closeIconColorPressedWarning:r,closeColorHoverLoading:m,closeColorPressedLoading:p,closeIconColorLoading:o,closeIconColorHoverLoading:n,closeIconColorPressedLoading:r,loadingColor:u,lineHeight:f,borderRadius:h})}const ub={name:"Message",common:xe,self:Uc},fb={name:"Message",common:V,self:Uc},hb={name:"ButtonGroup",common:V},pb={name:"GradientText",common:V,self(e){const{primaryColor:t,successColor:o,warningColor:n,errorColor:r,infoColor:i,primaryColorSuppl:a,successColorSuppl:s,warningColorSuppl:l,errorColorSuppl:c,infoColorSuppl:d,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:d,colorStartWarning:n,colorEndWarning:l,colorStartError:r,colorEndError:c,colorStartSuccess:o,colorEndSuccess:s}}},mb={name:"InputNumber",common:V,peers:{Button:ot,Input:st},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},gb={name:"Layout",common:V,peers:{Scrollbar:tt},self(e){const{textColor2:t,bodyColor:o,popoverColor:n,cardColor:r,dividerColor:i,scrollbarColor:a,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:r,headerColorInverted:r,footerColor:r,footerColorInverted:r,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:r,siderColorInverted:r,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:n,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:ie(o,a),siderToggleBarColorHover:ie(o,s),__invertScrollbar:"false"}}};function vb(e){const{baseColor:t,textColor2:o,bodyColor:n,cardColor:r,dividerColor:i,actionColor:a,scrollbarColor:s,scrollbarColorHover:l,invertedColor:c}=e;return{textColor:o,textColorInverted:"#FFF",color:n,colorEmbedded:a,headerColor:r,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:r,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:ie(n,s),siderToggleBarColorHover:ie(n,l),__invertScrollbar:"true"}}const Ui=We({name:"Layout",common:xe,peers:{Scrollbar:bo},self:vb});function Kc(e){const{textColor2:t,cardColor:o,modalColor:n,popoverColor:r,dividerColor:i,borderRadius:a,fontSize:s,hoverColor:l}=e;return{textColor:t,color:o,colorHover:l,colorModal:n,colorHoverModal:ie(n,l),colorPopover:r,colorHoverPopover:ie(r,l),borderColor:i,borderColorModal:ie(n,i),borderColorPopover:ie(r,i),borderRadius:a,fontSize:s}}const n2={name:"List",common:xe,self:Kc},bb={name:"List",common:V,self:Kc},xb={name:"LoadingBar",common:V,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};function yb(e){const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}}const Cb={name:"LoadingBar",common:xe,self:yb},wb={name:"Log",common:V,peers:{Scrollbar:tt,Code:mc},self(e){const{textColor2:t,inputColor:o,fontSize:n,primaryColor:r}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:r}}},Sb={name:"Mention",common:V,peers:{InternalSelectMenu:an,Input:st},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function _b(e,t,o,n){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:n}}function Gc(e){const{borderRadius:t,textColor3:o,primaryColor:n,textColor2:r,textColor1:i,fontSize:a,dividerColor:s,hoverColor:l,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:l,itemColorActive:J(n,{alpha:.1}),itemColorActiveHover:J(n,{alpha:.1}),itemColorActiveCollapsed:J(n,{alpha:.1}),itemTextColor:r,itemTextColorHover:r,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:r,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:r,arrowColorHover:r,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:s},_b("#BBB",n,"#FFF","#AAA"))}const Eb=We({name:"Menu",common:xe,peers:{Tooltip:Ni,Dropdown:Fi},self:Gc}),Pb={name:"Menu",common:V,peers:{Tooltip:er,Dropdown:ji},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,n=Gc(e);return n.itemColorActive=J(t,{alpha:.15}),n.itemColorActiveHover=J(t,{alpha:.15}),n.itemColorActiveCollapsed=J(t,{alpha:.15}),n.itemColorActiveInverted=o,n.itemColorActiveHoverInverted=o,n.itemColorActiveCollapsedInverted=o,n}},kb={titleFontSize:"18px",backSize:"22px"};function Tb(e){const{textColor1:t,textColor2:o,textColor3:n,fontSize:r,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:s}=e;return Object.assign(Object.assign({},kb),{titleFontWeight:i,fontSize:r,titleTextColor:t,backColor:o,backColorHover:a,backColorPressed:s,subtitleTextColor:n})}const Rb={name:"PageHeader",common:V,self:Tb},Ob={iconSize:"22px"};function $b(e){const{fontSize:t,warningColor:o}=e;return Object.assign(Object.assign({},Ob),{fontSize:t,iconColor:o})}const Ib={name:"Popconfirm",common:V,peers:{Button:ot,Popover:Yt},self:$b};function qc(e){const{infoColor:t,successColor:o,warningColor:n,errorColor:r,textColor2:i,progressRailColor:a,fontSize:s,fontWeight:l}=e;return{fontSize:s,fontSizeCircle:"28px",fontWeightCircle:l,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:n,iconColorError:r,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:n,fillColorError:r,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const Ab={name:"Progress",common:xe,self:qc},Xc={name:"Progress",common:V,self(e){const t=qc(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}},zb={name:"Rate",common:V,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},Mb={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 Lb(e){const{textColor2:t,textColor1:o,errorColor:n,successColor:r,infoColor:i,warningColor:a,lineHeight:s,fontWeightStrong:l}=e;return Object.assign(Object.assign({},Mb),{lineHeight:s,titleFontWeight:l,titleTextColor:o,textColor:t,iconColorError:n,iconColorSuccess:r,iconColorInfo:i,iconColorWarning:a})}const Bb={name:"Result",common:V,self:Lb},Hb={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},Db={name:"Slider",common:V,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:s,borderRadius:l,fontSize:c,opacityDisabled:d}=e;return Object.assign(Object.assign({},Hb),{fontSize:c,markFontSize:c,railColor:o,railColorHover:o,fillColor:r,fillColorHover:r,opacityDisabled:d,handleColor:"#FFF",dotColor:s,dotColorModal:n,dotColorPopover:i,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:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:l,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}};function Nb(e){const{opacityDisabled:t,heightTiny:o,heightSmall:n,heightMedium:r,heightLarge:i,heightHuge:a,primaryColor:s,fontSize:l}=e;return{fontSize:l,textColor:s,sizeTiny:o,sizeSmall:n,sizeMedium:r,sizeLarge:i,sizeHuge:a,color:s,opacitySpinning:t}}const Fb={name:"Spin",common:V,self:Nb};function jb(e){const{textColor2:t,textColor3:o,fontSize:n,fontWeight:r}=e;return{labelFontSize:n,labelFontWeight:r,valueFontWeight:r,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const Wb={name:"Statistic",common:V,self:jb},Vb={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Ub(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:n,primaryColor:r,errorColor:i,textColor1:a,textColor2:s}=e;return Object.assign(Object.assign({},Vb),{stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:n,indicatorTextColorFinish:r,indicatorTextColorError:i,indicatorBorderColorProcess:r,indicatorBorderColorWait:n,indicatorBorderColorFinish:r,indicatorBorderColorError:i,indicatorColorProcess:r,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:n,splitorColorWait:n,splitorColorFinish:r,splitorColorError:n,headerTextColorProcess:a,headerTextColorWait:n,headerTextColorFinish:n,headerTextColorError:i,descriptionTextColorProcess:s,descriptionTextColorWait:n,descriptionTextColorFinish:n,descriptionTextColorError:i})}const Kb={name:"Steps",common:V,self:Ub},Gb={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"},qb={name:"Switch",common:V,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:n,primaryColor:r,textColor2:i,baseColor:a}=e;return Object.assign(Object.assign({},Gb),{iconColor:a,textColor:i,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:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 8px 0 ${J(r,{alpha:.3})}`})}},Xb={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Yc(e){const{dividerColor:t,cardColor:o,modalColor:n,popoverColor:r,tableHeaderColor:i,tableColorStriped:a,textColor1:s,textColor2:l,borderRadius:c,fontWeightStrong:d,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:m}=e;return Object.assign(Object.assign({},Xb),{fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:m,lineHeight:u,borderRadius:c,borderColor:ie(o,t),borderColorModal:ie(n,t),borderColorPopover:ie(r,t),tdColor:o,tdColorModal:n,tdColorPopover:r,tdColorStriped:ie(o,a),tdColorStripedModal:ie(n,a),tdColorStripedPopover:ie(r,a),thColor:ie(o,i),thColorModal:ie(n,i),thColorPopover:ie(r,i),thTextColor:s,tdTextColor:l,thFontWeight:d})}const r2={name:"Table",common:xe,self:Yc},Yb={name:"Table",common:V,self:Yc},Zb={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 Zc(e){const{textColor2:t,primaryColor:o,textColorDisabled:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,tabColor:c,baseColor:d,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:m,fontSize:p,fontWeightStrong:g}=e;return Object.assign(Object.assign({},Zb),{colorSegment:c,tabFontSizeCard:p,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:n,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:n,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:n,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:n,barColor:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,closeBorderRadius:m,tabColor:c,tabColorSegment:d,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g})}const Jb={name:"Tabs",common:xe,self:Zc},Qb={name:"Tabs",common:V,self(e){const t=Zc(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Jc(e){const{textColor1:t,textColor2:o,fontWeightStrong:n,fontSize:r}=e;return{fontSize:r,titleTextColor:t,textColor:o,titleFontWeight:n}}const i2={name:"Thing",common:xe,self:Jc},e0={name:"Thing",common:V,self:Jc},t0={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},o0={name:"Timeline",common:V,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,textColor1:a,textColor2:s,railColor:l,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},t0),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:n,iconColorSuccess:r,iconColorWarning:i,titleTextColor:a,contentTextColor:s,metaTextColor:t,lineColor:l})}},n0={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},r0={name:"Transfer",common:V,peers:{Checkbox:Co,Scrollbar:tt,Input:st,Empty:Xt,Button:ot},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:n,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:s,inputColor:l,tableHeaderColor:c,textColor1:d,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:m,closeColorHover:p,closeColorPressed:g,closeIconColor:v,closeIconColorHover:y,closeIconColorPressed:k,dividerColor:E}=e;return Object.assign(Object.assign({},n0),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:o,borderRadius:s,dividerColor:E,borderColor:"#0000",listColor:l,headerColor:c,titleTextColor:d,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:m,titleFontWeight:t,closeColorHover:p,closeColorPressed:g,closeIconColor:v,closeIconColorHover:y,closeIconColorPressed:k})}};function i0(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:n,pressedColor:r,primaryColor:i,textColor3:a,textColor2:s,textColorDisabled:l,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:J(i,{alpha:.1}),arrowColor:a,nodeTextColor:s,nodeTextColorDisabled:l,loadingColor:i,dropMarkColor:i,lineColor:o}}const Qc={name:"Tree",common:V,peers:{Checkbox:Co,Scrollbar:tt,Empty:Xt},self(e){const{primaryColor:t}=e,o=i0(e);return o.nodeColorActive=J(t,{alpha:.15}),o}},a0={name:"TreeSelect",common:V,peers:{Tree:Qc,Empty:Xt,InternalSelection:Di}},l0={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 ed(e){const{primaryColor:t,textColor2:o,borderColor:n,lineHeight:r,fontSize:i,borderRadiusSmall:a,dividerColor:s,fontWeightStrong:l,textColor1:c,textColor3:d,infoColor:u,warningColor:f,errorColor:h,successColor:m,codeColor:p}=e;return Object.assign(Object.assign({},l0),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:n,blockquoteLineHeight:r,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:o,liLineHeight:r,liFontSize:i,hrColor:s,headerFontWeight:l,headerTextColor:c,pTextColor:o,pTextColor1Depth:c,pTextColor2Depth:o,pTextColor3Depth:d,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:m,textColor:o,textColor1Depth:c,textColor2Depth:o,textColor3Depth:d,textColorPrimary:t,textColorInfo:u,textColorSuccess:m,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:p,codeBorder:"1px solid #0000"})}const a2={name:"Typography",common:xe,self:ed},s0={name:"Typography",common:V,self:ed};function td(e){const{iconColor:t,primaryColor:o,errorColor:n,textColor2:r,successColor:i,opacityDisabled:a,actionColor:s,borderColor:l,hoverColor:c,lineHeight:d,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:d,borderRadius:u,draggerColor:s,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:c,itemColorHoverError:J(n,{alpha:.06}),itemTextColor:r,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${l}`}}const l2=We({name:"Upload",common:xe,peers:{Button:tn,Progress:Ab},self:td}),c0={name:"Upload",common:V,peers:{Button:ot,Progress:Xc},self(e){const{errorColor:t}=e,o=td(e);return o.itemColorHoverError=J(t,{alpha:.09}),o}},d0={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},u0=We({name:"Watermark",common:xe,self(e){const{fontFamily:t}=e;return{fontFamily:t}}}),f0={name:"Row",common:V},h0={name:"FloatButton",common:V,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:n,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:s,baseColor:l,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:n,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:s,textColorPrimary:l,borderRadiusSquare:c}}},p0=se({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=me(Dr,null),{body:t}=document,{style:o}=t;let n=!1,r=!0;Jo(()=>{wt(()=>{var i,a;const{textColor2:s,fontSize:l,fontFamily:c,bodyColor:d,cubicBezierEaseInOut:u,lineHeight:f}=e?ms({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||xe,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):xe;if(n||!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=d,o.color=s,o.fontSize=l,o.fontFamily=c,o.lineHeight=f;const h=`color .3s ${u}, background-color .3s ${u}`;r?setTimeout(()=>{o.transition=h},0):o.transition=h,t.setAttribute("n-styled",""),n=!0,r=!1}})}),wf(()=>{n&&t.removeAttribute("n-styled")})},render(){return null}});function m0(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const g0={name:"IconWrapper",common:V,self:m0},v0={name:"Image",common:V,peers:{Tooltip:er},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},od=ze("n-layout-sider"),Ki={type:String,default:"static"},b0=T("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);
|
|
`,[T("layout-scroll-container",`
|
|
overflow-x: hidden;
|
|
box-sizing: border-box;
|
|
height: 100%;
|
|
`),N("absolute-positioned",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`)]),x0={embedded:Boolean,position:Ki,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},nd=ze("n-layout");function rd(e){return se({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Re.props),x0),setup(t){const o=B(null),n=B(null),{mergedClsPrefixRef:r,inlineThemeDisabled:i}=Xe(t),a=Re("Layout","-layout",b0,Ui,t,r);function s(p,g){if(t.nativeScrollbar){const{value:v}=o;v&&(g===void 0?v.scrollTo(p):v.scrollTo(p,g))}else{const{value:v}=n;v&&v.scrollTo(p,g)}}ve(nd,t);let l=0,c=0;const d=p=>{var g;const v=p.target;l=v.scrollLeft,c=v.scrollTop,(g=t.onScroll)===null||g===void 0||g.call(t,p)};xs(()=>{if(t.nativeScrollbar){const p=o.value;p&&(p.scrollTop=c,p.scrollLeft=l)}});const u={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:s},h=F(()=>{const{common:{cubicBezierEaseInOut:p},self:g}=a.value;return{"--n-bezier":p,"--n-color":t.embedded?g.colorEmbedded:g.color,"--n-text-color":g.textColor}}),m=i?ft("layout",F(()=>t.embedded?"e":""),h,t):void 0;return Object.assign({mergedClsPrefix:r,scrollableElRef:o,scrollbarInstRef:n,hasSiderStyle:u,mergedTheme:a,handleNativeElScroll:d,cssVars:i?void 0:h,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender},f)},render(){var t;const{mergedClsPrefix:o,hasSider:n}=this;(t=this.onRender)===null||t===void 0||t.call(this);const r=n?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${o}-layout-content`,`${o}-layout`,`${o}-layout--${this.position}-positioned`];return b("div",{class:i,style:this.cssVars},this.nativeScrollbar?b("div",{ref:"scrollableElRef",class:[`${o}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,r],onScroll:this.handleNativeElScroll},this.$slots):b(_i,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,r]}),this.$slots))}})}const y0=rd(!1),C0=rd(!0),w0=T("layout-footer",`
|
|
transition:
|
|
box-shadow .3s var(--n-bezier),
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
color: var(--n-text-color);
|
|
background-color: var(--n-color);
|
|
box-sizing: border-box;
|
|
`,[N("absolute-positioned",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
`),N("bordered",`
|
|
border-top: solid 1px var(--n-border-color);
|
|
`)]),S0=Object.assign(Object.assign({},Re.props),{inverted:Boolean,position:Ki,bordered:Boolean}),_0=se({name:"LayoutFooter",props:S0,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Xe(e),n=Re("Layout","-layout-footer",w0,Ui,e,t),r=F(()=>{const{common:{cubicBezierEaseInOut:a},self:s}=n.value,l={"--n-bezier":a};return e.inverted?(l["--n-color"]=s.footerColorInverted,l["--n-text-color"]=s.textColorInverted,l["--n-border-color"]=s.footerBorderColorInverted):(l["--n-color"]=s.footerColor,l["--n-text-color"]=s.textColor,l["--n-border-color"]=s.footerBorderColor),l}),i=o?ft("layout-footer",F(()=>e.inverted?"a":"b"),r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),b("div",{class:[`${t}-layout-footer`,this.themeClass,this.position&&`${t}-layout-footer--${this.position}-positioned`,this.bordered&&`${t}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),E0=T("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;
|
|
`,[N("bordered",[j("border",`
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 1px;
|
|
background-color: var(--n-border-color);
|
|
transition: background-color .3s var(--n-bezier);
|
|
`)]),j("left-placement",[N("bordered",[j("border",`
|
|
right: 0;
|
|
`)])]),N("right-placement",`
|
|
justify-content: flex-start;
|
|
`,[N("bordered",[j("border",`
|
|
left: 0;
|
|
`)]),N("collapsed",[T("layout-toggle-button",[T("base-icon",`
|
|
transform: rotate(180deg);
|
|
`)]),T("layout-toggle-bar",[K("&:hover",[j("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),j("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),T("layout-toggle-button",`
|
|
left: 0;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
`,[T("base-icon",`
|
|
transform: rotate(0);
|
|
`)]),T("layout-toggle-bar",`
|
|
left: -28px;
|
|
transform: rotate(180deg);
|
|
`,[K("&:hover",[j("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),j("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),N("collapsed",[T("layout-toggle-bar",[K("&:hover",[j("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),j("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),T("layout-toggle-button",[T("base-icon",`
|
|
transform: rotate(0);
|
|
`)])]),T("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;
|
|
`,[T("base-icon",`
|
|
transition: transform .3s var(--n-bezier);
|
|
transform: rotate(180deg);
|
|
`)]),T("layout-toggle-bar",`
|
|
cursor: pointer;
|
|
height: 72px;
|
|
width: 32px;
|
|
position: absolute;
|
|
top: calc(50% - 36px);
|
|
right: -28px;
|
|
`,[j("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);
|
|
`),j("bottom",`
|
|
position: absolute;
|
|
top: 34px;
|
|
`),K("&:hover",[j("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),j("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),j("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),K("&:hover",[j("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),j("border",`
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 1px;
|
|
transition: background-color .3s var(--n-bezier);
|
|
`),T("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%;
|
|
`),N("show-content",[T("layout-sider-scroll-container",{opacity:1})]),N("absolute-positioned",`
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`)]),P0=se({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return b("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},b(nn,{clsPrefix:e},{default:()=>b(Gs,null)}))}}),k0=se({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return b("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},b("div",{class:`${e}-layout-toggle-bar__top`}),b("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),T0={position:Ki,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},R0=se({name:"LayoutSider",props:Object.assign(Object.assign({},Re.props),T0),setup(e){const t=me(nd),o=B(null),n=B(null),r=B(e.defaultCollapsed),i=fo(be(e,"collapsed"),r),a=F(()=>ao(i.value?e.collapsedWidth:e.width)),s=F(()=>e.collapseMode!=="transform"?{}:{minWidth:ao(e.width)}),l=F(()=>t?t.siderPlacement:"left");function c(x,_){if(e.nativeScrollbar){const{value:C}=o;C&&(_===void 0?C.scrollTo(x):C.scrollTo(x,_))}else{const{value:C}=n;C&&C.scrollTo(x,_)}}function d(){const{"onUpdate:collapsed":x,onUpdateCollapsed:_,onExpand:C,onCollapse:A}=e,{value:S}=i;_&&$e(_,!S),x&&$e(x,!S),r.value=!S,S?C&&$e(C):A&&$e(A)}let u=0,f=0;const h=x=>{var _;const C=x.target;u=C.scrollLeft,f=C.scrollTop,(_=e.onScroll)===null||_===void 0||_.call(e,x)};xs(()=>{if(e.nativeScrollbar){const x=o.value;x&&(x.scrollTop=f,x.scrollLeft=u)}}),ve(od,{collapsedRef:i,collapseModeRef:be(e,"collapseMode")});const{mergedClsPrefixRef:m,inlineThemeDisabled:p}=Xe(e),g=Re("Layout","-layout-sider",E0,Ui,e,m);function v(x){var _,C;x.propertyName==="max-width"&&(i.value?(_=e.onAfterLeave)===null||_===void 0||_.call(e):(C=e.onAfterEnter)===null||C===void 0||C.call(e))}const y={scrollTo:c},k=F(()=>{const{common:{cubicBezierEaseInOut:x},self:_}=g.value,{siderToggleButtonColor:C,siderToggleButtonBorder:A,siderToggleBarColor:S,siderToggleBarColorHover:R}=_,z={"--n-bezier":x,"--n-toggle-button-color":C,"--n-toggle-button-border":A,"--n-toggle-bar-color":S,"--n-toggle-bar-color-hover":R};return e.inverted?(z["--n-color"]=_.siderColorInverted,z["--n-text-color"]=_.textColorInverted,z["--n-border-color"]=_.siderBorderColorInverted,z["--n-toggle-button-icon-color"]=_.siderToggleButtonIconColorInverted,z.__invertScrollbar=_.__invertScrollbar):(z["--n-color"]=_.siderColor,z["--n-text-color"]=_.textColor,z["--n-border-color"]=_.siderBorderColor,z["--n-toggle-button-icon-color"]=_.siderToggleButtonIconColor),z}),E=p?ft("layout-sider",F(()=>e.inverted?"a":"b"),k,e):void 0;return Object.assign({scrollableElRef:o,scrollbarInstRef:n,mergedClsPrefix:m,mergedTheme:g,styleMaxWidth:a,mergedCollapsed:i,scrollContainerStyle:s,siderPlacement:l,handleNativeElScroll:h,handleTransitionend:v,handleTriggerClick:d,inlineThemeDisabled:p,cssVars:k,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender},y)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:o,showTrigger:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),b("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:ao(this.width)}]},this.nativeScrollbar?b("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):b(_i,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),n?n==="bar"?b(k0,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):b(P0,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?b("div",{class:`${t}-layout-sider__border`}):null)}}),O0={extraFontSize:"12px",width:"440px"},$0={name:"Transfer",common:V,peers:{Checkbox:Co,Scrollbar:tt,Input:st,Empty:Xt,Button:ot},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:n,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:s,heightMedium:l,heightSmall:c,borderRadius:d,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:m,textColor2:p,hoverColor:g}=e;return Object.assign(Object.assign({},O0),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:d,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:m,extraTextColor:p,filterDividerColor:"#0000",itemTextColor:p,itemTextColorDisabled:m,itemColorPending:g,titleFontWeight:n,iconColor:o,iconColorDisabled:t})}},id=ze("n-loading-bar"),I0=ze("n-loading-bar-api"),A0=T("loading-bar-container",`
|
|
z-index: 5999;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
`,[bs({enterDuration:"0.3s",leaveDuration:"0.8s"}),T("loading-bar",`
|
|
width: 100%;
|
|
transition:
|
|
max-width 4s linear,
|
|
background .2s linear;
|
|
height: var(--n-height);
|
|
`,[N("starting",`
|
|
background: var(--n-color-loading);
|
|
`),N("finishing",`
|
|
background: var(--n-color-loading);
|
|
transition:
|
|
max-width .2s linear,
|
|
background .2s linear;
|
|
`),N("error",`
|
|
background: var(--n-color-error);
|
|
transition:
|
|
max-width .2s linear,
|
|
background .2s linear;
|
|
`)])]);var vn=function(e,t,o,n){function r(i){return i instanceof o?i:new o(function(a){a(i)})}return new(o||(o=Promise))(function(i,a){function s(d){try{c(n.next(d))}catch(u){a(u)}}function l(d){try{c(n.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):r(d.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};function bn(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const z0=se({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=Xe(),{props:t,mergedClsPrefixRef:o}=me(id),n=B(null),r=B(!1),i=B(!1),a=B(!1),s=B(!1);let l=!1;const c=B(!1),d=F(()=>{const{loadingBarStyle:x}=t;return x?x[c.value?"error":"loading"]:""});function u(){return vn(this,void 0,void 0,function*(){r.value=!1,a.value=!1,l=!1,c.value=!1,s.value=!0,yield qe(),s.value=!1})}function f(){return vn(this,arguments,void 0,function*(x=0,_=80,C="starting"){if(i.value=!0,yield u(),l)return;a.value=!0,yield qe();const A=n.value;A&&(A.style.maxWidth=`${x}%`,A.style.transition="none",A.offsetWidth,A.className=bn(C,o.value),A.style.transition="",A.style.maxWidth=`${_}%`)})}function h(){return vn(this,void 0,void 0,function*(){if(l||c.value)return;i.value&&(yield qe()),l=!0;const x=n.value;x&&(x.className=bn("finishing",o.value),x.style.maxWidth="100%",x.offsetWidth,a.value=!1)})}function m(){if(!(l||c.value))if(!a.value)f(100,100,"error").then(()=>{c.value=!0;const x=n.value;x&&(x.className=bn("error",o.value),x.offsetWidth,a.value=!1)});else{c.value=!0;const x=n.value;if(!x)return;x.className=bn("error",o.value),x.style.maxWidth="100%",x.offsetWidth,a.value=!1}}function p(){r.value=!0}function g(){r.value=!1}function v(){return vn(this,void 0,void 0,function*(){yield u()})}const y=Re("LoadingBar","-loading-bar",A0,Cb,t,o),k=F(()=>{const{self:{height:x,colorError:_,colorLoading:C}}=y.value;return{"--n-height":x,"--n-color-loading":C,"--n-color-error":_}}),E=e?ft("loading-bar",void 0,k,t):void 0;return{mergedClsPrefix:o,loadingBarRef:n,started:i,loading:a,entering:r,transitionDisabled:s,start:f,error:m,finish:h,handleEnter:p,handleAfterEnter:g,handleAfterLeave:v,mergedLoadingBarStyle:d,cssVars:e?void 0:k,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return b(en,{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),Ct(b("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},b("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Uo,this.loading||!this.loading&&this.entering]])}})}}),M0=Object.assign(Object.assign({},Re.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),L0=se({name:"LoadingBarProvider",props:M0,setup(e){const t=Wn(),o=B(null),n={start(){var i;t.value?(i=o.value)===null||i===void 0||i.start():qe(()=>{var a;(a=o.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=o.value)===null||i===void 0||i.error():qe(()=>{var a;(a=o.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=o.value)===null||i===void 0||i.finish():qe(()=>{var a;(a=o.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:r}=Xe(e);return ve(I0,n),ve(id,{props:e,mergedClsPrefixRef:r}),Object.assign(n,{loadingBarRef:o})},render(){var e,t;return b(gt,null,b(gi,{disabled:this.to===!1,to:this.to||"body"},b(z0,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),ln=ze("n-menu"),Gi=ze("n-submenu"),qi=ze("n-menu-item-group"),xn=8;function Xi(e){const t=me(ln),{props:o,mergedCollapsedRef:n}=t,r=me(Gi,null),i=me(qi,null),a=F(()=>o.mode==="horizontal"),s=F(()=>a.value?o.dropdownPlacement:"tmNodes"in e?"right-start":"right"),l=F(()=>{var f;return Math.max((f=o.collapsedIconSize)!==null&&f!==void 0?f:o.iconSize,o.iconSize)}),c=F(()=>{var f;return!a.value&&e.root&&n.value&&(f=o.collapsedIconSize)!==null&&f!==void 0?f:o.iconSize}),d=F(()=>{if(a.value)return;const{collapsedWidth:f,indent:h,rootIndent:m}=o,{root:p,isGroup:g}=e,v=m===void 0?h:m;return p?n.value?f/2-l.value/2:v:i&&typeof i.paddingLeftRef.value=="number"?h/2+i.paddingLeftRef.value:r&&typeof r.paddingLeftRef.value=="number"?(g?h/2:h)+r.paddingLeftRef.value:0}),u=F(()=>{const{collapsedWidth:f,indent:h,rootIndent:m}=o,{value:p}=l,{root:g}=e;return a.value||!g||!n.value?xn:(m===void 0?h:m)+p+xn-(f+p)/2});return{dropdownPlacement:s,activeIconSize:c,maxIconSize:l,paddingLeft:d,iconMarginRight:u,NMenu:t,NSubmenu:r}}const Yi={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},ad=Object.assign(Object.assign({},Yi),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),B0=se({name:"MenuOptionGroup",props:ad,setup(e){ve(Gi,null);const t=Xi(e);ve(qi,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:o,props:n}=me(ln);return function(){const{value:r}=o,i=t.paddingLeft.value,{nodeProps:a}=n,s=a==null?void 0:a(e.tmNode.rawNode);return b("div",{class:`${r}-menu-item-group`,role:"group"},b("div",Object.assign({},s,{class:[`${r}-menu-item-group-title`,s==null?void 0:s.class],style:[(s==null?void 0:s.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),je(e.title),e.extra?b(gt,null," ",je(e.extra)):null),b("div",null,e.tmNodes.map(l=>Zi(l,n))))}}}),ld=se({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}=me(ln);return{menuProps:t,style:F(()=>{const{paddingLeft:o}=e;return{paddingLeft:o&&`${o}px`}}),iconStyle:F(()=>{const{maxIconSize:o,activeIconSize:n,iconMarginRight:r}=e;return{width:`${o}px`,height:`${o}px`,fontSize:`${n}px`,marginRight:`${r}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:o,renderLabel:n,renderExtra:r,expandIcon:i}}=this,a=o?o(t.rawNode):je(this.icon);return b("div",{onClick:s=>{var l;(l=this.onClick)===null||l===void 0||l.call(this,s)},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},a&&b("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),b("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:n?n(t.rawNode):je(this.title),this.extra||r?b("span",{class:`${e}-menu-item-content-header__extra`}," ",r?r(t.rawNode):je(this.extra)):null),this.showArrow?b(nn,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):b(Hm,null)}):null)}}),sd=Object.assign(Object.assign({},Yi),{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}),ei=se({name:"Submenu",props:sd,setup(e){const t=Xi(e),{NMenu:o,NSubmenu:n}=t,{props:r,mergedCollapsedRef:i,mergedThemeRef:a}=o,s=F(()=>{const{disabled:f}=e;return n!=null&&n.mergedDisabledRef.value||r.disabled?!0:f}),l=B(!1);ve(Gi,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:s}),ve(qi,null);function c(){const{onClick:f}=e;f&&f()}function d(){s.value||(i.value||o.toggleExpand(e.internalKey),c())}function u(f){l.value=f}return{menuProps:r,mergedTheme:a,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:l,paddingLeft:t.paddingLeft,mergedDisabled:s,mergedValue:o.mergedValueRef,childActive:Ze(()=>{var f;return(f=e.virtualChildActive)!==null&&f!==void 0?f:o.activePathRef.value.includes(e.internalKey)}),collapsed:F(()=>r.mode==="horizontal"?!1:i.value?!0:!o.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:F(()=>!s.value&&(r.mode==="horizontal"||i.value)),handlePopoverShowChange:u,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:o,renderLabel:n}}=this,r=()=>{const{isHorizontal:a,paddingLeft:s,collapsed:l,mergedDisabled:c,maxIconSize:d,activeIconSize:u,title:f,childActive:h,icon:m,handleClick:p,menuProps:{nodeProps:g},dropdownShow:v,iconMarginRight:y,tmNode:k,mergedClsPrefix:E,isEllipsisPlaceholder:x,extra:_}=this,C=g==null?void 0:g(k.rawNode);return b("div",Object.assign({},C,{class:[`${E}-menu-item`,C==null?void 0:C.class],role:"menuitem"}),b(ld,{tmNode:k,paddingLeft:s,collapsed:l,disabled:c,iconMarginRight:y,maxIconSize:d,activeIconSize:u,title:f,extra:_,showArrow:!a,childActive:h,clsPrefix:E,icon:m,hover:v,onClick:p,isEllipsisPlaceholder:x}))},i=()=>b(ys,null,{default:()=>{const{tmNodes:a,collapsed:s}=this;return s?null:b("div",{class:`${t}-submenu-children`,role:"menu"},a.map(l=>Zi(l,this.menuProps)))}});return this.root?b(Pv,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:n}),{default:()=>b("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),this.isHorizontal?null:i())}):b("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),i())}}),cd=Object.assign(Object.assign({},Yi),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),H0=se({name:"MenuOption",props:cd,setup(e){const t=Xi(e),{NSubmenu:o,NMenu:n}=t,{props:r,mergedClsPrefixRef:i,mergedCollapsedRef:a}=n,s=o?o.mergedDisabledRef:{value:!1},l=F(()=>s.value||e.disabled);function c(u){const{onClick:f}=e;f&&f(u)}function d(u){l.value||(n.doSelect(e.internalKey,e.tmNode.rawNode),c(u))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:n.mergedThemeRef,menuProps:r,dropdownEnabled:Ze(()=>e.root&&a.value&&r.mode!=="horizontal"&&!l.value),selected:Ze(()=>n.mergedValueRef.value===e.internalKey),mergedDisabled:l,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:o,menuProps:{renderLabel:n,nodeProps:r}}=this,i=r==null?void 0:r(o.rawNode);return b("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),b(mv,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>n?n(o.rawNode):je(this.title),trigger:()=>b(ld,{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})}))}}),D0=se({name:"MenuDivider",setup(){const e=me(ln),{mergedClsPrefixRef:t,isHorizontalRef:o}=e;return()=>o.value?null:b("div",{class:`${t.value}-menu-divider`})}}),N0=on(ad),F0=on(cd),j0=on(sd);function ti(e){return e.type==="divider"||e.type==="render"}function W0(e){return e.type==="divider"}function Zi(e,t){const{rawNode:o}=e,{show:n}=o;if(n===!1)return null;if(ti(o))return W0(o)?b(D0,Object.assign({key:e.key},o.props)):null;const{labelField:r}=t,{key:i,level:a,isGroup:s}=e,l=Object.assign(Object.assign({},o),{title:o.title||o[r],extra:o.titleExtra||o.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:s});return e.children?e.isGroup?b(B0,yt(l,N0,{tmNode:e,tmNodes:e.children,key:i})):b(ei,yt(l,j0,{key:i,rawNodes:o[t.childrenField],tmNodes:e.children,tmNode:e})):b(H0,yt(l,F0,{key:i,tmNode:e}))}const ol=[K("&::before","background-color: var(--n-item-color-hover);"),j("arrow",`
|
|
color: var(--n-arrow-color-hover);
|
|
`),j("icon",`
|
|
color: var(--n-item-icon-color-hover);
|
|
`),T("menu-item-content-header",`
|
|
color: var(--n-item-text-color-hover);
|
|
`,[K("a",`
|
|
color: var(--n-item-text-color-hover);
|
|
`),j("extra",`
|
|
color: var(--n-item-text-color-hover);
|
|
`)])],nl=[j("icon",`
|
|
color: var(--n-item-icon-color-hover-horizontal);
|
|
`),T("menu-item-content-header",`
|
|
color: var(--n-item-text-color-hover-horizontal);
|
|
`,[K("a",`
|
|
color: var(--n-item-text-color-hover-horizontal);
|
|
`),j("extra",`
|
|
color: var(--n-item-text-color-hover-horizontal);
|
|
`)])],V0=K([T("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;
|
|
`,[N("horizontal",`
|
|
max-width: 100%;
|
|
width: 100%;
|
|
display: flex;
|
|
overflow: hidden;
|
|
padding-bottom: 0;
|
|
`,[T("submenu","margin: 0;"),T("menu-item","margin: 0;"),T("menu-item-content",`
|
|
padding: 0 20px;
|
|
border-bottom: 2px solid #0000;
|
|
`,[K("&::before","display: none;"),N("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),T("menu-item-content",[N("selected",[j("icon","color: var(--n-item-icon-color-active-horizontal);"),T("menu-item-content-header",`
|
|
color: var(--n-item-text-color-active-horizontal);
|
|
`,[K("a","color: var(--n-item-text-color-active-horizontal);"),j("extra","color: var(--n-item-text-color-active-horizontal);")])]),N("child-active",`
|
|
border-bottom: 2px solid var(--n-border-color-horizontal);
|
|
`,[T("menu-item-content-header",`
|
|
color: var(--n-item-text-color-child-active-horizontal);
|
|
`,[K("a",`
|
|
color: var(--n-item-text-color-child-active-horizontal);
|
|
`),j("extra",`
|
|
color: var(--n-item-text-color-child-active-horizontal);
|
|
`)]),j("icon",`
|
|
color: var(--n-item-icon-color-child-active-horizontal);
|
|
`)]),lt("disabled",[lt("selected, child-active",[K("&:focus-within",nl)]),N("selected",[Lt(null,[j("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),T("menu-item-content-header",`
|
|
color: var(--n-item-text-color-active-hover-horizontal);
|
|
`,[K("a","color: var(--n-item-text-color-active-hover-horizontal);"),j("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),N("child-active",[Lt(null,[j("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),T("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);"),j("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Lt("border-bottom: 2px solid var(--n-border-color-horizontal);",nl)]),T("menu-item-content-header",[K("a","color: var(--n-item-text-color-horizontal);")])])]),lt("responsive",[T("menu-item-content-header",`
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
`)]),N("collapsed",[T("menu-item-content",[N("selected",[K("&::before",`
|
|
background-color: var(--n-item-color-active-collapsed) !important;
|
|
`)]),T("menu-item-content-header","opacity: 0;"),j("arrow","opacity: 0;"),j("icon","color: var(--n-item-icon-color-collapsed);")])]),T("menu-item",`
|
|
height: var(--n-item-height);
|
|
margin-top: 6px;
|
|
position: relative;
|
|
`),T("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);
|
|
`),N("disabled",`
|
|
opacity: .45;
|
|
cursor: not-allowed;
|
|
`),N("collapsed",[j("arrow","transform: rotate(0);")]),N("selected",[K("&::before","background-color: var(--n-item-color-active);"),j("arrow","color: var(--n-arrow-color-active);"),j("icon","color: var(--n-item-icon-color-active);"),T("menu-item-content-header",`
|
|
color: var(--n-item-text-color-active);
|
|
`,[K("a","color: var(--n-item-text-color-active);"),j("extra","color: var(--n-item-text-color-active);")])]),N("child-active",[T("menu-item-content-header",`
|
|
color: var(--n-item-text-color-child-active);
|
|
`,[K("a",`
|
|
color: var(--n-item-text-color-child-active);
|
|
`),j("extra",`
|
|
color: var(--n-item-text-color-child-active);
|
|
`)]),j("arrow",`
|
|
color: var(--n-arrow-color-child-active);
|
|
`),j("icon",`
|
|
color: var(--n-item-icon-color-child-active);
|
|
`)]),lt("disabled",[lt("selected, child-active",[K("&:focus-within",ol)]),N("selected",[Lt(null,[j("arrow","color: var(--n-arrow-color-active-hover);"),j("icon","color: var(--n-item-icon-color-active-hover);"),T("menu-item-content-header",`
|
|
color: var(--n-item-text-color-active-hover);
|
|
`,[K("a","color: var(--n-item-text-color-active-hover);"),j("extra","color: var(--n-item-text-color-active-hover);")])])]),N("child-active",[Lt(null,[j("arrow","color: var(--n-arrow-color-child-active-hover);"),j("icon","color: var(--n-item-icon-color-child-active-hover);"),T("menu-item-content-header",`
|
|
color: var(--n-item-text-color-child-active-hover);
|
|
`,[K("a","color: var(--n-item-text-color-child-active-hover);"),j("extra","color: var(--n-item-text-color-child-active-hover);")])])]),N("selected",[Lt(null,[K("&::before","background-color: var(--n-item-color-active-hover);")])]),Lt(null,ol)]),j("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;
|
|
`),j("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);
|
|
`),T("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;
|
|
`)]),j("extra",`
|
|
font-size: .93em;
|
|
color: var(--n-group-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`)])]),T("submenu",`
|
|
cursor: pointer;
|
|
position: relative;
|
|
margin-top: 6px;
|
|
`,[T("menu-item-content",`
|
|
height: var(--n-item-height);
|
|
`),T("submenu-children",`
|
|
overflow: hidden;
|
|
padding: 0;
|
|
`,[cc({duration:".2s"})])]),T("menu-item-group",[T("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);
|
|
`)])]),T("menu-tooltip",[K("a",`
|
|
color: inherit;
|
|
text-decoration: none;
|
|
`)]),T("menu-divider",`
|
|
transition: background-color .3s var(--n-bezier);
|
|
background-color: var(--n-divider-color);
|
|
height: 1px;
|
|
margin: 6px 18px;
|
|
`)]);function Lt(e,t){return[N("hover",e,t),K("&:hover",e,t)]}const U0=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}),K0=se({name:"Menu",inheritAttrs:!1,props:U0,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Xe(e),n=Re("Menu","-menu",V0,Eb,e,t),r=me(od,null),i=F(()=>{var U;const{collapsed:oe}=e;if(oe!==void 0)return oe;if(r){const{collapseModeRef:M,collapsedRef:ae}=r;if(M.value==="width")return(U=ae.value)!==null&&U!==void 0?U:!1}return!1}),a=F(()=>{const{keyField:U,childrenField:oe,disabledField:M}=e;return _n(e.items||e.options,{getIgnored(ae){return ti(ae)},getChildren(ae){return ae[oe]},getDisabled(ae){return ae[M]},getKey(ae){var ce;return(ce=ae[U])!==null&&ce!==void 0?ce:ae.name}})}),s=F(()=>new Set(a.value.treeNodes.map(U=>U.key))),{watchProps:l}=e,c=B(null);l!=null&&l.includes("defaultValue")?wt(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=be(e,"value"),u=fo(d,c),f=B([]),h=()=>{f.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(u.value,{includeSelf:!1}).keyPath};l!=null&&l.includes("defaultExpandedKeys")?wt(h):h();const m=Mn(e,["expandedNames","expandedKeys"]),p=fo(m,f),g=F(()=>a.value.treeNodes),v=F(()=>a.value.getPath(u.value).keyPath);ve(ln,{props:e,mergedCollapsedRef:i,mergedThemeRef:n,mergedValueRef:u,mergedExpandedKeysRef:p,activePathRef:v,mergedClsPrefixRef:t,isHorizontalRef:F(()=>e.mode==="horizontal"),invertedRef:be(e,"inverted"),doSelect:y,toggleExpand:E});function y(U,oe){const{"onUpdate:value":M,onUpdateValue:ae,onSelect:ce}=e;ae&&$e(ae,U,oe),M&&$e(M,U,oe),ce&&$e(ce,U,oe),c.value=U}function k(U){const{"onUpdate:expandedKeys":oe,onUpdateExpandedKeys:M,onExpandedNamesChange:ae,onOpenNamesChange:ce}=e;oe&&$e(oe,U),M&&$e(M,U),ae&&$e(ae,U),ce&&$e(ce,U),f.value=U}function E(U){const oe=Array.from(p.value),M=oe.findIndex(ae=>ae===U);if(~M)oe.splice(M,1);else{if(e.accordion&&s.value.has(U)){const ae=oe.findIndex(ce=>s.value.has(ce));ae>-1&&oe.splice(ae,1)}oe.push(U)}k(oe)}const x=U=>{const oe=a.value.getPath(U??u.value,{includeSelf:!1}).keyPath;if(!oe.length)return;const M=Array.from(p.value),ae=new Set([...M,...oe]);e.accordion&&s.value.forEach(ce=>{ae.has(ce)&&!oe.includes(ce)&&ae.delete(ce)}),k(Array.from(ae))},_=F(()=>{const{inverted:U}=e,{common:{cubicBezierEaseInOut:oe},self:M}=n.value,{borderRadius:ae,borderColorHorizontal:ce,fontSize:ke,itemHeight:$,dividerColor:Z}=M,P={"--n-divider-color":Z,"--n-bezier":oe,"--n-font-size":ke,"--n-border-color-horizontal":ce,"--n-border-radius":ae,"--n-item-height":$};return U?(P["--n-group-text-color"]=M.groupTextColorInverted,P["--n-color"]=M.colorInverted,P["--n-item-text-color"]=M.itemTextColorInverted,P["--n-item-text-color-hover"]=M.itemTextColorHoverInverted,P["--n-item-text-color-active"]=M.itemTextColorActiveInverted,P["--n-item-text-color-child-active"]=M.itemTextColorChildActiveInverted,P["--n-item-text-color-child-active-hover"]=M.itemTextColorChildActiveInverted,P["--n-item-text-color-active-hover"]=M.itemTextColorActiveHoverInverted,P["--n-item-icon-color"]=M.itemIconColorInverted,P["--n-item-icon-color-hover"]=M.itemIconColorHoverInverted,P["--n-item-icon-color-active"]=M.itemIconColorActiveInverted,P["--n-item-icon-color-active-hover"]=M.itemIconColorActiveHoverInverted,P["--n-item-icon-color-child-active"]=M.itemIconColorChildActiveInverted,P["--n-item-icon-color-child-active-hover"]=M.itemIconColorChildActiveHoverInverted,P["--n-item-icon-color-collapsed"]=M.itemIconColorCollapsedInverted,P["--n-item-text-color-horizontal"]=M.itemTextColorHorizontalInverted,P["--n-item-text-color-hover-horizontal"]=M.itemTextColorHoverHorizontalInverted,P["--n-item-text-color-active-horizontal"]=M.itemTextColorActiveHorizontalInverted,P["--n-item-text-color-child-active-horizontal"]=M.itemTextColorChildActiveHorizontalInverted,P["--n-item-text-color-child-active-hover-horizontal"]=M.itemTextColorChildActiveHoverHorizontalInverted,P["--n-item-text-color-active-hover-horizontal"]=M.itemTextColorActiveHoverHorizontalInverted,P["--n-item-icon-color-horizontal"]=M.itemIconColorHorizontalInverted,P["--n-item-icon-color-hover-horizontal"]=M.itemIconColorHoverHorizontalInverted,P["--n-item-icon-color-active-horizontal"]=M.itemIconColorActiveHorizontalInverted,P["--n-item-icon-color-active-hover-horizontal"]=M.itemIconColorActiveHoverHorizontalInverted,P["--n-item-icon-color-child-active-horizontal"]=M.itemIconColorChildActiveHorizontalInverted,P["--n-item-icon-color-child-active-hover-horizontal"]=M.itemIconColorChildActiveHoverHorizontalInverted,P["--n-arrow-color"]=M.arrowColorInverted,P["--n-arrow-color-hover"]=M.arrowColorHoverInverted,P["--n-arrow-color-active"]=M.arrowColorActiveInverted,P["--n-arrow-color-active-hover"]=M.arrowColorActiveHoverInverted,P["--n-arrow-color-child-active"]=M.arrowColorChildActiveInverted,P["--n-arrow-color-child-active-hover"]=M.arrowColorChildActiveHoverInverted,P["--n-item-color-hover"]=M.itemColorHoverInverted,P["--n-item-color-active"]=M.itemColorActiveInverted,P["--n-item-color-active-hover"]=M.itemColorActiveHoverInverted,P["--n-item-color-active-collapsed"]=M.itemColorActiveCollapsedInverted):(P["--n-group-text-color"]=M.groupTextColor,P["--n-color"]=M.color,P["--n-item-text-color"]=M.itemTextColor,P["--n-item-text-color-hover"]=M.itemTextColorHover,P["--n-item-text-color-active"]=M.itemTextColorActive,P["--n-item-text-color-child-active"]=M.itemTextColorChildActive,P["--n-item-text-color-child-active-hover"]=M.itemTextColorChildActiveHover,P["--n-item-text-color-active-hover"]=M.itemTextColorActiveHover,P["--n-item-icon-color"]=M.itemIconColor,P["--n-item-icon-color-hover"]=M.itemIconColorHover,P["--n-item-icon-color-active"]=M.itemIconColorActive,P["--n-item-icon-color-active-hover"]=M.itemIconColorActiveHover,P["--n-item-icon-color-child-active"]=M.itemIconColorChildActive,P["--n-item-icon-color-child-active-hover"]=M.itemIconColorChildActiveHover,P["--n-item-icon-color-collapsed"]=M.itemIconColorCollapsed,P["--n-item-text-color-horizontal"]=M.itemTextColorHorizontal,P["--n-item-text-color-hover-horizontal"]=M.itemTextColorHoverHorizontal,P["--n-item-text-color-active-horizontal"]=M.itemTextColorActiveHorizontal,P["--n-item-text-color-child-active-horizontal"]=M.itemTextColorChildActiveHorizontal,P["--n-item-text-color-child-active-hover-horizontal"]=M.itemTextColorChildActiveHoverHorizontal,P["--n-item-text-color-active-hover-horizontal"]=M.itemTextColorActiveHoverHorizontal,P["--n-item-icon-color-horizontal"]=M.itemIconColorHorizontal,P["--n-item-icon-color-hover-horizontal"]=M.itemIconColorHoverHorizontal,P["--n-item-icon-color-active-horizontal"]=M.itemIconColorActiveHorizontal,P["--n-item-icon-color-active-hover-horizontal"]=M.itemIconColorActiveHoverHorizontal,P["--n-item-icon-color-child-active-horizontal"]=M.itemIconColorChildActiveHorizontal,P["--n-item-icon-color-child-active-hover-horizontal"]=M.itemIconColorChildActiveHoverHorizontal,P["--n-arrow-color"]=M.arrowColor,P["--n-arrow-color-hover"]=M.arrowColorHover,P["--n-arrow-color-active"]=M.arrowColorActive,P["--n-arrow-color-active-hover"]=M.arrowColorActiveHover,P["--n-arrow-color-child-active"]=M.arrowColorChildActive,P["--n-arrow-color-child-active-hover"]=M.arrowColorChildActiveHover,P["--n-item-color-hover"]=M.itemColorHover,P["--n-item-color-active"]=M.itemColorActive,P["--n-item-color-active-hover"]=M.itemColorActiveHover,P["--n-item-color-active-collapsed"]=M.itemColorActiveCollapsed),P}),C=o?ft("menu",F(()=>e.inverted?"a":"b"),_,e):void 0,A=Vn(),S=B(null),R=B(null);let z=!0;const O=()=>{var U;z?z=!1:(U=S.value)===null||U===void 0||U.sync({showAllItemsBeforeCalculate:!0})};function Q(){return document.getElementById(A)}const ne=B(-1);function L(U){ne.value=e.options.length-U}function le(U){U||(ne.value=-1)}const w=F(()=>{const U=ne.value;return{children:U===-1?[]:e.options.slice(U)}}),D=F(()=>{const{childrenField:U,disabledField:oe,keyField:M}=e;return _n([w.value],{getIgnored(ae){return ti(ae)},getChildren(ae){return ae[U]},getDisabled(ae){return ae[oe]},getKey(ae){var ce;return(ce=ae[M])!==null&&ce!==void 0?ce:ae.name}})}),q=F(()=>_n([{}]).treeNodes[0]);function te(){var U;if(ne.value===-1)return b(ei,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:q.value,domId:A,isEllipsisPlaceholder:!0});const oe=D.value.treeNodes[0],M=v.value,ae=!!(!((U=oe.children)===null||U===void 0)&&U.some(ce=>M.includes(ce.key)));return b(ei,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:ae,tmNode:oe,domId:A,rawNodes:oe.rawNode.children||[],tmNodes:oe.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:m,uncontrolledExpanededKeys:f,mergedExpandedKeys:p,uncontrolledValue:c,mergedValue:u,activePath:v,tmNodes:g,mergedTheme:n,mergedCollapsed:i,cssVars:o?void 0:_,themeClass:C==null?void 0:C.themeClass,overflowRef:S,counterRef:R,updateCounter:()=>{},onResize:O,onUpdateOverflow:le,onUpdateCount:L,renderCounter:te,getCounter:Q,onRender:C==null?void 0:C.onRender,showOption:x,deriveResponsiveState:O}},render(){const{mergedClsPrefix:e,mode:t,themeClass:o,onRender:n}=this;n==null||n();const r=()=>this.tmNodes.map(l=>Zi(l,this.$props)),a=t==="horizontal"&&this.responsive,s=()=>b("div",xo(this.$attrs,{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,o,`${e}-menu--${t}`,a&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),a?b(mh,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:r,counter:this.renderCounter}):r());return a?b(Sn,{onResize:this.onResize},{default:s}):s()}}),dd={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},G0=ze("n-message-api"),ud=ze("n-message-provider"),q0=K([T("message-wrapper",`
|
|
margin: var(--n-margin);
|
|
z-index: 0;
|
|
transform-origin: top center;
|
|
display: flex;
|
|
`,[cc({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),T("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);
|
|
`,[j("content",`
|
|
display: inline-block;
|
|
line-height: var(--n-line-height);
|
|
font-size: var(--n-font-size);
|
|
`),j("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=>N(`${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;
|
|
`,[Sf()])]),j("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);
|
|
`)])]),T("message-container",`
|
|
z-index: 6000;
|
|
position: fixed;
|
|
height: 0;
|
|
overflow: visible;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
`,[N("top",`
|
|
top: 12px;
|
|
left: 0;
|
|
right: 0;
|
|
`),N("top-left",`
|
|
top: 12px;
|
|
left: 12px;
|
|
right: 0;
|
|
align-items: flex-start;
|
|
`),N("top-right",`
|
|
top: 12px;
|
|
left: 0;
|
|
right: 12px;
|
|
align-items: flex-end;
|
|
`),N("bottom",`
|
|
bottom: 4px;
|
|
left: 0;
|
|
right: 0;
|
|
justify-content: flex-end;
|
|
`),N("bottom-left",`
|
|
bottom: 4px;
|
|
left: 12px;
|
|
right: 0;
|
|
justify-content: flex-end;
|
|
align-items: flex-start;
|
|
`),N("bottom-right",`
|
|
bottom: 4px;
|
|
left: 0;
|
|
right: 12px;
|
|
justify-content: flex-end;
|
|
align-items: flex-end;
|
|
`)])]),X0={info:()=>b(Zr,null),success:()=>b(Xs,null),warning:()=>b(Ys,null),error:()=>b(qs,null),default:()=>null},Y0=se({name:"Message",props:Object.assign(Object.assign({},dd),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=Xe(e),{props:n,mergedClsPrefixRef:r}=me(ud),i=gs("Message",o,r),a=Re("Message","-message",q0,ub,n,r),s=F(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:u,margin:f,maxWidth:h,iconMargin:m,closeMargin:p,closeSize:g,iconSize:v,fontSize:y,lineHeight:k,borderRadius:E,iconColorInfo:x,iconColorSuccess:_,iconColorWarning:C,iconColorError:A,iconColorLoading:S,closeIconSize:R,closeBorderRadius:z,[Oe("textColor",c)]:O,[Oe("boxShadow",c)]:Q,[Oe("color",c)]:ne,[Oe("closeColorHover",c)]:L,[Oe("closeColorPressed",c)]:le,[Oe("closeIconColor",c)]:w,[Oe("closeIconColorPressed",c)]:D,[Oe("closeIconColorHover",c)]:q}}=a.value;return{"--n-bezier":d,"--n-margin":f,"--n-padding":u,"--n-max-width":h,"--n-font-size":y,"--n-icon-margin":m,"--n-icon-size":v,"--n-close-icon-size":R,"--n-close-border-radius":z,"--n-close-size":g,"--n-close-margin":p,"--n-text-color":O,"--n-color":ne,"--n-box-shadow":Q,"--n-icon-color-info":x,"--n-icon-color-success":_,"--n-icon-color-warning":C,"--n-icon-color-error":A,"--n-icon-color-loading":S,"--n-close-color-hover":L,"--n-close-color-pressed":le,"--n-close-icon-color":w,"--n-close-icon-color-pressed":D,"--n-close-icon-color-hover":q,"--n-line-height":k,"--n-border-radius":E}}),l=t?ft("message",F(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:r,rtlEnabled:i,messageProviderProps:n,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:n.placement}},render(){const{render:e,type:t,closable:o,content:n,mergedClsPrefix:r,cssVars:i,themeClass:a,onRender:s,icon:l,handleClose:c,showIcon:d}=this;s==null||s();let u;return b("div",{class:[`${r}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):b("div",{class:[`${r}-message ${r}-message--${t}-type`,this.rtlEnabled&&`${r}-message--rtl`]},(u=Z0(l,t,r))&&d?b("div",{class:`${r}-message__icon ${r}-message__icon--${t}-type`},b(_f,null,{default:()=>u})):null,b("div",{class:`${r}-message__content`},je(n)),o?b(Si,{clsPrefix:r,class:`${r}-message__close`,onClick:c,absolute:!0}):null))}});function Z0(e,t,o){if(typeof e=="function")return e();{const n=t==="loading"?b(Ef,{clsPrefix:o,strokeWidth:24,scale:.85}):X0[t]();return n?b(nn,{clsPrefix:o,key:t},{default:()=>n}):null}}const J0=se({name:"MessageEnvironment",props:Object.assign(Object.assign({},dd),{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);St(()=>{n()});function n(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function r(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&n()}function a(){const{onHide:d}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function s(){const{onClose:d}=e;d&&d(),a()}function l(){const{onAfterLeave:d,onInternalAfterLeave:u,onAfterHide:f,internalKey:h}=e;d&&d(),u&&u(h),f&&f()}function c(){a()}return{show:o,hide:a,handleClose:s,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:r,deactivate:c}},render(){return b(ys,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?b(Y0,{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]})}}),Q0=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]}),ex=se({name:"MessageProvider",props:Q0,setup(e){const{mergedClsPrefixRef:t}=Xe(e),o=B([]),n=B({}),r={create(l,c){return i(l,Object.assign({type:"default"},c))},info(l,c){return i(l,Object.assign(Object.assign({},c),{type:"info"}))},success(l,c){return i(l,Object.assign(Object.assign({},c),{type:"success"}))},warning(l,c){return i(l,Object.assign(Object.assign({},c),{type:"warning"}))},error(l,c){return i(l,Object.assign(Object.assign({},c),{type:"error"}))},loading(l,c){return i(l,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:s};ve(ud,{props:e,mergedClsPrefixRef:t}),ve(G0,r);function i(l,c){const d=Vn(),u=Zo(Object.assign(Object.assign({},c),{content:l,key:d,destroy:()=>{var h;(h=n.value[d])===null||h===void 0||h.hide()}})),{max:f}=e;return f&&o.value.length>=f&&o.value.shift(),o.value.push(u),u}function a(l){o.value.splice(o.value.findIndex(c=>c.key===l),1),delete n.value[l]}function s(){Object.values(n.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:n,messageList:o,handleAfterLeave:a},r)},render(){var e,t,o;return b(gt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?b(gi,{to:(o=this.to)!==null&&o!==void 0?o:"body"},b("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(n=>b(J0,Object.assign({ref:r=>{r&&(this.messageRefs[n.key]=r)},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave},Ei(n,["destroy"],void 0),{duration:n.duration===void 0?this.duration:n.duration,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover,closable:n.closable===void 0?this.closable:n.closable}))))):null)}}),tx={name:"QrCode",common:V,self:e=>({borderRadius:e.borderRadius})},ox={name:"Skeleton",common:V,self(e){const{heightSmall:t,heightMedium:o,heightLarge:n,borderRadius:r}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:r,heightSmall:t,heightMedium:o,heightLarge:n}}},nx={name:"Split",common:V},fd=ze("n-tabs"),rx={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]},ix=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Ei(rx,["displayDirective"])),Hn=se({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:ix,setup(e){const{mergedClsPrefixRef:t,valueRef:o,typeRef:n,closableRef:r,tabStyleRef:i,addTabStyleRef:a,tabClassRef:s,addTabClassRef:l,tabChangeIdRef:c,onBeforeLeaveRef:d,triggerRef:u,handleAdd:f,activateTab:h,handleClose:m}=me(fd);return{trigger:u,mergedClosable:F(()=>{if(e.internalAddable)return!1;const{closable:p}=e;return p===void 0?r.value:p}),style:i,addStyle:a,tabClass:s,addTabClass:l,clsPrefix:t,value:o,type:n,handleClose(p){p.stopPropagation(),!e.disabled&&m(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){f();return}const{name:p}=e,g=++c.id;if(p!==o.value){const{value:v}=d;v?Promise.resolve(v(e.name,o.value)).then(y=>{y&&c.id===g&&h(p)}):h(p)}}}},render(){const{internalAddable:e,clsPrefix:t,name:o,disabled:n,label:r,tab:i,value:a,mergedClosable:s,trigger:l,$slots:{default:c}}=this,d=r??i;return b("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?b("div",{class:`${t}-tabs-tab-pad`}):null,b("div",Object.assign({key:o,"data-name":o,"data-disabled":n?!0:void 0},xo({class:[`${t}-tabs-tab`,a===o&&`${t}-tabs-tab--active`,n&&`${t}-tabs-tab--disabled`,s&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:l==="click"?this.activateTab:void 0,onMouseenter:l==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),b("span",{class:`${t}-tabs-tab__label`},e?b(gt,null,b("div",{class:`${t}-tabs-tab__height-placeholder`}," "),b(nn,{clsPrefix:t},{default:()=>b(Bm,null)})):c?c():typeof d=="object"?d:je(d??o)),s&&this.type==="card"?b(Si,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:n}):null))}}),ax=T("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);
|
|
`,[N("segment-type",[T("tabs-rail",[K("&.transition-disabled",[T("tabs-capsule",`
|
|
transition: none;
|
|
`)])])]),N("top",[T("tab-pane",`
|
|
padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
|
|
`)]),N("left",[T("tab-pane",`
|
|
padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
|
|
`)]),N("left, right",`
|
|
flex-direction: row;
|
|
`,[T("tabs-bar",`
|
|
width: 2px;
|
|
right: 0;
|
|
transition:
|
|
top .2s var(--n-bezier),
|
|
max-height .2s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
`),T("tabs-tab",`
|
|
padding: var(--n-tab-padding-vertical);
|
|
`)]),N("right",`
|
|
flex-direction: row-reverse;
|
|
`,[T("tab-pane",`
|
|
padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
|
|
`),T("tabs-bar",`
|
|
left: 0;
|
|
`)]),N("bottom",`
|
|
flex-direction: column-reverse;
|
|
justify-content: flex-end;
|
|
`,[T("tab-pane",`
|
|
padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
|
|
`),T("tabs-bar",`
|
|
top: 0;
|
|
`)]),T("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;
|
|
`,[T("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);
|
|
`),T("tabs-tab-wrapper",`
|
|
flex-basis: 0;
|
|
flex-grow: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`,[T("tabs-tab",`
|
|
overflow: hidden;
|
|
border-radius: var(--n-tab-border-radius);
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`,[N("active",`
|
|
font-weight: var(--n-font-weight-strong);
|
|
color: var(--n-tab-text-color-active);
|
|
`),K("&:hover",`
|
|
color: var(--n-tab-text-color-hover);
|
|
`)])])]),N("flex",[T("tabs-nav",`
|
|
width: 100%;
|
|
position: relative;
|
|
`,[T("tabs-wrapper",`
|
|
width: 100%;
|
|
`,[T("tabs-tab",`
|
|
margin-right: 0;
|
|
`)])])]),T("tabs-nav",`
|
|
box-sizing: border-box;
|
|
line-height: 1.5;
|
|
display: flex;
|
|
transition: border-color .3s var(--n-bezier);
|
|
`,[j("prefix, suffix",`
|
|
display: flex;
|
|
align-items: center;
|
|
`),j("prefix","padding-right: 16px;"),j("suffix","padding-left: 16px;")]),N("top, bottom",[T("tabs-nav-scroll-wrapper",[K("&::before",`
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 20px;
|
|
`),K("&::after",`
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
width: 20px;
|
|
`),N("shadow-start",[K("&::before",`
|
|
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
`)]),N("shadow-end",[K("&::after",`
|
|
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
`)])])]),N("left, right",[T("tabs-nav-scroll-content",`
|
|
flex-direction: column;
|
|
`),T("tabs-nav-scroll-wrapper",[K("&::before",`
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 20px;
|
|
`),K("&::after",`
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 20px;
|
|
`),N("shadow-start",[K("&::before",`
|
|
box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
|
|
`)]),N("shadow-end",[K("&::after",`
|
|
box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
|
|
`)])])]),T("tabs-nav-scroll-wrapper",`
|
|
flex: 1;
|
|
position: relative;
|
|
overflow: hidden;
|
|
`,[T("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;
|
|
`)]),T("tabs-nav-scroll-content",`
|
|
display: flex;
|
|
position: relative;
|
|
min-width: 100%;
|
|
min-height: 100%;
|
|
width: fit-content;
|
|
box-sizing: border-box;
|
|
`),T("tabs-wrapper",`
|
|
display: inline-flex;
|
|
flex-wrap: nowrap;
|
|
position: relative;
|
|
`),T("tabs-tab-wrapper",`
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
`),T("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);
|
|
`,[N("disabled",{cursor:"not-allowed"}),j("close",`
|
|
margin-left: 6px;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`),j("label",`
|
|
display: flex;
|
|
align-items: center;
|
|
z-index: 1;
|
|
`)]),T("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;
|
|
`),N("disabled",`
|
|
background-color: var(--n-tab-text-color-disabled)
|
|
`)]),T("tabs-pane-wrapper",`
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: max-height .2s var(--n-bezier);
|
|
`),T("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;
|
|
`)]),T("tabs-tab-pad",`
|
|
box-sizing: border-box;
|
|
width: var(--n-tab-gap);
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
`),N("line-type, bar-type",[T("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)"}),N("active",`
|
|
color: var(--n-tab-text-color-active);
|
|
font-weight: var(--n-tab-font-weight-active);
|
|
`),N("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),T("tabs-nav",[N("line-type",[N("top",[j("prefix, suffix",`
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-nav-scroll-content",`
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-bar",`
|
|
bottom: -1px;
|
|
`)]),N("left",[j("prefix, suffix",`
|
|
border-right: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-nav-scroll-content",`
|
|
border-right: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-bar",`
|
|
right: -1px;
|
|
`)]),N("right",[j("prefix, suffix",`
|
|
border-left: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-nav-scroll-content",`
|
|
border-left: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-bar",`
|
|
left: -1px;
|
|
`)]),N("bottom",[j("prefix, suffix",`
|
|
border-top: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-nav-scroll-content",`
|
|
border-top: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-bar",`
|
|
top: -1px;
|
|
`)]),j("prefix, suffix",`
|
|
transition: border-color .3s var(--n-bezier);
|
|
`),T("tabs-nav-scroll-content",`
|
|
transition: border-color .3s var(--n-bezier);
|
|
`),T("tabs-bar",`
|
|
border-radius: 0;
|
|
`)]),N("card-type",[j("prefix, suffix",`
|
|
transition: border-color .3s var(--n-bezier);
|
|
`),T("tabs-pad",`
|
|
flex-grow: 1;
|
|
transition: border-color .3s var(--n-bezier);
|
|
`),T("tabs-tab-pad",`
|
|
transition: border-color .3s var(--n-bezier);
|
|
`),T("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);
|
|
`,[N("addable",`
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
font-size: 16px;
|
|
justify-content: center;
|
|
`,[j("height-placeholder",`
|
|
width: 0;
|
|
font-size: var(--n-tab-font-size);
|
|
`),lt("disabled",[K("&:hover",`
|
|
color: var(--n-tab-text-color-hover);
|
|
`)])]),N("closable","padding-right: 8px;"),N("active",`
|
|
background-color: #0000;
|
|
font-weight: var(--n-tab-font-weight-active);
|
|
color: var(--n-tab-text-color-active);
|
|
`),N("disabled","color: var(--n-tab-text-color-disabled);")])]),N("left, right",`
|
|
flex-direction: column;
|
|
`,[j("prefix, suffix",`
|
|
padding: var(--n-tab-padding-vertical);
|
|
`),T("tabs-wrapper",`
|
|
flex-direction: column;
|
|
`),T("tabs-tab-wrapper",`
|
|
flex-direction: column;
|
|
`,[T("tabs-tab-pad",`
|
|
height: var(--n-tab-gap-vertical);
|
|
width: 100%;
|
|
`)])]),N("top",[N("card-type",[T("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);"),j("prefix, suffix",`
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-tab",`
|
|
border-top-left-radius: var(--n-tab-border-radius);
|
|
border-top-right-radius: var(--n-tab-border-radius);
|
|
`,[N("active",`
|
|
border-bottom: 1px solid #0000;
|
|
`)]),T("tabs-tab-pad",`
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-pad",`
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`)])]),N("left",[N("card-type",[T("tabs-scroll-padding","border-right: 1px solid var(--n-tab-border-color);"),j("prefix, suffix",`
|
|
border-right: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-tab",`
|
|
border-top-left-radius: var(--n-tab-border-radius);
|
|
border-bottom-left-radius: var(--n-tab-border-radius);
|
|
`,[N("active",`
|
|
border-right: 1px solid #0000;
|
|
`)]),T("tabs-tab-pad",`
|
|
border-right: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-pad",`
|
|
border-right: 1px solid var(--n-tab-border-color);
|
|
`)])]),N("right",[N("card-type",[T("tabs-scroll-padding","border-left: 1px solid var(--n-tab-border-color);"),j("prefix, suffix",`
|
|
border-left: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-tab",`
|
|
border-top-right-radius: var(--n-tab-border-radius);
|
|
border-bottom-right-radius: var(--n-tab-border-radius);
|
|
`,[N("active",`
|
|
border-left: 1px solid #0000;
|
|
`)]),T("tabs-tab-pad",`
|
|
border-left: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-pad",`
|
|
border-left: 1px solid var(--n-tab-border-color);
|
|
`)])]),N("bottom",[N("card-type",[T("tabs-scroll-padding","border-top: 1px solid var(--n-tab-border-color);"),j("prefix, suffix",`
|
|
border-top: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-tab",`
|
|
border-bottom-left-radius: var(--n-tab-border-radius);
|
|
border-bottom-right-radius: var(--n-tab-border-radius);
|
|
`,[N("active",`
|
|
border-top: 1px solid #0000;
|
|
`)]),T("tabs-tab-pad",`
|
|
border-top: 1px solid var(--n-tab-border-color);
|
|
`),T("tabs-pad",`
|
|
border-top: 1px solid var(--n-tab-border-color);
|
|
`)])])])]),lx=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]}),sx=se({name:"Tabs",props:lx,setup(e,{slots:t}){var o,n,r,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:s}=Xe(e),l=Re("Tabs","-tabs",ax,Jb,e,a),c=B(null),d=B(null),u=B(null),f=B(null),h=B(null),m=B(null),p=B(!0),g=B(!0),v=Mn(e,["labelSize","size"]),y=Mn(e,["activeName","value"]),k=B((n=(o=y.value)!==null&&o!==void 0?o:e.defaultValue)!==null&&n!==void 0?n:t.default?(i=(r=lo(t.default())[0])===null||r===void 0?void 0:r.props)===null||i===void 0?void 0:i.name:null),E=fo(y,k),x={id:0},_=F(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});Be(E,()=>{x.id=0,z(),O()});function C(){var W;const{value:H}=E;return H===null?null:(W=c.value)===null||W===void 0?void 0:W.querySelector(`[data-name="${H}"]`)}function A(W){if(e.type==="card")return;const{value:H}=d;if(!H)return;const X=H.style.opacity==="0";if(W){const fe=`${a.value}-tabs-bar--disabled`,{barWidth:Ee,placement:Ke}=e;if(W.dataset.disabled==="true"?H.classList.add(fe):H.classList.remove(fe),["top","bottom"].includes(Ke)){if(R(["top","maxHeight","height"]),typeof Ee=="number"&&W.offsetWidth>=Ee){const Ge=Math.floor((W.offsetWidth-Ee)/2)+W.offsetLeft;H.style.left=`${Ge}px`,H.style.maxWidth=`${Ee}px`}else H.style.left=`${W.offsetLeft}px`,H.style.maxWidth=`${W.offsetWidth}px`;H.style.width="8192px",X&&(H.style.transition="none"),H.offsetWidth,X&&(H.style.transition="",H.style.opacity="1")}else{if(R(["left","maxWidth","width"]),typeof Ee=="number"&&W.offsetHeight>=Ee){const Ge=Math.floor((W.offsetHeight-Ee)/2)+W.offsetTop;H.style.top=`${Ge}px`,H.style.maxHeight=`${Ee}px`}else H.style.top=`${W.offsetTop}px`,H.style.maxHeight=`${W.offsetHeight}px`;H.style.height="8192px",X&&(H.style.transition="none"),H.offsetHeight,X&&(H.style.transition="",H.style.opacity="1")}}}function S(){if(e.type==="card")return;const{value:W}=d;W&&(W.style.opacity="0")}function R(W){const{value:H}=d;if(H)for(const X of W)H.style[X]=""}function z(){if(e.type==="card")return;const W=C();W?A(W):S()}function O(){var W;const H=(W=h.value)===null||W===void 0?void 0:W.$el;if(!H)return;const X=C();if(!X)return;const{scrollLeft:fe,offsetWidth:Ee}=H,{offsetLeft:Ke,offsetWidth:Ge}=X;fe>Ke?H.scrollTo({top:0,left:Ke,behavior:"smooth"}):Ke+Ge>fe+Ee&&H.scrollTo({top:0,left:Ke+Ge-Ee,behavior:"smooth"})}const Q=B(null);let ne=0,L=null;function le(W){const H=Q.value;if(H){ne=W.getBoundingClientRect().height;const X=`${ne}px`,fe=()=>{H.style.height=X,H.style.maxHeight=X};L?(fe(),L(),L=null):L=fe}}function w(W){const H=Q.value;if(H){const X=W.getBoundingClientRect().height,fe=()=>{document.body.offsetHeight,H.style.maxHeight=`${X}px`,H.style.height=`${Math.max(ne,X)}px`};L?(L(),L=null,fe()):L=fe}}function D(){const W=Q.value;if(W){W.style.maxHeight="",W.style.height="";const{paneWrapperStyle:H}=e;if(typeof H=="string")W.style.cssText=H;else if(H){const{maxHeight:X,height:fe}=H;X!==void 0&&(W.style.maxHeight=X),fe!==void 0&&(W.style.height=fe)}}}const q={value:[]},te=B("next");function U(W){const H=E.value;let X="next";for(const fe of q.value){if(fe===H)break;if(fe===W){X="prev";break}}te.value=X,oe(W)}function oe(W){const{onActiveNameChange:H,onUpdateValue:X,"onUpdate:value":fe}=e;H&&$e(H,W),X&&$e(X,W),fe&&$e(fe,W),k.value=W}function M(W){const{onClose:H}=e;H&&$e(H,W)}function ae(){const{value:W}=d;if(!W)return;const H="transition-disabled";W.classList.add(H),z(),W.classList.remove(H)}const ce=B(null);function ke({transitionDisabled:W}){const H=c.value;if(!H)return;W&&H.classList.add("transition-disabled");const X=C();X&&ce.value&&(ce.value.style.width=`${X.offsetWidth}px`,ce.value.style.height=`${X.offsetHeight}px`,ce.value.style.transform=`translateX(${X.offsetLeft-Pf(getComputedStyle(H).paddingLeft)}px)`,W&&ce.value.offsetWidth),W&&H.classList.remove("transition-disabled")}Be([E],()=>{e.type==="segment"&&qe(()=>{ke({transitionDisabled:!1})})}),St(()=>{e.type==="segment"&&ke({transitionDisabled:!0})});let $=0;function Z(W){var H;if(W.contentRect.width===0&&W.contentRect.height===0||$===W.contentRect.width)return;$=W.contentRect.width;const{type:X}=e;if((X==="line"||X==="bar")&&ae(),X!=="segment"){const{placement:fe}=e;ue((fe==="top"||fe==="bottom"?(H=h.value)===null||H===void 0?void 0:H.$el:m.value)||null)}}const P=wr(Z,64);Be([()=>e.justifyContent,()=>e.size],()=>{qe(()=>{const{type:W}=e;(W==="line"||W==="bar")&&ae()})});const Y=B(!1);function we(W){var H;const{target:X,contentRect:{width:fe,height:Ee}}=W,Ke=X.parentElement.parentElement.offsetWidth,Ge=X.parentElement.parentElement.offsetHeight,{placement:G}=e;if(!Y.value)G==="top"||G==="bottom"?Ke<fe&&(Y.value=!0):Ge<Ee&&(Y.value=!0);else{const{value:re}=f;if(!re)return;G==="top"||G==="bottom"?Ke-fe>re.$el.offsetWidth&&(Y.value=!1):Ge-Ee>re.$el.offsetHeight&&(Y.value=!1)}ue(((H=h.value)===null||H===void 0?void 0:H.$el)||null)}const Ie=wr(we,64);function ge(){const{onAdd:W}=e;W&&W(),qe(()=>{const H=C(),{value:X}=h;!H||!X||X.scrollTo({left:H.offsetLeft,top:0,behavior:"smooth"})})}function ue(W){if(!W)return;const{placement:H}=e;if(H==="top"||H==="bottom"){const{scrollLeft:X,scrollWidth:fe,offsetWidth:Ee}=W;p.value=X<=0,g.value=X+Ee>=fe}else{const{scrollTop:X,scrollHeight:fe,offsetHeight:Ee}=W;p.value=X<=0,g.value=X+Ee>=fe}}const Ae=wr(W=>{ue(W.target)},64);ve(fd,{triggerRef:be(e,"trigger"),tabStyleRef:be(e,"tabStyle"),tabClassRef:be(e,"tabClass"),addTabStyleRef:be(e,"addTabStyle"),addTabClassRef:be(e,"addTabClass"),paneClassRef:be(e,"paneClass"),paneStyleRef:be(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:be(e,"type"),closableRef:be(e,"closable"),valueRef:E,tabChangeIdRef:x,onBeforeLeaveRef:be(e,"onBeforeLeave"),activateTab:U,handleClose:M,handleAdd:ge}),Ti(()=>{z(),O()}),wt(()=>{const{value:W}=u;if(!W)return;const{value:H}=a,X=`${H}-tabs-nav-scroll-wrapper--shadow-start`,fe=`${H}-tabs-nav-scroll-wrapper--shadow-end`;p.value?W.classList.remove(X):W.classList.add(X),g.value?W.classList.remove(fe):W.classList.add(fe)});const De={syncBarPosition:()=>{z()}},Ne=()=>{ke({transitionDisabled:!0})},Jt=F(()=>{const{value:W}=v,{type:H}=e,X={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[H],fe=`${W}${X}`,{self:{barColor:Ee,closeIconColor:Ke,closeIconColorHover:Ge,closeIconColorPressed:G,tabColor:re,tabBorderColor:pe,paneTextColor:Ce,tabFontWeight:Fe,tabBorderRadius:ct,tabFontWeightActive:dr,colorSegment:ur,fontWeightStrong:ku,tabColorSegment:Tu,closeSize:Ru,closeIconSize:Ou,closeColorHover:$u,closeColorPressed:Iu,closeBorderRadius:Au,[Oe("panePadding",W)]:dn,[Oe("tabPadding",fe)]:zu,[Oe("tabPaddingVertical",fe)]:Mu,[Oe("tabGap",fe)]:Lu,[Oe("tabGap",`${fe}Vertical`)]:Bu,[Oe("tabTextColor",H)]:Hu,[Oe("tabTextColorActive",H)]:Du,[Oe("tabTextColorHover",H)]:Nu,[Oe("tabTextColorDisabled",H)]:Fu,[Oe("tabFontSize",W)]:ju},common:{cubicBezierEaseInOut:Wu}}=l.value;return{"--n-bezier":Wu,"--n-color-segment":ur,"--n-bar-color":Ee,"--n-tab-font-size":ju,"--n-tab-text-color":Hu,"--n-tab-text-color-active":Du,"--n-tab-text-color-disabled":Fu,"--n-tab-text-color-hover":Nu,"--n-pane-text-color":Ce,"--n-tab-border-color":pe,"--n-tab-border-radius":ct,"--n-close-size":Ru,"--n-close-icon-size":Ou,"--n-close-color-hover":$u,"--n-close-color-pressed":Iu,"--n-close-border-radius":Au,"--n-close-icon-color":Ke,"--n-close-icon-color-hover":Ge,"--n-close-icon-color-pressed":G,"--n-tab-color":re,"--n-tab-font-weight":Fe,"--n-tab-font-weight-active":dr,"--n-tab-padding":zu,"--n-tab-padding-vertical":Mu,"--n-tab-gap":Lu,"--n-tab-gap-vertical":Bu,"--n-pane-padding-left":Oo(dn,"left"),"--n-pane-padding-right":Oo(dn,"right"),"--n-pane-padding-top":Oo(dn,"top"),"--n-pane-padding-bottom":Oo(dn,"bottom"),"--n-font-weight-strong":ku,"--n-tab-color-segment":Tu}}),de=s?ft("tabs",F(()=>`${v.value[0]}${e.type[0]}`),Jt,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:E,renderedNames:new Set,segmentCapsuleElRef:ce,tabsPaneWrapperRef:Q,tabsElRef:c,barElRef:d,addTabInstRef:f,xScrollInstRef:h,scrollWrapperElRef:u,addTabFixed:Y,tabWrapperStyle:_,handleNavResize:P,mergedSize:v,handleScroll:Ae,handleTabsResize:Ie,cssVars:s?void 0:Jt,themeClass:de==null?void 0:de.themeClass,animationDirection:te,renderNameListRef:q,yScrollElRef:m,handleSegmentResize:Ne,onAnimationBeforeLeave:le,onAnimationEnter:w,onAnimationAfterEnter:D,onRender:de==null?void 0:de.onRender},De)},render(){const{mergedClsPrefix:e,type:t,placement:o,addTabFixed:n,addable:r,mergedSize:i,renderNameListRef:a,onRender:s,paneWrapperClass:l,paneWrapperStyle:c,$slots:{default:d,prefix:u,suffix:f}}=this;s==null||s();const h=d?lo(d()).filter(x=>x.type.__TAB_PANE__===!0):[],m=d?lo(d()).filter(x=>x.type.__TAB__===!0):[],p=!m.length,g=t==="card",v=t==="segment",y=!g&&!v&&this.justifyContent;a.value=[];const k=()=>{const x=b("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},y?null:b("div",{class:`${e}-tabs-scroll-padding`,style:o==="top"||o==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),p?h.map((_,C)=>(a.value.push(_.props.name),kr(b(Hn,Object.assign({},_.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0&&(!y||y==="center"||y==="start"||y==="end")}),_.children?{default:_.children.tab}:void 0)))):m.map((_,C)=>(a.value.push(_.props.name),kr(C!==0&&!y?al(_):_))),!n&&r&&g?il(r,(p?h.length:m.length)!==0):null,y?null:b("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return b("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},g&&r?b(Sn,{onResize:this.handleTabsResize},{default:()=>x}):x,g?b("div",{class:`${e}-tabs-pad`}):null,g?null:b("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},E=v?"top":o;return b("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,y&&`${e}-tabs--flex`,`${e}-tabs--${E}`],style:this.cssVars},b("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${E}`,`${e}-tabs-nav`]},At(u,x=>x&&b("div",{class:`${e}-tabs-nav__prefix`},x)),v?b(Sn,{onResize:this.handleSegmentResize},{default:()=>b("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},b("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},b("div",{class:`${e}-tabs-wrapper`},b("div",{class:`${e}-tabs-tab`}))),p?h.map((x,_)=>(a.value.push(x.props.name),b(Hn,Object.assign({},x.props,{internalCreatedByPane:!0,internalLeftPadded:_!==0}),x.children?{default:x.children.tab}:void 0))):m.map((x,_)=>(a.value.push(x.props.name),_===0?x:al(x))))}):b(Sn,{onResize:this.handleNavResize},{default:()=>b("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(E)?b(hh,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:k}):b("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},k()))}),n&&r&&g?il(r,!0):null,At(f,x=>x&&b("div",{class:`${e}-tabs-nav__suffix`},x))),p&&(this.animated&&(E==="top"||E==="bottom")?b("div",{ref:"tabsPaneWrapperRef",style:c,class:[`${e}-tabs-pane-wrapper`,l]},rl(h,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):rl(h,this.mergedValue,this.renderedNames)))}});function rl(e,t,o,n,r,i,a){const s=[];return e.forEach(l=>{const{name:c,displayDirective:d,"display-directive":u}=l.props,f=m=>d===m||u===m,h=t===c;if(l.key!==void 0&&(l.key=c),h||f("show")||f("show:lazy")&&o.has(c)){o.has(c)||o.add(c);const m=!f("if");s.push(m?Ct(l,[[Uo,h]]):l)}}),a?b(kf,{name:`${a}-transition`,onBeforeLeave:n,onEnter:r,onAfterEnter:i},{default:()=>s}):s}function il(e,t){return b(Hn,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function al(e){const t=wi(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function kr(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const cx=K([T("watermark-container",`
|
|
position: relative;
|
|
`,[lt("selectable",`
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
`),N("global-rotate",`
|
|
overflow: hidden;
|
|
`),N("fullscreen",`
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
position: fixed;
|
|
`)]),T("watermark",`
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
background-repeat: repeat;
|
|
`,[N("fullscreen",`
|
|
position: fixed;
|
|
`),N("global-rotate",`
|
|
position: absolute;
|
|
height: max(284vh, 284vw);
|
|
width: max(284vh, 284vw);
|
|
`)])]);function dx(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 ux=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}}),fx=se({name:"Watermark",props:ux,setup(e,{slots:t}){const{mergedClsPrefixRef:o}=Xe(e),n=Re("Watermark","-watermark",cx,u0,e,o),r=B(""),i=us?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,s=B(!1);return Ti(()=>s.value=!0),wt(()=>{if(!i)return;s.value;const l=dx(a),{xGap:c,yGap:d,width:u,height:f,yOffset:h,xOffset:m,rotate:p,image:g,content:v,fontColor:y,fontStyle:k,fontVariant:E,fontStretch:x,fontWeight:_,fontFamily:C,fontSize:A,lineHeight:S,debug:R}=e,z=(c+u)*l,O=(d+f)*l,Q=m*l,ne=h*l;if(i.width=z,i.height=O,a){a.translate(0,0);const L=u*l,le=f*l;if(R&&(a.strokeStyle="grey",a.strokeRect(0,0,L,le)),a.rotate(p*(Math.PI/180)),g){const w=new Image;w.crossOrigin="anonymous",w.referrerPolicy="no-referrer",w.src=g,w.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:D,imageHeight:q}=e;a.drawImage(w,Q,ne,(e.imageWidth||(q?w.width*q/w.height:w.width))*l,(e.imageHeight||(D?w.height*D/w.width:w.height))*l),r.value=i.toDataURL()}}else if(v){R&&(a.strokeStyle="green",a.strokeRect(0,0,L,le)),a.font=`${k} ${E} ${_} ${x} ${A*l}px/${S*l}px ${C||n.value.self.fontFamily}`,a.fillStyle=y;let w=0;const{textAlign:D}=e;v.split(`
|
|
`).map(q=>{const te=a.measureText(q).width;return w=Math.max(w,te),{width:te,line:q}}).forEach(({line:q,width:te},U)=>{const oe=D==="left"?0:D==="center"?(w-te)/2:w-te;a.fillText(q,Q+oe,ne+S*l*(U+1))}),r.value=i.toDataURL()}else v||(a.clearRect(0,0,i.width,i.height),r.value=i.toDataURL())}else Tf("watermark","Canvas is not supported in the browser.")}),()=>{var l;const{globalRotate:c,fullscreen:d,zIndex:u}=e,f=o.value,h=c!==0&&d,m="max(142vh, 142vw)",p=b("div",{class:[`${f}-watermark`,c!==0&&`${f}-watermark--global-rotate`,d&&`${f}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:h?void 0:u,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${m} + ${e.width/2}px) calc(${m} + ${e.height/2}px), ${m} ${m}`:m,backgroundImage:e.cross?`url(${r.value}), url(${r.value})`:`url(${r.value})`}});return e.fullscreen&&!c?p:b("div",{class:[`${f}-watermark-container`,c!==0&&`${f}-watermark-container--global-rotate`,d&&`${f}-watermark-container--fullscreen`,e.selectable&&`${f}-watermark-container--selectable`],style:{zIndex:h?u:void 0}},(l=t.default)===null||l===void 0?void 0:l.call(t),p)}}}),hx=()=>({}),px={name:"Equation",common:V,self:hx},mx={name:"FloatButtonGroup",common:V,self(e){const{popoverColor:t,dividerColor:o,borderRadius:n}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},gx={name:"dark",common:V,Alert:_g,Anchor:Rg,AutoComplete:Og,Avatar:fc,AvatarGroup:Ig,BackTop:zg,Badge:Mg,Breadcrumb:Hg,Button:ot,ButtonGroup:hb,Calendar:Fg,Card:hc,Carousel:Ug,Cascader:Xg,Checkbox:Co,Code:mc,Collapse:Zg,CollapseTransition:Qg,ColorPicker:Wg,DataTable:hv,DatePicker:Ov,Descriptions:Av,Dialog:Lc,Divider:Xv,Drawer:Zv,Dropdown:ji,DynamicInput:Qv,DynamicTags:tb,Element:ob,Empty:Xt,Ellipsis:wc,Equation:px,Flex:rb,Form:ab,GradientText:pb,Icon:gv,IconWrapper:g0,Image:v0,Input:st,InputNumber:mb,LegacyTransfer:$0,Layout:gb,List:bb,LoadingBar:xb,Log:wb,Menu:Pb,Mention:Sb,Message:fb,Modal:Nv,Notification:cb,PageHeader:Rb,Pagination:yc,Popconfirm:Ib,Popover:Yt,Popselect:gc,Progress:Xc,QrCode:tx,Radio:_c,Rate:zb,Result:Bb,Row:f0,Scrollbar:tt,Select:bc,Skeleton:ox,Slider:Db,Space:Wc,Spin:Fb,Statistic:Wb,Steps:Kb,Switch:qb,Table:Yb,Tabs:Qb,Tag:lc,Thing:e0,TimePicker:Ic,Timeline:o0,Tooltip:er,Transfer:r0,Tree:Qc,TreeSelect:a0,Typography:s0,Upload:c0,Watermark:d0,Split:nx,FloatButton:h0,FloatButtonGroup:mx};var hd={};Object.defineProperty(hd,"__esModule",{value:!0});const Ft=et,vx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},bx=(0,Ft.createElementVNode)("path",{d:"M28 16v6H4V6h11V4H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8v4H8v2h16v-2h-4v-4h8a2 2 0 0 0 2-2v-6zM18 28h-4v-4h4z",fill:"currentColor"},null,-1),xx=(0,Ft.createElementVNode)("path",{d:"M18 4h12v2H18z",fill:"currentColor"},null,-1),yx=(0,Ft.createElementVNode)("path",{d:"M18 8h12v2H18z",fill:"currentColor"},null,-1),Cx=(0,Ft.createElementVNode)("path",{d:"M18 12h6v2h-6z",fill:"currentColor"},null,-1),wx=[bx,xx,yx,Cx];var Sx=hd.default=(0,Ft.defineComponent)({name:"CloudLogging",render:function(t,o){return(0,Ft.openBlock)(),(0,Ft.createElementBlock)("svg",vx,wx)}}),pd={};Object.defineProperty(pd,"__esModule",{value:!0});const co=et,_x={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},Ex=(0,co.createElementVNode)("path",{d:"M30 30h-8V4h8z",fill:"currentColor"},null,-1),Px=(0,co.createElementVNode)("path",{d:"M20 30h-8V12h8z",fill:"currentColor"},null,-1),kx=(0,co.createElementVNode)("path",{d:"M10 30H2V18h8z",fill:"currentColor"},null,-1),Tx=[Ex,Px,kx];var Rx=pd.default=(0,co.defineComponent)({name:"SkillLevelAdvanced",render:function(t,o){return(0,co.openBlock)(),(0,co.createElementBlock)("svg",_x,Tx)}}),md={};Object.defineProperty(md,"__esModule",{value:!0});const En=et,Ox={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 640 512"},$x=(0,En.createElementVNode)("path",{d:"M640 51.2l-.3 12.2c-28.1.8-45 15.8-55.8 40.3c-25 57.8-103.3 240-155.3 358.6H415l-81.9-193.1c-32.5 63.6-68.3 130-99.2 193.1c-.3.3-15 0-15-.3C172 352.3 122.8 243.4 75.8 133.4C64.4 106.7 26.4 63.4.2 63.7c0-3.1-.3-10-.3-14.2h161.9v13.9c-19.2 1.1-52.8 13.3-43.3 34.2c21.9 49.7 103.6 240.3 125.6 288.6c15-29.7 57.8-109.2 75.3-142.8c-13.9-28.3-58.6-133.9-72.8-160c-9.7-17.8-36.1-19.4-55.8-19.7V49.8l142.5.3v13.1c-19.4.6-38.1 7.8-29.4 26.1c18.9 40 30.6 68.1 48.1 104.7c5.6-10.8 34.7-69.4 48.1-100.8c8.9-20.6-3.9-28.6-38.6-29.4c.3-3.6 0-10.3.3-13.6c44.4-.3 111.1-.3 123.1-.6v13.6c-22.5.8-45.8 12.8-58.1 31.7l-59.2 122.8c6.4 16.1 63.3 142.8 69.2 156.7L559.2 91.8c-8.6-23.1-36.4-28.1-47.2-28.3V49.6l127.8 1.1l.2.5z",fill:"currentColor"},null,-1),Ix=[$x];var Ax=md.default=(0,En.defineComponent)({name:"WikipediaW",render:function(t,o){return(0,En.openBlock)(),(0,En.createElementBlock)("svg",Ox,Ix)}}),gd={};Object.defineProperty(gd,"__esModule",{value:!0});const Pn=et,zx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Mx=(0,Pn.createElementVNode)("path",{d:"M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36l-67.88-11.31l-11.31-67.88l74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16c-47.38-11.74-99.55.91-136.58 37.93c-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5c24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22c37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24c0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z",fill:"currentColor"},null,-1),Lx=[Mx];var Bx=gd.default=(0,Pn.defineComponent)({name:"Wrench",render:function(t,o){return(0,Pn.openBlock)(),(0,Pn.createElementBlock)("svg",zx,Lx)}}),vd={};Object.defineProperty(vd,"__esModule",{value:!0});const kn=et,Hx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Dx=(0,kn.createElementVNode)("path",{d:"M454.65 169.4A31.82 31.82 0 0 0 432 160h-64v-16a112 112 0 0 0-224 0v16H80a32 32 0 0 0-32 32v216c0 39 33 72 72 72h272a72.22 72.22 0 0 0 50.48-20.55a69.48 69.48 0 0 0 21.52-50.2V192a31.75 31.75 0 0 0-9.35-22.6zM176 144a80 80 0 0 1 160 0v16H176z",fill:"currentColor"},null,-1),Nx=[Dx];var ll=vd.default=(0,kn.defineComponent)({name:"Bag",render:function(t,o){return(0,kn.openBlock)(),(0,kn.createElementBlock)("svg",Hx,Nx)}}),bd={};Object.defineProperty(bd,"__esModule",{value:!0});const jt=et,Fx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},jx=(0,jt.createElementVNode)("path",{d:"M480 496H48a32 32 0 0 1-32-32V32a16 16 0 0 1 32 0v432h432a16 16 0 0 1 0 32z",fill:"currentColor"},null,-1),Wx=(0,jt.createElementVNode)("path",{d:"M156 432h-40a36 36 0 0 1-36-36V244a36 36 0 0 1 36-36h40a36 36 0 0 1 36 36v152a36 36 0 0 1-36 36z",fill:"currentColor"},null,-1),Vx=(0,jt.createElementVNode)("path",{d:"M300 432h-40a36 36 0 0 1-36-36V196a36 36 0 0 1 36-36h40a36 36 0 0 1 36 36v200a36 36 0 0 1-36 36z",fill:"currentColor"},null,-1),Ux=(0,jt.createElementVNode)("path",{d:"M443.64 432h-40a36 36 0 0 1-36-36V132a36 36 0 0 1 36-36h40a36 36 0 0 1 36 36v264a36 36 0 0 1-36 36z",fill:"currentColor"},null,-1),Kx=[jx,Wx,Vx,Ux];var Gx=bd.default=(0,jt.defineComponent)({name:"BarChart",render:function(t,o){return(0,jt.openBlock)(),(0,jt.createElementBlock)("svg",Fx,Kx)}}),xd={};Object.defineProperty(xd,"__esModule",{value:!0});const Mo=et,qx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Xx=(0,Mo.createElementVNode)("path",{d:"M256 160c16-63.16 76.43-95.41 208-96a15.94 15.94 0 0 1 16 16v288a16 16 0 0 1-16 16c-128 0-177.45 25.81-208 64c-30.37-38-80-64-208-64c-9.88 0-16-8.05-16-17.93V80a15.94 15.94 0 0 1 16-16c131.57.59 192 32.84 208 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Yx=(0,Mo.createElementVNode)("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 160v288"},null,-1),Zx=[Xx,Yx];var sl=xd.default=(0,Mo.defineComponent)({name:"BookOutline",render:function(t,o){return(0,Mo.openBlock)(),(0,Mo.createElementBlock)("svg",qx,Zx)}}),yd={};Object.defineProperty(yd,"__esModule",{value:!0});const Tn=et,Jx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Qx=(0,Tn.createElementVNode)("path",{d:"M256 64C150 64 64 150 64 256s86 192 192 192s192-86 192-192S362 64 256 64zm-6 304a20 20 0 1 1 20-20a20 20 0 0 1-20 20zm33.44-102C267.23 276.88 265 286.85 265 296a14 14 0 0 1-28 0c0-21.91 10.08-39.33 30.82-53.26C287.1 229.8 298 221.6 298 203.57c0-12.26-7-21.57-21.49-28.46c-3.41-1.62-11-3.2-20.34-3.09c-11.72.15-20.82 2.95-27.83 8.59C215.12 191.25 214 202.83 214 203a14 14 0 1 1-28-1.35c.11-2.43 1.8-24.32 24.77-42.8c11.91-9.58 27.06-14.56 45-14.78c12.7-.15 24.63 2 32.72 5.82C312.7 161.34 326 180.43 326 203.57c0 33.83-22.61 49.02-42.56 62.43z",fill:"currentColor"},null,-1),ey=[Qx];var cl=yd.default=(0,Tn.defineComponent)({name:"HelpCircle",render:function(t,o){return(0,Tn.openBlock)(),(0,Tn.createElementBlock)("svg",Jx,ey)}}),Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});const Lo=et,ty={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},oy=(0,Lo.createElementVNode)("path",{d:"M261.56 101.28a8 8 0 0 0-11.06 0L66.4 277.15a8 8 0 0 0-2.47 5.79L63.9 448a32 32 0 0 0 32 32H192a16 16 0 0 0 16-16V328a8 8 0 0 1 8-8h80a8 8 0 0 1 8 8v136a16 16 0 0 0 16 16h96.06a32 32 0 0 0 32-32V282.94a8 8 0 0 0-2.47-5.79z",fill:"currentColor"},null,-1),ny=(0,Lo.createElementVNode)("path",{d:"M490.91 244.15l-74.8-71.56V64a16 16 0 0 0-16-16h-48a16 16 0 0 0-16 16v32l-57.92-55.38C272.77 35.14 264.71 32 256 32c-8.68 0-16.72 3.14-22.14 8.63l-212.7 203.5c-6.22 6-7 15.87-1.34 22.37A16 16 0 0 0 43 267.56L250.5 69.28a8 8 0 0 1 11.06 0l207.52 198.28a16 16 0 0 0 22.59-.44c6.14-6.36 5.63-16.86-.76-22.97z",fill:"currentColor"},null,-1),ry=[oy,ny];var dl=Cd.default=(0,Lo.defineComponent)({name:"Home",render:function(t,o){return(0,Lo.openBlock)(),(0,Lo.createElementBlock)("svg",ty,ry)}}),wd={};Object.defineProperty(wd,"__esModule",{value:!0});const Bo=et,iy={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ay=(0,Bo.createElementVNode)("path",{d:"M66.1 357a16 16 0 0 1-14.61-9.46A224 224 0 0 1 256 32a16 16 0 0 1 16 16v208a16 16 0 0 1-9.47 14.61l-189.9 84.95A15.93 15.93 0 0 1 66.1 357z",fill:"currentColor"},null,-1),ly=(0,Bo.createElementVNode)("path",{d:"M313.59 68.18A8 8 0 0 0 304 76v180a48.07 48.07 0 0 1-28.4 43.82L103.13 377a8 8 0 0 0-3.35 11.81a208.42 208.42 0 0 0 48.46 50.41A206.32 206.32 0 0 0 272 480c114.69 0 208-93.31 208-208c0-100.45-71.58-184.5-166.41-203.82z",fill:"currentColor"},null,-1),sy=[ay,ly];var cy=wd.default=(0,Bo.defineComponent)({name:"PieChart",render:function(t,o){return(0,Bo.openBlock)(),(0,Bo.createElementBlock)("svg",iy,sy)}}),Sd={};Object.defineProperty(Sd,"__esModule",{value:!0});const Wt=et,dy={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},uy=(0,Wt.createElementVNode)("rect",{x:"96",y:"48",width:"320",height:"416",rx:"48",ry:"48",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1),fy=(0,Wt.createElementVNode)("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 128h160"},null,-1),hy=(0,Wt.createElementVNode)("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 208h160"},null,-1),py=(0,Wt.createElementVNode)("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 288h80"},null,-1),my=[uy,fy,hy,py];var gy=Sd.default=(0,Wt.defineComponent)({name:"ReaderOutline",render:function(t,o){return(0,Wt.openBlock)(),(0,Wt.createElementBlock)("svg",dy,my)}}),_d={};Object.defineProperty(_d,"__esModule",{value:!0});const Ho=et,vy={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},by=(0,Ho.createElementVNode)("circle",{cx:"256",cy:"256",r:"48",fill:"currentColor"},null,-1),xy=(0,Ho.createElementVNode)("path",{d:"M470.39 300l-.47-.38l-31.56-24.75a16.11 16.11 0 0 1-6.1-13.33v-11.56a16 16 0 0 1 6.11-13.22L469.92 212l.47-.38a26.68 26.68 0 0 0 5.9-34.06l-42.71-73.9a1.59 1.59 0 0 1-.13-.22A26.86 26.86 0 0 0 401 92.14l-.35.13l-37.1 14.93a15.94 15.94 0 0 1-14.47-1.29q-4.92-3.1-10-5.86a15.94 15.94 0 0 1-8.19-11.82l-5.59-39.59l-.12-.72A27.22 27.22 0 0 0 298.76 26h-85.52a26.92 26.92 0 0 0-26.45 22.39l-.09.56l-5.57 39.67a16 16 0 0 1-8.13 11.82a175.21 175.21 0 0 0-10 5.82a15.92 15.92 0 0 1-14.43 1.27l-37.13-15l-.35-.14a26.87 26.87 0 0 0-32.48 11.34l-.13.22l-42.77 73.95a26.71 26.71 0 0 0 5.9 34.1l.47.38l31.56 24.75a16.11 16.11 0 0 1 6.1 13.33v11.56a16 16 0 0 1-6.11 13.22L42.08 300l-.47.38a26.68 26.68 0 0 0-5.9 34.06l42.71 73.9a1.59 1.59 0 0 1 .13.22a26.86 26.86 0 0 0 32.45 11.3l.35-.13l37.07-14.93a15.94 15.94 0 0 1 14.47 1.29q4.92 3.11 10 5.86a15.94 15.94 0 0 1 8.19 11.82l5.56 39.59l.12.72A27.22 27.22 0 0 0 213.24 486h85.52a26.92 26.92 0 0 0 26.45-22.39l.09-.56l5.57-39.67a16 16 0 0 1 8.18-11.82c3.42-1.84 6.76-3.79 10-5.82a15.92 15.92 0 0 1 14.43-1.27l37.13 14.95l.35.14a26.85 26.85 0 0 0 32.48-11.34a2.53 2.53 0 0 1 .13-.22l42.71-73.89a26.7 26.7 0 0 0-5.89-34.11zm-134.48-40.24a80 80 0 1 1-83.66-83.67a80.21 80.21 0 0 1 83.66 83.67z",fill:"currentColor"},null,-1),yy=[by,xy];var ul=_d.default=(0,Ho.defineComponent)({name:"Settings",render:function(t,o){return(0,Ho.openBlock)(),(0,Ho.createElementBlock)("svg",vy,yy)}}),Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});const Vt=et,Cy={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},wy=(0,Vt.createElementVNode)("path",{d:"M104 496H72a24 24 0 0 1-24-24V328a24 24 0 0 1 24-24h32a24 24 0 0 1 24 24v144a24 24 0 0 1-24 24z",fill:"currentColor"},null,-1),Sy=(0,Vt.createElementVNode)("path",{d:"M328 496h-32a24 24 0 0 1-24-24V232a24 24 0 0 1 24-24h32a24 24 0 0 1 24 24v240a24 24 0 0 1-24 24z",fill:"currentColor"},null,-1),_y=(0,Vt.createElementVNode)("path",{d:"M440 496h-32a24 24 0 0 1-24-24V120a24 24 0 0 1 24-24h32a24 24 0 0 1 24 24v352a24 24 0 0 1-24 24z",fill:"currentColor"},null,-1),Ey=(0,Vt.createElementVNode)("path",{d:"M216 496h-32a24 24 0 0 1-24-24V40a24 24 0 0 1 24-24h32a24 24 0 0 1 24 24v432a24 24 0 0 1-24 24z",fill:"currentColor"},null,-1),Py=[wy,Sy,_y,Ey];var fl=Ed.default=(0,Vt.defineComponent)({name:"StatsChart",render:function(t,o){return(0,Vt.openBlock)(),(0,Vt.createElementBlock)("svg",Cy,Py)}}),Pd={};Object.defineProperty(Pd,"__esModule",{value:!0});const Do=et,ky={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ty=(0,Do.createElementVNode)("path",{d:"M480 448h-12a4 4 0 0 1-4-4V273.51a4 4 0 0 0-5.24-3.86a104.92 104.92 0 0 1-28.32 4.78c-1.18 0-2.3.05-3.4.05a108.22 108.22 0 0 1-52.85-13.64a8.23 8.23 0 0 0-8 0a108.18 108.18 0 0 1-52.84 13.64a106.11 106.11 0 0 1-52.46-13.79a8.21 8.21 0 0 0-8.09 0a108.14 108.14 0 0 1-53.16 13.8a106.19 106.19 0 0 1-52.77-14a8.25 8.25 0 0 0-8.16 0a106.19 106.19 0 0 1-52.77 14c-1.09 0-2.19 0-3.37-.05h-.06a104.91 104.91 0 0 1-29.28-5.09a4 4 0 0 0-5.23 3.8V444a4 4 0 0 1-4 4H32.5c-8.64 0-16.1 6.64-16.48 15.28A16 16 0 0 0 32 480h447.5c8.64 0 16.1-6.64 16.48-15.28A16 16 0 0 0 480 448zm-256-68a4 4 0 0 1-4 4h-88a4 4 0 0 1-4-4v-64a12 12 0 0 1 12-12h72a12 12 0 0 1 12 12zm156 68h-72a4 4 0 0 1-4-4V316a12 12 0 0 1 12-12h56a12 12 0 0 1 12 12v128a4 4 0 0 1-4 4z",fill:"currentColor"},null,-1),Ry=(0,Do.createElementVNode)("path",{d:"M492.57 170.28l-42.92-98.49C438.41 47.62 412.74 32 384.25 32H127.7c-28.49 0-54.16 15.62-65.4 39.79l-42.92 98.49c-9 19.41 2.89 39.34 2.9 39.35l.28.45c.49.78 1.36 2 1.89 2.78c.05.06.09.13.14.2l5 6.05a7.45 7.45 0 0 0 .6.65l5 4.83l.42.36a69.65 69.65 0 0 0 9.39 6.78v.05a74 74 0 0 0 36 10.67h2.47a76.08 76.08 0 0 0 51.89-20.31l.33-.31a7.94 7.94 0 0 1 10.89 0l.33.31a77.3 77.3 0 0 0 104.46 0a8 8 0 0 1 10.87 0a77.31 77.31 0 0 0 104.21.23a7.88 7.88 0 0 1 10.71 0a76.81 76.81 0 0 0 52.31 20.08h2.49a71.35 71.35 0 0 0 35-10.7c.95-.57 1.86-1.17 2.78-1.77A71.33 71.33 0 0 0 488 212.17l1.74-2.63q.26-.4.48-.84c1.66-3.38 10.56-20.76 2.35-38.42z",fill:"currentColor"},null,-1),Oy=[Ty,Ry];var $y=Pd.default=(0,Do.defineComponent)({name:"Storefront",render:function(t,o){return(0,Do.openBlock)(),(0,Do.createElementBlock)("svg",ky,Oy)}});/*!
|
|
* vue-router v4.4.5
|
|
* (c) 2024 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const io=typeof document<"u";function kd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Iy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&kd(e.default)}const Se=Object.assign;function Tr(e,t){const o={};for(const n in t){const r=t[n];o[n]=dt(r)?r.map(e):e(r)}return o}const No=()=>{},dt=Array.isArray,Td=/#/g,Ay=/&/g,zy=/\//g,My=/=/g,Ly=/\?/g,Rd=/\+/g,By=/%5B/g,Hy=/%5D/g,Od=/%5E/g,Dy=/%60/g,$d=/%7B/g,Ny=/%7C/g,Id=/%7D/g,Fy=/%20/g;function Ji(e){return encodeURI(""+e).replace(Ny,"|").replace(By,"[").replace(Hy,"]")}function jy(e){return Ji(e).replace($d,"{").replace(Id,"}").replace(Od,"^")}function oi(e){return Ji(e).replace(Rd,"%2B").replace(Fy,"+").replace(Td,"%23").replace(Ay,"%26").replace(Dy,"`").replace($d,"{").replace(Id,"}").replace(Od,"^")}function Wy(e){return oi(e).replace(My,"%3D")}function Vy(e){return Ji(e).replace(Td,"%23").replace(Ly,"%3F")}function Uy(e){return e==null?"":Vy(e).replace(zy,"%2F")}function Ko(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Ky=/\/$/,Gy=e=>e.replace(Ky,"");function Rr(e,t,o="/"){let n,r={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(n=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),r=e(i)),s>-1&&(n=n||t.slice(0,s),a=t.slice(s,t.length)),n=Zy(n??t,o),{fullPath:n+(i&&"?")+i+a,path:n,query:r,hash:Ko(a)}}function qy(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function hl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Xy(e,t,o){const n=t.matched.length-1,r=o.matched.length-1;return n>-1&&n===r&&po(t.matched[n],o.matched[r])&&Ad(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function po(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ad(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!Yy(e[o],t[o]))return!1;return!0}function Yy(e,t){return dt(e)?pl(e,t):dt(t)?pl(t,e):e===t}function pl(e,t){return dt(t)?e.length===t.length&&e.every((o,n)=>o===t[n]):e.length===1&&e[0]===t}function Zy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let i=o.length-1,a,s;for(a=0;a<n.length;a++)if(s=n[a],s!==".")if(s==="..")i>1&&i--;else break;return o.slice(0,i).join("/")+"/"+n.slice(a).join("/")}const Et={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Go;(function(e){e.pop="pop",e.push="push"})(Go||(Go={}));var Fo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Fo||(Fo={}));function Jy(e){if(!e)if(io){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Gy(e)}const Qy=/^[^#]+#/;function eC(e,t){return e.replace(Qy,"#")+t}function tC(e,t){const o=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-o.left-(t.left||0),top:n.top-o.top-(t.top||0)}}const nr=()=>({left:window.scrollX,top:window.scrollY});function oC(e){let t;if("el"in e){const o=e.el,n=typeof o=="string"&&o.startsWith("#"),r=typeof o=="string"?n?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!r)return;t=tC(r,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 ml(e,t){return(history.state?history.state.position-t:-1)+e}const ni=new Map;function nC(e,t){ni.set(e,t)}function rC(e){const t=ni.get(e);return ni.delete(e),t}let iC=()=>location.protocol+"//"+location.host;function zd(e,t){const{pathname:o,search:n,hash:r}=t,i=e.indexOf("#");if(i>-1){let s=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(s);return l[0]!=="/"&&(l="/"+l),hl(l,"")}return hl(o,e)+n+r}function aC(e,t,o,n){let r=[],i=[],a=null;const s=({state:f})=>{const h=zd(e,location),m=o.value,p=t.value;let g=0;if(f){if(o.value=h,t.value=f,a&&a===m){a=null;return}g=p?f.position-p.position:0}else n(h);r.forEach(v=>{v(o.value,m,{delta:g,type:Go.pop,direction:g?g>0?Fo.forward:Fo.back:Fo.unknown})})};function l(){a=o.value}function c(f){r.push(f);const h=()=>{const m=r.indexOf(f);m>-1&&r.splice(m,1)};return i.push(h),h}function d(){const{history:f}=window;f.state&&f.replaceState(Se({},f.state,{scroll:nr()}),"")}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:c,destroy:u}}function gl(e,t,o,n=!1,r=!1){return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:r?nr():null}}function lC(e){const{history:t,location:o}=window,n={value:zd(e,o)},r={value:t.state};r.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,d){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+l:iC()+e+l;try{t[d?"replaceState":"pushState"](c,"",f),r.value=c}catch(h){console.error(h),o[d?"replace":"assign"](f)}}function a(l,c){const d=Se({},t.state,gl(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});i(l,d,!0),n.value=l}function s(l,c){const d=Se({},r.value,t.state,{forward:l,scroll:nr()});i(d.current,d,!0);const u=Se({},gl(n.value,l,null),{position:d.position+1},c);i(l,u,!1),n.value=l}return{location:n,state:r,push:s,replace:a}}function sC(e){e=Jy(e);const t=lC(e),o=aC(e,t.state,t.location,t.replace);function n(i,a=!0){a||o.pauseListeners(),history.go(i)}const r=Se({location:"",base:e,go:n,createHref:eC.bind(null,e)},t,o);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function cC(e){return typeof e=="string"||e&&typeof e=="object"}function Md(e){return typeof e=="string"||typeof e=="symbol"}const Ld=Symbol("");var vl;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(vl||(vl={}));function mo(e,t){return Se(new Error,{type:e,[Ld]:!0},t)}function xt(e,t){return e instanceof Error&&Ld in e&&(t==null||!!(e.type&t))}const bl="[^/]+?",dC={sensitive:!1,strict:!1,start:!0,end:!0},uC=/[.+*?^${}()[\]/\\]/g;function fC(e,t){const o=Se({},dC,t),n=[];let r=o.start?"^":"";const i=[];for(const c of e){const d=c.length?[]:[90];o.strict&&!c.length&&(r+="/");for(let u=0;u<c.length;u++){const f=c[u];let h=40+(o.sensitive?.25:0);if(f.type===0)u||(r+="/"),r+=f.value.replace(uC,"\\$&"),h+=40;else if(f.type===1){const{value:m,repeatable:p,optional:g,regexp:v}=f;i.push({name:m,repeatable:p,optional:g});const y=v||bl;if(y!==bl){h+=10;try{new RegExp(`(${y})`)}catch(E){throw new Error(`Invalid custom RegExp for param "${m}" (${y}): `+E.message)}}let k=p?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;u||(k=g&&c.length<2?`(?:/${k})`:"/"+k),g&&(k+="?"),r+=k,h+=20,g&&(h+=-8),p&&(h+=-20),y===".*"&&(h+=-50)}d.push(h)}n.push(d)}if(o.strict&&o.end){const c=n.length-1;n[c][n[c].length-1]+=.7000000000000001}o.strict||(r+="/?"),o.end?r+="$":o.strict&&(r+="(?:/|$)");const a=new RegExp(r,o.sensitive?"":"i");function s(c){const d=c.match(a),u={};if(!d)return null;for(let f=1;f<d.length;f++){const h=d[f]||"",m=i[f-1];u[m.name]=h&&m.repeatable?h.split("/"):h}return u}function l(c){let d="",u=!1;for(const f of e){(!u||!d.endsWith("/"))&&(d+="/"),u=!1;for(const h of f)if(h.type===0)d+=h.value;else if(h.type===1){const{value:m,repeatable:p,optional:g}=h,v=m in c?c[m]:"";if(dt(v)&&!p)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const y=dt(v)?v.join("/"):v;if(!y)if(g)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):u=!0);else throw new Error(`Missing required param "${m}"`);d+=y}}return d||"/"}return{re:a,score:n,keys:i,parse:s,stringify:l}}function hC(e,t){let o=0;for(;o<e.length&&o<t.length;){const n=t[o]-e[o];if(n)return n;o++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Bd(e,t){let o=0;const n=e.score,r=t.score;for(;o<n.length&&o<r.length;){const i=hC(n[o],r[o]);if(i)return i;o++}if(Math.abs(r.length-n.length)===1){if(xl(n))return 1;if(xl(r))return-1}return r.length-n.length}function xl(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const pC={type:0,value:""},mC=/[a-zA-Z0-9_]/;function gC(e){if(!e)return[[]];if(e==="/")return[[pC]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${c}": ${h}`)}let o=0,n=o;const r=[];let i;function a(){i&&r.push(i),i=[]}let s=0,l,c="",d="";function u(){c&&(o===0?i.push({type:0,value:c}):o===1||o===2||o===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&o!==2){n=o,o=4;continue}switch(o){case 0:l==="/"?(c&&u(),a()):l===":"?(u(),o=1):f();break;case 4:f(),o=n;break;case 1:l==="("?o=2:mC.test(l)?f():(u(),o=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:o=3:d+=l;break;case 3:u(),o=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,d="";break;default:t("Unknown state");break}}return o===2&&t(`Unfinished custom RegExp for param "${c}"`),u(),a(),r}function vC(e,t,o){const n=fC(gC(e.path),o),r=Se(n,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function bC(e,t){const o=[],n=new Map;t=Sl({strict:!1,end:!0,sensitive:!1},t);function r(u){return n.get(u)}function i(u,f,h){const m=!h,p=Cl(u);p.aliasOf=h&&h.record;const g=Sl(t,u),v=[p];if("alias"in u){const E=typeof u.alias=="string"?[u.alias]:u.alias;for(const x of E)v.push(Cl(Se({},p,{components:h?h.record.components:p.components,path:x,aliasOf:h?h.record:p})))}let y,k;for(const E of v){const{path:x}=E;if(f&&x[0]!=="/"){const _=f.record.path,C=_[_.length-1]==="/"?"":"/";E.path=f.record.path+(x&&C+x)}if(y=vC(E,f,g),h?h.alias.push(y):(k=k||y,k!==y&&k.alias.push(y),m&&u.name&&!wl(y)&&a(u.name)),Hd(y)&&l(y),p.children){const _=p.children;for(let C=0;C<_.length;C++)i(_[C],y,h&&h.children[C])}h=h||y}return k?()=>{a(k)}:No}function a(u){if(Md(u)){const f=n.get(u);f&&(n.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&n.delete(u.record.name),u.children.forEach(a),u.alias.forEach(a))}}function s(){return o}function l(u){const f=CC(u,o);o.splice(f,0,u),u.record.name&&!wl(u)&&n.set(u.record.name,u)}function c(u,f){let h,m={},p,g;if("name"in u&&u.name){if(h=n.get(u.name),!h)throw mo(1,{location:u});g=h.record.name,m=Se(yl(f.params,h.keys.filter(k=>!k.optional).concat(h.parent?h.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),u.params&&yl(u.params,h.keys.map(k=>k.name))),p=h.stringify(m)}else if(u.path!=null)p=u.path,h=o.find(k=>k.re.test(p)),h&&(m=h.parse(p),g=h.record.name);else{if(h=f.name?n.get(f.name):o.find(k=>k.re.test(f.path)),!h)throw mo(1,{location:u,currentLocation:f});g=h.record.name,m=Se({},f.params,u.params),p=h.stringify(m)}const v=[];let y=h;for(;y;)v.unshift(y.record),y=y.parent;return{name:g,path:p,params:m,matched:v,meta:yC(v)}}e.forEach(u=>i(u));function d(){o.length=0,n.clear()}return{addRoute:i,resolve:c,removeRoute:a,clearRoutes:d,getRoutes:s,getRecordMatcher:r}}function yl(e,t){const o={};for(const n of t)n in e&&(o[n]=e[n]);return o}function Cl(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:xC(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function xC(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const n in e.components)t[n]=typeof o=="object"?o[n]:o;return t}function wl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yC(e){return e.reduce((t,o)=>Se(t,o.meta),{})}function Sl(e,t){const o={};for(const n in e)o[n]=n in t?t[n]:e[n];return o}function CC(e,t){let o=0,n=t.length;for(;o!==n;){const i=o+n>>1;Bd(e,t[i])<0?n=i:o=i+1}const r=wC(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function wC(e){let t=e;for(;t=t.parent;)if(Hd(t)&&Bd(e,t)===0)return t}function Hd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function SC(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const i=n[r].replace(Rd," "),a=i.indexOf("="),s=Ko(a<0?i:i.slice(0,a)),l=a<0?null:Ko(i.slice(a+1));if(s in t){let c=t[s];dt(c)||(c=t[s]=[c]),c.push(l)}else t[s]=l}return t}function _l(e){let t="";for(let o in e){const n=e[o];if(o=Wy(o),n==null){n!==void 0&&(t+=(t.length?"&":"")+o);continue}(dt(n)?n.map(i=>i&&oi(i)):[n&&oi(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+o,i!=null&&(t+="="+i))})}return t}function _C(e){const t={};for(const o in e){const n=e[o];n!==void 0&&(t[o]=dt(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const EC=Symbol(""),El=Symbol(""),Qi=Symbol(""),Dd=Symbol(""),ri=Symbol("");function To(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function $t(e,t,o,n,r,i=a=>a()){const a=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((s,l)=>{const c=f=>{f===!1?l(mo(4,{from:o,to:t})):f instanceof Error?l(f):cC(f)?l(mo(2,{from:t,to:f})):(a&&n.enterCallbacks[r]===a&&typeof f=="function"&&a.push(f),s())},d=i(()=>e.call(n&&n.instances[r],t,o,c));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch(f=>l(f))})}function Or(e,t,o,n,r=i=>i()){const i=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(kd(l)){const d=(l.__vccOpts||l)[t];d&&i.push($t(d,o,n,a,s,r))}else{let c=l();i.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const u=Iy(d)?d.default:d;a.mods[s]=d,a.components[s]=u;const h=(u.__vccOpts||u)[t];return h&&$t(h,o,n,a,s,r)()}))}}return i}function Pl(e){const t=me(Qi),o=me(Dd),n=F(()=>{const l=Pe(e.to);return t.resolve(l)}),r=F(()=>{const{matched:l}=n.value,{length:c}=l,d=l[c-1],u=o.matched;if(!d||!u.length)return-1;const f=u.findIndex(po.bind(null,d));if(f>-1)return f;const h=kl(l[c-2]);return c>1&&kl(d)===h&&u[u.length-1].path!==h?u.findIndex(po.bind(null,l[c-2])):f}),i=F(()=>r.value>-1&&TC(o.params,n.value.params)),a=F(()=>r.value>-1&&r.value===o.matched.length-1&&Ad(o.params,n.value.params));function s(l={}){return kC(l)?t[Pe(e.replace)?"replace":"push"](Pe(e.to)).catch(No):Promise.resolve()}return{route:n,href:F(()=>n.value.href),isActive:i,isExactActive:a,navigate:s}}const PC=se({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:Pl,setup(e,{slots:t}){const o=Zo(Pl(e)),{options:n}=me(Qi),r=F(()=>({[Tl(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[Tl(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&t.default(o);return e.custom?i:b("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},i)}}}),at=PC;function kC(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 TC(e,t){for(const o in t){const n=t[o],r=e[o];if(typeof n=="string"){if(n!==r)return!1}else if(!dt(r)||r.length!==n.length||n.some((i,a)=>i!==r[a]))return!1}return!0}function kl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Tl=(e,t,o)=>e??t??o,RC=se({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=me(ri),r=F(()=>e.route||n.value),i=me(El,0),a=F(()=>{let c=Pe(i);const{matched:d}=r.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),s=F(()=>r.value.matched[a.value]);ve(El,F(()=>a.value+1)),ve(EC,s),ve(ri,r);const l=B();return Be(()=>[l.value,s.value,e.name],([c,d,u],[f,h,m])=>{d&&(d.instances[u]=c,h&&h!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),c&&d&&(!h||!po(d,h)||!f)&&(d.enterCallbacks[u]||[]).forEach(p=>p(c))},{flush:"post"}),()=>{const c=r.value,d=e.name,u=s.value,f=u&&u.components[d];if(!f)return Rl(o.default,{Component:f,route:c});const h=u.props[d],m=h?h===!0?c.params:typeof h=="function"?h(c):h:null,g=b(f,Se({},m,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(u.instances[d]=null)},ref:l}));return Rl(o.default,{Component:g,route:c})||g}}});function Rl(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const OC=RC;function $C(e){const t=bC(e.routes,e),o=e.parseQuery||SC,n=e.stringifyQuery||_l,r=e.history,i=To(),a=To(),s=To(),l=Rf(Et);let c=Et;io&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Tr.bind(null,$=>""+$),u=Tr.bind(null,Uy),f=Tr.bind(null,Ko);function h($,Z){let P,Y;return Md($)?(P=t.getRecordMatcher($),Y=Z):Y=$,t.addRoute(Y,P)}function m($){const Z=t.getRecordMatcher($);Z&&t.removeRoute(Z)}function p(){return t.getRoutes().map($=>$.record)}function g($){return!!t.getRecordMatcher($)}function v($,Z){if(Z=Se({},Z||l.value),typeof $=="string"){const ue=Rr(o,$,Z.path),Ae=t.resolve({path:ue.path},Z),De=r.createHref(ue.fullPath);return Se(ue,Ae,{params:f(Ae.params),hash:Ko(ue.hash),redirectedFrom:void 0,href:De})}let P;if($.path!=null)P=Se({},$,{path:Rr(o,$.path,Z.path).path});else{const ue=Se({},$.params);for(const Ae in ue)ue[Ae]==null&&delete ue[Ae];P=Se({},$,{params:u(ue)}),Z.params=u(Z.params)}const Y=t.resolve(P,Z),we=$.hash||"";Y.params=d(f(Y.params));const Ie=qy(n,Se({},$,{hash:jy(we),path:Y.path})),ge=r.createHref(Ie);return Se({fullPath:Ie,hash:we,query:n===_l?_C($.query):$.query||{}},Y,{redirectedFrom:void 0,href:ge})}function y($){return typeof $=="string"?Rr(o,$,l.value.path):Se({},$)}function k($,Z){if(c!==$)return mo(8,{from:Z,to:$})}function E($){return C($)}function x($){return E(Se(y($),{replace:!0}))}function _($){const Z=$.matched[$.matched.length-1];if(Z&&Z.redirect){const{redirect:P}=Z;let Y=typeof P=="function"?P($):P;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=y(Y):{path:Y},Y.params={}),Se({query:$.query,hash:$.hash,params:Y.path!=null?{}:$.params},Y)}}function C($,Z){const P=c=v($),Y=l.value,we=$.state,Ie=$.force,ge=$.replace===!0,ue=_(P);if(ue)return C(Se(y(ue),{state:typeof ue=="object"?Se({},we,ue.state):we,force:Ie,replace:ge}),Z||P);const Ae=P;Ae.redirectedFrom=Z;let De;return!Ie&&Xy(n,Y,P)&&(De=mo(16,{to:Ae,from:Y}),U(Y,Y,!0,!1)),(De?Promise.resolve(De):R(Ae,Y)).catch(Ne=>xt(Ne)?xt(Ne,2)?Ne:te(Ne):D(Ne,Ae,Y)).then(Ne=>{if(Ne){if(xt(Ne,2))return C(Se({replace:ge},y(Ne.to),{state:typeof Ne.to=="object"?Se({},we,Ne.to.state):we,force:Ie}),Z||Ae)}else Ne=O(Ae,Y,!0,ge,we);return z(Ae,Y,Ne),Ne})}function A($,Z){const P=k($,Z);return P?Promise.reject(P):Promise.resolve()}function S($){const Z=ae.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext($):$()}function R($,Z){let P;const[Y,we,Ie]=IC($,Z);P=Or(Y.reverse(),"beforeRouteLeave",$,Z);for(const ue of Y)ue.leaveGuards.forEach(Ae=>{P.push($t(Ae,$,Z))});const ge=A.bind(null,$,Z);return P.push(ge),ke(P).then(()=>{P=[];for(const ue of i.list())P.push($t(ue,$,Z));return P.push(ge),ke(P)}).then(()=>{P=Or(we,"beforeRouteUpdate",$,Z);for(const ue of we)ue.updateGuards.forEach(Ae=>{P.push($t(Ae,$,Z))});return P.push(ge),ke(P)}).then(()=>{P=[];for(const ue of Ie)if(ue.beforeEnter)if(dt(ue.beforeEnter))for(const Ae of ue.beforeEnter)P.push($t(Ae,$,Z));else P.push($t(ue.beforeEnter,$,Z));return P.push(ge),ke(P)}).then(()=>($.matched.forEach(ue=>ue.enterCallbacks={}),P=Or(Ie,"beforeRouteEnter",$,Z,S),P.push(ge),ke(P))).then(()=>{P=[];for(const ue of a.list())P.push($t(ue,$,Z));return P.push(ge),ke(P)}).catch(ue=>xt(ue,8)?ue:Promise.reject(ue))}function z($,Z,P){s.list().forEach(Y=>S(()=>Y($,Z,P)))}function O($,Z,P,Y,we){const Ie=k($,Z);if(Ie)return Ie;const ge=Z===Et,ue=io?history.state:{};P&&(Y||ge?r.replace($.fullPath,Se({scroll:ge&&ue&&ue.scroll},we)):r.push($.fullPath,we)),l.value=$,U($,Z,P,ge),te()}let Q;function ne(){Q||(Q=r.listen(($,Z,P)=>{if(!ce.listening)return;const Y=v($),we=_(Y);if(we){C(Se(we,{replace:!0}),Y).catch(No);return}c=Y;const Ie=l.value;io&&nC(ml(Ie.fullPath,P.delta),nr()),R(Y,Ie).catch(ge=>xt(ge,12)?ge:xt(ge,2)?(C(ge.to,Y).then(ue=>{xt(ue,20)&&!P.delta&&P.type===Go.pop&&r.go(-1,!1)}).catch(No),Promise.reject()):(P.delta&&r.go(-P.delta,!1),D(ge,Y,Ie))).then(ge=>{ge=ge||O(Y,Ie,!1),ge&&(P.delta&&!xt(ge,8)?r.go(-P.delta,!1):P.type===Go.pop&&xt(ge,20)&&r.go(-1,!1)),z(Y,Ie,ge)}).catch(No)}))}let L=To(),le=To(),w;function D($,Z,P){te($);const Y=le.list();return Y.length?Y.forEach(we=>we($,Z,P)):console.error($),Promise.reject($)}function q(){return w&&l.value!==Et?Promise.resolve():new Promise(($,Z)=>{L.add([$,Z])})}function te($){return w||(w=!$,ne(),L.list().forEach(([Z,P])=>$?P($):Z()),L.reset()),$}function U($,Z,P,Y){const{scrollBehavior:we}=e;if(!io||!we)return Promise.resolve();const Ie=!P&&rC(ml($.fullPath,0))||(Y||!P)&&history.state&&history.state.scroll||null;return qe().then(()=>we($,Z,Ie)).then(ge=>ge&&oC(ge)).catch(ge=>D(ge,$,Z))}const oe=$=>r.go($);let M;const ae=new Set,ce={currentRoute:l,listening:!0,addRoute:h,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:p,resolve:v,options:e,push:E,replace:x,go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:le.add,isReady:q,install($){const Z=this;$.component("RouterLink",at),$.component("RouterView",OC),$.config.globalProperties.$router=Z,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>Pe(l)}),io&&!M&&l.value===Et&&(M=!0,E(r.location).catch(we=>{}));const P={};for(const we in Et)Object.defineProperty(P,we,{get:()=>l.value[we],enumerable:!0});$.provide(Qi,Z),$.provide(Dd,Of(P)),$.provide(ri,l);const Y=$.unmount;ae.add($),$.unmount=function(){ae.delete($),ae.size<1&&(c=Et,Q&&Q(),Q=null,l.value=Et,M=!1,w=!1),Y()}}};function ke($){return $.reduce((Z,P)=>Z.then(()=>S(P)),Promise.resolve())}return ce}function IC(e,t){const o=[],n=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const s=t.matched[a];s&&(e.matched.find(c=>po(c,s))?n.push(s):o.push(s));const l=e.matched[a];l&&(t.matched.find(c=>po(c,l))||r.push(l))}return[o,n,r]}function Nd(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const o=e[t],n=typeof o;(n==="object"||n==="function")&&!Object.isFrozen(o)&&Nd(o)}),e}let Ol=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Fd(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function It(e,...t){const o=Object.create(null);for(const n in e)o[n]=e[n];return t.forEach(function(n){for(const r in n)o[r]=n[r]}),o}const AC="</span>",$l=e=>!!e.scope,zC=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const o=e.split(".");return[`${t}${o.shift()}`,...o.map((n,r)=>`${n}${"_".repeat(r+1)}`)].join(" ")}return`${t}${e}`};class MC{constructor(t,o){this.buffer="",this.classPrefix=o.classPrefix,t.walk(this)}addText(t){this.buffer+=Fd(t)}openNode(t){if(!$l(t))return;const o=zC(t.scope,{prefix:this.classPrefix});this.span(o)}closeNode(t){$l(t)&&(this.buffer+=AC)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Il=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class ea{constructor(){this.rootNode=Il(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const o=Il({scope:t});this.add(o),this.stack.push(o)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,o){return typeof o=="string"?t.addText(o):o.children&&(t.openNode(o),o.children.forEach(n=>this._walk(t,n)),t.closeNode(o)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(o=>typeof o=="string")?t.children=[t.children.join("")]:t.children.forEach(o=>{ea._collapse(o)}))}}class LC extends ea{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,o){const n=t.root;o&&(n.scope=`language:${o}`),this.add(n)}toHTML(){return new MC(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function qo(e){return e?typeof e=="string"?e:e.source:null}function jd(e){return Zt("(?=",e,")")}function BC(e){return Zt("(?:",e,")*")}function HC(e){return Zt("(?:",e,")?")}function Zt(...e){return e.map(o=>qo(o)).join("")}function DC(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ta(...e){return"("+(DC(e).capture?"":"?:")+e.map(n=>qo(n)).join("|")+")"}function Wd(e){return new RegExp(e.toString()+"|").exec("").length-1}function NC(e,t){const o=e&&e.exec(t);return o&&o.index===0}const FC=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function oa(e,{joinWith:t}){let o=0;return e.map(n=>{o+=1;const r=o;let i=qo(n),a="";for(;i.length>0;){const s=FC.exec(i);if(!s){a+=i;break}a+=i.substring(0,s.index),i=i.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+r):(a+=s[0],s[0]==="("&&o++)}return a}).map(n=>`(${n})`).join(t)}const jC=/\b\B/,Vd="[a-zA-Z]\\w*",na="[a-zA-Z_]\\w*",Ud="\\b\\d+(\\.\\d+)?",Kd="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Gd="\\b(0b[01]+)",WC="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",VC=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Zt(t,/.*\b/,e.binary,/\b.*/)),It({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(o,n)=>{o.index!==0&&n.ignoreMatch()}},e)},Xo={begin:"\\\\[\\s\\S]",relevance:0},UC={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Xo]},KC={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Xo]},GC={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},rr=function(e,t,o={}){const n=It({scope:"comment",begin:e,end:t,contains:[]},o);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=ta("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:Zt(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},qC=rr("//","$"),XC=rr("/\\*","\\*/"),YC=rr("#","$"),ZC={scope:"number",begin:Ud,relevance:0},JC={scope:"number",begin:Kd,relevance:0},QC={scope:"number",begin:Gd,relevance:0},e1={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Xo,{begin:/\[/,end:/\]/,relevance:0,contains:[Xo]}]},t1={scope:"title",begin:Vd,relevance:0},o1={scope:"title",begin:na,relevance:0},n1={begin:"\\.\\s*"+na,relevance:0},r1=function(e){return Object.assign(e,{"on:begin":(t,o)=>{o.data._beginMatch=t[1]},"on:end":(t,o)=>{o.data._beginMatch!==t[1]&&o.ignoreMatch()}})};var yn=Object.freeze({__proto__:null,APOS_STRING_MODE:UC,BACKSLASH_ESCAPE:Xo,BINARY_NUMBER_MODE:QC,BINARY_NUMBER_RE:Gd,COMMENT:rr,C_BLOCK_COMMENT_MODE:XC,C_LINE_COMMENT_MODE:qC,C_NUMBER_MODE:JC,C_NUMBER_RE:Kd,END_SAME_AS_BEGIN:r1,HASH_COMMENT_MODE:YC,IDENT_RE:Vd,MATCH_NOTHING_RE:jC,METHOD_GUARD:n1,NUMBER_MODE:ZC,NUMBER_RE:Ud,PHRASAL_WORDS_MODE:GC,QUOTE_STRING_MODE:KC,REGEXP_MODE:e1,RE_STARTERS_RE:WC,SHEBANG:VC,TITLE_MODE:t1,UNDERSCORE_IDENT_RE:na,UNDERSCORE_TITLE_MODE:o1});function i1(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function a1(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function l1(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=i1,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function s1(e,t){Array.isArray(e.illegal)&&(e.illegal=ta(...e.illegal))}function c1(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function d1(e,t){e.relevance===void 0&&(e.relevance=1)}const u1=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const o=Object.assign({},e);Object.keys(e).forEach(n=>{delete e[n]}),e.keywords=o.keywords,e.begin=Zt(o.beforeMatch,jd(o.begin)),e.starts={relevance:0,contains:[Object.assign(o,{endsParent:!0})]},e.relevance=0,delete o.beforeMatch},f1=["of","and","for","in","not","or","if","then","parent","list","value"],h1="keyword";function qd(e,t,o=h1){const n=Object.create(null);return typeof e=="string"?r(o,e.split(" ")):Array.isArray(e)?r(o,e):Object.keys(e).forEach(function(i){Object.assign(n,qd(e[i],t,i))}),n;function r(i,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");n[l[0]]=[i,p1(l[0],l[1])]})}}function p1(e,t){return t?Number(t):m1(e)?0:1}function m1(e){return f1.includes(e.toLowerCase())}const Al={},Ut=e=>{console.error(e)},zl=(e,...t)=>{console.log(`WARN: ${e}`,...t)},ro=(e,t)=>{Al[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Al[`${e}/${t}`]=!0)},Dn=new Error;function Xd(e,t,{key:o}){let n=0;const r=e[o],i={},a={};for(let s=1;s<=t.length;s++)a[s+n]=r[s],i[s+n]=!0,n+=Wd(t[s-1]);e[o]=a,e[o]._emit=i,e[o]._multi=!0}function g1(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Ut("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Dn;if(typeof e.beginScope!="object"||e.beginScope===null)throw Ut("beginScope must be object"),Dn;Xd(e,e.begin,{key:"beginScope"}),e.begin=oa(e.begin,{joinWith:""})}}function v1(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Ut("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Dn;if(typeof e.endScope!="object"||e.endScope===null)throw Ut("endScope must be object"),Dn;Xd(e,e.end,{key:"endScope"}),e.end=oa(e.end,{joinWith:""})}}function b1(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function x1(e){b1(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),g1(e),v1(e)}function y1(e){function t(a,s){return new RegExp(qo(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class o{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=Wd(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(oa(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((u,f)=>f>0&&u!==void 0),d=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,d)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new o;return this.rules.slice(s).forEach(([c,d])=>l.addRule(c,d)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const d=this.getMatcher(0);d.lastIndex=this.lastIndex+1,c=d.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function r(a){const s=new n;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function i(a,s){const l=a;if(a.isCompiled)return l;[a1,c1,x1,u1].forEach(d=>d(a,s)),e.compilerExtensions.forEach(d=>d(a,s)),a.__beforeBegin=null,[l1,s1,d1].forEach(d=>d(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=qd(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=qo(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(d){return C1(d==="self"?a:d)})),a.contains.forEach(function(d){i(d,l)}),a.starts&&i(a.starts,s),l.matcher=r(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=It(e.classNameAliases||{}),i(e)}function Yd(e){return e?e.endsWithParent||Yd(e.starts):!1}function C1(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return It(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Yd(e)?It(e,{starts:e.starts?It(e.starts):null}):Object.isFrozen(e)?It(e):e}var w1="11.10.0";class S1 extends Error{constructor(t,o){super(t),this.name="HTMLInjectionError",this.html=o}}const $r=Fd,Ml=It,Ll=Symbol("nomatch"),_1=7,Zd=function(e){const t=Object.create(null),o=Object.create(null),n=[];let r=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:LC};function l(w){return s.noHighlightRe.test(w)}function c(w){let D=w.className+" ";D+=w.parentNode?w.parentNode.className:"";const q=s.languageDetectRe.exec(D);if(q){const te=S(q[1]);return te||(zl(i.replace("{}",q[1])),zl("Falling back to no-highlight mode for this block.",w)),te?q[1]:"no-highlight"}return D.split(/\s+/).find(te=>l(te)||S(te))}function d(w,D,q){let te="",U="";typeof D=="object"?(te=w,q=D.ignoreIllegals,U=D.language):(ro("10.7.0","highlight(lang, code, ...args) has been deprecated."),ro("10.7.0",`Please use highlight(code, options) instead.
|
|
https://github.com/highlightjs/highlight.js/issues/2277`),U=w,te=D),q===void 0&&(q=!0);const oe={code:te,language:U};L("before:highlight",oe);const M=oe.result?oe.result:u(oe.language,oe.code,q);return M.code=oe.code,L("after:highlight",M),M}function u(w,D,q,te){const U=Object.create(null);function oe(G,re){return G.keywords[re]}function M(){if(!de.keywords){H.addText(X);return}let G=0;de.keywordPatternRe.lastIndex=0;let re=de.keywordPatternRe.exec(X),pe="";for(;re;){pe+=X.substring(G,re.index);const Ce=De.case_insensitive?re[0].toLowerCase():re[0],Fe=oe(de,Ce);if(Fe){const[ct,dr]=Fe;if(H.addText(pe),pe="",U[Ce]=(U[Ce]||0)+1,U[Ce]<=_1&&(fe+=dr),ct.startsWith("_"))pe+=re[0];else{const ur=De.classNameAliases[ct]||ct;ke(re[0],ur)}}else pe+=re[0];G=de.keywordPatternRe.lastIndex,re=de.keywordPatternRe.exec(X)}pe+=X.substring(G),H.addText(pe)}function ae(){if(X==="")return;let G=null;if(typeof de.subLanguage=="string"){if(!t[de.subLanguage]){H.addText(X);return}G=u(de.subLanguage,X,!0,W[de.subLanguage]),W[de.subLanguage]=G._top}else G=h(X,de.subLanguage.length?de.subLanguage:null);de.relevance>0&&(fe+=G.relevance),H.__addSublanguage(G._emitter,G.language)}function ce(){de.subLanguage!=null?ae():M(),X=""}function ke(G,re){G!==""&&(H.startScope(re),H.addText(G),H.endScope())}function $(G,re){let pe=1;const Ce=re.length-1;for(;pe<=Ce;){if(!G._emit[pe]){pe++;continue}const Fe=De.classNameAliases[G[pe]]||G[pe],ct=re[pe];Fe?ke(ct,Fe):(X=ct,M(),X=""),pe++}}function Z(G,re){return G.scope&&typeof G.scope=="string"&&H.openNode(De.classNameAliases[G.scope]||G.scope),G.beginScope&&(G.beginScope._wrap?(ke(X,De.classNameAliases[G.beginScope._wrap]||G.beginScope._wrap),X=""):G.beginScope._multi&&($(G.beginScope,re),X="")),de=Object.create(G,{parent:{value:de}}),de}function P(G,re,pe){let Ce=NC(G.endRe,pe);if(Ce){if(G["on:end"]){const Fe=new Ol(G);G["on:end"](re,Fe),Fe.isMatchIgnored&&(Ce=!1)}if(Ce){for(;G.endsParent&&G.parent;)G=G.parent;return G}}if(G.endsWithParent)return P(G.parent,re,pe)}function Y(G){return de.matcher.regexIndex===0?(X+=G[0],1):(Ge=!0,0)}function we(G){const re=G[0],pe=G.rule,Ce=new Ol(pe),Fe=[pe.__beforeBegin,pe["on:begin"]];for(const ct of Fe)if(ct&&(ct(G,Ce),Ce.isMatchIgnored))return Y(re);return pe.skip?X+=re:(pe.excludeBegin&&(X+=re),ce(),!pe.returnBegin&&!pe.excludeBegin&&(X=re)),Z(pe,G),pe.returnBegin?0:re.length}function Ie(G){const re=G[0],pe=D.substring(G.index),Ce=P(de,G,pe);if(!Ce)return Ll;const Fe=de;de.endScope&&de.endScope._wrap?(ce(),ke(re,de.endScope._wrap)):de.endScope&&de.endScope._multi?(ce(),$(de.endScope,G)):Fe.skip?X+=re:(Fe.returnEnd||Fe.excludeEnd||(X+=re),ce(),Fe.excludeEnd&&(X=re));do de.scope&&H.closeNode(),!de.skip&&!de.subLanguage&&(fe+=de.relevance),de=de.parent;while(de!==Ce.parent);return Ce.starts&&Z(Ce.starts,G),Fe.returnEnd?0:re.length}function ge(){const G=[];for(let re=de;re!==De;re=re.parent)re.scope&&G.unshift(re.scope);G.forEach(re=>H.openNode(re))}let ue={};function Ae(G,re){const pe=re&&re[0];if(X+=G,pe==null)return ce(),0;if(ue.type==="begin"&&re.type==="end"&&ue.index===re.index&&pe===""){if(X+=D.slice(re.index,re.index+1),!r){const Ce=new Error(`0 width match regex (${w})`);throw Ce.languageName=w,Ce.badRule=ue.rule,Ce}return 1}if(ue=re,re.type==="begin")return we(re);if(re.type==="illegal"&&!q){const Ce=new Error('Illegal lexeme "'+pe+'" for mode "'+(de.scope||"<unnamed>")+'"');throw Ce.mode=de,Ce}else if(re.type==="end"){const Ce=Ie(re);if(Ce!==Ll)return Ce}if(re.type==="illegal"&&pe==="")return 1;if(Ke>1e5&&Ke>re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=pe,pe.length}const De=S(w);if(!De)throw Ut(i.replace("{}",w)),new Error('Unknown language: "'+w+'"');const Ne=y1(De);let Jt="",de=te||Ne;const W={},H=new s.__emitter(s);ge();let X="",fe=0,Ee=0,Ke=0,Ge=!1;try{if(De.__emitTokens)De.__emitTokens(D,H);else{for(de.matcher.considerAll();;){Ke++,Ge?Ge=!1:de.matcher.considerAll(),de.matcher.lastIndex=Ee;const G=de.matcher.exec(D);if(!G)break;const re=D.substring(Ee,G.index),pe=Ae(re,G);Ee=G.index+pe}Ae(D.substring(Ee))}return H.finalize(),Jt=H.toHTML(),{language:w,value:Jt,relevance:fe,illegal:!1,_emitter:H,_top:de}}catch(G){if(G.message&&G.message.includes("Illegal"))return{language:w,value:$r(D),illegal:!0,relevance:0,_illegalBy:{message:G.message,index:Ee,context:D.slice(Ee-100,Ee+100),mode:G.mode,resultSoFar:Jt},_emitter:H};if(r)return{language:w,value:$r(D),illegal:!1,relevance:0,errorRaised:G,_emitter:H,_top:de};throw G}}function f(w){const D={value:$r(w),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return D._emitter.addText(w),D}function h(w,D){D=D||s.languages||Object.keys(t);const q=f(w),te=D.filter(S).filter(z).map(ce=>u(ce,w,!1));te.unshift(q);const U=te.sort((ce,ke)=>{if(ce.relevance!==ke.relevance)return ke.relevance-ce.relevance;if(ce.language&&ke.language){if(S(ce.language).supersetOf===ke.language)return 1;if(S(ke.language).supersetOf===ce.language)return-1}return 0}),[oe,M]=U,ae=oe;return ae.secondBest=M,ae}function m(w,D,q){const te=D&&o[D]||q;w.classList.add("hljs"),w.classList.add(`language-${te}`)}function p(w){let D=null;const q=c(w);if(l(q))return;if(L("before:highlightElement",{el:w,language:q}),w.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",w);return}if(w.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(w)),s.throwUnescapedHTML))throw new S1("One of your code blocks includes unescaped HTML.",w.innerHTML);D=w;const te=D.textContent,U=q?d(te,{language:q,ignoreIllegals:!0}):h(te);w.innerHTML=U.value,w.dataset.highlighted="yes",m(w,q,U.language),w.result={language:U.language,re:U.relevance,relevance:U.relevance},U.secondBest&&(w.secondBest={language:U.secondBest.language,relevance:U.secondBest.relevance}),L("after:highlightElement",{el:w,result:U,text:te})}function g(w){s=Ml(s,w)}const v=()=>{E(),ro("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){E(),ro("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let k=!1;function E(){if(document.readyState==="loading"){k=!0;return}document.querySelectorAll(s.cssSelector).forEach(p)}function x(){k&&E()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",x,!1);function _(w,D){let q=null;try{q=D(e)}catch(te){if(Ut("Language definition for '{}' could not be registered.".replace("{}",w)),r)Ut(te);else throw te;q=a}q.name||(q.name=w),t[w]=q,q.rawDefinition=D.bind(null,e),q.aliases&&R(q.aliases,{languageName:w})}function C(w){delete t[w];for(const D of Object.keys(o))o[D]===w&&delete o[D]}function A(){return Object.keys(t)}function S(w){return w=(w||"").toLowerCase(),t[w]||t[o[w]]}function R(w,{languageName:D}){typeof w=="string"&&(w=[w]),w.forEach(q=>{o[q.toLowerCase()]=D})}function z(w){const D=S(w);return D&&!D.disableAutodetect}function O(w){w["before:highlightBlock"]&&!w["before:highlightElement"]&&(w["before:highlightElement"]=D=>{w["before:highlightBlock"](Object.assign({block:D.el},D))}),w["after:highlightBlock"]&&!w["after:highlightElement"]&&(w["after:highlightElement"]=D=>{w["after:highlightBlock"](Object.assign({block:D.el},D))})}function Q(w){O(w),n.push(w)}function ne(w){const D=n.indexOf(w);D!==-1&&n.splice(D,1)}function L(w,D){const q=w;n.forEach(function(te){te[q]&&te[q](D)})}function le(w){return ro("10.7.0","highlightBlock will be removed entirely in v12.0"),ro("10.7.0","Please use highlightElement now."),p(w)}Object.assign(e,{highlight:d,highlightAuto:h,highlightAll:E,highlightElement:p,highlightBlock:le,configure:g,initHighlighting:v,initHighlightingOnLoad:y,registerLanguage:_,unregisterLanguage:C,listLanguages:A,getLanguage:S,registerAliases:R,autoDetection:z,inherit:Ml,addPlugin:Q,removePlugin:ne}),e.debugMode=function(){r=!1},e.safeMode=function(){r=!0},e.versionString=w1,e.regex={concat:Zt,lookahead:jd,either:ta,optional:HC,anyNumberOfTimes:BC};for(const w in yn)typeof yn[w]=="object"&&Nd(yn[w]);return Object.assign(e,yn),e},go=Zd({});go.newInstance=()=>Zd({});var E1=go;go.HighlightJS=go;go.default=go;const Ir=$f(E1);function P1(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},o={match:/[{}[\],:]/,className:"punctuation",relevance:0},n=["true","false","null"],r={scope:"literal",beginKeywords:n.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:n},contains:[t,o,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function Jd(e){return JSON.parse(JSON.stringify(e))}function Qd(e,t){return function(){return e.apply(t,arguments)}}const{toString:k1}=Object.prototype,{getPrototypeOf:ra}=Object,ir=(e=>t=>{const o=k1.call(t);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ht=e=>(e=e.toLowerCase(),t=>ir(t)===e),ar=e=>t=>typeof t===e,{isArray:wo}=Array,Yo=ar("undefined");function T1(e){return e!==null&&!Yo(e)&&e.constructor!==null&&!Yo(e.constructor)&&rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const eu=ht("ArrayBuffer");function R1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&eu(e.buffer),t}const O1=ar("string"),rt=ar("function"),tu=ar("number"),lr=e=>e!==null&&typeof e=="object",$1=e=>e===!0||e===!1,Rn=e=>{if(ir(e)!=="object")return!1;const t=ra(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},I1=ht("Date"),A1=ht("File"),z1=ht("Blob"),M1=ht("FileList"),L1=e=>lr(e)&&rt(e.pipe),B1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||rt(e.append)&&((t=ir(e))==="formdata"||t==="object"&&rt(e.toString)&&e.toString()==="[object FormData]"))},H1=ht("URLSearchParams"),[D1,N1,F1,j1]=["ReadableStream","Request","Response","Headers"].map(ht),W1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sn(e,t,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,r;if(typeof e!="object"&&(e=[e]),wo(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function ou(e,t){t=t.toLowerCase();const o=Object.keys(e);let n=o.length,r;for(;n-- >0;)if(r=o[n],t===r.toLowerCase())return r;return null}const Nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,nu=e=>!Yo(e)&&e!==Nt;function ii(){const{caseless:e}=nu(this)&&this||{},t={},o=(n,r)=>{const i=e&&ou(t,r)||r;Rn(t[i])&&Rn(n)?t[i]=ii(t[i],n):Rn(n)?t[i]=ii({},n):wo(n)?t[i]=n.slice():t[i]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&sn(arguments[n],o);return t}const V1=(e,t,o,{allOwnKeys:n}={})=>(sn(t,(r,i)=>{o&&rt(r)?e[i]=Qd(r,o):e[i]=r},{allOwnKeys:n}),e),U1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),K1=(e,t,o,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),o&&Object.assign(e.prototype,o)},G1=(e,t,o,n)=>{let r,i,a;const s={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)a=r[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=o!==!1&&ra(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},q1=(e,t,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=t.length;const n=e.indexOf(t,o);return n!==-1&&n===o},X1=e=>{if(!e)return null;if(wo(e))return e;let t=e.length;if(!tu(t))return null;const o=new Array(t);for(;t-- >0;)o[t]=e[t];return o},Y1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ra(Uint8Array)),Z1=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},J1=(e,t)=>{let o;const n=[];for(;(o=e.exec(t))!==null;)n.push(o);return n},Q1=ht("HTMLFormElement"),ew=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,n,r){return n.toUpperCase()+r}),Bl=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),tw=ht("RegExp"),ru=(e,t)=>{const o=Object.getOwnPropertyDescriptors(e),n={};sn(o,(r,i)=>{let a;(a=t(r,i,e))!==!1&&(n[i]=a||r)}),Object.defineProperties(e,n)},ow=e=>{ru(e,(t,o)=>{if(rt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(rt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},nw=(e,t)=>{const o={},n=r=>{r.forEach(i=>{o[i]=!0})};return wo(e)?n(e):n(String(e).split(t)),o},rw=()=>{},iw=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ar="abcdefghijklmnopqrstuvwxyz",Hl="0123456789",iu={DIGIT:Hl,ALPHA:Ar,ALPHA_DIGIT:Ar+Ar.toUpperCase()+Hl},aw=(e=16,t=iu.ALPHA_DIGIT)=>{let o="";const{length:n}=t;for(;e--;)o+=t[Math.random()*n|0];return o};function lw(e){return!!(e&&rt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const sw=e=>{const t=new Array(10),o=(n,r)=>{if(lr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;const i=wo(n)?[]:{};return sn(n,(a,s)=>{const l=o(a,r+1);!Yo(l)&&(i[s]=l)}),t[r]=void 0,i}}return n};return o(e,0)},cw=ht("AsyncFunction"),dw=e=>e&&(lr(e)||rt(e))&&rt(e.then)&&rt(e.catch),au=((e,t)=>e?setImmediate:t?((o,n)=>(Nt.addEventListener("message",({source:r,data:i})=>{r===Nt&&i===o&&n.length&&n.shift()()},!1),r=>{n.push(r),Nt.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",rt(Nt.postMessage)),uw=typeof queueMicrotask<"u"?queueMicrotask.bind(Nt):typeof process<"u"&&process.nextTick||au,I={isArray:wo,isArrayBuffer:eu,isBuffer:T1,isFormData:B1,isArrayBufferView:R1,isString:O1,isNumber:tu,isBoolean:$1,isObject:lr,isPlainObject:Rn,isReadableStream:D1,isRequest:N1,isResponse:F1,isHeaders:j1,isUndefined:Yo,isDate:I1,isFile:A1,isBlob:z1,isRegExp:tw,isFunction:rt,isStream:L1,isURLSearchParams:H1,isTypedArray:Y1,isFileList:M1,forEach:sn,merge:ii,extend:V1,trim:W1,stripBOM:U1,inherits:K1,toFlatObject:G1,kindOf:ir,kindOfTest:ht,endsWith:q1,toArray:X1,forEachEntry:Z1,matchAll:J1,isHTMLForm:Q1,hasOwnProperty:Bl,hasOwnProp:Bl,reduceDescriptors:ru,freezeMethods:ow,toObjectSet:nw,toCamelCase:ew,noop:rw,toFiniteNumber:iw,findKey:ou,global:Nt,isContextDefined:nu,ALPHABET:iu,generateString:aw,isSpecCompliantForm:lw,toJSONObject:sw,isAsyncFn:cw,isThenable:dw,setImmediate:au,asap:uw};function he(e,t,o,n,r){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),o&&(this.config=o),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}I.inherits(he,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:I.toJSONObject(this.config),code:this.code,status:this.status}}});const lu=he.prototype,su={};["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=>{su[e]={value:e}});Object.defineProperties(he,su);Object.defineProperty(lu,"isAxiosError",{value:!0});he.from=(e,t,o,n,r,i)=>{const a=Object.create(lu);return I.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),he.call(a,e.message,t,o,n,r),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const fw=null;function ai(e){return I.isPlainObject(e)||I.isArray(e)}function cu(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function Dl(e,t,o){return e?e.concat(t).map(function(r,i){return r=cu(r),!o&&i?"["+r+"]":r}).join(o?".":""):t}function hw(e){return I.isArray(e)&&!e.some(ai)}const pw=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function sr(e,t,o){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,o=I.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!I.isUndefined(g[p])});const n=o.metaTokens,r=o.visitor||d,i=o.dots,a=o.indexes,l=(o.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(r))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(I.isDate(m))return m.toISOString();if(!l&&I.isBlob(m))throw new he("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(m)||I.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,p,g){let v=m;if(m&&!g&&typeof m=="object"){if(I.endsWith(p,"{}"))p=n?p:p.slice(0,-2),m=JSON.stringify(m);else if(I.isArray(m)&&hw(m)||(I.isFileList(m)||I.endsWith(p,"[]"))&&(v=I.toArray(m)))return p=cu(p),v.forEach(function(k,E){!(I.isUndefined(k)||k===null)&&t.append(a===!0?Dl([p],E,i):a===null?p:p+"[]",c(k))}),!1}return ai(m)?!0:(t.append(Dl(g,p,i),c(m)),!1)}const u=[],f=Object.assign(pw,{defaultVisitor:d,convertValue:c,isVisitable:ai});function h(m,p){if(!I.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(m),I.forEach(m,function(v,y){(!(I.isUndefined(v)||v===null)&&r.call(t,v,I.isString(y)?y.trim():y,p,f))===!0&&h(v,p?p.concat(y):[y])}),u.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Nl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ia(e,t){this._pairs=[],e&&sr(e,this,t)}const du=ia.prototype;du.append=function(t,o){this._pairs.push([t,o])};du.toString=function(t){const o=t?function(n){return t.call(this,n,Nl)}:Nl;return this._pairs.map(function(r){return o(r[0])+"="+o(r[1])},"").join("&")};function mw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function uu(e,t,o){if(!t)return e;const n=o&&o.encode||mw,r=o&&o.serialize;let i;if(r?i=r(t,o):i=I.isURLSearchParams(t)?t.toString():new ia(t,o).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Fl{constructor(){this.handlers=[]}use(t,o,n){return this.handlers.push({fulfilled:t,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(n){n!==null&&t(n)})}}const fu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gw=typeof URLSearchParams<"u"?URLSearchParams:ia,vw=typeof FormData<"u"?FormData:null,bw=typeof Blob<"u"?Blob:null,xw={isBrowser:!0,classes:{URLSearchParams:gw,FormData:vw,Blob:bw},protocols:["http","https","file","blob","url","data"]},aa=typeof window<"u"&&typeof document<"u",li=typeof navigator=="object"&&navigator||void 0,yw=aa&&(!li||["ReactNative","NativeScript","NS"].indexOf(li.product)<0),Cw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ww=aa&&window.location.href||"http://localhost",Sw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:aa,hasStandardBrowserEnv:yw,hasStandardBrowserWebWorkerEnv:Cw,navigator:li,origin:ww},Symbol.toStringTag,{value:"Module"})),Je={...Sw,...xw};function _w(e,t){return sr(e,new Je.classes.URLSearchParams,Object.assign({visitor:function(o,n,r,i){return Je.isNode&&I.isBuffer(o)?(this.append(n,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Ew(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Pw(e){const t={},o=Object.keys(e);let n;const r=o.length;let i;for(n=0;n<r;n++)i=o[n],t[i]=e[i];return t}function hu(e){function t(o,n,r,i){let a=o[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=o.length;return a=!a&&I.isArray(r)?r.length:a,l?(I.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!s):((!r[a]||!I.isObject(r[a]))&&(r[a]=[]),t(o,n,r[a],i)&&I.isArray(r[a])&&(r[a]=Pw(r[a])),!s)}if(I.isFormData(e)&&I.isFunction(e.entries)){const o={};return I.forEachEntry(e,(n,r)=>{t(Ew(n),r,o,0)}),o}return null}function kw(e,t,o){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const cn={transitional:fu,adapter:["xhr","http","fetch"],transformRequest:[function(t,o){const n=o.getContentType()||"",r=n.indexOf("application/json")>-1,i=I.isObject(t);if(i&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return r?JSON.stringify(hu(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return _w(t,this.formSerializer).toString();if((s=I.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return sr(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(o.setContentType("application/json",!1),kw(t)):t}],transformResponse:[function(t){const o=this.transitional||cn.transitional,n=o&&o.forcedJSONParsing,r=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(n&&!this.responseType||r)){const a=!(o&&o.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?he.from(s,he.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Je.classes.FormData,Blob:Je.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{cn.headers[e]={}});const Tw=I.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"]),Rw=e=>{const t={};let o,n,r;return e&&e.split(`
|
|
`).forEach(function(a){r=a.indexOf(":"),o=a.substring(0,r).trim().toLowerCase(),n=a.substring(r+1).trim(),!(!o||t[o]&&Tw[o])&&(o==="set-cookie"?t[o]?t[o].push(n):t[o]=[n]:t[o]=t[o]?t[o]+", "+n:n)}),t},jl=Symbol("internals");function Ro(e){return e&&String(e).trim().toLowerCase()}function On(e){return e===!1||e==null?e:I.isArray(e)?e.map(On):String(e)}function Ow(e){const t=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=o.exec(e);)t[n[1]]=n[2];return t}const $w=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zr(e,t,o,n,r){if(I.isFunction(n))return n.call(this,t,o);if(r&&(t=o),!!I.isString(t)){if(I.isString(n))return t.indexOf(n)!==-1;if(I.isRegExp(n))return n.test(t)}}function Iw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,o,n)=>o.toUpperCase()+n)}function Aw(e,t){const o=I.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+o,{value:function(r,i,a){return this[n].call(this,t,r,i,a)},configurable:!0})})}class Qe{constructor(t){t&&this.set(t)}set(t,o,n){const r=this;function i(s,l,c){const d=Ro(l);if(!d)throw new Error("header name must be a non-empty string");const u=I.findKey(r,d);(!u||r[u]===void 0||c===!0||c===void 0&&r[u]!==!1)&&(r[u||l]=On(s))}const a=(s,l)=>I.forEach(s,(c,d)=>i(c,d,l));if(I.isPlainObject(t)||t instanceof this.constructor)a(t,o);else if(I.isString(t)&&(t=t.trim())&&!$w(t))a(Rw(t),o);else if(I.isHeaders(t))for(const[s,l]of t.entries())i(l,s,n);else t!=null&&i(o,t,n);return this}get(t,o){if(t=Ro(t),t){const n=I.findKey(this,t);if(n){const r=this[n];if(!o)return r;if(o===!0)return Ow(r);if(I.isFunction(o))return o.call(this,r,n);if(I.isRegExp(o))return o.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,o){if(t=Ro(t),t){const n=I.findKey(this,t);return!!(n&&this[n]!==void 0&&(!o||zr(this,this[n],n,o)))}return!1}delete(t,o){const n=this;let r=!1;function i(a){if(a=Ro(a),a){const s=I.findKey(n,a);s&&(!o||zr(n,n[s],s,o))&&(delete n[s],r=!0)}}return I.isArray(t)?t.forEach(i):i(t),r}clear(t){const o=Object.keys(this);let n=o.length,r=!1;for(;n--;){const i=o[n];(!t||zr(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const o=this,n={};return I.forEach(this,(r,i)=>{const a=I.findKey(n,i);if(a){o[a]=On(r),delete o[i];return}const s=t?Iw(i):String(i).trim();s!==i&&delete o[i],o[s]=On(r),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const o=Object.create(null);return I.forEach(this,(n,r)=>{n!=null&&n!==!1&&(o[r]=t&&I.isArray(n)?n.join(", "):n)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,o])=>t+": "+o).join(`
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const n=new this(t);return o.forEach(r=>n.set(r)),n}static accessor(t){const n=(this[jl]=this[jl]={accessors:{}}).accessors,r=this.prototype;function i(a){const s=Ro(a);n[s]||(Aw(r,a),n[s]=!0)}return I.isArray(t)?t.forEach(i):i(t),this}}Qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(Qe.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[o]=n}}});I.freezeMethods(Qe);function Mr(e,t){const o=this||cn,n=t||o,r=Qe.from(n.headers);let i=n.data;return I.forEach(e,function(s){i=s.call(o,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function pu(e){return!!(e&&e.__CANCEL__)}function So(e,t,o){he.call(this,e??"canceled",he.ERR_CANCELED,t,o),this.name="CanceledError"}I.inherits(So,he,{__CANCEL__:!0});function mu(e,t,o){const n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):t(new he("Request failed with status code "+o.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function zw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Mw(e,t){e=e||10;const o=new Array(e),n=new Array(e);let r=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=n[i];a||(a=c),o[r]=l,n[r]=c;let u=i,f=0;for(;u!==r;)f+=o[u++],u=u%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),c-a<t)return;const h=d&&c-d;return h?Math.round(f*1e3/h):void 0}}function Lw(e,t){let o=0,n=1e3/t,r,i;const a=(c,d=Date.now())=>{o=d,r=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),u=d-o;u>=n?a(c,d):(r=c,i||(i=setTimeout(()=>{i=null,a(r)},n-u)))},()=>r&&a(r)]}const Nn=(e,t,o=3)=>{let n=0;const r=Mw(50,250);return Lw(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-n,c=r(l),d=a<=s;n=a;const u={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&d?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(u)},o)},Wl=(e,t)=>{const o=e!=null;return[n=>t[0]({lengthComputable:o,total:e,loaded:n}),t[1]]},Vl=e=>(...t)=>I.asap(()=>e(...t)),Bw=Je.hasStandardBrowserEnv?function(){const t=Je.navigator&&/(msie|trident)/i.test(Je.navigator.userAgent),o=document.createElement("a");let n;function r(i){let a=i;return t&&(o.setAttribute("href",a),a=o.href),o.setAttribute("href",a),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return n=r(window.location.href),function(a){const s=I.isString(a)?r(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),Hw=Je.hasStandardBrowserEnv?{write(e,t,o,n,r,i){const a=[e+"="+encodeURIComponent(t)];I.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),I.isString(n)&&a.push("path="+n),I.isString(r)&&a.push("domain="+r),i===!0&&a.push("secure"),document.cookie=a.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 Dw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function gu(e,t){return e&&!Dw(t)?Nw(e,t):t}const Ul=e=>e instanceof Qe?{...e}:e;function qt(e,t){t=t||{};const o={};function n(c,d,u){return I.isPlainObject(c)&&I.isPlainObject(d)?I.merge.call({caseless:u},c,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function r(c,d,u){if(I.isUndefined(d)){if(!I.isUndefined(c))return n(void 0,c,u)}else return n(c,d,u)}function i(c,d){if(!I.isUndefined(d))return n(void 0,d)}function a(c,d){if(I.isUndefined(d)){if(!I.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function s(c,d,u){if(u in t)return n(c,d);if(u in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,d)=>r(Ul(c),Ul(d),!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(d){const u=l[d]||r,f=u(e[d],t[d],d);I.isUndefined(f)&&u!==s||(o[d]=f)}),o}const vu=e=>{const t=qt({},e);let{data:o,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Qe.from(a),t.url=uu(gu(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(I.isFormData(o)){if(Je.hasStandardBrowserEnv||Je.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...d]=l?l.split(";").map(u=>u.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Je.hasStandardBrowserEnv&&(n&&I.isFunction(n)&&(n=n(t)),n||n!==!1&&Bw(t.url))){const c=r&&i&&Hw.read(i);c&&a.set(r,c)}return t},Fw=typeof XMLHttpRequest<"u",jw=Fw&&function(e){return new Promise(function(o,n){const r=vu(e);let i=r.data;const a=Qe.from(r.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=r,d,u,f,h,m;function p(){h&&h(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function v(){if(!g)return;const k=Qe.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:k,config:e,request:g};mu(function(C){o(C),p()},function(C){n(C),p()},x),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(n(new he("Request aborted",he.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new he("Network Error",he.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let E=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const x=r.transitional||fu;r.timeoutErrorMessage&&(E=r.timeoutErrorMessage),n(new he(E,x.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,g)),g=null},i===void 0&&a.setContentType(null),"setRequestHeader"in g&&I.forEach(a.toJSON(),function(E,x){g.setRequestHeader(x,E)}),I.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),s&&s!=="json"&&(g.responseType=r.responseType),c&&([f,m]=Nn(c,!0),g.addEventListener("progress",f)),l&&g.upload&&([u,h]=Nn(l),g.upload.addEventListener("progress",u),g.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(d=k=>{g&&(n(!k||k.type?new So(null,e,g):k),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const y=zw(r.url);if(y&&Je.protocols.indexOf(y)===-1){n(new he("Unsupported protocol "+y+":",he.ERR_BAD_REQUEST,e));return}g.send(i||null)})},Ww=(e,t)=>{const{length:o}=e=e?e.filter(Boolean):[];if(t||o){let n=new AbortController,r;const i=function(c){if(!r){r=!0,s();const d=c instanceof Error?c:this.reason;n.abort(d instanceof he?d:new So(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new he(`timeout ${t} of ms exceeded`,he.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>I.asap(s),l}},Vw=function*(e,t){let o=e.byteLength;if(o<t){yield e;return}let n=0,r;for(;n<o;)r=n+t,yield e.slice(n,r),n=r},Uw=async function*(e,t){for await(const o of Kw(e))yield*Vw(o,t)},Kw=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:o,value:n}=await t.read();if(o)break;yield n}}finally{await t.cancel()}},Kl=(e,t,o,n)=>{const r=Uw(e,t);let i=0,a,s=l=>{a||(a=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await r.next();if(c){s(),l.close();return}let u=d.byteLength;if(o){let f=i+=u;o(f)}l.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(l){return s(l),r.return()}},{highWaterMark:2})},cr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",bu=cr&&typeof ReadableStream=="function",Gw=cr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),xu=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qw=bu&&xu(()=>{let e=!1;const t=new Request(Je.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Gl=64*1024,si=bu&&xu(()=>I.isReadableStream(new Response("").body)),Fn={stream:si&&(e=>e.body)};cr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Fn[t]&&(Fn[t]=I.isFunction(e[t])?o=>o[t]():(o,n)=>{throw new he(`Response type '${t}' is not supported`,he.ERR_NOT_SUPPORT,n)})})})(new Response);const Xw=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(Je.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(I.isArrayBufferView(e)||I.isArrayBuffer(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await Gw(e)).byteLength},Yw=async(e,t)=>{const o=I.toFiniteNumber(e.getContentLength());return o??Xw(t)},Zw=cr&&(async e=>{let{url:t,method:o,data:n,signal:r,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:f}=vu(e);c=c?(c+"").toLowerCase():"text";let h=Ww([r,i&&i.toAbortSignal()],a),m;const p=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&qw&&o!=="get"&&o!=="head"&&(g=await Yw(d,n))!==0){let x=new Request(t,{method:"POST",body:n,duplex:"half"}),_;if(I.isFormData(n)&&(_=x.headers.get("content-type"))&&d.setContentType(_),x.body){const[C,A]=Wl(g,Nn(Vl(l)));n=Kl(x.body,Gl,C,A)}}I.isString(u)||(u=u?"include":"omit");const v="credentials"in Request.prototype;m=new Request(t,{...f,signal:h,method:o.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:v?u:void 0});let y=await fetch(m);const k=si&&(c==="stream"||c==="response");if(si&&(s||k&&p)){const x={};["status","statusText","headers"].forEach(S=>{x[S]=y[S]});const _=I.toFiniteNumber(y.headers.get("content-length")),[C,A]=s&&Wl(_,Nn(Vl(s),!0))||[];y=new Response(Kl(y.body,Gl,C,()=>{A&&A(),p&&p()}),x)}c=c||"text";let E=await Fn[I.findKey(Fn,c)||"text"](y,e);return!k&&p&&p(),await new Promise((x,_)=>{mu(x,_,{data:E,headers:Qe.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:m})})}catch(v){throw p&&p(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new he("Network Error",he.ERR_NETWORK,e,m),{cause:v.cause||v}):he.from(v,v&&v.code,e,m)}}),ci={http:fw,xhr:jw,fetch:Zw};I.forEach(ci,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ql=e=>`- ${e}`,Jw=e=>I.isFunction(e)||e===null||e===!1,yu={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let o,n;const r={};for(let i=0;i<t;i++){o=e[i];let a;if(n=o,!Jw(o)&&(n=ci[(a=String(o)).toLowerCase()],n===void 0))throw new he(`Unknown adapter '${a}'`);if(n)break;r[a||"#"+i]=n}if(!n){const i=Object.entries(r).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
`+i.map(ql).join(`
|
|
`):" "+ql(i[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:ci};function Lr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new So(null,e)}function Xl(e){return Lr(e),e.headers=Qe.from(e.headers),e.data=Mr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yu.getAdapter(e.adapter||cn.adapter)(e).then(function(n){return Lr(e),n.data=Mr.call(e,e.transformResponse,n),n.headers=Qe.from(n.headers),n},function(n){return pu(n)||(Lr(e),n&&n.response&&(n.response.data=Mr.call(e,e.transformResponse,n.response),n.response.headers=Qe.from(n.response.headers))),Promise.reject(n)})}const Cu="1.7.7",la={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{la[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Yl={};la.transitional=function(t,o,n){function r(i,a){return"[Axios v"+Cu+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(t===!1)throw new he(r(a," has been removed"+(o?" in "+o:"")),he.ERR_DEPRECATED);return o&&!Yl[a]&&(Yl[a]=!0,console.warn(r(a," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(i,a,s):!0}};function Qw(e,t,o){if(typeof e!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let r=n.length;for(;r-- >0;){const i=n[r],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new he("option "+i+" must be "+l,he.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new he("Unknown option "+i,he.ERR_BAD_OPTION)}}const di={assertOptions:Qw,validators:la},Pt=di.validators;class Kt{constructor(t){this.defaults=t,this.interceptors={request:new Fl,response:new Fl}}async request(t,o){try{return await this._request(t,o)}catch(n){if(n instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
`+i):n.stack=i}catch{}}throw n}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=qt(this.defaults,o);const{transitional:n,paramsSerializer:r,headers:i}=o;n!==void 0&&di.assertOptions(n,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),r!=null&&(I.isFunction(r)?o.paramsSerializer={serialize:r}:di.assertOptions(r,{encode:Pt.function,serialize:Pt.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let a=i&&I.merge(i.common,i[o.method]);i&&I.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),o.headers=Qe.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(o)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let d,u=0,f;if(!l){const m=[Xl.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),f=m.length,d=Promise.resolve(o);u<f;)d=d.then(m[u++],m[u++]);return d}f=s.length;let h=o;for(u=0;u<f;){const m=s[u++],p=s[u++];try{h=m(h)}catch(g){p.call(this,g);break}}try{d=Xl.call(this,h)}catch(m){return Promise.reject(m)}for(u=0,f=c.length;u<f;)d=d.then(c[u++],c[u++]);return d}getUri(t){t=qt(this.defaults,t);const o=gu(t.baseURL,t.url);return uu(o,t.params,t.paramsSerializer)}}I.forEach(["delete","get","head","options"],function(t){Kt.prototype[t]=function(o,n){return this.request(qt(n||{},{method:t,url:o,data:(n||{}).data}))}});I.forEach(["post","put","patch"],function(t){function o(n){return function(i,a,s){return this.request(qt(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Kt.prototype[t]=o(),Kt.prototype[t+"Form"]=o(!0)});class sa{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const n=this;this.promise.then(r=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](r);n._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(r);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,s){n.reason||(n.reason=new So(i,a,s),o(n.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 o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const t=new AbortController,o=n=>{t.abort(n)};return this.subscribe(o),t.signal.unsubscribe=()=>this.unsubscribe(o),t.signal}static source(){let t;return{token:new sa(function(r){t=r}),cancel:t}}}function eS(e){return function(o){return e.apply(null,o)}}function tS(e){return I.isObject(e)&&e.isAxiosError===!0}const ui={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(ui).forEach(([e,t])=>{ui[t]=e});function wu(e){const t=new Kt(e),o=Qd(Kt.prototype.request,t);return I.extend(o,Kt.prototype,t,{allOwnKeys:!0}),I.extend(o,t,null,{allOwnKeys:!0}),o.create=function(r){return wu(qt(e,r))},o}const _e=wu(cn);_e.Axios=Kt;_e.CanceledError=So;_e.CancelToken=sa;_e.isCancel=pu;_e.VERSION=Cu;_e.toFormData=sr;_e.AxiosError=he;_e.Cancel=_e.CanceledError;_e.all=function(t){return Promise.all(t)};_e.spread=eS;_e.isAxiosError=tS;_e.mergeConfig=qt;_e.AxiosHeaders=Qe;_e.formToJSON=e=>hu(I.isHTMLForm(e)?new FormData(e):e);_e.getAdapter=yu.getAdapter;_e.HttpStatusCode=ui;_e.default=_e;const oS=Xn("config",()=>{const e=B([]);async function t(){const{data:l}=await _e.get("/shop"),c=[];for(const d of l)c.push({value:d,label:d});e.value=c}const o=B({webview:{scale:1}}),n=["enable_party","leifeng_mode","maa_enable","maa_rg_enable","mail_enable","skland_enable"],r=["free_blacklist","reload_room","maa_mall_buy","maa_mall_blacklist"];async function i(){const{data:l}=await _e.get("/conf");for(const c of n)l[c]=l[c]!=0;for(const c of r)l[c]=l[c]==""?[]:l[c].split(",");l.package_type=l.package_type==1?"official":"bilibili",l.resting_threshold=l.resting_threshold*100,l.tap_to_launch_game.enable=l.tap_to_launch_game.enable?"tap":"adb",o.value=l}function a(){const l=Jd(o.value);for(const c of n)l[c]=l[c]?1:0;for(const c of r)l[c]=l[c].join(",");return l.package_type=l.package_type=="official"?1:0,l.resting_threshold=l.resting_threshold/100,l.tap_to_launch_game.enable=l.tap_to_launch_game.enable=="tap",l}const s=me("loaded");return wt(()=>{s.value&&_e.post("/conf",a())}),{load_config:i,load_shop:t,shop_list:e,conf:o}});/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** */var fi=function(e,t){return fi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var r in n)n.hasOwnProperty(r)&&(o[r]=n[r])},fi(e,t)};function Su(e,t){fi(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}function nS(e){var t=typeof Symbol=="function"&&e[Symbol.iterator],o=0;return t?t.call(e):{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}}}function rS(e,t){var o=typeof Symbol=="function"&&e[Symbol.iterator];if(!o)return e;var n=o.call(e),r,i=[],a;try{for(;(t===void 0||t-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(a)throw a.error}}return i}function iS(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(rS(arguments[t]));return e}var _u=function(){function e(t,o){this.target=o,this.type=t}return e}(),aS=function(e){Su(t,e);function t(o,n){var r=e.call(this,"error",n)||this;return r.message=o.message,r.error=o,r}return t}(_u),lS=function(e){Su(t,e);function t(o,n,r){o===void 0&&(o=1e3),n===void 0&&(n="");var i=e.call(this,"close",r)||this;return i.wasClean=!0,i.code=o,i.reason=n,i}return t}(_u);/*!
|
|
* Reconnecting WebSocket
|
|
* by Pedro Ladaria <pedro.ladaria@gmail.com>
|
|
* https://github.com/pladaria/reconnecting-websocket
|
|
* License MIT
|
|
*/var sS=function(){if(typeof WebSocket<"u")return WebSocket},cS=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},Bt={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},dS=function(){function e(t,o,n){var r=this;n===void 0&&(n={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(i){r._debug("open event");var a=r._options.minUptime,s=a===void 0?Bt.minUptime:a;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout(function(){return r._acceptOpen()},s),r._ws.binaryType=r._binaryType,r._messageQueue.forEach(function(l){return r._ws.send(l)}),r._messageQueue=[],r.onopen&&r.onopen(i),r._listeners.open.forEach(function(l){return r._callEventListener(i,l)})},this._handleMessage=function(i){r._debug("message event"),r.onmessage&&r.onmessage(i),r._listeners.message.forEach(function(a){return r._callEventListener(i,a)})},this._handleError=function(i){r._debug("error event",i.message),r._disconnect(void 0,i.message==="TIMEOUT"?"timeout":void 0),r.onerror&&r.onerror(i),r._debug("exec error listeners"),r._listeners.error.forEach(function(a){return r._callEventListener(i,a)}),r._connect()},this._handleClose=function(i){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(i),r._listeners.close.forEach(function(a){return r._callEventListener(i,a)})},this._url=t,this._protocols=o,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var t=this._messageQueue.reduce(function(o,n){return typeof n=="string"?o+=n.length:n instanceof Blob?o+=n.size:o+=n.byteLength,o},0);return t+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(t,o){if(t===void 0&&(t=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(t,o)},e.prototype.reconnect=function(t,o){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,o),this._connect())},e.prototype.send=function(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{var o=this._options.maxEnqueuedMessages,n=o===void 0?Bt.maxEnqueuedMessages:o;this._messageQueue.length<n&&(this._debug("enqueue",t),this._messageQueue.push(t))}},e.prototype.addEventListener=function(t,o){this._listeners[t]&&this._listeners[t].push(o)},e.prototype.dispatchEvent=function(t){var o,n,r=this._listeners[t.type];if(r)try{for(var i=nS(r),a=i.next();!a.done;a=i.next()){var s=a.value;this._callEventListener(t,s)}}catch(l){o={error:l}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return!0},e.prototype.removeEventListener=function(t,o){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(function(n){return n!==o}))},e.prototype._debug=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this._options.debug&&console.log.apply(console,iS(["RWS>"],t))},e.prototype._getNextDelay=function(){var t=this._options,o=t.reconnectionDelayGrowFactor,n=o===void 0?Bt.reconnectionDelayGrowFactor:o,r=t.minReconnectionDelay,i=r===void 0?Bt.minReconnectionDelay:r,a=t.maxReconnectionDelay,s=a===void 0?Bt.maxReconnectionDelay:a,l=0;return this._retryCount>0&&(l=i*Math.pow(n,this._retryCount-1),l>s&&(l=s)),this._debug("next delay",l),l},e.prototype._wait=function(){var t=this;return new Promise(function(o){setTimeout(o,t._getNextDelay())})},e.prototype._getNextUrl=function(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){var o=t();if(typeof o=="string")return Promise.resolve(o);if(o.then)return o}throw Error("Invalid URL")},e.prototype._connect=function(){var t=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var o=this._options,n=o.maxRetries,r=n===void 0?Bt.maxRetries:n,i=o.connectionTimeout,a=i===void 0?Bt.connectionTimeout:i,s=o.WebSocket,l=s===void 0?sS():s;if(this._retryCount>=r){this._debug("max retries reached",this._retryCount,">=",r);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!cS(l))throw Error("No valid WebSocket class provided");this._wait().then(function(){return t._getNextUrl(t._url)}).then(function(c){t._closeCalled||(t._debug("connect",{url:c,protocols:t._protocols}),t._ws=t._protocols?new l(c,t._protocols):new l(c),t._ws.binaryType=t._binaryType,t._connectLock=!1,t._addListeners(),t._connectTimeout=setTimeout(function(){return t._handleTimeout()},a))})}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new aS(Error("TIMEOUT"),this))},e.prototype._disconnect=function(t,o){if(t===void 0&&(t=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,o),this._handleClose(new lS(t,o,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(t,o){"handleEvent"in o?o.handleEvent(t):o(t)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();const uS=Xn("mower",()=>{const e=B([]),t=F(()=>e.value.join(`
|
|
`)),o=/^[0-9].*/,n=F(()=>{const h=[];for(const m of e.value)m.match(o)?h.push(m.substring(23)):h.push(m);return h.join(`
|
|
`)}),r=B(null),i=B(!1),a=B(!1),s=B(!0),l=B(0),c=B([]);function d(){let h;h=location.origin;const m=h.replace(/^http/,"ws")+"/log";r.value=new dS(m),r.value.onmessage=p=>{e.value=e.value.concat(p.data.split(`
|
|
`)).slice(-100)}}async function u(){const h=await _e.get("/running");i.value=h.data}async function f(){if(i.value){const h=await _e.get("/task");c.value=h.data,l.value=setTimeout(f,3e3)}else c.value=[]}return{log:t,log_mobile:n,log_lines:e,ws:r,running:i,waiting:a,listen_ws:d,get_running:u,first_load:s,task_list:c,get_task_id:l,get_tasks:f}}),fS=Xn("plan",()=>{const e=B(1),t=B([]),o=B([]),n=B([]),r=B([]),i=B([]),a=B([]),s=B({}),l=B([]),c=B([]),d=[],u={central:5,meeting:2,factory:1,contact:1,train:2};for(let S=1;S<=3;++S)for(let R=1;R<=3;++R){const z=`room_${S}_${R}`,O=`B${S}0${R}`;u[z]=3,d.push({label:O,value:z})}for(let S=1;S<=4;++S)u[`dormitory_${S}`]=5;function f(S){return S.join(",")}function h(S){return S&&S!=""?S.split(","):[]}const m=["exhaust_require","rest_in_full","resting_priority","workaholic","free_blacklist","refresh_trading"];function p(S){for(const R in u){let z=0;if(!S[R])z=u[R],S[R]={name:"",plans:[]};else{let O=u[R];S[R].name=="发电站"?O=1:S[R].name=="贸易站"?["lmd","orundum"].includes(S[R].product)||(S[R].product="lmd"):S[R].name=="制造站"&&(["gold","exp3","orirock"].includes(S[R].product)||(S[R].product="gold")),S[R].plans.length<O&&(z=O-S[R].plans.length)}for(let O=0;O<z;++O)S[R].plans.push({agent:"",group:"",replacement:[]})}return S}function g(S){const R={name:S.name,plans:[]};["贸易站","制造站"].includes(S.name)&&(R.product=S.product);for(const z of S.plans)z.agent&&R.plans.push(z);return R}function v(S){const R={};for(const z in u)if(z.startsWith("room")&&S[z].name)R[z]=g(S[z]);else{let O=!0;for(const Q of S[z].plans)if(Q.agent){O=!1;break}O||(R[z]=g(S[z]))}return R}async function y(){const S=await _e.get("/plan");e.value=S.data.conf.ling_xi,t.value=S.data.conf.max_resting_count,o.value=h(S.data.conf.exhaust_require),n.value=h(S.data.conf.rest_in_full),r.value=h(S.data.conf.resting_priority),i.value=h(S.data.conf.workaholic),a.value=h(S.data.conf.refresh_trading),s.value=p(S.data.plan1),l.value=S.data.backup_plans??[];for(let R of l.value){for(const z of m)R.conf[z]=h(R.conf[z]);R.plan=p(R.plan)}}async function k(){const S=await _e.get("/operator"),R=[];for(const z of S.data)R.push({value:z,label:z});c.value=R}function E(){const S={default:"plan1",plan1:v(s.value),conf:{ling_xi:e.value,max_resting_count:t.value,exhaust_require:f(o.value),rest_in_full:f(n.value),resting_priority:f(r.value),workaholic:f(i.value),refresh_trading:f(a.value)},backup_plans:Jd(l.value)};for(const z of S.backup_plans){for(const O of m)z.conf[O]=f(z.conf[O]);z.plan=v(z.plan)}const R=S.plan1;for(const z in u)if(z.startsWith("room")&&s.value[z].name)R[z]=g(s.value[z]);else{let O=!0;for(const Q of s.value[z].plans)if(Q.agent){O=!1;break}O||(R[z]=g(s.value[z]))}return S}const x=me("loaded");wt(()=>{x.value&&_e.post("/plan",E())});const _=F(()=>{const S=[];for(const R in s.value)for(const z of s.value[R].plans)z.group&&S.push(z.group);return[...new Set(S)]}),C=B("main"),A=F(()=>C.value=="main"?s.value:l.value[C.value].plan);return{load_plan:y,load_operators:k,ling_xi:e,max_resting_count:t,exhaust_require:o,rest_in_full:n,resting_priority:r,workaholic:i,refresh_trading:a,plan:s,operators:c,facility_operator_limit:u,left_side_facility:d,build_plan:E,groups:_,backup_plans:l,sub_plan:C,current_plan:A,fill_empty:p}}),hS=Xn("watermark",()=>{async function e(){return(await _e.get("/getwatermark")).data.toString()}return{getwatermarkinfo:e}}),pS={style:{display:"flex","flex-direction":"column","align-items":"center"}},mS={style:{display:"flex","flex-direction":"column","align-items":"center"}},gS={style:{display:"flex","flex-direction":"column","align-items":"center"}},vS={style:{display:"flex","flex-direction":"column","align-items":"center"}},bS={style:{display:"flex","flex-direction":"column","align-items":"center"}},xS={style:{display:"flex","flex-direction":"column","align-items":"center"}},yS={__name:"App",setup(e){const t=B(!1);function o(z){return()=>b(Tt,null,{default:()=>b(z)})}const n=[{label:()=>b(at,{to:{path:"/"}},{default:()=>"运行日志"}),icon:o(sl),key:"go-to-log"},{label:()=>b(at,{to:{path:"/settings"}},{default:()=>"全部设置"}),icon:o(ul),key:"go-to-allsetting"},{label:()=>b(at,{to:{path:"/plan-editor"}},{default:()=>"排班编辑"}),icon:o(dl),key:"go-to-plan"},{label:()=>"数据图表",key:"building-report",icon:o(fl),children:[{label:()=>b(at,{to:{path:"/record/line"}},{default:()=>"干员心情报表"}),icon:o(Gx),key:"go-to-record-line"},{label:()=>b(at,{to:{path:"/record/pie"}},{default:()=>"工休比报表"}),icon:o(cy),key:"go-to-record-pie"},{label:()=>b(at,{to:{path:"/record/depot"}},{default:()=>"仓库"}),icon:o($y),key:"go-to-record-depot"},{label:()=>b(at,{to:{path:"/record/report"}},{default:()=>"基建报表"}),icon:o(gy),key:"go-to-record-report"}]},{label:()=>b(at,{to:{path:"/debug"}},{default:()=>"日志查看器"}),icon:o(Sx),key:"debug"},{label:()=>b(at,{to:{path:"/doc"}},{default:()=>"帮助文档"}),icon:o(cl),key:"go-to-doc"},{label:()=>b(at,{to:{path:"/readme"}},{default:()=>"其他资源"}),icon:o(ll),key:"readme"},{label:()=>b(at,{to:{path:"/BasementSkill"}},{default:()=>"基建技能"}),icon:o(Rx),key:"BasementSkill"},{label:()=>b("a",{href:"https://arkntools.app/ ",target:"_blank",rel:"noopenner noreferrer"},"明日方舟工具箱"),key:"toolbox",icon:o(Bx)},{label:()=>b("a",{href:"https://prts.wiki/w/%E9%A6%96%E9%A1%B5",target:"_blank",rel:"noopenner noreferrer"},"明日方舟PRTS"),key:"wiki",icon:o(Ax)}];Ir.registerLanguage("json",P1);const r=hS(),{getwatermarkinfo:i}=r,a=B("mower"),s=oS(),{load_config:l,load_shop:c}=s,{conf:d}=mr(s),u=fS(),{operators:f}=mr(u),{load_plan:h,load_operators:m}=u,p=uS(),{ws:g,running:v,log_lines:y}=mr(p),{get_running:k,listen_ws:E}=p,x=me("axios");function _(){v.value=!0,y.value=[],x.get("/start")}function C(){document.documentElement.style.setProperty("--app-height",`${window.innerHeight/d.value.webview.scale}px`),document.documentElement.style.setProperty("--app-width",`${window.innerWidth/d.value.webview.scale}px`),A.value=window.innerWidth<800*d.value.webview.scale}const A=B(!0);ve("mobile",A);const S=me("loaded"),R=F(()=>[{value:"Current",label:"Current"},{value:"Free",label:"Free"}].concat(f.value));return St(async()=>{C(),window.addEventListener("resize",()=>{C()});const O=new URLSearchParams(document.location.search).get("token");ve("token",O),x.defaults.headers.common.token=O,await Promise.all([l(),c(),m(),k()]),await h(),S.value=!0;const Q=RegExp(R.value.map(ne=>"'"+ne.value).join("|"));Ir.registerLanguage("mower",()=>({contains:[{begin:Q,end:/'/,className:"operator",relevance:0},{begin:/宿舍黑名单|重设上次房间为空/,relevance:10},{begin:/[0-9]+(-[0-9]+)+/,className:"date"},{begin:/[0-9]+:[0-9]+:[0-9]+((\.|,)[0-9]+)?/,className:"time"},{begin:/room_[0-9]_[0-9]|dormitory_[0-9]|central|contact|factory|meeting/,className:"room"},{begin:/INFO/,className:"info"},{begin:/WARNING/,className:"warning"},{begin:/ERROR/,className:"error"},{begin:/Scene [0-9]+:.*/,className:"scene"}]})),g.value||E(),d.value.start_automatically&&_(),a.value=await i()}),Be(()=>d.value.webview.scale,z=>{const O=document.querySelector("#app");O.style.transform=`scale(${d.value.webview.scale})`,C()}),(z,O)=>{const Q=p0,ne=fx,L=K0,le=R0,w=Af("router-view"),D=C0,q=Hn,te=Nr,U=vs,oe=Fc,M=sx,ae=_0,ce=y0,ke=L0,$=ex,Z=qv,P=tv;return un(),fn(P,{locale:Pe(tm),"date-locale":Pe(Lm),class:"provider",theme:Pe(d).theme=="dark"?Pe(gx):void 0,hljs:Pe(Ir),style:{"user-select":"none"}},{default:Me(()=>[Te(Q),Te(Z,null,{default:Me(()=>[Te($,null,{default:Me(()=>[Te(ke,null,{default:Me(()=>[Te(ne,{content:Pe(a),cross:"",fullscreen:"","font-size":16,"line-height":32,width:400,height:384,"x-offset":12,"y-offset":60,rotate:-15},null,8,["content"]),Te(ce,{"has-sider":!Pe(A),class:"outer-layout"},{default:Me(()=>[Pe(A)?hr("",!0):(un(),fn(le,{key:0,bordered:"","collapse-mode":"width","collapsed-width":64,width:210,"show-trigger":""},{default:Me(()=>[Te(L,{indent:24,"collapsed-width":64,"collapsed-icon-size":22,options:n})]),_:1})),Te(D,{class:"layout-content-container"},{default:Me(()=>[Pe(S)?(un(),fn(w,{key:0})):hr("",!0)]),_:1}),Pe(A)?(un(),fn(ae,{key:1},{default:Me(()=>[Te(M,{type:"line","justify-content":"space-evenly",size:"small"},{default:Me(()=>[Te(q,{name:"日志",onClick:O[0]||(O[0]=Y=>z.$router.push("/"))},{default:Me(()=>[pt("div",pS,[Te(Pe(Tt),{size:"20",style:{"margin-bottom":"-1px"},component:Pe(sl)},null,8,["component"]),O[11]||(O[11]=Ye(" 日志 "))])]),_:1}),Te(q,{name:"设置",onClick:O[1]||(O[1]=Y=>z.$router.push("/settings"))},{default:Me(()=>[pt("div",mS,[Te(Pe(Tt),{size:"20",style:{"margin-bottom":"-1px"},component:Pe(ul)},null,8,["component"]),O[12]||(O[12]=Ye(" 设置 "))])]),_:1}),Te(q,{name:"排班",onClick:O[2]||(O[2]=Y=>z.$router.push("/plan-editor"))},{default:Me(()=>[pt("div",gS,[Te(Pe(Tt),{size:"20",style:{"margin-bottom":"-1px"},component:Pe(dl)},null,8,["component"]),O[13]||(O[13]=Ye(" 排班 "))])]),_:1}),Te(q,{name:"报表",onClick:O[8]||(O[8]=Y=>t.value=!0)},{default:Me(()=>[pt("div",vS,[Te(Pe(Tt),{size:"20",style:{"margin-bottom":"-1px"},component:Pe(fl)},null,8,["component"]),O[14]||(O[14]=Ye(" 报表 "))]),Te(oe,{show:Pe(t),"onUpdate:show":O[7]||(O[7]=Y=>uo(t)?t.value=Y:null)},{default:Me(()=>[Te(U,{style:{width:"300px"},title:"基建报表",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{default:Me(()=>[pt("div",null,[Te(te,{onClick:O[3]||(O[3]=Y=>{t.value=!1,z.$router.push("/record/line")})},{default:Me(()=>O[15]||(O[15]=[Ye(" 心情曲线 ")])),_:1})]),pt("div",null,[Te(te,{onClick:O[4]||(O[4]=Y=>{t.value=!1,z.$router.push("/record/pie")})},{default:Me(()=>O[16]||(O[16]=[Ye(" 心情饼图 ")])),_:1})]),pt("div",null,[Te(te,{onClick:O[5]||(O[5]=Y=>{t.value=!1,z.$router.push("/record/depot")})},{default:Me(()=>O[17]||(O[17]=[Ye(" 仓库 ")])),_:1})]),pt("div",null,[Te(te,{onClick:O[6]||(O[6]=Y=>{t.value=!1,z.$router.push("/record/report")})},{default:Me(()=>O[18]||(O[18]=[Ye(" 基建报告 ")])),_:1})])]),_:1})]),_:1},8,["show"])]),_:1}),Te(q,{name:"帮助",onClick:O[9]||(O[9]=Y=>z.$router.push("/doc"))},{default:Me(()=>[pt("div",bS,[Te(Pe(Tt),{size:"20",style:{"margin-bottom":"-1px"},component:Pe(cl)},null,8,["component"]),O[19]||(O[19]=Ye(" 帮助 "))])]),_:1}),Te(q,{name:"资源",onClick:O[10]||(O[10]=Y=>z.$router.push("/readme"))},{default:Me(()=>[pt("div",xS,[Te(Pe(Tt),{size:"20",style:{"margin-bottom":"-1px"},component:Pe(ll)},null,8,["component"]),O[20]||(O[20]=Ye(" 资源 "))])]),_:1})]),_:1})]),_:1})):hr("",!0)]),_:1},8,["has-sider"])]),_:1})]),_:1})]),_:1})]),_:1},8,["locale","date-locale","theme","hljs"])}}},CS=If(yS,[["__scopeId","data-v-4750dd23"]]),wS="modulepreload",SS=function(e){return"/"+e},Zl={},nt=function(t,o,n){let r=Promise.resolve();if(o&&o.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.allSettled(o.map(l=>{if(l=SS(l),l in Zl)return;Zl[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":wS,c||(u.as="script"),u.crossOrigin="",u.href=l,s&&u.setAttribute("nonce",s),document.head.appendChild(u),c)return new Promise((f,h)=>{u.addEventListener("load",f),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return r.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},_S=[{path:"/",children:[{path:"readme",component:()=>nt(()=>import("./readme.js"),__vite__mapDeps([0,1,2])),meta:{title:"帮助"},name:"readme"},{path:"",component:()=>nt(()=>import("./Log.js"),__vite__mapDeps([3,4,1,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{title:"日志"},name:"log"},{path:"plan-editor",component:()=>nt(()=>import("./Plan.js"),__vite__mapDeps([22,23,1,24,17,8,25,11,14,15,7,9,10,12,13,16,26,4,5,6,18,19,27,28,29,30])),meta:{title:"排班"},name:"plan"},{path:"settings",component:()=>nt(()=>import("./Settings.js"),__vite__mapDeps([31,32,1,15,29,23,24,17,8,25,11,14,7,9,10,12,13,16,26,33,34,35,4,5,36,37])),meta:{title:"设置"},name:"settings"},{path:"aio",component:()=>nt(()=>import("./Material_all_in_one.js"),__vite__mapDeps([38,1,9,8,10,11,12,29,15,18,25])),meta:{title:"设置"},name:"aio"},{path:"doc",component:()=>nt(()=>import("./Doc.js"),__vite__mapDeps([39,1])),meta:{title:"文档"},name:"doc"},{path:"BasementSkill",component:()=>nt(()=>import("./BasementSkill.js"),__vite__mapDeps([40,1,16,17,10,14,15,12,11,8,41])),meta:{title:"基建技能"},name:"BasementSkill"},{path:"debug",component:()=>nt(()=>import("./DebugConsole.js"),__vite__mapDeps([42,27,1,13,32,15,24,17,8,25])),meta:{title:"日志"},name:"DebugConsole"},{path:"record",children:[{path:"line",component:()=>nt(()=>import("./RecordLine.js"),__vite__mapDeps([43,44,1,36,15,45])),meta:{title:"心情曲线"},name:"record_line"},{path:"depot",component:()=>nt(()=>import("./depot.js"),__vite__mapDeps([46,1,35,36,15,34,16,17,10])),meta:{title:"仓库数据"},name:"depot"},{path:"pie",component:()=>nt(()=>import("./RecordPie.js"),__vite__mapDeps([47,44,1,36,15,48])),meta:{title:"心情饼图"},name:"record_pie"},{path:"report",component:()=>nt(()=>import("./report.js"),__vite__mapDeps([49,4,1,5,33,36,15,50])),meta:{title:"基建报告"},name:"report"}]}]},{path:"/:pathMatch(.*)",component:()=>nt(()=>import("./NotFound.js"),__vite__mapDeps([51,1,35]))}],Eu=$C({history:sC(),routes:_S});Eu.beforeEach((e,t)=>{if(t.query.token&&!e.query.token)return{path:e.path,query:t.query}});function jn(e){return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jn(e)}function $n(e,t){if(!e.vueAxiosInstalled){var o=Pu(t)?kS(t):t;if(TS(o)){var n=RS(e);if(n){var r=n<3?ES:PS;Object.keys(o).forEach(function(i){r(e,i,o[i])}),e.vueAxiosInstalled=!0}else console.error("[vue-axios] unknown Vue version")}else console.error("[vue-axios] configuration is invalid, expected options are either <axios_instance> or { <registration_key>: <axios_instance> }")}}function ES(e,t,o){Object.defineProperty(e.prototype,t,{get:function(){return o}}),e[t]=o}function PS(e,t,o){e.config.globalProperties[t]=o,e[t]=o}function Pu(e){return e&&typeof e.get=="function"&&typeof e.post=="function"}function kS(e){return{axios:e,$http:e}}function TS(e){return jn(e)==="object"&&Object.keys(e).every(function(t){return Pu(e[t])})}function RS(e){return e&&e.version&&Number(e.version.split(".")[0])}(typeof exports>"u"?"undefined":jn(exports))=="object"?module.exports=$n:typeof define=="function"&&define.amd?define([],function(){return $n}):window.Vue&&window.axios&&window.Vue.use&&Vue.use($n,window.axios);const OS=se({inject:["manager"],props:{index:{type:Number,required:!0},disabled:{type:Boolean,default:!1}},data(){return{}},watch:{index(e){this.$el&&this.$el.sortableInfo&&(this.$el.sortableInfo.index=e)},disabled(e){e?this.removeDraggable():this.setDraggable(this.index)}},mounted(){const{disabled:e,index:t}=this.$props;e||this.setDraggable(t)},beforeUnmount(){this.disabled||this.removeDraggable()},methods:{setDraggable(e){const t=this.$el;t.sortableInfo={index:e,manager:this.manager},this.ref={node:t},this.manager.add(this.ref)},removeDraggable(){this.manager.remove(this.ref)}}});class $S{constructor(){this.refs=[],this.active=null}add(t){this.refs||(this.refs=[]),this.refs.push(t)}remove(t){const o=this.getIndex(t);o!==-1&&this.refs.splice(o,1)}isActive(){return!!this.active}getActive(){return this.refs.find(({node:t})=>{var o,n;return((o=t==null?void 0:t.sortableInfo)===null||o===void 0?void 0:o.index)==((n=this===null||this===void 0?void 0:this.active)===null||n===void 0?void 0:n.index)})||null}getIndex(t){return this.refs.indexOf(t)}getRefs(){return this.refs}getOrderedRefs(){return this.refs.sort((t,o)=>t.node.sortableInfo.index-o.node.sortableInfo.index)}}const jo=e=>e.touches!=null;function hi(e,t){return!!e&&Object.prototype.hasOwnProperty.call(e,t)}function IS(e,t,o){const n=e.slice(0);if(o>=n.length){let r=o-n.length;for(;r--+1;)n.push(void 0)}return n.splice(o,0,n.splice(t,1)[0]),n}function AS(e,t){const o=e.slice(0);return t>=o.length||o.splice(t,1),o}function zS(e,t,o){const n=e.slice(0);return t===n.length?n.push(o):n.splice(t,0,o),n}const kt={start:["touchstart","mousedown"],move:["touchmove","mousemove"],end:["touchend","mouseup"],cancel:["touchcancel","keyup"]};function Jl(e,t){for(;e;){if(t(e))return e;e=e.parentNode}}function Ql(e,t,o){return o<e?e:o>t?t:o}function Cn(e){return e.substr(-2)==="px"?parseFloat(e):0}function es(e){const t=window.getComputedStyle(e);return{top:Cn(t.marginTop),right:Cn(t.marginRight),bottom:Cn(t.marginBottom),left:Cn(t.marginLeft)}}function Io(e,t="page"){const o=`${t}X`,n=`${t}Y`;return{x:jo(e)?e.touches[0][o]:e[o],y:jo(e)?e.touches[0][n]:e[n]}}function ts(e){const t=[e];for(;e;e=e.offsetParent)t.unshift(e);return t}function MS(e,t){const o=ts(e),n=ts(t);if(o[0]!=n[0])throw"No common ancestor!";for(let r=0;r<o.length;r++)if(o[r]!=n[r])return o[r-1]}function Ht(e,t,o={top:0,left:0}){if(e){const n={top:o.top+e.offsetTop,left:o.left+e.offsetLeft};return e.offsetParent!==t.offsetParent?Ht(e.offsetParent,t,n):n}return{top:0,left:0}}function os(e){const t=e.querySelectorAll("input, textarea, select"),o=e.cloneNode(!0);return[...o.querySelectorAll("input, textarea, select")].forEach((r,i)=>{r.type!=="file"&&t[i]&&(r.value=t[i].value)}),o}function LS(e,t,o){if(typeof e=="string"&&(e=+e),Array.isArray(e)||(e=[e,e]),e.length!==2)throw new Error(`lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given ${e}`);const[n,r]=e;return[ns(n,t,o),ns(r,t,o)]}function ns(e,t,o){let n=e,r=e,i="px";if(typeof e=="string"){const a=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);if(a===null)throw new Error(`lockOffset value should be a number or a string of a number followed by "px" or "%". Given ${e}`);n=r=parseFloat(e),i=a[1]}if(!isFinite(n)||!isFinite(r))throw new Error(`lockOffset value should be a finite. Given ${e}`);return i==="%"&&(n=n*t/100,r=r*o/100),{x:n,y:r}}function BS(e,t,o,n){const r=e-o,i=t-n;return Math.sqrt(r*r+i*i)}function HS(e){return{x:e.left+e.width/2,y:e.top+e.height/2}}function rs(e=[]){for(let t=0,o=e.length;t<o;t++){const n=e[t],r=n.node;if(!r)return;n.edgeOffset=null,pi(r)}}function pi(e,t="",o=""){e&&(e.style.transform=t,e.style.transitionDuration=o)}function is(e,t,o){const n=Math.max(t,o);return Math.min(t,o)<=e&&e<=n}function as({x:e,y:t},{top:o,left:n,width:r,height:i}){const a=is(e,n,n+r),s=is(t,o,o+i);return a&&s}const Br=setTimeout,DS=se({inject:{SlicksortHub:{from:"SlicksortHub",default:null}},provide(){return{manager:this.manager}},props:{list:{type:Array,required:!0},axis:{type:String,default:"y"},distance:{type:Number,default:0},pressDelay:{type:Number,default:0},pressThreshold:{type:Number,default:5},useDragHandle:{type:Boolean,default:!1},useWindowAsScrollContainer:{type:Boolean,default:!1},hideSortableGhost:{type:Boolean,default:!0},lockToContainerEdges:{type:Boolean,default:!1},lockOffset:{type:[String,Number,Array],default:"50%"},transitionDuration:{type:Number,default:300},appendTo:{type:String,default:"body"},draggedSettlingDuration:{type:Number,default:null},group:{type:String,default:""},accept:{type:[Boolean,Array,Function],default:null},cancelKey:{type:String,default:"Escape"},block:{type:Array,default:()=>[]},lockAxis:{type:String,default:""},helperClass:{type:String,default:""},contentWindow:{type:Object,default:null},shouldCancelStart:{type:Function,default:e=>["input","textarea","select","option","button"].indexOf(e.target.tagName.toLowerCase())!==-1},getHelperDimensions:{type:Function,default:({node:e})=>({width:e.offsetWidth,height:e.offsetHeight})}},emits:["sort-start","sort-move","sort-end","sort-cancel","sort-insert","sort-remove","update:list"],data(){let e=!1;return this.group&&this.SlicksortHub&&(e=!0),{sorting:!1,hub:e?this.SlicksortHub:null,manager:new $S}},mounted(){this.hub&&(this.id=this.hub.getId()),this.container=this.$el,this.document=this.container.ownerDocument||document,this._window=this.contentWindow||window,this.scrollContainer=this.useWindowAsScrollContainer?{scrollLeft:0,scrollTop:0}:this.container,this.events={start:this.handleStart,move:this.handleMove,end:this.handleEnd};for(const e in this.events)hi(this.events,e)&&kt[e].forEach(t=>this.container.addEventListener(t,this.events[e]));this.hub&&this.hub.addContainer(this)},beforeUnmount(){for(const e in this.events)hi(this.events,e)&&kt[e].forEach(t=>this.container.removeEventListener(t,this.events[e]));this.hub&&this.hub.removeContainer(this),this.dragendTimer&&clearTimeout(this.dragendTimer),this.cancelTimer&&clearTimeout(this.cancelTimer),this.pressTimer&&clearTimeout(this.pressTimer),this.autoscrollInterval&&clearInterval(this.autoscrollInterval)},methods:{handleStart(e){const{distance:t,shouldCancelStart:o}=this.$props;if(!jo(e)&&e.button===2||o(e))return!1;this._touched=!0,this._pos=Io(e);const n=e.target,r=Jl(n,i=>i.sortableInfo!=null);if(r&&r.sortableInfo&&this.nodeIsChild(r)&&!this.sorting){const{useDragHandle:i}=this.$props,{index:a}=r.sortableInfo;if(i&&!Jl(n,s=>s.sortableHandle!=null))return;this.manager.active={index:a},n.tagName.toLowerCase()==="a"&&e.preventDefault(),t||(this.pressDelay===0?this.handlePress(e):this.pressTimer=Br(()=>this.handlePress(e),this.pressDelay))}},nodeIsChild(e){return e.sortableInfo.manager===this.manager},handleMove(e){const{distance:t,pressThreshold:o}=this.$props;if(!this.sorting&&this._touched){const n=Io(e);this._delta={x:this._pos.x-n.x,y:this._pos.y-n.y};const r=Math.abs(this._delta.x)+Math.abs(this._delta.y);!t&&(!o||o&&r>=o)?(this.cancelTimer&&clearTimeout(this.cancelTimer),this.cancelTimer=Br(this.cancel,0)):t&&r>=t&&this.manager.isActive()&&this.handlePress(e)}},handleEnd(){if(!this._touched)return;const{distance:e}=this.$props;this._touched=!1,e||this.cancel()},cancel(){this.sorting||(this.pressTimer&&clearTimeout(this.pressTimer),this.manager.active=null,this.hub&&this.hub.cancel())},handleSortCancel(e){(jo(e)||e.key===this.cancelKey)&&(this.newIndex=this.index,this.canceling=!0,this.translate={x:0,y:0},this.animateNodes(),this.handleSortEnd(e))},handlePress(e){e.stopPropagation();const t=this.manager.getActive();if(t){const{getHelperDimensions:o,helperClass:n,hideSortableGhost:r,appendTo:i}=this.$props,{node:a}=t,{index:s}=a.sortableInfo,l=es(a),c=this.container.getBoundingClientRect(),d=o({index:s,node:a});this.node=a,this.margin=l,this.width=d.width,this.height=d.height,this.marginOffset={x:this.margin.left+this.margin.right,y:Math.max(this.margin.top,this.margin.bottom)},this.boundingClientRect=a.getBoundingClientRect(),this.containerBoundingRect=c,this.index=s,this.newIndex=s;const u=os(a);this.helper=this.document.querySelector(i).appendChild(u),this.helper.style.position="fixed",this.helper.style.top=`${this.boundingClientRect.top-l.top}px`,this.helper.style.left=`${this.boundingClientRect.left-l.left}px`,this.helper.style.width=`${this.width}px`,this.helper.style.height=`${this.height}px`,this.helper.style.boxSizing="border-box",this.helper.style.pointerEvents="none",r&&(this.sortableGhost=a,a.style.visibility="hidden",a.style.opacity="0"),this.hub&&(this.hub.sortStart(this),this.hub.helper=this.helper,this.hub.ghost=this.sortableGhost),this.intializeOffsets(e,this.boundingClientRect),this.offsetEdge=Ht(a,this.container),n&&this.helper.classList.add(...n.split(" ")),this.listenerNode=jo(e)?a:this._window,kt.move.forEach(f=>this.listenerNode.addEventListener(f,this.handleSortMove)),kt.end.forEach(f=>this.listenerNode.addEventListener(f,this.handleSortEnd)),kt.cancel.forEach(f=>this.listenerNode.addEventListener(f,this.handleSortCancel)),this.sorting=!0,this.$emit("sort-start",{event:e,node:a,index:s})}},handleSortMove(e){if(e.preventDefault(),this.updatePosition(e),this.hub){const t=this.list[this.index];this.hub.handleSortMove(e,t)}(!this.hub||this.hub.isDest(this))&&(this.animateNodes(),this.autoscroll()),this.$emit("sort-move",{event:e})},handleDropOut(){const e=this.list[this.index],t=AS(this.list,this.index);return this.$emit("sort-remove",{oldIndex:this.index}),this.$emit("update:list",t),e},handleDropIn(e){const t=zS(this.list,this.newIndex,e);this.$emit("sort-insert",{newIndex:this.newIndex,value:e}),this.$emit("update:list",t),this.handleDragEnd()},handleDragOut(){this.autoscrollInterval&&(clearInterval(this.autoscrollInterval),this.autoscrollInterval=null),this.hub.isSource(this)?(this.translate={x:1e4,y:1e4},this.animateNodes()):(this.manager.getRefs().forEach(e=>{e.node.style.transform=""}),this.dragendTimer=Br(this.handleDragEnd,this.transitionDuration||0))},handleDragEnd(){this.autoscrollInterval&&(clearInterval(this.autoscrollInterval),this.autoscrollInterval=null),rs(this.manager.getRefs()),this.sortableGhost&&(this.sortableGhost.remove(),this.sortableGhost=null),this.dragendTimer&&(clearTimeout(this.dragendTimer),this.dragendTimer=null),this.manager.active=null,this._touched=!1,this.sorting=!1},intializeOffsets(e,t){const{useWindowAsScrollContainer:o,containerBoundingRect:n,_window:r}=this;this.marginOffset={x:this.margin.left+this.margin.right,y:Math.max(this.margin.top,this.margin.bottom)},this._axis={x:this.axis.indexOf("x")>=0,y:this.axis.indexOf("y")>=0},this.initialOffset=Io(e),this.initialScroll={top:this.scrollContainer.scrollTop,left:this.scrollContainer.scrollLeft},this.initialWindowScroll={top:window.pageYOffset,left:window.pageXOffset},this.translate={x:0,y:0},this.minTranslate={},this.maxTranslate={},this._axis.x&&(this.minTranslate.x=(o?0:n.left)-t.left-this.width/2,this.maxTranslate.x=(o?r.innerWidth:n.left+n.width)-t.left-this.width/2),this._axis.y&&(this.minTranslate.y=(o?0:n.top)-t.top-this.height/2,this.maxTranslate.y=(o?r.innerHeight:n.top+n.height)-t.top-this.height/2)},handleDragIn(e,t,o){if(this.hub.isSource(this))return;this.dragendTimer&&(this.handleDragEnd(),clearTimeout(this.dragendTimer),this.dragendTimer=null);const n=this.manager.getRefs();this.index=n.length,this.manager.active={index:this.index};const r=this.container.getBoundingClientRect(),i=o.getBoundingClientRect();this.containerBoundingRect=r,this.sortableGhost=os(t),this.container.appendChild(this.sortableGhost);const a=this.sortableGhost.getBoundingClientRect();this.boundingClientRect=a,this.margin=es(this.sortableGhost),this.width=a.width,this.height=a.height,this.offsetEdge=Ht(this.sortableGhost,this.container),this.intializeOffsets(e,a),this.initialOffset.x+=a.x-i.x,this.initialOffset.y+=a.y-i.y,this.sorting=!0},handleSortEnd(e){this.listenerNode&&(kt.move.forEach(n=>this.listenerNode.removeEventListener(n,this.handleSortMove)),kt.end.forEach(n=>this.listenerNode.removeEventListener(n,this.handleSortEnd)),kt.cancel.forEach(n=>this.listenerNode.removeEventListener(n,this.handleSortCancel)));const t=this.manager.getRefs();this.helper&&this.helperClass&&this.helper.classList.remove(...this.helperClass.split(" ")),this.autoscrollInterval&&clearInterval(this.autoscrollInterval),this.autoscrollInterval=null;const o=()=>{this.helper&&(this.helper.remove(),this.helper=null),this.hideSortableGhost&&this.sortableGhost&&(this.sortableGhost.style.visibility="",this.sortableGhost.style.opacity=""),rs(t),this.hub&&!this.hub.isDest(this)?this.canceling?this.hub.cancel():this.hub.handleSortEnd():this.canceling?this.$emit("sort-cancel",{event:e}):(this.$emit("sort-end",{event:e,oldIndex:this.index,newIndex:this.newIndex}),this.$emit("update:list",IS(this.list,this.index,this.newIndex))),this.manager.active=null,this._touched=!1,this.canceling=!1,this.sorting=!1};this.transitionDuration||this.draggedSettlingDuration?this.transitionHelperIntoPlace(t,o):o()},transitionHelperIntoPlace(e,t){if(this.draggedSettlingDuration===0||e.length===0||!this.helper)return Promise.resolve();const o=e[this.index].node;let n=0,r=0;const i={top:window.pageYOffset-this.initialWindowScroll.top,left:window.pageXOffset-this.initialWindowScroll.left};if(this.hub&&!this.hub.isDest(this)&&!this.canceling){const c=this.hub.getDest();if(!c)return;const d=c.newIndex,u=c.manager.getOrderedRefs(),f=d<u.length?u[d].node:c.sortableGhost,h=MS(o,f),m=Ht(o,h),p=Ht(f,h);n=p.left-m.left-i.left,r=p.top-m.top-i.top}else{const c=e[this.newIndex].node,d={left:this.scrollContainer.scrollLeft-this.initialScroll.left+i.left,top:this.scrollContainer.scrollTop-this.initialScroll.top+i.top};n=-d.left,this.translate&&this.translate.x>0?n+=c.offsetLeft+c.offsetWidth-(o.offsetLeft+o.offsetWidth):n+=c.offsetLeft-o.offsetLeft,r=-d.top,this.translate&&this.translate.y>0?r+=c.offsetTop+c.offsetHeight-(o.offsetTop+o.offsetHeight):r+=c.offsetTop-o.offsetTop}const a=this.draggedSettlingDuration!==null?this.draggedSettlingDuration:this.transitionDuration;pi(this.helper,`translate3d(${n}px,${r}px, 0)`,`${a}ms`);const s=c=>{(!c||c.propertyName==="transform")&&(clearTimeout(l),pi(this.helper),t())},l=setTimeout(s,a+10);this.helper.addEventListener("transitionend",s)},updatePosition(e){const{lockAxis:t,lockToContainerEdges:o}=this.$props,n=Io(e),r={x:n.x-this.initialOffset.x,y:n.y-this.initialOffset.y};if(r.y-=window.pageYOffset-this.initialWindowScroll.top,r.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=r,o){const[i,a]=LS(this.lockOffset,this.height,this.width),s={x:this.width/2-i.x,y:this.height/2-i.y},l={x:this.width/2-a.x,y:this.height/2-a.y};this.minTranslate.x&&this.maxTranslate.x&&(r.x=Ql(this.minTranslate.x+s.x,this.maxTranslate.x-l.x,r.x)),this.minTranslate.y&&this.maxTranslate.y&&(r.y=Ql(this.minTranslate.y+s.y,this.maxTranslate.y-l.y,r.y))}t==="x"?r.y=0:t==="y"&&(r.x=0),this.helper&&(this.helper.style.transform=`translate3d(${r.x}px,${r.y}px, 0)`)},animateNodes(){const{transitionDuration:e,hideSortableGhost:t}=this.$props,o=this.manager.getOrderedRefs(),n={left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top},r={left:this.offsetEdge.left+this.translate.x+n.left,top:this.offsetEdge.top+this.translate.y+n.top},i={top:window.pageYOffset-this.initialWindowScroll.top,left:window.pageXOffset-this.initialWindowScroll.left};this.newIndex=null;for(let a=0,s=o.length;a<s;a++){const{node:l}=o[a],c=l.sortableInfo.index,d=l.offsetWidth,u=l.offsetHeight,f={width:this.width>d?d/2:this.width/2,height:this.height>u?u/2:this.height/2},h={x:0,y:0};let{edgeOffset:m}=o[a];m||(o[a].edgeOffset=m=Ht(l,this.container));const p=a<o.length-1&&o[a+1],g=a>0&&o[a-1];if(p&&!p.edgeOffset&&(p.edgeOffset=Ht(p.node,this.container)),c===this.index){t&&(this.sortableGhost=l,l.style.visibility="hidden",l.style.opacity="0");continue}e&&(l.style.transitionDuration=`${e}ms`),this._axis.x?this._axis.y?c<this.index&&(r.left+i.left-f.width<=m.left&&r.top+i.top<=m.top+f.height||r.top+i.top+f.height<=m.top)?(h.x=this.width+this.marginOffset.x,m.left+h.x>this.containerBoundingRect.width-f.width&&p&&(h.x=p.edgeOffset.left-m.left,h.y=p.edgeOffset.top-m.top),this.newIndex===null&&(this.newIndex=c)):c>this.index&&(r.left+i.left+f.width>=m.left&&r.top+i.top+f.height>=m.top||r.top+i.top+f.height>=m.top+u)&&(h.x=-(this.width+this.marginOffset.x),m.left+h.x<this.containerBoundingRect.left+f.width&&g&&(h.x=g.edgeOffset.left-m.left,h.y=g.edgeOffset.top-m.top),this.newIndex=c):c>this.index&&r.left+i.left+f.width>=m.left?(h.x=-(this.width+this.marginOffset.x),this.newIndex=c):c<this.index&&r.left+i.left<=m.left+f.width&&(h.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=c)):this._axis.y&&(c>this.index&&r.top+i.top+f.height>=m.top?(h.y=-(this.height+this.marginOffset.y),this.newIndex=c):c<this.index&&r.top+i.top<=m.top+f.height&&(h.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=c))),l.style.transform=`translate3d(${h.x}px,${h.y}px,0)`}this.newIndex==null&&(this.newIndex=this.index)},autoscroll(){const e=this.translate,t={x:0,y:0},o={x:1,y:1},n={x:10,y:10};e.y>=this.maxTranslate.y-this.height/2?(t.y=1,o.y=n.y*Math.abs((this.maxTranslate.y-this.height/2-e.y)/this.height)):e.x>=this.maxTranslate.x-this.width/2?(t.x=1,o.x=n.x*Math.abs((this.maxTranslate.x-this.width/2-e.x)/this.width)):e.y<=this.minTranslate.y+this.height/2?(t.y=-1,o.y=n.y*Math.abs((e.y-this.height/2-this.minTranslate.y)/this.height)):e.x<=this.minTranslate.x+this.width/2&&(t.x=-1,o.x=n.x*Math.abs((e.x-this.width/2-this.minTranslate.x)/this.width)),this.autoscrollInterval&&(clearInterval(this.autoscrollInterval),this.autoscrollInterval=null),(t.x!==0||t.y!==0)&&(this.autoscrollInterval=window.setInterval(()=>{const r={left:1*o.x*t.x,top:1*o.y*t.y};this.useWindowAsScrollContainer?this._window.scrollBy(r.left,r.top):(this.scrollContainer.scrollTop+=r.top,this.scrollContainer.scrollLeft+=r.left),this.translate.x+=r.left,this.translate.y+=r.top,this.animateNodes()},5))}}}),NS={beforeMount(e){e.sortableHandle=!0}},FS=se({name:"SlickItem",mixins:[OS],props:{tag:{type:String,default:"div"}},render(){var e,t;return b(this.tag,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),c2=se({name:"SlickList",mixins:[DS],props:{tag:{type:String,default:"div"},itemKey:{type:[String,Function],default:"id"}},render(){var e,t;return this.$slots.item?b(this.tag,this.list.map((o,n)=>{let r;if(o!=null){if(typeof this.itemKey=="function")r=this.itemKey(o);else if(typeof o=="object"&&hi(o,this.itemKey)&&typeof o[this.itemKey]=="string")r=o[this.itemKey];else if(typeof o=="string")r=o;else throw new Error("Cannot find key for item, use the item-key prop and pass a function or string");return b(FS,{key:r,index:n},{default:()=>{var i,a;return(a=(i=this.$slots).item)===null||a===void 0?void 0:a.call(i,{item:o,index:n})}})}})):b(this.tag,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});let jS=1;function WS(e,t,o){return t.id===e.id?!0:e.block&&e.block.includes(t.group)?!1:typeof e.accept=="function"?e.accept({dest:e,source:t,payload:o}):typeof e.accept=="boolean"?e.accept:!!(e.accept&&e.accept.includes(t.group)||e.group===t.group)}function VS({x:e,y:t},o,n){if(as({x:e,y:t},n.container.getBoundingClientRect()))return n;let r=null,i=1/0;for(let a=0;a<o.length;a++){const s=o[a],l=s.container.getBoundingClientRect();if(as({x:e,y:t},l))return s;const d=HS(l),u=BS(e,t,d.x,d.y);u<i&&(r=s,i=u)}return r}class US{constructor(){this.helper=null,this.ghost=null,this.refs=[],this.source=null,this.dest=null}getId(){return""+jS++}isSource({id:t}){var o;return((o=this.source)===null||o===void 0?void 0:o.id)===t}getSource(){return this.source}isDest({id:t}){var o;return((o=this.dest)===null||o===void 0?void 0:o.id)===t}getDest(){return this.dest}addContainer(t){this.refs.push(t)}removeContainer(t){this.refs=this.refs.filter(o=>o.id!==t.id)}sortStart(t){this.source=t,this.dest=t}handleSortMove(t,o){var n,r,i,a;const s=this.dest,l=this.source;if(!s||!l)return;const c=this.refs,d=Io(t,"client"),u=VS(d,c,s)||s;s.id!==u.id&&WS(u,l,o)&&(this.dest=u,s.handleDragOut(),u.handleDragIn(t,this.ghost,this.helper)),s.id!==((n=this.source)===null||n===void 0?void 0:n.id)&&((r=this.dest)===null||r===void 0||r.updatePosition(t),(i=this.dest)===null||i===void 0||i.animateNodes(),(a=this.dest)===null||a===void 0||a.autoscroll())}handleSortEnd(){var t,o,n,r;if(((t=this.source)===null||t===void 0?void 0:t.id)===((o=this.dest)===null||o===void 0?void 0:o.id))return;const i=(n=this.source)===null||n===void 0?void 0:n.handleDropOut();(r=this.dest)===null||r===void 0||r.handleDropIn(i),this.reset()}reset(){this.source=null,this.dest=null,this.helper=null,this.ghost=null}cancel(){var t;(t=this.dest)===null||t===void 0||t.handleDragEnd(),this.reset()}}const KS={install(e){e.directive("drag-handle",NS),e.provide("SlicksortHub",new US)}},Mt=zf(CS);Mt.use(Eu);Mt.use($n,_e);Mt.provide("axios",Mt.config.globalProperties.axios);Mt.use(Lf());Mt.provide("loaded",B(!1));Mt.mount("#app");Mt.use(KS);export{ac as $,Bm as A,As as B,Gg as C,Bi as D,n0 as E,Mn as F,o2 as G,Nh as H,qs as I,Zr as J,Ab as K,cc as L,l2 as M,c2 as N,FS as O,rm as P,im as Q,Tv as R,Xs as S,Jv as T,r2 as U,zs as V,Ys as W,nv as X,Vf as Y,Ei as Z,Fc as _,wr as a,Qn as a0,av as a1,sv as a2,mv as a3,Gs as a4,Wf as a5,QS as a6,dv as a7,lo as a8,je as a9,XS as aa,Hi as ab,YS as ac,Jf as ad,wg as ae,mh as af,rv as ag,eb as ah,Oi as ai,Dt as aj,n2 as ak,nb as al,Hb as am,Ni as an,Ms as ao,Ri as ap,i2 as aq,Xn as ar,t2 as as,JS as at,yg as au,Sg as av,ki as aw,oS as b,Gb as c,ho as d,ZS as e,oc as f,_n as g,Wr as h,Ls as i,Kr as j,fS as k,I0 as l,G0 as m,Jd as n,om as o,Zf as p,Xa as q,e2 as r,mr as s,a2 as t,uS as u,qS as v,xa as w,_e as x,Pv as y,yt as z};
|