From 239f022297ffa363c55d76cdd1775c7c37f43626 Mon Sep 17 00:00:00 2001 From: wangqz <2809755637@qq.com> Date: Fri, 15 Nov 2024 13:55:39 +0800 Subject: [PATCH] up pages --- ....vuevuetypescriptsetuptruelang-DzR987t-.js | 1 + docs/assets/AuthPageA-Dj0i4MBa.js | 1 + docs/assets/AuthPageB-B-BbysAB.js | 1 + ....vuevuetypescriptsetuptruelang-DWAZzzN5.js | 1 + docs/assets/Avatar-BpYqF4bS.js | 1 + docs/assets/ButtonPermission-C-oJZffx.js | 1 + docs/assets/ButtonPermission-DnMJq6mr.js | 1 + docs/assets/Checkbox-Kaq6uefv.js | 1 + docs/assets/Checkmark-DuWLWy-v.js | 1 + .../ChevronForwardCircleOutline-BjHSf1QY.js | 1 + ....vuevuetypescriptsetuptruelang-DP-DEThw.js | 1 + docs/assets/DataTable-CDcTRuJS.js | 1 + docs/assets/DatePicker-xH6BAkRV.js | 1 + docs/assets/Descriptions-BD5yoHoK.js | 1 + docs/assets/Divider-DXNdPNfR.js | 1 + docs/assets/Dropdown-BMB08iEg.js | 1 + docs/assets/Empty-C_CzYco1.js | 1 + docs/assets/Exception-CX230KUQ.js | 1 + docs/assets/FocusDetector-C7V71fRC.js | 1 + docs/assets/FormItem-CZeE-Hc9.js | 1 + docs/assets/Forward-xWz6l688.js | 1 + docs/assets/Grid-qb506I7V.js | 1 + docs/assets/IframeContainer-BTKu5TDG.js | 1 + docs/assets/Input-D2qMgPO1.js | 1 + docs/assets/InputGroup-Bg5yCPNp.js | 1 + docs/assets/Pagination-YSg8zdta.js | 1 + docs/assets/Popover-3mPJ01hC.js | 1 + docs/assets/RadioGroup-BozaTzAB.js | 1 + docs/assets/Result-Du_g0nDe.js | 1 + docs/assets/Select-D_I2Mr2d.js | 1 + docs/assets/Space-_SFqgYmP.js | 1 + docs/assets/Spin-WJzlISCz.js | 1 + docs/assets/Switch-obDBD39a.js | 1 + docs/assets/Tag-D4OMG_5z.js | 1 + ....vuevuetypescriptsetuptruelang-BQIt4vT0.js | 1 + docs/assets/Tooltip-BFoQMn72.js | 1 + docs/assets/fail-BFU6g2ZA.js | 1 + docs/assets/index-5zZZ8SzU.js | 1 + docs/assets/index-9AHSgKyT.js | 1 + docs/assets/index-B0007Jh1.js | 1 + docs/assets/index-B014LJnX.js | 22 ++++++++ docs/assets/index-BDCWwx3N.js | 1 + docs/assets/index-BNGu24Wu.js | 1 + docs/assets/index-BT0ZcDkn.js | 56 +++++++++++++++++++ docs/assets/index-Bfcg8leT.js | 1 + docs/assets/index-Bje_nPpk.js | 1 + docs/assets/index-Bk2Jy4Jp.js | 1 + docs/assets/index-BkjyKYn-.js | 1 + docs/assets/index-C280tQWg.js | 1 + docs/assets/index-CBXzYHRV.js | 1 + docs/assets/index-CCyqW-xK.js | 1 + docs/assets/index-CojYk2g6.js | 1 + docs/assets/index-CtdGT7EU.js | 1 + docs/assets/index-D4YjQK5G.js | 1 + docs/assets/index-DJtKRHrO.js | 1 + docs/assets/index-DTlshqIS.js | 1 + docs/assets/index-GzWcCMOW.js | 1 + docs/assets/index-J67kjxMB.js | 1 + docs/assets/index-LLZlmyqL.js | 1 + docs/assets/index-R-_qEdOR.js | 25 +++++++++ docs/assets/index-To49Aw5y.js | 1 + docs/assets/index-iaKve87E.js | 1 + docs/assets/index-zHZrWMB7.js | 1 + docs/assets/numberUtils-C2LWAuD7.js | 7 +++ docs/assets/success-DHNpXM1V.js | 1 + docs/assets/use-compitable-CHcH6xDN.js | 1 + docs/assets/use-locale-CbMPSc0o.js | 1 + docs/assets/use-merged-state-D7wGS6Km.js | 1 + docs/assets/use-message-CulIy1l8.js | 1 + docs/assets/useLoading-8gX1N9xN.js | 1 + docs/assets/useScreen-jjQj1L0Z.js | 1 + docs/assets/utils-PlAvPplV.js | 1 + docs/index.html | 2 +- 73 files changed, 179 insertions(+), 1 deletion(-) create mode 100644 docs/assets/AppLogo.vuevuetypescriptsetuptruelang-DzR987t-.js create mode 100644 docs/assets/AuthPageA-Dj0i4MBa.js create mode 100644 docs/assets/AuthPageB-B-BbysAB.js create mode 100644 docs/assets/Authority.vuevuetypescriptsetuptruelang-DWAZzzN5.js create mode 100644 docs/assets/Avatar-BpYqF4bS.js create mode 100644 docs/assets/ButtonPermission-C-oJZffx.js create mode 100644 docs/assets/ButtonPermission-DnMJq6mr.js create mode 100644 docs/assets/Checkbox-Kaq6uefv.js create mode 100644 docs/assets/Checkmark-DuWLWy-v.js create mode 100644 docs/assets/ChevronForwardCircleOutline-BjHSf1QY.js create mode 100644 docs/assets/CurrentPermissionMode.vuevuetypescriptsetuptruelang-DP-DEThw.js create mode 100644 docs/assets/DataTable-CDcTRuJS.js create mode 100644 docs/assets/DatePicker-xH6BAkRV.js create mode 100644 docs/assets/Descriptions-BD5yoHoK.js create mode 100644 docs/assets/Divider-DXNdPNfR.js create mode 100644 docs/assets/Dropdown-BMB08iEg.js create mode 100644 docs/assets/Empty-C_CzYco1.js create mode 100644 docs/assets/Exception-CX230KUQ.js create mode 100644 docs/assets/FocusDetector-C7V71fRC.js create mode 100644 docs/assets/FormItem-CZeE-Hc9.js create mode 100644 docs/assets/Forward-xWz6l688.js create mode 100644 docs/assets/Grid-qb506I7V.js create mode 100644 docs/assets/IframeContainer-BTKu5TDG.js create mode 100644 docs/assets/Input-D2qMgPO1.js create mode 100644 docs/assets/InputGroup-Bg5yCPNp.js create mode 100644 docs/assets/Pagination-YSg8zdta.js create mode 100644 docs/assets/Popover-3mPJ01hC.js create mode 100644 docs/assets/RadioGroup-BozaTzAB.js create mode 100644 docs/assets/Result-Du_g0nDe.js create mode 100644 docs/assets/Select-D_I2Mr2d.js create mode 100644 docs/assets/Space-_SFqgYmP.js create mode 100644 docs/assets/Spin-WJzlISCz.js create mode 100644 docs/assets/Switch-obDBD39a.js create mode 100644 docs/assets/Tag-D4OMG_5z.js create mode 100644 docs/assets/ToolTipper.vuevuetypescriptsetuptruelang-BQIt4vT0.js create mode 100644 docs/assets/Tooltip-BFoQMn72.js create mode 100644 docs/assets/fail-BFU6g2ZA.js create mode 100644 docs/assets/index-5zZZ8SzU.js create mode 100644 docs/assets/index-9AHSgKyT.js create mode 100644 docs/assets/index-B0007Jh1.js create mode 100644 docs/assets/index-B014LJnX.js create mode 100644 docs/assets/index-BDCWwx3N.js create mode 100644 docs/assets/index-BNGu24Wu.js create mode 100644 docs/assets/index-BT0ZcDkn.js create mode 100644 docs/assets/index-Bfcg8leT.js create mode 100644 docs/assets/index-Bje_nPpk.js create mode 100644 docs/assets/index-Bk2Jy4Jp.js create mode 100644 docs/assets/index-BkjyKYn-.js create mode 100644 docs/assets/index-C280tQWg.js create mode 100644 docs/assets/index-CBXzYHRV.js create mode 100644 docs/assets/index-CCyqW-xK.js create mode 100644 docs/assets/index-CojYk2g6.js create mode 100644 docs/assets/index-CtdGT7EU.js create mode 100644 docs/assets/index-D4YjQK5G.js create mode 100644 docs/assets/index-DJtKRHrO.js create mode 100644 docs/assets/index-DTlshqIS.js create mode 100644 docs/assets/index-GzWcCMOW.js create mode 100644 docs/assets/index-J67kjxMB.js create mode 100644 docs/assets/index-LLZlmyqL.js create mode 100644 docs/assets/index-R-_qEdOR.js create mode 100644 docs/assets/index-To49Aw5y.js create mode 100644 docs/assets/index-iaKve87E.js create mode 100644 docs/assets/index-zHZrWMB7.js create mode 100644 docs/assets/numberUtils-C2LWAuD7.js create mode 100644 docs/assets/success-DHNpXM1V.js create mode 100644 docs/assets/use-compitable-CHcH6xDN.js create mode 100644 docs/assets/use-locale-CbMPSc0o.js create mode 100644 docs/assets/use-merged-state-D7wGS6Km.js create mode 100644 docs/assets/use-message-CulIy1l8.js create mode 100644 docs/assets/useLoading-8gX1N9xN.js create mode 100644 docs/assets/useScreen-jjQj1L0Z.js create mode 100644 docs/assets/utils-PlAvPplV.js diff --git a/docs/assets/AppLogo.vuevuetypescriptsetuptruelang-DzR987t-.js b/docs/assets/AppLogo.vuevuetypescriptsetuptruelang-DzR987t-.js new file mode 100644 index 0000000..0775d5a --- /dev/null +++ b/docs/assets/AppLogo.vuevuetypescriptsetuptruelang-DzR987t-.js @@ -0,0 +1 @@ +import{C as e,d as s,D as a,l,G as t,v as n,cJ as o,cK as i,aj as r,bM as d,o as u,p as m,b as c,w as p,e as v,q as f,R as g,T as b,aB as h,bG as x,g as y,j as k,be as C,bN as R}from"./index-BT0ZcDkn.js";const j=s({name:"Element",alias:["El"],props:Object.assign(Object.assign({},e.props),{tag:{type:String,default:"div"}}),setup(s){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=a(s),d=e("Element","-element",void 0,o,s,n),u=l((()=>{const{common:e}=d.value;return Object.keys(e).reduce(((s,a)=>(s[`--${i(a)}`]=e[a],s)),{})})),m=r?t("element",void 0,u,s):void 0;return{mergedClsPrefix:n,cssVars:r?void 0:u,themeClass:null==m?void 0:m.themeClass,onRender:null==m?void 0:m.onRender}},render(){var e;const{tag:s,mergedClsPrefix:a,cssVars:l,themeClass:t,onRender:o,$slots:i}=this;return null==o||o(),n(s,{role:"none",class:[`${a}-element`,t],style:l},null===(e=i.default)||void 0===e?void 0:e.call(i))}}),A=""+new URL("logo-524x524-CLkJ3RcN.png",import.meta.url).href,E=["src"],M=["src"],B=s({__name:"AppLogo",props:{displayTitle:{type:Boolean,default:!1},titleSize:{default:"xl"},isMini:{type:Boolean,default:!0},isDarkMode:{type:Boolean,default:void 0}},setup(e){const s=e,{displayTitle:a,titleSize:t,isMini:n,isDarkMode:o}=r(s),i=l((()=>String("Naive Admin"))),j=d();function B(){j.push(R.BASE_HOME)}const D=l((()=>o.value)),L=l((()=>!o.value));return(e,s)=>(u(),m("div",{class:C([`text-${v(t)}`,"flex items-center"]),onClick:B},[c(b,{appear:"",name:v(g).FADE,mode:"in-out"},{default:p((()=>[D.value&&!v(n)||L.value&&!v(n)?(u(),m("img",{key:0,src:v(A),class:"block h-full max-h-8 m-3",alt:"App Logo"},null,8,E)):D.value&&v(n)||L.value&&v(n)?(u(),m("img",{key:1,src:v(A),class:"block h-full max-h-8 m-3",alt:"App Logo"},null,8,M)):f("",!0)])),_:1},8,["name"]),h(y("span",{class:"font-semibold"},k(i.value),513),[[x,v(a)]])],2))}});export{B as _,j as a}; diff --git a/docs/assets/AuthPageA-Dj0i4MBa.js b/docs/assets/AuthPageA-Dj0i4MBa.js new file mode 100644 index 0000000..07f2b0c --- /dev/null +++ b/docs/assets/AuthPageA-Dj0i4MBa.js @@ -0,0 +1 @@ +import{d as t,u as e,c as s,e as a,L as o,o as n,bo as r}from"./index-BT0ZcDkn.js";const u=t({__name:"AuthPageA",setup(t){const{t:u}=e();return(t,e)=>{const l=o;return n(),s(l,{title:a(u)("page.permission.roleButtonText",{role:a(r).ADMIN})},null,8,["title"])}}});export{u as default}; diff --git a/docs/assets/AuthPageB-B-BbysAB.js b/docs/assets/AuthPageB-B-BbysAB.js new file mode 100644 index 0000000..f967d72 --- /dev/null +++ b/docs/assets/AuthPageB-B-BbysAB.js @@ -0,0 +1 @@ +import{d as t,u as e,c as s,e as a,L as o,o as n,bo as r}from"./index-BT0ZcDkn.js";const u=t({__name:"AuthPageB",setup(t){const{t:u}=e();return(t,e)=>{const l=o;return n(),s(l,{title:a(u)("page.permission.roleButtonText",{role:a(r).USER})},null,8,["title"])}}});export{u as default}; diff --git a/docs/assets/Authority.vuevuetypescriptsetuptruelang-DWAZzzN5.js b/docs/assets/Authority.vuevuetypescriptsetuptruelang-DWAZzzN5.js new file mode 100644 index 0000000..435a339 --- /dev/null +++ b/docs/assets/Authority.vuevuetypescriptsetuptruelang-DWAZzzN5.js @@ -0,0 +1 @@ +import{d as s,bn as e,e as a,ae as t,q as r}from"./index-BT0ZcDkn.js";const o=s({__name:"Authority",props:{value:{type:[Number,Array,String],default:""}},setup(s){const{hasPermission:o}=e();return(e,n)=>a(o)(s.value)?t(e.$slots,"default",{key:0}):r("",!0)}});export{o as _}; diff --git a/docs/assets/Avatar-BpYqF4bS.js b/docs/assets/Avatar-BpYqF4bS.js new file mode 100644 index 0000000..f30340a --- /dev/null +++ b/docs/assets/Avatar-BpYqF4bS.js @@ -0,0 +1 @@ +import{bW as e,au as r,z as n,V as o,y as t,W as s,A as a,C as i,d as l,D as d,a as c,i as u,l as v,de as h,Y as g,G as f,df as b,a2 as m,a1 as p,aL as z,a0 as y,aI as O,x,v as j,b3 as F}from"./index-BT0ZcDkn.js";import{t as L}from"./Tag-D4OMG_5z.js";const E=e&&"loading"in document.createElement("img");const R=new WeakMap,k=new WeakMap,w=new WeakMap,P=(e,r,n)=>{if(!e)return()=>{};const o=function(e={}){var r;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):null!==(r=e.threshold)&&void 0!==r?r:"0"}`,options:Object.assign(Object.assign({},e),{root:("string"==typeof n?document.querySelector(n):n)||document.documentElement})}}(r),{root:t}=o.options;let s;const a=R.get(t);let i,l;a?s=a:(s=new Map,R.set(t,s)),s.has(o.hash)?(l=s.get(o.hash),l[1].has(e)||(i=l[0],l[1].add(e),i.observe(e))):(i=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const r=k.get(e.target),n=w.get(e.target);r&&r(),n&&(n.value=!0)}}))}),o.options),i.observe(e),l=[i,new Set([e])],s.set(o.hash,l));let d=!1;const c=()=>{d||(k.delete(e),w.delete(e),d=!0,l[1].has(e)&&(l[0].unobserve(e),l[1].delete(e)),l[1].size<=0&&s.delete(o.hash),s.size||R.delete(t))};return k.set(e,c),w.set(e,n),c},S=r("n-avatar-group"),$=n("avatar","\n width: var(--n-merged-size);\n height: var(--n-merged-size);\n color: #FFF;\n font-size: var(--n-font-size);\n display: inline-flex;\n position: relative;\n overflow: hidden;\n text-align: center;\n border: var(--n-border);\n border-radius: var(--n-border-radius);\n --n-merged-color: var(--n-color);\n background-color: var(--n-merged-color);\n transition:\n border-color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n",[o(t("&","--n-merged-color: var(--n-color-modal);")),s(t("&","--n-merged-color: var(--n-color-popover);")),t("img","\n width: 100%;\n height: 100%;\n "),a("text","\n white-space: nowrap;\n display: inline-block;\n position: absolute;\n left: 50%;\n top: 50%;\n "),n("icon","\n vertical-align: bottom;\n font-size: calc(var(--n-merged-size) - 6px);\n "),a("text","line-height: 1.25")]),M=l({name:"Avatar",props:Object.assign(Object.assign({},i.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),setup(e){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=d(e),o=c(!1);let t=null;const s=c(null),a=c(null),l=u(S,null),O=v((()=>{const{size:r}=e;if(r)return r;const{size:n}=l||{};return n||"medium"})),x=i("Avatar","-avatar",$,h,e,r),j=u(L,null),F=v((()=>{if(l)return!0;const{round:r,circle:n}=e;return void 0!==r||void 0!==n?r||n:!!j&&j.roundRef.value})),E=v((()=>!!l||(e.bordered||!1))),R=v((()=>{const r=O.value,n=F.value,o=E.value,{color:t}=e,{self:{borderRadius:s,fontSize:a,color:i,border:l,colorModal:d,colorPopover:c},common:{cubicBezierEaseInOut:u}}=x.value;let v;return v="number"==typeof r?`${r}px`:x.value.self[g("height",r)],{"--n-font-size":a,"--n-border":o?l:"none","--n-border-radius":n?"50%":s,"--n-color":t||i,"--n-color-modal":t||d,"--n-color-popover":t||c,"--n-bezier":u,"--n-merged-size":`var(--n-avatar-size-override, ${v})`}})),k=n?f("avatar",v((()=>{const r=O.value,n=F.value,o=E.value,{color:t}=e;let s="";return r&&(s+="number"==typeof r?`a${r}`:r[0]),n&&(s+="b"),o&&(s+="c"),t&&(s+=b(t)),s})),R,e):void 0,w=c(!e.lazy);m((()=>{if(e.lazy&&e.intersectionObserverOptions){let r;const n=p((()=>{null==r||r(),r=void 0,e.lazy&&(r=P(a.value,e.intersectionObserverOptions,w))}));z((()=>{n(),null==r||r()}))}})),y((()=>{var r;return e.src||(null===(r=e.imgProps)||void 0===r?void 0:r.src)}),(()=>{o.value=!1}));const M=c(!e.lazy);return{textRef:s,selfRef:a,mergedRoundRef:F,mergedClsPrefix:r,fitTextTransform:()=>{const{value:e}=s;if(e&&(null===t||t!==e.innerHTML)){t=e.innerHTML;const{value:r}=a;if(r){const{offsetWidth:n,offsetHeight:o}=r,{offsetWidth:t,offsetHeight:s}=e,a=.9,i=Math.min(n/t*a,o/s*a,1);e.style.transform=`translateX(-50%) translateY(-50%) scale(${i})`}}},cssVars:n?void 0:R,themeClass:null==k?void 0:k.themeClass,onRender:null==k?void 0:k.onRender,hasLoadError:o,shouldStartLoading:w,loaded:M,mergedOnError:r=>{if(!w.value)return;o.value=!0;const{onError:n,imgProps:{onError:t}={}}=e;null==n||n(r),null==t||t(r)},mergedOnLoad:r=>{const{onLoad:n,imgProps:{onLoad:o}={}}=e;null==n||n(r),null==o||o(r),M.value=!0}}},render(){var e,r;const{$slots:n,src:o,mergedClsPrefix:t,lazy:s,onRender:a,loaded:i,hasLoadError:l,imgProps:d={}}=this;let c;null==a||a();const u=!i&&!l&&(this.renderPlaceholder?this.renderPlaceholder():null===(r=(e=this.$slots).placeholder)||void 0===r?void 0:r.call(e));return c=this.hasLoadError?this.renderFallback?this.renderFallback():O(n.fallback,(()=>[j("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})])):x(n.default,(e=>{if(e)return j(F,{onResize:this.fitTextTransform},{default:()=>j("span",{ref:"textRef",class:`${t}-avatar__text`},e)});if(o||d.src){const e=this.src||d.src;return j("img",Object.assign(Object.assign({},d),{loading:E&&!this.intersectionObserverOptions&&s?"lazy":"eager",src:s&&this.intersectionObserverOptions?this.shouldStartLoading?e:void 0:e,"data-image-src":e,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[d.style||"",{objectFit:this.objectFit},u?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}})),j("span",{ref:"selfRef",class:[`${t}-avatar`,this.themeClass],style:this.cssVars},c,s&&u)}});export{M as _}; diff --git a/docs/assets/ButtonPermission-C-oJZffx.js b/docs/assets/ButtonPermission-C-oJZffx.js new file mode 100644 index 0000000..79c38d5 --- /dev/null +++ b/docs/assets/ButtonPermission-C-oJZffx.js @@ -0,0 +1 @@ +import{d as e,bn as t,u as s,k as a,l as o,c as l,w as r,e as i,L as n,bm as u,o as p,b as m,h as d,j as c,bo as y,q as f,aB as g,B as _}from"./index-BT0ZcDkn.js";import{_ as x,a as R}from"./CurrentPermissionMode.vuevuetypescriptsetuptruelang-DP-DEThw.js";import{_ as S}from"./Authority.vuevuetypescriptsetuptruelang-DWAZzzN5.js";import{_ as D}from"./Space-_SFqgYmP.js";import{N}from"./Divider-DXNdPNfR.js";import"./get-slot-BjAOOWF7.js";const A=e({__name:"ButtonPermission",setup(e){const{changeRole:A,hasPermission:M}=t(),{t:E}=s(),I=a(),T=o((()=>I.getRoleList.includes(y.ADMIN))),U=o((()=>I.getRoleList.includes(y.USER)));return(e,t)=>{const s=n,a=R,o=_,B=D,v=N,b=u("auth");return p(),l(s,{title:i(E)("page.permission.pageTitles.button")},{default:r((()=>[m(x),m(s,{class:"my-4",title:i(E)("page.permission.currentRole"),embedded:"",bordered:!1},{default:r((()=>[d(c(i(I).getRoleList),1)])),_:1},8,["title"]),m(a,{class:"my-4",type:"info",title:i(E)("page.permission.clickToSeeButtonChange"),"show-icon":""},null,8,["title"]),m(s,{class:"mt-4",title:i(E)("page.permission.frontendPermissionSwitchTitle"),embedded:"",bordered:!1},{default:r((()=>[m(B,null,{default:r((()=>[m(o,{type:i(T)?"primary":"default",onClick:t[0]||(t[0]=e=>i(A)(i(y).ADMIN))},{default:r((()=>[d(c(i(y).ADMIN),1)])),_:1},8,["type"]),m(o,{type:i(U)?"primary":"default",onClick:t[1]||(t[1]=e=>i(A)(i(y).USER))},{default:r((()=>[d(c(i(y).USER),1)])),_:1},8,["type"])])),_:1})])),_:1},8,["title"]),m(v,null,{default:r((()=>[d(c(i(E)("page.permission.componentWayTitle")),1)])),_:1}),m(S,{value:i(y).ADMIN},{default:r((()=>[m(o,{type:"primary",class:"mx-4"},{default:r((()=>[d(c(i(E)("page.permission.roleButtonText",{role:i(y).ADMIN})),1)])),_:1})])),_:1},8,["value"]),m(S,{value:i(y).USER},{default:r((()=>[m(o,{strong:"",secondary:"",type:"info",class:"mx-4"},{default:r((()=>[d(c(i(E)("page.permission.roleButtonText",{role:i(y).USER})),1)])),_:1})])),_:1},8,["value"]),m(S,{value:[i(y).USER,i(y).ADMIN]},{default:r((()=>[m(o,{strong:"",secondary:"",type:"success",class:"mx-4"},{default:r((()=>[d(c(i(E)("page.permission.roleButtonText",{role:[i(y).USER,i(y).ADMIN]})),1)])),_:1})])),_:1},8,["value"]),m(v,null,{default:r((()=>[d(c(i(E)("page.permission.functionWayTitle")),1)])),_:1}),i(M)(i(y).ADMIN)?(p(),l(o,{key:0,type:"primary",class:"mx-4"},{default:r((()=>[d(c(i(E)("page.permission.roleButtonText",{role:i(y).ADMIN})),1)])),_:1})):f("",!0),i(M)(i(y).USER)?(p(),l(o,{key:1,strong:"",secondary:"",type:"info",class:"mx-4"},{default:r((()=>[d(c(i(E)("page.permission.roleButtonText",{role:i(y).USER})),1)])),_:1})):f("",!0),i(M)([i(y).USER,i(y).ADMIN])?(p(),l(o,{key:2,strong:"",secondary:"",type:"success",class:"mx-4"},{default:r((()=>[d(c(i(E)("page.permission.roleButtonText",{role:[i(y).USER,i(y).ADMIN]})),1)])),_:1})):f("",!0),m(v,null,{default:r((()=>[d(c(i(E)("page.permission.directiveWayTitle")),1)])),_:1}),g((p(),l(o,{type:"primary",class:"mx-4"},{default:r((()=>[d(c(i(E)("page.permission.roleButtonText",{role:i(y).ADMIN})),1)])),_:1})),[[b,i(y).ADMIN]]),g((p(),l(o,{strong:"",secondary:"",type:"info",class:"mx-4"},{default:r((()=>[d(c(i(E)("page.permission.roleButtonText",{role:i(y).USER})),1)])),_:1})),[[b,i(y).USER]]),g((p(),l(o,{strong:"",secondary:"",type:"success",class:"mx-4"},{default:r((()=>[d(c(i(E)("page.permission.roleButtonText",{role:[i(y).USER,i(y).ADMIN]})),1)])),_:1})),[[b,[i(y).USER,i(y).ADMIN]]])])),_:1},8,["title"])}}});export{A as default}; diff --git a/docs/assets/ButtonPermission-DnMJq6mr.js b/docs/assets/ButtonPermission-DnMJq6mr.js new file mode 100644 index 0000000..b71a743 --- /dev/null +++ b/docs/assets/ButtonPermission-DnMJq6mr.js @@ -0,0 +1 @@ +import{d as e,bn as t,bp as s,k as a,u as o,l as i,c as l,w as r,e as n,L as d,bm as p,o as u,b as c,h as m,j as f,bo as y,p as g,q as _,aB as x,H as T,B as b}from"./index-BT0ZcDkn.js";import{_ as v,a as h}from"./CurrentPermissionMode.vuevuetypescriptsetuptruelang-DP-DEThw.js";import{_ as k}from"./Authority.vuevuetypescriptsetuptruelang-DWAZzzN5.js";import{N as B}from"./Divider-DXNdPNfR.js";import{_ as P}from"./Space-_SFqgYmP.js";import"./get-slot-BjAOOWF7.js";const j=e({__name:"ButtonPermission",setup(e){const{hasPermission:j,isBackendPermissionMode:C}=t(),M=s(),w=a(),{t:A}=o(),D=i((()=>w.getRoleList.includes(y.ADMIN))),N=i((()=>w.getRoleList.includes(y.USER)));function R(e){return t=this,s=null,a=function*(){const t=`${e}FakeToken`;w.setToken(t),yield w.getUserInfoAction(),yield M.changePermissionCode()},new Promise(((e,o)=>{var i=e=>{try{r(a.next(e))}catch(t){o(t)}},l=e=>{try{r(a.throw(e))}catch(t){o(t)}},r=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,l);r((a=a.apply(t,s)).next())}));var t,s,a}return(e,t)=>{const s=d,a=B,o=h,i=b,w=P,S=p("auth");return u(),l(s,{title:n(A)("page.permission.pageTitles.button")},{default:r((()=>[c(v),c(s,{class:"my-4",title:n(A)("page.permission.currentCode"),embedded:"",bordered:!1},{default:r((()=>[m(f(n(M).getPermissionCodes),1)])),_:1},8,["title"]),c(a),c(o,{class:"mt-4",type:"info",title:n(A)("page.permission.backendLeftMenuChangeTitle"),"show-icon":""},null,8,["title"]),c(a),c(s,{class:"mt-4",title:n(A)("page.permission.backendPermissionSwitchTitle"),embedded:"",bordered:!1},{default:r((()=>[c(w,null,{default:r((()=>[c(i,{type:n(D)?"primary":"default",disabled:!n(C),onClick:t[0]||(t[0]=e=>R(n(y).ADMIN))},{default:r((()=>[m(f(n(y).ADMIN),1)])),_:1},8,["type","disabled"]),c(i,{type:n(N)?"primary":"default",disabled:!n(C),onClick:t[1]||(t[1]=e=>R(n(y).USER))},{default:r((()=>[m(f(n(y).USER),1)])),_:1},8,["type","disabled"])])),_:1})])),_:1},8,["title"]),n(C)?(u(),g(T,{key:0},[c(a,null,{default:r((()=>[m(f(n(A)("page.permission.componentWayTitle")),1)])),_:1}),c(k,{value:"1000"},{default:r((()=>[c(i,{type:"primary",class:"mx-4"},{default:r((()=>[m(f(n(A)("page.permission.codeButtonText",{code:"1000"})),1)])),_:1})])),_:1}),c(k,{value:"2000"},{default:r((()=>[c(i,{type:"success",class:"mx-4"},{default:r((()=>[m(f(n(A)("page.permission.codeButtonText",{code:"2000"})),1)])),_:1})])),_:1}),c(k,{value:["1000","2000"]},{default:r((()=>[c(i,{type:"error",class:"mx-4"},{default:r((()=>[m(f(n(A)("page.permission.codeButtonText",{code:["1000","2000"]})),1)])),_:1})])),_:1}),c(a,null,{default:r((()=>[m(f(n(A)("page.permission.functionWayTitle")),1)])),_:1}),n(j)("1000")?(u(),l(i,{key:0,type:"primary",class:"mx-4"},{default:r((()=>[m(f(n(A)("page.permission.codeButtonText",{code:"1000"})),1)])),_:1})):_("",!0),n(j)("2000")?(u(),l(i,{key:1,type:"success",class:"mx-4"},{default:r((()=>[m(f(n(A)("page.permission.codeButtonText",{code:"2000"})),1)])),_:1})):_("",!0),n(j)(["1000","2000"])?(u(),l(i,{key:2,type:"error",class:"mx-4"},{default:r((()=>[m(f(n(A)("page.permission.codeButtonText",{code:["1000","2000"]})),1)])),_:1})):_("",!0),c(a,null,{default:r((()=>[m(f(n(A)("page.permission.directiveWayTitle")),1)])),_:1}),x((u(),l(i,{type:"primary",class:"mx-4"},{default:r((()=>[m(f(n(A)("page.permission.codeButtonText",{code:"1000"})),1)])),_:1})),[[S,"1000"]]),x((u(),l(i,{type:"success",class:"mx-4"},{default:r((()=>[m(f(n(A)("page.permission.codeButtonText",{code:"2000"})),1)])),_:1})),[[S,"2000"]]),x((u(),l(i,{type:"error",class:"mx-4"},{default:r((()=>[m(f(n(A)("page.permission.codeButtonText",{code:["1000","2000"]})),1)])),_:1})),[[S,["1000","2000"]]])],64)):_("",!0)])),_:1},8,["title"])}}});export{j as default}; diff --git a/docs/assets/Checkbox-Kaq6uefv.js b/docs/assets/Checkbox-Kaq6uefv.js new file mode 100644 index 0000000..f65814e --- /dev/null +++ b/docs/assets/Checkbox-Kaq6uefv.js @@ -0,0 +1 @@ +import{v as e,au as n,d as o,D as r,ax as a,a as c,l,a4 as i,az as d,aD as t,y as s,z as b,Q as u,A as h,b5 as v,V as k,W as f,C as x,i as p,b1 as g,b7 as m,F as y,Y as C,G as w,aR as z,x as R,a_ as S,aY as D}from"./index-BT0ZcDkn.js";import{u as T}from"./use-merged-state-D7wGS6Km.js";const $=e("svg",{viewBox:"0 0 64 64",class:"check-icon"},e("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),A=e("svg",{viewBox:"0 0 100 100",class:"line-icon"},e("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),F=n("n-checkbox-group"),B=o({name:"CheckboxGroup",props:{min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},setup(e){const{mergedClsPrefixRef:n}=r(e),o=a(e),{mergedSizeRef:s,mergedDisabledRef:b}=o,u=c(e.defaultValue),h=l((()=>e.value)),v=T(h,u),k=l((()=>{var e;return(null===(e=v.value)||void 0===e?void 0:e.length)||0})),f=l((()=>Array.isArray(v.value)?new Set(v.value):new Set));return i(F,{checkedCountRef:k,maxRef:d(e,"max"),minRef:d(e,"min"),valueSetRef:f,disabledRef:b,mergedSizeRef:s,toggleCheckbox:function(n,r){const{nTriggerFormInput:a,nTriggerFormChange:c}=o,{onChange:l,"onUpdate:value":i,onUpdateValue:d}=e;if(Array.isArray(v.value)){const e=Array.from(v.value),o=e.findIndex((e=>e===r));n?~o||(e.push(r),d&&t(d,e,{actionType:"check",value:r}),i&&t(i,e,{actionType:"check",value:r}),a(),c(),u.value=e,l&&t(l,e)):~o&&(e.splice(o,1),d&&t(d,e,{actionType:"uncheck",value:r}),i&&t(i,e,{actionType:"uncheck",value:r}),l&&t(l,e),u.value=e,a(),c())}else n?(d&&t(d,[r],{actionType:"check",value:r}),i&&t(i,[r],{actionType:"check",value:r}),l&&t(l,[r]),u.value=[r],a(),c()):(d&&t(d,[],{actionType:"uncheck",value:r}),i&&t(i,[],{actionType:"uncheck",value:r}),l&&t(l,[]),u.value=[],a(),c())}}),{mergedClsPrefix:n}},render(){return e("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),V=s([b("checkbox","\n font-size: var(--n-font-size);\n outline: none;\n cursor: pointer;\n display: inline-flex;\n flex-wrap: nowrap;\n align-items: flex-start;\n word-break: break-word;\n line-height: var(--n-size);\n --n-merged-color-table: var(--n-color-table);\n ",[u("show-label","line-height: var(--n-label-line-height);"),s("&:hover",[b("checkbox-box",[h("border","border: var(--n-border-checked);")])]),s("&:focus:not(:active)",[b("checkbox-box",[h("border","\n border: var(--n-border-focus);\n box-shadow: var(--n-box-shadow-focus);\n ")])]),u("inside-table",[b("checkbox-box","\n background-color: var(--n-merged-color-table);\n ")]),u("checked",[b("checkbox-box","\n background-color: var(--n-color-checked);\n ",[b("checkbox-icon",[s(".check-icon","\n opacity: 1;\n transform: scale(1);\n ")])])]),u("indeterminate",[b("checkbox-box",[b("checkbox-icon",[s(".check-icon","\n opacity: 0;\n transform: scale(.5);\n "),s(".line-icon","\n opacity: 1;\n transform: scale(1);\n ")])])]),u("checked, indeterminate",[s("&:focus:not(:active)",[b("checkbox-box",[h("border","\n border: var(--n-border-checked);\n box-shadow: var(--n-box-shadow-focus);\n ")])]),b("checkbox-box","\n background-color: var(--n-color-checked);\n border-left: 0;\n border-top: 0;\n ",[h("border",{border:"var(--n-border-checked)"})])]),u("disabled",{cursor:"not-allowed"},[u("checked",[b("checkbox-box","\n background-color: var(--n-color-disabled-checked);\n ",[h("border",{border:"var(--n-border-disabled-checked)"}),b("checkbox-icon",[s(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),b("checkbox-box","\n background-color: var(--n-color-disabled);\n ",[h("border","\n border: var(--n-border-disabled);\n "),b("checkbox-icon",[s(".check-icon, .line-icon","\n fill: var(--n-check-mark-color-disabled);\n ")])]),h("label","\n color: var(--n-text-color-disabled);\n ")]),b("checkbox-box-wrapper","\n position: relative;\n width: var(--n-size);\n flex-shrink: 0;\n flex-grow: 0;\n user-select: none;\n -webkit-user-select: none;\n "),b("checkbox-box","\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n height: var(--n-size);\n width: var(--n-size);\n display: inline-block;\n box-sizing: border-box;\n border-radius: var(--n-border-radius);\n background-color: var(--n-color);\n transition: background-color 0.3s var(--n-bezier);\n ",[h("border","\n transition:\n border-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n border-radius: inherit;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border: var(--n-border);\n "),b("checkbox-icon","\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n left: 1px;\n right: 1px;\n top: 1px;\n bottom: 1px;\n ",[s(".check-icon, .line-icon","\n width: 100%;\n fill: var(--n-check-mark-color);\n opacity: 0;\n transform: scale(0.5);\n transform-origin: center;\n transition:\n fill 0.3s var(--n-bezier),\n transform 0.3s var(--n-bezier),\n opacity 0.3s var(--n-bezier),\n border-color 0.3s var(--n-bezier);\n "),v({left:"1px",top:"1px"})])]),h("label","\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n user-select: none;\n -webkit-user-select: none;\n padding: var(--n-label-padding);\n font-weight: var(--n-label-font-weight);\n ",[s("&:empty",{display:"none"})])]),k(b("checkbox","\n --n-merged-color-table: var(--n-color-table-modal);\n ")),f(b("checkbox","\n --n-merged-color-table: var(--n-color-table-popover);\n "))]),U=o({name:"Checkbox",props:Object.assign(Object.assign({},x.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),setup(e){const n=p(F,null),o=c(null),{mergedClsPrefixRef:i,inlineThemeDisabled:s,mergedRtlRef:b}=r(e),u=c(e.defaultChecked),h=d(e,"checked"),v=T(h,u),k=g((()=>{if(n){const o=n.valueSetRef.value;return!(!o||void 0===e.value)&&o.has(e.value)}return v.value===e.checkedValue})),f=a(e,{mergedSize(o){const{size:r}=e;if(void 0!==r)return r;if(n){const{value:e}=n.mergedSizeRef;if(void 0!==e)return e}if(o){const{mergedSize:e}=o;if(void 0!==e)return e.value}return"medium"},mergedDisabled(o){const{disabled:r}=e;if(void 0!==r)return r;if(n){if(n.disabledRef.value)return!0;const{maxRef:{value:e},checkedCountRef:o}=n;if(void 0!==e&&o.value>=e&&!k.value)return!0;const{minRef:{value:r}}=n;if(void 0!==r&&o.value<=r&&k.value)return!0}return!!o&&o.disabled.value}}),{mergedDisabledRef:R,mergedSizeRef:S}=f,D=x("Checkbox","-checkbox",V,m,e,i);function $(o){if(n&&void 0!==e.value)n.toggleCheckbox(!k.value,e.value);else{const{onChange:n,"onUpdate:checked":r,onUpdateChecked:a}=e,{nTriggerFormInput:c,nTriggerFormChange:l}=f,i=k.value?e.uncheckedValue:e.checkedValue;r&&t(r,i,o),a&&t(a,i,o),n&&t(n,i,o),c(),l(),u.value=i}}const A={focus:()=>{var e;null===(e=o.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=o.value)||void 0===e||e.blur()}},B=y("Checkbox",b,i),U=l((()=>{const{value:e}=S,{common:{cubicBezierEaseInOut:n},self:{borderRadius:o,color:r,colorChecked:a,colorDisabled:c,colorTableHeader:l,colorTableHeaderModal:i,colorTableHeaderPopover:d,checkMarkColor:t,checkMarkColorDisabled:s,border:b,borderFocus:u,borderDisabled:h,borderChecked:v,boxShadowFocus:k,textColor:f,textColorDisabled:x,checkMarkColorDisabledChecked:p,colorDisabledChecked:g,borderDisabledChecked:m,labelPadding:y,labelLineHeight:w,labelFontWeight:z,[C("fontSize",e)]:R,[C("size",e)]:T}}=D.value;return{"--n-label-line-height":w,"--n-label-font-weight":z,"--n-size":T,"--n-bezier":n,"--n-border-radius":o,"--n-border":b,"--n-border-checked":v,"--n-border-focus":u,"--n-border-disabled":h,"--n-border-disabled-checked":m,"--n-box-shadow-focus":k,"--n-color":r,"--n-color-checked":a,"--n-color-table":l,"--n-color-table-modal":i,"--n-color-table-popover":d,"--n-color-disabled":c,"--n-color-disabled-checked":g,"--n-text-color":f,"--n-text-color-disabled":x,"--n-check-mark-color":t,"--n-check-mark-color-disabled":s,"--n-check-mark-color-disabled-checked":p,"--n-font-size":R,"--n-label-padding":y}})),I=s?w("checkbox",l((()=>S.value[0])),U,e):void 0;return Object.assign(f,A,{rtlEnabled:B,selfRef:o,mergedClsPrefix:i,mergedDisabled:R,renderedChecked:k,mergedTheme:D,labelId:z(),handleClick:function(e){R.value||$(e)},handleKeyUp:function(e){if(!R.value)switch(e.key){case" ":case"Enter":$(e)}},handleKeyDown:function(e){if(" "===e.key)e.preventDefault()},cssVars:s?void 0:U,themeClass:null==I?void 0:I.themeClass,onRender:null==I?void 0:I.onRender})},render(){var n;const{$slots:o,renderedChecked:r,mergedDisabled:a,indeterminate:c,privateInsideTable:l,cssVars:i,labelId:d,label:t,mergedClsPrefix:s,focusable:b,handleKeyUp:u,handleKeyDown:h,handleClick:v}=this;null===(n=this.onRender)||void 0===n||n.call(this);const k=R(o.default,(n=>t||n?e("span",{class:`${s}-checkbox__label`,id:d},t||n):null));return e("div",{ref:"selfRef",class:[`${s}-checkbox`,this.themeClass,this.rtlEnabled&&`${s}-checkbox--rtl`,r&&`${s}-checkbox--checked`,a&&`${s}-checkbox--disabled`,c&&`${s}-checkbox--indeterminate`,l&&`${s}-checkbox--inside-table`,k&&`${s}-checkbox--show-label`],tabindex:a||!b?void 0:0,role:"checkbox","aria-checked":c?"mixed":r,"aria-labelledby":d,style:i,onKeyup:u,onKeydown:h,onClick:v,onMousedown:()=>{D("selectstart",window,(e=>{e.preventDefault()}),{once:!0})}},e("div",{class:`${s}-checkbox-box-wrapper`}," ",e("div",{class:`${s}-checkbox-box`},e(S,null,{default:()=>this.indeterminate?e("div",{key:"indeterminate",class:`${s}-checkbox-icon`},A):e("div",{key:"check",class:`${s}-checkbox-icon`},$)}),e("div",{class:`${s}-checkbox-box__border`}))),k)}});export{B as N,U as _}; diff --git a/docs/assets/Checkmark-DuWLWy-v.js b/docs/assets/Checkmark-DuWLWy-v.js new file mode 100644 index 0000000..dd6583d --- /dev/null +++ b/docs/assets/Checkmark-DuWLWy-v.js @@ -0,0 +1 @@ +import{d as a,v as l}from"./index-BT0ZcDkn.js";const r=a({name:"Checkmark",render:()=>l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},l("g",{fill:"none"},l("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))});export{r as F}; diff --git a/docs/assets/ChevronForwardCircleOutline-BjHSf1QY.js b/docs/assets/ChevronForwardCircleOutline-BjHSf1QY.js new file mode 100644 index 0000000..75e5f39 --- /dev/null +++ b/docs/assets/ChevronForwardCircleOutline-BjHSf1QY.js @@ -0,0 +1 @@ +import{d as r,o,p as n,g as t}from"./index-BT0ZcDkn.js";const e={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},l=[t("path",{d:"M64 256c0 106 86 192 192 192s192-86 192-192S362 64 256 64S64 150 64 256z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M216 352l96-96l-96-96"},null,-1)],s=r({name:"ChevronForwardCircleOutline",render:function(r,t){return o(),n("svg",e,l)}});export{s as C}; diff --git a/docs/assets/CurrentPermissionMode.vuevuetypescriptsetuptruelang-DP-DEThw.js b/docs/assets/CurrentPermissionMode.vuevuetypescriptsetuptruelang-DP-DEThw.js new file mode 100644 index 0000000..3b32c6a --- /dev/null +++ b/docs/assets/CurrentPermissionMode.vuevuetypescriptsetuptruelang-DP-DEThw.js @@ -0,0 +1 @@ +import{z as e,A as n,Q as o,bq as r,y as t,C as i,d as s,D as a,br as l,F as c,l as d,bs as b,Y as g,G as h,a as u,v,ai as p,bt as m,aI as f,x as z,bu as C,N as y,bv as x,bw as _,bx as w,by as M,bn as $,u as A,o as P,c as R,w as k,b as B,h as I,j,e as T,bz as L,B as S,L as F}from"./index-BT0ZcDkn.js";const H=e("alert","\n line-height: var(--n-line-height);\n border-radius: var(--n-border-radius);\n position: relative;\n transition: background-color .3s var(--n-bezier);\n background-color: var(--n-color);\n text-align: start;\n word-break: break-word;\n",[n("border","\n border-radius: inherit;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n transition: border-color .3s var(--n-bezier);\n border: var(--n-border);\n pointer-events: none;\n "),o("closable",[e("alert-body",[n("title","\n padding-right: 24px;\n ")])]),n("icon",{color:"var(--n-icon-color)"}),e("alert-body",{padding:"var(--n-padding)"},[n("title",{color:"var(--n-title-text-color)"}),n("content",{color:"var(--n-content-text-color)"})]),r({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),n("icon","\n position: absolute;\n left: 0;\n top: 0;\n align-items: center;\n justify-content: center;\n display: flex;\n width: var(--n-icon-size);\n height: var(--n-icon-size);\n font-size: var(--n-icon-size);\n margin: var(--n-icon-margin);\n "),n("close","\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n position: absolute;\n right: 0;\n top: 0;\n margin: var(--n-close-margin);\n "),o("show-icon",[e("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),o("right-adjust",[e("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),e("alert-body","\n border-radius: var(--n-border-radius);\n transition: border-color .3s var(--n-bezier);\n ",[n("title","\n transition: color .3s var(--n-bezier);\n font-size: 16px;\n line-height: 19px;\n font-weight: var(--n-title-font-weight);\n ",[t("& +",[n("content",{marginTop:"9px"})])]),n("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),n("icon",{transition:"color .3s var(--n-bezier)"})]),E=s({name:"Alert",inheritAttrs:!1,props:Object.assign(Object.assign({},i.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),setup(e){const{mergedClsPrefixRef:n,mergedBorderedRef:o,inlineThemeDisabled:r,mergedRtlRef:t}=a(e),s=i("Alert","-alert",H,l,e,n),v=c("Alert",t,n),p=d((()=>{const{common:{cubicBezierEaseInOut:n},self:o}=s.value,{fontSize:r,borderRadius:t,titleFontWeight:i,lineHeight:a,iconSize:l,iconMargin:c,iconMarginRtl:d,closeIconSize:h,closeBorderRadius:u,closeSize:v,closeMargin:p,closeMarginRtl:m,padding:f}=o,{type:z}=e,{left:C,right:y}=b(c);return{"--n-bezier":n,"--n-color":o[g("color",z)],"--n-close-icon-size":h,"--n-close-border-radius":u,"--n-close-color-hover":o[g("closeColorHover",z)],"--n-close-color-pressed":o[g("closeColorPressed",z)],"--n-close-icon-color":o[g("closeIconColor",z)],"--n-close-icon-color-hover":o[g("closeIconColorHover",z)],"--n-close-icon-color-pressed":o[g("closeIconColorPressed",z)],"--n-icon-color":o[g("iconColor",z)],"--n-border":o[g("border",z)],"--n-title-text-color":o[g("titleTextColor",z)],"--n-content-text-color":o[g("contentTextColor",z)],"--n-line-height":a,"--n-border-radius":t,"--n-font-size":r,"--n-title-font-weight":i,"--n-icon-size":l,"--n-icon-margin":c,"--n-icon-margin-rtl":d,"--n-close-size":v,"--n-close-margin":p,"--n-close-margin-rtl":m,"--n-padding":f,"--n-icon-margin-left":C,"--n-icon-margin-right":y}})),m=r?h("alert",d((()=>e.type[0])),p,e):void 0,f=u(!0);return{rtlEnabled:v,mergedClsPrefix:n,mergedBordered:o,visible:f,handleCloseClick:()=>{var n;Promise.resolve(null===(n=e.onClose)||void 0===n?void 0:n.call(e)).then((e=>{!1!==e&&(f.value=!1)}))},handleAfterLeave:()=>{(()=>{const{onAfterLeave:n,onAfterHide:o}=e;n&&n(),o&&o()})()},mergedTheme:s,cssVars:r?void 0:p,themeClass:null==m?void 0:m.themeClass,onRender:null==m?void 0:m.onRender}},render(){var e;return null===(e=this.onRender)||void 0===e||e.call(this),v(C,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:e,$slots:n}=this,o={class:[`${e}-alert`,this.themeClass,this.closable&&`${e}-alert--closable`,this.showIcon&&`${e}-alert--show-icon`,!this.title&&this.closable&&`${e}-alert--right-adjust`,this.rtlEnabled&&`${e}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?v("div",Object.assign({},p(this.$attrs,o)),this.closable&&v(m,{clsPrefix:e,class:`${e}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&v("div",{class:`${e}-alert__border`}),this.showIcon&&v("div",{class:`${e}-alert__icon`,"aria-hidden":"true"},f(n.icon,(()=>[v(y,{clsPrefix:e},{default:()=>{switch(this.type){case"success":return v(M,null);case"info":return v(w,null);case"warning":return v(_,null);case"error":return v(x,null);default:return null}}})]))),v("div",{class:[`${e}-alert-body`,this.mergedBordered&&`${e}-alert-body--bordered`]},z(n.header,(n=>{const o=n||this.title;return o?v("div",{class:`${e}-alert-body__title`},o):null})),n.default&&v("div",{class:`${e}-alert-body__content`},n))):null}})}}),O=s({__name:"CurrentPermissionMode",setup(e){const{togglePermissionMode:n,getPermissionMode:o}=$(),{t:r}=A();return(e,t)=>{const i=S,s=F;return P(),R(s,{title:T(r)("page.permission.permissionMode.currentMode"),embedded:"",bordered:!1},{default:k((()=>[B(i,{type:"info"},{default:k((()=>[I(j(T(o)===T(L).BACKEND?T(r)("page.permission.permissionMode.backendMode"):T(r)("page.permission.permissionMode.frontendMode")),1)])),_:1}),B(i,{class:"ml-4",type:"primary",onClick:T(n)},{default:k((()=>[I(j(T(r)("page.permission.permissionMode.toggleMode")),1)])),_:1},8,["onClick"])])),_:1},8,["title"])}}});export{O as _,E as a}; diff --git a/docs/assets/DataTable-CDcTRuJS.js b/docs/assets/DataTable-CDcTRuJS.js new file mode 100644 index 0000000..79f7e38 --- /dev/null +++ b/docs/assets/DataTable-CDcTRuJS.js @@ -0,0 +1 @@ +import{d as e,v as t,z as n,U as o,Q as r,aT as a,C as l,aU as i,a as d,l as s,aV as c,ai as u,a3 as h,au as p,D as f,i as v,N as g,A as m,y as b,aW as y,Y as x,F as R,G as C,x as w,a8 as k,aO as S,B as z,av as P,aL as F,aX as T,aY as $,aZ as E,H as O,aP as K,a_ as L,a$ as A,b0 as I,b1 as N,a1 as U,b2 as M,am as H,b3 as B,aK as j,b4 as D,aI as _,aD as V,a0 as W,az as q,aw as X,b5 as G,V as Y,W as Z,b6 as Q,a4 as J,aR as ee,T as te}from"./index-BT0ZcDkn.js";import{N as ne,_ as oe}from"./Checkbox-Kaq6uefv.js";import{s as re,r as ae,_ as le}from"./RadioGroup-BozaTzAB.js";import{_ as ie}from"./Popover-3mPJ01hC.js";import{C as de}from"./Input-D2qMgPO1.js";import{_ as se,C as ce}from"./Dropdown-BMB08iEg.js";import{V as ue}from"./FocusDetector-C7V71fRC.js";import{h as he,c as pe}from"./create-Bylz8BGN.js";import{_ as fe}from"./Tooltip-BFoQMn72.js";import{_ as ve}from"./Empty-C_CzYco1.js";import{g as ge,_ as me}from"./Pagination-YSg8zdta.js";import{u as be}from"./use-merged-state-D7wGS6Km.js";import{b as ye}from"./next-frame-once-DiJwGkuW.js";import{u as xe}from"./use-locale-CbMPSc0o.js";const Re=e({name:"ArrowDown",render:()=>t("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},t("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},t("g",{"fill-rule":"nonzero"},t("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}),Ce=e({name:"Filter",render:()=>t("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},t("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},t("g",{"fill-rule":"nonzero"},t("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}),we=n("ellipsis",{overflow:"hidden"},[o("line-clamp","\n white-space: nowrap;\n display: inline-block;\n vertical-align: bottom;\n max-width: 100%;\n "),r("line-clamp","\n display: -webkit-inline-box;\n -webkit-box-orient: vertical;\n "),r("cursor-pointer","\n cursor: pointer;\n ")]);function ke(e){return`${e}-ellipsis--line-clamp`}function Se(e,t){return`${e}-ellipsis--cursor-${t}`}const ze=Object.assign(Object.assign({},l.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),Pe=e({name:"Ellipsis",inheritAttrs:!1,props:ze,setup(e,{slots:n,attrs:o}){const r=a(),h=l("Ellipsis","-ellipsis",we,i,e,r),p=d(null),f=d(null),v=d(null),g=d(!1),m=s((()=>{const{lineClamp:t}=e,{value:n}=g;return void 0!==t?{textOverflow:"","-webkit-line-clamp":n?"":t}:{textOverflow:n?"":"ellipsis","-webkit-line-clamp":""}}));function b(){let t=!1;const{value:n}=g;if(n)return!0;const{value:o}=p;if(o){const{lineClamp:n}=e;if(function(t){if(!t)return;const n=m.value,o=ke(r.value);void 0!==e.lineClamp?x(t,o,"add"):x(t,o,"remove");for(const e in n)t.style[e]!==n[e]&&(t.style[e]=n[e])}(o),void 0!==n)t=o.scrollHeight<=o.offsetHeight;else{const{value:e}=f;e&&(t=e.getBoundingClientRect().width<=o.getBoundingClientRect().width)}!function(t,n){const o=Se(r.value,"pointer");"click"!==e.expandTrigger||n?x(t,o,"remove"):x(t,o,"add")}(o,t)}return t}const y=s((()=>"click"===e.expandTrigger?()=>{var e;const{value:t}=g;t&&(null===(e=v.value)||void 0===e||e.setShow(!1)),g.value=!t}:void 0));c((()=>{var t;e.tooltip&&(null===(t=v.value)||void 0===t||t.setShow(!1))}));function x(e,t,n){"add"===n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}return{mergedTheme:h,triggerRef:p,triggerInnerRef:f,tooltipRef:v,handleClick:y,renderTrigger:()=>t("span",Object.assign({},u(o,{class:[`${r.value}-ellipsis`,void 0!==e.lineClamp?ke(r.value):void 0,"click"===e.expandTrigger?Se(r.value,"pointer"):void 0],style:m.value}),{ref:"triggerRef",onClick:y.value,onMouseenter:"click"===e.expandTrigger?b:void 0}),e.lineClamp?n:t("span",{ref:"triggerInnerRef"},n)),getTooltipDisabled:b}},render(){var e;const{tooltip:n,renderTrigger:o,$slots:r}=this;if(n){const{mergedTheme:a}=this;return t(fe,Object.assign({ref:"tooltipRef",placement:"top"},n,{getDisabled:this.getTooltipDisabled,theme:a.peers.Tooltip,themeOverrides:a.peerOverrides.Tooltip}),{trigger:o,default:null!==(e=r.tooltip)&&void 0!==e?e:r.default})}return o()}}),Fe=e({name:"PerformantEllipsis",props:ze,inheritAttrs:!1,setup(e,{attrs:n,slots:o}){const r=d(!1),l=a();h("-ellipsis",we,l);return{mouseEntered:r,renderTrigger:()=>{const{lineClamp:a}=e,i=l.value;return t("span",Object.assign({},u(n,{class:[`${i}-ellipsis`,void 0!==a?ke(i):void 0,"click"===e.expandTrigger?Se(i,"pointer"):void 0],style:void 0===a?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":a}}),{onMouseenter:()=>{r.value=!0}}),a?o:t("span",null,o))}}},render(){return this.mouseEntered?t(Pe,u({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),Te=Object.assign(Object.assign({},l.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,virtualScrollX:Boolean,virtualScrollHeader:Boolean,headerHeight:{type:Number,default:28},heightForRow:Function,minRowHeight:{type:Number,default:28},tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),$e=p("n-data-table"),Ee=e({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),Oe=e({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=f(),{mergedSortStateRef:n,mergedClsPrefixRef:o}=v($e),r=s((()=>n.value.find((t=>t.columnKey===e.column.key)))),a=s((()=>void 0!==r.value)),l=s((()=>{const{value:e}=r;return!(!e||!a.value)&&e.order})),i=s((()=>{var n,o;return(null===(o=null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.DataTable)||void 0===o?void 0:o.renderSorter)||e.column.renderSorter}));return{mergedClsPrefix:o,active:a,mergedSortOrder:l,mergedRenderSorter:i}},render(){const{mergedRenderSorter:e,mergedSortOrder:n,mergedClsPrefix:o}=this,{renderSorterIcon:r}=this.column;return e?t(Ee,{render:e,order:n}):t("span",{class:[`${o}-data-table-sorter`,"ascend"===n&&`${o}-data-table-sorter--asc`,"descend"===n&&`${o}-data-table-sorter--desc`]},r?r({order:n}):t(g,{clsPrefix:o},{default:()=>t(Re,null)}))}}),Ke=n("radio","\n line-height: var(--n-label-line-height);\n outline: none;\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n display: inline-flex;\n align-items: flex-start;\n flex-wrap: nowrap;\n font-size: var(--n-font-size);\n word-break: break-word;\n",[r("checked",[m("dot","\n background-color: var(--n-color-active);\n ")]),m("dot-wrapper","\n position: relative;\n flex-shrink: 0;\n flex-grow: 0;\n width: var(--n-radio-size);\n "),n("radio-input","\n position: absolute;\n border: 0;\n border-radius: inherit;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n opacity: 0;\n z-index: 1;\n cursor: pointer;\n "),m("dot","\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n height: var(--n-radio-size);\n width: var(--n-radio-size);\n background: var(--n-color);\n box-shadow: var(--n-box-shadow);\n border-radius: 50%;\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n ",[b("&::before",'\n content: "";\n opacity: 0;\n position: absolute;\n left: 4px;\n top: 4px;\n height: calc(100% - 8px);\n width: calc(100% - 8px);\n border-radius: 50%;\n transform: scale(.8);\n background: var(--n-dot-color-active);\n transition: \n opacity .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n transform .3s var(--n-bezier);\n '),r("checked",{boxShadow:"var(--n-box-shadow-active)"},[b("&::before","\n opacity: 1;\n transform: scale(1);\n ")])]),m("label","\n color: var(--n-text-color);\n padding: var(--n-label-padding);\n font-weight: var(--n-label-font-weight);\n display: inline-block;\n transition: color .3s var(--n-bezier);\n "),o("disabled","\n cursor: pointer;\n ",[b("&:hover",[m("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),r("focus",[b("&:not(:active)",[m("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),r("disabled","\n cursor: not-allowed;\n ",[m("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[b("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),r("checked","\n opacity: 1;\n ")]),m("label",{color:"var(--n-text-color-disabled)"}),n("radio-input","\n cursor: not-allowed;\n ")])]),Le=e({name:"Radio",props:Object.assign(Object.assign({},l.props),ae),setup(e){const t=re(e),n=l("Radio","-radio",Ke,y,e,t.mergedClsPrefix),o=s((()=>{const{mergedSize:{value:e}}=t,{common:{cubicBezierEaseInOut:o},self:{boxShadow:r,boxShadowActive:a,boxShadowDisabled:l,boxShadowFocus:i,boxShadowHover:d,color:s,colorDisabled:c,colorActive:u,textColor:h,textColorDisabled:p,dotColorActive:f,dotColorDisabled:v,labelPadding:g,labelLineHeight:m,labelFontWeight:b,[x("fontSize",e)]:y,[x("radioSize",e)]:R}}=n.value;return{"--n-bezier":o,"--n-label-line-height":m,"--n-label-font-weight":b,"--n-box-shadow":r,"--n-box-shadow-active":a,"--n-box-shadow-disabled":l,"--n-box-shadow-focus":i,"--n-box-shadow-hover":d,"--n-color":s,"--n-color-active":u,"--n-color-disabled":c,"--n-dot-color-active":f,"--n-dot-color-disabled":v,"--n-font-size":y,"--n-radio-size":R,"--n-text-color":h,"--n-text-color-disabled":p,"--n-label-padding":g}})),{inlineThemeDisabled:r,mergedClsPrefixRef:a,mergedRtlRef:i}=f(e),d=R("Radio",i,a),c=r?C("radio",s((()=>t.mergedSize.value[0])),o,e):void 0;return Object.assign(t,{rtlEnabled:d,cssVars:r?void 0:o,themeClass:null==c?void 0:c.themeClass,onRender:null==c?void 0:c.onRender})},render(){const{$slots:e,mergedClsPrefix:n,onRender:o,label:r}=this;return null==o||o(),t("label",{class:[`${n}-radio`,this.themeClass,this.rtlEnabled&&`${n}-radio--rtl`,this.mergedDisabled&&`${n}-radio--disabled`,this.renderSafeChecked&&`${n}-radio--checked`,this.focus&&`${n}-radio--focus`],style:this.cssVars},t("input",{ref:"inputRef",type:"radio",class:`${n}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),t("div",{class:`${n}-radio__dot-wrapper`}," ",t("div",{class:[`${n}-radio__dot`,this.renderSafeChecked&&`${n}-radio__dot--checked`]})),w(e.default,(e=>e||r?t("div",{ref:"labelRef",class:`${n}-radio__label`},e||r):null)))}});function Ae(e){return"selection"===e.type||"expand"===e.type?void 0===e.width?40:k(e.width):"children"in e?void 0:"string"==typeof e.width?k(e.width):e.width}function Ie(e){return"selection"===e.type?"__n_selection__":"expand"===e.type?"__n_expand__":e.key}function Ne(e){return e&&"object"==typeof e?Object.assign({},e):e}function Ue(e,t){if(void 0!==t)return{width:t,minWidth:t,maxWidth:t};const n="selection"===(o=e).type?S(null!==(r=o.width)&&void 0!==r?r:40):"expand"===o.type?S(null!==(a=o.width)&&void 0!==a?a:40):"children"in o?void 0:S(o.width);var o,r,a;const{minWidth:l,maxWidth:i}=e;return{width:n,minWidth:S(l)||n,maxWidth:S(i)}}function Me(e){return void 0!==e.filterOptionValues||void 0===e.filterOptionValue&&void 0!==e.defaultFilterOptionValues}function He(e){return!("children"in e)&&!!e.sorter}function Be(e){return(!("children"in e)||!e.children.length)&&!!e.resizable}function je(e){return!("children"in e)&&!(!e.filter||!e.filterOptions&&!e.renderFilterMenu)}function De(e){return e?"descend"===e&&"ascend":"descend"}function _e(e,t){return void 0!==t.find((t=>t.columnKey===e.key&&t.order))}const Ve=e({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=f(e),o=R("DataTable",n,t),{mergedClsPrefixRef:r,mergedThemeRef:a,localeRef:l}=v($e),i=d(e.value);function c(t){e.onChange(t)}return{mergedClsPrefix:r,rtlEnabled:o,mergedTheme:a,locale:l,checkboxGroupValue:s((()=>{const{value:e}=i;return Array.isArray(e)?e:null})),radioGroupValue:s((()=>{const{value:t}=i;return Me(e.column)?Array.isArray(t)&&t.length&&t[0]||null:Array.isArray(t)?null:t})),handleChange:function(t){e.multiple&&Array.isArray(t)?i.value=t:Me(e.column)&&!Array.isArray(t)?i.value=[t]:i.value=t},handleConfirmClick:function(){c(i.value),e.onConfirm()},handleClearClick:function(){e.multiple||Me(e.column)?c([]):c(null),e.onClear()}}},render(){const{mergedTheme:e,locale:n,mergedClsPrefix:o}=this;return t("div",{class:[`${o}-data-table-filter-menu`,this.rtlEnabled&&`${o}-data-table-filter-menu--rtl`]},t(P,null,{default:()=>{const{checkboxGroupValue:n,handleChange:r}=this;return this.multiple?t(ne,{value:n,class:`${o}-data-table-filter-menu__group`,onUpdateValue:r},{default:()=>this.options.map((n=>t(oe,{key:n.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:n.value},{default:()=>n.label})))}):t(le,{name:this.radioGroupName,class:`${o}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map((n=>t(Le,{key:n.value,value:n.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>n.label})))})}}),t("div",{class:`${o}-data-table-filter-menu__action`},t(z,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>n.clear}),t(z,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>n.confirm})))}}),We=e({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}});const qe=e({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=f(),{mergedThemeRef:n,mergedClsPrefixRef:o,mergedFilterStateRef:r,filterMenuCssVarsRef:a,paginationBehaviorOnFilterRef:l,doUpdatePage:i,doUpdateFilters:c,filterIconPopoverPropsRef:u}=v($e),h=d(!1),p=r,g=s((()=>!1!==e.column.filterMultiple)),m=s((()=>{const t=p.value[e.column.key];if(void 0===t){const{value:e}=g;return e?[]:null}return t})),b=s((()=>{const{value:e}=m;return Array.isArray(e)?e.length>0:null!==e})),y=s((()=>{var n,o;return(null===(o=null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.DataTable)||void 0===o?void 0:o.renderFilter)||e.column.renderFilter}));return{mergedTheme:n,mergedClsPrefix:o,active:b,showPopover:h,mergedRenderFilter:y,filterIconPopoverProps:u,filterMultiple:g,mergedFilterValue:m,filterMenuCssVars:a,handleFilterChange:function(t){const n=function(e,t,n){const o=Object.assign({},e);return o[t]=n,o}(p.value,e.column.key,t);c(n,e.column),"first"===l.value&&i(1)},handleFilterMenuConfirm:function(){h.value=!1},handleFilterMenuCancel:function(){h.value=!1}}},render(){const{mergedTheme:e,mergedClsPrefix:n,handleFilterMenuCancel:o,filterIconPopoverProps:r}=this;return t(ie,Object.assign({show:this.showPopover,onUpdateShow:e=>this.showPopover=e,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},r,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:e}=this;if(e)return t(We,{"data-data-table-filter":!0,render:e,active:this.active,show:this.showPopover});const{renderFilterIcon:o}=this.column;return t("div",{"data-data-table-filter":!0,class:[`${n}-data-table-filter`,{[`${n}-data-table-filter--active`]:this.active,[`${n}-data-table-filter--show`]:this.showPopover}]},o?o({active:this.active,show:this.showPopover}):t(g,{clsPrefix:n},{default:()=>t(Ce,null)}))},default:()=>{const{renderFilterMenu:e}=this.column;return e?e({hide:o}):t(Ve,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),Xe=e({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=v($e),n=d(!1);let o=0;function r(e){return e.clientX}function a(t){var n;null===(n=e.onResize)||void 0===n||n.call(e,r(t)-o)}function l(){var t;n.value=!1,null===(t=e.onResizeEnd)||void 0===t||t.call(e),T("mousemove",window,a),T("mouseup",window,l)}return F((()=>{T("mousemove",window,a),T("mouseup",window,l)})),{mergedClsPrefix:t,active:n,handleMousedown:function(t){var i;t.preventDefault();const d=n.value;o=r(t),n.value=!0,d||($("mousemove",window,a),$("mouseup",window,l),null===(i=e.onResizeStart)||void 0===i||i.call(e))}}},render(){const{mergedClsPrefix:e}=this;return t("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),Ge="_n_all__",Ye="_n_none__";const Ze=e({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:n,localeRef:o,checkOptionsRef:r,rawPaginatedDataRef:a,doCheckAll:l,doUncheckAll:i}=v($e),d=s((()=>function(e,t,n,o){return e?r=>{for(const a of e)switch(r){case Ge:return void n(!0);case Ye:return void o(!0);default:if("object"==typeof a&&a.key===r)return void a.onSelect(t.value)}}:()=>{}}(r.value,a,l,i))),c=s((()=>function(e,t){return e?e.map((e=>{switch(e){case"all":return{label:t.checkTableAll,key:Ge};case"none":return{label:t.uncheckTableAll,key:Ye};default:return e}})):[]}(r.value,o.value)));return()=>{var o,r,a,l;const{clsPrefix:i}=e;return t(se,{theme:null===(r=null===(o=n.theme)||void 0===o?void 0:o.peers)||void 0===r?void 0:r.Dropdown,themeOverrides:null===(l=null===(a=n.themeOverrides)||void 0===a?void 0:a.peers)||void 0===l?void 0:l.Dropdown,options:c.value,onSelect:d.value},{default:()=>t(g,{clsPrefix:i,class:`${i}-data-table-check-extra`},{default:()=>t(de,null)})})}}});function Qe(e){return"function"==typeof e.title?e.title(e):e.title}const Je=e({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},width:String},render(){const{clsPrefix:e,id:n,cols:o,width:r}=this;return t("table",{style:{tableLayout:"fixed",width:r},class:`${e}-data-table-table`},t("colgroup",null,o.map((e=>t("col",{key:e.key,style:e.style})))),t("thead",{"data-n-id":n,class:`${e}-data-table-thead`},this.$slots))}}),et=e({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:o,mergedCurrentPageRef:r,allRowsCheckedRef:a,someRowsCheckedRef:l,rowsRef:i,colsRef:s,mergedThemeRef:c,checkOptionsRef:u,mergedSortStateRef:h,componentId:p,mergedTableLayoutRef:f,headerCheckboxDisabledRef:g,virtualScrollHeaderRef:m,headerHeightRef:b,onUnstableColumnResize:y,doUpdateResizableWidth:x,handleTableHeaderScroll:R,deriveNextSorter:C,doUncheckAll:w,doCheckAll:k}=v($e),S=d(),z=d({});function P(e){const t=z.value[e];return null==t?void 0:t.getBoundingClientRect().width}const F=new Map;return{cellElsRef:z,componentId:p,mergedSortState:h,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:o,currentPage:r,allRowsChecked:a,someRowsChecked:l,rows:i,cols:s,mergedTheme:c,checkOptions:u,mergedTableLayout:f,headerCheckboxDisabled:g,headerHeight:b,virtualScrollHeader:m,virtualListRef:S,handleCheckboxUpdateChecked:function(){a.value?w():k()},handleColHeaderClick:function(e,t){if(he(e,"dataTableFilter")||he(e,"dataTableResizable"))return;if(!He(t))return;const n=h.value.find((e=>e.columnKey===t.key))||null,o=function(e,t){return void 0===e.sorter?null:null===t||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:De(!1)}:Object.assign(Object.assign({},t),{order:De(t.order)})}(t,n);C(o)},handleTableHeaderScroll:R,handleColumnResizeStart:function(e){F.set(e.key,P(e.key))},handleColumnResize:function(e,t){const n=F.get(e.key);if(void 0===n)return;const o=n+t,r=(a=o,l=e.minWidth,void 0!==(i=e.maxWidth)&&(a=Math.min(a,"number"==typeof i?i:Number.parseFloat(i))),void 0!==l&&(a=Math.max(a,"number"==typeof l?l:Number.parseFloat(l))),a);var a,l,i;y(o,r,e,P),x(e,r)}}},render(){const{cellElsRef:e,mergedClsPrefix:n,fixedColumnLeftMap:o,fixedColumnRightMap:r,currentPage:a,allRowsChecked:l,someRowsChecked:i,rows:d,cols:s,mergedTheme:c,checkOptions:u,componentId:h,discrete:p,mergedTableLayout:f,headerCheckboxDisabled:v,mergedSortState:g,virtualScrollHeader:m,handleColHeaderClick:b,handleCheckboxUpdateChecked:y,handleColumnResizeStart:x,handleColumnResize:R}=this,C=(d,s,h)=>d.map((({column:d,colIndex:p,colSpan:f,rowSpan:m,isLast:C})=>{var w,k;const S=Ie(d),{ellipsis:z}=d,P=S in o,F=S in r,T=s&&!d.fixed?"div":"th";return t(T,{ref:t=>e[S]=t,key:S,style:[s&&!d.fixed?{position:"absolute",left:E(s(p)),top:0,bottom:0}:{left:E(null===(w=o[S])||void 0===w?void 0:w.start),right:E(null===(k=r[S])||void 0===k?void 0:k.start)},{width:E(d.width),textAlign:d.titleAlign||d.align,height:h}],colspan:f,rowspan:m,"data-col-key":S,class:[`${n}-data-table-th`,(P||F)&&`${n}-data-table-th--fixed-${P?"left":"right"}`,{[`${n}-data-table-th--sorting`]:_e(d,g),[`${n}-data-table-th--filterable`]:je(d),[`${n}-data-table-th--sortable`]:He(d),[`${n}-data-table-th--selection`]:"selection"===d.type,[`${n}-data-table-th--last`]:C},d.className],onClick:"selection"===d.type||"expand"===d.type||"children"in d?void 0:e=>{b(e,d)}},"selection"===d.type?!1!==d.multiple?t(O,null,t(oe,{key:a,privateInsideTable:!0,checked:l,indeterminate:i,disabled:v,onUpdateChecked:y}),u?t(Ze,{clsPrefix:n}):null):null:t(O,null,t("div",{class:`${n}-data-table-th__title-wrapper`},t("div",{class:`${n}-data-table-th__title`},!0===z||z&&!z.tooltip?t("div",{class:`${n}-data-table-th__ellipsis`},Qe(d)):z&&"object"==typeof z?t(Pe,Object.assign({},z,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Qe(d)}):Qe(d)),He(d)?t(Oe,{column:d}):null),je(d)?t(qe,{column:d,options:d.filterOptions}):null,Be(d)?t(Xe,{onResizeStart:()=>{x(d)},onResize:e=>{R(d,e)}}):null))}));if(m){const{headerHeight:e}=this;let o=0,r=0;return s.forEach((e=>{"left"===e.column.fixed?o++:"right"===e.column.fixed&&r++})),t(ue,{ref:"virtualListRef",class:`${n}-data-table-base-table-header`,style:{height:E(e)},onScroll:this.handleTableHeaderScroll,columns:s,itemSize:e,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:Je,visibleItemsProps:{clsPrefix:n,id:h,cols:s,width:S(this.scrollX)},renderItemWithCols:({startColIndex:n,endColIndex:a,getLeft:l})=>{const i=s.map(((e,t)=>({column:e.column,isLast:t===s.length-1,colIndex:e.index,colSpan:1,rowSpan:1}))).filter((({column:e},t)=>n<=t&&t<=a||!!e.fixed)),d=C(i,l,E(e));return d.splice(o,0,t("th",{colspan:s.length-o-r,style:{pointerEvents:"none",visibility:"hidden",height:0}})),t("tr",{style:{position:"relative"}},d)}},{default:({renderedItemWithCols:e})=>e})}const w=t("thead",{class:`${n}-data-table-thead`,"data-n-id":h},d.map((e=>t("tr",{class:`${n}-data-table-tr`},C(e,null,void 0)))));if(!p)return w;const{handleTableHeaderScroll:k,scrollX:z}=this;return t("div",{class:`${n}-data-table-base-table-header`,onScroll:k},t("table",{class:`${n}-data-table-table`,style:{minWidth:S(z),tableLayout:f}},t("colgroup",null,s.map((e=>t("col",{key:e.key,style:e.style})))),w))}}),tt=e({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:n,column:o,row:r,renderCell:a}=this;let l;const{render:i,key:d,ellipsis:s}=o;if(l=i&&!n?i(r,this.index):n?null===(e=r[d])||void 0===e?void 0:e.value:a?a(K(r,d),r,o):K(r,d),s){if("object"==typeof s){const{mergedTheme:e}=this;return"performant-ellipsis"===o.ellipsisComponent?t(Fe,Object.assign({},s,{theme:e.peers.Ellipsis,themeOverrides:e.peerOverrides.Ellipsis}),{default:()=>l}):t(Pe,Object.assign({},s,{theme:e.peers.Ellipsis,themeOverrides:e.peerOverrides.Ellipsis}),{default:()=>l})}return t("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},l)}return l}}),nt=e({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function},rowData:{type:Object,required:!0}},render(){const{clsPrefix:e}=this;return t("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:e=>{e.preventDefault()}},t(L,null,{default:()=>this.loading?t(A,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):t(g,{clsPrefix:e,key:"base-icon"},{default:()=>t(ce,null)})}))}}),ot=e({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:n,mergedInderminateRowKeySetRef:o}=v($e);return()=>{const{rowKey:r}=e;return t(oe,{privateInsideTable:!0,disabled:e.disabled,indeterminate:o.value.has(r),checked:n.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),rt=e({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:n,componentId:o}=v($e);return()=>{const{rowKey:r}=e;return t(Le,{name:o,disabled:e.disabled,checked:n.value.has(r),onUpdateChecked:e.onUpdateChecked})}}});function at(e,t){const n=[];function o(e,r){e.forEach((e=>{e.children&&t.has(e.key)?(n.push({tmNode:e,striped:!1,key:e.key,index:r}),o(e.children,r)):n.push({key:e.key,tmNode:e,striped:!1,index:r})}))}return e.forEach((e=>{n.push(e);const{children:r}=e.tmNode;r&&t.has(e.key)&&o(r,e.index)})),n}const lt=e({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:n,cols:o,onMouseenter:r,onMouseleave:a}=this;return t("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:a},t("colgroup",null,o.map((e=>t("col",{key:e.key,style:e.style})))),t("tbody",{"data-n-id":n,class:`${e}-data-table-tbody`},this.$slots))}}),it=e({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:o,mergedClsPrefixRef:r,mergedThemeRef:a,scrollXRef:l,colsRef:i,paginatedDataRef:c,rawPaginatedDataRef:u,fixedColumnLeftMapRef:h,fixedColumnRightMapRef:p,mergedCurrentPageRef:f,rowClassNameRef:g,leftActiveFixedColKeyRef:m,leftActiveFixedChildrenColKeysRef:y,rightActiveFixedColKeyRef:x,rightActiveFixedChildrenColKeysRef:R,renderExpandRef:C,hoverKeyRef:w,summaryRef:k,mergedSortStateRef:S,virtualScrollRef:z,virtualScrollXRef:P,heightForRowRef:F,minRowHeightRef:T,componentId:$,mergedTableLayoutRef:E,childTriggerColIndexRef:O,indentRef:K,rowPropsRef:L,maxHeightRef:A,stripedRef:B,loadingRef:D,onLoadRef:_,loadingKeySetRef:V,expandableRef:W,stickyExpandedRowsRef:q,renderExpandIconRef:X,summaryPlacementRef:G,treeMateRef:Y,scrollbarPropsRef:Z,setHeaderScrollLeft:Q,doUpdateExpandedRowKeys:J,handleTableBodyScroll:ee,doCheck:te,doUncheck:ne,renderCell:oe}=v($e),re=v(I),ae=d(null),le=d(null),ie=d(null),de=N((()=>0===c.value.length)),se=N((()=>e.showHeader||!de.value)),ce=N((()=>e.showHeader||de.value));let ue="";const he=s((()=>new Set(o.value)));function pe(e){var t;return null===(t=Y.value.getNode(e))||void 0===t?void 0:t.rawNode}function fe(){const{value:e}=le;return(null==e?void 0:e.listElRef)||null}const ve={getScrollContainer:function(){if(!se.value){const{value:e}=ie;return e||null}if(z.value)return fe();const{value:e}=ae;return e?e.containerRef:null},scrollTo(e,t){var n,o;z.value?null===(n=le.value)||void 0===n||n.scrollTo(e,t):null===(o=ae.value)||void 0===o||o.scrollTo(e,t)}},ge=b([({props:e})=>{const t=t=>null===t?null:b(`[data-n-id="${e.componentId}"] [data-col-key="${t}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),n=t=>null===t?null:b(`[data-n-id="${e.componentId}"] [data-col-key="${t}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return b([t(e.leftActiveFixedColKey),n(e.rightActiveFixedColKey),e.leftActiveFixedChildrenColKeys.map((e=>t(e))),e.rightActiveFixedChildrenColKeys.map((e=>n(e)))])}]);let me=!1;return U((()=>{const{value:e}=m,{value:t}=y,{value:n}=x,{value:o}=R;if(!me&&null===e&&null===n)return;const r={leftActiveFixedColKey:e,leftActiveFixedChildrenColKeys:t,rightActiveFixedColKey:n,rightActiveFixedChildrenColKeys:o,componentId:$};ge.mount({id:`n-${$}`,force:!0,props:r,anchorMetaName:M,parent:null==re?void 0:re.styleMountTarget}),me=!0})),H((()=>{ge.unmount({id:`n-${$}`,parent:null==re?void 0:re.styleMountTarget})})),Object.assign({bodyWidth:n,summaryPlacement:G,dataTableSlots:t,componentId:$,scrollbarInstRef:ae,virtualListRef:le,emptyElRef:ie,summary:k,mergedClsPrefix:r,mergedTheme:a,scrollX:l,cols:i,loading:D,bodyShowHeaderOnly:ce,shouldDisplaySomeTablePart:se,empty:de,paginatedDataAndInfo:s((()=>{const{value:e}=B;let t=!1;return{data:c.value.map(e?(e,n)=>(e.isLeaf||(t=!0),{tmNode:e,key:e.key,striped:n%2==1,index:n}):(e,n)=>(e.isLeaf||(t=!0),{tmNode:e,key:e.key,striped:!1,index:n})),hasChildren:t}})),rawPaginatedData:u,fixedColumnLeftMap:h,fixedColumnRightMap:p,currentPage:f,rowClassName:g,renderExpand:C,mergedExpandedRowKeySet:he,hoverKey:w,mergedSortState:S,virtualScroll:z,virtualScrollX:P,heightForRow:F,minRowHeight:T,mergedTableLayout:E,childTriggerColIndex:O,indent:K,rowProps:L,maxHeight:A,loadingKeySet:V,expandable:W,stickyExpandedRows:q,renderExpandIcon:X,scrollbarProps:Z,setHeaderScrollLeft:Q,handleVirtualListScroll:function(e){var t;ee(e),null===(t=ae.value)||void 0===t||t.sync()},handleVirtualListResize:function(t){var n;const{onResize:o}=e;o&&o(t),null===(n=ae.value)||void 0===n||n.sync()},handleMouseleaveTable:function(){w.value=null},virtualListContainer:fe,virtualListContent:function(){const{value:e}=le;return(null==e?void 0:e.itemsElRef)||null},handleTableBodyScroll:ee,handleCheckboxUpdateChecked:function(e,t,n){const o=pe(e.key);if(o){if(n){const n=c.value.findIndex((e=>e.key===ue));if(-1!==n){const r=c.value.findIndex((t=>t.key===e.key)),a=Math.min(n,r),l=Math.max(n,r),i=[];return c.value.slice(a,l+1).forEach((e=>{e.disabled||i.push(e.key)})),t?te(i,!1,o):ne(i,o),void(ue=e.key)}}t?te(e.key,!1,o):ne(e.key,o),ue=e.key}else j("data-table",`fail to get row data with key ${e.key}`)},handleRadioUpdateChecked:function(e){const t=pe(e.key);t?te(e.key,!0,t):j("data-table",`fail to get row data with key ${e.key}`)},handleUpdateExpanded:function(e,t){var n;if(V.value.has(e))return;const{value:r}=o,a=r.indexOf(e),l=Array.from(r);~a?(l.splice(a,1),J(l)):!t||t.isLeaf||t.shallowLoaded?(l.push(e),J(l)):(V.value.add(e),null===(n=_.value)||void 0===n||n.call(_,t.rawNode).then((()=>{const{value:t}=o,n=Array.from(t);~n.indexOf(e)||n.push(e),J(n)})).finally((()=>{V.value.delete(e)})))},renderCell:oe},ve)},render(){const{mergedTheme:e,scrollX:n,mergedClsPrefix:o,virtualScroll:r,maxHeight:a,mergedTableLayout:l,flexHeight:i,loadingKeySet:d,onResize:s,setHeaderScrollLeft:c}=this,u=void 0!==n||void 0!==a||i,h=!u&&"auto"===l,p=void 0!==n||h,f={minWidth:S(n)||"100%"};n&&(f.width="100%");const v=t(P,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:u||h,class:`${o}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:f,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:p,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{const e={},n={},{cols:a,paginatedDataAndInfo:l,mergedTheme:i,fixedColumnLeftMap:s,fixedColumnRightMap:c,currentPage:u,rowClassName:h,mergedSortState:p,mergedExpandedRowKeySet:v,stickyExpandedRows:g,componentId:m,childTriggerColIndex:b,expandable:y,rowProps:x,handleMouseleaveTable:R,renderExpand:C,summary:w,handleCheckboxUpdateChecked:k,handleRadioUpdateChecked:S,handleUpdateExpanded:z,heightForRow:P,minRowHeight:F,virtualScrollX:T}=this,{length:$}=a;let O;const{data:K,hasChildren:L}=l,A=L?at(K,v):K;if(w){const e=w(this.rawPaginatedData);if(Array.isArray(e)){const t=e.map(((e,t)=>({isSummaryRow:!0,key:`__n_summary__${t}`,tmNode:{rawNode:e,disabled:!0},index:-1})));O="top"===this.summaryPlacement?[...t,...A]:[...A,...t]}else{const t={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:e,disabled:!0},index:-1};O="top"===this.summaryPlacement?[t,...A]:[...A,t]}}else O=A;const I=L?{width:E(this.indent)}:void 0,N=[];O.forEach((e=>{C&&v.has(e.key)&&(!y||y(e.tmNode.rawNode))?N.push(e,{isExpandedRow:!0,key:`${e.key}-expand`,tmNode:e.tmNode,index:e.index}):N.push(e)}));const{length:U}=N,M={};K.forEach((({tmNode:e},t)=>{M[t]=e.key}));const H=g?this.bodyWidth:null,B=null===H?void 0:`${H}px`,j=this.virtualScrollX?"div":"td";let _=0,V=0;T&&a.forEach((e=>{"left"===e.column.fixed?_++:"right"===e.column.fixed&&V++}));const W=({rowInfo:r,displayedRowIndex:l,isVirtual:f,isVirtualX:m,startColIndex:y,endColIndex:R,getLeft:w})=>{const{index:T}=r;if("isExpandedRow"in r){const{tmNode:{key:e,rawNode:n}}=r;return t("tr",{class:`${o}-data-table-tr ${o}-data-table-tr--expanded`,key:`${e}__expand`},t("td",{class:[`${o}-data-table-td`,`${o}-data-table-td--last-col`,l+1===U&&`${o}-data-table-td--last-row`],colspan:$},g?t("div",{class:`${o}-data-table-expand`,style:{width:B}},C(n,T)):C(n,T)))}const O="isSummaryRow"in r,K=!O&&r.striped,{tmNode:A,key:N}=r,{rawNode:H}=A,W=v.has(N),q=x?x(H,T):void 0,X="string"==typeof h?h:function(e,t,n){return"function"==typeof n?n(e,t):n||""}(H,T,h),G=m?a.filter(((e,t)=>y<=t&&t<=R||!!e.column.fixed)):a,Y=m?E((null==P?void 0:P(H,T))||F):void 0,Z=G.map((a=>{var h,v,g,y,x;const R=a.index;if(l in e){const t=e[l],n=t.indexOf(R);if(~n)return t.splice(n,1),null}const{column:C}=a,P=Ie(a),{rowSpan:F,colSpan:K}=C,A=O?(null===(h=r.tmNode.rawNode[P])||void 0===h?void 0:h.colSpan)||1:K?K(H,T):1,B=O?(null===(v=r.tmNode.rawNode[P])||void 0===v?void 0:v.rowSpan)||1:F?F(H,T):1,_=R+A===$,V=l+B===U,q=B>1;if(q&&(n[l]={[R]:[]}),A>1||q)for(let t=l;t{z(N,r.tmNode)}})]:null,"selection"===C.type?O?null:!1===C.multiple?t(rt,{key:u,rowKey:N,disabled:r.tmNode.disabled,onUpdateChecked:()=>{S(r.tmNode)}}):t(ot,{key:u,rowKey:N,disabled:r.tmNode.disabled,onUpdateChecked:(e,t)=>{k(r.tmNode,e,t.shiftKey)}}):"expand"===C.type?O?null:!C.expandable||(null===(x=C.expandable)||void 0===x?void 0:x.call(C,H))?t(nt,{clsPrefix:o,rowData:H,expanded:W,renderExpandIcon:this.renderExpandIcon,onClick:()=>{z(N,null)}}):null:t(tt,{clsPrefix:o,index:T,row:H,column:C,isSummary:O,mergedTheme:i,renderCell:this.renderCell}))}));m&&_&&V&&Z.splice(_,0,t("td",{colspan:a.length-_-V,style:{pointerEvents:"none",visibility:"hidden",height:0}}));return t("tr",Object.assign({},q,{onMouseenter:e=>{var t;this.hoverKey=N,null===(t=null==q?void 0:q.onMouseenter)||void 0===t||t.call(q,e)},key:N,class:[`${o}-data-table-tr`,O&&`${o}-data-table-tr--summary`,K&&`${o}-data-table-tr--striped`,W&&`${o}-data-table-tr--expanded`,X,null==q?void 0:q.class],style:[null==q?void 0:q.style,m&&{height:Y}]}),Z)};return r?t(ue,{ref:"virtualListRef",items:N,itemSize:this.minRowHeight,visibleItemsTag:lt,visibleItemsProps:{clsPrefix:o,id:m,cols:a,onMouseleave:R},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:f,itemResizable:!T,columns:a,renderItemWithCols:T?({itemIndex:e,item:t,startColIndex:n,endColIndex:o,getLeft:r})=>W({displayedRowIndex:e,isVirtual:!0,isVirtualX:!0,rowInfo:t,startColIndex:n,endColIndex:o,getLeft:r}):void 0},{default:({item:e,index:t,renderedItemWithCols:n})=>n||W({rowInfo:e,displayedRowIndex:t,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft:e=>0})}):t("table",{class:`${o}-data-table-table`,onMouseleave:R,style:{tableLayout:this.mergedTableLayout}},t("colgroup",null,a.map((e=>t("col",{key:e.key,style:e.style})))),this.showHeader?t(et,{discrete:!1}):null,this.empty?null:t("tbody",{"data-n-id":m,class:`${o}-data-table-tbody`},N.map(((e,t)=>W({rowInfo:e,displayedRowIndex:t,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft:e=>-1})))))}});if(this.empty){const e=()=>t("div",{class:[`${o}-data-table-empty`,this.loading&&`${o}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},_(this.dataTableSlots.empty,(()=>[t(ve,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])));return this.shouldDisplaySomeTablePart?t(O,null,v,e()):t(B,{onResize:this.onResize},{default:e})}return v}}),dt=e({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:o,maxHeightRef:r,minHeightRef:a,flexHeightRef:l,virtualScrollHeaderRef:i,syncScrollState:c}=v($e),u=d(null),h=d(null),p=d(null),f=d(!(n.value.length||t.value.length)),g=s((()=>({maxHeight:S(r.value),minHeight:S(a.value)})));const m={getBodyElement:function(){const{value:e}=h;return e?e.getScrollContainer():null},getHeaderElement:function(){var e;const{value:t}=u;return t?i.value?(null===(e=t.virtualListRef)||void 0===e?void 0:e.listElRef)||null:t.$el:null},scrollTo(e,t){var n;null===(n=h.value)||void 0===n||n.scrollTo(e,t)}};return U((()=>{const{value:t}=p;if(!t)return;const n=`${e.value}-data-table-base-table--transition-disabled`;f.value?setTimeout((()=>{t.classList.remove(n)}),0):t.classList.add(n)})),Object.assign({maxHeight:r,mergedClsPrefix:e,selfElRef:p,headerInstRef:u,bodyInstRef:h,bodyStyle:g,flexHeight:l,handleBodyResize:function(e){o.value=e.contentRect.width,c(),f.value||(f.value=!0)}},m)},render(){const{mergedClsPrefix:e,maxHeight:n,flexHeight:o}=this,r=void 0===n&&!o;return t("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:t(et,{ref:"headerInstRef"}),t(it,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:o,onResize:this.handleBodyResize}))}});function st(e){return"object"==typeof e&&"number"==typeof e.multiple&&e.multiple}function ct(e,{dataRelatedColsRef:t,filteredDataRef:n}){const o=[];t.value.forEach((e=>{var t;void 0!==e.sorter&&u(o,{columnKey:e.key,sorter:e.sorter,order:null!==(t=e.defaultSortOrder)&&void 0!==t&&t})}));const r=d(o),a=s((()=>{const e=t.value.filter((e=>"selection"!==e.type&&void 0!==e.sorter&&("ascend"===e.sortOrder||"descend"===e.sortOrder||!1===e.sortOrder))),n=e.filter((e=>!1!==e.sortOrder));if(n.length)return n.map((e=>({columnKey:e.key,order:e.sortOrder,sorter:e.sorter})));if(e.length)return[];const{value:o}=r;return Array.isArray(o)?o:o?[o]:[]}));function l(e){const t=function(e){let t=a.value.slice();return e&&!1!==st(e.sorter)?(t=t.filter((e=>!1!==st(e.sorter))),u(t,e),t):e||null}(e);i(t)}function i(t){const{"onUpdate:sorter":n,onUpdateSorter:o,onSorterChange:a}=e;n&&V(n,t),o&&V(o,t),a&&V(a,t),r.value=t}function c(){i(null)}function u(e,t){const n=e.findIndex((e=>(null==t?void 0:t.columnKey)&&e.columnKey===t.columnKey));void 0!==n&&n>=0?e[n]=t:e.push(t)}return{clearSorter:c,sort:function(e,n="ascend"){if(e){const o=t.value.find((t=>"selection"!==t.type&&"expand"!==t.type&&t.key===e));if(!(null==o?void 0:o.sorter))return;const r=o.sorter;l({columnKey:e,sorter:r,order:n})}else c()},sortedDataRef:s((()=>{const e=a.value.slice().sort(((e,t)=>{const n=st(e.sorter)||0;return(st(t.sorter)||0)-n}));if(e.length){return n.value.slice().sort(((t,n)=>{let o=0;return e.some((e=>{const{columnKey:r,sorter:a,order:l}=e,i=function(e,t){return t&&(void 0===e||"default"===e||"object"==typeof e&&"default"===e.compare)?function(e){return(t,n)=>{const o=t[e],r=n[e];return null==o?null==r?0:-1:null==r?1:"number"==typeof o&&"number"==typeof r?o-r:"string"==typeof o&&"string"==typeof r?o.localeCompare(r):0}}(t):"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare||"default"===e.compare)&&e.compare}(a,r);return!(!i||!l||(o=i(t.rawNode,n.rawNode),0===o))&&(o*=function(e){return"ascend"===e?1:"descend"===e?-1:0}(l),!0)})),o}))}return n.value})),mergedSortStateRef:a,deriveNextSorter:l}}function ut(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:o}){let r=0;const a=d(),l=d(null),i=d([]),c=d(null),u=d([]),h=s((()=>S(e.scrollX))),p=s((()=>e.columns.filter((e=>"left"===e.fixed)))),f=s((()=>e.columns.filter((e=>"right"===e.fixed)))),v=s((()=>{const e={};let t=0;return function n(o){o.forEach((o=>{const r={start:t,end:0};e[Ie(o)]=r,"children"in o?(n(o.children),r.end=t):(t+=Ae(o)||0,r.end=t)}))}(p.value),e})),g=s((()=>{const e={};let t=0;return function n(o){for(let r=o.length-1;r>=0;--r){const a=o[r],l={start:t,end:0};e[Ie(a)]=l,"children"in a?(n(a.children),l.end=t):(t+=Ae(a)||0,l.end=t)}}(f.value),e}));function m(){return{header:t.value?t.value.getHeaderElement():null,body:t.value?t.value.getBodyElement():null}}function b(){const{header:t,body:n}=m();if(!n)return;const{value:d}=o;if(null!==d){if(e.maxHeight||e.flexHeight){if(!t)return;const e=r-t.scrollLeft;a.value=0!==e?"head":"body","head"===a.value?(r=t.scrollLeft,n.scrollLeft=r):(r=n.scrollLeft,t.scrollLeft=r)}else r=n.scrollLeft;!function(){var e,t;const{value:n}=p;let o=0;const{value:a}=v;let i=null;for(let l=0;l((null===(e=a[d])||void 0===e?void 0:e.start)||0)-o))break;i=d,o=(null===(t=a[d])||void 0===t?void 0:t.end)||0}l.value=i}(),function(){i.value=[];let t=e.columns.find((e=>Ie(e)===l.value));for(;t&&"children"in t;){const e=t.children.length;if(0===e)break;const n=t.children[e-1];i.value.push(Ie(n)),t=n}}(),function(){var t,n;const{value:a}=f,l=Number(e.scrollX),{value:i}=o;if(null===i)return;let d=0,s=null;const{value:u}=g;for(let e=a.length-1;e>=0;--e){const o=Ie(a[e]);if(!(Math.round(r+((null===(t=u[o])||void 0===t?void 0:t.start)||0)+i-d)Ie(e)===c.value));for(;t&&"children"in t&&t.children.length;){const e=t.children[0];u.value.push(Ie(e)),t=e}}()}}return W(n,(()=>{!function(){const{body:e}=m();e&&(e.scrollTop=0)}()})),{styleScrollXRef:h,fixedColumnLeftMapRef:v,fixedColumnRightMapRef:g,leftFixedColumnsRef:p,rightFixedColumnsRef:f,leftActiveFixedColKeyRef:l,leftActiveFixedChildrenColKeysRef:i,rightActiveFixedColKeyRef:c,rightActiveFixedChildrenColKeysRef:u,syncScrollState:b,handleTableBodyScroll:function(t){var n;null===(n=e.onScroll)||void 0===n||n.call(e,t),"head"!==a.value?ye(b):a.value=void 0},handleTableHeaderScroll:function(){"body"!==a.value?ye(b):a.value=void 0},setHeaderScrollLeft:function(e){const{header:t}=m();t&&(t.scrollLeft=e,b())}}}function ht(e,t){const n=s((()=>function(e,t){const n=[],o=[],r=[],a=new WeakMap;let l=-1,i=0,d=!1;!function e(a,s){s>l&&(n[s]=[],l=s),a.forEach(((n,a)=>{if("children"in n)e(n.children,s+1);else{const e="key"in n?n.key:void 0;o.push({key:Ie(n),style:Ue(n,void 0!==e?S(t(e)):void 0),column:n,index:a,width:void 0===n.width?128:Number(n.width)}),i+=1,d||(d=!!n.ellipsis),r.push(n)}}))}(e,0);let s=0;return function e(t,o){let r=0;t.forEach((t=>{var d;if("children"in t){const r=s,l={column:t,colIndex:s,colSpan:0,rowSpan:1,isLast:!1};e(t.children,o+1),t.children.forEach((e=>{var t,n;l.colSpan+=null!==(n=null===(t=a.get(e))||void 0===t?void 0:t.colSpan)&&void 0!==n?n:0})),r+l.colSpan===i&&(l.isLast=!0),a.set(t,l),n[o].push(l)}else{if(s1&&(r=s+e);const c={column:t,colSpan:e,colIndex:s,rowSpan:l-o+1,isLast:s+e===i};a.set(t,c),n[o].push(c),s+=1}}))}(e,0),{hasEllipsis:d,rows:n,cols:o,dataRelatedCols:r}}(e.columns,t)));return{rowsRef:s((()=>n.value.rows)),colsRef:s((()=>n.value.cols)),hasEllipsisRef:s((()=>n.value.hasEllipsis)),dataRelatedColsRef:s((()=>n.value.dataRelatedCols))}}const pt=[r("fixed-left","\n left: 0;\n position: sticky;\n z-index: 2;\n ",[b("&::after",'\n pointer-events: none;\n content: "";\n width: 36px;\n display: inline-block;\n position: absolute;\n top: 0;\n bottom: -1px;\n transition: box-shadow .2s var(--n-bezier);\n right: -36px;\n ')]),r("fixed-right","\n right: 0;\n position: sticky;\n z-index: 1;\n ",[b("&::before",'\n pointer-events: none;\n content: "";\n width: 36px;\n display: inline-block;\n position: absolute;\n top: 0;\n bottom: -1px;\n transition: box-shadow .2s var(--n-bezier);\n left: -36px;\n ')])],ft=b([n("data-table","\n width: 100%;\n font-size: var(--n-font-size);\n display: flex;\n flex-direction: column;\n position: relative;\n --n-merged-th-color: var(--n-th-color);\n --n-merged-td-color: var(--n-td-color);\n --n-merged-border-color: var(--n-border-color);\n --n-merged-th-color-sorting: var(--n-th-color-sorting);\n --n-merged-td-color-hover: var(--n-td-color-hover);\n --n-merged-td-color-sorting: var(--n-td-color-sorting);\n --n-merged-td-color-striped: var(--n-td-color-striped);\n ",[n("data-table-wrapper","\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n "),r("flex-height",[b(">",[n("data-table-wrapper",[b(">",[n("data-table-base-table","\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n ",[b(">",[n("data-table-base-table-body","flex-basis: 0;",[b("&:last-child","flex-grow: 1;")])])])])])])]),b(">",[n("data-table-loading-wrapper","\n color: var(--n-loading-color);\n font-size: var(--n-loading-size);\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n transition: color .3s var(--n-bezier);\n display: flex;\n align-items: center;\n justify-content: center;\n ",[X({originalTransform:"translateX(-50%) translateY(-50%)"})])]),n("data-table-expand-placeholder","\n margin-right: 8px;\n display: inline-block;\n width: 16px;\n height: 1px;\n "),n("data-table-indent","\n display: inline-block;\n height: 1px;\n "),n("data-table-expand-trigger","\n display: inline-flex;\n margin-right: 8px;\n cursor: pointer;\n font-size: 16px;\n vertical-align: -0.2em;\n position: relative;\n width: 16px;\n height: 16px;\n color: var(--n-td-text-color);\n transition: color .3s var(--n-bezier);\n ",[r("expanded",[n("icon","transform: rotate(90deg);",[G({originalTransform:"rotate(90deg)"})]),n("base-icon","transform: rotate(90deg);",[G({originalTransform:"rotate(90deg)"})])]),n("base-loading","\n color: var(--n-loading-color);\n transition: color .3s var(--n-bezier);\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ",[G()]),n("icon","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ",[G()]),n("base-icon","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ",[G()])]),n("data-table-thead","\n transition: background-color .3s var(--n-bezier);\n background-color: var(--n-merged-th-color);\n "),n("data-table-tr","\n position: relative;\n box-sizing: border-box;\n background-clip: padding-box;\n transition: background-color .3s var(--n-bezier);\n ",[n("data-table-expand","\n position: sticky;\n left: 0;\n overflow: hidden;\n margin: calc(var(--n-th-padding) * -1);\n padding: var(--n-th-padding);\n box-sizing: border-box;\n "),r("striped","background-color: var(--n-merged-td-color-striped);",[n("data-table-td","background-color: var(--n-merged-td-color-striped);")]),o("summary",[b("&:hover","background-color: var(--n-merged-td-color-hover);",[b(">",[n("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),n("data-table-th","\n padding: var(--n-th-padding);\n position: relative;\n text-align: start;\n box-sizing: border-box;\n background-color: var(--n-merged-th-color);\n border-color: var(--n-merged-border-color);\n border-bottom: 1px solid var(--n-merged-border-color);\n color: var(--n-th-text-color);\n transition:\n border-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n font-weight: var(--n-th-font-weight);\n ",[r("filterable","\n padding-right: 36px;\n ",[r("sortable","\n padding-right: calc(var(--n-th-padding) + 36px);\n ")]),pt,r("selection","\n padding: 0;\n text-align: center;\n line-height: 0;\n z-index: 3;\n "),m("title-wrapper","\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n max-width: 100%;\n ",[m("title","\n flex: 1;\n min-width: 0;\n ")]),m("ellipsis","\n display: inline-block;\n vertical-align: bottom;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n max-width: 100%;\n "),r("hover","\n background-color: var(--n-merged-th-color-hover);\n "),r("sorting","\n background-color: var(--n-merged-th-color-sorting);\n "),r("sortable","\n cursor: pointer;\n ",[m("ellipsis","\n max-width: calc(100% - 18px);\n "),b("&:hover","\n background-color: var(--n-merged-th-color-hover);\n ")]),n("data-table-sorter","\n height: var(--n-sorter-size);\n width: var(--n-sorter-size);\n margin-left: 4px;\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: -0.2em;\n color: var(--n-th-icon-color);\n transition: color .3s var(--n-bezier);\n ",[n("base-icon","transition: transform .3s var(--n-bezier)"),r("desc",[n("base-icon","\n transform: rotate(0deg);\n ")]),r("asc",[n("base-icon","\n transform: rotate(-180deg);\n ")]),r("asc, desc","\n color: var(--n-th-icon-color-active);\n ")]),n("data-table-resize-button","\n width: var(--n-resizable-container-size);\n position: absolute;\n top: 0;\n right: calc(var(--n-resizable-container-size) / 2);\n bottom: 0;\n cursor: col-resize;\n user-select: none;\n ",[b("&::after","\n width: var(--n-resizable-size);\n height: 50%;\n position: absolute;\n top: 50%;\n left: calc(var(--n-resizable-container-size) / 2);\n bottom: 0;\n background-color: var(--n-merged-border-color);\n transform: translateY(-50%);\n transition: background-color .3s var(--n-bezier);\n z-index: 1;\n content: '';\n "),r("active",[b("&::after"," \n background-color: var(--n-th-icon-color-active);\n ")]),b("&:hover::after","\n background-color: var(--n-th-icon-color-active);\n ")]),n("data-table-filter","\n position: absolute;\n z-index: auto;\n right: 0;\n width: 36px;\n top: 0;\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n font-size: var(--n-filter-size);\n color: var(--n-th-icon-color);\n ",[b("&:hover","\n background-color: var(--n-th-button-color-hover);\n "),r("show","\n background-color: var(--n-th-button-color-hover);\n "),r("active","\n background-color: var(--n-th-button-color-hover);\n color: var(--n-th-icon-color-active);\n ")])]),n("data-table-td","\n padding: var(--n-td-padding);\n text-align: start;\n box-sizing: border-box;\n border: none;\n background-color: var(--n-merged-td-color);\n color: var(--n-td-text-color);\n border-bottom: 1px solid var(--n-merged-border-color);\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ",[r("expand",[n("data-table-expand-trigger","\n margin-right: 0;\n ")]),r("last-row","\n border-bottom: 0 solid var(--n-merged-border-color);\n ",[b("&::after","\n bottom: 0 !important;\n "),b("&::before","\n bottom: 0 !important;\n ")]),r("summary","\n background-color: var(--n-merged-th-color);\n "),r("hover","\n background-color: var(--n-merged-td-color-hover);\n "),r("sorting","\n background-color: var(--n-merged-td-color-sorting);\n "),m("ellipsis","\n display: inline-block;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n max-width: 100%;\n vertical-align: bottom;\n max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px);\n "),r("selection, expand","\n text-align: center;\n padding: 0;\n line-height: 0;\n "),pt]),n("data-table-empty","\n box-sizing: border-box;\n padding: var(--n-empty-padding);\n flex-grow: 1;\n flex-shrink: 0;\n opacity: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: opacity .3s var(--n-bezier);\n ",[r("hide","\n opacity: 0;\n ")]),m("pagination","\n margin: var(--n-pagination-margin);\n display: flex;\n justify-content: flex-end;\n "),n("data-table-wrapper","\n position: relative;\n opacity: 1;\n transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier);\n border-top-left-radius: var(--n-border-radius);\n border-top-right-radius: var(--n-border-radius);\n line-height: var(--n-line-height);\n "),r("loading",[n("data-table-wrapper","\n opacity: var(--n-opacity-loading);\n pointer-events: none;\n ")]),r("single-column",[n("data-table-td","\n border-bottom: 0 solid var(--n-merged-border-color);\n ",[b("&::after, &::before","\n bottom: 0 !important;\n ")])]),o("single-line",[n("data-table-th","\n border-right: 1px solid var(--n-merged-border-color);\n ",[r("last","\n border-right: 0 solid var(--n-merged-border-color);\n ")]),n("data-table-td","\n border-right: 1px solid var(--n-merged-border-color);\n ",[r("last-col","\n border-right: 0 solid var(--n-merged-border-color);\n ")])]),r("bordered",[n("data-table-wrapper","\n border: 1px solid var(--n-merged-border-color);\n border-bottom-left-radius: var(--n-border-radius);\n border-bottom-right-radius: var(--n-border-radius);\n overflow: hidden;\n ")]),n("data-table-base-table",[r("transition-disabled",[n("data-table-th",[b("&::after, &::before","transition: none;")]),n("data-table-td",[b("&::after, &::before","transition: none;")])])]),r("bottom-bordered",[n("data-table-td",[r("last-row","\n border-bottom: 1px solid var(--n-merged-border-color);\n ")])]),n("data-table-table","\n font-variant-numeric: tabular-nums;\n width: 100%;\n word-break: break-word;\n transition: background-color .3s var(--n-bezier);\n border-collapse: separate;\n border-spacing: 0;\n background-color: var(--n-merged-td-color);\n "),n("data-table-base-table-header","\n border-top-left-radius: calc(var(--n-border-radius) - 1px);\n border-top-right-radius: calc(var(--n-border-radius) - 1px);\n z-index: 3;\n overflow: scroll;\n flex-shrink: 0;\n transition: border-color .3s var(--n-bezier);\n scrollbar-width: none;\n ",[b("&::-webkit-scrollbar","\n width: 0;\n height: 0;\n ")]),n("data-table-check-extra","\n transition: color .3s var(--n-bezier);\n color: var(--n-th-icon-color);\n position: absolute;\n font-size: 14px;\n right: -4px;\n top: 50%;\n transform: translateY(-50%);\n z-index: 1;\n ")]),n("data-table-filter-menu",[n("scrollbar","\n max-height: 240px;\n "),m("group","\n display: flex;\n flex-direction: column;\n padding: 12px 12px 0 12px;\n ",[n("checkbox","\n margin-bottom: 12px;\n margin-right: 0;\n "),n("radio","\n margin-bottom: 12px;\n margin-right: 0;\n ")]),m("action","\n padding: var(--n-action-padding);\n display: flex;\n flex-wrap: nowrap;\n justify-content: space-evenly;\n border-top: 1px solid var(--n-action-divider-color);\n ",[n("button",[b("&:not(:last-child)","\n margin: var(--n-action-button-margin);\n "),b("&:last-child","\n margin-right: 0;\n ")])]),n("divider","\n margin: 0 !important;\n ")]),Y(n("data-table","\n --n-merged-th-color: var(--n-th-color-modal);\n --n-merged-td-color: var(--n-td-color-modal);\n --n-merged-border-color: var(--n-border-color-modal);\n --n-merged-th-color-hover: var(--n-th-color-hover-modal);\n --n-merged-td-color-hover: var(--n-td-color-hover-modal);\n --n-merged-th-color-sorting: var(--n-th-color-hover-modal);\n --n-merged-td-color-sorting: var(--n-td-color-hover-modal);\n --n-merged-td-color-striped: var(--n-td-color-striped-modal);\n ")),Z(n("data-table","\n --n-merged-th-color: var(--n-th-color-popover);\n --n-merged-td-color: var(--n-td-color-popover);\n --n-merged-border-color: var(--n-border-color-popover);\n --n-merged-th-color-hover: var(--n-th-color-hover-popover);\n --n-merged-td-color-hover: var(--n-td-color-hover-popover);\n --n-merged-th-color-sorting: var(--n-th-color-hover-popover);\n --n-merged-td-color-sorting: var(--n-td-color-hover-popover);\n --n-merged-td-color-striped: var(--n-td-color-striped-popover);\n "))]);const vt=e({name:"DataTable",alias:["AdvancedTable"],props:Te,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:a}=f(e),i=R("DataTable",a,o),c=s((()=>{const{bottomBordered:t}=e;return!n.value&&(void 0===t||t)})),u=l("DataTable","-data-table",ft,Q,e,o),h=d(null),p=d(null),{getResizableWidth:v,clearResizableWidth:g,doUpdateResizableWidth:m}=function(){const e=d({});return{getResizableWidth:function(t){return e.value[t]},doUpdateResizableWidth:function(t,n){Be(t)&&"key"in t&&(e.value[t.key]=n)},clearResizableWidth:function(){e.value={}}}}(),{rowsRef:b,colsRef:y,dataRelatedColsRef:w,hasEllipsisRef:k}=ht(e,v),{treeMateRef:S,mergedCurrentPageRef:z,paginatedDataRef:P,rawPaginatedDataRef:F,selectionColumnRef:T,hoverKeyRef:$,mergedPaginationRef:E,mergedFilterStateRef:O,mergedSortStateRef:K,childTriggerColIndexRef:L,doUpdatePage:A,doUpdateFilters:I,onUnstableColumnResize:U,deriveNextSorter:M,filter:H,filters:B,clearFilter:j,clearFilters:D,clearSorter:_,page:W,sort:X}=function(e,{dataRelatedColsRef:t}){const n=s((()=>{const t=e=>{for(let n=0;n{const{childrenKey:t}=e;return pe(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:e=>e[t],getDisabled:e=>{var t,o;return!!(null===(o=null===(t=n.value)||void 0===t?void 0:t.disabled)||void 0===o?void 0:o.call(t,e))}})})),r=N((()=>{const{columns:t}=e,{length:n}=t;let o=null;for(let e=0;e{const e=t.value.filter((e=>void 0!==e.filterOptionValues||void 0!==e.filterOptionValue)),n={};return e.forEach((e=>{var t;"selection"!==e.type&&"expand"!==e.type&&(void 0===e.filterOptionValues?n[e.key]=null!==(t=e.filterOptionValue)&&void 0!==t?t:null:n[e.key]=e.filterOptionValues)})),Object.assign(Ne(a.value),n)})),h=s((()=>{const t=u.value,{columns:n}=e;function r(e){return(t,n)=>!!~String(n[e]).indexOf(String(t))}const{value:{treeNodes:a}}=o,l=[];return n.forEach((e=>{"selection"===e.type||"expand"===e.type||"children"in e||l.push([e.key,e])})),a?a.filter((e=>{const{rawNode:n}=e;for(const[o,a]of l){let e=t[o];if(null==e)continue;if(Array.isArray(e)||(e=[e]),!e.length)continue;const l="default"===a.filter?r(o):a.filter;if(a&&"function"==typeof l){if("and"!==a.filterMode){if(e.some((e=>l(e,n))))continue;return!1}if(e.some((e=>!l(e,n))))return!1}}return!0})):[]})),{sortedDataRef:p,deriveNextSorter:f,mergedSortStateRef:v,sort:g,clearSorter:m}=ct(e,{dataRelatedColsRef:t,filteredDataRef:h});t.value.forEach((e=>{var t;if(e.filter){const n=e.defaultFilterOptionValues;e.filterMultiple?a.value[e.key]=n||[]:a.value[e.key]=void 0!==n?null===n?[]:n:null!==(t=e.defaultFilterOptionValue)&&void 0!==t?t:null}}));const b=s((()=>{const{pagination:t}=e;if(!1!==t)return t.page})),y=s((()=>{const{pagination:t}=e;if(!1!==t)return t.pageSize})),x=be(b,i),R=be(y,c),C=N((()=>{const t=x.value;return e.remote?t:Math.max(1,Math.min(Math.ceil(h.value.length/R.value),t))})),w=s((()=>{const{pagination:t}=e;if(t){const{pageCount:e}=t;if(void 0!==e)return e}})),k=s((()=>{if(e.remote)return o.value.treeNodes;if(!e.pagination)return p.value;const t=R.value,n=(C.value-1)*t;return p.value.slice(n,n+t)})),S=s((()=>k.value.map((e=>e.rawNode))));function z(t){const{pagination:n}=e;if(n){const{onChange:e,"onUpdate:page":o,onUpdatePage:r}=n;e&&V(e,t),r&&V(r,t),o&&V(o,t),$(t)}}function P(t){const{pagination:n}=e;if(n){const{onPageSizeChange:e,"onUpdate:pageSize":o,onUpdatePageSize:r}=n;e&&V(e,t),r&&V(r,t),o&&V(o,t),E(t)}}const F=s((()=>{if(!e.remote)return h.value.length;{const{pagination:t}=e;if(t){const{itemCount:e}=t;if(void 0!==e)return e}}})),T=s((()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":z,"onUpdate:pageSize":P,page:C.value,pageSize:R.value,pageCount:void 0===F.value?w.value:void 0,itemCount:F.value})));function $(t){const{"onUpdate:page":n,onPageChange:o,onUpdatePage:r}=e;r&&V(r,t),n&&V(n,t),o&&V(o,t),i.value=t}function E(t){const{"onUpdate:pageSize":n,onPageSizeChange:o,onUpdatePageSize:r}=e;o&&V(o,t),r&&V(r,t),n&&V(n,t),c.value=t}function O(){K({})}function K(e){L(e)}function L(e){e?e&&(a.value=Ne(e)):a.value={}}return{treeMateRef:o,mergedCurrentPageRef:C,mergedPaginationRef:T,paginatedDataRef:k,rawPaginatedDataRef:S,mergedFilterStateRef:u,mergedSortStateRef:v,hoverKeyRef:d(null),selectionColumnRef:n,childTriggerColIndexRef:r,doUpdateFilters:function(t,n){const{onUpdateFilters:o,"onUpdate:filters":r,onFiltersChange:l}=e;o&&V(o,t,n),r&&V(r,t,n),l&&V(l,t,n),a.value=t},deriveNextSorter:f,doUpdatePageSize:E,doUpdatePage:$,onUnstableColumnResize:function(t,n,o,r){var a;null===(a=e.onUnstableColumnResize)||void 0===a||a.call(e,t,n,o,r)},filter:L,filters:K,clearFilter:function(){O()},clearFilters:O,clearSorter:m,page:function(e){$(e)},sort:g}}(e,{dataRelatedColsRef:w}),{doCheckAll:G,doUncheckAll:Y,doCheck:Z,doUncheck:te,headerCheckboxDisabledRef:ne,someRowsCheckedRef:oe,allRowsCheckedRef:re,mergedCheckedRowKeySetRef:ae,mergedInderminateRowKeySetRef:le}=function(e,t){const{paginatedDataRef:n,treeMateRef:o,selectionColumnRef:r}=t,a=d(e.defaultCheckedRowKeys),l=s((()=>{var t;const{checkedRowKeys:n}=e,l=void 0===n?a.value:n;return!1===(null===(t=r.value)||void 0===t?void 0:t.multiple)?{checkedKeys:l.slice(0,1),indeterminateKeys:[]}:o.value.getCheckedKeys(l,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})})),i=s((()=>l.value.checkedKeys)),c=s((()=>l.value.indeterminateKeys)),u=s((()=>new Set(i.value))),h=s((()=>new Set(c.value))),p=s((()=>{const{value:e}=u;return n.value.reduce(((t,n)=>{const{key:o,disabled:r}=n;return t+(!r&&e.has(o)?1:0)}),0)})),f=s((()=>n.value.filter((e=>e.disabled)).length)),v=s((()=>{const{length:e}=n.value,{value:t}=h;return p.value>0&&p.valuet.has(e.key)))})),g=s((()=>{const{length:e}=n.value;return 0!==p.value&&p.value===e-f.value})),m=s((()=>0===n.value.length));function b(t,n,r){const{"onUpdate:checkedRowKeys":l,onUpdateCheckedRowKeys:i,onCheckedRowKeysChange:d}=e,s=[],{value:{getNode:c}}=o;t.forEach((e=>{var t;const n=null===(t=c(e))||void 0===t?void 0:t.rawNode;s.push(n)})),l&&V(l,t,s,{row:n,action:r}),i&&V(i,t,s,{row:n,action:r}),d&&V(d,t,s,{row:n,action:r}),a.value=t}return{mergedCheckedRowKeySetRef:u,mergedCheckedRowKeysRef:i,mergedInderminateRowKeySetRef:h,someRowsCheckedRef:v,allRowsCheckedRef:g,headerCheckboxDisabledRef:m,doUpdateCheckedRowKeys:b,doCheckAll:function(t=!1){const{value:a}=r;if(!a||e.loading)return;const l=[];(t?o.value.treeNodes:n.value).forEach((e=>{e.disabled||l.push(e.key)})),b(o.value.check(l,i.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")},doUncheckAll:function(t=!1){const{value:a}=r;if(!a||e.loading)return;const l=[];(t?o.value.treeNodes:n.value).forEach((e=>{e.disabled||l.push(e.key)})),b(o.value.uncheck(l,i.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")},doCheck:function(t,n=!1,r){e.loading||b(n?Array.isArray(t)?t.slice(0,1):[t]:o.value.check(t,i.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,r,"check")},doUncheck:function(t,n){e.loading||b(o.value.uncheck(t,i.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,n,"uncheck")}}}(e,{selectionColumnRef:T,treeMateRef:S,paginatedDataRef:P}),{stickyExpandedRowsRef:ie,mergedExpandedRowKeysRef:de,renderExpandRef:se,expandableRef:ce,doUpdateExpandedRowKeys:ue}=function(e,t){const n=N((()=>{for(const t of e.columns)if("expand"===t.type)return t.renderExpand})),o=N((()=>{let t;for(const n of e.columns)if("expand"===n.type){t=n.expandable;break}return t})),r=d(e.defaultExpandAll?(null==n?void 0:n.value)?(()=>{const e=[];return t.value.treeNodes.forEach((t=>{var n;(null===(n=o.value)||void 0===n?void 0:n.call(o,t.rawNode))&&e.push(t.key)})),e})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),a=q(e,"expandedRowKeys");return{stickyExpandedRowsRef:q(e,"stickyExpandedRows"),mergedExpandedRowKeysRef:be(a,r),renderExpandRef:n,expandableRef:o,doUpdateExpandedRowKeys:function(t){const{onUpdateExpandedRowKeys:n,"onUpdate:expandedRowKeys":o}=e;n&&V(n,t),o&&V(o,t),r.value=t}}}(e,S),{handleTableBodyScroll:he,handleTableHeaderScroll:fe,syncScrollState:ve,setHeaderScrollLeft:me,leftActiveFixedColKeyRef:ye,leftActiveFixedChildrenColKeysRef:Re,rightActiveFixedColKeyRef:Ce,rightActiveFixedChildrenColKeysRef:we,leftFixedColumnsRef:ke,rightFixedColumnsRef:Se,fixedColumnLeftMapRef:ze,fixedColumnRightMapRef:Pe}=ut(e,{bodyWidthRef:h,mainTableInstRef:p,mergedCurrentPageRef:z}),{localeRef:Fe}=xe("DataTable"),Te=s((()=>e.virtualScroll||e.flexHeight||void 0!==e.maxHeight||k.value?"fixed":e.tableLayout));J($e,{props:e,treeMateRef:S,renderExpandIconRef:q(e,"renderExpandIcon"),loadingKeySetRef:d(new Set),slots:t,indentRef:q(e,"indent"),childTriggerColIndexRef:L,bodyWidthRef:h,componentId:ee(),hoverKeyRef:$,mergedClsPrefixRef:o,mergedThemeRef:u,scrollXRef:s((()=>e.scrollX)),rowsRef:b,colsRef:y,paginatedDataRef:P,leftActiveFixedColKeyRef:ye,leftActiveFixedChildrenColKeysRef:Re,rightActiveFixedColKeyRef:Ce,rightActiveFixedChildrenColKeysRef:we,leftFixedColumnsRef:ke,rightFixedColumnsRef:Se,fixedColumnLeftMapRef:ze,fixedColumnRightMapRef:Pe,mergedCurrentPageRef:z,someRowsCheckedRef:oe,allRowsCheckedRef:re,mergedSortStateRef:K,mergedFilterStateRef:O,loadingRef:q(e,"loading"),rowClassNameRef:q(e,"rowClassName"),mergedCheckedRowKeySetRef:ae,mergedExpandedRowKeysRef:de,mergedInderminateRowKeySetRef:le,localeRef:Fe,expandableRef:ce,stickyExpandedRowsRef:ie,rowKeyRef:q(e,"rowKey"),renderExpandRef:se,summaryRef:q(e,"summary"),virtualScrollRef:q(e,"virtualScroll"),virtualScrollXRef:q(e,"virtualScrollX"),heightForRowRef:q(e,"heightForRow"),minRowHeightRef:q(e,"minRowHeight"),virtualScrollHeaderRef:q(e,"virtualScrollHeader"),headerHeightRef:q(e,"headerHeight"),rowPropsRef:q(e,"rowProps"),stripedRef:q(e,"striped"),checkOptionsRef:s((()=>{const{value:e}=T;return null==e?void 0:e.options})),rawPaginatedDataRef:F,filterMenuCssVarsRef:s((()=>{const{self:{actionDividerColor:e,actionPadding:t,actionButtonMargin:n}}=u.value;return{"--n-action-padding":t,"--n-action-button-margin":n,"--n-action-divider-color":e}})),onLoadRef:q(e,"onLoad"),mergedTableLayoutRef:Te,maxHeightRef:q(e,"maxHeight"),minHeightRef:q(e,"minHeight"),flexHeightRef:q(e,"flexHeight"),headerCheckboxDisabledRef:ne,paginationBehaviorOnFilterRef:q(e,"paginationBehaviorOnFilter"),summaryPlacementRef:q(e,"summaryPlacement"),filterIconPopoverPropsRef:q(e,"filterIconPopoverProps"),scrollbarPropsRef:q(e,"scrollbarProps"),syncScrollState:ve,doUpdatePage:A,doUpdateFilters:I,getResizableWidth:v,onUnstableColumnResize:U,clearResizableWidth:g,doUpdateResizableWidth:m,deriveNextSorter:M,doCheck:Z,doUncheck:te,doCheckAll:G,doUncheckAll:Y,doUpdateExpandedRowKeys:ue,handleTableHeaderScroll:fe,handleTableBodyScroll:he,setHeaderScrollLeft:me,renderCell:q(e,"renderCell")});const Ee={filter:H,filters:B,clearFilters:D,clearSorter:_,page:W,sort:X,clearFilter:j,downloadCsv:t=>{const{fileName:n="data.csv",keepOriginalData:o=!1}=t||{},r=o?e.data:F.value,a=function(e,t){const n=e.filter((e=>"expand"!==e.type&&"selection"!==e.type&&!1!==e.allowExport));return[n.map((e=>e.title)).join(","),...t.map((e=>n.map((t=>{return"string"==typeof(n=e[t.key])?n.replace(/,/g,"\\,"):null==n?"":`${n}`.replace(/,/g,"\\,");var n})).join(",")))].join("\n")}(e.columns,r),l=new Blob([a],{type:"text/csv;charset=utf-8"}),i=URL.createObjectURL(l);!function(e,t){if(!e)return;const n=document.createElement("a");n.href=e,void 0!==t&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}(i,n.endsWith(".csv")?n:`${n}.csv`),URL.revokeObjectURL(i)},scrollTo:(e,t)=>{var n;null===(n=p.value)||void 0===n||n.scrollTo(e,t)}},Oe=s((()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{borderColor:o,tdColorHover:r,tdColorSorting:a,tdColorSortingModal:l,tdColorSortingPopover:i,thColorSorting:d,thColorSortingModal:s,thColorSortingPopover:c,thColor:h,thColorHover:p,tdColor:f,tdTextColor:v,thTextColor:g,thFontWeight:m,thButtonColorHover:b,thIconColor:y,thIconColorActive:R,filterSize:C,borderRadius:w,lineHeight:k,tdColorModal:S,thColorModal:z,borderColorModal:P,thColorHoverModal:F,tdColorHoverModal:T,borderColorPopover:$,thColorPopover:E,tdColorPopover:O,tdColorHoverPopover:K,thColorHoverPopover:L,paginationMargin:A,emptyPadding:I,boxShadowAfter:N,boxShadowBefore:U,sorterSize:M,resizableContainerSize:H,resizableSize:B,loadingColor:j,loadingSize:D,opacityLoading:_,tdColorStriped:V,tdColorStripedModal:W,tdColorStripedPopover:q,[x("fontSize",t)]:X,[x("thPadding",t)]:G,[x("tdPadding",t)]:Y}}=u.value;return{"--n-font-size":X,"--n-th-padding":G,"--n-td-padding":Y,"--n-bezier":n,"--n-border-radius":w,"--n-line-height":k,"--n-border-color":o,"--n-border-color-modal":P,"--n-border-color-popover":$,"--n-th-color":h,"--n-th-color-hover":p,"--n-th-color-modal":z,"--n-th-color-hover-modal":F,"--n-th-color-popover":E,"--n-th-color-hover-popover":L,"--n-td-color":f,"--n-td-color-hover":r,"--n-td-color-modal":S,"--n-td-color-hover-modal":T,"--n-td-color-popover":O,"--n-td-color-hover-popover":K,"--n-th-text-color":g,"--n-td-text-color":v,"--n-th-font-weight":m,"--n-th-button-color-hover":b,"--n-th-icon-color":y,"--n-th-icon-color-active":R,"--n-filter-size":C,"--n-pagination-margin":A,"--n-empty-padding":I,"--n-box-shadow-before":U,"--n-box-shadow-after":N,"--n-sorter-size":M,"--n-resizable-container-size":H,"--n-resizable-size":B,"--n-loading-size":D,"--n-loading-color":j,"--n-opacity-loading":_,"--n-td-color-striped":V,"--n-td-color-striped-modal":W,"--n-td-color-striped-popover":q,"n-td-color-sorting":a,"n-td-color-sorting-modal":l,"n-td-color-sorting-popover":i,"n-th-color-sorting":d,"n-th-color-sorting-modal":s,"n-th-color-sorting-popover":c}})),Ke=r?C("data-table",s((()=>e.size[0])),Oe,e):void 0,Le=s((()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const t=E.value,{pageCount:n}=t;return void 0!==n?n>1:t.itemCount&&t.pageSize&&t.itemCount>t.pageSize}));return Object.assign({mainTableInstRef:p,mergedClsPrefix:o,rtlEnabled:i,mergedTheme:u,paginatedData:P,mergedBordered:n,mergedBottomBordered:c,mergedPagination:E,mergedShowPagination:Le,cssVars:r?void 0:Oe,themeClass:null==Ke?void 0:Ke.themeClass,onRender:null==Ke?void 0:Ke.onRender},Ee)},render(){const{mergedClsPrefix:e,themeClass:n,onRender:o,$slots:r,spinProps:a}=this;return null==o||o(),t("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,n,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},t("div",{class:`${e}-data-table-wrapper`},t(dt,{ref:"mainTableInstRef"})),this.mergedShowPagination?t("div",{class:`${e}-data-table__pagination`},t(me,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,t(te,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?t("div",{class:`${e}-data-table-loading-wrapper`},_(r.loading,(()=>[t(A,Object.assign({clsPrefix:e,strokeWidth:20},a))]))):null}))}});export{vt as _}; diff --git a/docs/assets/DatePicker-xH6BAkRV.js b/docs/assets/DatePicker-xH6BAkRV.js new file mode 100644 index 0000000..afd73bb --- /dev/null +++ b/docs/assets/DatePicker-xH6BAkRV.js @@ -0,0 +1 @@ +var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,l=(t,n,a)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[n]=a,o=(e,t,n)=>l(e,"symbol"!=typeof t?t+"":t,n);import{ao as s,v as d,ap as u,aq as c,ar as h,as as m,at as v,l as f,au as p,t as g,d as y,i as b,a as w,B as k,av as C,y as D,z as x,Q as S,aw as T,A as F,U as M,D as O,ax as P,C as R,ay as $,a0 as A,az as I,an as N,a4 as Y,G as z,aA as V,N as _,T as H,aB as B,aC as E,aD as j,aE as q,aF as U,a2 as L,aG as Q,aH as W,aI as Z,ae as K,a1 as G,aJ as X,aK as J,Y as ee}from"./index-BT0ZcDkn.js";import{u as te}from"./Dropdown-BMB08iEg.js";import{u as ne}from"./use-locale-CbMPSc0o.js";import{F as ae,V as re}from"./FocusDetector-C7V71fRC.js";import{u as ie,B as le,V as oe,a as se}from"./Popover-3mPJ01hC.js";import{F as de,B as ue,a as ce,b as he}from"./Forward-xWz6l688.js";import{N as me}from"./Input-D2qMgPO1.js";import{u as ve}from"./use-merged-state-D7wGS6Km.js";import{h as fe}from"./create-Bylz8BGN.js";const pe=s("date",d("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},d("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},d("g",{"fill-rule":"nonzero"},d("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),ge=s("time",d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},d("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:"\n fill: none;\n stroke: currentColor;\n stroke-miterlimit: 10;\n stroke-width: 32px;\n "}),d("polyline",{points:"256 128 256 272 352 272",style:"\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 32px;\n "}))),ye=s("to",d("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},d("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},d("g",{fill:"currentColor","fill-rule":"nonzero"},d("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"})))));function be(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function we(e,t){const n=u(e);return isNaN(t)?be(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function ke(e,t){const n=u(e);if(isNaN(t))return be(e,NaN);if(!t)return n;const a=n.getDate(),r=be(e,n.getTime());r.setMonth(n.getMonth()+t+1,0);return a>=r.getDate()?r:(n.setFullYear(r.getFullYear(),r.getMonth(),a),n)}const Ce=6048e5;function De(e){return c(e,{weekStartsOn:1})}function xe(e){const t=u(e),n=t.getFullYear(),a=be(e,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const r=De(a),i=be(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const l=De(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function Se(e){const t=u(e);return t.setHours(0,0,0,0),t}function Te(e){const t=u(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Fe(e,t){return ke(e,12*t)}function Me(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=u(e);return!isNaN(Number(n))}function Oe(e){const t=u(e);return Math.trunc(t.getMonth()/3)+1}function Pe(e){const t=u(e),n=t.getMonth(),a=n-n%3;return t.setMonth(a,1),t.setHours(0,0,0,0),t}function Re(e){const t=u(e);return t.setDate(1),t.setHours(0,0,0,0),t}function $e(e){const t=u(e),n=be(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Ae(e){const t=u(e);return function(e,t){const n=Se(e),a=Se(t),r=+n-Te(n),i=+a-Te(a);return Math.round((r-i)/864e5)}(t,$e(t))+1}function Ie(e){const t=u(e),n=+De(t)-+function(e){const t=xe(e),n=be(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),De(n)}(t);return Math.round(n/Ce)+1}function Ne(e,t){var n,a,r,i,l,o,s,d;const m=u(e),v=m.getFullYear(),f=h(),p=null!=(d=null!=(s=null!=(i=null!=(r=null==t?void 0:t.firstWeekContainsDate)?r:null==(a=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:a.firstWeekContainsDate)?i:f.firstWeekContainsDate)?s:null==(o=null==(l=f.locale)?void 0:l.options)?void 0:o.firstWeekContainsDate)?d:1,g=be(e,0);g.setFullYear(v+1,0,p),g.setHours(0,0,0,0);const y=c(g,t),b=be(e,0);b.setFullYear(v,0,p),b.setHours(0,0,0,0);const w=c(b,t);return m.getTime()>=y.getTime()?v+1:m.getTime()>=w.getTime()?v:v-1}function Ye(e,t){const n=u(e),a=+c(n,t)-+function(e,t){var n,a,r,i,l,o,s,d;const u=h(),m=null!=(d=null!=(s=null!=(i=null!=(r=null==t?void 0:t.firstWeekContainsDate)?r:null==(a=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:a.firstWeekContainsDate)?i:u.firstWeekContainsDate)?s:null==(o=null==(l=u.locale)?void 0:l.options)?void 0:o.firstWeekContainsDate)?d:1,v=Ne(e,t),f=be(e,0);return f.setFullYear(v,0,m),f.setHours(0,0,0,0),c(f,t)}(n,t);return Math.round(a/Ce)+1}function ze(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Ve={y(e,t){const n=e.getFullYear(),a=n>0?n:1-n;return ze("yy"===t?a%100:a,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):ze(n+1,2)},d:(e,t)=>ze(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>ze(e.getHours()%12||12,t.length),H:(e,t)=>ze(e.getHours(),t.length),m:(e,t)=>ze(e.getMinutes(),t.length),s:(e,t)=>ze(e.getSeconds(),t.length),S(e,t){const n=t.length,a=e.getMilliseconds();return ze(Math.trunc(a*Math.pow(10,n-3)),t.length)}},_e="midnight",He="noon",Be="morning",Ee="afternoon",je="evening",qe="night",Ue={G:function(e,t,n){const a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});default:return n.era(a,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),a=t>0?t:1-t;return n.ordinalNumber(a,{unit:"year"})}return Ve.y(e,t)},Y:function(e,t,n,a){const r=Ne(e,a),i=r>0?r:1-r;if("YY"===t){return ze(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):ze(i,t.length)},R:function(e,t){return ze(xe(e),t.length)},u:function(e,t){return ze(e.getFullYear(),t.length)},Q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return ze(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return ze(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,n){const a=e.getMonth();switch(t){case"M":case"MM":return Ve.M(e,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,n){const a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return ze(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){const r=Ye(e,a);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):ze(r,t.length)},I:function(e,t,n){const a=Ie(e);return"Io"===t?n.ordinalNumber(a,{unit:"week"}):ze(a,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Ve.d(e,t)},D:function(e,t,n){const a=Ae(e);return"Do"===t?n.ordinalNumber(a,{unit:"dayOfYear"}):ze(a,t.length)},E:function(e,t,n){const a=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,n,a){const r=e.getDay(),i=(r-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ze(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,a){const r=e.getDay(),i=(r-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ze(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const a=e.getDay(),r=0===a?7:a;switch(t){case"i":return String(r);case"ii":return ze(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const a=e.getHours();let r;switch(r=12===a?He:0===a?_e:a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const a=e.getHours();let r;switch(r=a>=17?je:a>=12?Ee:a>=4?Be:qe,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Ve.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ve.H(e,t)},K:function(e,t,n){const a=e.getHours()%12;return"Ko"===t?n.ordinalNumber(a,{unit:"hour"}):ze(a,t.length)},k:function(e,t,n){let a=e.getHours();return 0===a&&(a=24),"ko"===t?n.ordinalNumber(a,{unit:"hour"}):ze(a,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ve.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ve.s(e,t)},S:function(e,t){return Ve.S(e,t)},X:function(e,t,n){const a=e.getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return Qe(a);case"XXXX":case"XX":return We(a);default:return We(a,":")}},x:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"x":return Qe(a);case"xxxx":case"xx":return We(a);default:return We(a,":")}},O:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Le(a,":");default:return"GMT"+We(a,":")}},z:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Le(a,":");default:return"GMT"+We(a,":")}},t:function(e,t,n){return ze(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return ze(e.getTime(),t.length)}};function Le(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),r=Math.trunc(a/60),i=a%60;return 0===i?n+String(r):n+String(r)+t+ze(i,2)}function Qe(e,t){if(e%60==0){return(e>0?"-":"+")+ze(Math.abs(e)/60,2)}return We(e,t)}function We(e,t=""){const n=e>0?"-":"+",a=Math.abs(e);return n+ze(Math.trunc(a/60),2)+t+ze(a%60,2)}const Ze=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Ke=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Ge={p:Ke,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],r=n[2];if(!r)return Ze(e,t);let i;switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",Ze(a,t)).replace("{{time}}",Ke(r,t))}},Xe=/^D+$/,Je=/^Y+$/,et=["D","DD","YY","YYYY"];function tt(e){return Xe.test(e)}function nt(e){return Je.test(e)}function at(e,t,n){const a=function(e,t,n){const a="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(a),et.includes(e))throw new RangeError(a)}const rt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,it=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lt=/^'([^]*?)'?$/,ot=/''/g,st=/[a-zA-Z]/;function dt(e,t,n){var a,r,i,l,o,s,d,c,v,f,p,g,y,b,w,k,C,D;const x=h(),S=null!=(r=null!=(a=null==n?void 0:n.locale)?a:x.locale)?r:m,T=null!=(f=null!=(v=null!=(s=null!=(o=null==n?void 0:n.firstWeekContainsDate)?o:null==(l=null==(i=null==n?void 0:n.locale)?void 0:i.options)?void 0:l.firstWeekContainsDate)?s:x.firstWeekContainsDate)?v:null==(c=null==(d=x.locale)?void 0:d.options)?void 0:c.firstWeekContainsDate)?f:1,F=null!=(D=null!=(C=null!=(b=null!=(y=null==n?void 0:n.weekStartsOn)?y:null==(g=null==(p=null==n?void 0:n.locale)?void 0:p.options)?void 0:g.weekStartsOn)?b:x.weekStartsOn)?C:null==(k=null==(w=x.locale)?void 0:w.options)?void 0:k.weekStartsOn)?D:0,M=u(e);if(!Me(M))throw new RangeError("Invalid time value");let O=t.match(it).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,Ge[t])(e,S.formatLong)}return e})).join("").match(rt).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ut(e)};if(Ue[t])return{isToken:!0,value:e};if(t.match(st))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));S.localize.preprocessor&&(O=S.localize.preprocessor(M,O));const P={firstWeekContainsDate:T,weekStartsOn:F,locale:S};return O.map((a=>{if(!a.isToken)return a.value;const r=a.value;(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&nt(r)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&tt(r))&&at(r,t,String(e));return(0,Ue[r[0]])(M,r,S.localize,P)})).join("")}function ut(e){const t=e.match(lt);return t?t[1].replace(ot,"'"):e}function ct(e){return u(e).getDate()}function ht(){return Object.assign({},h())}function mt(e){return u(e).getHours()}function vt(e){return u(e).getMinutes()}function ft(e){return u(e).getMonth()}function pt(e){return u(e).getSeconds()}function gt(e){return u(e).getTime()}function yt(e){return u(e).getFullYear()}class bt{constructor(){o(this,"subPriority",0)}validate(e,t){return!0}}class wt extends bt{constructor(e,t,n,a,r){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=a,r&&(this.subPriority=r)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class kt extends bt{constructor(){super(...arguments),o(this,"priority",10),o(this,"subPriority",-1)}set(e,t){return t.timestampIsSet?e:be(e,function(e,t){const n=t instanceof Date?be(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}(e,Date))}}class Ct{run(e,t,n,a){const r=this.parse(e,t,n,a);return r?{setter:new wt(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(e,t,n){return!0}}const Dt=/^(1[0-2]|0?\d)/,xt=/^(3[0-1]|[0-2]?\d)/,St=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Tt=/^(5[0-3]|[0-4]?\d)/,Ft=/^(2[0-3]|[0-1]?\d)/,Mt=/^(2[0-4]|[0-1]?\d)/,Ot=/^(1[0-1]|0?\d)/,Pt=/^(1[0-2]|0?\d)/,Rt=/^[0-5]?\d/,$t=/^[0-5]?\d/,At=/^\d/,It=/^\d{1,2}/,Nt=/^\d{1,3}/,Yt=/^\d{1,4}/,zt=/^-?\d+/,Vt=/^-?\d/,_t=/^-?\d{1,2}/,Ht=/^-?\d{1,3}/,Bt=/^-?\d{1,4}/,Et=/^([+-])(\d{2})(\d{2})?|Z/,jt=/^([+-])(\d{2})(\d{2})|Z/,qt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Ut=/^([+-])(\d{2}):(\d{2})|Z/,Lt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Qt(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Wt(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Zt(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};return{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}}function Kt(e){return Wt(zt,e)}function Gt(e,t){switch(e){case 1:return Wt(At,t);case 2:return Wt(It,t);case 3:return Wt(Nt,t);case 4:return Wt(Yt,t);default:return Wt(new RegExp("^\\d{1,"+e+"}"),t)}}function Xt(e,t){switch(e){case 1:return Wt(Vt,t);case 2:return Wt(_t,t);case 3:return Wt(Ht,t);case 4:return Wt(Bt,t);default:return Wt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Jt(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function en(e,t){const n=t>0,a=n?t:1-t;let r;if(a<=50)r=e||100;else{const t=a+50;r=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?r:1-r}function tn(e){return e%400==0||e%4==0&&e%100!=0}const nn=[31,28,31,30,31,30,31,31,30,31,30,31],an=[31,29,31,30,31,30,31,31,30,31,30,31];function rn(e,t,n){var a,r,i,l,o,s,d,c;const m=h(),v=null!=(c=null!=(d=null!=(l=null!=(i=null==n?void 0:n.weekStartsOn)?i:null==(r=null==(a=null==n?void 0:n.locale)?void 0:a.options)?void 0:r.weekStartsOn)?l:m.weekStartsOn)?d:null==(s=null==(o=m.locale)?void 0:o.options)?void 0:s.weekStartsOn)?c:0,f=u(e),p=f.getDay(),g=7-v;return we(f,t<0||t>6?t-(p+g)%7:((t%7+7)%7+g)%7-(p+g)%7)}function ln(e,t){const n=u(e),a=function(e){let t=u(e).getDay();return 0===t&&(t=7),t}(n);return we(n,t-a)}const on={G:new class extends Ct{constructor(){super(...arguments),o(this,"priority",140),o(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}},y:new class extends Ct{constructor(){super(...arguments),o(this,"priority",130),o(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,n){const a=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return Qt(Gt(4,e),a);case"yo":return Qt(n.ordinalNumber(e,{unit:"year"}),a);default:return Qt(Gt(t.length,e),a)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const a=e.getFullYear();if(n.isTwoDigitYear){const t=en(n.year,a);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const r="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}},Y:new class extends Ct{constructor(){super(...arguments),o(this,"priority",130),o(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,n){const a=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return Qt(Gt(4,e),a);case"Yo":return Qt(n.ordinalNumber(e,{unit:"year"}),a);default:return Qt(Gt(t.length,e),a)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,a){const r=Ne(e,a);if(n.isTwoDigitYear){const t=en(n.year,r);return e.setFullYear(t,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),c(e,a)}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),c(e,a)}},R:new class extends Ct{constructor(){super(...arguments),o(this,"priority",130),o(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return Xt("R"===t?4:t.length,e)}set(e,t,n){const a=be(e,0);return a.setFullYear(n,0,4),a.setHours(0,0,0,0),De(a)}},u:new class extends Ct{constructor(){super(...arguments),o(this,"priority",130),o(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return Xt("u"===t?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}},Q:new class extends Ct{constructor(){super(...arguments),o(this,"priority",120),o(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"Q":case"QQ":return Gt(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}},q:new class extends Ct{constructor(){super(...arguments),o(this,"priority",120),o(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"q":case"qq":return Gt(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}},M:new class extends Ct{constructor(){super(...arguments),o(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),o(this,"priority",110)}parse(e,t,n){const a=e=>e-1;switch(t){case"M":return Qt(Wt(Dt,e),a);case"MM":return Qt(Gt(2,e),a);case"Mo":return Qt(n.ordinalNumber(e,{unit:"month"}),a);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},L:new class extends Ct{constructor(){super(...arguments),o(this,"priority",110),o(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,n){const a=e=>e-1;switch(t){case"L":return Qt(Wt(Dt,e),a);case"LL":return Qt(Gt(2,e),a);case"Lo":return Qt(n.ordinalNumber(e,{unit:"month"}),a);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},w:new class extends Ct{constructor(){super(...arguments),o(this,"priority",100),o(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,n){switch(t){case"w":return Wt(Tt,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Gt(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,a){return c(function(e,t,n){const a=u(e),r=Ye(a,n)-t;return a.setDate(a.getDate()-7*r),a}(e,n,a),a)}},I:new class extends Ct{constructor(){super(...arguments),o(this,"priority",100),o(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,n){switch(t){case"I":return Wt(Tt,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Gt(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return De(function(e,t){const n=u(e),a=Ie(n)-t;return n.setDate(n.getDate()-7*a),n}(e,n))}},d:new class extends Ct{constructor(){super(...arguments),o(this,"priority",90),o(this,"subPriority",1),o(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"d":return Wt(xt,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Gt(t.length,e)}}validate(e,t){const n=tn(e.getFullYear()),a=e.getMonth();return n?t>=1&&t<=an[a]:t>=1&&t<=nn[a]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}},D:new class extends Ct{constructor(){super(...arguments),o(this,"priority",90),o(this,"subpriority",1),o(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,n){switch(t){case"D":case"DD":return Wt(St,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Gt(t.length,e)}}validate(e,t){return tn(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}},E:new class extends Ct{constructor(){super(...arguments),o(this,"priority",90),o(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,a){return(e=rn(e,n,a)).setHours(0,0,0,0),e}},e:new class extends Ct{constructor(){super(...arguments),o(this,"priority",90),o(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,n,a){const r=e=>{const t=7*Math.floor((e-1)/7);return(e+a.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Qt(Gt(t.length,e),r);case"eo":return Qt(n.ordinalNumber(e,{unit:"day"}),r);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,a){return(e=rn(e,n,a)).setHours(0,0,0,0),e}},c:new class extends Ct{constructor(){super(...arguments),o(this,"priority",90),o(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,n,a){const r=e=>{const t=7*Math.floor((e-1)/7);return(e+a.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Qt(Gt(t.length,e),r);case"co":return Qt(n.ordinalNumber(e,{unit:"day"}),r);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,a){return(e=rn(e,n,a)).setHours(0,0,0,0),e}},i:new class extends Ct{constructor(){super(...arguments),o(this,"priority",90),o(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,n){const a=e=>0===e?7:e;switch(t){case"i":case"ii":return Gt(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Qt(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),a);case"iiiii":return Qt(n.day(e,{width:"narrow",context:"formatting"}),a);case"iiiiii":return Qt(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),a);default:return Qt(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),a)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=ln(e,n)).setHours(0,0,0,0),e}},a:new class extends Ct{constructor(){super(...arguments),o(this,"priority",80),o(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Jt(n),0,0,0),e}},b:new class extends Ct{constructor(){super(...arguments),o(this,"priority",80),o(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Jt(n),0,0,0),e}},B:new class extends Ct{constructor(){super(...arguments),o(this,"priority",80),o(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Jt(n),0,0,0),e}},h:new class extends Ct{constructor(){super(...arguments),o(this,"priority",70),o(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,n){switch(t){case"h":return Wt(Pt,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Gt(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const a=e.getHours()>=12;return a&&n<12?e.setHours(n+12,0,0,0):a||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}},H:new class extends Ct{constructor(){super(...arguments),o(this,"priority",70),o(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,n){switch(t){case"H":return Wt(Ft,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Gt(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}},K:new class extends Ct{constructor(){super(...arguments),o(this,"priority",70),o(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,n){switch(t){case"K":return Wt(Ot,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Gt(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}},k:new class extends Ct{constructor(){super(...arguments),o(this,"priority",70),o(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,n){switch(t){case"k":return Wt(Mt,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Gt(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const a=n<=24?n%24:n;return e.setHours(a,0,0,0),e}},m:new class extends Ct{constructor(){super(...arguments),o(this,"priority",60),o(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"m":return Wt(Rt,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Gt(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}},s:new class extends Ct{constructor(){super(...arguments),o(this,"priority",50),o(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"s":return Wt($t,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Gt(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}},S:new class extends Ct{constructor(){super(...arguments),o(this,"priority",30),o(this,"incompatibleTokens",["t","T"])}parse(e,t){return Qt(Gt(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}},X:new class extends Ct{constructor(){super(...arguments),o(this,"priority",10),o(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return Zt(Et,e);case"XX":return Zt(jt,e);case"XXXX":return Zt(qt,e);case"XXXXX":return Zt(Lt,e);default:return Zt(Ut,e)}}set(e,t,n){return t.timestampIsSet?e:be(e,e.getTime()-Te(e)-n)}},x:new class extends Ct{constructor(){super(...arguments),o(this,"priority",10),o(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return Zt(Et,e);case"xx":return Zt(jt,e);case"xxxx":return Zt(qt,e);case"xxxxx":return Zt(Lt,e);default:return Zt(Ut,e)}}set(e,t,n){return t.timestampIsSet?e:be(e,e.getTime()-Te(e)-n)}},t:new class extends Ct{constructor(){super(...arguments),o(this,"priority",40),o(this,"incompatibleTokens","*")}parse(e){return Kt(e)}set(e,t,n){return[be(e,1e3*n),{timestampIsSet:!0}]}},T:new class extends Ct{constructor(){super(...arguments),o(this,"priority",20),o(this,"incompatibleTokens","*")}parse(e){return Kt(e)}set(e,t,n){return[be(e,n),{timestampIsSet:!0}]}}},sn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,un=/^'([^]*?)'?$/,cn=/''/g,hn=/\S/,mn=/[a-zA-Z]/;function vn(e,t){const n=u(e),a=u(t);return n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()}function fn(e,t){return+Pe(e)==+Pe(t)}function pn(e){const t=u(e);return t.setMilliseconds(0),t}function gn(e,t){const n=u(e),a=u(t);return n.getFullYear()===a.getFullYear()}function yn(e,t){const n=u(e),a=n.getFullYear(),r=n.getDate(),i=be(e,0);i.setFullYear(a,t,15),i.setHours(0,0,0,0);const l=function(e){const t=u(e),n=t.getFullYear(),a=t.getMonth(),r=be(e,0);return r.setFullYear(n,a+1,0),r.setHours(0,0,0,0),r.getDate()}(i);return n.setMonth(t,Math.min(r,l)),n}function bn(e,t){let n=u(e);return isNaN(+n)?be(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=yn(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}function wn(e,t){const n=u(e);return n.setHours(t),n}function kn(e,t){const n=u(e);return n.setMinutes(t),n}function Cn(e,t){const n=u(e);return n.setSeconds(t),n}function Dn(e,t){const n=u(e);return isNaN(+n)?be(e,NaN):(n.setFullYear(t),n)}const xn={date:function(e,t){return+Se(e)==+Se(t)},month:vn,year:gn,quarter:fn};function Sn(e,t,n,a=0){const r="week"===n?function(e){return(t,n)=>v(t,n,{weekStartsOn:(e+1)%7})}(a):xn[n];return r(e,t)}function Tn(e,t,n,a,r,i){return"date"===r?function(e,t,n,a){let r=!1,i=!1,l=!1;Array.isArray(n)&&(n[0]{const t=e[0];return t in Ge?(0,Ge[t])(e,S.formatLong):e})).join("").match(sn),R=[];for(let u of P){!(null==a?void 0:a.useAdditionalWeekYearTokens)&&nt(u)&&at(u,t,e),!(null==a?void 0:a.useAdditionalDayOfYearTokens)&&tt(u)&&at(u,t,e);const r=u[0],i=on[r];if(i){const{incompatibleTokens:t}=i;if(Array.isArray(t)){const e=R.find((e=>t.includes(e.token)||e.token===r));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${u}\` at the same time`)}else if("*"===i.incompatibleTokens&&R.length>0)throw new RangeError(`The format string mustn't contain \`${u}\` and any other token at the same time`);R.push({token:r,fullToken:u});const a=i.run(e,u,S.match,M);if(!a)return be(n,NaN);O.push(a.setter),e=a.rest}else{if(r.match(mn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===u?u="'":"'"===r&&(u=u.match(un)[1].replace(cn,"'")),0!==e.indexOf(u))return be(n,NaN);e=e.slice(u.length)}}if(e.length>0&&hn.test(e))return be(n,NaN);const $=O.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>O.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let A=u(n);if(isNaN(A.getTime()))return be(n,NaN);const I={};for(const u of $){if(!u.validate(A,M))return be(n,NaN);const e=u.set(A,I,M);Array.isArray(e)?(A=e[0],Object.assign(I,e[1])):A=e}return be(n,A)}(e,t,n,a);return Me(r)?dt(r,t,a)===e?r:new Date(Number.NaN):r}function Vn(e){if(void 0===e)return;if("number"==typeof e)return e;const[t,n,a]=e.split(":");return{hours:Number(t),minutes:Number(n),seconds:Number(a)}}function _n(e,t){return Array.isArray(e)?e["start"===t?0:1]:null}const Hn=p("n-date-picker");function Bn(e,t,n){var a;const r=ht(),i=function(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,null!=(a=n.locale)?a:r.locale);return"formatToParts"in i?function(e,t){const n=e.formatToParts(t);for(let a=n.length-1;a>=0;--a)if("timeZoneName"===n[a].type)return n[a].value;return}(i,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),a=/ [\w-+ ]+$/.exec(n);return a?a[0].substr(1):""}(i,t)}function En(e,t){const n=function(e){qn[e]||(qn[e]=Ln?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}));return qn[e]}(t);return"formatToParts"in n?function(e,t){try{const n=e.formatToParts(t),a=[];for(let e=0;e=0?i:1e3+i,a-r}function Xn(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}const Jn={};const ea={X:function(e,t,n){const a=ta(n.timeZone,e);if(0===a)return"Z";switch(t){case"X":return ra(a);case"XXXX":case"XX":return aa(a);default:return aa(a,":")}},x:function(e,t,n){const a=ta(n.timeZone,e);switch(t){case"x":return ra(a);case"xxxx":case"xx":return aa(a);default:return aa(a,":")}},O:function(e,t,n){const a=ta(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),r=Math.floor(a/60),i=a%60;if(0===i)return n+String(r);return n+String(r)+t+na(i,2)}(a,":");default:return"GMT"+aa(a,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return Bn("short",e,n);default:return Bn("long",e,n)}}};function ta(e,t){var n;const a=e?Kn(e,t,!0)/6e4:null!=(n=null==t?void 0:t.getTimezoneOffset())?n:0;if(Number.isNaN(a))throw new RangeError("Invalid time zone specified: "+e);return a}function na(e,t){const n=e<0?"-":"";let a=Math.abs(e).toString();for(;a.length0?"-":"+",a=Math.abs(e);return n+na(Math.floor(a/60),2)+t+na(Math.floor(a%60),2)}function ra(e,t){if(e%60==0){return(e>0?"-":"+")+na(Math.abs(e)/60,2)}return aa(e,t)}function ia(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const la=36e5,oa=6e4,sa={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function da(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);const n=null==t.additionalDigits?2:Number(t.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);const a=function(e){const t={};let n,a=sa.dateTimePattern.exec(e);a?(t.date=a[1],n=a[3]):(a=sa.datePattern.exec(e),a?(t.date=a[1],n=a[2]):(t.date=null,n=e));if(n){const e=sa.timeZone.exec(n);e?(t.time=n.replace(e[1],""),t.timeZone=e[1].trim()):t.time=n}return t}(e),{year:r,restDateString:i}=function(e,t){if(e){const n=sa.YYY[t],a=sa.YYYYY[t];let r=sa.YYYY.exec(e)||a.exec(e);if(r){const t=r[1];return{year:parseInt(t,10),restDateString:e.slice(t.length)}}if(r=sa.YY.exec(e)||n.exec(e),r){const t=r[1];return{year:100*parseInt(t,10),restDateString:e.slice(t.length)}}}return{year:null}}(a.date,n),l=function(e,t){if(null===t)return null;let n,a,r;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let i=sa.MM.exec(e);if(i)return n=new Date(0),a=parseInt(i[1],10)-1,va(t,a)?(n.setUTCFullYear(t,a),n):new Date(NaN);if(i=sa.DDD.exec(e),i){n=new Date(0);const e=parseInt(i[1],10);return function(e,t){if(t<1)return!1;const n=ma(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,e)?(n.setUTCFullYear(t,0,e),n):new Date(NaN)}if(i=sa.MMDD.exec(e),i){n=new Date(0),a=parseInt(i[1],10)-1;const e=parseInt(i[2],10);return va(t,a,e)?(n.setUTCFullYear(t,a,e),n):new Date(NaN)}if(i=sa.Www.exec(e),i)return r=parseInt(i[1],10)-1,fa(r)?ua(t,r):new Date(NaN);if(i=sa.WwwD.exec(e),i){r=parseInt(i[1],10)-1;const e=parseInt(i[2],10)-1;return fa(r,e)?ua(t,r,e):new Date(NaN)}return null}(i,r);if(null===l||isNaN(l.getTime()))return new Date(NaN);if(l){const e=l.getTime();let n,r=0;if(a.time&&(r=function(e){let t,n,a=sa.HH.exec(e);if(a)return t=parseFloat(a[1].replace(",",".")),pa(t)?t%24*la:NaN;if(a=sa.HHMM.exec(e),a)return t=parseInt(a[1],10),n=parseFloat(a[2].replace(",",".")),pa(t,n)?t%24*la+n*oa:NaN;if(a=sa.HHMMSS.exec(e),a){t=parseInt(a[1],10),n=parseInt(a[2],10);const e=parseFloat(a[3].replace(",","."));return pa(t,n,e)?t%24*la+n*oa+1e3*e:NaN}return null}(a.time),null===r||isNaN(r)))return new Date(NaN);if(a.timeZone||t.timeZone){if(n=Kn(a.timeZone||t.timeZone,new Date(e+r)),isNaN(n))return new Date(NaN)}else n=ia(new Date(e+r)),n=ia(new Date(e+r+n));return new Date(e+r+n)}return new Date(NaN)}function ua(e,t,n){t=t||0,n=n||0;const a=new Date(0);a.setUTCFullYear(e,0,4);const r=7*t+n+1-(a.getUTCDay()||7);return a.setUTCDate(a.getUTCDate()+r),a}const ca=[31,28,31,30,31,30,31,31,30,31,30,31],ha=[31,29,31,30,31,30,31,31,30,31,30,31];function ma(e){return e%400==0||e%4==0&&e%100!=0}function va(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;const a=ma(e);if(a&&n>ha[t])return!1;if(!a&&n>ca[t])return!1}return!0}function fa(e,t){return!(e<0||e>52)&&(null==t||!(t<0||t>6))}function pa(e,t,n){return!(e<0||e>=25)&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}const ga=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function ya(e,o,s,d){var u;return u=((e,t)=>{for(var n in t||(t={}))r.call(t,n)&&l(e,n,t[n]);if(a)for(var n of a(t))i.call(t,n)&&l(e,n,t[n]);return e})({},d),function(e,t,n={}){const a=(t=String(t)).match(ga);if(a){const r=da(n.originalDate||e,n);t=a.reduce((function(e,t){if("'"===t[0])return e;const a=e.indexOf(t),i="'"===e[a-1],l=e.replace(t,"'"+ea[t[0]](r,t,n)+"'");return i?l.substring(0,a-1)+l.substring(a+1):l}),t)}return dt(e,t,n)}(function(e,t,n){const a=Kn(t,e=da(e,n),!0),r=new Date(e.getTime()-a),i=new Date(0);return i.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),i.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),i}(e,o,{timeZone:(d=t(u,n({timeZone:o,originalDate:e}))).timeZone}),s,d)}const ba={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function wa(e){return`00${e}`.slice(-2)}function ka(e,t,n){return Array.isArray(t)?("am"===n?t.filter((e=>e<12)):"pm"===n?t.filter((e=>e>=12)).map((e=>12===e?12:e-12)):t).map((e=>wa(e))):"number"==typeof t?"am"===n?e.filter((e=>{const n=Number(e);return n<12&&n%t==0})):"pm"===n?e.filter((e=>{const n=Number(e);return n>=12&&n%t==0})).map((e=>{const t=Number(e);return wa(12===t?12:t-12)})):e.filter((e=>Number(e)%t==0)):"am"===n?e.filter((e=>Number(e)<12)):"pm"===n?e.map((e=>Number(e))).filter((e=>Number(e)>=12)).map((e=>wa(12===e?12:e-12))):e}function Ca(e,t,n){return!n||("number"==typeof n?e%n==0:n.includes(e))}const Da=p("n-time-picker"),xa=y({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map((a=>{const{label:r,disabled:i,value:l}=a,o=e===l;return d("div",{key:r,"data-active":o?"":null,class:[`${n}-time-picker-col__item`,o&&`${n}-time-picker-col__item--active`,i&&`${n}-time-picker-col__item--disabled`],onClick:t&&!i?()=>{t(l)}:void 0},r)}))}}),Sa=y({name:"TimePickerPanel",props:{actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,clearText:String,nowText:String,confirmText:String,transitionDisabled:Boolean,onClearClick:Function,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:n}=b(Da);return{mergedTheme:t,mergedClsPrefix:n,hours:f((()=>{const{isHourDisabled:t,hours:n,use12Hours:a,amPmValue:r}=e;if(a){const e=null!=r?r:mt(Date.now())<12?"am":"pm";return ka(ba.hours,n,e).map((n=>{const a=Number(n),r="pm"===e&&12!==a?a+12:a;return{label:n,value:r,disabled:!!t&&t(r)}}))}return ka(ba.hours,n).map((e=>({label:e,value:Number(e),disabled:!!t&&t(Number(e))})))})),minutes:f((()=>{const{isMinuteDisabled:t,minutes:n}=e;return ka(ba.minutes,n).map((n=>({label:n,value:Number(n),disabled:!!t&&t(Number(n),e.hourValue)})))})),seconds:f((()=>{const{isSecondDisabled:t,seconds:n}=e;return ka(ba.seconds,n).map((n=>({label:n,value:Number(n),disabled:!!t&&t(Number(n),e.minuteValue,e.hourValue)})))})),amPm:f((()=>{const{isHourDisabled:t}=e;let n=!0,a=!0;for(let e=0;e<12;++e)if(!(null==t?void 0:t(e))){n=!1;break}for(let e=12;e<24;++e)if(!(null==t?void 0:t(e))){a=!1;break}return[{label:"AM",value:"am",disabled:n},{label:"PM",value:"pm",disabled:a}]})),hourScrollRef:w(null),minuteScrollRef:w(null),secondScrollRef:w(null),amPmScrollRef:w(null)}},render(){var e,t,n,a;const{mergedClsPrefix:r,mergedTheme:i}=this;return d("div",{tabindex:0,class:`${r}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},d("div",{class:`${r}-time-picker-cols`},this.showHour?d("div",{class:[`${r}-time-picker-col`,this.isHourInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},d(C,{ref:"hourScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[d(xa,{clsPrefix:r,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),d("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showMinute?d("div",{class:[`${r}-time-picker-col`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${r}-time-picker-col--invalid`]},d(C,{ref:"minuteScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[d(xa,{clsPrefix:r,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),d("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showSecond?d("div",{class:[`${r}-time-picker-col`,this.isSecondInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},d(C,{ref:"secondScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[d(xa,{clsPrefix:r,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),d("div",{class:`${r}-time-picker-col__padding`})]})):null,this.use12Hours?d("div",{class:[`${r}-time-picker-col`,this.isAmPmInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},d(C,{ref:"amPmScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[d(xa,{clsPrefix:r,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),d("div",{class:`${r}-time-picker-col__padding`})]})):null),(null===(e=this.actions)||void 0===e?void 0:e.length)?d("div",{class:`${r}-time-picker-actions`},(null===(t=this.actions)||void 0===t?void 0:t.includes("clear"))?d(k,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.onClearClick},{default:()=>this.clearText}):null,(null===(n=this.actions)||void 0===n?void 0:n.includes("now"))?d(k,{size:"tiny",theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,(null===(a=this.actions)||void 0===a?void 0:a.includes("confirm"))?d(k,{size:"tiny",type:"primary",class:`${r}-time-picker-actions__confirm`,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,d(ae,{onFocus:this.onFocusDetectorFocus}))}}),Ta=D([x("time-picker","\n z-index: auto;\n position: relative;\n ",[x("time-picker-icon","\n color: var(--n-icon-color-override);\n transition: color .3s var(--n-bezier);\n "),S("disabled",[x("time-picker-icon","\n color: var(--n-icon-color-disabled-override);\n ")])]),x("time-picker-panel","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n outline: none;\n font-size: var(--n-item-font-size);\n border-radius: var(--n-border-radius);\n margin: 4px 0;\n min-width: 104px;\n overflow: hidden;\n background-color: var(--n-panel-color);\n box-shadow: var(--n-panel-box-shadow);\n ",[T(),x("time-picker-actions","\n padding: var(--n-panel-action-padding);\n align-items: center;\n display: flex;\n justify-content: space-evenly;\n "),x("time-picker-cols","\n height: calc(var(--n-item-height) * 6);\n display: flex;\n position: relative;\n transition: border-color .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-panel-divider-color);\n "),x("time-picker-col","\n flex-grow: 1;\n min-width: var(--n-item-width);\n height: calc(var(--n-item-height) * 6);\n flex-direction: column;\n transition: box-shadow .3s var(--n-bezier);\n ",[S("transition-disabled",[F("item","transition: none;",[D("&::before","transition: none;")])]),F("padding","\n height: calc(var(--n-item-height) * 5);\n "),D("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[F("item",[D("&::before","left: 4px;")])]),F("item","\n cursor: pointer;\n height: var(--n-item-height);\n display: flex;\n align-items: center;\n justify-content: center;\n transition: \n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n text-decoration-color .3s var(--n-bezier);\n background: #0000;\n text-decoration-color: #0000;\n color: var(--n-item-text-color);\n z-index: 0;\n box-sizing: border-box;\n padding-top: 4px;\n position: relative;\n ",[D("&::before",'\n content: "";\n transition: background-color .3s var(--n-bezier);\n z-index: -1;\n position: absolute;\n left: 0;\n right: 4px;\n top: 4px;\n bottom: 0;\n border-radius: var(--n-item-border-radius);\n '),M("disabled",[D("&:hover::before","\n background-color: var(--n-item-color-hover);\n ")]),S("active","\n color: var(--n-item-text-color-active);\n ",[D("&::before","\n background-color: var(--n-item-color-hover);\n ")]),S("disabled","\n opacity: var(--n-item-opacity-disabled);\n cursor: not-allowed;\n ")]),S("invalid",[F("item",[S("active","\n text-decoration: line-through;\n text-decoration-color: var(--n-item-text-color-active);\n ")])])])])]);function Fa(e,t){return void 0===e||(Array.isArray(e)?e.every((e=>e>=0&&e<=t)):e>=0&&e<=t)}const Ma=y({name:"TimePicker",props:Object.assign(Object.assign({},R.props),{to:ie.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>Fa(e,23)},minutes:{type:[Number,Array],validator:e=>Fa(e,59)},seconds:{type:[Number,Array],validator:e=>Fa(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:a,inlineThemeDisabled:r}=O(e),{localeRef:i,dateLocaleRef:l}=ne("TimePicker"),o=P(e),{mergedSizeRef:s,mergedDisabledRef:d,mergedStatusRef:c}=o,h=R("TimePicker","-time-picker",Ta,$,e,n),m=te(),v=w(null),p=w(null),y=f((()=>({locale:l.value.locale})));function b(t){return null===t?null:zn(t,e.valueFormat||e.format,new Date,y.value).getTime()}const{defaultValue:k,defaultFormattedValue:C}=e,D=w(void 0!==C?b(C):k),x=f((()=>{const{formattedValue:t}=e;if(void 0!==t)return b(t);const{value:n}=e;return void 0!==n?n:D.value})),S=f((()=>{const{timeZone:t}=e;return t?(e,n,a)=>ya(e,t,n,a):(e,t,n)=>dt(e,t,n)})),T=w("");A((()=>e.timeZone),(()=>{const t=x.value;T.value=null===t?"":S.value(t,e.format,y.value)}),{immediate:!0});const F=w(!1),M=I(e,"show"),_=ve(M,F),H=w(x.value),B=w(!1),E=f((()=>i.value.clear)),L=f((()=>i.value.now)),Q=f((()=>void 0!==e.placeholder?e.placeholder:i.value.placeholder)),W=f((()=>i.value.negativeText)),Z=f((()=>i.value.positiveText)),K=f((()=>/H|h|K|k/.test(e.format))),G=f((()=>e.format.includes("m"))),X=f((()=>e.format.includes("s"))),J=f((()=>{const{value:e}=x;return null===e?null:Number(S.value(e,"HH",y.value))})),ee=f((()=>{const{value:e}=x;return null===e?null:Number(S.value(e,"mm",y.value))})),ae=f((()=>{const{value:e}=x;return null===e?null:Number(S.value(e,"ss",y.value))})),re=f((()=>{const{isHourDisabled:t}=e;return null!==J.value&&(!Ca(J.value,0,e.hours)||!!t&&t(J.value))})),le=f((()=>{const{value:t}=ee,{value:n}=J;if(null===t||null===n)return!1;if(!Ca(t,0,e.minutes))return!0;const{isMinuteDisabled:a}=e;return!!a&&a(t,n)})),oe=f((()=>{const{value:t}=ee,{value:n}=J,{value:a}=ae;if(null===a||null===t||null===n)return!1;if(!Ca(a,0,e.seconds))return!0;const{isSecondDisabled:r}=e;return!!r&&r(a,t,n)})),se=f((()=>re.value||le.value||oe.value)),de=f((()=>e.format.length+4)),ue=f((()=>{const{value:e}=x;return null===e?null:mt(e)<12?"am":"pm"}));function ce(t){return null===t?null:S.value(t,e.valueFormat||e.format)}function he(t){const{onUpdateValue:n,"onUpdate:value":a,onChange:r}=e,{nTriggerFormChange:i,nTriggerFormInput:l}=o,s=ce(t);n&&j(n,t,s),a&&j(a,t,s),r&&j(r,t,s),function(t,n){const{onUpdateFormattedValue:a,"onUpdate:formattedValue":r}=e;a&&j(a,t,n),r&&j(r,t,n)}(s,t),D.value=t,i(),l()}function me(t){const{onBlur:n}=e,{nTriggerFormBlur:a}=o;n&&j(n,t),a()}function pe(t){void 0===t&&(t=x.value),T.value=null===t?"":S.value(t,e.format,y.value)}function ge(){if(!p.value)return;const{hourScrollRef:e,minuteScrollRef:t,secondScrollRef:n,amPmScrollRef:a}=p.value;[e,t,n,a].forEach((e=>{var t;if(!e)return;const n=null===(t=e.contentRef)||void 0===t?void 0:t.querySelector("[data-active]");n&&e.scrollTo({top:n.offsetTop})}))}function ye(t){F.value=t;const{onUpdateShow:n,"onUpdate:show":a}=e;n&&j(n,t),a&&j(a,t)}function be(e){var t,n,a;return!(!(null===(n=null===(t=v.value)||void 0===t?void 0:t.wrapperElRef)||void 0===n?void 0:n.contains(e.relatedTarget))&&!(null===(a=p.value)||void 0===a?void 0:a.$el.contains(e.relatedTarget)))}function we(){H.value=x.value,ye(!0),N(ge)}function ke({returnFocus:e}){var t;_.value&&(ye(!1),e&&(null===(t=v.value)||void 0===t||t.focus()))}A(x,(e=>{pe(e),B.value=!0,N((()=>{B.value=!1})),N(ge)})),A(_,(()=>{se.value&&he(H.value)})),Y(Da,{mergedThemeRef:h,mergedClsPrefixRef:n});const Ce={focus:()=>{var e;null===(e=v.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=v.value)||void 0===e||e.blur()}},De=f((()=>{const{common:{cubicBezierEaseInOut:e},self:{iconColor:t,iconColorDisabled:n}}=h.value;return{"--n-icon-color-override":t,"--n-icon-color-disabled-override":n,"--n-bezier":e}})),xe=r?z("time-picker-trigger",void 0,De,e):void 0,Se=f((()=>{const{self:{panelColor:e,itemTextColor:t,itemTextColorActive:n,itemColorHover:a,panelDividerColor:r,panelBoxShadow:i,itemOpacityDisabled:l,borderRadius:o,itemFontSize:s,itemWidth:d,itemHeight:u,panelActionPadding:c,itemBorderRadius:m},common:{cubicBezierEaseInOut:v}}=h.value;return{"--n-bezier":v,"--n-border-radius":o,"--n-item-color-hover":a,"--n-item-font-size":s,"--n-item-height":u,"--n-item-opacity-disabled":l,"--n-item-text-color":t,"--n-item-text-color-active":n,"--n-item-width":d,"--n-panel-action-padding":c,"--n-panel-box-shadow":i,"--n-panel-color":e,"--n-panel-divider-color":r,"--n-item-border-radius":m}})),Te=r?z("time-picker",void 0,Se,e):void 0;return{focus:Ce.focus,blur:Ce.blur,mergedStatus:c,mergedBordered:t,mergedClsPrefix:n,namespace:a,uncontrolledValue:D,mergedValue:x,isMounted:V(),inputInstRef:v,panelInstRef:p,adjustedTo:ie(e),mergedShow:_,localizedClear:E,localizedNow:L,localizedPlaceholder:Q,localizedNegativeText:W,localizedPositiveText:Z,hourInFormat:K,minuteInFormat:G,secondInFormat:X,mergedAttrSize:de,displayTimeString:T,mergedSize:s,mergedDisabled:d,isValueInvalid:se,isHourInvalid:re,isMinuteInvalid:le,isSecondInvalid:oe,transitionDisabled:B,hourValue:J,minuteValue:ee,secondValue:ae,amPmValue:ue,handleInputKeydown:function(e){"Escape"===e.key&&_.value&&q(e)},handleTimeInputFocus:function(t){be(t)||function(t){const{onFocus:n}=e,{nTriggerFormFocus:a}=o;n&&j(n,t),a()}(t)},handleTimeInputBlur:function(e){var t;if(!be(e))if(_.value){const n=null===(t=p.value)||void 0===t?void 0:t.$el;(null==n?void 0:n.contains(e.relatedTarget))||(pe(),me(e),ke({returnFocus:!1}))}else pe(),me(e)},handleNowClick:function(){const t=new Date,n={hours:mt,minutes:vt,seconds:pt},[a,r,i]=["hours","minutes","seconds"].map((a=>!e[a]||Ca(n[a](t),0,e[a])?n[a](t):function(e,t,n){const a=ka(ba[t],n).map(Number);let r,i;for(let l=0;le){i=t;break}r=t}return void 0===r?(i||g("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):void 0===i||i-e>e-r?r:i}(n[a](t),a,e[a]))),l=Cn(kn(wn(x.value?x.value:gt(t),a),r),i);he(gt(l))},handleConfirmClick:function(){pe(),function(){const{onConfirm:t}=e;t&&j(t,x.value,ce(x.value))}(),ke({returnFocus:!0})},handleTimeInputUpdateValue:function(t){if(""===t)return void he(null);const n=zn(t,e.format,new Date,y.value);if(T.value=t,Me(n)){const{value:e}=x;if(null!==e){he(gt(bn(e,{hours:mt(n),minutes:vt(n),seconds:pt(n),milliseconds:(a=n,u(a).getMilliseconds())})))}else he(gt(n))}var a},handleMenuFocusOut:function(e){be(e)||(pe(),me(e),ke({returnFocus:!1}))},handleCancelClick:function(){he(H.value),ye(!1)},handleClickOutside:function(e){var t,n;_.value&&!(null===(n=null===(t=v.value)||void 0===t?void 0:t.wrapperElRef)||void 0===n?void 0:n.contains(U(e)))&&ke({returnFocus:!1})},handleTimeInputActivate:function(){d.value||_.value||we()},handleTimeInputDeactivate:function(){d.value||(pe(),ke({returnFocus:!1}))},handleHourClick:function(e){"string"!=typeof e&&(null===x.value?he(gt(wn(function(e){const t=u(e);return t.setMinutes(0,0,0),t}(new Date),e))):he(gt(wn(x.value,e))))},handleMinuteClick:function(e){"string"!=typeof e&&(null===x.value?he(gt(kn(function(e){const t=u(e);return t.setSeconds(0,0),t}(new Date),e))):he(gt(kn(x.value,e))))},handleSecondClick:function(e){"string"!=typeof e&&(null===x.value?he(gt(Cn(pn(new Date),e))):he(gt(Cn(x.value,e))))},handleAmPmClick:function(e){const{value:t}=x;if(null===t){const t=new Date,n=mt(t);"pm"===e&&n<12?he(gt(wn(t,n+12))):"am"===e&&n>=12&&he(gt(wn(t,n-12))),he(gt(t))}else{const n=mt(t);"pm"===e&&n<12?he(gt(wn(t,n+12))):"am"===e&&n>=12&&he(gt(wn(t,n-12)))}},handleTimeInputClear:function(t){var n;t.stopPropagation(),he(null),pe(null),null===(n=e.onClear)||void 0===n||n.call(e)},handleFocusDetectorFocus:function(){ke({returnFocus:!0})},handleMenuKeydown:function(e){var t;switch(e.key){case"Escape":_.value&&(q(e),ke({returnFocus:!0}));break;case"Tab":m.shift&&e.target===(null===(t=p.value)||void 0===t?void 0:t.$el)&&(e.preventDefault(),ke({returnFocus:!0}))}},handleTriggerClick:function(e){d.value||fe(e,"clear")||_.value||we()},mergedTheme:h,triggerCssVars:r?void 0:De,triggerThemeClass:null==xe?void 0:xe.themeClass,triggerOnRender:null==xe?void 0:xe.onRender,cssVars:r?void 0:Se,themeClass:null==Te?void 0:Te.themeClass,onRender:null==Te?void 0:Te.onRender,clearSelectedValue:function(){he(null),pe(null),ke({returnFocus:!0})}}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:n}=this;return null==n||n(),d("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},d(le,null,{default:()=>[d(oe,null,{default:()=>d(me,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>d(_,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():d(ge,null)})}:null)}),d(se,{teleportDisabled:this.adjustedTo===ie.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>d(H,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var e;return this.mergedShow?(null===(e=this.onRender)||void 0===e||e.call(this),B(d(Sa,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,clearText:this.localizedClear,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onClearClick:this.clearSelectedValue,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[E,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),Oa=40,Pa={active:Boolean,dateFormat:String,timerPickerFormat:{type:String,value:"HH:mm:ss"},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],inputReadonly:Boolean,onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean,onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function};function Ra(e){const{dateLocaleRef:t,timePickerSizeRef:n,timePickerPropsRef:a,localeRef:r,mergedClsPrefixRef:i,mergedThemeRef:l}=b(Hn),o=f((()=>({locale:t.value.locale}))),s=w(null),d=te();function u(t,n){const{onUpdateValue:a}=e;a(t,n)}function c(t=!1){const{onClose:n}=e;n&&n(t)}function h(){const{onTabOut:t}=e;t&&t()}let m=null,v=!1;function p(){v&&(u(m,!1),v=!1)}const g=w(!1);return{mergedTheme:l,mergedClsPrefix:i,dateFnsOptions:o,timePickerSize:n,timePickerProps:a,selfRef:s,locale:r,doConfirm:function(){const{onConfirm:t,value:n}=e;t&&t(n)},doClose:c,doUpdateValue:u,doTabOut:h,handleClearClick:function(){u(null,!0),c(!0),function(){const{onClear:t}=e;t&&t()}()},handleFocusDetectorFocus:function(){h()},disableTransitionOneTick:function(){(e.active||e.panel)&&N((()=>{const{value:e}=s;if(!e)return;const t=e.querySelectorAll("[data-n-date]");t.forEach((e=>{e.classList.add("transition-disabled")})),e.offsetWidth,t.forEach((e=>{e.classList.remove("transition-disabled")}))}))},handlePanelKeyDown:function(e){"Tab"===e.key&&e.target===s.value&&d.shift&&(e.preventDefault(),h())},handlePanelFocus:function(e){const{value:t}=s;d.tab&&e.target===t&&(null==t?void 0:t.contains(e.relatedTarget))&&h()},cachePendingValue:function(){m=e.value,v=!0},clearPendingValue:function(){v=!1},restorePendingValue:p,getShortcutValue:function(e){return"function"==typeof e?e():e},handleShortcutMouseleave:p,showMonthYearPanel:g,handleOpenQuickSelectMonthPanel:function(){g.value=!g.value}}}const $a=Object.assign(Object.assign({},Pa),{defaultCalendarStartTime:Number,actions:{type:Array,default:()=>["now","clear","confirm"]}});function Aa(e,t){var n;const a=Ra(e),{isValueInvalidRef:r,isDateDisabledRef:i,isDateInvalidRef:l,isTimeInvalidRef:o,isDateTimeInvalidRef:s,isHourDisabledRef:d,isMinuteDisabledRef:h,isSecondDisabledRef:m,localeRef:v,firstDayOfWeekRef:p,datePickerSlots:g,yearFormatRef:y,monthFormatRef:k,quarterFormatRef:C,yearRangeRef:D}=b(Hn),x={isValueInvalid:r,isDateDisabled:i,isDateInvalid:l,isTimeInvalid:o,isDateTimeInvalid:s,isHourDisabled:d,isMinuteDisabled:h,isSecondDisabled:m},S=f((()=>e.dateFormat||v.value.dateFormat)),T=w(null===e.value||Array.isArray(e.value)?"":dt(e.value,S.value)),F=w(null===e.value||Array.isArray(e.value)?null!==(n=e.defaultCalendarStartTime)&&void 0!==n?n:Date.now():e.value),M=w(null),O=w(null),P=w(null),R=w(Date.now()),$=f((()=>{var n;return An(F.value,e.value,R.value,null!==(n=p.value)&&void 0!==n?n:v.value.firstDayOfWeek,!1,"week"===t)})),I=f((()=>{const{value:t}=e;return In(F.value,Array.isArray(t)?null:t,R.value,{monthFormat:k.value})})),N=f((()=>{const{value:t}=e;return Yn(Array.isArray(t)?null:t,R.value,{yearFormat:y.value},D)})),Y=f((()=>{const{value:t}=e;return Nn(F.value,Array.isArray(t)?null:t,R.value,{quarterFormat:C.value})})),z=f((()=>$.value.slice(0,7).map((e=>{const{ts:t}=e;return dt(t,v.value.dayFormat,a.dateFnsOptions.value)})))),V=f((()=>dt(F.value,v.value.monthFormat,a.dateFnsOptions.value))),_=f((()=>dt(F.value,v.value.yearFormat,a.dateFnsOptions.value)));function H(e){var n;if("datetime"===t)return gt(pn(e));if("month"===t)return gt(Re(e));if("year"===t)return gt($e(e));if("quarter"===t)return gt(Pe(e));if("week"===t){const t=((null!==(n=p.value)&&void 0!==n?n:v.value.firstDayOfWeek)+1)%7;return gt(c(e,{weekStartsOn:t}))}return gt(Se(e))}function B(e,t){const{isDateDisabled:{value:n}}=x;return!!n&&n(e,t)}A(F,((e,n)=>{"date"!==t&&"datetime"!==t||vn(e,n)||a.disableTransitionOneTick()})),A(f((()=>e.value)),(e=>{null===e||Array.isArray(e)?T.value="":(T.value=dt(e,S.value,a.dateFnsOptions.value),F.value=e)}));const E=w(null);function j(){x.isDateInvalid.value||x.isTimeInvalid.value||(a.doConfirm(),e.active&&a.doClose())}function q(t){const{value:n}=e;if(P.value){const e=ft(void 0===t?null===n?Date.now():n:t);P.value.scrollTo({top:e*Oa})}if(M.value){const e=yt(void 0===t?null===n?Date.now():n:t)-D.value[0];M.value.scrollTo({top:e*Oa})}}const U={monthScrollbarRef:P,yearScrollbarRef:O,yearVlRef:M};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:$,monthArray:I,yearArray:N,quarterArray:Y,calendarYear:_,calendarMonth:V,weekdays:z,mergedIsDateDisabled:B,nextYear:function(){var t;F.value=gt(Fe(F.value,1)),null===(t=e.onNextYear)||void 0===t||t.call(e)},prevYear:function(){var t;F.value=gt(Fe(F.value,-1)),null===(t=e.onPrevYear)||void 0===t||t.call(e)},nextMonth:function(){var t;F.value=gt(ke(F.value,1)),null===(t=e.onNextMonth)||void 0===t||t.call(e)},prevMonth:function(){var t;F.value=gt(ke(F.value,-1)),null===(t=e.onPrevMonth)||void 0===t||t.call(e)},handleNowClick:function(){a.doUpdateValue(gt(H(Date.now())),!0);const n=Date.now();F.value=n,a.doClose(!0),!e.panel||"month"!==t&&"quarter"!==t&&"year"!==t||(a.disableTransitionOneTick(),q(n))},handleConfirmClick:j,handleSingleShortcutMouseenter:function(e){a.cachePendingValue();const t=a.getShortcutValue(e);"number"==typeof t&&a.doUpdateValue(t,!1)},handleSingleShortcutClick:function(t){const n=a.getShortcutValue(t);"number"==typeof n&&(a.doUpdateValue(n,e.panel),a.clearPendingValue(),j())}},x),a),U),{handleDateClick:function(n){if(B(n.ts,"date"===n.type?{type:"date",year:n.dateObject.year,month:n.dateObject.month,date:n.dateObject.date}:"month"===n.type?{type:"month",year:n.dateObject.year,month:n.dateObject.month}:"year"===n.type?{type:"year",year:n.dateObject.year}:{type:"quarter",year:n.dateObject.year,quarter:n.dateObject.quarter}))return;let r;if(r=null===e.value||Array.isArray(e.value)?Date.now():e.value,"datetime"===t&&null!==e.defaultTime&&!Array.isArray(e.defaultTime)){const t=Vn(e.defaultTime);t&&(r=gt(bn(r,t)))}switch(r=gt("quarter"===n.type&&n.dateObject.quarter?function(e,t){const n=u(e),a=t-(Math.trunc(n.getMonth()/3)+1);return yn(n,n.getMonth()+3*a)}(Dn(r,n.dateObject.year),n.dateObject.quarter):bn(r,n.dateObject)),a.doUpdateValue(H(r),e.panel||"date"===t||"week"===t||"year"===t),t){case"date":case"week":a.doClose();break;case"year":e.panel&&a.disableTransitionOneTick(),a.doClose();break;case"month":case"quarter":a.disableTransitionOneTick(),q(r)}},handleDateInputBlur:function(){const t=zn(T.value,S.value,new Date,a.dateFnsOptions.value);if(Me(t)){if(null===e.value)a.doUpdateValue(gt(H(Date.now())),!1);else if(!Array.isArray(e.value)){const n=bn(e.value,{year:yt(t),month:ft(t),date:ct(t)});a.doUpdateValue(gt(H(gt(n))),!1)}}else!function(t){if(null===e.value||Array.isArray(e.value))return void(T.value="");void 0===t&&(t=e.value);T.value=dt(t,S.value,a.dateFnsOptions.value)}()},handleDateInput:function(t){const n=zn(t,S.value,new Date,a.dateFnsOptions.value);if(Me(n)){if(null===e.value)a.doUpdateValue(gt(H(Date.now())),e.panel);else if(!Array.isArray(e.value)){const t=bn(e.value,{year:yt(n),month:ft(n),date:ct(n)});a.doUpdateValue(gt(H(gt(t))),e.panel)}}else T.value=t},handleDateMouseEnter:function(e){"date"===e.type&&"week"===t&&(E.value=H(gt(e.ts)))},isWeekHovered:function(e){return"date"===e.type&&"week"===t&&H(gt(e.ts))===E.value},handleTimePickerChange:function(t){null!==t&&a.doUpdateValue(t,e.panel)},clearSelectedDateTime:function(){a.doUpdateValue(null,!0),T.value="",a.doClose(!0),a.handleClearClick()},virtualListContainer:function(){const{value:e}=M;return(null==e?void 0:e.listElRef)||null},virtualListContent:function(){const{value:e}=M;return(null==e?void 0:e.itemsElRef)||null},handleVirtualListScroll:function(){var e;null===(e=O.value)||void 0===e||e.sync()},timePickerSize:a.timePickerSize,dateInputValue:T,datePickerSlots:g,handleQuickMonthClick:function(t,n){let a;a=null===e.value||Array.isArray(e.value)?Date.now():e.value,a=gt("month"===t.type?yn(a,t.dateObject.month):Dn(a,t.dateObject.year)),n(a),q(a)},justifyColumnsScrollState:q,calendarValue:F,onUpdateCalendarValue:function(e){F.value=e}})}const Ia=y({name:"MonthPanel",props:Object.assign(Object.assign({},$a),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=Aa(e,e.type),{dateLocaleRef:n}=ne("DatePicker"),{useAsQuickJump:a}=e;return L((()=>{t.justifyColumnsScrollState()})),Object.assign(Object.assign({},t),{renderItem:(r,i,l)=>{const{mergedIsDateDisabled:o,handleDateClick:s,handleQuickMonthClick:u}=t;return d("div",{"data-n-date":!0,key:i,class:[`${l}-date-panel-month-calendar__picker-col-item`,r.isCurrent&&`${l}-date-panel-month-calendar__picker-col-item--current`,r.selected&&`${l}-date-panel-month-calendar__picker-col-item--selected`,!a&&o(r.ts,"year"===r.type?{type:"year",year:r.dateObject.year}:"month"===r.type?{type:"month",year:r.dateObject.year,month:r.dateObject.month}:"quarter"===r.type?{type:"month",year:r.dateObject.year,month:r.dateObject.quarter}:null)&&`${l}-date-panel-month-calendar__picker-col-item--disabled`],onClick:()=>{a?u(r,(t=>{e.onUpdateValue(t,!1)})):s(r)}},(e=>{switch(e.type){case"year":return Mn(e.dateObject.year,e.yearFormat,n.value.locale);case"month":return Fn(e.dateObject.month,e.monthFormat,n.value.locale);case"quarter":return On(e.dateObject.quarter,e.quarterFormat,n.value.locale)}})(r))}})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:a,renderItem:r,type:i,onRender:l}=this;return null==l||l(),d("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},d("div",{class:`${e}-date-panel-month-calendar`},d(C,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>d(re,{ref:"yearVlRef",items:this.yearArray,itemSize:Oa,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:t,index:n})=>r(t,n,e)})}),"month"===i||"quarter"===i?d("div",{class:`${e}-date-panel-month-calendar__picker-col`},d(C,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[("month"===i?this.monthArray:this.quarterArray).map(((t,n)=>r(t,n,e))),d("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),this.datePickerSlots.footer?d("div",{class:`${e}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,(null==a?void 0:a.length)||n?d("div",{class:`${e}-date-panel-actions`},d("div",{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map((e=>{const t=n[e];return Array.isArray(t)?null:d(Q,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(t)},onClick:()=>{this.handleSingleShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e})}))),d("div",{class:`${e}-date-panel-actions__suffix`},(null==a?void 0:a.includes("clear"))?W(this.$slots.now,{onClear:this.handleClearClick,text:this.locale.clear},(()=>[d(k,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})])):null,(null==a?void 0:a.includes("now"))?W(this.$slots.now,{onNow:this.handleNowClick,text:this.locale.now},(()=>[d(k,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})])):null,(null==a?void 0:a.includes("confirm"))?W(this.$slots.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},(()=>[d(k,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})])):null)):null,d(ae,{onFocus:this.handleFocusDetectorFocus}))}}),Na=y({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=w(null),t=w(null),n=w(!1);return{show:n,triggerRef:e,monthPanelRef:t,handleHeaderClick:function(){n.value=!n.value},handleClickOutside:function(t){var a;n.value&&!(null===(a=e.value)||void 0===a?void 0:a.contains(U(t)))&&(n.value=!1)}}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return d("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},d(le,null,{default:()=>[d(oe,null,{default:()=>d("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),d(se,{show:this.show,teleportDisabled:!0},{default:()=>d(H,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?B(d(Ia,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[E,e,void 0,{capture:!0}]]):null})})]}))}}),Ya=y({name:"DateTimePanel",props:$a,setup:e=>Aa(e,"datetime"),render(){var e,t,n,a;const{mergedClsPrefix:r,mergedTheme:i,shortcuts:l,timePickerProps:o,onRender:s,$slots:u}=this;return null==s||s(),d("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetime`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},d("div",{class:`${r}-date-panel-header`},d(me,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:`${r}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),d(Ma,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timerPickerFormat},Array.isArray(o)?void 0:o,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),d("div",{class:`${r}-date-panel-calendar`},d("div",{class:`${r}-date-panel-month`},d("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},Z(u["prev-year"],(()=>[d(de,null)]))),d("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},Z(u["prev-month"],(()=>[d(ue,null)]))),d(Na,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),d("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},Z(u["next-month"],(()=>[d(ce,null)]))),d("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},Z(u["next-year"],(()=>[d(he,null)])))),d("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map((e=>d("div",{key:e,class:`${r}-date-panel-weekdays__day`},e)))),d("div",{class:`${r}-date-panel-dates`},this.dateArray.map(((e,t)=>d("div",{"data-n-date":!0,key:t,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:e.isCurrentDate,[`${r}-date-panel-date--selected`]:e.selected,[`${r}-date-panel-date--excluded`]:!e.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(e.ts,{type:"date",year:e.dateObject.year,month:e.dateObject.month,date:e.dateObject.date})}],onClick:()=>{this.handleDateClick(e)}},d("div",{class:`${r}-date-panel-date__trigger`}),e.dateObject.date,e.isCurrentDate?d("div",{class:`${r}-date-panel-date__sup`}):null))))),this.datePickerSlots.footer?d("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,(null===(e=this.actions)||void 0===e?void 0:e.length)||l?d("div",{class:`${r}-date-panel-actions`},d("div",{class:`${r}-date-panel-actions__prefix`},l&&Object.keys(l).map((e=>{const t=l[e];return Array.isArray(t)?null:d(Q,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(t)},onClick:()=>{this.handleSingleShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e})}))),d("div",{class:`${r}-date-panel-actions__suffix`},(null===(t=this.actions)||void 0===t?void 0:t.includes("clear"))?W(this.$slots.clear,{onClear:this.clearSelectedDateTime,text:this.locale.clear},(()=>[d(k,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear})])):null,(null===(n=this.actions)||void 0===n?void 0:n.includes("now"))?W(u.now,{onNow:this.handleNowClick,text:this.locale.now},(()=>[d(k,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})])):null,(null===(a=this.actions)||void 0===a?void 0:a.includes("confirm"))?W(u.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},(()=>[d(k,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})])):null)):null,d(ae,{onFocus:this.handleFocusDetectorFocus}))}}),za=Object.assign(Object.assign({},Pa),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function Va(e,t){var n,a;const{isDateDisabledRef:r,isStartHourDisabledRef:i,isEndHourDisabledRef:l,isStartMinuteDisabledRef:o,isEndMinuteDisabledRef:s,isStartSecondDisabledRef:d,isEndSecondDisabledRef:u,isStartDateInvalidRef:c,isEndDateInvalidRef:h,isStartTimeInvalidRef:m,isEndTimeInvalidRef:v,isStartValueInvalidRef:p,isEndValueInvalidRef:g,isRangeInvalidRef:y,localeRef:k,rangesRef:C,closeOnSelectRef:D,updateValueOnCloseRef:x,firstDayOfWeekRef:S,datePickerSlots:T,monthFormatRef:F,yearFormatRef:M,quarterFormatRef:O,yearRangeRef:P}=b(Hn),R={isDateDisabled:r,isStartHourDisabled:i,isEndHourDisabled:l,isStartMinuteDisabled:o,isEndMinuteDisabled:s,isStartSecondDisabled:d,isEndSecondDisabled:u,isStartDateInvalid:c,isEndDateInvalid:h,isStartTimeInvalid:m,isEndTimeInvalid:v,isStartValueInvalid:p,isEndValueInvalid:g,isRangeInvalid:y},$=Ra(e),I=w(null),N=w(null),Y=w(null),z=w(null),V=w(null),_=w(null),H=w(null),B=w(null),{value:E}=e,j=null!==(n=e.defaultCalendarStartTime)&&void 0!==n?n:Array.isArray(E)&&"number"==typeof E[0]?E[0]:Date.now(),q=w(j),U=w(null!==(a=e.defaultCalendarEndTime)&&void 0!==a?a:Array.isArray(E)&&"number"==typeof E[1]?E[1]:gt(ke(j,1)));pe(!0);const L=w(Date.now()),Q=w(!1),W=w(0),Z=f((()=>e.dateFormat||k.value.dateFormat)),K=w(Array.isArray(E)?dt(E[0],Z.value,$.dateFnsOptions.value):""),G=w(Array.isArray(E)?dt(E[1],Z.value,$.dateFnsOptions.value):""),X=f((()=>Q.value?"end":"start")),J=f((()=>{var t;return An(q.value,e.value,L.value,null!==(t=S.value)&&void 0!==t?t:k.value.firstDayOfWeek)})),ee=f((()=>{var t;return An(U.value,e.value,L.value,null!==(t=S.value)&&void 0!==t?t:k.value.firstDayOfWeek)})),te=f((()=>J.value.slice(0,7).map((e=>{const{ts:t}=e;return dt(t,k.value.dayFormat,$.dateFnsOptions.value)})))),ne=f((()=>dt(q.value,k.value.monthFormat,$.dateFnsOptions.value))),ae=f((()=>dt(U.value,k.value.monthFormat,$.dateFnsOptions.value))),re=f((()=>dt(q.value,k.value.yearFormat,$.dateFnsOptions.value))),ie=f((()=>dt(U.value,k.value.yearFormat,$.dateFnsOptions.value))),le=f((()=>{const{value:t}=e;return Array.isArray(t)?t[0]:null})),oe=f((()=>{const{value:t}=e;return Array.isArray(t)?t[1]:null})),se=f((()=>{const{shortcuts:t}=e;return t||C.value})),de=f((()=>Yn(_n(e.value,"start"),L.value,{yearFormat:M.value},P))),ue=f((()=>Yn(_n(e.value,"end"),L.value,{yearFormat:M.value},P))),ce=f((()=>{const t=_n(e.value,"start");return Nn(null!=t?t:Date.now(),t,L.value,{quarterFormat:O.value})})),he=f((()=>{const t=_n(e.value,"end");return Nn(null!=t?t:Date.now(),t,L.value,{quarterFormat:O.value})})),me=f((()=>{const t=_n(e.value,"start");return In(null!=t?t:Date.now(),t,L.value,{monthFormat:F.value})})),ve=f((()=>{const t=_n(e.value,"end");return In(null!=t?t:Date.now(),t,L.value,{monthFormat:F.value})}));function fe(e,n){"daterange"!==t&&"datetimerange"!==t||yt(e)===yt(n)&&ft(e)===ft(n)||$.disableTransitionOneTick()}function pe(t){const n=Re(q.value),a=Re(U.value);(e.bindCalendarMonths||n>=a)&&(t?U.value=gt(ke(n,1)):q.value=gt(ke(a,-1)))}function ge(t){const n=r.value;if(!n)return!1;if(!Array.isArray(e.value))return n(t,"start",null);if("start"===X.value)return n(t,"start",null);{const{value:e}=W;return te.value)),(e=>{if(null!==e&&Array.isArray(e)){const[t,n]=e;K.value=dt(t,Z.value,$.dateFnsOptions.value),G.value=dt(n,Z.value,$.dateFnsOptions.value),Q.value||function(e){if(null===e)return;const[t,n]=e;q.value=t,Re(n)<=Re(t)?U.value=gt(Re(ke(t,1))):U.value=gt(Re(n))}(e)}else K.value="",G.value=""})),A(q,fe),A(U,fe);const Oe={startYearVlRef:V,endYearVlRef:_,startMonthScrollbarRef:H,endMonthScrollbarRef:B,startYearScrollbarRef:Y,endYearScrollbarRef:z};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:I,endDatesElRef:N,handleDateClick:function(n){if(Q.value){Q.value=!1;const{value:n}=e;e.panel&&Array.isArray(n)?De(n[0],n[1],"done"):D.value&&"daterange"===t&&(x.value?be():ye())}else Q.value=!0,W.value=n.ts,De(n.ts,n.ts,"done")},handleColItemClick:function(n,a){const{value:r}=e,i=!Array.isArray(r),l="year"===n.type&&"yearrange"!==t?i?bn(n.ts,{month:ft("quarterrange"===t?Pe(new Date):new Date)}).valueOf():bn(n.ts,{month:ft("quarterrange"===t?Pe(r["start"===a?0:1]):r["start"===a?0:1])}).valueOf():n.ts;if(i){const t=xe(l),n=[t,t];return $.doUpdateValue(n,e.panel),Fe(n,"start"),Fe(n,"end"),void $.disableTransitionOneTick()}const o=[r[0],r[1]];let s=!1;switch("start"===a?(o[0]=xe(l),o[0]>o[1]&&(o[1]=o[0],s=!0)):(o[1]=xe(l),o[0]>o[1]&&(o[0]=o[1],s=!0)),$.doUpdateValue(o,e.panel),t){case"monthrange":case"quarterrange":$.disableTransitionOneTick(),s?(Fe(o,"start"),Fe(o,"end")):Fe(o,a);break;case"yearrange":$.disableTransitionOneTick(),Fe(o,"start"),Fe(o,"end")}},handleDateMouseEnter:function(e){if(Q.value){if(ge(e.ts))return;e.ts>=W.value?De(W.value,e.ts,"wipPreview"):De(e.ts,W.value,"wipPreview")}},handleConfirmClick:ye,startCalendarPrevYear:function(){q.value=gt(ke(q.value,-12)),pe(!0)},startCalendarPrevMonth:function(){q.value=gt(ke(q.value,-1)),pe(!0)},startCalendarNextYear:function(){q.value=gt(ke(q.value,12)),pe(!0)},startCalendarNextMonth:function(){q.value=gt(ke(q.value,1)),pe(!0)},endCalendarPrevYear:function(){U.value=gt(ke(U.value,-12)),pe(!1)},endCalendarPrevMonth:function(){U.value=gt(ke(U.value,-1)),pe(!1)},endCalendarNextMonth:function(){U.value=gt(ke(U.value,1)),pe(!1)},endCalendarNextYear:function(){U.value=gt(ke(U.value,12)),pe(!1)},mergedIsDateDisabled:ge,changeStartEndTime:De,ranges:C,startCalendarMonth:ne,startCalendarYear:re,endCalendarMonth:ae,endCalendarYear:ie,weekdays:te,startDateArray:J,endDateArray:ee,startYearArray:de,startMonthArray:me,startQuarterArray:ce,endYearArray:ue,endMonthArray:ve,endQuarterArray:he,isSelecting:Q,handleRangeShortcutMouseenter:function(e){$.cachePendingValue();const t=$.getShortcutValue(e);Array.isArray(t)&&De(t[0],t[1],"shortcutPreview")},handleRangeShortcutClick:function(e){const t=$.getShortcutValue(e);Array.isArray(t)&&(De(t[0],t[1],"done"),$.clearPendingValue(),ye())}},$),R),Oe),{startDateDisplayString:K,endDateInput:G,timePickerSize:$.timePickerSize,startTimeValue:le,endTimeValue:oe,datePickerSlots:T,shortcuts:se,startCalendarDateTime:q,endCalendarDateTime:U,justifyColumnsScrollState:Fe,handleFocusDetectorFocus:$.handleFocusDetectorFocus,handleStartTimePickerChange:function(e){null!==e&&we(e)},handleEndTimePickerChange:function(e){null!==e&&Ce(e)},handleStartDateInput:function(t){const n=zn(t,Z.value,new Date,$.dateFnsOptions.value);if(Me(n))if(e.value){if(Array.isArray(e.value)){we(xe(gt(bn(e.value[0],{year:yt(n),month:ft(n),date:ct(n)}))))}}else{we(xe(gt(bn(new Date,{year:yt(n),month:ft(n),date:ct(n)}))))}else K.value=t},handleStartDateInputBlur:function(){const t=zn(K.value,Z.value,new Date,$.dateFnsOptions.value),{value:n}=e;if(Me(t)){if(null===n){we(xe(gt(bn(new Date,{year:yt(t),month:ft(t),date:ct(t)}))))}else if(Array.isArray(n)){we(xe(gt(bn(n[0],{year:yt(t),month:ft(t),date:ct(t)}))))}}else Te()},handleEndDateInput:function(t){const n=zn(t,Z.value,new Date,$.dateFnsOptions.value);if(Me(n)){if(null===e.value){Ce(xe(gt(bn(new Date,{year:yt(n),month:ft(n),date:ct(n)}))))}else if(Array.isArray(e.value)){Ce(xe(gt(bn(e.value[1],{year:yt(n),month:ft(n),date:ct(n)}))))}}else G.value=t},handleEndDateInputBlur:function(){const t=zn(G.value,Z.value,new Date,$.dateFnsOptions.value),{value:n}=e;if(Me(t)){if(null===n){Ce(xe(gt(bn(new Date,{year:yt(t),month:ft(t),date:ct(t)}))))}else if(Array.isArray(n)){Ce(xe(gt(bn(n[1],{year:yt(t),month:ft(t),date:ct(t)}))))}}else Te()},handleStartYearVlScroll:function(){var e;null===(e=Y.value)||void 0===e||e.sync()},handleEndYearVlScroll:function(){var e;null===(e=z.value)||void 0===e||e.sync()},virtualListContainer:function(e){var t,n;return"start"===e?(null===(t=V.value)||void 0===t?void 0:t.listElRef)||null:(null===(n=_.value)||void 0===n?void 0:n.listElRef)||null},virtualListContent:function(e){var t,n;return"start"===e?(null===(t=V.value)||void 0===t?void 0:t.itemsElRef)||null:(null===(n=_.value)||void 0===n?void 0:n.itemsElRef)||null},onUpdateStartCalendarValue:function(e){q.value=e,pe(!0)},onUpdateEndCalendarValue:function(e){U.value=e,pe(!1)}})}const _a=y({name:"DateTimeRangePanel",props:za,setup:e=>Va(e,"datetimerange"),render(){var e,t,n;const{mergedClsPrefix:a,mergedTheme:r,shortcuts:i,timePickerProps:l,onRender:o,$slots:s}=this;return null==o||o(),d("div",{ref:"selfRef",tabindex:0,class:[`${a}-date-panel`,`${a}-date-panel--datetimerange`,!this.panel&&`${a}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},d("div",{class:`${a}-date-panel-header`},d(me,{value:this.startDateDisplayString,theme:r.peers.Input,themeOverrides:r.peerOverrides.Input,size:this.timePickerSize,stateful:!1,readonly:this.inputReadonly,class:`${a}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),d(Ma,Object.assign({placeholder:this.locale.selectTime,format:this.timerPickerFormat,size:this.timePickerSize},Array.isArray(l)?l[0]:l,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:r.peers.TimePicker,themeOverrides:r.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),d(me,{value:this.endDateInput,theme:r.peers.Input,themeOverrides:r.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:`${a}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),d(Ma,Object.assign({placeholder:this.locale.selectTime,format:this.timerPickerFormat,size:this.timePickerSize},Array.isArray(l)?l[1]:l,{disabled:this.isSelecting,showIcon:!1,theme:r.peers.TimePicker,themeOverrides:r.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),d("div",{ref:"startDatesElRef",class:`${a}-date-panel-calendar ${a}-date-panel-calendar--start`},d("div",{class:`${a}-date-panel-month`},d("div",{class:`${a}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},Z(s["prev-year"],(()=>[d(de,null)]))),d("div",{class:`${a}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},Z(s["prev-month"],(()=>[d(ue,null)]))),d(Na,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:a,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),d("div",{class:`${a}-date-panel-month__next`,onClick:this.startCalendarNextMonth},Z(s["next-month"],(()=>[d(ce,null)]))),d("div",{class:`${a}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},Z(s["next-year"],(()=>[d(he,null)])))),d("div",{class:`${a}-date-panel-weekdays`},this.weekdays.map((e=>d("div",{key:e,class:`${a}-date-panel-weekdays__day`},e)))),d("div",{class:`${a}-date-panel__divider`}),d("div",{class:`${a}-date-panel-dates`},this.startDateArray.map(((e,t)=>{const n=this.mergedIsDateDisabled(e.ts);return d("div",{"data-n-date":!0,key:t,class:[`${a}-date-panel-date`,{[`${a}-date-panel-date--excluded`]:!e.inCurrentMonth,[`${a}-date-panel-date--current`]:e.isCurrentDate,[`${a}-date-panel-date--selected`]:e.selected,[`${a}-date-panel-date--covered`]:e.inSpan,[`${a}-date-panel-date--start`]:e.startOfSpan,[`${a}-date-panel-date--end`]:e.endOfSpan,[`${a}-date-panel-date--disabled`]:n}],onClick:n?void 0:()=>{this.handleDateClick(e)},onMouseenter:n?void 0:()=>{this.handleDateMouseEnter(e)}},d("div",{class:`${a}-date-panel-date__trigger`}),e.dateObject.date,e.isCurrentDate?d("div",{class:`${a}-date-panel-date__sup`}):null)})))),d("div",{class:`${a}-date-panel__vertical-divider`}),d("div",{ref:"endDatesElRef",class:`${a}-date-panel-calendar ${a}-date-panel-calendar--end`},d("div",{class:`${a}-date-panel-month`},d("div",{class:`${a}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},Z(s["prev-year"],(()=>[d(de,null)]))),d("div",{class:`${a}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},Z(s["prev-month"],(()=>[d(ue,null)]))),d(Na,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:a,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),d("div",{class:`${a}-date-panel-month__next`,onClick:this.endCalendarNextMonth},Z(s["next-month"],(()=>[d(ce,null)]))),d("div",{class:`${a}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},Z(s["next-year"],(()=>[d(he,null)])))),d("div",{class:`${a}-date-panel-weekdays`},this.weekdays.map((e=>d("div",{key:e,class:`${a}-date-panel-weekdays__day`},e)))),d("div",{class:`${a}-date-panel__divider`}),d("div",{class:`${a}-date-panel-dates`},this.endDateArray.map(((e,t)=>{const n=this.mergedIsDateDisabled(e.ts);return d("div",{"data-n-date":!0,key:t,class:[`${a}-date-panel-date`,{[`${a}-date-panel-date--excluded`]:!e.inCurrentMonth,[`${a}-date-panel-date--current`]:e.isCurrentDate,[`${a}-date-panel-date--selected`]:e.selected,[`${a}-date-panel-date--covered`]:e.inSpan,[`${a}-date-panel-date--start`]:e.startOfSpan,[`${a}-date-panel-date--end`]:e.endOfSpan,[`${a}-date-panel-date--disabled`]:n}],onClick:n?void 0:()=>{this.handleDateClick(e)},onMouseenter:n?void 0:()=>{this.handleDateMouseEnter(e)}},d("div",{class:`${a}-date-panel-date__trigger`}),e.dateObject.date,e.isCurrentDate?d("div",{class:`${a}-date-panel-date__sup`}):null)})))),this.datePickerSlots.footer?d("div",{class:`${a}-date-panel-footer`},this.datePickerSlots.footer()):null,(null===(e=this.actions)||void 0===e?void 0:e.length)||i?d("div",{class:`${a}-date-panel-actions`},d("div",{class:`${a}-date-panel-actions__prefix`},i&&Object.keys(i).map((e=>{const t=i[e];return Array.isArray(t)||"function"==typeof t?d(Q,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(t)},onClick:()=>{this.handleRangeShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e}):null}))),d("div",{class:`${a}-date-panel-actions__suffix`},(null===(t=this.actions)||void 0===t?void 0:t.includes("clear"))?W(s.clear,{onClear:this.handleClearClick,text:this.locale.clear},(()=>[d(k,{theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})])):null,(null===(n=this.actions)||void 0===n?void 0:n.includes("confirm"))?W(s.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},(()=>[d(k,{theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})])):null)):null,d(ae,{onFocus:this.handleFocusDetectorFocus}))}}),Ha=y({name:"DatePanel",props:Object.assign(Object.assign({},$a),{type:{type:String,required:!0}}),setup:e=>Aa(e,e.type),render(){var e,t,n;const{mergedClsPrefix:a,mergedTheme:r,shortcuts:i,onRender:l,$slots:o,type:s}=this;return null==l||l(),d("div",{ref:"selfRef",tabindex:0,class:[`${a}-date-panel`,`${a}-date-panel--${s}`,!this.panel&&`${a}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},d("div",{class:`${a}-date-panel-calendar`},d("div",{class:`${a}-date-panel-month`},d("div",{class:`${a}-date-panel-month__fast-prev`,onClick:this.prevYear},Z(o["prev-year"],(()=>[d(de,null)]))),d("div",{class:`${a}-date-panel-month__prev`,onClick:this.prevMonth},Z(o["prev-month"],(()=>[d(ue,null)]))),d(Na,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:a,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),d("div",{class:`${a}-date-panel-month__next`,onClick:this.nextMonth},Z(o["next-month"],(()=>[d(ce,null)]))),d("div",{class:`${a}-date-panel-month__fast-next`,onClick:this.nextYear},Z(o["next-year"],(()=>[d(he,null)])))),d("div",{class:`${a}-date-panel-weekdays`},this.weekdays.map((e=>d("div",{key:e,class:`${a}-date-panel-weekdays__day`},e)))),d("div",{class:`${a}-date-panel-dates`},this.dateArray.map(((e,t)=>d("div",{"data-n-date":!0,key:t,class:[`${a}-date-panel-date`,{[`${a}-date-panel-date--current`]:e.isCurrentDate,[`${a}-date-panel-date--selected`]:e.selected,[`${a}-date-panel-date--excluded`]:!e.inCurrentMonth,[`${a}-date-panel-date--disabled`]:this.mergedIsDateDisabled(e.ts,{type:"date",year:e.dateObject.year,month:e.dateObject.month,date:e.dateObject.date}),[`${a}-date-panel-date--week-hovered`]:this.isWeekHovered(e),[`${a}-date-panel-date--week-selected`]:e.inSelectedWeek}],onClick:()=>{this.handleDateClick(e)},onMouseenter:()=>{this.handleDateMouseEnter(e)}},d("div",{class:`${a}-date-panel-date__trigger`}),e.dateObject.date,e.isCurrentDate?d("div",{class:`${a}-date-panel-date__sup`}):null))))),this.datePickerSlots.footer?d("div",{class:`${a}-date-panel-footer`},this.datePickerSlots.footer()):null,(null===(e=this.actions)||void 0===e?void 0:e.length)||i?d("div",{class:`${a}-date-panel-actions`},d("div",{class:`${a}-date-panel-actions__prefix`},i&&Object.keys(i).map((e=>{const t=i[e];return Array.isArray(t)?null:d(Q,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(t)},onClick:()=>{this.handleSingleShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e})}))),d("div",{class:`${a}-date-panel-actions__suffix`},(null===(t=this.actions)||void 0===t?void 0:t.includes("clear"))?W(this.$slots.clear,{onClear:this.handleClearClick,text:this.locale.clear},(()=>[d(k,{theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})])):null,(null===(n=this.actions)||void 0===n?void 0:n.includes("now"))?W(this.$slots.now,{onNow:this.handleNowClick,text:this.locale.now},(()=>[d(k,{theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})])):null)):null,d(ae,{onFocus:this.handleFocusDetectorFocus}))}}),Ba=y({name:"DateRangePanel",props:za,setup:e=>Va(e,"daterange"),render(){var e,t,n;const{mergedClsPrefix:a,mergedTheme:r,shortcuts:i,onRender:l,$slots:o}=this;return null==l||l(),d("div",{ref:"selfRef",tabindex:0,class:[`${a}-date-panel`,`${a}-date-panel--daterange`,!this.panel&&`${a}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},d("div",{ref:"startDatesElRef",class:`${a}-date-panel-calendar ${a}-date-panel-calendar--start`},d("div",{class:`${a}-date-panel-month`},d("div",{class:`${a}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},Z(o["prev-year"],(()=>[d(de,null)]))),d("div",{class:`${a}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},Z(o["prev-month"],(()=>[d(ue,null)]))),d(Na,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:a,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),d("div",{class:`${a}-date-panel-month__next`,onClick:this.startCalendarNextMonth},Z(o["next-month"],(()=>[d(ce,null)]))),d("div",{class:`${a}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},Z(o["next-year"],(()=>[d(he,null)])))),d("div",{class:`${a}-date-panel-weekdays`},this.weekdays.map((e=>d("div",{key:e,class:`${a}-date-panel-weekdays__day`},e)))),d("div",{class:`${a}-date-panel__divider`}),d("div",{class:`${a}-date-panel-dates`},this.startDateArray.map(((e,t)=>d("div",{"data-n-date":!0,key:t,class:[`${a}-date-panel-date`,{[`${a}-date-panel-date--excluded`]:!e.inCurrentMonth,[`${a}-date-panel-date--current`]:e.isCurrentDate,[`${a}-date-panel-date--selected`]:e.selected,[`${a}-date-panel-date--covered`]:e.inSpan,[`${a}-date-panel-date--start`]:e.startOfSpan,[`${a}-date-panel-date--end`]:e.endOfSpan,[`${a}-date-panel-date--disabled`]:this.mergedIsDateDisabled(e.ts)}],onClick:()=>{this.handleDateClick(e)},onMouseenter:()=>{this.handleDateMouseEnter(e)}},d("div",{class:`${a}-date-panel-date__trigger`}),e.dateObject.date,e.isCurrentDate?d("div",{class:`${a}-date-panel-date__sup`}):null))))),d("div",{class:`${a}-date-panel__vertical-divider`}),d("div",{ref:"endDatesElRef",class:`${a}-date-panel-calendar ${a}-date-panel-calendar--end`},d("div",{class:`${a}-date-panel-month`},d("div",{class:`${a}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},Z(o["prev-year"],(()=>[d(de,null)]))),d("div",{class:`${a}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},Z(o["prev-month"],(()=>[d(ue,null)]))),d(Na,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:a,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),d("div",{class:`${a}-date-panel-month__next`,onClick:this.endCalendarNextMonth},Z(o["next-month"],(()=>[d(ce,null)]))),d("div",{class:`${a}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},Z(o["next-year"],(()=>[d(he,null)])))),d("div",{class:`${a}-date-panel-weekdays`},this.weekdays.map((e=>d("div",{key:e,class:`${a}-date-panel-weekdays__day`},e)))),d("div",{class:`${a}-date-panel__divider`}),d("div",{class:`${a}-date-panel-dates`},this.endDateArray.map(((e,t)=>d("div",{"data-n-date":!0,key:t,class:[`${a}-date-panel-date`,{[`${a}-date-panel-date--excluded`]:!e.inCurrentMonth,[`${a}-date-panel-date--current`]:e.isCurrentDate,[`${a}-date-panel-date--selected`]:e.selected,[`${a}-date-panel-date--covered`]:e.inSpan,[`${a}-date-panel-date--start`]:e.startOfSpan,[`${a}-date-panel-date--end`]:e.endOfSpan,[`${a}-date-panel-date--disabled`]:this.mergedIsDateDisabled(e.ts)}],onClick:()=>{this.handleDateClick(e)},onMouseenter:()=>{this.handleDateMouseEnter(e)}},d("div",{class:`${a}-date-panel-date__trigger`}),e.dateObject.date,e.isCurrentDate?d("div",{class:`${a}-date-panel-date__sup`}):null))))),this.datePickerSlots.footer?d("div",{class:`${a}-date-panel-footer`},this.datePickerSlots.footer()):null,(null===(e=this.actions)||void 0===e?void 0:e.length)||i?d("div",{class:`${a}-date-panel-actions`},d("div",{class:`${a}-date-panel-actions__prefix`},i&&Object.keys(i).map((e=>{const t=i[e];return Array.isArray(t)||"function"==typeof t?d(Q,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(t)},onClick:()=>{this.handleRangeShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e}):null}))),d("div",{class:`${a}-date-panel-actions__suffix`},(null===(t=this.actions)||void 0===t?void 0:t.includes("clear"))?W(o.clear,{onClear:this.handleClearClick,text:this.locale.clear},(()=>[d(k,{theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})])):null,(null===(n=this.actions)||void 0===n?void 0:n.includes("confirm"))?W(o.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},(()=>[d(k,{theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})])):null)):null,d(ae,{onFocus:this.handleFocusDetectorFocus}))}}),Ea=y({name:"MonthRangePanel",props:Object.assign(Object.assign({},za),{type:{type:String,required:!0}}),setup(e){const t=Va(e,e.type),{dateLocaleRef:n}=ne("DatePicker");return L((()=>{t.justifyColumnsScrollState()})),Object.assign(Object.assign({},t),{renderItem:(e,a,r,i)=>{const{handleColItemClick:l}=t;return d("div",{"data-n-date":!0,key:a,class:[`${r}-date-panel-month-calendar__picker-col-item`,e.isCurrent&&`${r}-date-panel-month-calendar__picker-col-item--current`,e.selected&&`${r}-date-panel-month-calendar__picker-col-item--selected`,!1],onClick:()=>{l(e,i)}},"month"===e.type?Fn(e.dateObject.month,e.monthFormat,n.value.locale):"quarter"===e.type?On(e.dateObject.quarter,e.quarterFormat,n.value.locale):Mn(e.dateObject.year,e.yearFormat,n.value.locale))}})},render(){var e,t,n;const{mergedClsPrefix:a,mergedTheme:r,shortcuts:i,type:l,renderItem:o,onRender:s}=this;return null==s||s(),d("div",{ref:"selfRef",tabindex:0,class:[`${a}-date-panel`,`${a}-date-panel--daterange`,!this.panel&&`${a}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},d("div",{ref:"startDatesElRef",class:`${a}-date-panel-calendar ${a}-date-panel-calendar--start`},d("div",{class:`${a}-date-panel-month-calendar`},d(C,{ref:"startYearScrollbarRef",class:`${a}-date-panel-month-calendar__picker-col`,theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>d(re,{ref:"startYearVlRef",items:this.startYearArray,itemSize:Oa,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:e,index:t})=>o(e,t,a,"start")})}),"monthrange"===l||"quarterrange"===l?d("div",{class:`${a}-date-panel-month-calendar__picker-col`},d(C,{ref:"startMonthScrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>[("monthrange"===l?this.startMonthArray:this.startQuarterArray).map(((e,t)=>o(e,t,a,"start"))),"monthrange"===l&&d("div",{class:`${a}-date-panel-month-calendar__padding`})]})):null)),d("div",{class:`${a}-date-panel__vertical-divider`}),d("div",{ref:"endDatesElRef",class:`${a}-date-panel-calendar ${a}-date-panel-calendar--end`},d("div",{class:`${a}-date-panel-month-calendar`},d(C,{ref:"endYearScrollbarRef",class:`${a}-date-panel-month-calendar__picker-col`,theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>d(re,{ref:"endYearVlRef",items:this.endYearArray,itemSize:Oa,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:e,index:t})=>o(e,t,a,"end")})}),"monthrange"===l||"quarterrange"===l?d("div",{class:`${a}-date-panel-month-calendar__picker-col`},d(C,{ref:"endMonthScrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>[("monthrange"===l?this.endMonthArray:this.endQuarterArray).map(((e,t)=>o(e,t,a,"end"))),"monthrange"===l&&d("div",{class:`${a}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?d("div",{class:`${a}-date-panel-footer`},K(this.datePickerSlots,"footer")):null,(null===(e=this.actions)||void 0===e?void 0:e.length)||i?d("div",{class:`${a}-date-panel-actions`},d("div",{class:`${a}-date-panel-actions__prefix`},i&&Object.keys(i).map((e=>{const t=i[e];return Array.isArray(t)||"function"==typeof t?d(Q,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(t)},onClick:()=>{this.handleRangeShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e}):null}))),d("div",{class:`${a}-date-panel-actions__suffix`},(null===(t=this.actions)||void 0===t?void 0:t.includes("clear"))?W(this.$slots.clear,{onClear:this.handleClearClick,text:this.locale.clear},(()=>[d(Q,{theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})])):null,(null===(n=this.actions)||void 0===n?void 0:n.includes("confirm"))?W(this.$slots.confirm,{disabled:this.isRangeInvalid,onConfirm:this.handleConfirmClick,text:this.locale.confirm},(()=>[d(Q,{theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})])):null)):null,d(ae,{onFocus:this.handleFocusDetectorFocus}))}}),ja=D([x("date-picker","\n position: relative;\n z-index: auto;\n ",[x("date-picker-icon","\n color: var(--n-icon-color-override);\n transition: color .3s var(--n-bezier);\n "),x("icon","\n color: var(--n-icon-color-override);\n transition: color .3s var(--n-bezier);\n "),S("disabled",[x("date-picker-icon","\n color: var(--n-icon-color-disabled-override);\n "),x("icon","\n color: var(--n-icon-color-disabled-override);\n ")])]),x("date-panel","\n width: fit-content;\n outline: none;\n margin: 4px 0;\n display: grid;\n grid-template-columns: 0fr;\n border-radius: var(--n-panel-border-radius);\n background-color: var(--n-panel-color);\n color: var(--n-panel-text-color);\n user-select: none;\n ",[T(),S("shadow","\n box-shadow: var(--n-panel-box-shadow);\n "),x("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[S("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),x("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[F("picker-col","\n min-width: var(--n-scroll-item-width);\n height: calc(var(--n-scroll-item-height) * 6);\n user-select: none;\n -webkit-user-select: none;\n ",[D("&:first-child","\n min-width: calc(var(--n-scroll-item-width) + 4px);\n ",[F("picker-col-item",[D("&::before","left: 4px;")])]),F("padding","\n height: calc(var(--n-scroll-item-height) * 5)\n ")]),F("picker-col-item","\n z-index: 0;\n cursor: pointer;\n height: var(--n-scroll-item-height);\n box-sizing: border-box;\n padding-top: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n transition: \n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n background: #0000;\n color: var(--n-item-text-color);\n ",[D("&::before",'\n z-index: -1;\n content: "";\n position: absolute;\n left: 0;\n right: 4px;\n top: 4px;\n bottom: 0;\n border-radius: var(--n-scroll-item-border-radius);\n transition: \n background-color .3s var(--n-bezier);\n '),M("disabled",[D("&:hover::before","\n background-color: var(--n-item-color-hover);\n "),S("selected","\n color: var(--n-item-color-active);\n ",[D("&::before","background-color: var(--n-item-color-hover);")])]),S("disabled","\n color: var(--n-item-text-color-disabled);\n cursor: not-allowed;\n ",[S("selected",[D("&::before","\n background-color: var(--n-item-color-disabled);\n ")])])])]),S("date",{gridTemplateAreas:'\n "left-calendar"\n "footer"\n "action"\n '}),S("week",{gridTemplateAreas:'\n "left-calendar"\n "footer"\n "action"\n '}),S("daterange",{gridTemplateAreas:'\n "left-calendar divider right-calendar"\n "footer footer footer"\n "action action action"\n '}),S("datetime",{gridTemplateAreas:'\n "header"\n "left-calendar"\n "footer"\n "action"\n '}),S("datetimerange",{gridTemplateAreas:'\n "header header header"\n "left-calendar divider right-calendar"\n "footer footer footer"\n "action action action"\n '}),S("month",{gridTemplateAreas:'\n "left-calendar"\n "footer"\n "action"\n '}),x("date-panel-footer",{gridArea:"footer"}),x("date-panel-actions",{gridArea:"action"}),x("date-panel-header",{gridArea:"header"}),x("date-panel-header","\n box-sizing: border-box;\n width: 100%;\n align-items: center;\n padding: var(--n-panel-header-padding);\n display: flex;\n justify-content: space-between;\n border-bottom: 1px solid var(--n-panel-header-divider-color);\n ",[D(">",[D("*:not(:last-child)",{marginRight:"10px"}),D("*",{flex:1,width:0}),x("time-picker",{zIndex:1})])]),x("date-panel-month","\n box-sizing: border-box;\n display: grid;\n grid-template-columns: var(--n-calendar-title-grid-template-columns);\n align-items: center;\n justify-items: center;\n padding: var(--n-calendar-title-padding);\n height: var(--n-calendar-title-height);\n ",[F("prev, next, fast-prev, fast-next","\n line-height: 0;\n cursor: pointer;\n width: var(--n-arrow-size);\n height: var(--n-arrow-size);\n color: var(--n-arrow-color);\n "),F("month-year","\n user-select: none;\n -webkit-user-select: none;\n flex-grow: 1;\n position: relative;\n ",[F("text","\n font-size: var(--n-calendar-title-font-size);\n line-height: var(--n-calendar-title-font-size);\n font-weight: var(--n-calendar-title-font-weight);\n padding: 6px 8px;\n text-align: center;\n color: var(--n-calendar-title-text-color);\n cursor: pointer;\n transition: background-color .3s var(--n-bezier);\n border-radius: var(--n-panel-border-radius);\n ",[S("active","\n background-color: var(--n-calendar-title-color-hover);\n "),D("&:hover","\n background-color: var(--n-calendar-title-color-hover);\n ")])])]),x("date-panel-weekdays","\n display: grid;\n margin: auto;\n grid-template-columns: repeat(7, var(--n-item-cell-width));\n grid-template-rows: repeat(1, var(--n-item-cell-height));\n align-items: center;\n justify-items: center;\n margin-bottom: 4px;\n border-bottom: 1px solid var(--n-calendar-days-divider-color);\n ",[F("day","\n user-select: none;\n -webkit-user-select: none;\n line-height: 15px;\n width: var(--n-item-size);\n text-align: center;\n font-size: var(--n-calendar-days-font-size);\n color: var(--n-item-text-color);\n ")]),x("date-panel-dates","\n margin: auto;\n display: grid;\n grid-template-columns: repeat(7, var(--n-item-cell-width));\n grid-template-rows: repeat(6, var(--n-item-cell-height));\n align-items: center;\n justify-items: center;\n flex-wrap: wrap;\n ",[x("date-panel-date","\n user-select: none;\n -webkit-user-select: none;\n position: relative;\n width: var(--n-item-size);\n height: var(--n-item-size);\n line-height: var(--n-item-size);\n text-align: center;\n font-size: var(--n-item-font-size);\n border-radius: var(--n-item-border-radius);\n z-index: 0;\n cursor: pointer;\n transition:\n background-color .2s var(--n-bezier),\n color .2s var(--n-bezier);\n ",[F("trigger","\n position: absolute;\n left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2);\n top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2);\n width: var(--n-item-cell-width);\n height: var(--n-item-cell-height);\n "),S("current",[F("sup",'\n position: absolute;\n top: 2px;\n right: 2px;\n content: "";\n height: 4px;\n width: 4px;\n border-radius: 2px;\n background-color: var(--n-item-color-active);\n transition:\n background-color .2s var(--n-bezier);\n ')]),D("&::after",'\n content: "";\n z-index: -1;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n transition: background-color .3s var(--n-bezier);\n '),S("covered, start, end",[M("excluded",[D("&::before",'\n content: "";\n z-index: -2;\n position: absolute;\n left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);\n right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);\n top: 0;\n bottom: 0;\n background-color: var(--n-item-color-included);\n '),D("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),D("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),S("selected",{color:"var(--n-item-text-color-active)"},[D("&::after",{backgroundColor:"var(--n-item-color-active)"}),S("start",[D("&::before",{left:"50%"})]),S("end",[D("&::before",{right:"50%"})]),F("sup",{backgroundColor:"var(--n-panel-color)"})]),S("excluded",{color:"var(--n-item-text-color-disabled)"},[S("selected",[D("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),S("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[S("covered",[D("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),S("selected",[D("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),D("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),S("week-hovered",[D("&::before","\n background-color: var(--n-item-color-included);\n "),D("&:nth-child(7n + 1)::before","\n border-top-left-radius: var(--n-item-border-radius);\n border-bottom-left-radius: var(--n-item-border-radius);\n "),D("&:nth-child(7n + 7)::before","\n border-top-right-radius: var(--n-item-border-radius);\n border-bottom-right-radius: var(--n-item-border-radius);\n ")]),S("week-selected","\n color: var(--n-item-text-color-active)\n ",[D("&::before","\n background-color: var(--n-item-color-active);\n "),D("&:nth-child(7n + 1)::before","\n border-top-left-radius: var(--n-item-border-radius);\n border-bottom-left-radius: var(--n-item-border-radius);\n "),D("&:nth-child(7n + 7)::before","\n border-top-right-radius: var(--n-item-border-radius);\n border-bottom-right-radius: var(--n-item-border-radius);\n ")])])]),M("week",[x("date-panel-dates",[x("date-panel-date",[M("disabled",[M("selected",[D("&:hover","\n background-color: var(--n-item-color-hover);\n ")])])])])]),S("week",[x("date-panel-dates",[x("date-panel-date",[D("&::before",'\n content: "";\n z-index: -2;\n position: absolute;\n left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);\n right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);\n top: 0;\n bottom: 0;\n transition: background-color .3s var(--n-bezier);\n ')])])]),F("vertical-divider","\n grid-area: divider;\n height: 100%;\n width: 1px;\n background-color: var(--n-calendar-divider-color);\n "),x("date-panel-footer","\n border-top: 1px solid var(--n-panel-action-divider-color);\n padding: var(--n-panel-extra-footer-padding);\n "),x("date-panel-actions","\n flex: 1;\n padding: var(--n-panel-action-padding);\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-top: 1px solid var(--n-panel-action-divider-color);\n ",[F("prefix, suffix","\n display: flex;\n margin-bottom: -8px;\n "),F("suffix","\n align-self: flex-end;\n "),F("prefix","\n flex-wrap: wrap;\n "),x("button","\n margin-bottom: 8px;\n ",[D("&:not(:last-child)","\n margin-right: 8px;\n ")])])]),D("[data-n-date].transition-disabled",{transition:"none !important"},[D("&::before, &::after",{transition:"none !important"})])]),qa=y({name:"DatePicker",props:Object.assign(Object.assign({},R.props),{to:ie.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timerPickerFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,monthFormat:{type:String,default:"M"},yearFormat:{type:String,default:"y"},quarterFormat:{type:String,default:"'Q'Q"},yearRange:{type:Array,default:()=>[1901,2100]},"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function,onChange:[Function,Array]}),setup(e,{slots:t}){var n;const{localeRef:a,dateLocaleRef:r}=ne("DatePicker"),i=P(e),{mergedSizeRef:l,mergedDisabledRef:o,mergedStatusRef:s}=i,{mergedComponentPropsRef:d,mergedClsPrefixRef:u,mergedBorderedRef:c,namespaceRef:h,inlineThemeDisabled:m}=O(e),v=w(null),p=w(null),g=w(null),y=w(!1),b=I(e,"show"),k=ve(b,y),C=f((()=>({locale:r.value.locale,useAdditionalWeekYearTokens:!0}))),D=f((()=>{const{format:t}=e;if(t)return t;switch(e.type){case"date":case"daterange":return a.value.dateFormat;case"datetime":case"datetimerange":return a.value.dateTimeFormat;case"year":case"yearrange":return a.value.yearTypeFormat;case"month":case"monthrange":return a.value.monthTypeFormat;case"quarter":case"quarterrange":return a.value.quarterFormat;case"week":return a.value.weekFormat}})),x=f((()=>{var t;return null!==(t=e.valueFormat)&&void 0!==t?t:D.value}));function S(e){if(null===e)return null;const{value:t}=x,{value:n}=C;return Array.isArray(e)?[zn(e[0],t,new Date,n).getTime(),zn(e[1],t,new Date,n).getTime()]:zn(e,t,new Date,n).getTime()}const{defaultFormattedValue:T,defaultValue:F}=e,M=w(null!==(n=void 0!==T?S(T):F)&&void 0!==n?n:null),$=f((()=>{const{formattedValue:t}=e;return void 0!==t?S(t):e.value})),N=ve($,M),_=w(null);G((()=>{_.value=N.value}));const H=w(""),B=w(""),E=w(""),L=R("DatePicker","-date-picker",ja,X,e,u),Q=f((()=>{var e,t;return(null===(t=null===(e=null==d?void 0:d.value)||void 0===e?void 0:e.DatePicker)||void 0===t?void 0:t.timePickerSize)||"small"})),W=f((()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type))),Z=f((()=>{const{placeholder:t}=e;if(void 0!==t)return t;{const{type:t}=e;switch(t){case"date":return a.value.datePlaceholder;case"datetime":return a.value.datetimePlaceholder;case"month":return a.value.monthPlaceholder;case"year":return a.value.yearPlaceholder;case"quarter":return a.value.quarterPlaceholder;case"week":return a.value.weekPlaceholder;default:return""}}})),K=f((()=>void 0===e.startPlaceholder?"daterange"===e.type?a.value.startDatePlaceholder:"datetimerange"===e.type?a.value.startDatetimePlaceholder:"monthrange"===e.type?a.value.startMonthPlaceholder:"":e.startPlaceholder)),te=f((()=>void 0===e.endPlaceholder?"daterange"===e.type?a.value.endDatePlaceholder:"datetimerange"===e.type?a.value.endDatetimePlaceholder:"monthrange"===e.type?a.value.endMonthPlaceholder:"":e.endPlaceholder)),ae=f((()=>{const{actions:t,type:n,clearable:a}=e;if(null===t)return[];if(void 0!==t)return t;const r=a?["clear"]:[];switch(n){case"date":case"week":case"year":return r.push("now"),r;case"datetime":case"month":case"quarter":return r.push("now","confirm"),r;case"daterange":case"datetimerange":case"monthrange":case"yearrange":case"quarterrange":return r.push("confirm"),r;default:J("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.")}}));function re(t,n){const{"onUpdate:value":a,onUpdateValue:r,onChange:l}=e,{nTriggerFormChange:o,nTriggerFormInput:s}=i,d=function(e){if(null===e)return null;if(Array.isArray(e)){const{value:t}=x,{value:n}=C;return[dt(e[0],t,n),dt(e[1],t,C.value)]}return dt(e,x.value,C.value)}(t);n.doConfirm&&function(t,n){const{onConfirm:a}=e;a&&a(t,n)}(t,d),r&&j(r,t,d),a&&j(a,t,d),l&&j(l,t,d),M.value=t,function(t,n){const{"onUpdate:formattedValue":a,onUpdateFormattedValue:r}=e;a&&j(a,t,n),r&&j(r,t,n)}(d,t),o(),s()}function le(){const{onClear:t}=e;null==t||t()}function oe(t){const{"onUpdate:show":n,onUpdateShow:a}=e;n&&j(n,t),a&&j(a,t),y.value=t}function se(){const e=_.value;re(Array.isArray(e)?[e[0],e[1]]:e,{doConfirm:!0})}function de(){const{value:e}=_;W.value?(Array.isArray(e)||null===e)&&function(e){if(null===e)B.value="",E.value="";else{const t=C.value;B.value=dt(e[0],D.value,t),E.value=dt(e[1],D.value,t)}}(e):Array.isArray(e)||function(e){H.value=null===e?"":dt(e,D.value,C.value)}(e)}function ue(){o.value||k.value||oe(!0)}function ce({returnFocus:t,disableUpdateOnClose:n}){var a;k.value&&(oe(!1),"date"!==e.type&&e.updateValueOnClose&&!n&&se(),t&&(null===(a=g.value)||void 0===a||a.focus()))}A(_,(()=>{de()})),de(),A(k,(e=>{e||(_.value=N.value)}));const he=function(e,t){const n=f((()=>{const{isTimeDisabled:n}=e,{value:a}=t;if(null!==a&&!Array.isArray(a))return null==n?void 0:n(a)})),a=f((()=>{var e;return null===(e=n.value)||void 0===e?void 0:e.isHourDisabled})),r=f((()=>{var e;return null===(e=n.value)||void 0===e?void 0:e.isMinuteDisabled})),i=f((()=>{var e;return null===(e=n.value)||void 0===e?void 0:e.isSecondDisabled})),l=f((()=>{const{type:n,isDateDisabled:a}=e,{value:r}=t;return!(null===r||Array.isArray(r)||!["date","datetime"].includes(n)||!a)&&a(r,{type:"input"})})),o=f((()=>{const{type:n}=e,{value:l}=t;if(null===l||"datetime"===n||Array.isArray(l))return!1;const o=new Date(l),s=o.getHours(),d=o.getMinutes(),u=o.getMinutes();return!!a.value&&a.value(s)||!!r.value&&r.value(d,s)||!!i.value&&i.value(u,d,s)})),s=f((()=>l.value||o.value));return{isValueInvalidRef:f((()=>{const{type:t}=e;return"date"===t?l.value:"datetime"===t&&s.value})),isDateInvalidRef:l,isTimeInvalidRef:o,isDateTimeInvalidRef:s,isHourDisabledRef:a,isMinuteDisabledRef:r,isSecondDisabledRef:i}}(e,_),me=function(e,t){const n=f((()=>{const{isTimeDisabled:n}=e,{value:a}=t;return Array.isArray(a)&&n?[null==n?void 0:n(a[0],"start",a),null==n?void 0:n(a[1],"end",a)]:[void 0,void 0]})),a={isStartHourDisabledRef:f((()=>{var e;return null===(e=n.value[0])||void 0===e?void 0:e.isHourDisabled})),isEndHourDisabledRef:f((()=>{var e;return null===(e=n.value[1])||void 0===e?void 0:e.isHourDisabled})),isStartMinuteDisabledRef:f((()=>{var e;return null===(e=n.value[0])||void 0===e?void 0:e.isMinuteDisabled})),isEndMinuteDisabledRef:f((()=>{var e;return null===(e=n.value[1])||void 0===e?void 0:e.isMinuteDisabled})),isStartSecondDisabledRef:f((()=>{var e;return null===(e=n.value[0])||void 0===e?void 0:e.isSecondDisabled})),isEndSecondDisabledRef:f((()=>{var e;return null===(e=n.value[1])||void 0===e?void 0:e.isSecondDisabled}))},r=f((()=>{const{type:n,isDateDisabled:a}=e,{value:r}=t;return!!(null!==r&&Array.isArray(r)&&["daterange","datetimerange"].includes(n)&&a)&&a(r[0],"start",r)})),i=f((()=>{const{type:n,isDateDisabled:a}=e,{value:r}=t;return!!(null!==r&&Array.isArray(r)&&["daterange","datetimerange"].includes(n)&&a)&&a(r[1],"end",r)})),l=f((()=>{const{type:n}=e,{value:r}=t;if(null===r||!Array.isArray(r)||"datetimerange"!==n)return!1;const i=mt(r[0]),l=vt(r[0]),o=pt(r[0]),{isStartHourDisabledRef:s,isStartMinuteDisabledRef:d,isStartSecondDisabledRef:u}=a;return!!s.value&&s.value(i)||!!d.value&&d.value(l,i)||!!u.value&&u.value(o,l,i)})),o=f((()=>{const{type:n}=e,{value:r}=t;if(null===r||!Array.isArray(r)||"datetimerange"!==n)return!1;const i=mt(r[1]),l=vt(r[1]),o=pt(r[1]),{isEndHourDisabledRef:s,isEndMinuteDisabledRef:d,isEndSecondDisabledRef:u}=a;return!!s.value&&s.value(i)||!!d.value&&d.value(l,i)||!!u.value&&u.value(o,l,i)})),s=f((()=>r.value||l.value)),d=f((()=>i.value||o.value)),u=f((()=>s.value||d.value));return Object.assign(Object.assign({},a),{isStartDateInvalidRef:r,isEndDateInvalidRef:i,isStartTimeInvalidRef:l,isEndTimeInvalidRef:o,isStartValueInvalidRef:s,isEndValueInvalidRef:d,isRangeInvalidRef:u})}(e,_);Y(Hn,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:u,mergedThemeRef:L,timePickerSizeRef:Q,localeRef:a,dateLocaleRef:r,firstDayOfWeekRef:I(e,"firstDayOfWeek"),isDateDisabledRef:I(e,"isDateDisabled"),rangesRef:I(e,"ranges"),timePickerPropsRef:I(e,"timePickerProps"),closeOnSelectRef:I(e,"closeOnSelect"),updateValueOnCloseRef:I(e,"updateValueOnClose"),monthFormatRef:I(e,"monthFormat"),yearFormatRef:I(e,"yearFormat"),quarterFormatRef:I(e,"quarterFormat"),yearRangeRef:I(e,"yearRange")},he),me),{datePickerSlots:t}));const pe={focus:()=>{var e;null===(e=g.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=g.value)||void 0===e||e.blur()}},ge=f((()=>{const{common:{cubicBezierEaseInOut:e},self:{iconColor:t,iconColorDisabled:n}}=L.value;return{"--n-bezier":e,"--n-icon-color-override":t,"--n-icon-color-disabled-override":n}})),ye=m?z("date-picker-trigger",void 0,ge,e):void 0,be=f((()=>{const{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{calendarTitleFontSize:a,calendarDaysFontSize:r,itemFontSize:i,itemTextColor:l,itemColorDisabled:o,itemColorIncluded:s,itemColorHover:d,itemColorActive:u,itemBorderRadius:c,itemTextColorDisabled:h,itemTextColorActive:m,panelColor:v,panelTextColor:f,arrowColor:p,calendarTitleTextColor:g,panelActionDividerColor:y,panelHeaderDividerColor:b,calendarDaysDividerColor:w,panelBoxShadow:k,panelBorderRadius:C,calendarTitleFontWeight:D,panelExtraFooterPadding:x,panelActionPadding:S,itemSize:T,itemCellWidth:F,itemCellHeight:M,scrollItemWidth:O,scrollItemHeight:P,calendarTitlePadding:R,calendarTitleHeight:$,calendarDaysHeight:A,calendarDaysTextColor:I,arrowSize:N,panelHeaderPadding:Y,calendarDividerColor:z,calendarTitleGridTempateColumns:V,iconColor:_,iconColorDisabled:H,scrollItemBorderRadius:B,calendarTitleColorHover:E,[ee("calendarLeftPadding",t)]:j,[ee("calendarRightPadding",t)]:q}}=L.value;return{"--n-bezier":n,"--n-panel-border-radius":C,"--n-panel-color":v,"--n-panel-box-shadow":k,"--n-panel-text-color":f,"--n-panel-header-padding":Y,"--n-panel-header-divider-color":b,"--n-calendar-left-padding":j,"--n-calendar-right-padding":q,"--n-calendar-title-color-hover":E,"--n-calendar-title-height":$,"--n-calendar-title-padding":R,"--n-calendar-title-font-size":a,"--n-calendar-title-font-weight":D,"--n-calendar-title-text-color":g,"--n-calendar-title-grid-template-columns":V,"--n-calendar-days-height":A,"--n-calendar-days-divider-color":w,"--n-calendar-days-font-size":r,"--n-calendar-days-text-color":I,"--n-calendar-divider-color":z,"--n-panel-action-padding":S,"--n-panel-extra-footer-padding":x,"--n-panel-action-divider-color":y,"--n-item-font-size":i,"--n-item-border-radius":c,"--n-item-size":T,"--n-item-cell-width":F,"--n-item-cell-height":M,"--n-item-text-color":l,"--n-item-color-included":s,"--n-item-color-disabled":o,"--n-item-color-hover":d,"--n-item-color-active":u,"--n-item-text-color-disabled":h,"--n-item-text-color-active":m,"--n-scroll-item-width":O,"--n-scroll-item-height":P,"--n-scroll-item-border-radius":B,"--n-arrow-size":N,"--n-arrow-color":p,"--n-icon-color":_,"--n-icon-color-disabled":H}})),we=m?z("date-picker",f((()=>e.type)),be,e):void 0;return Object.assign(Object.assign({},pe),{mergedStatus:s,mergedClsPrefix:u,mergedBordered:c,namespace:h,uncontrolledValue:M,pendingValue:_,panelInstRef:v,triggerElRef:p,inputInstRef:g,isMounted:V(),displayTime:H,displayStartTime:B,displayEndTime:E,mergedShow:k,adjustedTo:ie(e),isRange:W,localizedStartPlaceholder:K,localizedEndPlaceholder:te,mergedSize:l,mergedDisabled:o,localizedPlacehoder:Z,isValueInvalid:he.isValueInvalidRef,isStartValueInvalid:me.isStartValueInvalidRef,isEndValueInvalid:me.isEndValueInvalidRef,handleInputKeydown:function(e){"Escape"===e.key&&k.value&&q(e)},handleClickOutside:function(e){var t;k.value&&!(null===(t=p.value)||void 0===t?void 0:t.contains(U(e)))&&ce({returnFocus:!1})},handleKeydown:function(e){"Escape"===e.key&&k.value&&(q(e),ce({returnFocus:!0}))},handleClear:function(){var e;oe(!1),null===(e=g.value)||void 0===e||e.deactivate(),le()},handlePanelClear:function(){var e;null===(e=g.value)||void 0===e||e.deactivate(),le()},handleTriggerClick:function(e){o.value||fe(e,"clear")||k.value||ue()},handleInputActivate:function(){k.value||ue()},handleInputDeactivate:function(){o.value||(de(),ce({returnFocus:!1}))},handleInputFocus:function(t){o.value||function(t){const{onFocus:n}=e,{nTriggerFormFocus:a}=i;n&&j(n,t),a()}(t)},handleInputBlur:function(t){var n;(null===(n=v.value)||void 0===n?void 0:n.$el.contains(t.relatedTarget))||(!function(t){const{onBlur:n}=e,{nTriggerFormBlur:a}=i;n&&j(n,t),a()}(t),de(),ce({returnFocus:!1}))},handlePanelTabOut:function(){ce({returnFocus:!0})},handlePanelClose:function(e){ce({returnFocus:!0,disableUpdateOnClose:e})},handleRangeUpdateValue:function(e,{source:t}){if(""===e[0]&&""===e[1])return re(null,{doConfirm:!1}),_.value=null,B.value="",void(E.value="");const[n,a]=e,r=zn(n,D.value,new Date,C.value),i=zn(a,D.value,new Date,C.value);if(Me(r)&&Me(i)){let e=gt(r),n=gt(i);i{const{type:e}=this;return"datetime"===e?d(Ya,Object.assign({},r,{defaultCalendarStartTime:this.defaultCalendarStartTime}),a):"daterange"===e?d(Ba,Object.assign({},r,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),a):"datetimerange"===e?d(_a,Object.assign({},r,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),a):"month"===e||"year"===e||"quarter"===e?d(Ia,Object.assign({},r,{type:e,key:e})):"monthrange"===e||"yearrange"===e||"quarterrange"===e?d(Ea,Object.assign({},r,{type:e})):d(Ha,Object.assign({},r,{type:e,defaultCalendarStartTime:this.defaultCalendarStartTime}),a)};if(this.panel)return i();null==t||t();const l={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return d("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},d(le,null,{default:()=>[d(oe,null,{default:()=>this.isRange?d(me,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},l),{separator:()=>void 0===this.separator?Z(a.separator,(()=>[d(_,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>d(ye,null)})])):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>Z(a["date-icon"],(()=>[d(_,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>d(pe,null)})]))}):d(me,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},l),{[e?"clear-icon-placeholder":"suffix"]:()=>d(_,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>Z(a["date-icon"],(()=>[d(pe,null)]))})})}),d(se,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===ie.tdkey,placement:this.placement},{default:()=>d(H,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?B(i(),[[E,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}});export{qa as _}; diff --git a/docs/assets/Descriptions-BD5yoHoK.js b/docs/assets/Descriptions-BD5yoHoK.js new file mode 100644 index 0000000..dc5dcb3 --- /dev/null +++ b/docs/assets/Descriptions-BD5yoHoK.js @@ -0,0 +1 @@ +import{y as e,z as o,U as r,Q as n,A as t,V as l,W as s,d as i,D as a,C as d,bO as c,l as p,Y as b,G as h,a9 as g,v,b4 as m}from"./index-BT0ZcDkn.js";import{u}from"./use-compitable-CHcH6xDN.js";import{g as f}from"./get-slot-BjAOOWF7.js";function w(e,o="default",r=[]){const{children:n}=e;if(null!==n&&"object"==typeof n&&!Array.isArray(n)){const e=n[o];if("function"==typeof e)return e()}return r}const x="DESCRIPTION_ITEM_FLAG";const y=e([o("descriptions",{fontSize:"var(--n-font-size)"},[o("descriptions-separator","\n display: inline-block;\n margin: 0 8px 0 2px;\n "),o("descriptions-table-wrapper",[o("descriptions-table",[o("descriptions-table-row",[o("descriptions-table-header",{padding:"var(--n-th-padding)"}),o("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),r("bordered",[o("descriptions-table-wrapper",[o("descriptions-table",[o("descriptions-table-row",[e("&:last-child",[o("descriptions-table-content",{paddingBottom:0})])])])])]),n("left-label-placement",[o("descriptions-table-content",[e("> *",{verticalAlign:"top"})])]),n("left-label-align",[e("th",{textAlign:"left"})]),n("center-label-align",[e("th",{textAlign:"center"})]),n("right-label-align",[e("th",{textAlign:"right"})]),n("bordered",[o("descriptions-table-wrapper","\n border-radius: var(--n-border-radius);\n overflow: hidden;\n background: var(--n-merged-td-color);\n border: 1px solid var(--n-merged-border-color);\n ",[o("descriptions-table",[o("descriptions-table-row",[e("&:not(:last-child)",[o("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),o("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),o("descriptions-table-header","\n font-weight: 400;\n background-clip: padding-box;\n background-color: var(--n-merged-th-color);\n ",[e("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),o("descriptions-table-content",[e("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),o("descriptions-header","\n font-weight: var(--n-th-font-weight);\n font-size: 18px;\n transition: color .3s var(--n-bezier);\n line-height: var(--n-line-height);\n margin-bottom: 16px;\n color: var(--n-title-text-color);\n "),o("descriptions-table-wrapper","\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[o("descriptions-table","\n width: 100%;\n border-collapse: separate;\n border-spacing: 0;\n box-sizing: border-box;\n ",[o("descriptions-table-row","\n box-sizing: border-box;\n transition: border-color .3s var(--n-bezier);\n ",[o("descriptions-table-header","\n font-weight: var(--n-th-font-weight);\n line-height: var(--n-line-height);\n display: table-cell;\n box-sizing: border-box;\n color: var(--n-th-text-color);\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n "),o("descriptions-table-content","\n vertical-align: top;\n line-height: var(--n-line-height);\n display: table-cell;\n box-sizing: border-box;\n color: var(--n-td-text-color);\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[t("content","\n transition: color .3s var(--n-bezier);\n display: inline-block;\n color: var(--n-td-text-color);\n ")]),t("label","\n font-weight: var(--n-th-font-weight);\n transition: color .3s var(--n-bezier);\n display: inline-block;\n margin-right: 14px;\n color: var(--n-th-text-color);\n ")])])])]),o("descriptions-table-wrapper","\n --n-merged-th-color: var(--n-th-color);\n --n-merged-td-color: var(--n-td-color);\n --n-merged-border-color: var(--n-border-color);\n "),l(o("descriptions-table-wrapper","\n --n-merged-th-color: var(--n-th-color-modal);\n --n-merged-td-color: var(--n-td-color-modal);\n --n-merged-border-color: var(--n-border-color-modal);\n ")),s(o("descriptions-table-wrapper","\n --n-merged-th-color: var(--n-th-color-popover);\n --n-merged-td-color: var(--n-td-color-popover);\n --n-merged-border-color: var(--n-border-color-popover);\n "))]),z=i({name:"Descriptions",props:Object.assign(Object.assign({},d.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelClass:String,labelStyle:[Object,String],contentClass:String,contentStyle:[Object,String]}),setup(e){const{mergedClsPrefixRef:o,inlineThemeDisabled:r}=a(e),n=d("Descriptions","-descriptions",y,c,e,o),t=p((()=>{const{size:o,bordered:r}=e,{common:{cubicBezierEaseInOut:t},self:{titleTextColor:l,thColor:s,thColorModal:i,thColorPopover:a,thTextColor:d,thFontWeight:c,tdTextColor:p,tdColor:h,tdColorModal:g,tdColorPopover:v,borderColor:m,borderColorModal:u,borderColorPopover:f,borderRadius:w,lineHeight:x,[b("fontSize",o)]:y,[b(r?"thPaddingBordered":"thPadding",o)]:z,[b(r?"tdPaddingBordered":"tdPadding",o)]:C}}=n.value;return{"--n-title-text-color":l,"--n-th-padding":z,"--n-td-padding":C,"--n-font-size":y,"--n-bezier":t,"--n-th-font-weight":c,"--n-line-height":x,"--n-th-text-color":d,"--n-td-text-color":p,"--n-th-color":s,"--n-th-color-modal":i,"--n-th-color-popover":a,"--n-td-color":h,"--n-td-color-modal":g,"--n-td-color-popover":v,"--n-border-radius":w,"--n-border-color":m,"--n-border-color-modal":u,"--n-border-color-popover":f}})),l=r?h("descriptions",p((()=>{let o="";const{size:r,bordered:n}=e;return n&&(o+="a"),o+=r[0],o})),t,e):void 0;return{mergedClsPrefix:o,cssVars:r?void 0:t,themeClass:null==l?void 0:l.themeClass,onRender:null==l?void 0:l.onRender,compitableColumn:u(e,["columns","column"]),inlineThemeDisabled:r}},render(){const e=this.$slots.default,o=e?g(e()):[];o.length;const{contentClass:r,labelClass:n,compitableColumn:t,labelPlacement:l,labelAlign:s,size:i,bordered:a,title:d,cssVars:c,mergedClsPrefix:p,separator:b,onRender:h}=this;null==h||h();const u=o.filter((e=>{return!("object"!=typeof(o=e)||!o||Array.isArray(o))&&o.type&&o.type[x];var o})),y=u.reduce(((e,o,s)=>{const i=o.props||{},d=u.length-1===s,c=["label"in i?i.label:w(o,"label")],h=[w(o)],g=i.span||1,m=e.span;e.span+=g;const f=i.labelStyle||i["label-style"]||this.labelStyle,x=i.contentStyle||i["content-style"]||this.contentStyle;if("left"===l)a?e.row.push(v("th",{class:[`${p}-descriptions-table-header`,n],colspan:1,style:f},c),v("td",{class:[`${p}-descriptions-table-content`,r],colspan:d?2*(t-m)+1:2*g-1,style:x},h)):e.row.push(v("td",{class:`${p}-descriptions-table-content`,colspan:d?2*(t-m):2*g},v("span",{class:[`${p}-descriptions-table-content__label`,n],style:f},[...c,b&&v("span",{class:`${p}-descriptions-separator`},b)]),v("span",{class:[`${p}-descriptions-table-content__content`,r],style:x},h)));else{const o=d?2*(t-m):2*g;e.row.push(v("th",{class:[`${p}-descriptions-table-header`,n],colspan:o,style:f},c)),e.secondRow.push(v("td",{class:[`${p}-descriptions-table-content`,r],colspan:o,style:x},h))}return(e.span>=t||d)&&(e.span=0,e.row.length&&(e.rows.push(e.row),e.row=[]),"left"!==l&&e.secondRow.length&&(e.rows.push(e.secondRow),e.secondRow=[])),e}),{span:0,row:[],secondRow:[],rows:[]}).rows.map((e=>v("tr",{class:`${p}-descriptions-table-row`},e)));return v("div",{style:c,class:[`${p}-descriptions`,this.themeClass,`${p}-descriptions--${l}-label-placement`,`${p}-descriptions--${s}-label-align`,`${p}-descriptions--${i}-size`,a&&`${p}-descriptions--bordered`]},d||this.$slots.header?v("div",{class:`${p}-descriptions-header`},d||f(this,"header")):null,v("div",{class:`${p}-descriptions-table-wrapper`},v("table",{class:`${p}-descriptions-table`},v("tbody",null,"top"===l&&v("tr",{class:`${p}-descriptions-table-row`,style:{visibility:"collapse"}},m(2*t,v("td",null))),y))))}});export{x as D,z as _}; diff --git a/docs/assets/Divider-DXNdPNfR.js b/docs/assets/Divider-DXNdPNfR.js new file mode 100644 index 0000000..1bf2218 --- /dev/null +++ b/docs/assets/Divider-DXNdPNfR.js @@ -0,0 +1 @@ +import{z as e,U as i,A as n,Q as r,C as t,d as l,D as o,l as d,G as s,v as a,H as c,d6 as v}from"./index-BT0ZcDkn.js";const h=e("divider","\n position: relative;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n font-size: 16px;\n color: var(--n-text-color);\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n",[i("vertical","\n margin-top: 24px;\n margin-bottom: 24px;\n ",[i("no-title","\n display: flex;\n align-items: center;\n ")]),n("title","\n display: flex;\n align-items: center;\n margin-left: 12px;\n margin-right: 12px;\n white-space: nowrap;\n font-weight: var(--n-font-weight);\n "),r("title-position-left",[n("line",[r("left",{width:"28px"})])]),r("title-position-right",[n("line",[r("right",{width:"28px"})])]),r("dashed",[n("line","\n background-color: #0000;\n height: 0px;\n width: 100%;\n border-style: dashed;\n border-width: 1px 0 0;\n ")]),r("vertical","\n display: inline-block;\n height: 1em;\n margin: 0 8px;\n vertical-align: middle;\n width: 1px;\n "),n("line","\n border: none;\n transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier);\n height: 1px;\n width: 100%;\n margin: 0;\n "),i("dashed",[n("line",{backgroundColor:"var(--n-color)"})]),r("dashed",[n("line",{borderColor:"var(--n-color)"})]),r("vertical",{backgroundColor:"var(--n-color)"})]),g=l({name:"Divider",props:Object.assign(Object.assign({},t.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),setup(e){const{mergedClsPrefixRef:i,inlineThemeDisabled:n}=o(e),r=t("Divider","-divider",h,v,e,i),l=d((()=>{const{common:{cubicBezierEaseInOut:e},self:{color:i,textColor:n,fontWeight:t}}=r.value;return{"--n-bezier":e,"--n-color":i,"--n-text-color":n,"--n-font-weight":t}})),a=n?s("divider",void 0,l,e):void 0;return{mergedClsPrefix:i,cssVars:n?void 0:l,themeClass:null==a?void 0:a.themeClass,onRender:null==a?void 0:a.onRender}},render(){var e;const{$slots:i,titlePlacement:n,vertical:r,dashed:t,cssVars:l,mergedClsPrefix:o}=this;return null===(e=this.onRender)||void 0===e||e.call(this),a("div",{role:"separator",class:[`${o}-divider`,this.themeClass,{[`${o}-divider--vertical`]:r,[`${o}-divider--no-title`]:!i.default,[`${o}-divider--dashed`]:t,[`${o}-divider--title-position-${n}`]:i.default&&n}],style:l},r?null:a("div",{class:`${o}-divider__line ${o}-divider__line--left`}),!r&&i.default?a(c,null,a("div",{class:`${o}-divider__title`},this.$slots),a("div",{class:`${o}-divider__line ${o}-divider__line--right`})):null)}});export{g as N}; diff --git a/docs/assets/Dropdown-BMB08iEg.js b/docs/assets/Dropdown-BMB08iEg.js new file mode 100644 index 0000000..3b23534 --- /dev/null +++ b/docs/assets/Dropdown-BMB08iEg.js @@ -0,0 +1 @@ +import{B as e,V as o,a as n,r,p as t,_ as i}from"./Popover-3mPJ01hC.js";import{a as d,a0 as l,r as a,d2 as s,m as u,aL as p,aX as c,d3 as v,aY as f,d as h,v as b,au as m,i as w,ca as y,l as g,a4 as x,b1 as k,T as S,ai as N,bE as P,M as R,aK as C,H as O,cb as I,c9 as $,d4 as z,z as A,aw as F,y as _,U as j,Q as K,A as T,C as L,az as D,D as M,d5 as B,aD as E,Y as H,G as U,aa as q}from"./index-BT0ZcDkn.js";import{h as G,c as W,a as V}from"./create-Bylz8BGN.js";import{u as Y}from"./use-merged-state-D7wGS6Km.js";function Q(e={},o){const n=a({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:t}=e,i=e=>{switch(e.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0}void 0!==r&&Object.keys(r).forEach((o=>{if(o!==e.key)return;const n=r[o];if("function"==typeof n)n(e);else{const{stop:o=!1,prevent:r=!1}=n;o&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}}))},d=e=>{switch(e.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1}void 0!==t&&Object.keys(t).forEach((o=>{if(o!==e.key)return;const n=t[o];if("function"==typeof n)n(e);else{const{stop:o=!1,prevent:r=!1}=n;o&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}}))},h=()=>{(void 0===o||o.value)&&(f("keydown",document,i),f("keyup",document,d)),void 0!==o&&l(o,(e=>{e?(f("keydown",document,i),f("keyup",document,d)):(c("keydown",document,i),c("keyup",document,d))}))};return s()?(u(h),p((()=>{(void 0===o||o.value)&&(c("keydown",document,i),c("keyup",document,d))}))):h(),v(n)}const X=h({name:"ChevronRight",render:()=>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"}))}),Z=h({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return b("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),J=m("n-dropdown-menu"),ee=m("n-dropdown"),oe=m("n-dropdown-option");function ne(e,o){return"submenu"===e.type||void 0===e.type&&void 0!==e[o]}function re(e){return"divider"===e.type}const te=h({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 o=w(ee),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:t,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:s,mergedShowRef:u,renderLabelRef:p,renderIconRef:c,labelFieldRef:v,childrenFieldRef:f,renderOptionRef:h,nodePropsRef:b,menuPropsRef:m}=o,S=w(oe,null),N=w(J),P=w(y),R=g((()=>e.tmNode.rawNode)),C=g((()=>{const{value:o}=f;return ne(e.tmNode.rawNode,o)})),O=g((()=>{const{disabled:o}=e.tmNode;return o})),I=function(e,o,n){const r=d(e.value);let t=null;return l(e,(e=>{null!==t&&window.clearTimeout(t),!0===e?n&&!n.value?r.value=!0:t=window.setTimeout((()=>{r.value=!0}),o):r.value=!1})),r}(g((()=>{if(!C.value)return!1;const{key:o,disabled:d}=e.tmNode;if(d)return!1;const{value:l}=n,{value:a}=r,{value:s}=t,{value:u}=i;return null!==l?u.includes(o):null!==a?u.includes(o)&&u[u.length-1]!==o:null!==s&&u.includes(o)})),300,g((()=>null===r.value&&!s.value))),$=g((()=>!!(null==S?void 0:S.enteringSubmenuRef.value))),z=d(!1);function A(){const{parentKey:o,tmNode:i}=e;i.disabled||u.value&&(t.value=o,r.value=null,n.value=i.key)}return x(oe,{enteringSubmenuRef:z}),{labelField:v,renderLabel:p,renderIcon:c,siblingHasIcon:N.showIconRef,siblingHasSubmenu:N.hasSubmenuRef,menuProps:m,popoverBody:P,animated:s,mergedShowSubmenu:g((()=>I.value&&!$.value)),rawNode:R,hasSubmenu:C,pending:k((()=>{const{value:o}=i,{key:n}=e.tmNode;return o.includes(n)})),childActive:k((()=>{const{value:o}=a,{key:n}=e.tmNode,r=o.findIndex((e=>n===e));return-1!==r&&r{const{value:o}=a,{key:n}=e.tmNode,r=o.findIndex((e=>n===e));return-1!==r&&r===o.length-1})),mergedDisabled:O,renderOption:h,nodeProps:b,handleClick:function(){const{value:n}=C,{tmNode:r}=e;u.value&&(n||r.disabled||(o.doSelect(r.key,r.rawNode),o.doUpdateShow(!1)))},handleMouseMove:function(){const{tmNode:o}=e;o.disabled||u.value&&n.value!==o.key&&A()},handleMouseEnter:A,handleMouseLeave:function(o){if(e.tmNode.disabled)return;if(!u.value)return;const{relatedTarget:r}=o;!r||G({target:r},"dropdownOption")||G({target:r},"scrollbarRail")||(n.value=null)},handleSubmenuBeforeEnter:function(){z.value=!0},handleSubmenuAfterEnter:function(){z.value=!1}}},render(){var r,t;const{animated:i,rawNode:d,mergedShowSubmenu:l,clsPrefix:a,siblingHasIcon:s,siblingHasSubmenu:u,renderLabel:p,renderIcon:c,renderOption:v,nodeProps:f,props:h,scrollable:m}=this;let w=null;if(l){const e=null===(r=this.menuProps)||void 0===r?void 0:r.call(this,d,d.children);w=b(ae,Object.assign({},e,{clsPrefix:a,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const y={class:[`${a}-dropdown-option-body`,this.pending&&`${a}-dropdown-option-body--pending`,this.active&&`${a}-dropdown-option-body--active`,this.childActive&&`${a}-dropdown-option-body--child-active`,this.mergedDisabled&&`${a}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},g=null==f?void 0:f(d),x=b("div",Object.assign({class:[`${a}-dropdown-option`,null==g?void 0:g.class],"data-dropdown-option":!0},g),b("div",N(y,h),[b("div",{class:[`${a}-dropdown-option-body__prefix`,s&&`${a}-dropdown-option-body__prefix--show-icon`]},[c?c(d):P(d.icon)]),b("div",{"data-dropdown-option":!0,class:`${a}-dropdown-option-body__label`},p?p(d):P(null!==(t=d[this.labelField])&&void 0!==t?t:d.title)),b("div",{"data-dropdown-option":!0,class:[`${a}-dropdown-option-body__suffix`,u&&`${a}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?b(R,null,{default:()=>b(X,null)}):null)]),this.hasSubmenu?b(e,null,{default:()=>[b(o,null,{default:()=>b("div",{class:`${a}-dropdown-offset-container`},b(n,{show:this.mergedShowSubmenu,placement:this.placement,to:m&&this.popoverBody||void 0,teleportDisabled:!m},{default:()=>b("div",{class:`${a}-dropdown-menu-wrapper`},i?b(S,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>w}):w)}))})]}):null);return v?v({node:x,option:d}):x}}),ie=h({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:o}=w(J),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:t,renderOptionRef:i}=w(ee);return{labelField:r,showIcon:e,hasSubmenu:o,renderLabel:n,nodeProps:t,renderOption:i}},render(){var e;const{clsPrefix:o,hasSubmenu:n,showIcon:r,nodeProps:t,renderLabel:i,renderOption:d}=this,{rawNode:l}=this.tmNode,a=b("div",Object.assign({class:`${o}-dropdown-option`},null==t?void 0:t(l)),b("div",{class:`${o}-dropdown-option-body ${o}-dropdown-option-body--group`},b("div",{"data-dropdown-option":!0,class:[`${o}-dropdown-option-body__prefix`,r&&`${o}-dropdown-option-body__prefix--show-icon`]},P(l.icon)),b("div",{class:`${o}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):P(null!==(e=l.title)&&void 0!==e?e:l[this.labelField])),b("div",{class:[`${o}-dropdown-option-body__suffix`,n&&`${o}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return d?d({node:a,option:l}):a}}),de=h({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:o,clsPrefix:n}=this,{children:r}=e;return b(O,null,b(ie,{clsPrefix:n,tmNode:e,key:e.key}),null==r?void 0:r.map((e=>{const{rawNode:r}=e;return!1===r.show?null:re(r)?b(Z,{clsPrefix:n,key:e.key}):e.isGroup?(C("dropdown","`group` node is not allowed to be put in `group` node."),null):b(te,{clsPrefix:n,tmNode:e,parentKey:o,key:e.key})})))}}),le=h({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:o}}=this.tmNode;return b("div",o,[null==e?void 0:e()])}}),ae=h({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:o,childrenFieldRef:n}=w(ee);x(J,{showIconRef:g((()=>{const n=o.value;return e.tmNodes.some((e=>{var o;if(e.isGroup)return null===(o=e.children)||void 0===o?void 0:o.some((({rawNode:e})=>n?n(e):e.icon));const{rawNode:r}=e;return n?n(r):r.icon}))})),hasSubmenuRef:g((()=>{const{value:o}=n;return e.tmNodes.some((e=>{var n;if(e.isGroup)return null===(n=e.children)||void 0===n?void 0:n.some((({rawNode:e})=>ne(e,o)));const{rawNode:r}=e;return ne(r,o)}))}))});const r=d(null);return x(I,null),x($,null),x(y,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:o,scrollable:n}=this,t=this.tmNodes.map((r=>{const{rawNode:t}=r;return!1===t.show?null:function(e){return"render"===e.type}(t)?b(le,{tmNode:r,key:r.key}):re(t)?b(Z,{clsPrefix:o,key:r.key}):function(e){return"group"===e.type}(t)?b(de,{clsPrefix:o,tmNode:r,parentKey:e,key:r.key}):b(te,{clsPrefix:o,tmNode:r,parentKey:e,key:r.key,props:t.props,scrollable:n})}));return b("div",{class:[`${o}-dropdown-menu`,n&&`${o}-dropdown-menu--scrollable`],ref:"bodyRef"},n?b(z,{contentClass:`${o}-dropdown-menu__content`},{default:()=>t}):t,this.showArrow?r({clsPrefix:o,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),se=A("dropdown-menu","\n transform-origin: var(--v-transform-origin);\n background-color: var(--n-color);\n border-radius: var(--n-border-radius);\n box-shadow: var(--n-box-shadow);\n position: relative;\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n",[F(),A("dropdown-option","\n position: relative;\n ",[_("a","\n text-decoration: none;\n color: inherit;\n outline: none;\n ",[_("&::before",'\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ')]),A("dropdown-option-body","\n display: flex;\n cursor: pointer;\n position: relative;\n height: var(--n-option-height);\n line-height: var(--n-option-height);\n font-size: var(--n-font-size);\n color: var(--n-option-text-color);\n transition: color .3s var(--n-bezier);\n ",[_("&::before",'\n content: "";\n position: absolute;\n top: 0;\n bottom: 0;\n left: 4px;\n right: 4px;\n transition: background-color .3s var(--n-bezier);\n border-radius: var(--n-border-radius);\n '),j("disabled",[K("pending","\n color: var(--n-option-text-color-hover);\n ",[T("prefix, suffix","\n color: var(--n-option-text-color-hover);\n "),_("&::before","background-color: var(--n-option-color-hover);")]),K("active","\n color: var(--n-option-text-color-active);\n ",[T("prefix, suffix","\n color: var(--n-option-text-color-active);\n "),_("&::before","background-color: var(--n-option-color-active);")]),K("child-active","\n color: var(--n-option-text-color-child-active);\n ",[T("prefix, suffix","\n color: var(--n-option-text-color-child-active);\n ")])]),K("disabled","\n cursor: not-allowed;\n opacity: var(--n-option-opacity-disabled);\n "),K("group","\n font-size: calc(var(--n-font-size) - 1px);\n color: var(--n-group-header-text-color);\n ",[T("prefix","\n width: calc(var(--n-option-prefix-width) / 2);\n ",[K("show-icon","\n width: calc(var(--n-option-icon-prefix-width) / 2);\n ")])]),T("prefix","\n width: var(--n-option-prefix-width);\n display: flex;\n justify-content: center;\n align-items: center;\n color: var(--n-prefix-color);\n transition: color .3s var(--n-bezier);\n z-index: 1;\n ",[K("show-icon","\n width: var(--n-option-icon-prefix-width);\n "),A("icon","\n font-size: var(--n-option-icon-size);\n ")]),T("label","\n white-space: nowrap;\n flex: 1;\n z-index: 1;\n "),T("suffix","\n box-sizing: border-box;\n flex-grow: 0;\n flex-shrink: 0;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n min-width: var(--n-option-suffix-width);\n padding: 0 8px;\n transition: color .3s var(--n-bezier);\n color: var(--n-suffix-color);\n z-index: 1;\n ",[K("has-submenu","\n width: var(--n-option-icon-suffix-width);\n "),A("icon","\n font-size: var(--n-option-icon-size);\n ")]),A("dropdown-menu","pointer-events: all;")]),A("dropdown-offset-container","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: -4px;\n bottom: -4px;\n ")]),A("dropdown-divider","\n transition: background-color .3s var(--n-bezier);\n background-color: var(--n-divider-color);\n height: 1px;\n margin: 4px 0;\n "),A("dropdown-menu-wrapper","\n transform-origin: var(--v-transform-origin);\n width: fit-content;\n "),_(">",[A("scrollbar","\n height: inherit;\n max-height: inherit;\n ")]),j("scrollable","\n padding: var(--n-padding);\n "),K("scrollable",[T("content","\n padding: var(--n-padding);\n ")])]),ue={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]},pe=Object.keys(t),ce=h({name:"Dropdown",inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign({},t),ue),L.props),setup(e){const o=d(!1),n=Y(D(e,"show"),o),r=g((()=>{const{keyField:o,childrenField:n}=e;return W(e.options,{getKey:e=>e[o],getDisabled:e=>!0===e.disabled,getIgnored:e=>"divider"===e.type||"render"===e.type,getChildren:e=>e[n]})})),t=g((()=>r.value.treeNodes)),i=d(null),a=d(null),s=d(null),u=g((()=>{var e,o,n;return null!==(n=null!==(o=null!==(e=i.value)&&void 0!==e?e:a.value)&&void 0!==o?o:s.value)&&void 0!==n?n:null})),p=g((()=>r.value.getPath(u.value).keyPath)),c=g((()=>r.value.getPath(e.value).keyPath));Q({keydown:{ArrowUp:{prevent:!0,handler:function(){S("up")}},ArrowRight:{prevent:!0,handler:function(){S("right")}},ArrowDown:{prevent:!0,handler:function(){S("down")}},ArrowLeft:{prevent:!0,handler:function(){S("left")}},Enter:{prevent:!0,handler:function(){const e=y();(null==e?void 0:e.isLeaf)&&n.value&&(b(e.key,e.rawNode),m(!1))}},Escape:function(){m(!1)}}},k((()=>e.keyboard&&n.value)));const{mergedClsPrefixRef:v,inlineThemeDisabled:f}=M(e),h=L("Dropdown","-dropdown",se,B,e,v);function b(o,n){const{onSelect:r}=e;r&&E(r,o,n)}function m(n){const{"onUpdate:show":r,onUpdateShow:t}=e;r&&E(r,n),t&&E(t,n),o.value=n}function w(){i.value=null,a.value=null,s.value=null}function y(){var e;const{value:o}=r,{value:n}=u;return o&&null!==n&&null!==(e=o.getNode(n))&&void 0!==e?e:null}function S(e){const{value:o}=u,{value:{getFirstAvailableNode:n}}=r;let t=null;if(null===o){const e=n();null!==e&&(t=e.key)}else{const o=y();if(o){let n;switch(e){case"down":n=o.getNext();break;case"up":n=o.getPrev();break;case"right":n=o.getChild();break;case"left":n=o.getParent()}n&&(t=n.key)}}null!==t&&(i.value=null,a.value=t)}x(ee,{labelFieldRef:D(e,"labelField"),childrenFieldRef:D(e,"childrenField"),renderLabelRef:D(e,"renderLabel"),renderIconRef:D(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:p,activeKeyPathRef:c,animatedRef:D(e,"animated"),mergedShowRef:n,nodePropsRef:D(e,"nodeProps"),renderOptionRef:D(e,"renderOption"),menuPropsRef:D(e,"menuProps"),doSelect:b,doUpdateShow:m}),l(n,(o=>{e.animated||o||w()}));const N=g((()=>{const{size:o,inverted:n}=e,{common:{cubicBezierEaseInOut:r},self:t}=h.value,{padding:i,dividerColor:d,borderRadius:l,optionOpacityDisabled:a,[H("optionIconSuffixWidth",o)]:s,[H("optionSuffixWidth",o)]:u,[H("optionIconPrefixWidth",o)]:p,[H("optionPrefixWidth",o)]:c,[H("fontSize",o)]:v,[H("optionHeight",o)]:f,[H("optionIconSize",o)]:b}=t,m={"--n-bezier":r,"--n-font-size":v,"--n-padding":i,"--n-border-radius":l,"--n-option-height":f,"--n-option-prefix-width":c,"--n-option-icon-prefix-width":p,"--n-option-suffix-width":u,"--n-option-icon-suffix-width":s,"--n-option-icon-size":b,"--n-divider-color":d,"--n-option-opacity-disabled":a};return n?(m["--n-color"]=t.colorInverted,m["--n-option-color-hover"]=t.optionColorHoverInverted,m["--n-option-color-active"]=t.optionColorActiveInverted,m["--n-option-text-color"]=t.optionTextColorInverted,m["--n-option-text-color-hover"]=t.optionTextColorHoverInverted,m["--n-option-text-color-active"]=t.optionTextColorActiveInverted,m["--n-option-text-color-child-active"]=t.optionTextColorChildActiveInverted,m["--n-prefix-color"]=t.prefixColorInverted,m["--n-suffix-color"]=t.suffixColorInverted,m["--n-group-header-text-color"]=t.groupHeaderTextColorInverted):(m["--n-color"]=t.color,m["--n-option-color-hover"]=t.optionColorHover,m["--n-option-color-active"]=t.optionColorActive,m["--n-option-text-color"]=t.optionTextColor,m["--n-option-text-color-hover"]=t.optionTextColorHover,m["--n-option-text-color-active"]=t.optionTextColorActive,m["--n-option-text-color-child-active"]=t.optionTextColorChildActive,m["--n-prefix-color"]=t.prefixColor,m["--n-suffix-color"]=t.suffixColor,m["--n-group-header-text-color"]=t.groupHeaderTextColor),m})),P=f?U("dropdown",g((()=>`${e.size[0]}${e.inverted?"i":""}`)),N,e):void 0;return{mergedClsPrefix:v,mergedTheme:h,tmNodes:t,mergedShow:n,handleAfterLeave:()=>{e.animated&&w()},doUpdateShow:m,cssVars:f?void 0:N,themeClass:null==P?void 0:P.themeClass,onRender:null==P?void 0:P.onRender}},render(){const{mergedTheme:e}=this,o={show:this.mergedShow,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:(e,o,n,r,t)=>{var i;const{mergedClsPrefix:d,menuProps:l}=this;null===(i=this.onRender)||void 0===i||i.call(this);const a=(null==l?void 0:l(void 0,this.tmNodes.map((e=>e.rawNode))))||{},s={ref:V(o),class:[e,`${d}-dropdown`,this.themeClass],clsPrefix:d,tmNodes:this.tmNodes,style:[...n,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:r,onMouseleave:t};return b(ae,N(this.$attrs,s,a))},onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return b(i,Object.assign({},q(this.$props,pe),o),{trigger:()=>{var e,o;return null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e)}})}});export{X as C,ce as _,Q as u}; diff --git a/docs/assets/Empty-C_CzYco1.js b/docs/assets/Empty-C_CzYco1.js new file mode 100644 index 0000000..1bec89a --- /dev/null +++ b/docs/assets/Empty-C_CzYco1.js @@ -0,0 +1 @@ +import{d as e,v as n,z as o,A as i,y as t,D as r,C as s,cS as l,l as a,Y as c,G as d,N as p}from"./index-BT0ZcDkn.js";import{u}from"./use-locale-CbMPSc0o.js";const v=e({name:"Empty",render:()=>n("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),n("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}),m=o("empty","\n display: flex;\n flex-direction: column;\n align-items: center;\n font-size: var(--n-font-size);\n",[i("icon","\n width: var(--n-icon-size);\n height: var(--n-icon-size);\n font-size: var(--n-icon-size);\n line-height: var(--n-icon-size);\n color: var(--n-icon-color);\n transition:\n color .3s var(--n-bezier);\n ",[t("+",[i("description","\n margin-top: 8px;\n ")])]),i("description","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n "),i("extra","\n text-align: center;\n transition: color .3s var(--n-bezier);\n margin-top: 12px;\n color: var(--n-extra-text-color);\n ")]),C=e({name:"Empty",props:Object.assign(Object.assign({},s.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),setup(e){const{mergedClsPrefixRef:o,inlineThemeDisabled:i,mergedComponentPropsRef:t}=r(e),p=s("Empty","-empty",m,l,e,o),{localeRef:C}=u("Empty"),f=a((()=>{var n,o,i;return null!==(n=e.description)&&void 0!==n?n:null===(i=null===(o=null==t?void 0:t.value)||void 0===o?void 0:o.Empty)||void 0===i?void 0:i.description})),x=a((()=>{var e,o;return(null===(o=null===(e=null==t?void 0:t.value)||void 0===e?void 0:e.Empty)||void 0===o?void 0:o.renderIcon)||(()=>n(v,null))})),h=a((()=>{const{size:n}=e,{common:{cubicBezierEaseInOut:o},self:{[c("iconSize",n)]:i,[c("fontSize",n)]:t,textColor:r,iconColor:s,extraTextColor:l}}=p.value;return{"--n-icon-size":i,"--n-font-size":t,"--n-bezier":o,"--n-text-color":r,"--n-icon-color":s,"--n-extra-text-color":l}})),z=i?d("empty",a((()=>{let n="";const{size:o}=e;return n+=o[0],n})),h,e):void 0;return{mergedClsPrefix:o,mergedRenderIcon:x,localizedDescription:a((()=>f.value||C.value.description)),cssVars:i?void 0:h,themeClass:null==z?void 0:z.themeClass,onRender:null==z?void 0:z.onRender}},render(){const{$slots:e,mergedClsPrefix:o,onRender:i}=this;return null==i||i(),n("div",{class:[`${o}-empty`,this.themeClass],style:this.cssVars},this.showIcon?n("div",{class:`${o}-empty__icon`},e.icon?e.icon():n(p,{clsPrefix:o},{default:this.mergedRenderIcon})):null,this.showDescription?n("div",{class:`${o}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?n("div",{class:`${o}-empty__extra`},e.extra()):null)}});export{C as _}; diff --git a/docs/assets/Exception-CX230KUQ.js b/docs/assets/Exception-CX230KUQ.js new file mode 100644 index 0000000..0a98d0f --- /dev/null +++ b/docs/assets/Exception-CX230KUQ.js @@ -0,0 +1 @@ +import{d as e,bM as t,a,a2 as o,bQ as r,o as s,c as n,w as i,b as d,e as u,bN as l,h as c,B as p}from"./index-BT0ZcDkn.js";import{_ as m}from"./Space-_SFqgYmP.js";import{_ as y}from"./Result-Du_g0nDe.js";import"./get-slot-BjAOOWF7.js";var f=(e=>(e[e.Processing=102]="Processing",e[e.OK=200]="OK",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.RequestTimeout=408]="RequestTimeout",e[e.InternalServerError=500]="InternalServerError",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e))(f||{});const v=e({__name:"Exception",props:{status:{default:f.NotFound},title:{},description:{}},setup(e){const f=e,v=t(),N=a(""),R=a("error");return o((()=>{try{R.value=(e=f.status)>=500||e>=400?"error":e>=300?"warning":e>=200?"success":"info",(e=>{console.log("status log==>",e)})(f.status)}catch(t){N.value=`${f.status} ${r(t)}`}var e})),(e,t)=>{const a=p,o=m,r=y;return s(),n(r,{class:"p-4",status:u(R),title:u(N),description:e.description,size:"large"},{footer:i((()=>[d(o,{justify:"center"},{default:i((()=>[d(a,{type:"primary",onClick:t[0]||(t[0]=e=>u(v).push(u(l).BASE_HOME))},{default:i((()=>t[2]||(t[2]=[c(" 返回主页 ")]))),_:1}),d(a,{onClick:t[1]||(t[1]=e=>u(v).back())},{default:i((()=>t[3]||(t[3]=[c(" 返回上一级 ")]))),_:1})])),_:1})])),_:1},8,["status","title","description"])}}});export{v as default}; diff --git a/docs/assets/FocusDetector-C7V71fRC.js b/docs/assets/FocusDetector-C7V71fRC.js new file mode 100644 index 0000000..d43cbb8 --- /dev/null +++ b/docs/assets/FocusDetector-C7V71fRC.js @@ -0,0 +1 @@ +import{a as e,l as t,b1 as l,a4 as n,d as i,i as o,bA as r,a2 as s,cR as u,aV as a,az as d,a8 as c,aZ as f,v as h,ai as m,b3 as v}from"./index-BT0ZcDkn.js";import{c as p,b as g}from"./Popover-3mPJ01hC.js";import{b}from"./next-frame-once-DiJwGkuW.js";function R(e){return e&-e}class y{constructor(e,t){this.l=e,this.min=t;const l=new Array(e+1);for(let n=0;nn)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*l;for(;e>0;)i+=t[e],e-=R(e);return i}getBound(e){let t=0,l=this.l;for(;l>t;){const n=Math.floor((t+l)/2),i=this.sum(n);if(i>e)l=n;else{if(!(i[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(i){const o=r();T.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:p,ssr:o}),s((()=>{const{defaultScrollIndex:e,defaultScrollKey:t}=i;null!=e?M({index:e}):null!=t&&M({key:t})}));let h=!1,m=!1;u((()=>{h=!1,m?M({top:B.value,left:R.value}):m=!0})),a((()=>{h=!0,m||(m=!0)}));const v=l((()=>{if(null==i.renderCol&&null==i.renderItemWithCols)return;if(0===i.columns.length)return;let e=0;return i.columns.forEach((t=>{e+=t.width})),e})),g=t((()=>{const e=new Map,{keyField:t}=i;return i.items.forEach(((l,n)=>{e.set(l[t],n)})),e})),{scrollLeftRef:R,listWidthRef:w}=function({columnsRef:i,renderColRef:o,renderItemWithColsRef:r}){const s=e(0),u=e(0),a=t((()=>{const e=i.value;if(0===e.length)return null;const t=new y(e.length,0);return e.forEach(((e,l)=>{t.add(l,e.width)})),t})),d=l((()=>{const e=a.value;return null!==e?Math.max(e.getBound(u.value)-1,0):0})),c=l((()=>{const e=a.value;return null!==e?Math.min(e.getBound(u.value+s.value)+1,i.value.length-1):0}));return n(S,{startIndexRef:d,endIndexRef:c,columnsRef:i,renderColRef:o,renderItemWithColsRef:r,getLeft:e=>{const t=a.value;return null!==t?t.sum(e):0}}),{listWidthRef:s,scrollLeftRef:u}}({columnsRef:d(i,"columns"),renderColRef:d(i,"renderCol"),renderItemWithColsRef:d(i,"renderItemWithCols")}),C=e(null),z=e(void 0),W=new Map,L=t((()=>{const{items:e,itemSize:t,keyField:l}=i,n=new y(e.length,t);return e.forEach(((e,t)=>{const i=e[l],o=W.get(i);void 0!==o&&n.add(t,o)})),n})),k=e(0),B=e(0),F=l((()=>Math.max(L.value.getBound(B.value-c(i.paddingTop))-1,0))),E=t((()=>{const{value:e}=z;if(void 0===e)return[];const{items:t,itemSize:l}=i,n=F.value,o=Math.min(n+Math.ceil(e/l+1),t.length-1),r=[];for(let i=n;i<=o;++i)r.push(t[i]);return r})),M=(e,t)=>{if("number"==typeof e)return void H(e,t,"auto");const{left:l,top:n,index:i,key:o,position:r,behavior:s,debounce:u=!0}=e;if(void 0!==l||void 0!==n)H(l,n,s);else if(void 0!==i)A(i,s,u);else if(void 0!==o){const e=g.value.get(o);void 0!==e&&A(e,s,u)}else"bottom"===r?H(0,Number.MAX_SAFE_INTEGER,s):"top"===r&&H(0,0,s)};let N,j=null;function A(e,t,l){const{value:n}=L,o=n.sum(e)+c(i.paddingTop);if(l){N=e,null!==j&&window.clearTimeout(j),j=window.setTimeout((()=>{N=void 0,j=null}),16);const{scrollTop:l,offsetHeight:i}=C.value;if(o>l){const r=n.get(e);o+r<=l+i||C.value.scrollTo({left:0,top:o+r-i,behavior:t})}else C.value.scrollTo({left:0,top:o,behavior:t})}else C.value.scrollTo({left:0,top:o,behavior:t})}function H(e,t,l){C.value.scrollTo({left:e,top:t,behavior:l})}const V=!("undefined"!=typeof document&&(void 0===I&&(I="matchMedia"in window&&window.matchMedia("(pointer:coarse)").matches),I));let O=!1;function P(){const{value:e}=C;null!=e&&(B.value=e.scrollTop,R.value=e.scrollLeft)}function X(e){let t=e;for(;null!==t;){if("none"===t.style.display)return!0;t=t.parentElement}return!1}return{listHeight:z,listStyle:{overflow:"auto"},keyToIndex:g,itemsStyle:t((()=>{const{itemResizable:e}=i,t=f(L.value.sum());return k.value,[i.itemsStyle,{boxSizing:"content-box",width:f(v.value),height:e?"":t,minHeight:e?t:"",paddingTop:f(i.paddingTop),paddingBottom:f(i.paddingBottom)}]})),visibleItemsStyle:t((()=>(k.value,{transform:`translateY(${f(L.value.sum(F.value))})`}))),viewportItems:E,listElRef:C,itemsElRef:e(null),scrollTo:M,handleListResize:function(e){if(h)return;if(X(e.target))return;if(null==i.renderCol&&null==i.renderItemWithCols){if(e.contentRect.height===z.value)return}else if(e.contentRect.height===z.value&&e.contentRect.width===w.value)return;z.value=e.contentRect.height,w.value=e.contentRect.width;const{onResize:t}=i;void 0!==t&&t(e)},handleListScroll:function(e){var t;null===(t=i.onScroll)||void 0===t||t.call(i,e),V&&O||P()},handleListWheel:function(e){var t;if(null===(t=i.onWheel)||void 0===t||t.call(i,e),V){const t=C.value;if(null!=t){if(0===e.deltaX){if(0===t.scrollTop&&e.deltaY<=0)return;if(t.scrollTop+t.offsetHeight>=t.scrollHeight&&e.deltaY>=0)return}e.preventDefault(),t.scrollTop+=e.deltaY/x(),t.scrollLeft+=e.deltaX/x(),P(),O=!0,b((()=>{O=!1}))}}},handleItemResize:function(e,t){var l,n,o;if(h)return;if(i.ignoreItemResize)return;if(X(t.target))return;const{value:r}=L,s=g.value.get(e),u=r.get(s),a=null!==(o=null===(n=null===(l=t.borderBoxSize)||void 0===l?void 0:l[0])||void 0===n?void 0:n.blockSize)&&void 0!==o?o:t.contentRect.height;if(a===u)return;0===a-i.itemSize?W.delete(e):W.set(e,a-i.itemSize);const d=a-u;if(0===d)return;r.add(s,d);const c=C.value;if(null!=c){if(void 0===N){const e=r.sum(s);c.scrollTop>e&&c.scrollBy(0,d)}else if(sc.scrollTop+c.offsetHeight&&c.scrollBy(0,d)}P()}k.value++}}},render(){const{itemResizable:e,keyField:t,keyToIndex:l,visibleItemsTag:n}=this;return h(v,{onResize:this.handleListResize},{default:()=>{var i,o;return h("div",m(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[0!==this.items.length?h("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[h(n,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:n,renderItemWithCols:i}=this;return this.viewportItems.map((o=>{const r=o[t],s=l.get(r),u=null!=n?h(C,{index:s,item:o}):void 0,a=null!=i?h(C,{index:s,item:o}):void 0,d=this.$slots.default({item:o,renderedCols:u,renderedItemWithCols:a,index:s})[0];return e?h(v,{key:r,onResize:e=>this.handleItemResize(r,e)},{default:()=>d}):(d.key=r,d)}))}})]):null===(o=(i=this.$slots).empty)||void 0===o?void 0:o.call(i)])}})}}),W=i({props:{onFocus:Function,onBlur:Function},setup:e=>()=>h("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})});export{W as F,z as V}; diff --git a/docs/assets/FormItem-CZeE-Hc9.js b/docs/assets/FormItem-CZeE-Hc9.js new file mode 100644 index 0000000..153d2e4 --- /dev/null +++ b/docs/assets/FormItem-CZeE-Hc9.js @@ -0,0 +1 @@ +import{i as e,ak as r,a0 as n,aL as t,z as i,Q as a,y as o,au as l,C as s,d as u,D as d,aM as f,a as c,a4 as p,v as g,aN as m,l as h,aO as v,aP as b,aQ as y,A as w,az as k,aR as x,aS as q,a2 as F,Y as O,G as P,T as $,x as S,aK as j}from"./index-BT0ZcDkn.js";function A(i,a,o){var l;const s=e(i,null);if(null===s)return;const u=null===(l=r())||void 0===l?void 0:l.proxy;function d(e,r){if(!s)return;const n=s[a];void 0!==r&&function(e,r){e[r]||(e[r]=[]);e[r].splice(e[r].findIndex((e=>e===u)),1)}(n,r),void 0!==e&&function(e,r){e[r]||(e[r]=[]);~e[r].findIndex((e=>e===u))||e[r].push(u)}(n,e)}n(o,d),d(o.value),t((()=>{d(void 0,o.value)}))}const R=i("form",[a("inline","\n width: 100%;\n display: inline-flex;\n align-items: flex-start;\n align-content: space-around;\n ",[i("form-item",{width:"auto",marginRight:"18px"},[o("&:last-child",{marginRight:0})])])]),E=l("n-form"),_=l("n-form-item-insts");var z=function(e,r,n,t){return new(n||(n=Promise))((function(i,a){function o(e){try{s(t.next(e))}catch(r){a(r)}}function l(e){try{s(t.throw(e))}catch(r){a(r)}}function s(e){var r;e.done?i(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,l)}s((t=t.apply(e,r||[])).next())}))};const C=u({name:"Form",props:Object.assign(Object.assign({},s.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>{e.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),setup(e){const{mergedClsPrefixRef:r}=d(e);s("Form","-form",R,f,e,r);const n={},t=c(void 0);p(E,{props:e,maxChildLabelWidthRef:t,deriveMaxChildLabelWidth:e=>{const r=t.value;(void 0===r||e>=r)&&(t.value=e)}}),p(_,{formItems:n});const i={validate:function(e){return z(this,arguments,void 0,(function*(e,r=()=>!0){return yield new Promise(((t,i)=>{const a=[];for(const e of m(n)){const t=n[e];for(const e of t)e.path&&a.push(e.internalValidate(null,r))}Promise.all(a).then((r=>{const n=r.some((e=>!e.valid)),a=[],o=[];r.forEach((e=>{var r,n;(null===(r=e.errors)||void 0===r?void 0:r.length)&&a.push(e.errors),(null===(n=e.warnings)||void 0===n?void 0:n.length)&&o.push(e.warnings)})),e&&e(a.length?a:void 0,{warnings:o.length?o:void 0}),n?i(a.length?a:void 0):t({warnings:o.length?o:void 0})}))}))}))},restoreValidation:function(){for(const e of m(n)){const r=n[e];for(const e of r)e.restoreValidation()}}};return Object.assign(i,{mergedClsPrefix:r})},render(){const{mergedClsPrefix:e}=this;return g("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function M(){return M=Object.assign?Object.assign.bind():function(e){for(var r=1;r1?r-1:0),t=1;t=a)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(r){return"[Circular]"}break;default:return e}})):e}function Y(e,r){return null==e||(!("array"!==r||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(r)||"string"!=typeof e||e))}function H(e,r,n){var t=0,i=e.length;!function a(o){if(o&&o.length)n(o);else{var l=t;t+=1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,ee=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,re={integer:function(e){return re.number(e)&&parseInt(e,10)===e},float:function(e){return re.number(e)&&!re.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(r){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!re.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(X)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(K)return K;var e="[a-fA-F\\d:]",r=function(r){return r&&r.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",t="[a-fA-F\\d]{1,4}",i=("\n(?:\n(?:"+t+":){7}(?:"+t+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+t+":){6}(?:"+n+"|:"+t+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+t+":){5}(?::"+n+"|(?::"+t+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+t+":){4}(?:(?::"+t+"){0,1}:"+n+"|(?::"+t+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+t+":){3}(?:(?::"+t+"){0,2}:"+n+"|(?::"+t+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+t+":){2}(?:(?::"+t+"){0,3}:"+n+"|(?::"+t+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+t+":){1}(?:(?::"+t+"){0,4}:"+n+"|(?::"+t+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+t+"){0,5}:"+n+"|(?::"+t+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),o=new RegExp("^"+n+"$"),l=new RegExp("^"+i+"$"),s=function(e){return e&&e.exact?a:new RegExp("(?:"+r(e)+n+r(e)+")|(?:"+r(e)+i+r(e)+")","g")};s.v4=function(e){return e&&e.exact?o:new RegExp(""+r(e)+n+r(e),"g")},s.v6=function(e){return e&&e.exact?l:new RegExp(""+r(e)+i+r(e),"g")};var u=s.v4().source,d=s.v6().source;return K=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+u+"|"+d+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(ee)}},ne="enum",te={required:U,whitespace:function(e,r,n,t,i){(/^\s+$/.test(r)||""===r)&&t.push(I(i.messages.whitespace,e.fullField))},type:function(e,r,n,t,i){if(e.required&&void 0===r)U(e,r,n,t,i);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?re[a](r)||t.push(I(i.messages.types[a],e.fullField,e.type)):a&&typeof r!==e.type&&t.push(I(i.messages.types[a],e.fullField,e.type))}},range:function(e,r,n,t,i){var a="number"==typeof e.len,o="number"==typeof e.min,l="number"==typeof e.max,s=r,u=null,d="number"==typeof r,f="string"==typeof r,c=Array.isArray(r);if(d?u="number":f?u="string":c&&(u="array"),!u)return!1;c&&(s=r.length),f&&(s=r.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?s!==e.len&&t.push(I(i.messages[u].len,e.fullField,e.len)):o&&!l&&se.max?t.push(I(i.messages[u].max,e.fullField,e.max)):o&&l&&(se.max)&&t.push(I(i.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,r,n,t,i){e[ne]=Array.isArray(e[ne])?e[ne]:[],-1===e[ne].indexOf(r)&&t.push(I(i.messages[ne],e.fullField,e[ne].join(", ")))},pattern:function(e,r,n,t,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(r)||t.push(I(i.messages.pattern.mismatch,e.fullField,r,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(r)||t.push(I(i.messages.pattern.mismatch,e.fullField,r,e.pattern))}}},ie=function(e,r,n,t,i){var a=e.type,o=[];if(e.required||!e.required&&t.hasOwnProperty(e.field)){if(Y(r,a)&&!e.required)return n();te.required(e,r,t,o,i,a),Y(r,a)||te.type(e,r,t,o,i)}n(o)},ae={string:function(e,r,n,t,i){var a=[];if(e.required||!e.required&&t.hasOwnProperty(e.field)){if(Y(r,"string")&&!e.required)return n();te.required(e,r,t,a,i,"string"),Y(r,"string")||(te.type(e,r,t,a,i),te.range(e,r,t,a,i),te.pattern(e,r,t,a,i),!0===e.whitespace&&te.whitespace(e,r,t,a,i))}n(a)},method:function(e,r,n,t,i){var a=[];if(e.required||!e.required&&t.hasOwnProperty(e.field)){if(Y(r)&&!e.required)return n();te.required(e,r,t,a,i),void 0!==r&&te.type(e,r,t,a,i)}n(a)},number:function(e,r,n,t,i){var a=[];if(e.required||!e.required&&t.hasOwnProperty(e.field)){if(""===r&&(r=void 0),Y(r)&&!e.required)return n();te.required(e,r,t,a,i),void 0!==r&&(te.type(e,r,t,a,i),te.range(e,r,t,a,i))}n(a)},boolean:function(e,r,n,t,i){var a=[];if(e.required||!e.required&&t.hasOwnProperty(e.field)){if(Y(r)&&!e.required)return n();te.required(e,r,t,a,i),void 0!==r&&te.type(e,r,t,a,i)}n(a)},regexp:function(e,r,n,t,i){var a=[];if(e.required||!e.required&&t.hasOwnProperty(e.field)){if(Y(r)&&!e.required)return n();te.required(e,r,t,a,i),Y(r)||te.type(e,r,t,a,i)}n(a)},integer:function(e,r,n,t,i){var a=[];if(e.required||!e.required&&t.hasOwnProperty(e.field)){if(Y(r)&&!e.required)return n();te.required(e,r,t,a,i),void 0!==r&&(te.type(e,r,t,a,i),te.range(e,r,t,a,i))}n(a)},float:function(e,r,n,t,i){var a=[];if(e.required||!e.required&&t.hasOwnProperty(e.field)){if(Y(r)&&!e.required)return n();te.required(e,r,t,a,i),void 0!==r&&(te.type(e,r,t,a,i),te.range(e,r,t,a,i))}n(a)},array:function(e,r,n,t,i){var a=[];if(e.required||!e.required&&t.hasOwnProperty(e.field)){if(null==r&&!e.required)return n();te.required(e,r,t,a,i,"array"),null!=r&&(te.type(e,r,t,a,i),te.range(e,r,t,a,i))}n(a)},object:function(e,r,n,t,i){var a=[];if(e.required||!e.required&&t.hasOwnProperty(e.field)){if(Y(r)&&!e.required)return n();te.required(e,r,t,a,i),void 0!==r&&te.type(e,r,t,a,i)}n(a)},enum:function(e,r,n,t,i){var a=[];if(e.required||!e.required&&t.hasOwnProperty(e.field)){if(Y(r)&&!e.required)return n();te.required(e,r,t,a,i),void 0!==r&&te.enum(e,r,t,a,i)}n(a)},pattern:function(e,r,n,t,i){var a=[];if(e.required||!e.required&&t.hasOwnProperty(e.field)){if(Y(r,"string")&&!e.required)return n();te.required(e,r,t,a,i),Y(r,"string")||te.pattern(e,r,t,a,i)}n(a)},date:function(e,r,n,t,i){var a=[];if(e.required||!e.required&&t.hasOwnProperty(e.field)){if(Y(r,"date")&&!e.required)return n();var o;if(te.required(e,r,t,a,i),!Y(r,"date"))o=r instanceof Date?r:new Date(r),te.type(e,o,t,a,i),o&&te.range(e,o.getTime(),t,a,i)}n(a)},url:ie,hex:ie,email:ie,required:function(e,r,n,t,i){var a=[],o=Array.isArray(r)?"array":typeof r;te.required(e,r,t,a,i,o),n(a)},any:function(e,r,n,t,i){var a=[];if(e.required||!e.required&&t.hasOwnProperty(e.field)){if(Y(r)&&!e.required)return n();te.required(e,r,t,a,i)}n(a)}};function oe(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var le=oe(),se=function(){function e(e){this.rules=null,this._messages=le,this.define(e)}var r=e.prototype;return r.define=function(e){var r=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var t=e[n];r.rules[n]=Array.isArray(t)?t:[t]}))},r.messages=function(e){return e&&(this._messages=G(oe(),e)),this._messages},r.validate=function(r,n,t){var i=this;void 0===n&&(n={}),void 0===t&&(t=function(){});var a=r,o=n,l=t;if("function"==typeof o&&(l=o,o={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,a),Promise.resolve(a);if(o.messages){var s=this.messages();s===le&&(s=oe()),G(s,o.messages),o.messages=s}else o.messages=this.messages();var u={};(o.keys||Object.keys(this.rules)).forEach((function(e){var n=i.rules[e],t=a[e];n.forEach((function(n){var o=n;"function"==typeof o.transform&&(a===r&&(a=M({},a)),t=a[e]=o.transform(t)),(o="function"==typeof o?{validator:o}:M({},o)).validator=i.getValidationMethod(o),o.validator&&(o.field=e,o.fullField=o.fullField||e,o.type=i.getType(o),u[e]=u[e]||[],u[e].push({rule:o,value:t,source:a,field:e}))}))}));var d={};return Z(u,o,(function(r,n){var t,i=r.rule,l=!("object"!==i.type&&"array"!==i.type||"object"!=typeof i.fields&&"object"!=typeof i.defaultField);function s(e,r){return M({},r,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function u(t){void 0===t&&(t=[]);var u=Array.isArray(t)?t:[t];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==i.message&&(u=[].concat(i.message));var f=u.map(Q(i,a));if(o.first&&f.length)return d[i.field]=1,n(f);if(l){if(i.required&&!r.value)return void 0!==i.message?f=[].concat(i.message).map(Q(i,a)):o.error&&(f=[o.error(i,I(o.messages.required,i.field))]),n(f);var c={};i.defaultField&&Object.keys(r.value).map((function(e){c[e]=i.defaultField})),c=M({},c,r.rule.fields);var p={};Object.keys(c).forEach((function(e){var r=c[e],n=Array.isArray(r)?r:[r];p[e]=n.map(s.bind(null,e))}));var g=new e(p);g.messages(o.messages),r.rule.options&&(r.rule.options.messages=o.messages,r.rule.options.error=o.error),g.validate(r.value,r.rule.options||o,(function(e){var r=[];f&&f.length&&r.push.apply(r,f),e&&e.length&&r.push.apply(r,e),n(r.length?r:null)}))}else n(f)}if(l=l&&(i.required||!i.required&&r.value),i.field=r.field,i.asyncValidator)t=i.asyncValidator(i,r.value,u,r.source,o);else if(i.validator){try{t=i.validator(i,r.value,u,r.source,o)}catch(f){null==console.error||console.error(f),o.suppressValidatorError||setTimeout((function(){throw f}),0),u(f.message)}!0===t?u():!1===t?u("function"==typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):t instanceof Array?u(t):t instanceof Error&&u(t.message)}t&&t.then&&t.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var r,n,t=[],i={},o=0;o{try{const t=e(...n);return!r&&("boolean"==typeof t||t instanceof Error||Array.isArray(t))||(null==t?void 0:t.then)?t:(void 0===t||j("form-item/validate",`You return a ${typeof t} typed value in the validator method, which is not recommended. Please use ${r?"`Promise`":"`boolean`, `Error` or `Promise`"} typed value instead.`),!0)}catch(t){return j("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),void console.error(t)}}}const me=u({name:"FormItem",props:ce,setup(r){A(_,"formItems",k(r,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:i}=d(r),a=e(E,null),o=function(r){const n=e(E,null);return{mergedSize:h((()=>void 0!==r.size?r.size:void 0!==(null==n?void 0:n.props.size)?n.props.size:"medium"))}}(r),l=function(r){const n=e(E,null),t=h((()=>{const{labelPlacement:e}=r;return void 0!==e?e:(null==n?void 0:n.props.labelPlacement)?n.props.labelPlacement:"top"})),i=h((()=>"left"===t.value&&("auto"===r.labelWidth||"auto"===(null==n?void 0:n.props.labelWidth)))),a=h((()=>{if("top"===t.value)return;const{labelWidth:e}=r;if(void 0!==e&&"auto"!==e)return v(e);if(i.value){const e=null==n?void 0:n.maxChildLabelWidthRef.value;return void 0!==e?v(e):void 0}return void 0!==(null==n?void 0:n.props.labelWidth)?v(n.props.labelWidth):void 0})),o=h((()=>{const{labelAlign:e}=r;return e||((null==n?void 0:n.props.labelAlign)?n.props.labelAlign:void 0)})),l=h((()=>{var e;return[null===(e=r.labelProps)||void 0===e?void 0:e.style,r.labelStyle,{width:a.value}]})),s=h((()=>{const{showRequireMark:e}=r;return void 0!==e?e:null==n?void 0:n.props.showRequireMark})),u=h((()=>{const{requireMarkPlacement:e}=r;return void 0!==e?e:(null==n?void 0:n.props.requireMarkPlacement)||"right"})),d=c(!1),f=c(!1),p=h((()=>{const{validationStatus:e}=r;return void 0!==e?e:d.value?"error":f.value?"warning":void 0})),g=h((()=>{const{showFeedback:e}=r;return void 0!==e?e:void 0===(null==n?void 0:n.props.showFeedback)||n.props.showFeedback})),m=h((()=>{const{showLabel:e}=r;return void 0!==e?e:void 0===(null==n?void 0:n.props.showLabel)||n.props.showLabel}));return{validationErrored:d,validationWarned:f,mergedLabelStyle:l,mergedLabelPlacement:t,mergedLabelAlign:o,mergedShowRequireMark:s,mergedRequireMarkPlacement:u,mergedValidationStatus:p,mergedShowFeedback:g,mergedShowLabel:m,isAutoLabelWidth:i}}(r),{validationErrored:u,validationWarned:g}=l,{mergedRequired:m,mergedRules:y}=function(r){const n=e(E,null),t=h((()=>{const{rulePath:e}=r;if(void 0!==e)return e;const{path:n}=r;return void 0!==n?n:void 0})),i=h((()=>{const e=[],{rule:i}=r;if(void 0!==i&&(Array.isArray(i)?e.push(...i):e.push(i)),n){const{rules:r}=n.props,{value:i}=t;if(void 0!==r&&void 0!==i){const n=b(r,i);void 0!==n&&(Array.isArray(n)?e.push(...n):e.push(n))}}return e})),a=h((()=>i.value.some((e=>e.required)))),o=h((()=>a.value||r.required));return{mergedRules:i,mergedRequired:o}}(r),{mergedSize:w}=o,{mergedLabelPlacement:$,mergedLabelAlign:S,mergedRequireMarkPlacement:j}=l,R=c([]),z=c(x()),C=a?k(a.props,"disabled"):c(!1),M=s("Form","-form-item",de,f,r,t);function V(){R.value=[],u.value=!1,g.value=!1,r.feedback&&(z.value=x())}n(k(r,"path"),(()=>{r.ignorePathChange||V()}));const L=(...e)=>fe(this,[...e],void 0,(function*(e=null,n=()=>!0,t={suppressWarning:!0}){const{path:i}=r;t?t.first||(t.first=r.first):t={};const{value:o}=y,l=a?b(a.props.model,i||""):void 0,s={},d={},f=(e?o.filter((r=>Array.isArray(r.trigger)?r.trigger.includes(e):r.trigger===e)):o).filter(n).map(((e,r)=>{const n=Object.assign({},e);if(n.validator&&(n.validator=ge(n.validator,!1)),n.asyncValidator&&(n.asyncValidator=ge(n.asyncValidator,!0)),n.renderMessage){const e=`__renderMessage__${r}`;d[e]=n.message,n.message=e,s[e]=n.renderMessage}return n})),c=f.filter((e=>"warning"!==e.level)),p=f.filter((e=>"warning"===e.level)),m={valid:!0,errors:void 0,warnings:void 0};if(!f.length)return m;const h=null!=i?i:"__n_no_path__",v=new se({[h]:c}),w=new se({[h]:p}),{validateMessages:k}=(null==a?void 0:a.props)||{};k&&(v.messages(k),w.messages(k));const x=e=>{R.value=e.map((e=>{const r=(null==e?void 0:e.message)||"";return{key:r,render:()=>r.startsWith("__renderMessage__")?s[r]():r}})),e.forEach((e=>{var r;(null===(r=e.message)||void 0===r?void 0:r.startsWith("__renderMessage__"))&&(e.message=d[e.message])}))};if(c.length){const e=yield new Promise((e=>{v.validate({[h]:l},t,e)}));(null==e?void 0:e.length)&&(m.valid=!1,m.errors=e,x(e))}if(p.length&&!m.errors){const e=yield new Promise((e=>{w.validate({[h]:l},t,e)}));(null==e?void 0:e.length)&&(x(e),m.warnings=e)}return m.errors||m.warnings?(u.value=!!m.errors,g.value=!!m.warnings):V(),m}));p(q,{path:k(r,"path"),disabled:C,mergedSize:o.mergedSize,mergedValidationStatus:l.mergedValidationStatus,restoreValidation:V,handleContentBlur:function(){L("blur")},handleContentChange:function(){L("change")},handleContentFocus:function(){L("focus")},handleContentInput:function(){L("input")}});const W={validate:function(e,r){return fe(this,void 0,void 0,(function*(){let n,t,i,a;return"string"==typeof e?(n=e,t=r):null!==e&&"object"==typeof e&&(n=e.trigger,t=e.callback,i=e.shouldRuleBeApplied,a=e.options),yield new Promise(((e,r)=>{L(n,i,a).then((({valid:n,errors:i,warnings:a})=>{n?(t&&t(void 0,{warnings:a}),e({warnings:a})):(t&&t(i,{warnings:a}),r(i))}))}))}))},restoreValidation:V,internalValidate:L},B=c(null);F((()=>{if(!l.isAutoLabelWidth.value)return;const e=B.value;if(null!==e){const r=e.style.whiteSpace;e.style.whiteSpace="nowrap",e.style.width="",null==a||a.deriveMaxChildLabelWidth(Number(getComputedStyle(e).width.slice(0,-2))),e.style.whiteSpace=r}}));const D=h((()=>{var e;const{value:r}=w,{value:n}=$,t="top"===n?"vertical":"horizontal",{common:{cubicBezierEaseInOut:i},self:{labelTextColor:a,asteriskColor:o,lineHeight:l,feedbackTextColor:s,feedbackTextColorWarning:u,feedbackTextColorError:d,feedbackPadding:f,labelFontWeight:c,[O("labelHeight",r)]:p,[O("blankHeight",r)]:g,[O("feedbackFontSize",r)]:m,[O("feedbackHeight",r)]:h,[O("labelPadding",t)]:v,[O("labelTextAlign",t)]:b,[O(O("labelFontSize",n),r)]:y}}=M.value;let k=null!==(e=S.value)&&void 0!==e?e:b;"top"===n&&(k="right"===k?"flex-end":"flex-start");return{"--n-bezier":i,"--n-line-height":l,"--n-blank-height":g,"--n-label-font-size":y,"--n-label-text-align":k,"--n-label-height":p,"--n-label-padding":v,"--n-label-font-weight":c,"--n-asterisk-color":o,"--n-label-text-color":a,"--n-feedback-padding":f,"--n-feedback-font-size":m,"--n-feedback-height":h,"--n-feedback-text-color":s,"--n-feedback-text-color-warning":u,"--n-feedback-text-color-error":d}})),T=i?P("form-item",h((()=>{var e;return`${w.value[0]}${$.value[0]}${(null===(e=S.value)||void 0===e?void 0:e[0])||""}`})),D,r):void 0,N=h((()=>"left"===$.value&&"left"===j.value&&"left"===S.value));return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:B,mergedClsPrefix:t,mergedRequired:m,feedbackId:z,renderExplains:R,reverseColSpace:N},l),o),W),{cssVars:i?void 0:D,themeClass:null==T?void 0:T.themeClass,onRender:null==T?void 0:T.onRender})},render(){const{$slots:e,mergedClsPrefix:r,mergedShowLabel:n,mergedShowRequireMark:t,mergedRequireMarkPlacement:i,onRender:a}=this,o=void 0!==t?t:this.mergedRequired;null==a||a();return g("div",{class:[`${r}-form-item`,this.themeClass,`${r}-form-item--${this.mergedSize}-size`,`${r}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${r}-form-item--auto-label-width`,!n&&`${r}-form-item--no-label`],style:this.cssVars},n&&(()=>{const e=this.$slots.label?this.$slots.label():this.label;if(!e)return null;const n=g("span",{class:`${r}-form-item-label__text`},e),t=o?g("span",{class:`${r}-form-item-label__asterisk`},"left"!==i?" *":"* "):"right-hanging"===i&&g("span",{class:`${r}-form-item-label__asterisk-placeholder`}," *"),{labelProps:a}=this;return g("label",Object.assign({},a,{class:[null==a?void 0:a.class,`${r}-form-item-label`,`${r}-form-item-label--${i}-mark`,this.reverseColSpace&&`${r}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),"left"===i?[t,n]:[n,t])})(),g("div",{class:[`${r}-form-item-blank`,this.mergedValidationStatus&&`${r}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?g("div",{key:this.feedbackId,style:this.feedbackStyle,class:[`${r}-form-item-feedback-wrapper`,this.feedbackClass]},g($,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:n}=this;return S(e.feedback,(e=>{var t;const{feedback:i}=this,a=e||i?g("div",{key:"__feedback__",class:`${r}-form-item-feedback__line`},e||i):this.renderExplains.length?null===(t=this.renderExplains)||void 0===t?void 0:t.map((({key:e,render:n})=>g("div",{key:e,class:`${r}-form-item-feedback__line`},n()))):null;return a?g("div","warning"===n?{key:"controlled-warning",class:`${r}-form-item-feedback ${r}-form-item-feedback--warning`}:"error"===n?{key:"controlled-error",class:`${r}-form-item-feedback ${r}-form-item-feedback--error`}:"success"===n?{key:"controlled-success",class:`${r}-form-item-feedback ${r}-form-item-feedback--success`}:{key:"controlled-default",class:`${r}-form-item-feedback`},a):null}))}})):null)}});export{me as N,C as a,ce as b,pe as f}; diff --git a/docs/assets/Forward-xWz6l688.js b/docs/assets/Forward-xWz6l688.js new file mode 100644 index 0000000..ec36dec --- /dev/null +++ b/docs/assets/Forward-xWz6l688.js @@ -0,0 +1 @@ +import{d as r,v as e}from"./index-BT0ZcDkn.js";const o=r({name:"Backward",render:()=>e("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}),n=r({name:"FastBackward",render:()=>e("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},e("g",{fill:"currentColor","fill-rule":"nonzero"},e("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}),l=r({name:"FastForward",render:()=>e("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},e("g",{fill:"currentColor","fill-rule":"nonzero"},e("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}),C=r({name:"Forward",render:()=>e("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))});export{o as B,n as F,C as a,l as b}; diff --git a/docs/assets/Grid-qb506I7V.js b/docs/assets/Grid-qb506I7V.js new file mode 100644 index 0000000..52d6524 --- /dev/null +++ b/docs/assets/Grid-qb506I7V.js @@ -0,0 +1 @@ +import{bG as e,cV as t,l as s,a as r,aL as i,au as o,d as a,i as l,aZ as n,v as p,aN as d,ak as u,D as f,b1 as v,a2 as c,a4 as h,az as m,bW as S,ai as y,b3 as g,a9 as b,bI as w}from"./index-BT0ZcDkn.js";import{b as $}from"./next-frame-once-DiJwGkuW.js";import{g as x}from"./get-slot-BjAOOWF7.js";function R(e,t){var s;if(null==e)return;const r=function(e){if("number"==typeof e)return{"":e.toString()};const t={};return e.split(/ +/).forEach((e=>{if(""===e)return;const[s,r]=e.split(":");void 0===r?t[""]=s:t[s]=r})),t}(e);if(void 0===t)return r[""];if("string"==typeof t)return null!==(s=r[t])&&void 0!==s?s:r[""];if(Array.isArray(t)){for(let e=t.length-1;e>=0;--e){const s=t[e];if(s in r)return r[s]}return r[""]}{let e,s=-1;return Object.keys(r).forEach((i=>{const o=Number(i);!Number.isNaN(o)&&t>=o&&o>=s&&(s=o,e=r[i])})),e}}const G={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};const N={};const C=o("n-grid"),E=1,_={span:{type:[Number,String],default:E},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},D=d(_),B=a({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:_,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:r,overflowRef:i,layoutShiftDisabledRef:o}=l(C),a=u();return{overflow:i,itemStyle:r,layoutShiftDisabled:o,mergedXGap:s((()=>n(t.value||0))),deriveStyle:()=>{e.value;const{privateSpan:s=E,privateShow:r=!0,privateColStart:i,privateOffset:o=0}=a.vnode.props,{value:l}=t,p=n(l||0);return{display:r?"":"none",gridColumn:`${null!=i?i:`span ${s}`} / span ${s}`,marginLeft:o?`calc((100% - (${s} - 1) * ${p}) / ${s} * ${o} + ${p} * ${o})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:e,offset:t,mergedXGap:s}=this;return p("div",{style:{gridColumn:`span ${e} / span ${e}`,marginLeft:t?`calc((100% - (${e} - 1) * ${s}) / ${e} * ${t} + ${s} * ${t})`:""}},this.$slots)}return p("div",{style:[this.itemStyle,this.deriveStyle()]},null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e,{overflow:this.overflow}))}}),L={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},O="__ssr__",j=a({name:"Grid",inheritAttrs:!1,props:{layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:24},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},setup(e){const{mergedClsPrefixRef:o,mergedBreakpointsRef:a}=f(e),l=/^\d+$/,p=r(void 0),d=function(e=G){if(!t)return s((()=>[]));if("function"!=typeof window.matchMedia)return s((()=>[]));const o=r({}),a=Object.keys(e),l=(e,t)=>{e.matches?o.value[t]=!0:o.value[t]=!1};return a.forEach((t=>{const s=e[t];let r,i;void 0===N[s]?(r=window.matchMedia(`(min-width: ${s}px)`),r.addEventListener?r.addEventListener("change",(e=>{i.forEach((s=>{s(e,t)}))})):r.addListener&&r.addListener((e=>{i.forEach((s=>{s(e,t)}))})),i=new Set,N[s]={mql:r,cbs:i}):(r=N[s].mql,i=N[s].cbs),i.add(l),r.matches&&i.forEach((e=>{e(r,t)}))})),i((()=>{a.forEach((t=>{const{cbs:s}=N[e[t]];s.has(l)&&s.delete(l)}))})),s((()=>{const{value:e}=o;return a.filter((t=>e[t]))}))}((null==a?void 0:a.value)||L),u=v((()=>!!e.itemResponsive||(!l.test(e.cols.toString())||(!l.test(e.xGap.toString())||!l.test(e.yGap.toString()))))),y=s((()=>{if(u.value)return"self"===e.responsive?p.value:d.value})),g=v((()=>{var t;return null!==(t=Number(R(e.cols.toString(),y.value)))&&void 0!==t?t:24})),b=v((()=>R(e.xGap.toString(),y.value))),w=v((()=>R(e.yGap.toString(),y.value))),x=e=>{p.value=e.contentRect.width},E=e=>{$(x,e)},_=r(!1),D=s((()=>{if("self"===e.responsive)return E})),B=r(!1),j=r();return c((()=>{const{value:e}=j;e&&e.hasAttribute(O)&&(e.removeAttribute(O),B.value=!0)})),h(C,{layoutShiftDisabledRef:m(e,"layoutShiftDisabled"),isSsrRef:B,itemStyleRef:m(e,"itemStyle"),xGapRef:b,overflowRef:_}),{isSsr:!S,contentEl:j,mergedClsPrefix:o,style:s((()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:n(e.xGap),rowGap:n(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${g.value}, minmax(0, 1fr))`,columnGap:n(b.value),rowGap:n(w.value)})),isResponsive:u,responsiveQuery:y,responsiveCols:g,handleResize:D,overflow:_}},render(){if(this.layoutShiftDisabled)return p("div",y({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const t=()=>{var t,s,r,i,o,a,l;this.overflow=!1;const n=b(x(this)),d=[],{collapsed:u,collapsedRows:f,responsiveCols:v,responsiveQuery:c}=this;n.forEach((t=>{var s,r,i,o,a;if(!0!==(null===(s=null==t?void 0:t.type)||void 0===s?void 0:s.__GRID_ITEM__))return;if(function(t){var s;const r=null===(s=t.dirs)||void 0===s?void 0:s.find((({dir:t})=>t===e));return!(!r||!1!==r.value)}(t)){const e=w(t);return e.props?e.props.privateShow=!1:e.props={privateShow:!1},void d.push({child:e,rawChildSpan:0})}t.dirs=(null===(r=t.dirs)||void 0===r?void 0:r.filter((({dir:t})=>t!==e)))||null,0===(null===(i=t.dirs)||void 0===i?void 0:i.length)&&(t.dirs=null);const l=w(t),n=Number(null!==(a=R(null===(o=l.props)||void 0===o?void 0:o.span,c))&&void 0!==a?a:1);0!==n&&d.push({child:l,rawChildSpan:n})}));let h=0;const m=null===(t=d[d.length-1])||void 0===t?void 0:t.child;if(null==m?void 0:m.props){const e=null===(s=m.props)||void 0===s?void 0:s.suffix;void 0!==e&&!1!==e&&(h=Number(null!==(i=R(null===(r=m.props)||void 0===r?void 0:r.span,c))&&void 0!==i?i:1),m.props.privateSpan=h,m.props.privateColStart=v+1-h,m.props.privateShow=null===(o=m.props.privateShow)||void 0===o||o)}let S=0,g=!1;for(const{child:e,rawChildSpan:p}of d){if(g&&(this.overflow=!0),!g){const t=Number(null!==(l=R(null===(a=e.props)||void 0===a?void 0:a.offset,c))&&void 0!==l?l:0),s=Math.min(p+t,v);if(e.props?(e.props.privateSpan=s,e.props.privateOffset=t):e.props={privateSpan:s,privateOffset:t},u){const e=S%v;s+e>v&&(S+=v-e),s+S+h>f*v?g=!0:S+=s}}g&&(e.props?!0!==e.props.privateShow&&(e.props.privateShow=!1):e.props={privateShow:!1})}return p("div",y({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[O]:this.isSsr||void 0},this.$attrs),d.map((({child:e})=>e)))};return this.isResponsive&&"self"===this.responsive?p(g,{onResize:this.handleResize},{default:t}):t()}});export{B as _,j as a,_ as b,D as g}; diff --git a/docs/assets/IframeContainer-BTKu5TDG.js b/docs/assets/IframeContainer-BTKu5TDG.js new file mode 100644 index 0000000..7eb4269 --- /dev/null +++ b/docs/assets/IframeContainer-BTKu5TDG.js @@ -0,0 +1 @@ +var e=Object.defineProperty,a=Object.defineProperties,t=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,i=(a,t,r)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[t]=r;import{bM as l,l as o,ah as u,dw as f,d as m,af as h,a as d,ag as c,o as p,p as g,b as w,w as v,g as b,s as y,e as k,ck as O,cu as P,dx as j,dy as I,H as L,O as _,aB as x,bG as F,c as R,q as M}from"./index-BT0ZcDkn.js";import{_ as C}from"./Spin-WJzlISCz.js";import"./use-compitable-CHcH6xDN.js";const E={class:"w-full h-full"},S=["src"],$=m({__name:"IframePage",props:h({iframeLink:{default:""}},{width:{default:0},widthModifiers:{},height:{default:0},heightModifiers:{}}),emits:["update:width","update:height"],setup(e){const a=d(),t=c(e,"width"),r=c(e,"height"),s=d(!0);function n(){s.value=!1}return(e,i)=>{const l=C;return p(),g("div",E,[w(l,{show:k(s)},{default:v((()=>[b("iframe",{ref_key:"frameRef",ref:a,src:e.iframeLink,style:y({width:`${t.value}px`,height:`${r.value}px`}),class:"rounded-2xl",onLoad:n},null,44,S)])),_:1},8,["show"])])}}}),q={key:0,class:"w-full h-full"},A=m((B=((e,a)=>{for(var t in a||(a={}))s.call(a,t)&&i(e,t,a[t]);if(r)for(var t of r(a))n.call(a,t)&&i(e,t,a[t]);return e})({},{name:"IframeLayout"}),a(B,t({__name:"IframeContainer",setup(e){const{getCanEmbedIFramePage:a}=O(),{getFramePages:t,hasRenderFrame:r,showIframe:s}=function(){const e=l(),{currentRoute:a}=e;function t(e){let a=[];for(const r of e){const{meta:{iframeLink:e}={},children:s}=r;e&&a.push(r),s&&s.length&&a.push(...t(s))}return a=f(a,"name"),a}return{hasRenderFrame:function(e){return a.value.name===e},getFramePages:o((()=>t(u(e.getRoutes())))),showIframe:function(e){return e.name===a.value.name},getAllFramePages:t}}(),n=o((()=>P(t).length>0)),i=j(),{height:m,width:h}=I(i);return(e,i)=>k(a)&&k(n)?(p(),g("div",q,[(p(!0),g(L,null,_(k(t),(e=>{var a,t;return p(),g(L,{key:e.path},[(null==(a=null==e?void 0:e.meta)?void 0:a.iframeLink)&&k(r)(e.name)?x((p(),R($,{key:0,height:k(m),width:k(h),"iframe-link":null==(t=null==e?void 0:e.meta)?void 0:t.iframeLink},null,8,["height","width","iframe-link"])),[[F,k(s)(e)]]):M("",!0)],64)})),128))])):M("",!0)}}))));var B;export{A as default}; diff --git a/docs/assets/Input-D2qMgPO1.js b/docs/assets/Input-D2qMgPO1.js new file mode 100644 index 0000000..f8872f9 --- /dev/null +++ b/docs/assets/Input-D2qMgPO1.js @@ -0,0 +1 @@ +import{d as e,v as n,ao as o,z as r,y as t,A as a,b5 as l,a3 as i,az as s,a_ as u,aI as c,N as d,a$ as h,au as p,a as v,a0 as f,i as g,l as b,aH as x,Q as w,U as m,C as y,D as C,cX as z,cY as A,ax as $,b1 as F,a2 as S,ak as B,a1 as k,a4 as P,F as R,Y as T,bs as E,G as _,x as D,av as M,H as I,b3 as L,an as W,aY as V,aD as O,aX as N}from"./index-BT0ZcDkn.js";import{u as j}from"./use-locale-CbMPSc0o.js";import{u as H}from"./use-merged-state-D7wGS6Km.js";const K=e({name:"Eye",render:()=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},n("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),n("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}),U=e({name:"EyeOff",render:()=>n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},n("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),n("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),n("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),n("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),n("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}),G=e({name:"ChevronDown",render:()=>n("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}),Y=o("clear",n("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},n("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},n("g",{fill:"currentColor","fill-rule":"nonzero"},n("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),X=r("base-clear","\n flex-shrink: 0;\n height: 1em;\n width: 1em;\n position: relative;\n",[t(">",[a("clear","\n font-size: var(--n-clear-size);\n height: 1em;\n width: 1em;\n cursor: pointer;\n color: var(--n-clear-color);\n transition: color .3s var(--n-bezier);\n display: flex;\n ",[t("&:hover","\n color: var(--n-clear-color-hover)!important;\n "),t("&:active","\n color: var(--n-clear-color-pressed)!important;\n ")]),a("placeholder","\n display: flex;\n "),a("clear, placeholder","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[l({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Z=e({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup:e=>(i("-base-clear",X,s(e,"clsPrefix")),{handleMouseDown(e){e.preventDefault()}}),render(){const{clsPrefix:e}=this;return n("div",{class:`${e}-base-clear`},n(u,null,{default:()=>{var o,r;return this.show?n("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},c(this.$slots.icon,(()=>[n(d,{clsPrefix:e},{default:()=>n(Y,null)})]))):n("div",{key:"icon",class:`${e}-base-clear__placeholder`},null===(r=(o=this.$slots).placeholder)||void 0===r?void 0:r.call(o))}}))}}),q=e({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup:(e,{slots:o})=>()=>{const{clsPrefix:r}=e;return n(h,{clsPrefix:r,class:`${r}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?n(Z,{clsPrefix:r,show:e.showClear,onClear:e.onClear},{placeholder:()=>n(d,{clsPrefix:r,class:`${r}-base-suffix__arrow`},{default:()=>c(o.default,(()=>[n(G,null)]))})}):null})}}),Q=p("n-input");function J(e){let n=0;for(const o of e)n++;return n}function ee(e){return""===e||null==e}const ne=e({name:"InputWordCount",setup(e,{slots:o}){const{mergedValueRef:r,maxlengthRef:t,mergedClsPrefixRef:a,countGraphemesRef:l}=g(Q),i=b((()=>{const{value:e}=r;return null===e||Array.isArray(e)?0:(l.value||J)(e)}));return()=>{const{value:e}=t,{value:l}=r;return n("span",{class:`${a.value}-input-word-count`},x(o.default,{value:null===l||Array.isArray(l)?"":l},(()=>[void 0===e?i.value:`${i.value} / ${e}`])))}}}),oe=r("input","\n max-width: 100%;\n cursor: text;\n line-height: 1.5;\n z-index: auto;\n outline: none;\n box-sizing: border-box;\n position: relative;\n display: inline-flex;\n border-radius: var(--n-border-radius);\n background-color: var(--n-color);\n transition: background-color .3s var(--n-bezier);\n font-size: var(--n-font-size);\n --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);\n",[a("input, textarea","\n overflow: hidden;\n flex-grow: 1;\n position: relative;\n "),a("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder","\n box-sizing: border-box;\n font-size: inherit;\n line-height: 1.5;\n font-family: inherit;\n border: none;\n outline: none;\n background-color: #0000;\n text-align: inherit;\n transition:\n -webkit-text-fill-color .3s var(--n-bezier),\n caret-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n text-decoration-color .3s var(--n-bezier);\n "),a("input-el, textarea-el","\n -webkit-appearance: none;\n scrollbar-width: none;\n width: 100%;\n min-width: 0;\n text-decoration-color: var(--n-text-decoration-color);\n color: var(--n-text-color);\n caret-color: var(--n-caret-color);\n background-color: transparent;\n ",[t("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb","\n width: 0;\n height: 0;\n display: none;\n "),t("&::placeholder","\n color: #0000;\n -webkit-text-fill-color: transparent !important;\n "),t("&:-webkit-autofill ~",[a("placeholder","display: none;")])]),w("round",[m("textarea","border-radius: calc(var(--n-height) / 2);")]),a("placeholder","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n overflow: hidden;\n color: var(--n-placeholder-color);\n ",[t("span","\n width: 100%;\n display: inline-block;\n ")]),w("textarea",[a("placeholder","overflow: visible;")]),m("autosize","width: 100%;"),w("autosize",[a("textarea-el, input-el","\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n ")]),r("input-wrapper","\n overflow: hidden;\n display: inline-flex;\n flex-grow: 1;\n position: relative;\n padding-left: var(--n-padding-left);\n padding-right: var(--n-padding-right);\n "),a("input-mirror","\n padding: 0;\n height: var(--n-height);\n line-height: var(--n-height);\n overflow: hidden;\n visibility: hidden;\n position: static;\n white-space: pre;\n pointer-events: none;\n "),a("input-el","\n padding: 0;\n height: var(--n-height);\n line-height: var(--n-height);\n ",[t("&[type=password]::-ms-reveal","display: none;"),t("+",[a("placeholder","\n display: flex;\n align-items: center; \n ")])]),m("textarea",[a("placeholder","white-space: nowrap;")]),a("eye","\n display: flex;\n align-items: center;\n justify-content: center;\n transition: color .3s var(--n-bezier);\n "),w("textarea","width: 100%;",[r("input-word-count","\n position: absolute;\n right: var(--n-padding-right);\n bottom: var(--n-padding-vertical);\n "),w("resizable",[r("input-wrapper","\n resize: vertical;\n min-height: var(--n-height);\n ")]),a("textarea-el, textarea-mirror, placeholder","\n height: 100%;\n padding-left: 0;\n padding-right: 0;\n padding-top: var(--n-padding-vertical);\n padding-bottom: var(--n-padding-vertical);\n word-break: break-word;\n display: inline-block;\n vertical-align: bottom;\n box-sizing: border-box;\n line-height: var(--n-line-height-textarea);\n margin: 0;\n resize: none;\n white-space: pre-wrap;\n scroll-padding-block-end: var(--n-padding-vertical);\n "),a("textarea-mirror","\n width: 100%;\n pointer-events: none;\n overflow: hidden;\n visibility: hidden;\n position: static;\n white-space: pre-wrap;\n overflow-wrap: break-word;\n ")]),w("pair",[a("input-el, placeholder","text-align: center;"),a("separator","\n display: flex;\n align-items: center;\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n white-space: nowrap;\n ",[r("icon","\n color: var(--n-icon-color);\n "),r("base-icon","\n color: var(--n-icon-color);\n ")])]),w("disabled","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n ",[a("border","border: var(--n-border-disabled);"),a("input-el, textarea-el","\n cursor: not-allowed;\n color: var(--n-text-color-disabled);\n text-decoration-color: var(--n-text-color-disabled);\n "),a("placeholder","color: var(--n-placeholder-color-disabled);"),a("separator","color: var(--n-text-color-disabled);",[r("icon","\n color: var(--n-icon-color-disabled);\n "),r("base-icon","\n color: var(--n-icon-color-disabled);\n ")]),r("input-word-count","\n color: var(--n-count-text-color-disabled);\n "),a("suffix, prefix","color: var(--n-text-color-disabled);",[r("icon","\n color: var(--n-icon-color-disabled);\n "),r("internal-icon","\n color: var(--n-icon-color-disabled);\n ")])]),m("disabled",[a("eye","\n color: var(--n-icon-color);\n cursor: pointer;\n ",[t("&:hover","\n color: var(--n-icon-color-hover);\n "),t("&:active","\n color: var(--n-icon-color-pressed);\n ")]),t("&:hover",[a("state-border","border: var(--n-border-hover);")]),w("focus","background-color: var(--n-color-focus);",[a("state-border","\n border: var(--n-border-focus);\n box-shadow: var(--n-box-shadow-focus);\n ")])]),a("border, state-border","\n box-sizing: border-box;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border-radius: inherit;\n border: var(--n-border);\n transition:\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n "),a("state-border","\n border-color: #0000;\n z-index: 1;\n "),a("prefix","margin-right: 4px;"),a("suffix","\n margin-left: 4px;\n "),a("suffix, prefix","\n transition: color .3s var(--n-bezier);\n flex-wrap: nowrap;\n flex-shrink: 0;\n line-height: var(--n-height);\n white-space: nowrap;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: var(--n-suffix-text-color);\n ",[r("base-loading","\n font-size: var(--n-icon-size);\n margin: 0 2px;\n color: var(--n-loading-color);\n "),r("base-clear","\n font-size: var(--n-icon-size);\n ",[a("placeholder",[r("base-icon","\n transition: color .3s var(--n-bezier);\n color: var(--n-icon-color);\n font-size: var(--n-icon-size);\n ")])]),t(">",[r("icon","\n transition: color .3s var(--n-bezier);\n color: var(--n-icon-color);\n font-size: var(--n-icon-size);\n ")]),r("base-icon","\n font-size: var(--n-icon-size);\n ")]),r("input-word-count","\n pointer-events: none;\n line-height: 1.5;\n font-size: .85em;\n color: var(--n-count-text-color);\n transition: color .3s var(--n-bezier);\n margin-left: 4px;\n font-variant: tabular-nums;\n "),["warning","error"].map((e=>w(`${e}-status`,[m("disabled",[r("base-loading",`\n color: var(--n-loading-color-${e})\n `),a("input-el, textarea-el",`\n caret-color: var(--n-caret-color-${e});\n `),a("state-border",`\n border: var(--n-border-${e});\n `),t("&:hover",[a("state-border",`\n border: var(--n-border-hover-${e});\n `)]),t("&:focus",`\n background-color: var(--n-color-focus-${e});\n `,[a("state-border",`\n box-shadow: var(--n-box-shadow-focus-${e});\n border: var(--n-border-focus-${e});\n `)]),w("focus",`\n background-color: var(--n-color-focus-${e});\n `,[a("state-border",`\n box-shadow: var(--n-box-shadow-focus-${e});\n border: var(--n-border-focus-${e});\n `)])])])))]),re=r("input",[w("disabled",[a("input-el, textarea-el","\n -webkit-text-fill-color: var(--n-text-color-disabled);\n ")])]),te=e({name:"Input",props:Object.assign(Object.assign({},y.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),setup(e){const{mergedClsPrefixRef:n,mergedBorderedRef:o,inlineThemeDisabled:r,mergedRtlRef:t}=C(e),a=y("Input","-input",oe,z,e,n);A&&i("-input-safari",re,n);const l=v(null),u=v(null),c=v(null),d=v(null),h=v(null),p=v(null),g=v(null),x=function(e){const n=v(null);function o(){n.value=null}return f(e,o),{recordCursor:function(){const{value:r}=e;if(!(null==r?void 0:r.focus))return void o();const{selectionStart:t,selectionEnd:a,value:l}=r;null!=t&&null!=a?n.value={start:t,end:a,beforeText:l.slice(0,t),afterText:l.slice(a)}:o()},restoreCursor:function(){var o;const{value:r}=n,{value:t}=e;if(!r||!t)return;const{value:a}=t,{start:l,beforeText:i,afterText:s}=r;let u=a.length;if(a.endsWith(s))u=a.length-s.length;else if(a.startsWith(i))u=i.length;else{const e=i[l-1],n=a.indexOf(e,l-1);-1!==n&&(u=n+1)}null===(o=t.setSelectionRange)||void 0===o||o.call(t,u,u)}}}(g),w=v(null),{localeRef:m}=j("Input"),D=v(e.defaultValue),M=s(e,"value"),I=H(M,D),L=$(e),{mergedSizeRef:K,mergedDisabledRef:U,mergedStatusRef:G}=L,Y=v(!1),X=v(!1),Z=v(!1),q=v(!1);let J=null;const ne=b((()=>{const{placeholder:n,pair:o}=e;return o?Array.isArray(n)?n:void 0===n?["",""]:[n,n]:void 0===n?[m.value.placeholder]:[n]})),te=b((()=>{const{value:e}=Z,{value:n}=I,{value:o}=ne;return!e&&(ee(n)||Array.isArray(n)&&ee(n[0]))&&o[0]})),ae=b((()=>{const{value:e}=Z,{value:n}=I,{value:o}=ne;return!e&&o[1]&&(ee(n)||Array.isArray(n)&&ee(n[1]))})),le=F((()=>e.internalForceFocus||Y.value)),ie=F((()=>{if(U.value||e.readonly||!e.clearable||!le.value&&!X.value)return!1;const{value:n}=I,{value:o}=le;return e.pair?!(!Array.isArray(n)||!n[0]&&!n[1])&&(X.value||o):!!n&&(X.value||o)})),se=b((()=>{const{showPasswordOn:n}=e;return n||(e.showPasswordToggle?"click":void 0)})),ue=v(!1),ce=b((()=>{const{textDecoration:n}=e;return n?Array.isArray(n)?n.map((e=>({textDecoration:e}))):[{textDecoration:n}]:["",""]})),de=v(void 0),he=b((()=>{const{maxlength:n}=e;return void 0===n?void 0:Number(n)}));S((()=>{const{value:e}=I;Array.isArray(e)||ye(e)}));const pe=B().proxy;function ve(n,o){const{onUpdateValue:r,"onUpdate:value":t,onInput:a}=e,{nTriggerFormInput:l}=L;r&&O(r,n,o),t&&O(t,n,o),a&&O(a,n,o),D.value=n,l()}function fe(n,o){const{onChange:r}=e,{nTriggerFormChange:t}=L;r&&O(r,n,o),D.value=n,t()}function ge(n,o=0,r="input"){const t=n.target.value;if(ye(t),n instanceof InputEvent&&!n.isComposing&&(Z.value=!1),"textarea"===e.type){const{value:e}=w;e&&e.syncUnifiedContainer()}if(J=t,Z.value)return;x.recordCursor();const a=function(n){const{countGraphemes:o,maxlength:r,minlength:t}=e;if(o){let e;if(void 0!==r&&(void 0===e&&(e=o(n)),e>Number(r)))return!1;if(void 0!==t&&(void 0===e&&(e=o(n)),e{var e;null===(e=l.value)||void 0===e||e.focus()})))}function me(){var n,o,r;U.value||(e.passivelyActivated?null===(n=l.value)||void 0===n||n.focus():(null===(o=u.value)||void 0===o||o.focus(),null===(r=h.value)||void 0===r||r.focus()))}function ye(n){const{type:o,pair:r,autosize:t}=e;if(!r&&t)if("textarea"===o){const{value:e}=c;e&&(e.textContent=`${null!=n?n:""}\r\n`)}else{const{value:e}=d;e&&(n?e.textContent=n:e.innerHTML=" ")}}const Ce=v({top:"0"});let ze=null;k((()=>{const{autosize:n,type:o}=e;n&&"textarea"===o?ze=f(I,(e=>{Array.isArray(e)||e===J||ye(e)})):null==ze||ze()}));let Ae=null;k((()=>{"textarea"===e.type?Ae=f(I,(e=>{var n;Array.isArray(e)||e===J||null===(n=w.value)||void 0===n||n.syncUnifiedContainer()})):null==Ae||Ae()})),P(Q,{mergedValueRef:I,maxlengthRef:he,mergedClsPrefixRef:n,countGraphemesRef:s(e,"countGraphemes")});const $e={wrapperElRef:l,inputElRef:h,textareaElRef:u,isCompositing:Z,clear:xe,focus:me,blur:function(){var e;(null===(e=l.value)||void 0===e?void 0:e.contains(document.activeElement))&&document.activeElement.blur()},select:function(){var e,n;null===(e=u.value)||void 0===e||e.select(),null===(n=h.value)||void 0===n||n.select()},deactivate:function(){const{value:e}=l;(null==e?void 0:e.contains(document.activeElement))&&e!==document.activeElement&&we()},activate:function(){U.value||(u.value?u.value.focus():h.value&&h.value.focus())},scrollTo:function(n){if("textarea"===e.type){const{value:e}=u;null==e||e.scrollTo(n)}else{const{value:e}=h;null==e||e.scrollTo(n)}}},Fe=R("Input",t,n),Se=b((()=>{const{value:e}=K,{common:{cubicBezierEaseInOut:n},self:{color:o,borderRadius:r,textColor:t,caretColor:l,caretColorError:i,caretColorWarning:s,textDecorationColor:u,border:c,borderDisabled:d,borderHover:h,borderFocus:p,placeholderColor:v,placeholderColorDisabled:f,lineHeightTextarea:g,colorDisabled:b,colorFocus:x,textColorDisabled:w,boxShadowFocus:m,iconSize:y,colorFocusWarning:C,boxShadowFocusWarning:z,borderWarning:A,borderFocusWarning:$,borderHoverWarning:F,colorFocusError:S,boxShadowFocusError:B,borderError:k,borderFocusError:P,borderHoverError:R,clearSize:_,clearColor:D,clearColorHover:M,clearColorPressed:I,iconColor:L,iconColorDisabled:W,suffixTextColor:V,countTextColor:O,countTextColorDisabled:N,iconColorHover:j,iconColorPressed:H,loadingColor:U,loadingColorError:G,loadingColorWarning:Y,[T("padding",e)]:X,[T("fontSize",e)]:Z,[T("height",e)]:q}}=a.value,{left:Q,right:J}=E(X);return{"--n-bezier":n,"--n-count-text-color":O,"--n-count-text-color-disabled":N,"--n-color":o,"--n-font-size":Z,"--n-border-radius":r,"--n-height":q,"--n-padding-left":Q,"--n-padding-right":J,"--n-text-color":t,"--n-caret-color":l,"--n-text-decoration-color":u,"--n-border":c,"--n-border-disabled":d,"--n-border-hover":h,"--n-border-focus":p,"--n-placeholder-color":v,"--n-placeholder-color-disabled":f,"--n-icon-size":y,"--n-line-height-textarea":g,"--n-color-disabled":b,"--n-color-focus":x,"--n-text-color-disabled":w,"--n-box-shadow-focus":m,"--n-loading-color":U,"--n-caret-color-warning":s,"--n-color-focus-warning":C,"--n-box-shadow-focus-warning":z,"--n-border-warning":A,"--n-border-focus-warning":$,"--n-border-hover-warning":F,"--n-loading-color-warning":Y,"--n-caret-color-error":i,"--n-color-focus-error":S,"--n-box-shadow-focus-error":B,"--n-border-error":k,"--n-border-focus-error":P,"--n-border-hover-error":R,"--n-loading-color-error":G,"--n-clear-color":D,"--n-clear-size":_,"--n-clear-color-hover":M,"--n-clear-color-pressed":I,"--n-icon-color":L,"--n-icon-color-hover":j,"--n-icon-color-pressed":H,"--n-icon-color-disabled":W,"--n-suffix-text-color":V}})),Be=r?_("input",b((()=>{const{value:e}=K;return e[0]})),Se,e):void 0;return Object.assign(Object.assign({},$e),{wrapperElRef:l,inputElRef:h,inputMirrorElRef:d,inputEl2Ref:p,textareaElRef:u,textareaMirrorElRef:c,textareaScrollbarInstRef:w,rtlEnabled:Fe,uncontrolledValue:D,mergedValue:I,passwordVisible:ue,mergedPlaceholder:ne,showPlaceholder1:te,showPlaceholder2:ae,mergedFocus:le,isComposing:Z,activated:q,showClearButton:ie,mergedSize:K,mergedDisabled:U,textDecorationStyle:ce,mergedClsPrefix:n,mergedBordered:o,mergedShowPasswordOn:se,placeholderStyle:Ce,mergedStatus:G,textAreaScrollContainerWidth:de,handleTextAreaScroll:function(e){var n;const{scrollTop:o}=e.target;Ce.value.top=-o+"px",null===(n=w.value)||void 0===n||n.syncUnifiedContainer()},handleCompositionStart:function(){Z.value=!0},handleCompositionEnd:function(e){Z.value=!1,e.target===p.value?ge(e,1):ge(e,0)},handleInput:ge,handleInputBlur:function(n){!function(n){const{onInputBlur:o}=e;o&&O(o,n)}(n),n.relatedTarget===l.value&&function(){const{onDeactivate:n}=e;n&&O(n)}(),(null===n.relatedTarget||n.relatedTarget!==h.value&&n.relatedTarget!==p.value&&n.relatedTarget!==u.value)&&(q.value=!1),be(n,"blur"),g.value=null},handleInputFocus:function(n,o){!function(n){const{onInputFocus:o}=e;o&&O(o,n)}(n),Y.value=!0,q.value=!0,function(){const{onActivate:n}=e;n&&O(n)}(),be(n,"focus"),0===o?g.value=h.value:1===o?g.value=p.value:2===o&&(g.value=u.value)},handleWrapperBlur:function(n){e.passivelyActivated&&(!function(n){const{onWrapperBlur:o}=e;o&&O(o,n)}(n),be(n,"blur"))},handleWrapperFocus:function(n){e.passivelyActivated&&(Y.value=!0,function(n){const{onWrapperFocus:o}=e;o&&O(o,n)}(n),be(n,"focus"))},handleMouseEnter:function(){var n;X.value=!0,"textarea"===e.type&&(null===(n=w.value)||void 0===n||n.handleMouseEnterWrapper())},handleMouseLeave:function(){var n;X.value=!1,"textarea"===e.type&&(null===(n=w.value)||void 0===n||n.handleMouseLeaveWrapper())},handleMouseDown:function(n){const{onMousedown:o}=e;o&&o(n);const{tagName:r}=n.target;if("INPUT"!==r&&"TEXTAREA"!==r){if(e.resizable){const{value:e}=l;if(e){const{left:o,top:r,width:t,height:a}=e.getBoundingClientRect(),l=14;if(o+t-l{e.preventDefault(),N("mouseup",document,n)};if(V("mouseup",document,n),"mousedown"!==se.value)return;ue.value=!0;const o=()=>{ue.value=!1,N("mouseup",document,o)};V("mouseup",document,o)},handleWrapperKeydown:function(n){switch(e.onKeydown&&O(e.onKeydown,n),n.key){case"Escape":we();break;case"Enter":!function(n){var o,r;if(e.passivelyActivated){const{value:t}=q;if(t)return void(e.internalDeactivateOnEnter&&we());n.preventDefault(),"textarea"===e.type?null===(o=u.value)||void 0===o||o.focus():null===(r=h.value)||void 0===r||r.focus()}}(n)}},handleWrapperKeyup:function(n){e.onKeyup&&O(e.onKeyup,n)},handleTextAreaMirrorResize:function(){(()=>{var n,o;if("textarea"===e.type){const{autosize:r}=e;if(r&&(de.value=null===(o=null===(n=w.value)||void 0===n?void 0:n.$el)||void 0===o?void 0:o.offsetWidth),!u.value)return;if("boolean"==typeof r)return;const{paddingTop:t,paddingBottom:a,lineHeight:l}=window.getComputedStyle(u.value),i=Number(t.slice(0,-2)),s=Number(a.slice(0,-2)),d=Number(l.slice(0,-2)),{value:h}=c;if(!h)return;if(r.minRows){const e=`${i+s+d*Math.max(r.minRows,1)}px`;h.style.minHeight=e}if(r.maxRows){const e=`${i+s+d*r.maxRows}px`;h.style.maxHeight=e}}})()},getTextareaScrollContainer:()=>u.value,mergedTheme:a,cssVars:r?void 0:Se,themeClass:null==Be?void 0:Be.themeClass,onRender:null==Be?void 0:Be.onRender})},render(){var e,o;const{mergedClsPrefix:r,mergedStatus:t,themeClass:a,type:l,countGraphemes:i,onRender:s}=this,u=this.$slots;return null==s||s(),n("div",{ref:"wrapperElRef",class:[`${r}-input`,a,t&&`${r}-input--${t}-status`,{[`${r}-input--rtl`]:this.rtlEnabled,[`${r}-input--disabled`]:this.mergedDisabled,[`${r}-input--textarea`]:"textarea"===l,[`${r}-input--resizable`]:this.resizable&&!this.autosize,[`${r}-input--autosize`]:this.autosize,[`${r}-input--round`]:this.round&&!("textarea"===l),[`${r}-input--pair`]:this.pair,[`${r}-input--focus`]:this.mergedFocus,[`${r}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:this.mergedDisabled||!this.passivelyActivated||this.activated?void 0:0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},n("div",{class:`${r}-input-wrapper`},D(u.prefix,(e=>e&&n("div",{class:`${r}-input__prefix`},e))),"textarea"===l?n(M,{ref:"textareaScrollbarInstRef",class:`${r}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var e,o;const{textAreaScrollContainerWidth:t}=this,a={width:this.autosize&&t&&`${t}px`};return n(I,null,n("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${r}-input__textarea-el`,null===(e=this.inputProps)||void 0===e?void 0:e.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],null===(o=this.inputProps)||void 0===o?void 0:o.style,a],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?n("div",{class:`${r}-input__placeholder`,style:[this.placeholderStyle,a],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?n(L,{onResize:this.handleTextAreaMirrorResize},{default:()=>n("div",{ref:"textareaMirrorElRef",class:`${r}-input__textarea-mirror`,key:"mirror"})}):null)}}):n("div",{class:`${r}-input__input`},n("input",Object.assign({type:"password"===l&&this.mergedShowPasswordOn&&this.passwordVisible?"text":l},this.inputProps,{ref:"inputElRef",class:[`${r}-input__input-el`,null===(e=this.inputProps)||void 0===e?void 0:e.class],style:[this.textDecorationStyle[0],null===(o=this.inputProps)||void 0===o?void 0:o.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,0)},onInput:e=>{this.handleInput(e,0)},onChange:e=>{this.handleChange(e,0)}})),this.showPlaceholder1?n("div",{class:`${r}-input__placeholder`},n("span",null,this.mergedPlaceholder[0])):null,this.autosize?n("div",{class:`${r}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&D(u.suffix,(e=>e||this.clearable||this.showCount||this.mergedShowPasswordOn||void 0!==this.loading?n("div",{class:`${r}-input__suffix`},[D(u["clear-icon-placeholder"],(e=>(this.clearable||e)&&n(Z,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>e,icon:()=>{var e,n;return null===(n=(e=this.$slots)["clear-icon"])||void 0===n?void 0:n.call(e)}}))),this.internalLoadingBeforeSuffix?null:e,void 0!==this.loading?n(q,{clsPrefix:r,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?e:null,this.showCount&&"textarea"!==this.type?n(ne,null,{default:e=>{var n;return null===(n=u.count)||void 0===n?void 0:n.call(u,e)}}):null,this.mergedShowPasswordOn&&"password"===this.type?n("div",{class:`${r}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?c(u["password-visible-icon"],(()=>[n(d,{clsPrefix:r},{default:()=>n(K,null)})])):c(u["password-invisible-icon"],(()=>[n(d,{clsPrefix:r},{default:()=>n(U,null)})]))):null]):null))),this.pair?n("span",{class:`${r}-input__separator`},c(u.separator,(()=>[this.separator]))):null,this.pair?n("div",{class:`${r}-input-wrapper`},n("div",{class:`${r}-input__input`},n("input",{ref:"inputEl2Ref",type:this.type,class:`${r}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,1)},onInput:e=>{this.handleInput(e,1)},onChange:e=>{this.handleChange(e,1)}}),this.showPlaceholder2?n("div",{class:`${r}-input__placeholder`},n("span",null,this.mergedPlaceholder[1])):null),D(u.suffix,(e=>(this.clearable||e)&&n("div",{class:`${r}-input__suffix`},[this.clearable&&n(Z,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var e;return null===(e=u["clear-icon"])||void 0===e?void 0:e.call(u)},placeholder:()=>{var e;return null===(e=u["clear-icon-placeholder"])||void 0===e?void 0:e.call(u)}}),e])))):null,this.mergedBordered?n("div",{class:`${r}-input__border`}):null,this.mergedBordered?n("div",{class:`${r}-input__state-border`}):null,this.showCount&&"textarea"===l?n(ne,null,{default:e=>{var n;const{renderCount:o}=this;return o?o(e):null===(n=u.count)||void 0===n?void 0:n.call(u,e)}}):null)}});export{G as C,te as N,q as a}; diff --git a/docs/assets/InputGroup-Bg5yCPNp.js b/docs/assets/InputGroup-Bg5yCPNp.js new file mode 100644 index 0000000..976bd03 --- /dev/null +++ b/docs/assets/InputGroup-Bg5yCPNp.js @@ -0,0 +1 @@ +import{z as t,y as r,A as o,d as n,D as i,a3 as e,v as a}from"./index-BT0ZcDkn.js";const d=t("input-group","\n display: inline-flex;\n width: 100%;\n flex-wrap: nowrap;\n vertical-align: bottom;\n",[r(">",[t("input",[r("&:not(:last-child)","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n "),r("&:not(:first-child)","\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n margin-left: -1px!important;\n ")]),t("button",[r("&:not(:last-child)","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n ",[o("state-border, border","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n ")]),r("&:not(:first-child)","\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n ",[o("state-border, border","\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n ")])]),r("*",[r("&:not(:last-child)","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n ",[r(">",[t("input","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n "),t("base-selection",[t("base-selection-label","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n "),t("base-selection-tags","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n "),o("box-shadow, border, state-border","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n ")])])]),r("&:not(:first-child)","\n margin-left: -1px!important;\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n ",[r(">",[t("input","\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n "),t("base-selection",[t("base-selection-label","\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n "),t("base-selection-tags","\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n "),o("box-shadow, border, state-border","\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n ")])])])])])]),s=n({name:"InputGroup",props:{},setup(t){const{mergedClsPrefixRef:r}=i(t);return e("-input-group",d,r),{mergedClsPrefix:r}},render(){const{mergedClsPrefix:t}=this;return a("div",{class:`${t}-input-group`},this.$slots)}});export{s as _}; diff --git a/docs/assets/Pagination-YSg8zdta.js b/docs/assets/Pagination-YSg8zdta.js new file mode 100644 index 0000000..25116e6 --- /dev/null +++ b/docs/assets/Pagination-YSg8zdta.js @@ -0,0 +1 @@ +import{d as e,v as t,au as a,z as n,i as r,D as o,C as i,b8 as s,l,a0 as d,an as u,az as c,G as p,aN as m,aD as v,a as h,a4 as g,aa as b,b9 as f,y as w,Q as F,U as y,ba as k,a1 as x,F as C,Y as B,aI as P,H as z,N as M}from"./index-BT0ZcDkn.js";import{u as S}from"./use-locale-CbMPSc0o.js";import{u as I}from"./use-merged-state-D7wGS6Km.js";import{N as j}from"./Input-D2qMgPO1.js";import{c as $,N as O,m as T,_ as A}from"./Select-D_I2Mr2d.js";import{a as R,B as N,b as U,F as D}from"./Forward-xWz6l688.js";import{_ as V,p as E,u as H}from"./Popover-3mPJ01hC.js";import{c as J,h as q,a as Q}from"./create-Bylz8BGN.js";function _(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}const L=e({name:"More",render:()=>t("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},t("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},t("g",{fill:"currentColor","fill-rule":"nonzero"},t("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}),W=a("n-popselect"),Z=n("popselect-menu","\n box-shadow: var(--n-menu-box-shadow);\n"),G={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},Y=m(G),K=e({name:"PopselectPanel",props:G,setup(e){const t=r(W),{mergedClsPrefixRef:a,inlineThemeDisabled:n}=o(e),m=i("Popselect","-pop-select",Z,s,t.props,a),h=l((()=>J(e.options,$("value","children"))));function g(t,a){const{onUpdateValue:n,"onUpdate:value":r,onChange:o}=e;n&&v(n,t,a),r&&v(r,t,a),o&&v(o,t,a)}d(c(e,"options"),(()=>{u((()=>{t.syncPosition()}))}));const b=l((()=>{const{self:{menuBoxShadow:e}}=m.value;return{"--n-menu-box-shadow":e}})),f=n?p("select",void 0,b,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:a,treeMate:h,handleToggle:function(a){!function(a){const{value:{getNode:n}}=h;if(e.multiple)if(Array.isArray(e.value)){const t=[],r=[];let o=!0;e.value.forEach((e=>{if(e===a)return void(o=!1);const i=n(e);i&&(t.push(i.key),r.push(i.rawNode))})),o&&(t.push(a),r.push(n(a).rawNode)),g(t,r)}else{const e=n(a);e&&g([a],[e.rawNode])}else if(e.value===a&&e.cancelable)g(null,null);else{const e=n(a);e&&g(a,e.rawNode);const{"onUpdate:show":r,onUpdateShow:o}=t.props;r&&v(r,!1),o&&v(o,!1),t.setShow(!1)}u((()=>{t.syncPosition()}))}(a.key)},handleMenuMousedown:function(e){q(e,"action")||q(e,"empty")||q(e,"header")||e.preventDefault()},cssVars:n?void 0:b,themeClass:null==f?void 0:f.themeClass,onRender:null==f?void 0:f.onRender}},render(){var e;return null===(e=this.onRender)||void 0===e||e.call(this),t(O,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var e,t;return(null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e))||[]},action:()=>{var e,t;return(null===(t=(e=this.$slots).action)||void 0===t?void 0:t.call(e))||[]},empty:()=>{var e,t;return(null===(t=(e=this.$slots).empty)||void 0===t?void 0:t.call(e))||[]}})}}),X=e({name:"Popselect",props:Object.assign(Object.assign(Object.assign(Object.assign({},i.props),f(E,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},E.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),G),inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=o(e),a=i("Popselect","-popselect",void 0,s,e,t),n=h(null);function r(){var e;null===(e=n.value)||void 0===e||e.syncPosition()}function l(e){var t;null===(t=n.value)||void 0===t||t.setShow(e)}g(W,{props:e,mergedThemeRef:a,syncPosition:r,setShow:l});const d={syncPosition:r,setShow:l};return Object.assign(Object.assign({},d),{popoverInstRef:n,mergedTheme:a})},render(){const{mergedTheme:e}=this,a={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(e,a,n,r,o)=>{const{$attrs:i}=this;return t(K,Object.assign({},i,{class:[i.class,e],style:[i.style,...n]},b(this.$props,Y),{ref:Q(a),onMouseenter:T([r,i.onMouseenter]),onMouseleave:T([o,i.onMouseleave])}),{header:()=>{var e,t;return null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e)},action:()=>{var e,t;return null===(t=(e=this.$slots).action)||void 0===t?void 0:t.call(e)},empty:()=>{var e,t;return null===(t=(e=this.$slots).empty)||void 0===t?void 0:t.call(e)}})}};return t(V,Object.assign({},f(this.$props,Y),a,{internalDeactivateImmediately:!0}),{trigger:()=>{var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)}})}}),ee="\n background: var(--n-item-color-hover);\n color: var(--n-item-text-color-hover);\n border: var(--n-item-border-hover);\n",te=[F("button","\n background: var(--n-button-color-hover);\n border: var(--n-button-border-hover);\n color: var(--n-button-icon-color-hover);\n ")],ae=n("pagination","\n display: flex;\n vertical-align: middle;\n font-size: var(--n-item-font-size);\n flex-wrap: nowrap;\n",[n("pagination-prefix","\n display: flex;\n align-items: center;\n margin: var(--n-prefix-margin);\n "),n("pagination-suffix","\n display: flex;\n align-items: center;\n margin: var(--n-suffix-margin);\n "),w("> *:not(:first-child)","\n margin: var(--n-item-margin);\n "),n("select","\n width: var(--n-select-width);\n "),w("&.transition-disabled",[n("pagination-item","transition: none!important;")]),n("pagination-quick-jumper","\n white-space: nowrap;\n display: flex;\n color: var(--n-jumper-text-color);\n transition: color .3s var(--n-bezier);\n align-items: center;\n font-size: var(--n-jumper-font-size);\n ",[n("input","\n margin: var(--n-input-margin);\n width: var(--n-input-width);\n ")]),n("pagination-item","\n position: relative;\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n min-width: var(--n-item-size);\n height: var(--n-item-size);\n padding: var(--n-item-padding);\n background-color: var(--n-item-color);\n color: var(--n-item-text-color);\n border-radius: var(--n-item-border-radius);\n border: var(--n-item-border);\n fill: var(--n-button-icon-color);\n transition:\n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n fill .3s var(--n-bezier);\n ",[F("button","\n background: var(--n-button-color);\n color: var(--n-button-icon-color);\n border: var(--n-button-border);\n padding: 0;\n ",[n("base-icon","\n font-size: var(--n-button-icon-size);\n ")]),y("disabled",[F("hover",ee,te),w("&:hover",ee,te),w("&:active","\n background: var(--n-item-color-pressed);\n color: var(--n-item-text-color-pressed);\n border: var(--n-item-border-pressed);\n ",[F("button","\n background: var(--n-button-color-pressed);\n border: var(--n-button-border-pressed);\n color: var(--n-button-icon-color-pressed);\n ")]),F("active","\n background: var(--n-item-color-active);\n color: var(--n-item-text-color-active);\n border: var(--n-item-border-active);\n ",[w("&:hover","\n background: var(--n-item-color-active-hover);\n ")])]),F("disabled","\n cursor: not-allowed;\n color: var(--n-item-text-color-disabled);\n ",[F("active, button","\n background-color: var(--n-item-color-disabled);\n border: var(--n-item-border-disabled);\n ")])]),F("disabled","\n cursor: not-allowed;\n ",[n("pagination-quick-jumper","\n color: var(--n-jumper-text-color-disabled);\n ")]),F("simple","\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n ",[n("pagination-quick-jumper",[n("input","\n margin: 0;\n ")])])]);function ne(e){var t;if(!e)return 10;const{defaultPageSize:a}=e;if(void 0!==a)return a;const n=null===(t=e.pageSizes)||void 0===t?void 0:t[0];return"number"==typeof n?n:(null==n?void 0:n.value)||10}function re(e,t){const a=[];for(let n=e;n<=t;++n)a.push({label:`${n}`,value:n});return a}const oe=e({name:"Pagination",props:Object.assign(Object.assign({},i.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default:()=>[10]},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:H.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:a,inlineThemeDisabled:n,mergedRtlRef:r}=o(e),s=i("Pagination","-pagination",ae,k,e,a),{localeRef:d}=S("Pagination"),m=h(null),g=h(e.defaultPage),b=h(ne(e)),f=I(c(e,"page"),g),w=I(c(e,"pageSize"),b),F=l((()=>{const{itemCount:t}=e;if(void 0!==t)return Math.max(1,Math.ceil(t/w.value));const{pageCount:a}=e;return void 0!==a?Math.max(a,1):1})),y=h("");x((()=>{e.simple,y.value=String(f.value)}));const P=h(!1),z=h(!1),M=h(!1),j=h(!1),$=l((()=>function(e,t,a,n){let r=!1,o=!1,i=1,s=t;if(1===t)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:s,fastBackwardTo:i,items:[{type:"page",label:1,active:1===e,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(2===t)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:s,fastBackwardTo:i,items:[{type:"page",label:1,active:1===e,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:2===e,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=t;let d=e,u=e;const c=(a-5)/2;u+=Math.ceil(c),u=Math.min(Math.max(u,1+a-3),l-2),d-=Math.floor(c),d=Math.max(Math.min(d,l-a+3),3);let p=!1,m=!1;d>3&&(p=!0),u=2&&v.push({type:"page",label:2,mayBeFastBackward:!0,mayBeFastForward:!1,active:2===e});for(let h=d;h<=u;++h)v.push({type:"page",label:h,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===h});return m?(o=!0,s=u+1,v.push({type:"fast-forward",active:!1,label:void 0,options:n?re(u+1,l-1):null})):u===l-2&&v[v.length-1].label!==l-1&&v.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:l-1,active:e===l-1}),v[v.length-1].label!==l&&v.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:l,active:e===l}),{hasFastBackward:r,hasFastForward:o,fastBackwardTo:i,fastForwardTo:s,items:v}}(f.value,F.value,e.pageSlot,e.showQuickJumpDropdown)));x((()=>{$.value.hasFastBackward?$.value.hasFastForward||(P.value=!1,M.value=!1):(z.value=!1,j.value=!1)}));const O=l((()=>{const t=d.value.selectionSuffix;return e.pageSizes.map((e=>"number"==typeof e?{label:`${e} / ${t}`,value:e}:e))})),T=l((()=>{var a,n;return(null===(n=null===(a=null==t?void 0:t.value)||void 0===a?void 0:a.Pagination)||void 0===n?void 0:n.inputSize)||_(e.size)})),A=l((()=>{var a,n;return(null===(n=null===(a=null==t?void 0:t.value)||void 0===a?void 0:a.Pagination)||void 0===n?void 0:n.selectSize)||_(e.size)})),R=l((()=>(f.value-1)*w.value)),N=l((()=>{const t=f.value*w.value-1,{itemCount:a}=e;return void 0!==a&&t>a-1?a-1:t})),U=l((()=>{const{itemCount:t}=e;return void 0!==t?t:(e.pageCount||1)*w.value})),D=C("Pagination",r,a);function V(){u((()=>{var e;const{value:t}=m;t&&(t.classList.add("transition-disabled"),null===(e=m.value)||void 0===e||e.offsetWidth,t.classList.remove("transition-disabled"))}))}function E(t){if(t===f.value)return;const{"onUpdate:page":a,onUpdatePage:n,onChange:r,simple:o}=e;a&&v(a,t),n&&v(n,t),r&&v(r,t),g.value=t,o&&(y.value=String(t))}x((()=>{f.value,w.value,V()}));const H=l((()=>{const{size:t}=e,{self:{buttonBorder:a,buttonBorderHover:n,buttonBorderPressed:r,buttonIconColor:o,buttonIconColorHover:i,buttonIconColorPressed:l,itemTextColor:d,itemTextColorHover:u,itemTextColorPressed:c,itemTextColorActive:p,itemTextColorDisabled:m,itemColor:v,itemColorHover:h,itemColorPressed:g,itemColorActive:b,itemColorActiveHover:f,itemColorDisabled:w,itemBorder:F,itemBorderHover:y,itemBorderPressed:k,itemBorderActive:x,itemBorderDisabled:C,itemBorderRadius:P,jumperTextColor:z,jumperTextColorDisabled:M,buttonColor:S,buttonColorHover:I,buttonColorPressed:j,[B("itemPadding",t)]:$,[B("itemMargin",t)]:O,[B("inputWidth",t)]:T,[B("selectWidth",t)]:A,[B("inputMargin",t)]:R,[B("selectMargin",t)]:N,[B("jumperFontSize",t)]:U,[B("prefixMargin",t)]:D,[B("suffixMargin",t)]:V,[B("itemSize",t)]:E,[B("buttonIconSize",t)]:H,[B("itemFontSize",t)]:J,[`${B("itemMargin",t)}Rtl`]:q,[`${B("inputMargin",t)}Rtl`]:Q},common:{cubicBezierEaseInOut:_}}=s.value;return{"--n-prefix-margin":D,"--n-suffix-margin":V,"--n-item-font-size":J,"--n-select-width":A,"--n-select-margin":N,"--n-input-width":T,"--n-input-margin":R,"--n-input-margin-rtl":Q,"--n-item-size":E,"--n-item-text-color":d,"--n-item-text-color-disabled":m,"--n-item-text-color-hover":u,"--n-item-text-color-active":p,"--n-item-text-color-pressed":c,"--n-item-color":v,"--n-item-color-hover":h,"--n-item-color-disabled":w,"--n-item-color-active":b,"--n-item-color-active-hover":f,"--n-item-color-pressed":g,"--n-item-border":F,"--n-item-border-hover":y,"--n-item-border-disabled":C,"--n-item-border-active":x,"--n-item-border-pressed":k,"--n-item-padding":$,"--n-item-border-radius":P,"--n-bezier":_,"--n-jumper-font-size":U,"--n-jumper-text-color":z,"--n-jumper-text-color-disabled":M,"--n-item-margin":O,"--n-item-margin-rtl":q,"--n-button-icon-size":H,"--n-button-icon-color":o,"--n-button-icon-color-hover":i,"--n-button-icon-color-pressed":l,"--n-button-color-hover":I,"--n-button-color":S,"--n-button-color-pressed":j,"--n-button-border":a,"--n-button-border-hover":n,"--n-button-border-pressed":r}})),J=n?p("pagination",l((()=>{let t="";const{size:a}=e;return t+=a[0],t})),H,e):void 0;return{rtlEnabled:D,mergedClsPrefix:a,locale:d,selfRef:m,mergedPage:f,pageItems:l((()=>$.value.items)),mergedItemCount:U,jumperValue:y,pageSizeOptions:O,mergedPageSize:w,inputSize:T,selectSize:A,mergedTheme:s,mergedPageCount:F,startIndex:R,endIndex:N,showFastForwardMenu:M,showFastBackwardMenu:j,fastForwardActive:P,fastBackwardActive:z,handleMenuSelect:e=>{E(e)},handleFastForwardMouseenter:()=>{e.disabled||(P.value=!0,V())},handleFastForwardMouseleave:()=>{e.disabled||(P.value=!1,V())},handleFastBackwardMouseenter:()=>{z.value=!0,V()},handleFastBackwardMouseleave:()=>{z.value=!1,V()},handleJumperInput:function(e){y.value=e.replace(/\D+/g,"")},handleBackwardClick:function(){if(e.disabled)return;E(Math.max(f.value-1,1))},handleForwardClick:function(){if(e.disabled)return;E(Math.min(f.value+1,F.value))},handlePageItemClick:function(t){if(!e.disabled)switch(t.type){case"page":E(t.label);break;case"fast-backward":!function(){if(e.disabled)return;E(Math.max($.value.fastBackwardTo,1))}();break;case"fast-forward":!function(){if(e.disabled)return;E(Math.min($.value.fastForwardTo,F.value))}()}},handleSizePickerChange:function(t){!function(t){if(t===w.value)return;const{"onUpdate:pageSize":a,onUpdatePageSize:n,onPageSizeChange:r}=e;a&&v(a,t),n&&v(n,t),r&&v(r,t),b.value=t,F.value{switch(e){case"pages":return t(z,null,t("div",{class:[`${a}-pagination-item`,!H&&`${a}-pagination-item--button`,(o<=1||o>i||n)&&`${a}-pagination-item--disabled`],onClick:S},H?H({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):t(M,{clsPrefix:a},{default:()=>this.rtlEnabled?t(R,null):t(N,null)})),b?t(z,null,t("div",{class:`${a}-pagination-quick-jumper`},t(j,{value:g,onUpdateValue:C,size:p,placeholder:"",disabled:n,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:O}))," /"," ",i):s.map(((e,r)=>{let o,i,s;const{type:l}=e;switch(l){case"page":const n=e.label;o=q?q({type:"page",node:n,active:e.active}):n;break;case"fast-forward":const r=this.fastForwardActive?t(M,{clsPrefix:a},{default:()=>this.rtlEnabled?t(D,null):t(U,null)}):t(M,{clsPrefix:a},{default:()=>t(L,null)});o=q?q({type:"fast-forward",node:r,active:this.fastForwardActive||this.showFastForwardMenu}):r,i=this.handleFastForwardMouseenter,s=this.handleFastForwardMouseleave;break;case"fast-backward":const l=this.fastBackwardActive?t(M,{clsPrefix:a},{default:()=>this.rtlEnabled?t(U,null):t(D,null)}):t(M,{clsPrefix:a},{default:()=>t(L,null)});o=q?q({type:"fast-backward",node:l,active:this.fastBackwardActive||this.showFastBackwardMenu}):l,i=this.handleFastBackwardMouseenter,s=this.handleFastBackwardMouseleave}const d=t("div",{key:r,class:[`${a}-pagination-item`,e.active&&`${a}-pagination-item--active`,"page"!==l&&("fast-backward"===l&&this.showFastBackwardMenu||"fast-forward"===l&&this.showFastForwardMenu)&&`${a}-pagination-item--hover`,n&&`${a}-pagination-item--disabled`,"page"===l&&`${a}-pagination-item--clickable`],onClick:()=>{I(e)},onMouseenter:i,onMouseleave:s},o);if("page"!==l||e.mayBeFastBackward||e.mayBeFastForward){const a="page"===e.type?e.mayBeFastBackward?"fast-backward":"fast-forward":e.type;return"page"===e.type||e.options?t(X,{to:this.to,key:a,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:u.peers.Popselect,themeOverrides:u.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:"page"!==l&&("fast-backward"===l?this.showFastBackwardMenu:this.showFastForwardMenu),onUpdateShow:e=>{"page"!==l&&(e?"fast-backward"===l?this.showFastBackwardMenu=e:this.showFastForwardMenu=e:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:"page"!==e.type&&e.options?e.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>d}):d}return d})),t("div",{class:[`${a}-pagination-item`,!J&&`${a}-pagination-item--button`,{[`${a}-pagination-item--disabled`]:o<1||o>=i||n}],onClick:$},J?J({page:o,pageSize:v,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):t(M,{clsPrefix:a},{default:()=>this.rtlEnabled?t(N,null):t(R,null)})));case"size-picker":return!b&&l?t(A,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:m,options:h,value:v,disabled:n,theme:u.peers.Select,themeOverrides:u.peerOverrides.Select,onUpdateValue:B})):null;case"quick-jumper":return!b&&d?t("div",{class:`${a}-pagination-quick-jumper`},x?x():P(this.$slots.goto,(()=>[c.goto])),t(j,{value:g,onUpdateValue:C,size:p,placeholder:"",disabled:n,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:O})):null;default:return null}})),E?t("div",{class:`${a}-pagination-suffix`},E({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}});export{oe as _,ne as g}; diff --git a/docs/assets/Popover-3mPJ01hC.js b/docs/assets/Popover-3mPJ01hC.js new file mode 100644 index 0000000..2f6fff2 --- /dev/null +++ b/docs/assets/Popover-3mPJ01hC.js @@ -0,0 +1 @@ +import{a2 as e,aL as t,cV as o,au as r,i as n,cb as a,c9 as l,ca as s,a as i,aY as d,aX as u,b1 as p,d as c,a4 as h,ak as f,di as v,aB as g,dj as m,dk as b,bA as w,a0 as y,az as $,aA as x,v as S,cg as M,bU as C,an as B,dl as z,dm as T,d7 as E,dn as R,bP as k,dp as O,y as A,z as I,U as j,A as P,Q as W,dq as _,D as N,C as F,a1 as L,l as D,G as X,T as Y,dr as H,aC as V,bG as U,aO as G,aF as K,d1 as Q,cc as q,ai as J,x as Z,H as ee,d4 as te,ds as oe,bI as re,dt as ne,aa as ae,aD as le}from"./index-BT0ZcDkn.js";import{u as se}from"./use-merged-state-D7wGS6Km.js";import{u as ie}from"./use-compitable-CHcH6xDN.js";import{b as de}from"./next-frame-once-DiJwGkuW.js";let ue,pe,ce;var he,fe;function ve(o){if(ce)return;let r=!1;e((()=>{ce||null==pe||pe.then((()=>{r||o()}))})),t((()=>{r=!0}))}pe=o?null===(fe=null===(he=document)||void 0===he?void 0:he.fonts)||void 0===fe?void 0:fe.ready:void 0,ce=!1,void 0!==pe?pe.then((()=>{ce=!0})):ce=!0;const ge=r("n-internal-select-menu"),me=r("n-internal-select-menu-body"),be="__disabled__";function we(o){const r=n(a,null),c=n(l,null),h=n(s,null),f=n(me,null),v=i();if("undefined"!=typeof document){v.value=document.fullscreenElement;const o=()=>{v.value=document.fullscreenElement};e((()=>{d("fullscreenchange",document,o)})),t((()=>{u("fullscreenchange",document,o)}))}return p((()=>{var e;const{to:t}=o;return void 0!==t?!1===t?be:!0===t?v.value||"body":t:(null==r?void 0:r.value)?null!==(e=r.value.$el)&&void 0!==e?e:r.value:(null==c?void 0:c.value)?c.value:(null==h?void 0:h.value)?h.value:(null==f?void 0:f.value)?f.value:null!=t?t:v.value||"body"}))}we.tdkey=be,we.propTo={type:[String,Object,Boolean],default:void 0};let ye=null;function $e(){if(null===ye&&(ye=document.getElementById("v-binder-view-measurer"),null===ye)){ye=document.createElement("div"),ye.id="v-binder-view-measurer";const{style:e}=ye;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ye)}return ye.getBoundingClientRect()}function xe(e){const t=e.getBoundingClientRect(),o=$e();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 Se(e){if(null===e)return null;const t=function(e){return 9===e.nodeType?null:e.parentNode}(e);if(null===t)return null;if(9===t.nodeType)return document;if(1===t.nodeType){const{overflow:e,overflowX:o,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+o))return t}return Se(t)}const Me=c({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var o;h("VBinder",null===(o=f())||void 0===o?void 0:o.proxy);const r=n("VBinder",null),a=i(null);let l=[];const s=()=>{for(const e of l)u("scroll",e,c,!0);l=[]},p=new Set,c=()=>{de(v)},v=()=>{p.forEach((e=>e()))},g=new Set,m=()=>{g.forEach((e=>e()))};return t((()=>{u("resize",window,m),s()})),{targetRef:a,setTargetRef:t=>{a.value=t,r&&e.syncTargetWithParent&&r.setTargetRef(t)},addScrollListener:e=>{0===p.size&&(()=>{let e=a.value;for(;e=Se(e),null!==e;)l.push(e);for(const t of l)d("scroll",t,c,!0)})(),p.has(e)||p.add(e)},removeScrollListener:e=>{p.has(e)&&p.delete(e),0===p.size&&s()},addResizeListener:e=>{0===g.size&&d("resize",window,m),g.has(e)||g.add(e)},removeResizeListener:e=>{g.has(e)&&g.delete(e),0===g.size&&u("resize",window,m)}}},render(){return v("binder",this.$slots)}}),Ce=c({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=n("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?g(m("follower",this.$slots),[[t]]):m("follower",this.$slots)}}),Be="@@mmoContext",ze={mounted(e,{value:t}){e[Be]={handler:void 0},"function"==typeof t&&(e[Be].handler=t,d("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[Be];"function"==typeof t?o.handler?o.handler!==t&&(u("mousemoveoutside",e,o.handler),o.handler=t,d("mousemoveoutside",e,t)):(e[Be].handler=t,d("mousemoveoutside",e,t)):o.handler&&(u("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[Be];t&&u("mousemoveoutside",e,t),e[Be].handler=void 0}},{c:Te}=b(),Ee="vueuc-style",Re={top:"bottom",bottom:"top",left:"right",right:"left"},ke={start:"end",center:"center",end:"start"},Oe={top:"height",bottom:"height",left:"width",right:"width"},Ae={"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"},Ie={"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"},je={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Pe={top:!0,bottom:!1,left:!0,right:!1},We={top:"end",bottom:"start",left:"end",right:"start"};const _e=Te([Te(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),Te(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[Te("> *",{pointerEvents:"all"})])]),Ne=c({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(o){const r=n("VBinder"),a=p((()=>void 0!==o.enabled?o.enabled:o.show)),l=i(null),s=i(null),d=()=>{const{syncTrigger:e}=o;e.includes("scroll")&&r.addScrollListener(h),e.includes("resize")&&r.addResizeListener(h)},u=()=>{r.removeScrollListener(h),r.removeResizeListener(h)};e((()=>{a.value&&(h(),d())}));const c=w();_e.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ee,ssr:c}),t((()=>{u()})),ve((()=>{a.value&&h()}));const h=()=>{if(!a.value)return;const e=l.value;if(null===e)return;const t=r.targetRef,{x:n,y:i,overlap:d}=o,u=void 0!==n&&void 0!==i?function(e,t){const o=$e();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}(n,i):xe(t);e.style.setProperty("--v-target-width",`${Math.round(u.width)}px`),e.style.setProperty("--v-target-height",`${Math.round(u.height)}px`);const{width:p,minWidth:c,placement:h,internalShift:f,flip:v}=o;e.setAttribute("v-placement",h),d?e.setAttribute("v-overlap",""):e.removeAttribute("v-overlap");const{style:g}=e;g.width="target"===p?`${u.width}px`:void 0!==p?p:"",g.minWidth="target"===c?`${u.width}px`:void 0!==c?c:"";const m=xe(e),b=xe(s.value),{left:w,top:y,placement:$}=function(e,t,o,r,n,a){if(!n||a)return{placement:e,top:0,left:0};const[l,s]=e.split("-");let i=null!=s?s:"center",d={top:0,left:0};const u=(e,n,a)=>{let l=0,s=0;const i=o[e]-t[n]-t[e];return i>0&&r&&(a?s=Pe[n]?i:-i:l=Pe[n]?i:-i),{left:l,top:s}},p="left"===l||"right"===l;if("center"!==i){const r=je[e],n=Re[r],a=Oe[r];if(o[a]>t[a]){if(t[r]+t[a]t[n]&&(i=ke[s])}else{const e="bottom"===l||"top"===l?"left":"top",r=Re[e],n=Oe[e],a=(o[n]-t[n])/2;(t[e]t[r]?(i=We[e],d=u(n,e,p)):(i=We[r],d=u(n,r,p)))}let c=l;return t[l]{e?(d(),f()):u()}));const f=()=>{B().then(h).catch((e=>console.error(e)))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach((e=>{y($(o,e),h)})),["teleportDisabled"].forEach((e=>{y($(o,e),f)})),y($(o,"syncTrigger"),(e=>{e.includes("resize")?r.addResizeListener(h):r.removeResizeListener(h),e.includes("scroll")?r.addScrollListener(h):r.removeScrollListener(h)}));const v=x(),g=p((()=>{const{to:e}=o;if(void 0!==e)return e;v.value}));return{VBinder:r,mergedEnabled:a,offsetContainerRef:s,followerRef:l,mergedTo:g,syncPosition:h}},render(){return S(C,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=S("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[S("div",{class:"v-binder-follower-content",ref:"followerRef"},null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))]);return this.zindexable?g(o,[[M,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});var Fe,Le=(Fe=function(e,t){return e&&z(e,t,T)},function(e,t){if(null==e)return e;if(!E(e))return Fe(e,t);for(var o=e.length,r=-1,n=Object(e);++r",[I("scrollbar","\n height: inherit;\n max-height: inherit;\n ")]),j("raw","\n background-color: var(--n-color);\n border-radius: var(--n-border-radius);\n ",[j("scrollable",[j("show-header-or-footer","padding: var(--n-padding);")])]),P("header","\n padding: var(--n-padding);\n border-bottom: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),P("footer","\n padding: var(--n-padding);\n border-top: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),W("scrollable, show-header-or-footer",[P("content","\n padding: var(--n-padding);\n ")])]),I("popover-shared","\n transform-origin: inherit;\n ",[I("popover-arrow-wrapper","\n position: absolute;\n overflow: hidden;\n pointer-events: none;\n ",[I("popover-arrow",`\n transition: background-color .3s var(--n-bezier);\n position: absolute;\n display: block;\n width: calc(${Ye});\n height: calc(${Ye});\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);\n transform: rotate(45deg);\n background-color: var(--n-color);\n pointer-events: all;\n `)]),A("&.popover-transition-enter-from, &.popover-transition-leave-to","\n opacity: 0;\n transform: scale(.85);\n "),A("&.popover-transition-enter-to, &.popover-transition-leave-from","\n transform: scale(1);\n opacity: 1;\n "),A("&.popover-transition-enter-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-out),\n transform .15s var(--n-bezier-ease-out);\n "),A("&.popover-transition-leave-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-in),\n transform .15s var(--n-bezier-ease-in);\n ")]),Ke("top-start",`\n top: calc(${Ye} / -2);\n left: calc(${Ge("top-start")} - var(--v-offset-left));\n `),Ke("top",`\n top: calc(${Ye} / -2);\n transform: translateX(calc(${Ye} / -2)) rotate(45deg);\n left: 50%;\n `),Ke("top-end",`\n top: calc(${Ye} / -2);\n right: calc(${Ge("top-end")} + var(--v-offset-left));\n `),Ke("bottom-start",`\n bottom: calc(${Ye} / -2);\n left: calc(${Ge("bottom-start")} - var(--v-offset-left));\n `),Ke("bottom",`\n bottom: calc(${Ye} / -2);\n transform: translateX(calc(${Ye} / -2)) rotate(45deg);\n left: 50%;\n `),Ke("bottom-end",`\n bottom: calc(${Ye} / -2);\n right: calc(${Ge("bottom-end")} + var(--v-offset-left));\n `),Ke("left-start",`\n left: calc(${Ye} / -2);\n top: calc(${Ge("left-start")} - var(--v-offset-top));\n `),Ke("left",`\n left: calc(${Ye} / -2);\n transform: translateY(calc(${Ye} / -2)) rotate(45deg);\n top: 50%;\n `),Ke("left-end",`\n left: calc(${Ye} / -2);\n bottom: calc(${Ge("left-end")} + var(--v-offset-top));\n `),Ke("right-start",`\n right: calc(${Ye} / -2);\n top: calc(${Ge("right-start")} - var(--v-offset-top));\n `),Ke("right",`\n right: calc(${Ye} / -2);\n transform: translateY(calc(${Ye} / -2)) rotate(45deg);\n top: 50%;\n `),Ke("right-end",`\n right: calc(${Ye} / -2);\n bottom: calc(${Ge("right-end")} + var(--v-offset-top));\n `),...(Ve={top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},Ue=(e,t)=>{const o=["right","left"].includes(t),r=o?"width":"height";return e.map((e=>{const n="end"===e.split("-")[1],a=`calc((var(--v-target-${r}, 0px) - ${Ye}) / 2)`,l=Ge(e);return A(`[v-placement="${e}"] >`,[I("popover-shared",[W("center-arrow",[I("popover-arrow",`${t}: calc(max(${a}, ${l}) ${n?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])}))},(k(Ve)?O:De)(Ve,R(Ue)))]);var Ve,Ue;function Ge(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Ke(e,t){const o=e.split("-")[0],r=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return A(`[v-placement="${e}"] >`,[I("popover-shared",`\n margin-${Xe[o]}: var(--n-space);\n `,[W("show-arrow",`\n margin-${Xe[o]}: var(--n-space-arrow);\n `),W("overlap","\n margin: 0;\n "),_("popover-arrow-wrapper",`\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n ${o}: 100%;\n ${Xe[o]}: auto;\n ${r}\n `,[I("popover-arrow",t)])])])}const Qe=Object.assign(Object.assign({},F.props),{to:we.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 qe({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:r,clsPrefix:n}){return S("div",{key:"__popover-arrow__",style:r,class:[`${n}-popover-arrow-wrapper`,o]},S("div",{class:[`${n}-popover-arrow`,e],style:t}))}const Je=c({name:"PopoverBody",inheritAttrs:!1,props:Qe,setup(e,{slots:o,attrs:r}){const{namespaceRef:d,mergedClsPrefixRef:u,inlineThemeDisabled:p}=N(e),c=F("Popover","-popover",He,H,e,u),f=i(null),v=n("NPopover"),m=i(null),b=i(e.show),w=i(!1);L((()=>{const{show:t}=e;!t||(void 0===ue&&(ue=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),ue)||e.internalDeactivateImmediately||(w.value=!0)}));const x=D((()=>{const{trigger:t,onClickoutside:o}=e,r=[],{positionManuallyRef:{value:n}}=v;return n||("click"!==t||o||r.push([V,R,void 0,{capture:!0}]),"hover"===t&&r.push([ze,E])),o&&r.push([V,R,void 0,{capture:!0}]),("show"===e.displayDirective||e.animated&&w.value)&&r.push([U,e.show]),r})),M=D((()=>{const{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:o},self:{space:r,spaceArrow:n,padding:a,fontSize:l,textColor:s,dividerColor:i,color:d,boxShadow:u,borderRadius:p,arrowHeight:h,arrowOffset:f,arrowOffsetVertical:v}}=c.value;return{"--n-box-shadow":u,"--n-bezier":e,"--n-bezier-ease-in":t,"--n-bezier-ease-out":o,"--n-font-size":l,"--n-text-color":s,"--n-color":d,"--n-divider-color":i,"--n-border-radius":p,"--n-arrow-height":h,"--n-arrow-offset":f,"--n-arrow-offset-vertical":v,"--n-padding":a,"--n-space":r,"--n-space-arrow":n}})),C=D((()=>{const t="trigger"===e.width?void 0:G(e.width),o=[];t&&o.push({width:t});const{maxWidth:r,minWidth:n}=e;return r&&o.push({maxWidth:G(r)}),n&&o.push({maxWidth:G(n)}),p||o.push(M.value),o})),B=p?X("popover",void 0,M,e):void 0;function z(t){"hover"===e.trigger&&e.keepAliveOnHover&&e.show&&v.handleMouseEnter(t)}function T(t){"hover"===e.trigger&&e.keepAliveOnHover&&v.handleMouseLeave(t)}function E(t){"hover"!==e.trigger||k().contains(K(t))||v.handleMouseMoveOutside(t)}function R(t){("click"===e.trigger&&!k().contains(K(t))||e.onClickoutside)&&v.handleClickOutside(t)}function k(){return v.getTriggerElement()}return v.setBodyInstance({syncPosition:function(){var e;null===(e=f.value)||void 0===e||e.syncPosition()}}),t((()=>{v.setBodyInstance(null)})),y($(e,"show"),(t=>{e.animated||(b.value=!!t)})),h(s,m),h(l,null),h(a,null),{displayed:w,namespace:d,isMounted:v.isMountedRef,zIndex:v.zIndexRef,followerRef:f,adjustedTo:we(e),followerEnabled:b,renderContentNode:function(){if(null==B||B.onRender(),!("show"===e.displayDirective||e.show||e.animated&&w.value))return null;let t;const n=v.internalRenderBodyRef.value,{value:a}=u;if(n)t=n([`${a}-popover-shared`,null==B?void 0:B.themeClass.value,e.overlap&&`${a}-popover-shared--overlap`,e.showArrow&&`${a}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${a}-popover-shared--center-arrow`],m,C.value,z,T);else{const{value:n}=v.extraClassRef,{internalTrapFocus:l}=e,s=!Q(o.header)||!Q(o.footer),i=()=>{var t,r;const n=s?S(ee,null,Z(o.header,(t=>t?S("div",{class:[`${a}-popover__header`,e.headerClass],style:e.headerStyle},t):null)),Z(o.default,(t=>t?S("div",{class:[`${a}-popover__content`,e.contentClass],style:e.contentStyle},o):null)),Z(o.footer,(t=>t?S("div",{class:[`${a}-popover__footer`,e.footerClass],style:e.footerStyle},t):null))):e.scrollable?null===(t=o.default)||void 0===t?void 0:t.call(o):S("div",{class:[`${a}-popover__content`,e.contentClass],style:e.contentStyle},o);return[e.scrollable?S(te,{contentClass:s?void 0:`${a}-popover__content ${null!==(r=e.contentClass)&&void 0!==r?r:""}`,contentStyle:s?void 0:e.contentStyle},{default:()=>n}):n,e.showArrow?qe({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:a}):null]};t=S("div",J({class:[`${a}-popover`,`${a}-popover-shared`,null==B?void 0:B.themeClass.value,n.map((e=>`${a}-${e}`)),{[`${a}-popover--scrollable`]:e.scrollable,[`${a}-popover--show-header-or-footer`]:s,[`${a}-popover--raw`]:e.raw,[`${a}-popover-shared--overlap`]:e.overlap,[`${a}-popover-shared--show-arrow`]:e.showArrow,[`${a}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:m,style:C.value,onKeydown:v.handleKeydown,onMouseenter:z,onMouseleave:T},r),l?S(q,{active:e.show,autoFocus:!0},{default:i}):i())}return g(t,x.value)}}},render(){return S(Ne,{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:"trigger"===this.width?"target":void 0,teleportDisabled:this.adjustedTo===we.tdkey},{default:()=>this.animated?S(Y,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;null===(e=this.internalOnAfterLeave)||void 0===e||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Ze=Object.keys(Qe),et={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};const tt={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:we.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},ot=c({name:"Popover",inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign({},F.props),tt),{internalOnAfterLeave:Function,internalRenderBody:Function}),__popover__:!0,setup(e){const t=x(),o=i(null),r=D((()=>e.show)),n=i(e.defaultShow),a=se(r,n),l=p((()=>!e.disabled&&a.value)),s=()=>{if(e.disabled)return!0;const{getDisabled:t}=e;return!!(null==t?void 0:t())},d=()=>!s()&&a.value,u=ie(e,["arrow","showArrow"]),c=D((()=>!e.overlap&&u.value));let f=null;const v=i(null),g=i(null),m=p((()=>void 0!==e.x&&void 0!==e.y));function b(t){const{"onUpdate:show":o,onUpdateShow:r,onShow:a,onHide:l}=e;n.value=t,o&&le(o,t),r&&le(r,t),t&&a&&le(a,!0),t&&l&&le(l,!1)}function w(){const{value:e}=v;e&&(window.clearTimeout(e),v.value=null)}function y(){const{value:e}=g;e&&(window.clearTimeout(e),g.value=null)}function S(){const t=s();if("hover"===e.trigger&&!t){if(y(),null!==v.value)return;if(d())return;const t=()=>{b(!0),v.value=null},{delay:o}=e;0===o?t():v.value=window.setTimeout(t,o)}}function M(){const t=s();if("hover"===e.trigger&&!t){if(w(),null!==g.value)return;if(!d())return;const t=()=>{b(!1),g.value=null},{duration:o}=e;0===o?t():g.value=window.setTimeout(t,o)}}h("NPopover",{getTriggerElement:function(){var e;return null===(e=o.value)||void 0===e?void 0:e.targetRef},handleKeydown:function(t){e.internalTrapFocus&&"Escape"===t.key&&(w(),y(),b(!1))},handleMouseEnter:S,handleMouseLeave:M,handleClickOutside:function(t){var o;d()&&("click"===e.trigger&&(w(),y(),b(!1)),null===(o=e.onClickoutside)||void 0===o||o.call(e,t))},handleMouseMoveOutside:function(){M()},setBodyInstance:function(e){f=e},positionManuallyRef:m,isMountedRef:t,zIndexRef:$(e,"zIndex"),extraClassRef:$(e,"internalExtraClass"),internalRenderBodyRef:$(e,"internalRenderBody")}),L((()=>{a.value&&s()&&b(!1)}));return{binderInstRef:o,positionManually:m,mergedShowConsideringDisabledProp:l,uncontrolledShow:n,mergedShowArrow:c,getMergedShow:d,setShow:function(e){n.value=e},handleClick:function(){if("click"===e.trigger&&!s()){w(),y();b(!d())}},handleMouseEnter:S,handleMouseLeave:M,handleFocus:function(){const t=s();if("focus"===e.trigger&&!t){if(d())return;b(!0)}},handleBlur:function(){const t=s();if("focus"===e.trigger&&!t){if(!d())return;b(!1)}},syncPosition:function(){f&&f.syncPosition()}}},render(){var e;const{positionManually:t,$slots:o}=this;let r,n=!1;if(!t&&(r=o.activator?oe(o,"activator"):oe(o,"trigger"),r)){r=re(r),r=r.type===ne?S("span",[r]):r;const o={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(null===(e=r.type)||void 0===e?void 0:e.__popover__)n=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[o,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[o];else{const{internalInheritedEventHandlers:e}=this,n=[o,...e],i={onBlur:e=>{n.forEach((t=>{t.onBlur(e)}))},onFocus:e=>{n.forEach((t=>{t.onFocus(e)}))},onClick:e=>{n.forEach((t=>{t.onClick(e)}))},onMouseenter:e=>{n.forEach((t=>{t.onMouseenter(e)}))},onMouseleave:e=>{n.forEach((t=>{t.onMouseleave(e)}))}};a=r,l=e?"nested":t?"manual":this.trigger,s=i,et[l].forEach((e=>{a.props?a.props=Object.assign({},a.props):a.props={};const t=a.props[e],o=s[e];a.props[e]=t?(...e)=>{t(...e),o(...e)}:o}))}}var a,l,s;return S(Me,{ref:"binderInstRef",syncTarget:!n,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const e=this.getMergedShow();return[this.internalTrapFocus&&e?g(S("div",{style:{position:"fixed",inset:0}}),[[M,{enabled:e,zIndex:this.zIndex}]]):null,t?null:S(Ce,null,{default:()=>r}),S(Je,ae(this.$props,Ze,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:e})),{default:()=>{var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)},header:()=>{var e,t;return null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e)},footer:()=>{var e,t;return null===(t=(e=this.$slots).footer)||void 0===t?void 0:t.call(e)}})]}})}});export{Me as B,Ce as V,ot as _,Ne as a,Te as b,Ee as c,me as d,ge as i,ve as o,tt as p,qe as r,we as u}; diff --git a/docs/assets/RadioGroup-BozaTzAB.js b/docs/assets/RadioGroup-BozaTzAB.js new file mode 100644 index 0000000..00ef15a --- /dev/null +++ b/docs/assets/RadioGroup-BozaTzAB.js @@ -0,0 +1 @@ +import{au as e,i as o,ax as n,a as r,az as t,b1 as a,D as i,aD as d,z as l,A as s,Q as u,y as b,U as c,C as v,d as p,aW as g,a4 as h,F as f,l as m,Y as x,G as R,a9 as z,v as C}from"./index-BT0ZcDkn.js";import{u as k}from"./use-merged-state-D7wGS6Km.js";import{g as y}from"./get-slot-BjAOOWF7.js";const w={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},B=e("n-radio-group");function S(e){const l=o(B,null),s=n(e,{mergedSize(o){const{size:n}=e;if(void 0!==n)return n;if(l){const{mergedSizeRef:{value:e}}=l;if(void 0!==e)return e}return o?o.mergedSize.value:"medium"},mergedDisabled:o=>!!e.disabled||(!!(null==l?void 0:l.disabledRef.value)||!!(null==o?void 0:o.disabled.value))}),{mergedSizeRef:u,mergedDisabledRef:b}=s,c=r(null),v=r(null),p=r(e.defaultChecked),g=t(e,"checked"),h=k(g,p),f=a((()=>l?l.valueRef.value===e.value:h.value)),m=a((()=>{const{name:o}=e;return void 0!==o?o:l?l.nameRef.value:void 0})),x=r(!1);function R(){b.value||f.value||function(){if(l){const{doUpdateValue:o}=l,{value:n}=e;d(o,n)}else{const{onUpdateChecked:o,"onUpdate:checked":n}=e,{nTriggerFormInput:r,nTriggerFormChange:t}=s;o&&d(o,!0),n&&d(n,!0),r(),t(),p.value=!0}}()}return{mergedClsPrefix:l?l.mergedClsPrefixRef:i(e).mergedClsPrefixRef,inputRef:c,labelRef:v,mergedName:m,mergedDisabled:b,renderSafeChecked:f,focus:x,mergedSize:u,handleRadioInputChange:function(){R(),c.value&&(c.value.checked=f.value)},handleRadioInputBlur:function(){x.value=!1},handleRadioInputFocus:function(){x.value=!0}}}const F=l("radio-group","\n display: inline-block;\n font-size: var(--n-font-size);\n",[s("splitor","\n display: inline-block;\n vertical-align: bottom;\n width: 1px;\n transition:\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n background: var(--n-button-border-color);\n ",[u("checked",{backgroundColor:"var(--n-button-border-color-active)"}),u("disabled",{opacity:"var(--n-opacity-disabled)"})]),u("button-group","\n white-space: nowrap;\n height: var(--n-height);\n line-height: var(--n-height);\n ",[l("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),s("splitor",{height:"var(--n-height)"})]),l("radio-button","\n vertical-align: bottom;\n outline: none;\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n display: inline-block;\n box-sizing: border-box;\n padding-left: 14px;\n padding-right: 14px;\n white-space: nowrap;\n transition:\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n background: var(--n-button-color);\n color: var(--n-button-text-color);\n border-top: 1px solid var(--n-button-border-color);\n border-bottom: 1px solid var(--n-button-border-color);\n ",[l("radio-input","\n pointer-events: none;\n position: absolute;\n border: 0;\n border-radius: inherit;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n opacity: 0;\n z-index: 1;\n "),s("state-border","\n z-index: 1;\n pointer-events: none;\n position: absolute;\n box-shadow: var(--n-button-box-shadow);\n transition: box-shadow .3s var(--n-bezier);\n left: -1px;\n bottom: -1px;\n right: -1px;\n top: -1px;\n "),b("&:first-child","\n border-top-left-radius: var(--n-button-border-radius);\n border-bottom-left-radius: var(--n-button-border-radius);\n border-left: 1px solid var(--n-button-border-color);\n ",[s("state-border","\n border-top-left-radius: var(--n-button-border-radius);\n border-bottom-left-radius: var(--n-button-border-radius);\n ")]),b("&:last-child","\n border-top-right-radius: var(--n-button-border-radius);\n border-bottom-right-radius: var(--n-button-border-radius);\n border-right: 1px solid var(--n-button-border-color);\n ",[s("state-border","\n border-top-right-radius: var(--n-button-border-radius);\n border-bottom-right-radius: var(--n-button-border-radius);\n ")]),c("disabled","\n cursor: pointer;\n ",[b("&:hover",[s("state-border","\n transition: box-shadow .3s var(--n-bezier);\n box-shadow: var(--n-button-box-shadow-hover);\n "),c("checked",{color:"var(--n-button-text-color-hover)"})]),u("focus",[b("&:not(:active)",[s("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),u("checked","\n background: var(--n-button-color-active);\n color: var(--n-button-text-color-active);\n border-color: var(--n-button-border-color-active);\n "),u("disabled","\n cursor: not-allowed;\n opacity: var(--n-opacity-disabled);\n ")])]);const T=p({name:"RadioGroup",props:Object.assign(Object.assign({},v.props),{name:String,value:[String,Number,Boolean],defaultValue:{type:[String,Number,Boolean],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),setup(e){const o=r(null),{mergedSizeRef:a,mergedDisabledRef:l,nTriggerFormChange:s,nTriggerFormInput:u,nTriggerFormBlur:b,nTriggerFormFocus:c}=n(e),{mergedClsPrefixRef:p,inlineThemeDisabled:z,mergedRtlRef:C}=i(e),y=v("Radio","-radio-group",F,g,e,p),w=r(e.defaultValue),S=t(e,"value"),T=k(S,w);h(B,{mergedClsPrefixRef:p,nameRef:t(e,"name"),valueRef:T,disabledRef:l,mergedSizeRef:a,doUpdateValue:function(o){const{onUpdateValue:n,"onUpdate:value":r}=e;n&&d(n,o),r&&d(r,o),w.value=o,s(),u()}});const U=f("Radio",C,p),V=m((()=>{const{value:e}=a,{common:{cubicBezierEaseInOut:o},self:{buttonBorderColor:n,buttonBorderColorActive:r,buttonBorderRadius:t,buttonBoxShadow:i,buttonBoxShadowFocus:d,buttonBoxShadowHover:l,buttonColor:s,buttonColorActive:u,buttonTextColor:b,buttonTextColorActive:c,buttonTextColorHover:v,opacityDisabled:p,[x("buttonHeight",e)]:g,[x("fontSize",e)]:h}}=y.value;return{"--n-font-size":h,"--n-bezier":o,"--n-button-border-color":n,"--n-button-border-color-active":r,"--n-button-border-radius":t,"--n-button-box-shadow":i,"--n-button-box-shadow-focus":d,"--n-button-box-shadow-hover":l,"--n-button-color":s,"--n-button-color-active":u,"--n-button-text-color":b,"--n-button-text-color-hover":v,"--n-button-text-color-active":c,"--n-height":g,"--n-opacity-disabled":p}})),_=z?R("radio-group",m((()=>a.value[0])),V,e):void 0;return{selfElRef:o,rtlEnabled:U,mergedClsPrefix:p,mergedValue:T,handleFocusout:function(e){const{value:n}=o;n&&(n.contains(e.relatedTarget)||b())},handleFocusin:function(e){const{value:n}=o;n&&(n.contains(e.relatedTarget)||c())},cssVars:z?void 0:V,themeClass:null==_?void 0:_.themeClass,onRender:null==_?void 0:_.onRender}},render(){var e;const{mergedValue:o,mergedClsPrefix:n,handleFocusin:r,handleFocusout:t}=this,{children:a,isButtonGroup:i}=function(e,o,n){var r;const t=[];let a=!1;for(let i=0;iz,404:()=>p,418:()=>g,500:()=>x,info:()=>e(a,null),success:()=>e(f,null),warning:()=>e(d,null),error:()=>e(u,null)},C=l({name:"Result",props:Object.assign(Object.assign({},i.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:s}=n(e),l=i("Result","-result",m,v,e,t),c=r((()=>{const{size:t,status:s}=e,{common:{cubicBezierEaseInOut:n},self:{textColor:i,lineHeight:r,titleTextColor:o,titleFontWeight:c,[h("iconColor",s)]:a,[h("fontSize",t)]:f,[h("titleFontSize",t)]:d,[h("iconSize",t)]:u}}=l.value;return{"--n-bezier":n,"--n-font-size":f,"--n-icon-size":u,"--n-line-height":r,"--n-text-color":i,"--n-title-font-size":d,"--n-title-font-weight":c,"--n-title-text-color":o,"--n-icon-color":a||""}})),a=s?o("result",r((()=>{const{size:t,status:s}=e;let l="";return t&&(l+=t[0]),s&&(l+=s[0]),l})),c,e):void 0;return{mergedClsPrefix:t,cssVars:s?void 0:c,themeClass:null==a?void 0:a.themeClass,onRender:null==a?void 0:a.onRender}},render(){var t;const{status:s,$slots:l,mergedClsPrefix:n,onRender:i}=this;return null==i||i(),e("div",{class:[`${n}-result`,this.themeClass],style:this.cssVars},e("div",{class:`${n}-result-icon`},(null===(t=l.icon)||void 0===t?void 0:t.call(l))||e(c,{clsPrefix:n},{default:()=>w[s]()})),e("div",{class:`${n}-result-header`},this.title?e("div",{class:`${n}-result-header__title`},this.title):null,this.description?e("div",{class:`${n}-result-header__description`},this.description):null),l.default&&e("div",{class:`${n}-result-content`},l),l.footer&&e("div",{class:`${n}-result-footer`},l.footer()))}});export{C as _}; diff --git a/docs/assets/Select-D_I2Mr2d.js b/docs/assets/Select-D_I2Mr2d.js new file mode 100644 index 0000000..e559918 --- /dev/null +++ b/docs/assets/Select-D_I2Mr2d.js @@ -0,0 +1 @@ +import{a2 as e,cM as n,aL as o,d as t,i as l,b1 as r,bE as i,v as a,N as s,T as d,z as u,A as c,Q as p,y as h,U as v,aw as b,C as f,D as g,F as m,az as w,cN as y,a as x,l as F,a0 as C,an as O,a8 as S,Y as P,bs as z,a4 as T,G as k,x as R,a$ as M,av as B,aI as $,cO as A,a1 as I,cP as D,H as E,cQ as _,ax as j,aA as N,aB as L,bG as K,aC as W,aF as V,aE as U,aD as H}from"./index-BT0ZcDkn.js";import{u as G}from"./use-merged-state-D7wGS6Km.js";import{u as q}from"./use-compitable-CHcH6xDN.js";import{b as Q,h as Y,c as Z}from"./create-Bylz8BGN.js";import{u as J}from"./use-locale-CbMPSc0o.js";import{i as X,d as ee,_ as ne,u as oe,B as te,V as le,a as re}from"./Popover-3mPJ01hC.js";import{a as ie}from"./Input-D2qMgPO1.js";import{T as ae}from"./Tag-D4OMG_5z.js";import{V as se}from"./index-LLZlmyqL.js";import{F as de,V as ue}from"./FocusDetector-C7V71fRC.js";import{F as ce}from"./Checkmark-DuWLWy-v.js";import{_ as pe}from"./Empty-C_CzYco1.js";function he(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function ve(e){const n=e.filter((e=>void 0!==e));if(0!==n.length)return 1===n.length?n[0]:n=>{e.forEach((e=>{e&&e(n)}))}}function be(t,l){l&&(e((()=>{const{value:e}=t;e&&n.registerHandler(e,l)})),o((()=>{const{value:e}=t;e&&n.unregisterHandler(e)})))}const fe=t({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:n,pendingTmNodeRef:o,multipleRef:t,valueSetRef:i,renderLabelRef:a,renderOptionRef:s,labelFieldRef:d,valueFieldRef:u,showCheckmarkRef:c,nodePropsRef:p,handleOptionClick:h,handleOptionMouseEnter:v}=l(X),b=r((()=>{const{value:n}=o;return!!n&&e.tmNode.key===n.key}));return{multiple:t,isGrouped:r((()=>{const{tmNode:n}=e,{parent:o}=n;return o&&"group"===o.rawNode.type})),showCheckmark:c,nodeProps:p,isPending:b,isSelected:r((()=>{const{value:o}=n,{value:l}=t;if(null===o)return!1;const r=e.tmNode.rawNode[u.value];if(l){const{value:e}=i;return e.has(r)}return o===r})),labelField:d,renderLabel:a,renderOption:s,handleMouseMove:function(n){const{tmNode:o}=e,{value:t}=b;o.disabled||t||v(n,o)},handleMouseEnter:function(n){const{tmNode:o}=e;o.disabled||v(n,o)},handleClick:function(n){const{tmNode:o}=e;o.disabled||h(n,o)}}},render(){const{clsPrefix:e,tmNode:{rawNode:n},isSelected:o,isPending:t,isGrouped:l,showCheckmark:r,nodeProps:u,renderOption:c,renderLabel:p,handleClick:h,handleMouseEnter:v,handleMouseMove:b}=this,f=function(e,n){return a(d,{name:"fade-in-scale-up-transition"},{default:()=>e?a(s,{clsPrefix:n,class:`${n}-base-select-option__check`},{default:()=>a(ce)}):null})}(o,e),g=p?[p(n,o),r&&f]:[i(n[this.labelField],n,o),r&&f],m=null==u?void 0:u(n),w=a("div",Object.assign({},m,{class:[`${e}-base-select-option`,n.class,null==m?void 0:m.class,{[`${e}-base-select-option--disabled`]:n.disabled,[`${e}-base-select-option--selected`]:o,[`${e}-base-select-option--grouped`]:l,[`${e}-base-select-option--pending`]:t,[`${e}-base-select-option--show-checkmark`]:r}],style:[(null==m?void 0:m.style)||"",n.style||""],onClick:ve([h,null==m?void 0:m.onClick]),onMouseenter:ve([v,null==m?void 0:m.onMouseenter]),onMousemove:ve([b,null==m?void 0:m.onMousemove])}),a("div",{class:`${e}-base-select-option__content`},g));return n.render?n.render({node:w,option:n,selected:o}):c?c({node:w,option:n,selected:o}):w}}),ge=t({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:n,labelFieldRef:o,nodePropsRef:t}=l(X);return{labelField:o,nodeProps:t,renderLabel:e,renderOption:n}},render(){const{clsPrefix:e,renderLabel:n,renderOption:o,nodeProps:t,tmNode:{rawNode:l}}=this,r=null==t?void 0:t(l),s=n?n(l,!1):i(l[this.labelField],l,!1),d=a("div",Object.assign({},r,{class:[`${e}-base-select-group-header`,null==r?void 0:r.class]}),s);return l.render?l.render({node:d,option:l}):o?o({node:d,option:l,selected:!1}):d}}),me=u("base-select-menu","\n line-height: 1.5;\n outline: none;\n z-index: 0;\n position: relative;\n border-radius: var(--n-border-radius);\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n background-color: var(--n-color);\n",[u("scrollbar","\n max-height: var(--n-height);\n "),u("virtual-list","\n max-height: var(--n-height);\n "),u("base-select-option","\n min-height: var(--n-option-height);\n font-size: var(--n-option-font-size);\n display: flex;\n align-items: center;\n ",[c("content","\n z-index: 1;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n ")]),u("base-select-group-header","\n min-height: var(--n-option-height);\n font-size: .93em;\n display: flex;\n align-items: center;\n "),u("base-select-menu-option-wrapper","\n position: relative;\n width: 100%;\n "),c("loading, empty","\n display: flex;\n padding: 12px 32px;\n flex: 1;\n justify-content: center;\n "),c("loading","\n color: var(--n-loading-color);\n font-size: var(--n-loading-size);\n "),c("header","\n padding: 8px var(--n-option-padding-left);\n font-size: var(--n-option-font-size);\n transition: \n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-action-divider-color);\n color: var(--n-action-text-color);\n "),c("action","\n padding: 8px var(--n-option-padding-left);\n font-size: var(--n-option-font-size);\n transition: \n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n border-top: 1px solid var(--n-action-divider-color);\n color: var(--n-action-text-color);\n "),u("base-select-group-header","\n position: relative;\n cursor: default;\n padding: var(--n-option-padding);\n color: var(--n-group-header-text-color);\n "),u("base-select-option","\n cursor: pointer;\n position: relative;\n padding: var(--n-option-padding);\n transition:\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n box-sizing: border-box;\n color: var(--n-option-text-color);\n opacity: 1;\n ",[p("show-checkmark","\n padding-right: calc(var(--n-option-padding-right) + 20px);\n "),h("&::before",'\n content: "";\n position: absolute;\n left: 4px;\n right: 4px;\n top: 0;\n bottom: 0;\n border-radius: var(--n-border-radius);\n transition: background-color .3s var(--n-bezier);\n '),h("&:active","\n color: var(--n-option-text-color-pressed);\n "),p("grouped","\n padding-left: calc(var(--n-option-padding-left) * 1.5);\n "),p("pending",[h("&::before","\n background-color: var(--n-option-color-pending);\n ")]),p("selected","\n color: var(--n-option-text-color-active);\n ",[h("&::before","\n background-color: var(--n-option-color-active);\n "),p("pending",[h("&::before","\n background-color: var(--n-option-color-active-pending);\n ")])]),p("disabled","\n cursor: not-allowed;\n ",[v("selected","\n color: var(--n-option-text-color-disabled);\n "),p("selected","\n opacity: var(--n-option-opacity-disabled);\n ")]),c("check","\n font-size: 16px;\n position: absolute;\n right: calc(var(--n-option-padding-right) - 4px);\n top: calc(50% - 7px);\n color: var(--n-option-check-color);\n transition: color .3s var(--n-bezier);\n ",[b({enterScale:"0.5"})])])]),we=t({name:"InternalSelectMenu",props:Object.assign(Object.assign({},f.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(n){const{mergedClsPrefixRef:t,mergedRtlRef:l}=g(n),r=m("InternalSelectMenu",l,t),i=f("InternalSelectMenu","-internal-select-menu",me,y,n,w(n,"clsPrefix")),a=x(null),s=x(null),d=x(null),u=F((()=>n.treeMate.getFlattenedNodes())),c=F((()=>Q(u.value))),p=x(null);function h(){const{value:e}=p;e&&!n.treeMate.getNode(e.key)&&(p.value=null)}let v;C((()=>n.show),(e=>{e?v=C((()=>n.treeMate),(()=>{n.resetMenuOnOptionsChange?(n.autoPending?function(){const{treeMate:e}=n;let o=null;const{value:t}=n;null===t?o=e.getFirstAvailableNode():(o=n.multiple?e.getNode((t||[])[(t||[]).length-1]):e.getNode(t),o&&!o.disabled||(o=e.getFirstAvailableNode())),A(o||null)}():h(),O(I)):h()}),{immediate:!0}):null==v||v()}),{immediate:!0}),o((()=>{null==v||v()}));const b=F((()=>S(i.value.self[P("optionHeight",n.size)]))),R=F((()=>z(i.value.self[P("padding",n.size)]))),M=F((()=>n.multiple&&Array.isArray(n.value)?new Set(n.value):new Set)),B=F((()=>{const e=u.value;return e&&0===e.length}));function $(e){const{onScroll:o}=n;o&&o(e)}function A(e,n=!1){p.value=e,n&&I()}function I(){var e,o;const t=p.value;if(!t)return;const l=c.value(t.key);null!==l&&(n.virtualScroll?null===(e=s.value)||void 0===e||e.scrollTo({index:l}):null===(o=d.value)||void 0===o||o.scrollTo({index:l,elSize:b.value}))}T(X,{handleOptionMouseEnter:function(e,n){n.disabled||A(n,!1)},handleOptionClick:function(e,o){o.disabled||function(e){const{onToggle:o}=n;o&&o(e)}(o)},valueSetRef:M,pendingTmNodeRef:p,nodePropsRef:w(n,"nodeProps"),showCheckmarkRef:w(n,"showCheckmark"),multipleRef:w(n,"multiple"),valueRef:w(n,"value"),renderLabelRef:w(n,"renderLabel"),renderOptionRef:w(n,"renderOption"),labelFieldRef:w(n,"labelField"),valueFieldRef:w(n,"valueField")}),T(ee,a),e((()=>{const{value:e}=d;e&&e.sync()}));const D=F((()=>{const{size:e}=n,{common:{cubicBezierEaseInOut:o},self:{height:t,borderRadius:l,color:r,groupHeaderTextColor:a,actionDividerColor:s,optionTextColorPressed:d,optionTextColor:u,optionTextColorDisabled:c,optionTextColorActive:p,optionOpacityDisabled:h,optionCheckColor:v,actionTextColor:b,optionColorPending:f,optionColorActive:g,loadingColor:m,loadingSize:w,optionColorActivePending:y,[P("optionFontSize",e)]:x,[P("optionHeight",e)]:F,[P("optionPadding",e)]:C}}=i.value;return{"--n-height":t,"--n-action-divider-color":s,"--n-action-text-color":b,"--n-bezier":o,"--n-border-radius":l,"--n-color":r,"--n-option-font-size":x,"--n-group-header-text-color":a,"--n-option-check-color":v,"--n-option-color-pending":f,"--n-option-color-active":g,"--n-option-color-active-pending":y,"--n-option-height":F,"--n-option-opacity-disabled":h,"--n-option-text-color":u,"--n-option-text-color-active":p,"--n-option-text-color-disabled":c,"--n-option-text-color-pressed":d,"--n-option-padding":C,"--n-option-padding-left":z(C,"left"),"--n-option-padding-right":z(C,"right"),"--n-loading-color":m,"--n-loading-size":w}})),{inlineThemeDisabled:E}=n,_=E?k("internal-select-menu",F((()=>n.size[0])),D,n):void 0,j={selfRef:a,next:function(){const{value:e}=p;e&&A(e.getNext({loop:!0}),!0)},prev:function(){const{value:e}=p;e&&A(e.getPrev({loop:!0}),!0)},getPendingTmNode:function(){const{value:e}=p;return e||null}};return be(a,n.onResize),Object.assign({mergedTheme:i,mergedClsPrefix:t,rtlEnabled:r,virtualListRef:s,scrollbarRef:d,itemSize:b,padding:R,flattenedNodes:u,empty:B,virtualListContainer(){const{value:e}=s;return null==e?void 0:e.listElRef},virtualListContent(){const{value:e}=s;return null==e?void 0:e.itemsElRef},doScroll:$,handleFocusin:function(e){var o,t;(null===(o=a.value)||void 0===o?void 0:o.contains(e.target))&&(null===(t=n.onFocus)||void 0===t||t.call(n,e))},handleFocusout:function(e){var o,t;(null===(o=a.value)||void 0===o?void 0:o.contains(e.relatedTarget))||null===(t=n.onBlur)||void 0===t||t.call(n,e)},handleKeyUp:function(e){var o;Y(e,"action")||null===(o=n.onKeyup)||void 0===o||o.call(n,e)},handleKeyDown:function(e){var o;Y(e,"action")||null===(o=n.onKeydown)||void 0===o||o.call(n,e)},handleMouseDown:function(e){var o;null===(o=n.onMousedown)||void 0===o||o.call(n,e),n.focusable||e.preventDefault()},handleVirtualListResize:function(){var e;null===(e=d.value)||void 0===e||e.sync()},handleVirtualListScroll:function(e){var n;null===(n=d.value)||void 0===n||n.sync(),$(e)},cssVars:E?void 0:D,themeClass:null==_?void 0:_.themeClass,onRender:null==_?void 0:_.onRender},j)},render(){const{$slots:e,virtualScroll:n,clsPrefix:o,mergedTheme:t,themeClass:l,onRender:r}=this;return null==r||r(),a("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${o}-base-select-menu`,this.rtlEnabled&&`${o}-base-select-menu--rtl`,l,this.multiple&&`${o}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},R(e.header,(e=>e&&a("div",{class:`${o}-base-select-menu__header`,"data-header":!0,key:"header"},e))),this.loading?a("div",{class:`${o}-base-select-menu__loading`},a(M,{clsPrefix:o,strokeWidth:20})):this.empty?a("div",{class:`${o}-base-select-menu__empty`,"data-empty":!0},$(e.empty,(()=>[a(pe,{theme:t.peers.Empty,themeOverrides:t.peerOverrides.Empty,size:this.size})]))):a(B,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,scrollable:this.scrollable,container:n?this.virtualListContainer:void 0,content:n?this.virtualListContent:void 0,onScroll:n?void 0:this.doScroll},{default:()=>n?a(ue,{ref:"virtualListRef",class:`${o}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:e})=>e.isGroup?a(ge,{key:e.key,clsPrefix:o,tmNode:e}):e.ignored?null:a(fe,{clsPrefix:o,key:e.key,tmNode:e})}):a("div",{class:`${o}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map((e=>e.isGroup?a(ge,{key:e.key,clsPrefix:o,tmNode:e}):a(fe,{clsPrefix:o,key:e.key,tmNode:e}))))}),R(e.action,(e=>e&&[a("div",{class:`${o}-base-select-menu__action`,"data-action":!0,key:"action"},e),a(de,{onFocus:this.onTabOut,key:"focus-detector"})])))}}),ye=h([u("base-selection","\n --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left);\n --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left);\n position: relative;\n z-index: auto;\n box-shadow: none;\n width: 100%;\n max-width: 100%;\n display: inline-block;\n vertical-align: bottom;\n border-radius: var(--n-border-radius);\n min-height: var(--n-height);\n line-height: 1.5;\n font-size: var(--n-font-size);\n ",[u("base-loading","\n color: var(--n-loading-color);\n "),u("base-selection-tags","min-height: var(--n-height);"),c("border, state-border","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border: var(--n-border);\n border-radius: inherit;\n transition:\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n "),c("state-border","\n z-index: 1;\n border-color: #0000;\n "),u("base-suffix","\n cursor: pointer;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 10px;\n ",[c("arrow","\n font-size: var(--n-arrow-size);\n color: var(--n-arrow-color);\n transition: color .3s var(--n-bezier);\n ")]),u("base-selection-overlay","\n display: flex;\n align-items: center;\n white-space: nowrap;\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: var(--n-padding-single);\n transition: color .3s var(--n-bezier);\n ",[c("wrapper","\n flex-basis: 0;\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n ")]),u("base-selection-placeholder","\n color: var(--n-placeholder-color);\n ",[c("inner","\n max-width: 100%;\n overflow: hidden;\n ")]),u("base-selection-tags","\n cursor: pointer;\n outline: none;\n box-sizing: border-box;\n position: relative;\n z-index: auto;\n display: flex;\n padding: var(--n-padding-multiple);\n flex-wrap: wrap;\n align-items: center;\n width: 100%;\n vertical-align: bottom;\n background-color: var(--n-color);\n border-radius: inherit;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n "),u("base-selection-label","\n height: var(--n-height);\n display: inline-flex;\n width: 100%;\n vertical-align: bottom;\n cursor: pointer;\n outline: none;\n z-index: auto;\n box-sizing: border-box;\n position: relative;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n border-radius: inherit;\n background-color: var(--n-color);\n align-items: center;\n ",[u("base-selection-input","\n font-size: inherit;\n line-height: inherit;\n outline: none;\n cursor: pointer;\n box-sizing: border-box;\n border:none;\n width: 100%;\n padding: var(--n-padding-single);\n background-color: #0000;\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n caret-color: var(--n-caret-color);\n ",[c("content","\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap; \n ")]),c("render-label","\n color: var(--n-text-color);\n ")]),v("disabled",[h("&:hover",[c("state-border","\n box-shadow: var(--n-box-shadow-hover);\n border: var(--n-border-hover);\n ")]),p("focus",[c("state-border","\n box-shadow: var(--n-box-shadow-focus);\n border: var(--n-border-focus);\n ")]),p("active",[c("state-border","\n box-shadow: var(--n-box-shadow-active);\n border: var(--n-border-active);\n "),u("base-selection-label","background-color: var(--n-color-active);"),u("base-selection-tags","background-color: var(--n-color-active);")])]),p("disabled","cursor: not-allowed;",[c("arrow","\n color: var(--n-arrow-color-disabled);\n "),u("base-selection-label","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n ",[u("base-selection-input","\n cursor: not-allowed;\n color: var(--n-text-color-disabled);\n "),c("render-label","\n color: var(--n-text-color-disabled);\n ")]),u("base-selection-tags","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n "),u("base-selection-placeholder","\n cursor: not-allowed;\n color: var(--n-placeholder-color-disabled);\n ")]),u("base-selection-input-tag","\n height: calc(var(--n-height) - 6px);\n line-height: calc(var(--n-height) - 6px);\n outline: none;\n display: none;\n position: relative;\n margin-bottom: 3px;\n max-width: 100%;\n vertical-align: bottom;\n ",[c("input","\n font-size: inherit;\n font-family: inherit;\n min-width: 1px;\n padding: 0;\n background-color: #0000;\n outline: none;\n border: none;\n max-width: 100%;\n overflow: hidden;\n width: 1em;\n line-height: inherit;\n cursor: pointer;\n color: var(--n-text-color);\n caret-color: var(--n-caret-color);\n "),c("mirror","\n position: absolute;\n left: 0;\n top: 0;\n white-space: pre;\n visibility: hidden;\n user-select: none;\n -webkit-user-select: none;\n opacity: 0;\n ")]),["warning","error"].map((e=>p(`${e}-status`,[c("state-border",`border: var(--n-border-${e});`),v("disabled",[h("&:hover",[c("state-border",`\n box-shadow: var(--n-box-shadow-hover-${e});\n border: var(--n-border-hover-${e});\n `)]),p("active",[c("state-border",`\n box-shadow: var(--n-box-shadow-active-${e});\n border: var(--n-border-active-${e});\n `),u("base-selection-label",`background-color: var(--n-color-active-${e});`),u("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),p("focus",[c("state-border",`\n box-shadow: var(--n-box-shadow-focus-${e});\n border: var(--n-border-focus-${e});\n `)])])])))]),u("base-selection-popover","\n margin-bottom: -3px;\n display: flex;\n flex-wrap: wrap;\n margin-right: -8px;\n "),u("base-selection-tag-wrapper","\n max-width: 100%;\n display: inline-flex;\n padding: 0 7px 3px 0;\n ",[h("&:last-child","padding-right: 0;"),u("tag","\n font-size: 14px;\n max-width: 100%;\n ",[c("content","\n line-height: 1.25;\n text-overflow: ellipsis;\n overflow: hidden;\n ")])])]),xe=t({name:"InternalSelection",props:Object.assign(Object.assign({},f.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(n){const{mergedClsPrefixRef:o,mergedRtlRef:t}=g(n),l=m("InternalSelection",t,o),r=x(null),a=x(null),s=x(null),d=x(null),u=x(null),c=x(null),p=x(null),h=x(null),v=x(null),b=x(null),y=x(!1),S=x(!1),T=x(!1),R=f("InternalSelection","-internal-selection",ye,A,n,w(n,"clsPrefix")),M=F((()=>n.clearable&&!n.disabled&&(T.value||n.active))),B=F((()=>n.selectedOption?n.renderTag?n.renderTag({option:n.selectedOption,handleClose:()=>{}}):n.renderLabel?n.renderLabel(n.selectedOption,!0):i(n.selectedOption[n.labelField],n.selectedOption,!0):n.placeholder)),$=F((()=>{const e=n.selectedOption;if(e)return e[n.labelField]})),D=F((()=>n.multiple?!(!Array.isArray(n.selectedOptions)||!n.selectedOptions.length):null!==n.selectedOption));function E(){var e;const{value:o}=r;if(o){const{value:t}=a;t&&(t.style.width=`${o.offsetWidth}px`,"responsive"!==n.maxTagCount&&(null===(e=v.value)||void 0===e||e.sync({showAllItemsBeforeCalculate:!1})))}}function _(e){const{onPatternInput:o}=n;o&&o(e)}function j(e){!function(e){const{onDeleteOption:o}=n;o&&o(e)}(e)}C(w(n,"active"),(e=>{e||function(){const{value:e}=b;e&&(e.style.display="none")}()})),C(w(n,"pattern"),(()=>{n.multiple&&O(E)}));const N=x(!1);let L=null;let K=null;function W(){null!==K&&window.clearTimeout(K)}C(D,(e=>{e||(y.value=!1)})),e((()=>{I((()=>{const e=c.value;e&&(n.disabled?e.removeAttribute("tabindex"):e.tabIndex=S.value?-1:0)}))})),be(s,n.onResize);const{inlineThemeDisabled:V}=n,U=F((()=>{const{size:e}=n,{common:{cubicBezierEaseInOut:o},self:{borderRadius:t,color:l,placeholderColor:r,textColor:i,paddingSingle:a,paddingMultiple:s,caretColor:d,colorDisabled:u,textColorDisabled:c,placeholderColorDisabled:p,colorActive:h,boxShadowFocus:v,boxShadowActive:b,boxShadowHover:f,border:g,borderFocus:m,borderHover:w,borderActive:y,arrowColor:x,arrowColorDisabled:F,loadingColor:C,colorActiveWarning:O,boxShadowFocusWarning:S,boxShadowActiveWarning:T,boxShadowHoverWarning:k,borderWarning:M,borderFocusWarning:B,borderHoverWarning:$,borderActiveWarning:A,colorActiveError:I,boxShadowFocusError:D,boxShadowActiveError:E,boxShadowHoverError:_,borderError:j,borderFocusError:N,borderHoverError:L,borderActiveError:K,clearColor:W,clearColorHover:V,clearColorPressed:U,clearSize:H,arrowSize:G,[P("height",e)]:q,[P("fontSize",e)]:Q}}=R.value,Y=z(a),Z=z(s);return{"--n-bezier":o,"--n-border":g,"--n-border-active":y,"--n-border-focus":m,"--n-border-hover":w,"--n-border-radius":t,"--n-box-shadow-active":b,"--n-box-shadow-focus":v,"--n-box-shadow-hover":f,"--n-caret-color":d,"--n-color":l,"--n-color-active":h,"--n-color-disabled":u,"--n-font-size":Q,"--n-height":q,"--n-padding-single-top":Y.top,"--n-padding-multiple-top":Z.top,"--n-padding-single-right":Y.right,"--n-padding-multiple-right":Z.right,"--n-padding-single-left":Y.left,"--n-padding-multiple-left":Z.left,"--n-padding-single-bottom":Y.bottom,"--n-padding-multiple-bottom":Z.bottom,"--n-placeholder-color":r,"--n-placeholder-color-disabled":p,"--n-text-color":i,"--n-text-color-disabled":c,"--n-arrow-color":x,"--n-arrow-color-disabled":F,"--n-loading-color":C,"--n-color-active-warning":O,"--n-box-shadow-focus-warning":S,"--n-box-shadow-active-warning":T,"--n-box-shadow-hover-warning":k,"--n-border-warning":M,"--n-border-focus-warning":B,"--n-border-hover-warning":$,"--n-border-active-warning":A,"--n-color-active-error":I,"--n-box-shadow-focus-error":D,"--n-box-shadow-active-error":E,"--n-box-shadow-hover-error":_,"--n-border-error":j,"--n-border-focus-error":N,"--n-border-hover-error":L,"--n-border-active-error":K,"--n-clear-size":H,"--n-clear-color":W,"--n-clear-color-hover":V,"--n-clear-color-pressed":U,"--n-arrow-size":G}})),H=V?k("internal-selection",F((()=>n.size[0])),U,n):void 0;return{mergedTheme:R,mergedClearable:M,mergedClsPrefix:o,rtlEnabled:l,patternInputFocused:S,filterablePlaceholder:B,label:$,selected:D,showTagsPanel:y,isComposing:N,counterRef:p,counterWrapperRef:h,patternInputMirrorRef:r,patternInputRef:a,selfRef:s,multipleElRef:d,singleElRef:u,patternInputWrapperRef:c,overflowRef:v,inputTagElRef:b,handleMouseDown:function(e){n.active&&n.filterable&&e.target!==a.value&&e.preventDefault()},handleFocusin:function(e){var o;e.relatedTarget&&(null===(o=s.value)||void 0===o?void 0:o.contains(e.relatedTarget))||function(e){const{onFocus:o}=n;o&&o(e)}(e)},handleClear:function(e){!function(e){const{onClear:o}=n;o&&o(e)}(e)},handleMouseEnter:function(){T.value=!0},handleMouseLeave:function(){T.value=!1},handleDeleteOption:j,handlePatternKeyDown:function(e){if("Backspace"===e.key&&!N.value&&!n.pattern.length){const{selectedOptions:e}=n;(null==e?void 0:e.length)&&j(e[e.length-1])}},handlePatternInputInput:function(e){const{value:o}=r;if(o){const n=e.target.value;o.textContent=n,E()}n.ignoreComposition&&N.value?L=e:_(e)},handlePatternInputBlur:function(e){var o;S.value=!1,null===(o=n.onPatternBlur)||void 0===o||o.call(n,e)},handlePatternInputFocus:function(e){var o;S.value=!0,null===(o=n.onPatternFocus)||void 0===o||o.call(n,e)},handleMouseEnterCounter:function(){n.active||(W(),K=window.setTimeout((()=>{D.value&&(y.value=!0)}),100))},handleMouseLeaveCounter:function(){W()},handleFocusout:function(e){var o;(null===(o=s.value)||void 0===o?void 0:o.contains(e.relatedTarget))||function(e){const{onBlur:o}=n;o&&o(e)}(e)},handleCompositionEnd:function(){N.value=!1,n.ignoreComposition&&_(L),L=null},handleCompositionStart:function(){N.value=!0},onPopoverUpdateShow:function(e){e||(W(),y.value=!1)},focus:function(){var e,o,t;n.filterable?(S.value=!1,null===(e=c.value)||void 0===e||e.focus()):n.multiple?null===(o=d.value)||void 0===o||o.focus():null===(t=u.value)||void 0===t||t.focus()},focusInput:function(){const{value:e}=a;e&&(!function(){const{value:e}=b;e&&(e.style.display="inline-block")}(),e.focus())},blur:function(){var e,o;if(n.filterable)S.value=!1,null===(e=c.value)||void 0===e||e.blur(),null===(o=a.value)||void 0===o||o.blur();else if(n.multiple){const{value:e}=d;null==e||e.blur()}else{const{value:e}=u;null==e||e.blur()}},blurInput:function(){const{value:e}=a;e&&e.blur()},updateCounter:function(e){const{value:n}=p;n&&n.setTextContent(`+${e}`)},getCounter:function(){const{value:e}=h;return e},getTail:function(){return a.value},renderLabel:n.renderLabel,cssVars:V?void 0:U,themeClass:null==H?void 0:H.themeClass,onRender:null==H?void 0:H.onRender}},render(){const{status:e,multiple:n,size:o,disabled:t,filterable:l,maxTagCount:r,bordered:s,clsPrefix:d,ellipsisTagPopoverProps:u,onRender:c,renderTag:p,renderLabel:h}=this;null==c||c();const v="responsive"===r,b="number"==typeof r,f=v||b,g=a(D,null,{default:()=>a(ie,{clsPrefix:d,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var e,n;return null===(n=(e=this.$slots).arrow)||void 0===n?void 0:n.call(e)}})});let m;if(n){const{labelField:e}=this,n=n=>a("div",{class:`${d}-base-selection-tag-wrapper`,key:n.value},p?p({option:n,handleClose:()=>{this.handleDeleteOption(n)}}):a(ae,{size:o,closable:!n.disabled,disabled:t,onClose:()=>{this.handleDeleteOption(n)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>h?h(n,!0):i(n[e],n,!0)})),s=()=>(b?this.selectedOptions.slice(0,r):this.selectedOptions).map(n),c=l?a("div",{class:`${d}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},a("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:t,value:this.pattern,autofocus:this.autofocus,class:`${d}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),a("span",{ref:"patternInputMirrorRef",class:`${d}-base-selection-input-tag__mirror`},this.pattern)):null,w=v?()=>a("div",{class:`${d}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},a(ae,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:t})):void 0;let y;if(b){const e=this.selectedOptions.length-r;e>0&&(y=a("div",{class:`${d}-base-selection-tag-wrapper`,key:"__counter__"},a(ae,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:t},{default:()=>`+${e}`})))}const x=v?l?a(se,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:s,counter:w,tail:()=>c}):a(se,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:s,counter:w}):b&&y?s().concat(y):s(),F=f?()=>a("div",{class:`${d}-base-selection-popover`},v?s():this.selectedOptions.map(n)):void 0,C=f?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},u):null,O=!this.selected&&(!this.active||!this.pattern&&!this.isComposing)?a("div",{class:`${d}-base-selection-placeholder ${d}-base-selection-overlay`},a("div",{class:`${d}-base-selection-placeholder__inner`},this.placeholder)):null,S=l?a("div",{ref:"patternInputWrapperRef",class:`${d}-base-selection-tags`},x,v?null:c,g):a("div",{ref:"multipleElRef",class:`${d}-base-selection-tags`,tabindex:t?void 0:0},x,g);m=a(E,null,f?a(ne,Object.assign({},C,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>S,default:F}):S,O)}else if(l){const e=this.pattern||this.isComposing,n=this.active?!e:!this.selected,o=!this.active&&this.selected;m=a("div",{ref:"patternInputWrapperRef",class:`${d}-base-selection-label`,title:this.patternInputFocused?void 0:he(this.label)},a("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${d}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:t,disabled:t,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),o?a("div",{class:`${d}-base-selection-label__render-label ${d}-base-selection-overlay`,key:"input"},a("div",{class:`${d}-base-selection-overlay__wrapper`},p?p({option:this.selectedOption,handleClose:()=>{}}):h?h(this.selectedOption,!0):i(this.label,this.selectedOption,!0))):null,n?a("div",{class:`${d}-base-selection-placeholder ${d}-base-selection-overlay`,key:"placeholder"},a("div",{class:`${d}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else m=a("div",{ref:"singleElRef",class:`${d}-base-selection-label`,tabindex:this.disabled?void 0:0},void 0!==this.label?a("div",{class:`${d}-base-selection-input`,title:he(this.label),key:"input"},a("div",{class:`${d}-base-selection-input__content`},p?p({option:this.selectedOption,handleClose:()=>{}}):h?h(this.selectedOption,!0):i(this.label,this.selectedOption,!0))):a("div",{class:`${d}-base-selection-placeholder ${d}-base-selection-overlay`,key:"placeholder"},a("div",{class:`${d}-base-selection-placeholder__inner`},this.placeholder)),g);return a("div",{ref:"selfRef",class:[`${d}-base-selection`,this.rtlEnabled&&`${d}-base-selection--rtl`,this.themeClass,e&&`${d}-base-selection--${e}-status`,{[`${d}-base-selection--active`]:this.active,[`${d}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${d}-base-selection--disabled`]:this.disabled,[`${d}-base-selection--multiple`]:this.multiple,[`${d}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},m,s?a("div",{class:`${d}-base-selection__border`}):null,s?a("div",{class:`${d}-base-selection__state-border`}):null)}});function Fe(e){return"group"===e.type}function Ce(e){return"ignored"===e.type}function Oe(e,n){try{return!!(1+n.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch(o){return!1}}function Se(e,n){return{getIsGroup:Fe,getIgnored:Ce,getKey:n=>Fe(n)?n.name||n.key||"key-required":n[e],getChildren:e=>e[n]}}const Pe=h([u("select","\n z-index: auto;\n outline: none;\n width: 100%;\n position: relative;\n "),u("select-menu","\n margin: 4px 0;\n box-shadow: var(--n-menu-box-shadow);\n ",[b({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),ze=t({name:"Select",props:Object.assign(Object.assign({},f.props),{to:oe.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),setup(e){const{mergedClsPrefixRef:n,mergedBorderedRef:o,namespaceRef:t,inlineThemeDisabled:l}=g(e),r=f("Select","-select",Pe,_,e,n),i=x(e.defaultValue),a=w(e,"value"),s=G(a,i),d=x(!1),u=x(""),c=q(e,["items","options"]),p=x([]),h=x([]),v=F((()=>h.value.concat(p.value).concat(c.value))),b=F((()=>{const{filter:n}=e;if(n)return n;const{labelField:o,valueField:t}=e;return(e,n)=>{if(!n)return!1;const l=n[o];if("string"==typeof l)return Oe(e,l);const r=n[t];return"string"==typeof r?Oe(e,r):"number"==typeof r&&Oe(e,String(r))}})),m=F((()=>{if(e.remote)return c.value;{const{value:n}=v,{value:o}=u;return o.length&&e.filterable?function(e,n,o,t){return n?function e(l){if(!Array.isArray(l))return[];const r=[];for(const i of l)if(Fe(i)){const n=e(i[t]);n.length&&r.push(Object.assign({},i,{[t]:n}))}else{if(Ce(i))continue;n(o,i)&&r.push(i)}return r}(e):e}(n,b.value,o,e.childrenField):n}})),y=F((()=>{const{valueField:n,childrenField:o}=e,t=Se(n,o);return Z(m.value,t)})),O=F((()=>function(e,n,o){const t=new Map;return e.forEach((e=>{Fe(e)?e[o].forEach((e=>{t.set(e[n],e)})):t.set(e[n],e)})),t}(v.value,e.valueField,e.childrenField))),S=x(!1),P=G(w(e,"show"),S),z=x(null),T=x(null),R=x(null),{localeRef:M}=J("Select"),B=F((()=>{var n;return null!==(n=e.placeholder)&&void 0!==n?n:M.value.placeholder})),$=[],A=x(new Map),I=F((()=>{const{fallbackOption:n}=e;if(void 0===n){const{labelField:n,valueField:o}=e;return e=>({[n]:String(e),[o]:e})}return!1!==n&&(e=>Object.assign(n(e),{value:e}))}));function D(n){const o=e.remote,{value:t}=A,{value:l}=O,{value:r}=I,i=[];return n.forEach((e=>{if(l.has(e))i.push(l.get(e));else if(o&&t.has(e))i.push(t.get(e));else if(r){const n=r(e);n&&i.push(n)}})),i}const E=F((()=>{if(e.multiple){const{value:e}=s;return Array.isArray(e)?D(e):[]}return null})),L=F((()=>{const{value:n}=s;return e.multiple||Array.isArray(n)||null===n?null:D([n])[0]||null})),K=j(e),{mergedSizeRef:W,mergedDisabledRef:Q,mergedStatusRef:X}=K;function ee(n,o){const{onChange:t,"onUpdate:value":l,onUpdateValue:r}=e,{nTriggerFormChange:a,nTriggerFormInput:s}=K;t&&H(t,n,o),r&&H(r,n,o),l&&H(l,n,o),i.value=n,a(),s()}function ne(n){const{onBlur:o}=e,{nTriggerFormBlur:t}=K;o&&H(o,n),t()}function te(){var n;const{remote:o,multiple:t}=e;if(o){const{value:o}=A;if(t){const{valueField:t}=e;null===(n=E.value)||void 0===n||n.forEach((e=>{o.set(e[t],e)}))}else{const n=L.value;n&&o.set(n[e.valueField],n)}}}function le(n){const{onUpdateShow:o,"onUpdate:show":t}=e;o&&H(o,n),t&&H(t,n),S.value=n}function re(){Q.value||(le(!0),S.value=!0,e.filterable&&ve())}function ie(){le(!1)}function ae(){u.value="",h.value=$}const se=x(!1);function de(e){ue(e.rawNode)}function ue(n){if(Q.value)return;const{tag:o,remote:t,clearFilterAfterSelect:l,valueField:r}=e;if(o&&!t){const{value:e}=h,n=e[0]||null;if(n){const e=p.value;e.length?e.push(n):p.value=[n],h.value=$}}if(t&&A.value.set(n[r],n),e.multiple){const i=function(n){if(!Array.isArray(n))return[];if(I.value)return Array.from(n);{const{remote:o}=e,{value:t}=O;if(o){const{value:e}=A;return n.filter((n=>t.has(n)||e.has(n)))}return n.filter((e=>t.has(e)))}}(s.value),a=i.findIndex((e=>e===n[r]));if(~a){if(i.splice(a,1),o&&!t){const e=ce(n[r]);~e&&(p.value.splice(e,1),l&&(u.value=""))}}else i.push(n[r]),l&&(u.value="");ee(i,D(i))}else{if(o&&!t){const e=ce(n[r]);p.value=~e?[p.value[e]]:$}he(),ie(),ee(n[r],n)}}function ce(n){return p.value.findIndex((o=>o[e.valueField]===n))}function pe(n){var o,t,l,r,i;if(e.keyboard)switch(n.key){case" ":if(e.filterable)break;n.preventDefault();case"Enter":if(!(null===(o=z.value)||void 0===o?void 0:o.isComposing))if(P.value){const n=null===(t=R.value)||void 0===t?void 0:t.getPendingTmNode();n?de(n):e.filterable||(ie(),he())}else if(re(),e.tag&&se.value){const n=h.value[0];if(n){const o=n[e.valueField],{value:t}=s;e.multiple&&Array.isArray(t)&&t.includes(o)||ue(n)}}n.preventDefault();break;case"ArrowUp":if(n.preventDefault(),e.loading)return;P.value&&(null===(l=R.value)||void 0===l||l.prev());break;case"ArrowDown":if(n.preventDefault(),e.loading)return;P.value?null===(r=R.value)||void 0===r||r.next():re();break;case"Escape":P.value&&(U(n),ie()),null===(i=z.value)||void 0===i||i.focus()}else n.preventDefault()}function he(){var e;null===(e=z.value)||void 0===e||e.focus()}function ve(){var e;null===(e=z.value)||void 0===e||e.focusInput()}te(),C(w(e,"options"),te);const be={focus:()=>{var e;null===(e=z.value)||void 0===e||e.focus()},focusInput:()=>{var e;null===(e=z.value)||void 0===e||e.focusInput()},blur:()=>{var e;null===(e=z.value)||void 0===e||e.blur()},blurInput:()=>{var e;null===(e=z.value)||void 0===e||e.blurInput()}},fe=F((()=>{const{self:{menuBoxShadow:e}}=r.value;return{"--n-menu-box-shadow":e}})),ge=l?k("select",void 0,fe,e):void 0;return Object.assign(Object.assign({},be),{mergedStatus:X,mergedClsPrefix:n,mergedBordered:o,namespace:t,treeMate:y,isMounted:N(),triggerRef:z,menuRef:R,pattern:u,uncontrolledShow:S,mergedShow:P,adjustedTo:oe(e),uncontrolledValue:i,mergedValue:s,followerRef:T,localizedPlaceholder:B,selectedOption:L,selectedOptions:E,mergedSize:W,mergedDisabled:Q,focused:d,activeWithoutMenuOpen:se,inlineThemeDisabled:l,onTriggerInputFocus:function(){e.filterable&&(se.value=!0)},onTriggerInputBlur:function(){e.filterable&&(se.value=!1,P.value||ae())},handleTriggerOrMenuResize:function(){var e;P.value&&(null===(e=T.value)||void 0===e||e.syncPosition())},handleMenuFocus:function(){d.value=!0},handleMenuBlur:function(e){var n;(null===(n=z.value)||void 0===n?void 0:n.$el.contains(e.relatedTarget))||(d.value=!1,ne(e),ie())},handleMenuTabOut:function(){var e;null===(e=z.value)||void 0===e||e.focus(),ie()},handleTriggerClick:function(){Q.value||(P.value?e.filterable?ve():ie():re())},handleToggle:de,handleDeleteOption:ue,handlePatternInput:function(n){P.value||re();const{value:o}=n.target;u.value=o;const{tag:t,remote:l}=e;if(function(n){const{onSearch:o}=e;o&&H(o,n)}(o),t&&!l){if(!o)return void(h.value=$);const{onCreate:n}=e,t=n?n(o):{[e.labelField]:o,[e.valueField]:o},{valueField:l,labelField:r}=e;c.value.some((e=>e[l]===t[l]||e[r]===t[r]))||p.value.some((e=>e[l]===t[l]||e[r]===t[r]))?h.value=$:h.value=[t]}},handleClear:function(n){n.stopPropagation();const{multiple:o}=e;!o&&e.filterable&&ie(),function(){const{onClear:n}=e;n&&H(n)}(),o?ee([],[]):ee(null,null)},handleTriggerBlur:function(e){var n,o;(null===(o=null===(n=R.value)||void 0===n?void 0:n.selfRef)||void 0===o?void 0:o.contains(e.relatedTarget))||(d.value=!1,ne(e),ie())},handleTriggerFocus:function(n){!function(n){const{onFocus:o,showOnFocus:t}=e,{nTriggerFormFocus:l}=K;o&&H(o,n),l(),t&&re()}(n),d.value=!0},handleKeydown:pe,handleMenuAfterLeave:ae,handleMenuClickOutside:function(e){var n;P.value&&((null===(n=z.value)||void 0===n?void 0:n.$el.contains(V(e)))||ie())},handleMenuScroll:function(n){!function(n){const{onScroll:o}=e;o&&H(o,n)}(n)},handleMenuKeydown:pe,handleMenuMousedown:function(e){Y(e,"action")||Y(e,"empty")||Y(e,"header")||e.preventDefault()},mergedTheme:r,cssVars:l?void 0:fe,themeClass:null==ge?void 0:ge.themeClass,onRender:null==ge?void 0:ge.onRender})},render(){return a("div",{class:`${this.mergedClsPrefix}-select`},a(te,null,{default:()=>[a(le,null,{default:()=>a(xe,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,n;return[null===(n=(e=this.$slots).arrow)||void 0===n?void 0:n.call(e)]}})}),a(re,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===oe.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>a(d,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,n,o;return this.mergedShow||"show"===this.displayDirective?(null===(e=this.onRender)||void 0===e||e.call(this),L(a(we,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,null===(n=this.menuProps)||void 0===n?void 0:n.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[null===(o=this.menuProps)||void 0===o?void 0:o.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var e,n;return[null===(n=(e=this.$slots).empty)||void 0===n?void 0:n.call(e)]},header:()=>{var e,n;return[null===(n=(e=this.$slots).header)||void 0===n?void 0:n.call(e)]},action:()=>{var e,n;return[null===(n=(e=this.$slots).action)||void 0===n?void 0:n.call(e)]}}),"show"===this.displayDirective?[[K,this.mergedShow],[W,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[W,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}});export{we as N,ze as _,Se as c,ve as m}; diff --git a/docs/assets/Space-_SFqgYmP.js b/docs/assets/Space-_SFqgYmP.js new file mode 100644 index 0000000..656da7c --- /dev/null +++ b/docs/assets/Space-_SFqgYmP.js @@ -0,0 +1 @@ +import{bW as e,C as t,d as a,D as r,F as n,l as i,a9 as l,v as s,du as o,dv as p,Y as d,a7 as c,a8 as m}from"./index-BT0ZcDkn.js";import{g}from"./get-slot-BjAOOWF7.js";let u;function f(){if(!e)return!0;if(void 0===u){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=1===e.scrollHeight;return document.body.removeChild(e),u=t}return u}const v=a({name:"Space",props:Object.assign(Object.assign({},t.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){const{mergedClsPrefixRef:a,mergedRtlRef:l}=r(e),s=t("Space","-space",void 0,p,e,a),o=n("Space",l,a);return{useGap:f(),rtlEnabled:o,mergedClsPrefix:a,margin:i((()=>{const{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if("number"==typeof t)return{horizontal:t,vertical:t};const{self:{[d("gap",t)]:a}}=s.value,{row:r,col:n}=c(a);return{horizontal:m(n),vertical:m(r)}}))}},render(){const{vertical:e,reverse:t,align:a,inline:r,justify:n,itemClass:i,itemStyle:p,margin:d,wrap:c,mergedClsPrefix:m,rtlEnabled:u,useGap:f,wrapItem:v,internalUseGap:y}=this,x=l(g(this),!1);if(!x.length)return null;const h=`${d.horizontal}px`,b=d.horizontal/2+"px",w=`${d.vertical}px`,C=d.vertical/2+"px",B=x.length-1,S=n.startsWith("space-");return s("div",{role:"none",class:[`${m}-space`,u&&`${m}-space--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:["start","end"].includes(n)?`flex-${n}`:n,flexWrap:!c||e?"nowrap":"wrap",marginTop:f||e?"":`-${C}`,marginBottom:f||e?"":`-${C}`,alignItems:a,gap:f?`${d.vertical}px ${d.horizontal}px`:""}},v||!f&&!y?x.map(((t,a)=>t.type===o?t:s("div",{role:"none",class:i,style:[p,{maxWidth:"100%"},f?"":e?{marginBottom:a!==B?w:""}:u?{marginLeft:S?"space-between"===n&&a===B?"":b:a!==B?h:"",marginRight:S?"space-between"===n&&0===a?"":b:"",paddingTop:C,paddingBottom:C}:{marginRight:S?"space-between"===n&&a===B?"":b:a!==B?h:"",marginLeft:S?"space-between"===n&&0===a?"":b:"",paddingTop:C,paddingBottom:C}]},t))):x)}});export{v as _}; diff --git a/docs/assets/Spin-WJzlISCz.js b/docs/assets/Spin-WJzlISCz.js new file mode 100644 index 0000000..26c462f --- /dev/null +++ b/docs/assets/Spin-WJzlISCz.js @@ -0,0 +1 @@ +import{y as n,z as e,cd as t,Q as s,d as i,D as o,C as a,dz as r,l,aZ as c,Y as d,G as p,a as u,a1 as m,v,a$ as f,T as h}from"./index-BT0ZcDkn.js";import{u as y}from"./use-compitable-CHcH6xDN.js";const g=n([n("@keyframes spin-rotate","\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n "),e("spin-container","\n position: relative;\n ",[e("spin-body","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[t()])]),e("spin-body","\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n "),e("spin","\n display: inline-flex;\n height: var(--n-size);\n width: var(--n-size);\n font-size: var(--n-size);\n color: var(--n-color);\n ",[s("rotate","\n animation: spin-rotate 2s linear infinite;\n ")]),e("spin-description","\n display: inline-block;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n margin-top: 8px;\n "),e("spin-content","\n opacity: 1;\n transition: opacity .3s var(--n-bezier);\n pointer-events: all;\n ",[s("spinning","\n user-select: none;\n -webkit-user-select: none;\n pointer-events: none;\n opacity: var(--n-opacity-spinning);\n ")])]),b={small:20,medium:18,large:16},z=i({name:"Spin",props:Object.assign(Object.assign({},a.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),setup(n){const{mergedClsPrefixRef:e,inlineThemeDisabled:t}=o(n),s=a("Spin","-spin",g,r,n,e),i=l((()=>{const{size:e}=n,{common:{cubicBezierEaseInOut:t},self:i}=s.value,{opacitySpinning:o,color:a,textColor:r}=i;return{"--n-bezier":t,"--n-opacity-spinning":o,"--n-size":"number"==typeof e?c(e):i[d("size",e)],"--n-color":a,"--n-text-color":r}})),v=t?p("spin",l((()=>{const{size:e}=n;return"number"==typeof e?String(e):e[0]})),i,n):void 0,f=y(n,["spinning","show"]),h=u(!1);return m((e=>{let t;if(f.value){const{delay:s}=n;if(s)return t=window.setTimeout((()=>{h.value=!0}),s),void e((()=>{clearTimeout(t)}))}h.value=f.value})),{mergedClsPrefix:e,active:h,mergedStrokeWidth:l((()=>{const{strokeWidth:e}=n;if(void 0!==e)return e;const{size:t}=n;return b["number"==typeof t?"medium":t]})),cssVars:t?void 0:i,themeClass:null==v?void 0:v.themeClass,onRender:null==v?void 0:v.onRender}},render(){var n,e;const{$slots:t,mergedClsPrefix:s,description:i}=this,o=t.icon&&this.rotate,a=(i||t.description)&&v("div",{class:`${s}-spin-description`},i||(null===(n=t.description)||void 0===n?void 0:n.call(t))),r=t.icon?v("div",{class:[`${s}-spin-body`,this.themeClass]},v("div",{class:[`${s}-spin`,o&&`${s}-spin--rotate`],style:t.default?"":this.cssVars},t.icon()),a):v("div",{class:[`${s}-spin-body`,this.themeClass]},v(f,{clsPrefix:s,style:t.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${s}-spin`}),a);return null===(e=this.onRender)||void 0===e||e.call(this),t.default?v("div",{class:[`${s}-spin-container`,this.themeClass],style:this.cssVars},v("div",{class:[`${s}-spin-content`,this.active&&`${s}-spin-content--spinning`,this.contentClass],style:this.contentStyle},t),v(h,{name:"fade-in-transition"},{default:()=>this.active?r:null})):r}});export{z as _}; diff --git a/docs/assets/Switch-obDBD39a.js b/docs/assets/Switch-obDBD39a.js new file mode 100644 index 0000000..e729f4d --- /dev/null +++ b/docs/assets/Switch-obDBD39a.js @@ -0,0 +1 @@ +import{d as e,v as o,au as n,i as t,l as r,a4 as i,bE as l,H as a,N as c,a as d,b1 as s,bu as v,aa as u,aN as h,y as m,z as p,Q as g,A as f,U as b,bq as x,C as w,D as C,c$ as z,a1 as y,az as I,aD as S,G as k,aR as A,b3 as N,ai as P,b5 as R,d0 as H,ax as $,Y as F,aZ as _,a8 as T,d1 as B,x as E,a_ as O,a$ as L}from"./index-BT0ZcDkn.js";import{_ as j}from"./Dropdown-BMB08iEg.js";import{_ as K}from"./Tooltip-BFoQMn72.js";import{c as V}from"./create-Bylz8BGN.js";import{u as D}from"./use-merged-state-D7wGS6Km.js";import{u as M}from"./use-compitable-CHcH6xDN.js";import{V as U}from"./index-LLZlmyqL.js";const q=e({name:"ChevronDownFilled",render:()=>o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o("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"}))}),G=n("n-layout-sider"),W=n("n-menu"),Y=n("n-submenu"),Z=n("n-menu-item-group");function Q(e){const o=t(W),{props:n,mergedCollapsedRef:i}=o,l=t(Y,null),a=t(Z,null),c=r((()=>"horizontal"===n.mode)),d=r((()=>c.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right")),s=r((()=>{var e;return Math.max(null!==(e=n.collapsedIconSize)&&void 0!==e?e:n.iconSize,n.iconSize)})),v=r((()=>{var o;return!c.value&&e.root&&i.value&&null!==(o=n.collapsedIconSize)&&void 0!==o?o:n.iconSize})),u=r((()=>{if(c.value)return;const{collapsedWidth:o,indent:t,rootIndent:r}=n,{root:d,isGroup:v}=e,u=void 0===r?t:r;return d?i.value?o/2-s.value/2:u:a&&"number"==typeof a.paddingLeftRef.value?t/2+a.paddingLeftRef.value:l&&"number"==typeof l.paddingLeftRef.value?(v?t/2:t)+l.paddingLeftRef.value:0})),h=r((()=>{const{collapsedWidth:o,indent:t,rootIndent:r}=n,{value:l}=s,{root:a}=e;if(c.value)return 8;if(!a)return 8;if(!i.value)return 8;return(void 0===r?t:r)+l+8-(o+l)/2}));return{dropdownPlacement:d,activeIconSize:v,maxIconSize:s,paddingLeft:u,iconMarginRight:h,NMenu:o,NSubmenu:l}}const X={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},J=Object.assign(Object.assign({},X),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),ee=e({name:"MenuOptionGroup",props:J,setup(e){i(Y,null);const n=Q(e);i(Z,{paddingLeftRef:n.paddingLeft});const{mergedClsPrefixRef:r,props:c}=t(W);return function(){const{value:t}=r,i=n.paddingLeft.value,{nodeProps:d}=c,s=null==d?void 0:d(e.tmNode.rawNode);return o("div",{class:`${t}-menu-item-group`,role:"group"},o("div",Object.assign({},s,{class:[`${t}-menu-item-group-title`,null==s?void 0:s.class],style:[(null==s?void 0:s.style)||"",void 0!==i?`padding-left: ${i}px;`:""]}),l(e.title),e.extra?o(a,null," ",l(e.extra)):null),o("div",null,e.tmNodes.map((e=>ve(e,c)))))}}}),oe=e({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:o}=t(W);return{menuProps:o,style:r((()=>{const{paddingLeft:o}=e;return{paddingLeft:o&&`${o}px`}})),iconStyle:r((()=>{const{maxIconSize:o,activeIconSize:n,iconMarginRight:t}=e;return{width:`${o}px`,height:`${o}px`,fontSize:`${n}px`,marginRight:`${t}px`}}))}},render(){const{clsPrefix:e,tmNode:n,menuProps:{renderIcon:t,renderLabel:r,renderExtra:i,expandIcon:a}}=this,d=t?t(n.rawNode):l(this.icon);return o("div",{onClick:e=>{var o;null===(o=this.onClick)||void 0===o||o.call(this,e)},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},d&&o("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[d]),o("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:r?r(n.rawNode):l(this.title),this.extra||i?o("span",{class:`${e}-menu-item-content-header__extra`}," ",i?i(n.rawNode):l(this.extra)):null),this.showArrow?o(c,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>a?a(n.rawNode):o(q,null)}):null)}}),ne=Object.assign(Object.assign({},X),{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}),te=e({name:"Submenu",props:ne,setup(e){const o=Q(e),{NMenu:n,NSubmenu:t}=o,{props:l,mergedCollapsedRef:a,mergedThemeRef:c}=n,v=r((()=>{const{disabled:o}=e;return!!(null==t?void 0:t.mergedDisabledRef.value)||(!!l.disabled||o)})),u=d(!1);return i(Y,{paddingLeftRef:o.paddingLeft,mergedDisabledRef:v}),i(Z,null),{menuProps:l,mergedTheme:c,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:o.maxIconSize,activeIconSize:o.activeIconSize,iconMarginRight:o.iconMarginRight,dropdownPlacement:o.dropdownPlacement,dropdownShow:u,paddingLeft:o.paddingLeft,mergedDisabled:v,mergedValue:n.mergedValueRef,childActive:s((()=>{var o;return null!==(o=e.virtualChildActive)&&void 0!==o?o:n.activePathRef.value.includes(e.internalKey)})),collapsed:r((()=>"horizontal"!==l.mode&&(!!a.value||!n.mergedExpandedKeysRef.value.includes(e.internalKey)))),dropdownEnabled:r((()=>!v.value&&("horizontal"===l.mode||a.value))),handlePopoverShowChange:function(e){u.value=e},handleClick:function(){v.value||(a.value||n.toggleExpand(e.internalKey),function(){const{onClick:o}=e;o&&o()}())}}},render(){var e;const{mergedClsPrefix:n,menuProps:{renderIcon:t,renderLabel:r}}=this,i=()=>{const{isHorizontal:e,paddingLeft:n,collapsed:t,mergedDisabled:r,maxIconSize:i,activeIconSize:l,title:a,childActive:c,icon:d,handleClick:s,menuProps:{nodeProps:v},dropdownShow:u,iconMarginRight:h,tmNode:m,mergedClsPrefix:p,isEllipsisPlaceholder:g,extra:f}=this,b=null==v?void 0:v(m.rawNode);return o("div",Object.assign({},b,{class:[`${p}-menu-item`,null==b?void 0:b.class],role:"menuitem"}),o(oe,{tmNode:m,paddingLeft:n,collapsed:t,disabled:r,iconMarginRight:h,maxIconSize:i,activeIconSize:l,title:a,extra:f,showArrow:!e,childActive:c,clsPrefix:p,icon:d,hover:u,onClick:s,isEllipsisPlaceholder:g}))},l=()=>o(v,null,{default:()=>{const{tmNodes:e,collapsed:t}=this;return t?null:o("div",{class:`${n}-submenu-children`,role:"menu"},e.map((e=>ve(e,this.menuProps))))}});return this.root?o(j,Object.assign({size:"large",trigger:"hover"},null===(e=this.menuProps)||void 0===e?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:t,renderLabel:r}),{default:()=>o("div",{class:`${n}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},i(),this.isHorizontal?null:l())}):o("div",{class:`${n}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},i(),l())}}),re=Object.assign(Object.assign({},X),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),ie=e({name:"MenuOption",props:re,setup(e){const o=Q(e),{NSubmenu:n,NMenu:t}=o,{props:i,mergedClsPrefixRef:l,mergedCollapsedRef:a}=t,c=n?n.mergedDisabledRef:{value:!1},d=r((()=>c.value||e.disabled));return{mergedClsPrefix:l,dropdownPlacement:o.dropdownPlacement,paddingLeft:o.paddingLeft,iconMarginRight:o.iconMarginRight,maxIconSize:o.maxIconSize,activeIconSize:o.activeIconSize,mergedTheme:t.mergedThemeRef,menuProps:i,dropdownEnabled:s((()=>e.root&&a.value&&"horizontal"!==i.mode&&!d.value)),selected:s((()=>t.mergedValueRef.value===e.internalKey)),mergedDisabled:d,handleClick:function(o){d.value||(t.doSelect(e.internalKey,e.tmNode.rawNode),function(o){const{onClick:n}=e;n&&n(o)}(o))}}},render(){const{mergedClsPrefix:e,mergedTheme:n,tmNode:t,menuProps:{renderLabel:r,nodeProps:i}}=this,a=null==i?void 0:i(t.rawNode);return o("div",Object.assign({},a,{role:"menuitem",class:[`${e}-menu-item`,null==a?void 0:a.class]}),o(K,{theme:n.peers.Tooltip,themeOverrides:n.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||void 0===this.title,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(t.rawNode):l(this.title),trigger:()=>o(oe,{tmNode:t,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})}))}}),le=e({name:"MenuDivider",setup(){const e=t(W),{mergedClsPrefixRef:n,isHorizontalRef:r}=e;return()=>r.value?null:o("div",{class:`${n.value}-menu-divider`})}}),ae=h(J),ce=h(re),de=h(ne);function se(e){return"divider"===e.type||"render"===e.type}function ve(e,n){const{rawNode:t}=e,{show:r}=t;if(!1===r)return null;if(se(t))return function(e){return"divider"===e.type}(t)?o(le,Object.assign({key:e.key},t.props)):null;const{labelField:i}=n,{key:l,level:a,isGroup:c}=e,d=Object.assign(Object.assign({},t),{title:t.title||t[i],extra:t.titleExtra||t.extra,key:l,internalKey:l,level:a,root:0===a,isGroup:c});return e.children?e.isGroup?o(ee,u(d,ae,{tmNode:e,tmNodes:e.children,key:l})):o(te,u(d,de,{key:l,rawNodes:t[n.childrenField],tmNodes:e.children,tmNode:e})):o(ie,u(d,ce,{key:l,tmNode:e}))}const ue=[m("&::before","background-color: var(--n-item-color-hover);"),f("arrow","\n color: var(--n-arrow-color-hover);\n "),f("icon","\n color: var(--n-item-icon-color-hover);\n "),p("menu-item-content-header","\n color: var(--n-item-text-color-hover);\n ",[m("a","\n color: var(--n-item-text-color-hover);\n "),f("extra","\n color: var(--n-item-text-color-hover);\n ")])],he=[f("icon","\n color: var(--n-item-icon-color-hover-horizontal);\n "),p("menu-item-content-header","\n color: var(--n-item-text-color-hover-horizontal);\n ",[m("a","\n color: var(--n-item-text-color-hover-horizontal);\n "),f("extra","\n color: var(--n-item-text-color-hover-horizontal);\n ")])],me=m([p("menu","\n background-color: var(--n-color);\n color: var(--n-item-text-color);\n overflow: hidden;\n transition: background-color .3s var(--n-bezier);\n box-sizing: border-box;\n font-size: var(--n-font-size);\n padding-bottom: 6px;\n ",[g("horizontal","\n max-width: 100%;\n width: 100%;\n display: flex;\n overflow: hidden;\n padding-bottom: 0;\n ",[p("submenu","margin: 0;"),p("menu-item","margin: 0;"),p("menu-item-content","\n padding: 0 20px;\n border-bottom: 2px solid #0000;\n ",[m("&::before","display: none;"),g("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),p("menu-item-content",[g("selected",[f("icon","color: var(--n-item-icon-color-active-horizontal);"),p("menu-item-content-header","\n color: var(--n-item-text-color-active-horizontal);\n ",[m("a","color: var(--n-item-text-color-active-horizontal);"),f("extra","color: var(--n-item-text-color-active-horizontal);")])]),g("child-active","\n border-bottom: 2px solid var(--n-border-color-horizontal);\n ",[p("menu-item-content-header","\n color: var(--n-item-text-color-child-active-horizontal);\n ",[m("a","\n color: var(--n-item-text-color-child-active-horizontal);\n "),f("extra","\n color: var(--n-item-text-color-child-active-horizontal);\n ")]),f("icon","\n color: var(--n-item-icon-color-child-active-horizontal);\n ")]),b("disabled",[b("selected, child-active",[m("&:focus-within",he)]),g("selected",[pe(null,[f("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),p("menu-item-content-header","\n color: var(--n-item-text-color-active-hover-horizontal);\n ",[m("a","color: var(--n-item-text-color-active-hover-horizontal);"),f("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),g("child-active",[pe(null,[f("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),p("menu-item-content-header","\n color: var(--n-item-text-color-child-active-hover-horizontal);\n ",[m("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),f("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),pe("border-bottom: 2px solid var(--n-border-color-horizontal);",he)]),p("menu-item-content-header",[m("a","color: var(--n-item-text-color-horizontal);")])])]),b("responsive",[p("menu-item-content-header","\n overflow: hidden;\n text-overflow: ellipsis;\n ")]),g("collapsed",[p("menu-item-content",[g("selected",[m("&::before","\n background-color: var(--n-item-color-active-collapsed) !important;\n ")]),p("menu-item-content-header","opacity: 0;"),f("arrow","opacity: 0;"),f("icon","color: var(--n-item-icon-color-collapsed);")])]),p("menu-item","\n height: var(--n-item-height);\n margin-top: 6px;\n position: relative;\n "),p("menu-item-content",'\n box-sizing: border-box;\n line-height: 1.75;\n height: 100%;\n display: grid;\n grid-template-areas: "icon content arrow";\n grid-template-columns: auto 1fr auto;\n align-items: center;\n cursor: pointer;\n position: relative;\n padding-right: 18px;\n transition:\n background-color .3s var(--n-bezier),\n padding-left .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ',[m("> *","z-index: 1;"),m("&::before",'\n z-index: auto;\n content: "";\n background-color: #0000;\n position: absolute;\n left: 8px;\n right: 8px;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border-radius: var(--n-border-radius);\n transition: background-color .3s var(--n-bezier);\n '),g("disabled","\n opacity: .45;\n cursor: not-allowed;\n "),g("collapsed",[f("arrow","transform: rotate(0);")]),g("selected",[m("&::before","background-color: var(--n-item-color-active);"),f("arrow","color: var(--n-arrow-color-active);"),f("icon","color: var(--n-item-icon-color-active);"),p("menu-item-content-header","\n color: var(--n-item-text-color-active);\n ",[m("a","color: var(--n-item-text-color-active);"),f("extra","color: var(--n-item-text-color-active);")])]),g("child-active",[p("menu-item-content-header","\n color: var(--n-item-text-color-child-active);\n ",[m("a","\n color: var(--n-item-text-color-child-active);\n "),f("extra","\n color: var(--n-item-text-color-child-active);\n ")]),f("arrow","\n color: var(--n-arrow-color-child-active);\n "),f("icon","\n color: var(--n-item-icon-color-child-active);\n ")]),b("disabled",[b("selected, child-active",[m("&:focus-within",ue)]),g("selected",[pe(null,[f("arrow","color: var(--n-arrow-color-active-hover);"),f("icon","color: var(--n-item-icon-color-active-hover);"),p("menu-item-content-header","\n color: var(--n-item-text-color-active-hover);\n ",[m("a","color: var(--n-item-text-color-active-hover);"),f("extra","color: var(--n-item-text-color-active-hover);")])])]),g("child-active",[pe(null,[f("arrow","color: var(--n-arrow-color-child-active-hover);"),f("icon","color: var(--n-item-icon-color-child-active-hover);"),p("menu-item-content-header","\n color: var(--n-item-text-color-child-active-hover);\n ",[m("a","color: var(--n-item-text-color-child-active-hover);"),f("extra","color: var(--n-item-text-color-child-active-hover);")])])]),g("selected",[pe(null,[m("&::before","background-color: var(--n-item-color-active-hover);")])]),pe(null,ue)]),f("icon","\n grid-area: icon;\n color: var(--n-item-icon-color);\n transition:\n color .3s var(--n-bezier),\n font-size .3s var(--n-bezier),\n margin-right .3s var(--n-bezier);\n box-sizing: content-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n "),f("arrow","\n grid-area: arrow;\n font-size: 16px;\n color: var(--n-arrow-color);\n transform: rotate(180deg);\n opacity: 1;\n transition:\n color .3s var(--n-bezier),\n transform 0.2s var(--n-bezier),\n opacity 0.2s var(--n-bezier);\n "),p("menu-item-content-header","\n grid-area: content;\n transition:\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n opacity: 1;\n white-space: nowrap;\n color: var(--n-item-text-color);\n ",[m("a","\n outline: none;\n text-decoration: none;\n transition: color .3s var(--n-bezier);\n color: var(--n-item-text-color);\n ",[m("&::before",'\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ')]),f("extra","\n font-size: .93em;\n color: var(--n-group-text-color);\n transition: color .3s var(--n-bezier);\n ")])]),p("submenu","\n cursor: pointer;\n position: relative;\n margin-top: 6px;\n ",[p("menu-item-content","\n height: var(--n-item-height);\n "),p("submenu-children","\n overflow: hidden;\n padding: 0;\n ",[x({duration:".2s"})])]),p("menu-item-group",[p("menu-item-group-title","\n margin-top: 6px;\n color: var(--n-group-text-color);\n cursor: default;\n font-size: .93em;\n height: 36px;\n display: flex;\n align-items: center;\n transition:\n padding-left .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ")])]),p("menu-tooltip",[m("a","\n color: inherit;\n text-decoration: none;\n ")]),p("menu-divider","\n transition: background-color .3s var(--n-bezier);\n background-color: var(--n-divider-color);\n height: 1px;\n margin: 6px 18px;\n ")]);function pe(e,o){return[g("hover",e,o),m("&:hover",e,o)]}const ge=e({name:"Menu",inheritAttrs:!1,props:Object.assign(Object.assign({},w.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}),setup(e){const{mergedClsPrefixRef:n,inlineThemeDisabled:l}=C(e),a=w("Menu","-menu",me,z,e,n),c=t(G,null),s=r((()=>{var o;const{collapsed:n}=e;if(void 0!==n)return n;if(c){const{collapseModeRef:e,collapsedRef:n}=c;if("width"===e.value)return null!==(o=n.value)&&void 0!==o&&o}return!1})),v=r((()=>{const{keyField:o,childrenField:n,disabledField:t}=e;return V(e.items||e.options,{getIgnored:e=>se(e),getChildren:e=>e[n],getDisabled:e=>e[t],getKey(e){var n;return null!==(n=e[o])&&void 0!==n?n:e.name}})})),u=r((()=>new Set(v.value.treeNodes.map((e=>e.key))))),{watchProps:h}=e,m=d(null);(null==h?void 0:h.includes("defaultValue"))?y((()=>{m.value=e.defaultValue})):m.value=e.defaultValue;const p=I(e,"value"),g=D(p,m),f=d([]),b=()=>{f.value=e.defaultExpandAll?v.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||v.value.getPath(g.value,{includeSelf:!1}).keyPath};(null==h?void 0:h.includes("defaultExpandedKeys"))?y(b):b();const x=M(e,["expandedNames","expandedKeys"]),N=D(x,f),P=r((()=>v.value.treeNodes)),R=r((()=>v.value.getPath(g.value).keyPath));function H(o){const{"onUpdate:expandedKeys":n,onUpdateExpandedKeys:t,onExpandedNamesChange:r,onOpenNamesChange:i}=e;n&&S(n,o),t&&S(t,o),r&&S(r,o),i&&S(i,o),f.value=o}i(W,{props:e,mergedCollapsedRef:s,mergedThemeRef:a,mergedValueRef:g,mergedExpandedKeysRef:N,activePathRef:R,mergedClsPrefixRef:n,isHorizontalRef:r((()=>"horizontal"===e.mode)),invertedRef:I(e,"inverted"),doSelect:function(o,n){const{"onUpdate:value":t,onUpdateValue:r,onSelect:i}=e;r&&S(r,o,n);t&&S(t,o,n);i&&S(i,o,n);m.value=o},toggleExpand:function(o){const n=Array.from(N.value),t=n.findIndex((e=>e===o));if(~t)n.splice(t,1);else{if(e.accordion&&u.value.has(o)){const e=n.findIndex((e=>u.value.has(e)));e>-1&&n.splice(e,1)}n.push(o)}H(n)}});const $=r((()=>{const{inverted:o}=e,{common:{cubicBezierEaseInOut:n},self:t}=a.value,{borderRadius:r,borderColorHorizontal:i,fontSize:l,itemHeight:c,dividerColor:d}=t,s={"--n-divider-color":d,"--n-bezier":n,"--n-font-size":l,"--n-border-color-horizontal":i,"--n-border-radius":r,"--n-item-height":c};return o?(s["--n-group-text-color"]=t.groupTextColorInverted,s["--n-color"]=t.colorInverted,s["--n-item-text-color"]=t.itemTextColorInverted,s["--n-item-text-color-hover"]=t.itemTextColorHoverInverted,s["--n-item-text-color-active"]=t.itemTextColorActiveInverted,s["--n-item-text-color-child-active"]=t.itemTextColorChildActiveInverted,s["--n-item-text-color-child-active-hover"]=t.itemTextColorChildActiveInverted,s["--n-item-text-color-active-hover"]=t.itemTextColorActiveHoverInverted,s["--n-item-icon-color"]=t.itemIconColorInverted,s["--n-item-icon-color-hover"]=t.itemIconColorHoverInverted,s["--n-item-icon-color-active"]=t.itemIconColorActiveInverted,s["--n-item-icon-color-active-hover"]=t.itemIconColorActiveHoverInverted,s["--n-item-icon-color-child-active"]=t.itemIconColorChildActiveInverted,s["--n-item-icon-color-child-active-hover"]=t.itemIconColorChildActiveHoverInverted,s["--n-item-icon-color-collapsed"]=t.itemIconColorCollapsedInverted,s["--n-item-text-color-horizontal"]=t.itemTextColorHorizontalInverted,s["--n-item-text-color-hover-horizontal"]=t.itemTextColorHoverHorizontalInverted,s["--n-item-text-color-active-horizontal"]=t.itemTextColorActiveHorizontalInverted,s["--n-item-text-color-child-active-horizontal"]=t.itemTextColorChildActiveHorizontalInverted,s["--n-item-text-color-child-active-hover-horizontal"]=t.itemTextColorChildActiveHoverHorizontalInverted,s["--n-item-text-color-active-hover-horizontal"]=t.itemTextColorActiveHoverHorizontalInverted,s["--n-item-icon-color-horizontal"]=t.itemIconColorHorizontalInverted,s["--n-item-icon-color-hover-horizontal"]=t.itemIconColorHoverHorizontalInverted,s["--n-item-icon-color-active-horizontal"]=t.itemIconColorActiveHorizontalInverted,s["--n-item-icon-color-active-hover-horizontal"]=t.itemIconColorActiveHoverHorizontalInverted,s["--n-item-icon-color-child-active-horizontal"]=t.itemIconColorChildActiveHorizontalInverted,s["--n-item-icon-color-child-active-hover-horizontal"]=t.itemIconColorChildActiveHoverHorizontalInverted,s["--n-arrow-color"]=t.arrowColorInverted,s["--n-arrow-color-hover"]=t.arrowColorHoverInverted,s["--n-arrow-color-active"]=t.arrowColorActiveInverted,s["--n-arrow-color-active-hover"]=t.arrowColorActiveHoverInverted,s["--n-arrow-color-child-active"]=t.arrowColorChildActiveInverted,s["--n-arrow-color-child-active-hover"]=t.arrowColorChildActiveHoverInverted,s["--n-item-color-hover"]=t.itemColorHoverInverted,s["--n-item-color-active"]=t.itemColorActiveInverted,s["--n-item-color-active-hover"]=t.itemColorActiveHoverInverted,s["--n-item-color-active-collapsed"]=t.itemColorActiveCollapsedInverted):(s["--n-group-text-color"]=t.groupTextColor,s["--n-color"]=t.color,s["--n-item-text-color"]=t.itemTextColor,s["--n-item-text-color-hover"]=t.itemTextColorHover,s["--n-item-text-color-active"]=t.itemTextColorActive,s["--n-item-text-color-child-active"]=t.itemTextColorChildActive,s["--n-item-text-color-child-active-hover"]=t.itemTextColorChildActiveHover,s["--n-item-text-color-active-hover"]=t.itemTextColorActiveHover,s["--n-item-icon-color"]=t.itemIconColor,s["--n-item-icon-color-hover"]=t.itemIconColorHover,s["--n-item-icon-color-active"]=t.itemIconColorActive,s["--n-item-icon-color-active-hover"]=t.itemIconColorActiveHover,s["--n-item-icon-color-child-active"]=t.itemIconColorChildActive,s["--n-item-icon-color-child-active-hover"]=t.itemIconColorChildActiveHover,s["--n-item-icon-color-collapsed"]=t.itemIconColorCollapsed,s["--n-item-text-color-horizontal"]=t.itemTextColorHorizontal,s["--n-item-text-color-hover-horizontal"]=t.itemTextColorHoverHorizontal,s["--n-item-text-color-active-horizontal"]=t.itemTextColorActiveHorizontal,s["--n-item-text-color-child-active-horizontal"]=t.itemTextColorChildActiveHorizontal,s["--n-item-text-color-child-active-hover-horizontal"]=t.itemTextColorChildActiveHoverHorizontal,s["--n-item-text-color-active-hover-horizontal"]=t.itemTextColorActiveHoverHorizontal,s["--n-item-icon-color-horizontal"]=t.itemIconColorHorizontal,s["--n-item-icon-color-hover-horizontal"]=t.itemIconColorHoverHorizontal,s["--n-item-icon-color-active-horizontal"]=t.itemIconColorActiveHorizontal,s["--n-item-icon-color-active-hover-horizontal"]=t.itemIconColorActiveHoverHorizontal,s["--n-item-icon-color-child-active-horizontal"]=t.itemIconColorChildActiveHorizontal,s["--n-item-icon-color-child-active-hover-horizontal"]=t.itemIconColorChildActiveHoverHorizontal,s["--n-arrow-color"]=t.arrowColor,s["--n-arrow-color-hover"]=t.arrowColorHover,s["--n-arrow-color-active"]=t.arrowColorActive,s["--n-arrow-color-active-hover"]=t.arrowColorActiveHover,s["--n-arrow-color-child-active"]=t.arrowColorChildActive,s["--n-arrow-color-child-active-hover"]=t.arrowColorChildActiveHover,s["--n-item-color-hover"]=t.itemColorHover,s["--n-item-color-active"]=t.itemColorActive,s["--n-item-color-active-hover"]=t.itemColorActiveHover,s["--n-item-color-active-collapsed"]=t.itemColorActiveCollapsed),s})),F=l?k("menu",r((()=>e.inverted?"a":"b")),$,e):void 0,_=A(),T=d(null),B=d(null);let E=!0;const O=()=>{var e;E?E=!1:null===(e=T.value)||void 0===e||e.sync({showAllItemsBeforeCalculate:!0})};const L=d(-1);const j=r((()=>{const o=L.value;return{children:-1===o?[]:e.options.slice(o)}})),K=r((()=>{const{childrenField:o,disabledField:n,keyField:t}=e;return V([j.value],{getIgnored:e=>se(e),getChildren:e=>e[o],getDisabled:e=>e[n],getKey(e){var o;return null!==(o=e[t])&&void 0!==o?o:e.name}})})),U=r((()=>V([{}]).treeNodes[0]));return{mergedClsPrefix:n,controlledExpandedKeys:x,uncontrolledExpanededKeys:f,mergedExpandedKeys:N,uncontrolledValue:m,mergedValue:g,activePath:R,tmNodes:P,mergedTheme:a,mergedCollapsed:s,cssVars:l?void 0:$,themeClass:null==F?void 0:F.themeClass,overflowRef:T,counterRef:B,updateCounter:()=>{},onResize:O,onUpdateOverflow:function(e){e||(L.value=-1)},onUpdateCount:function(o){L.value=e.options.length-o},renderCounter:function(){var e;if(-1===L.value)return o(te,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:U.value,domId:_,isEllipsisPlaceholder:!0});const n=K.value.treeNodes[0],t=R.value,r=!!(null===(e=n.children)||void 0===e?void 0:e.some((e=>t.includes(e.key))));return o(te,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:r,tmNode:n,domId:_,rawNodes:n.rawNode.children||[],tmNodes:n.children||[],isEllipsisPlaceholder:!0})},getCounter:function(){return document.getElementById(_)},onRender:null==F?void 0:F.onRender,showOption:o=>{const n=v.value.getPath(null!=o?o:g.value,{includeSelf:!1}).keyPath;if(!n.length)return;const t=Array.from(N.value),r=new Set([...t,...n]);e.accordion&&u.value.forEach((e=>{r.has(e)&&!n.includes(e)&&r.delete(e)})),H(Array.from(r))},deriveResponsiveState:O}},render(){const{mergedClsPrefix:e,mode:n,themeClass:t,onRender:r}=this;null==r||r();const i=()=>this.tmNodes.map((e=>ve(e,this.$props))),l="horizontal"===n&&this.responsive,a=()=>o("div",P(this.$attrs,{role:"horizontal"===n?"menubar":"menu",class:[`${e}-menu`,t,`${e}-menu--${n}`,l&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),l?o(U,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:i,counter:this.renderCounter}):i());return l?o(N,{onResize:this.onResize},{default:a}):a()}}),fe=p("switch","\n height: var(--n-height);\n min-width: var(--n-width);\n vertical-align: middle;\n user-select: none;\n -webkit-user-select: none;\n display: inline-flex;\n outline: none;\n justify-content: center;\n align-items: center;\n",[f("children-placeholder","\n height: var(--n-rail-height);\n display: flex;\n flex-direction: column;\n overflow: hidden;\n pointer-events: none;\n visibility: hidden;\n "),f("rail-placeholder","\n display: flex;\n flex-wrap: none;\n "),f("button-placeholder","\n width: calc(1.75 * var(--n-rail-height));\n height: var(--n-rail-height);\n "),p("base-loading","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n font-size: calc(var(--n-button-width) - 4px);\n color: var(--n-loading-color);\n transition: color .3s var(--n-bezier);\n ",[R({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),f("checked, unchecked","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n box-sizing: border-box;\n position: absolute;\n white-space: nowrap;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n line-height: 1;\n "),f("checked","\n right: 0;\n padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));\n "),f("unchecked","\n left: 0;\n justify-content: flex-end;\n padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));\n "),m("&:focus",[f("rail","\n box-shadow: var(--n-box-shadow-focus);\n ")]),g("round",[f("rail","border-radius: calc(var(--n-rail-height) / 2);",[f("button","border-radius: calc(var(--n-button-height) / 2);")])]),b("disabled",[b("icon",[g("rubber-band",[g("pressed",[f("rail",[f("button","max-width: var(--n-button-width-pressed);")])]),f("rail",[m("&:active",[f("button","max-width: var(--n-button-width-pressed);")])]),g("active",[g("pressed",[f("rail",[f("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),f("rail",[m("&:active",[f("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),g("active",[f("rail",[f("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),f("rail","\n overflow: hidden;\n height: var(--n-rail-height);\n min-width: var(--n-rail-width);\n border-radius: var(--n-rail-border-radius);\n cursor: pointer;\n position: relative;\n transition:\n opacity .3s var(--n-bezier),\n background .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n background-color: var(--n-rail-color);\n ",[f("button-icon","\n color: var(--n-icon-color);\n transition: color .3s var(--n-bezier);\n font-size: calc(var(--n-button-height) - 4px);\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n line-height: 1;\n ",[R()]),f("button",'\n align-items: center; \n top: var(--n-offset);\n left: var(--n-offset);\n height: var(--n-button-height);\n width: var(--n-button-width-pressed);\n max-width: var(--n-button-width);\n border-radius: var(--n-button-border-radius);\n background-color: var(--n-button-color);\n box-shadow: var(--n-button-box-shadow);\n box-sizing: border-box;\n cursor: inherit;\n content: "";\n position: absolute;\n transition:\n background-color .3s var(--n-bezier),\n left .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n max-width .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n ')]),g("active",[f("rail","background-color: var(--n-rail-color-active);")]),g("loading",[f("rail","\n cursor: wait;\n ")]),g("disabled",[f("rail","\n cursor: not-allowed;\n opacity: .5;\n ")])]);let be;const xe=e({name:"Switch",props:Object.assign(Object.assign({},w.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]}),setup(e){void 0===be&&(be="undefined"==typeof CSS||void 0!==CSS.supports&&CSS.supports("width","max(1px)"));const{mergedClsPrefixRef:o,inlineThemeDisabled:n}=C(e),t=w("Switch","-switch",fe,H,e,o),i=$(e),{mergedSizeRef:l,mergedDisabledRef:a}=i,c=d(e.defaultValue),s=I(e,"value"),v=D(s,c),u=r((()=>v.value===e.checkedValue)),h=d(!1),m=d(!1),p=r((()=>{const{railStyle:o}=e;if(o)return o({focused:m.value,checked:u.value})}));function g(o){const{"onUpdate:value":n,onChange:t,onUpdateValue:r}=e,{nTriggerFormInput:l,nTriggerFormChange:a}=i;n&&S(n,o),r&&S(r,o),t&&S(t,o),c.value=o,l(),a()}const f=r((()=>{const{value:e}=l,{self:{opacityDisabled:o,railColor:n,railColorActive:r,buttonBoxShadow:i,buttonColor:a,boxShadowFocus:c,loadingColor:d,textColor:s,iconColor:v,[F("buttonHeight",e)]:u,[F("buttonWidth",e)]:h,[F("buttonWidthPressed",e)]:m,[F("railHeight",e)]:p,[F("railWidth",e)]:g,[F("railBorderRadius",e)]:f,[F("buttonBorderRadius",e)]:b},common:{cubicBezierEaseInOut:x}}=t.value;let w,C,z;return be?(w=`calc((${p} - ${u}) / 2)`,C=`max(${p}, ${u})`,z=`max(${g}, calc(${g} + ${u} - ${p}))`):(w=_((T(p)-T(u))/2),C=_(Math.max(T(p),T(u))),z=T(p)>T(u)?g:_(T(g)+T(u)-T(p))),{"--n-bezier":x,"--n-button-border-radius":b,"--n-button-box-shadow":i,"--n-button-color":a,"--n-button-width":h,"--n-button-width-pressed":m,"--n-button-height":u,"--n-height":C,"--n-offset":w,"--n-opacity-disabled":o,"--n-rail-border-radius":f,"--n-rail-color":n,"--n-rail-color-active":r,"--n-rail-height":p,"--n-rail-width":g,"--n-width":z,"--n-box-shadow-focus":c,"--n-loading-color":d,"--n-text-color":s,"--n-icon-color":v}})),b=n?k("switch",r((()=>l.value[0])),f,e):void 0;return{handleClick:function(){e.loading||a.value||(v.value!==e.checkedValue?g(e.checkedValue):g(e.uncheckedValue))},handleBlur:function(){m.value=!1,function(){const{nTriggerFormBlur:e}=i;e()}(),h.value=!1},handleFocus:function(){m.value=!0,function(){const{nTriggerFormFocus:e}=i;e()}()},handleKeyup:function(o){e.loading||a.value||" "===o.key&&(v.value!==e.checkedValue?g(e.checkedValue):g(e.uncheckedValue),h.value=!1)},handleKeydown:function(o){e.loading||a.value||" "===o.key&&(o.preventDefault(),h.value=!0)},mergedRailStyle:p,pressed:h,mergedClsPrefix:o,mergedValue:v,checked:u,mergedDisabled:a,cssVars:n?void 0:f,themeClass:null==b?void 0:b.themeClass,onRender:null==b?void 0:b.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:n,checked:t,mergedRailStyle:r,onRender:i,$slots:l}=this;null==i||i();const{checked:a,unchecked:c,icon:d,"checked-icon":s,"unchecked-icon":v}=l,u=!(B(d)&&B(s)&&B(v));return o("div",{role:"switch","aria-checked":t,class:[`${e}-switch`,this.themeClass,u&&`${e}-switch--icon`,t&&`${e}-switch--active`,n&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},o("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},E(a,(n=>E(c,(t=>n||t?o("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},o("div",{class:`${e}-switch__rail-placeholder`},o("div",{class:`${e}-switch__button-placeholder`}),n),o("div",{class:`${e}-switch__rail-placeholder`},o("div",{class:`${e}-switch__button-placeholder`}),t)):null)))),o("div",{class:`${e}-switch__button`},E(d,(n=>E(s,(t=>E(v,(r=>o(O,null,{default:()=>this.loading?o(L,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(t||n)?o("div",{class:`${e}-switch__button-icon`,key:t?"checked-icon":"icon"},t||n):this.checked||!r&&!n?null:o("div",{class:`${e}-switch__button-icon`,key:r?"unchecked-icon":"icon"},r||n)}))))))),E(a,(n=>n&&o("div",{key:"checked",class:`${e}-switch__checked`},n))),E(c,(n=>n&&o("div",{key:"unchecked",class:`${e}-switch__unchecked`},n))))))}});export{xe as _,ge as a}; diff --git a/docs/assets/Tag-D4OMG_5z.js b/docs/assets/Tag-D4OMG_5z.js new file mode 100644 index 0000000..eb17759 --- /dev/null +++ b/docs/assets/Tag-D4OMG_5z.js @@ -0,0 +1 @@ +import{z as e,Q as o,A as n,U as r,y as a,d as c,a as l,D as t,C as s,dg as i,a4 as d,az as h,F as g,l as b,Y as v,bs as u,G as k,df as p,x as C,v as f,bt as x,au as m,aD as z}from"./index-BT0ZcDkn.js";const y={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},$=e("tag","\n --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);\n white-space: nowrap;\n position: relative;\n box-sizing: border-box;\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex-wrap: nowrap;\n padding: var(--n-padding);\n border-radius: var(--n-border-radius);\n color: var(--n-text-color);\n background-color: var(--n-color);\n transition: \n border-color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n line-height: 1;\n height: var(--n-height);\n font-size: var(--n-font-size);\n",[o("strong","\n font-weight: var(--n-font-weight-strong);\n "),n("border","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n border: var(--n-border);\n transition: border-color .3s var(--n-bezier);\n "),n("icon","\n display: flex;\n margin: 0 4px 0 0;\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n font-size: var(--n-avatar-size-override);\n "),n("avatar","\n display: flex;\n margin: 0 6px 0 0;\n "),n("close","\n margin: var(--n-close-margin);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n "),o("round","\n padding: 0 calc(var(--n-height) / 3);\n border-radius: calc(var(--n-height) / 2);\n ",[n("icon","\n margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);\n "),n("avatar","\n margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);\n "),o("closable","\n padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);\n ")]),o("icon, avatar",[o("round","\n padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);\n ")]),o("disabled","\n cursor: not-allowed !important;\n opacity: var(--n-opacity-disabled);\n "),o("checkable","\n cursor: pointer;\n box-shadow: none;\n color: var(--n-text-color-checkable);\n background-color: var(--n-color-checkable);\n ",[r("disabled",[a("&:hover","background-color: var(--n-color-hover-checkable);",[r("checked","color: var(--n-text-color-hover-checkable);")]),a("&:active","background-color: var(--n-color-pressed-checkable);",[r("checked","color: var(--n-text-color-pressed-checkable);")])]),o("checked","\n color: var(--n-text-color-checked);\n background-color: var(--n-color-checked);\n ",[r("disabled",[a("&:hover","background-color: var(--n-color-checked-hover);"),a("&:active","background-color: var(--n-color-checked-pressed);")])])])]),B=Object.assign(Object.assign(Object.assign({},s.props),y),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),R=m("n-tag"),w=c({name:"Tag",props:B,setup(e){const o=l(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:a,mergedRtlRef:c}=t(e),C=s("Tag","-tag",$,i,e,r);d(R,{roundRef:h(e,"round")});const f={setTextContent(e){const{value:n}=o;n&&(n.textContent=e)}},x=g("Tag",c,r),m=b((()=>{const{type:o,size:r,color:{color:a,textColor:c}={}}=e,{common:{cubicBezierEaseInOut:l},self:{padding:t,closeMargin:s,borderRadius:i,opacityDisabled:d,textColorCheckable:h,textColorHoverCheckable:g,textColorPressedCheckable:b,textColorChecked:k,colorCheckable:p,colorHoverCheckable:f,colorPressedCheckable:x,colorChecked:m,colorCheckedHover:z,colorCheckedPressed:y,closeBorderRadius:$,fontWeightStrong:B,[v("colorBordered",o)]:R,[v("closeSize",r)]:w,[v("closeIconSize",r)]:P,[v("fontSize",r)]:_,[v("height",r)]:F,[v("color",o)]:O,[v("textColor",o)]:T,[v("border",o)]:j,[v("closeIconColor",o)]:I,[v("closeIconColorHover",o)]:M,[v("closeIconColorPressed",o)]:S,[v("closeColorHover",o)]:H,[v("closeColorPressed",o)]:U}}=C.value,D=u(s);return{"--n-font-weight-strong":B,"--n-avatar-size-override":`calc(${F} - 8px)`,"--n-bezier":l,"--n-border-radius":i,"--n-border":j,"--n-close-icon-size":P,"--n-close-color-pressed":U,"--n-close-color-hover":H,"--n-close-border-radius":$,"--n-close-icon-color":I,"--n-close-icon-color-hover":M,"--n-close-icon-color-pressed":S,"--n-close-icon-color-disabled":I,"--n-close-margin-top":D.top,"--n-close-margin-right":D.right,"--n-close-margin-bottom":D.bottom,"--n-close-margin-left":D.left,"--n-close-size":w,"--n-color":a||(n.value?R:O),"--n-color-checkable":p,"--n-color-checked":m,"--n-color-checked-hover":z,"--n-color-checked-pressed":y,"--n-color-hover-checkable":f,"--n-color-pressed-checkable":x,"--n-font-size":_,"--n-height":F,"--n-opacity-disabled":d,"--n-padding":t,"--n-text-color":c||T,"--n-text-color-checkable":h,"--n-text-color-checked":k,"--n-text-color-hover-checkable":g,"--n-text-color-pressed-checkable":b}})),y=a?k("tag",b((()=>{let o="";const{type:r,size:a,color:{color:c,textColor:l}={}}=e;return o+=r[0],o+=a[0],c&&(o+=`a${p(c)}`),l&&(o+=`b${p(l)}`),n.value&&(o+="c"),o})),m,e):void 0;return Object.assign(Object.assign({},f),{rtlEnabled:x,mergedClsPrefix:r,contentRef:o,mergedBordered:n,handleClick:function(){if(!e.disabled&&e.checkable){const{checked:o,onCheckedChange:n,onUpdateChecked:r,"onUpdate:checked":a}=e;r&&r(!o),a&&a(!o),n&&n(!o)}},handleCloseClick:function(o){if(e.triggerClickOnClose||o.stopPropagation(),!e.disabled){const{onClose:n}=e;n&&z(n,o)}},cssVars:a?void 0:m,themeClass:null==y?void 0:y.themeClass,onRender:null==y?void 0:y.onRender})},render(){var e,o;const{mergedClsPrefix:n,rtlEnabled:r,closable:a,color:{borderColor:c}={},round:l,onRender:t,$slots:s}=this;null==t||t();const i=C(s.avatar,(e=>e&&f("div",{class:`${n}-tag__avatar`},e))),d=C(s.icon,(e=>e&&f("div",{class:`${n}-tag__icon`},e)));return f("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:l,[`${n}-tag--avatar`]:i,[`${n}-tag--icon`]:d,[`${n}-tag--closable`]:a}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||i,f("span",{class:`${n}-tag__content`,ref:"contentRef"},null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e)),!this.checkable&&a?f(x,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:l,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?f("div",{class:`${n}-tag__border`,style:{borderColor:c}}):null)}});export{w as T,R as t}; diff --git a/docs/assets/ToolTipper.vuevuetypescriptsetuptruelang-BQIt4vT0.js b/docs/assets/ToolTipper.vuevuetypescriptsetuptruelang-BQIt4vT0.js new file mode 100644 index 0000000..d2d51d7 --- /dev/null +++ b/docs/assets/ToolTipper.vuevuetypescriptsetuptruelang-BQIt4vT0.js @@ -0,0 +1 @@ +import{d7 as e,bP as t,d8 as a,d9 as s,da as r,db as o,dc as n,dd as l,d as i,aj as p,l as u,p as d,b as c,w as f,e as g,ae as m,be as v,o as b,g as j,h,j as x}from"./index-BT0ZcDkn.js";import{_ as y}from"./Tooltip-BFoQMn72.js";var T=Object.prototype.hasOwnProperty;const _={key:0},k=i({__name:"ToolTipper",props:{tooltipText:{default:void 0},placement:{default:"bottom"},contentClass:{default:""}},setup(i){const k=i,{tooltipText:w,placement:C,contentClass:O}=p(k),P=u((()=>!function(i){if(null==i)return!0;if(e(i)&&(t(i)||"string"==typeof i||"function"==typeof i.splice||a(i)||s(i)||r(i)))return!i.length;var p=o(i);if("[object Map]"==p||"[object Set]"==p)return!i.size;if(n(i))return!l(i).length;for(var u in i)if(T.call(i,u))return!1;return!0}(w.value)));return(e,t)=>{const a=y;return P.value?(b(),d("div",_,[c(a,{placement:g(C),trigger:"hover"},{trigger:f((()=>[j("div",{class:v(["flex-center h-full rounded-lg cursor-pointer",g(O)])},[m(e.$slots,"default")],2)])),default:f((()=>[h(" "+x(g(w)),1)])),_:3},8,["placement"])])):(b(),d("div",{key:1,class:v(["flex-center rounded-lg cursor-pointer",g(O)])},[m(e.$slots,"default")],2))}}});export{k as _}; diff --git a/docs/assets/Tooltip-BFoQMn72.js b/docs/assets/Tooltip-BFoQMn72.js new file mode 100644 index 0000000..ac9143b --- /dev/null +++ b/docs/assets/Tooltip-BFoQMn72.js @@ -0,0 +1 @@ +import{p as e,_ as s}from"./Popover-3mPJ01hC.js";import{C as o,d as r,D as t,a as i,l as p,v as a,dh as n}from"./index-BT0ZcDkn.js";const l=r({name:"Tooltip",props:Object.assign(Object.assign({},e),o.props),__popover__:!0,setup(e){const{mergedClsPrefixRef:s}=t(e),r=o("Tooltip","-tooltip",void 0,n,e,s),a=i(null),l={syncPosition(){a.value.syncPosition()},setShow(e){a.value.setShow(e)}};return Object.assign(Object.assign({},l),{popoverRef:a,mergedTheme:r,popoverThemeOverrides:p((()=>r.value.self))})},render(){const{mergedTheme:e,internalExtraClass:o}=this;return a(s,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:o.concat("tooltip"),ref:"popoverRef"}),this.$slots)}});export{l as _}; diff --git a/docs/assets/fail-BFU6g2ZA.js b/docs/assets/fail-BFU6g2ZA.js new file mode 100644 index 0000000..d2cd9cd --- /dev/null +++ b/docs/assets/fail-BFU6g2ZA.js @@ -0,0 +1 @@ +import{d as e,bM as a,u as s,o as t,c as l,w as r,b as i,e as o,bN as c,h as u,j as f,g,B as m,L as p}from"./index-BT0ZcDkn.js";import{_ as d}from"./Space-_SFqgYmP.js";import{_ as n}from"./Result-Du_g0nDe.js";import{_ as b}from"./Descriptions-BD5yoHoK.js";import"./get-slot-BjAOOWF7.js";import"./use-compitable-CHcH6xDN.js";const _={class:"font-black"},v={class:"flex"},P={class:"ml-4"},j={class:"flex"},k={class:"ml-4"},x=e({__name:"fail",setup(e){const x=a(),{t:h}=s();return(e,a)=>{const s=m,y=d,w=n,H=b,N=p;return t(),l(N,null,{default:r((()=>[i(y,{vertical:"",size:"large"},{default:r((()=>[i(w,{status:"error",title:o(h)("page.result.failPage.title"),"sub-title":o(h)("page.result.failPage.subTitle")},{footer:r((()=>[i(y,{justify:"center"},{default:r((()=>[i(s,{type:"primary",onClick:a[0]||(a[0]=e=>o(x).push(o(c).BASE_HOME))},{default:r((()=>[u(f(o(h)("page.result.failPage.buttons.home")),1)])),_:1}),i(s,{onClick:a[1]||(a[1]=e=>o(x).back())},{default:r((()=>[u(f(o(h)("page.result.failPage.buttons.back")),1)])),_:1})])),_:1})])),_:1},8,["title","sub-title"]),i(N,{embedded:"",bordered:!1},{default:r((()=>[i(y,{vertical:"",size:"large"},{default:r((()=>[i(H,{"label-placement":"left"},{header:r((()=>[g("div",_,f(o(h)("page.result.failPage.errorHeader")),1)])),_:1}),g("div",v,[a[2]||(a[2]=g("div",{class:"flex-center"},[g("svg",{class:"i-material-symbols-cancel text-error mr-2"})],-1)),u(" "+f(o(h)("page.result.failPage.networkIssue"))+" ",1),g("a",P,f(o(h)("page.result.failPage.checkNetwork")),1)]),g("div",j,[a[3]||(a[3]=g("div",{class:"flex-center"},[g("svg",{class:"i-material-symbols-cancel text-error mr-2"})],-1)),u(" "+f(o(h)("page.result.failPage.messageTooLong"))+" ",1),g("a",k,f(o(h)("page.result.failPage.viewHelp")),1)])])),_:1})])),_:1})])),_:1})])),_:1})}}});export{x as default}; diff --git a/docs/assets/index-5zZZ8SzU.js b/docs/assets/index-5zZZ8SzU.js new file mode 100644 index 0000000..52c4ba6 --- /dev/null +++ b/docs/assets/index-5zZZ8SzU.js @@ -0,0 +1 @@ +import{_ as e}from"./plugin-vueexport-helper-BCo6x5W8.js";import{d as t,a,r as o,a2 as n,o as l,c as r,w as i,b as u,L as s}from"./index-BT0ZcDkn.js";import{_ as p}from"./DataTable-CDcTRuJS.js";import"./Checkbox-Kaq6uefv.js";import"./use-merged-state-D7wGS6Km.js";import"./RadioGroup-BozaTzAB.js";import"./get-slot-BjAOOWF7.js";import"./Popover-3mPJ01hC.js";import"./use-compitable-CHcH6xDN.js";import"./next-frame-once-DiJwGkuW.js";import"./Input-D2qMgPO1.js";import"./use-locale-CbMPSc0o.js";import"./Dropdown-BMB08iEg.js";import"./create-Bylz8BGN.js";import"./FocusDetector-C7V71fRC.js";import"./Tooltip-BFoQMn72.js";import"./Empty-C_CzYco1.js";import"./Pagination-YSg8zdta.js";import"./Select-D_I2Mr2d.js";import"./Tag-D4OMG_5z.js";import"./index-LLZlmyqL.js";import"./Checkmark-DuWLWy-v.js";import"./Forward-xWz6l688.js";const m={title:"column1",key:"column1",sorter:!0,sortOrder:!1},d={title:"column2",key:"column2",filter:!0,filterOptionValues:[],filterOptions:[{label:"Value1",value:1},{label:"Value2",value:2}]},g=[m,d,{title:"Column3",key:"column3"}],c=Array(987).fill(null).map(((e,t)=>({column1:t,column2:t%2+1,column3:`a${t}`})));function C(e,t=10,a="ascend",o=[]){return new Promise((n=>{const l=c.map((e=>e)),r="descend"===a?l.reverse():l,i=o.length?r.filter((e=>o.includes(e.column2))):r,u=i.slice((e-1)*t,e*t),s=i.length,p=Math.ceil(i.length/t);setTimeout((()=>n({pageCount:p,data:u,total:s})),1500)}))}const h=e(t({setup(){const e=a([]),t=a(!0),l=a(g),r=o(m),i=o(d),u=o({page:1,pageCount:1,pageSize:10,prefix:({itemCount:e})=>`Total is ${e}.`});return n((()=>{C(u.page,u.pageSize,r.sortOrder,i.filterOptionValues).then((a=>{e.value=a.data,u.pageCount=a.pageCount,u.itemCount=a.total,t.value=!1}))})),{data:e,columns:l,column1:r,column2:i,pagination:u,loading:t,rowKey:e=>e.column1,handleSorterChange(a){a&&"column1"!==a.columnKey||t.value||(t.value=!0,C(u.page,u.pageSize,!!a&&a.order,i.filterOptionValues).then((o=>{r.sortOrder=!!a&&a.order,e.value=o.data,u.pageCount=o.pageCount,u.itemCount=o.total,t.value=!1})))},handleFiltersChange(a){if(!t.value){t.value=!0;const o=a.column2||[];C(u.page,u.pageSize,r.sortOrder,o).then((a=>{i.filterOptionValues=o,e.value=a.data,u.pageCount=a.pageCount,u.itemCount=a.total,t.value=!1}))}},handlePageChange(a){t.value||(t.value=!0,C(a,u.pageSize,r.sortOrder,i.filterOptionValues).then((o=>{e.value=o.data,u.page=a,u.pageCount=o.pageCount,u.itemCount=o.total,t.value=!1})))}}}}),[["render",function(e,t,a,o,n,m){const d=p,g=s;return l(),r(g,null,{default:i((()=>[u(d,{remote:"",ref:"table",columns:e.columns,data:e.data,loading:e.loading,pagination:e.pagination,"row-key":e.rowKey,"onUpdate:sorter":e.handleSorterChange,"onUpdate:filters":e.handleFiltersChange,"onUpdate:page":e.handlePageChange},null,8,["columns","data","loading","pagination","row-key","onUpdate:sorter","onUpdate:filters","onUpdate:page"])])),_:1})}]]);export{h as default}; diff --git a/docs/assets/index-9AHSgKyT.js b/docs/assets/index-9AHSgKyT.js new file mode 100644 index 0000000..d81df7f --- /dev/null +++ b/docs/assets/index-9AHSgKyT.js @@ -0,0 +1 @@ +import{d as e,a as t,bA as n,v as a,bB as r,bC as o,bD as i,au as s,i as l,t as d,l as b,ai as c,H as p,N as f,bE as v,bt as u,b9 as h,z as g,Q as x,y as m,A as y,U as w,D as C,C as $,bF as z,a9 as R,a0 as S,an as T,a2 as P,a4 as _,az as j,a1 as L,Y as A,bs as W,G as B,x as k,b3 as E,aD as N,a8 as H,aB as O,bG as D,bH as F,bI as I,k as V,o as U,p as M,b as X,w as G,g as Y,e as q,j as Q,Z as J,h as K,_ as Z,L as ee}from"./index-BT0ZcDkn.js";import{_ as te}from"./ToolTipper.vuevuetypescriptsetuptruelang-BQIt4vT0.js";import{u as ne}from"./use-compitable-CHcH6xDN.js";import{u as ae}from"./use-merged-state-D7wGS6Km.js";import{c as re,b as oe,o as ie}from"./Popover-3mPJ01hC.js";import{_ as se}from"./Avatar-BpYqF4bS.js";import{_ as le}from"./Space-_SFqgYmP.js";import"./Tooltip-BFoQMn72.js";import"./next-frame-once-DiJwGkuW.js";import"./Tag-D4OMG_5z.js";import"./get-slot-BjAOOWF7.js";const de=oe(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[oe("&::-webkit-scrollbar",{width:0,height:0})]),be=e({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=t(null);const a=n();de.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:re,ssr:a});const r={scrollTo(...t){var n;null===(n=e.value)||void 0===n||n.scrollTo(...t)}};return Object.assign({selfRef:e,handleWheel:function(e){e.currentTarget.offsetWidth=t||n<0||p&&e-b>=i}function h(){var e=me();if(u(e))return g(e);l=setTimeout(h,function(e){var n=t-(e-d);return p?we(n,i-(e-b)):n}(e))}function g(e){return l=void 0,f&&a?v(e):(a=r=void 0,s)}function x(){var e=me(),n=u(e);if(a=arguments,r=this,d=e,n){if(void 0===l)return function(e){return b=e,l=setTimeout(h,t),c?v(e):s}(d);if(p)return clearTimeout(l),l=setTimeout(h,t),v(d)}return void 0===l&&(l=setTimeout(h,t)),s}return t=xe(t)||0,o(n)&&(c=!!n.leading,i=(p="maxWait"in n)?ye(xe(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),x.cancel=function(){void 0!==l&&clearTimeout(l),b=0,a=d=r=l=void 0},x.flush=function(){return void 0===l?s:g(me())},x}function $e(e,t,n){var a=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,r="trailing"in n?!!n.trailing:r),Ce(e,t,{leading:a,maxWait:t,trailing:r})}const ze=e({name:"Add",render:()=>a("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}),Re=s("n-tabs"),Se={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]},Te=e({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:Se,setup(e){const t=l(Re,null);return t||d("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return a("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Pe=e({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},h(Se,["displayDirective"])),setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:a,closableRef:r,tabStyleRef:o,addTabStyleRef:i,tabClassRef:s,addTabClassRef:d,tabChangeIdRef:c,onBeforeLeaveRef:p,triggerRef:f,handleAdd:v,activateTab:u,handleClose:h}=l(Re);return{trigger:f,mergedClosable:b((()=>{if(e.internalAddable)return!1;const{closable:t}=e;return void 0===t?r.value:t})),style:o,addStyle:i,tabClass:s,addTabClass:d,clsPrefix:t,value:n,type:a,handleClose(t){t.stopPropagation(),e.disabled||h(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable)return void v();const{name:t}=e,a=++c.id;if(t!==n.value){const{value:r}=p;r?Promise.resolve(r(e.name,n.value)).then((e=>{e&&c.id===a&&u(t)})):u(t)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:i,value:s,mergedClosable:l,trigger:d,$slots:{default:b}}=this,h=null!=o?o:i;return a("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?a("div",{class:`${t}-tabs-tab-pad`}):null,a("div",Object.assign({key:n,"data-name":n,"data-disabled":!!r||void 0},c({class:[`${t}-tabs-tab`,s===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:"click"===d?this.activateTab:void 0,onMouseenter:"hover"===d?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),a("span",{class:`${t}-tabs-tab__label`},e?a(p,null,a("div",{class:`${t}-tabs-tab__height-placeholder`}," "),a(f,{clsPrefix:t},{default:()=>a(ze,null)})):b?b():"object"==typeof h?h:v(null!=h?h:n)),l&&"card"===this.type?a(u,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),_e=g("tabs","\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-direction: column;\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n",[x("segment-type",[g("tabs-rail",[m("&.transition-disabled",[g("tabs-capsule","\n transition: none;\n ")])])]),x("top",[g("tab-pane","\n padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);\n ")]),x("left",[g("tab-pane","\n padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);\n ")]),x("left, right","\n flex-direction: row;\n ",[g("tabs-bar","\n width: 2px;\n right: 0;\n transition:\n top .2s var(--n-bezier),\n max-height .2s var(--n-bezier),\n background-color .3s var(--n-bezier);\n "),g("tabs-tab","\n padding: var(--n-tab-padding-vertical); \n ")]),x("right","\n flex-direction: row-reverse;\n ",[g("tab-pane","\n padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);\n "),g("tabs-bar","\n left: 0;\n ")]),x("bottom","\n flex-direction: column-reverse;\n justify-content: flex-end;\n ",[g("tab-pane","\n padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);\n "),g("tabs-bar","\n top: 0;\n ")]),g("tabs-rail","\n position: relative;\n padding: 3px;\n border-radius: var(--n-tab-border-radius);\n width: 100%;\n background-color: var(--n-color-segment);\n transition: background-color .3s var(--n-bezier);\n display: flex;\n align-items: center;\n ",[g("tabs-capsule","\n border-radius: var(--n-tab-border-radius);\n position: absolute;\n pointer-events: none;\n background-color: var(--n-tab-color-segment);\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);\n transition: transform 0.3s var(--n-bezier);\n "),g("tabs-tab-wrapper","\n flex-basis: 0;\n flex-grow: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n ",[g("tabs-tab","\n overflow: hidden;\n border-radius: var(--n-tab-border-radius);\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",[x("active","\n font-weight: var(--n-font-weight-strong);\n color: var(--n-tab-text-color-active);\n "),m("&:hover","\n color: var(--n-tab-text-color-hover);\n ")])])]),x("flex",[g("tabs-nav","\n width: 100%;\n position: relative;\n ",[g("tabs-wrapper","\n width: 100%;\n ",[g("tabs-tab","\n margin-right: 0;\n ")])])]),g("tabs-nav","\n box-sizing: border-box;\n line-height: 1.5;\n display: flex;\n transition: border-color .3s var(--n-bezier);\n ",[y("prefix, suffix","\n display: flex;\n align-items: center;\n "),y("prefix","padding-right: 16px;"),y("suffix","padding-left: 16px;")]),x("top, bottom",[g("tabs-nav-scroll-wrapper",[m("&::before","\n top: 0;\n bottom: 0;\n left: 0;\n width: 20px;\n "),m("&::after","\n top: 0;\n bottom: 0;\n right: 0;\n width: 20px;\n "),x("shadow-start",[m("&::before","\n box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);\n ")]),x("shadow-end",[m("&::after","\n box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);\n ")])])]),x("left, right",[g("tabs-nav-scroll-content","\n flex-direction: column;\n "),g("tabs-nav-scroll-wrapper",[m("&::before","\n top: 0;\n left: 0;\n right: 0;\n height: 20px;\n "),m("&::after","\n bottom: 0;\n left: 0;\n right: 0;\n height: 20px;\n "),x("shadow-start",[m("&::before","\n box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);\n ")]),x("shadow-end",[m("&::after","\n box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);\n ")])])]),g("tabs-nav-scroll-wrapper","\n flex: 1;\n position: relative;\n overflow: hidden;\n ",[g("tabs-nav-y-scroll","\n height: 100%;\n width: 100%;\n overflow-y: auto; \n scrollbar-width: none;\n ",[m("&::-webkit-scrollbar","\n width: 0;\n height: 0;\n ")]),m("&::before, &::after",'\n transition: box-shadow .3s var(--n-bezier);\n pointer-events: none;\n content: "";\n position: absolute;\n z-index: 1;\n ')]),g("tabs-nav-scroll-content","\n display: flex;\n position: relative;\n min-width: 100%;\n min-height: 100%;\n width: fit-content;\n box-sizing: border-box;\n "),g("tabs-wrapper","\n display: inline-flex;\n flex-wrap: nowrap;\n position: relative;\n "),g("tabs-tab-wrapper","\n display: flex;\n flex-wrap: nowrap;\n flex-shrink: 0;\n flex-grow: 0;\n "),g("tabs-tab","\n cursor: pointer;\n white-space: nowrap;\n flex-wrap: nowrap;\n display: inline-flex;\n align-items: center;\n color: var(--n-tab-text-color);\n font-size: var(--n-tab-font-size);\n background-clip: padding-box;\n padding: var(--n-tab-padding);\n transition:\n box-shadow .3s var(--n-bezier),\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[x("disabled",{cursor:"not-allowed"}),y("close","\n margin-left: 6px;\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n "),y("label","\n display: flex;\n align-items: center;\n z-index: 1;\n ")]),g("tabs-bar","\n position: absolute;\n bottom: 0;\n height: 2px;\n border-radius: 1px;\n background-color: var(--n-bar-color);\n transition:\n left .2s var(--n-bezier),\n max-width .2s var(--n-bezier),\n opacity .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n ",[m("&.transition-disabled","\n transition: none;\n "),x("disabled","\n background-color: var(--n-tab-text-color-disabled)\n ")]),g("tabs-pane-wrapper","\n position: relative;\n overflow: hidden;\n transition: max-height .2s var(--n-bezier);\n "),g("tab-pane","\n color: var(--n-pane-text-color);\n width: 100%;\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n opacity .2s var(--n-bezier);\n left: 0;\n right: 0;\n top: 0;\n ",[m("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active","\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n transform .2s var(--n-bezier),\n opacity .2s var(--n-bezier);\n "),m("&.next-transition-leave-active, &.prev-transition-leave-active","\n position: absolute;\n "),m("&.next-transition-enter-from, &.prev-transition-leave-to","\n transform: translateX(32px);\n opacity: 0;\n "),m("&.next-transition-leave-to, &.prev-transition-enter-from","\n transform: translateX(-32px);\n opacity: 0;\n "),m("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to","\n transform: translateX(0);\n opacity: 1;\n ")]),g("tabs-tab-pad","\n box-sizing: border-box;\n width: var(--n-tab-gap);\n flex-grow: 0;\n flex-shrink: 0;\n "),x("line-type, bar-type",[g("tabs-tab","\n font-weight: var(--n-tab-font-weight);\n box-sizing: border-box;\n vertical-align: bottom;\n ",[m("&:hover",{color:"var(--n-tab-text-color-hover)"}),x("active","\n color: var(--n-tab-text-color-active);\n font-weight: var(--n-tab-font-weight-active);\n "),x("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),g("tabs-nav",[x("line-type",[x("top",[y("prefix, suffix","\n border-bottom: 1px solid var(--n-tab-border-color);\n "),g("tabs-nav-scroll-content","\n border-bottom: 1px solid var(--n-tab-border-color);\n "),g("tabs-bar","\n bottom: -1px;\n ")]),x("left",[y("prefix, suffix","\n border-right: 1px solid var(--n-tab-border-color);\n "),g("tabs-nav-scroll-content","\n border-right: 1px solid var(--n-tab-border-color);\n "),g("tabs-bar","\n right: -1px;\n ")]),x("right",[y("prefix, suffix","\n border-left: 1px solid var(--n-tab-border-color);\n "),g("tabs-nav-scroll-content","\n border-left: 1px solid var(--n-tab-border-color);\n "),g("tabs-bar","\n left: -1px;\n ")]),x("bottom",[y("prefix, suffix","\n border-top: 1px solid var(--n-tab-border-color);\n "),g("tabs-nav-scroll-content","\n border-top: 1px solid var(--n-tab-border-color);\n "),g("tabs-bar","\n top: -1px;\n ")]),y("prefix, suffix","\n transition: border-color .3s var(--n-bezier);\n "),g("tabs-nav-scroll-content","\n transition: border-color .3s var(--n-bezier);\n "),g("tabs-bar","\n border-radius: 0;\n ")]),x("card-type",[y("prefix, suffix","\n transition: border-color .3s var(--n-bezier);\n "),g("tabs-pad","\n flex-grow: 1;\n transition: border-color .3s var(--n-bezier);\n "),g("tabs-tab-pad","\n transition: border-color .3s var(--n-bezier);\n "),g("tabs-tab","\n font-weight: var(--n-tab-font-weight);\n border: 1px solid var(--n-tab-border-color);\n background-color: var(--n-tab-color);\n box-sizing: border-box;\n position: relative;\n vertical-align: bottom;\n display: flex;\n justify-content: space-between;\n font-size: var(--n-tab-font-size);\n color: var(--n-tab-text-color);\n ",[x("addable","\n padding-left: 8px;\n padding-right: 8px;\n font-size: 16px;\n justify-content: center;\n ",[y("height-placeholder","\n width: 0;\n font-size: var(--n-tab-font-size);\n "),w("disabled",[m("&:hover","\n color: var(--n-tab-text-color-hover);\n ")])]),x("closable","padding-right: 8px;"),x("active","\n background-color: #0000;\n font-weight: var(--n-tab-font-weight-active);\n color: var(--n-tab-text-color-active);\n "),x("disabled","color: var(--n-tab-text-color-disabled);")])]),x("left, right","\n flex-direction: column; \n ",[y("prefix, suffix","\n padding: var(--n-tab-padding-vertical);\n "),g("tabs-wrapper","\n flex-direction: column;\n "),g("tabs-tab-wrapper","\n flex-direction: column;\n ",[g("tabs-tab-pad","\n height: var(--n-tab-gap-vertical);\n width: 100%;\n ")])]),x("top",[x("card-type",[g("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);"),y("prefix, suffix","\n border-bottom: 1px solid var(--n-tab-border-color);\n "),g("tabs-tab","\n border-top-left-radius: var(--n-tab-border-radius);\n border-top-right-radius: var(--n-tab-border-radius);\n ",[x("active","\n border-bottom: 1px solid #0000;\n ")]),g("tabs-tab-pad","\n border-bottom: 1px solid var(--n-tab-border-color);\n "),g("tabs-pad","\n border-bottom: 1px solid var(--n-tab-border-color);\n ")])]),x("left",[x("card-type",[g("tabs-scroll-padding","border-right: 1px solid var(--n-tab-border-color);"),y("prefix, suffix","\n border-right: 1px solid var(--n-tab-border-color);\n "),g("tabs-tab","\n border-top-left-radius: var(--n-tab-border-radius);\n border-bottom-left-radius: var(--n-tab-border-radius);\n ",[x("active","\n border-right: 1px solid #0000;\n ")]),g("tabs-tab-pad","\n border-right: 1px solid var(--n-tab-border-color);\n "),g("tabs-pad","\n border-right: 1px solid var(--n-tab-border-color);\n ")])]),x("right",[x("card-type",[g("tabs-scroll-padding","border-left: 1px solid var(--n-tab-border-color);"),y("prefix, suffix","\n border-left: 1px solid var(--n-tab-border-color);\n "),g("tabs-tab","\n border-top-right-radius: var(--n-tab-border-radius);\n border-bottom-right-radius: var(--n-tab-border-radius);\n ",[x("active","\n border-left: 1px solid #0000;\n ")]),g("tabs-tab-pad","\n border-left: 1px solid var(--n-tab-border-color);\n "),g("tabs-pad","\n border-left: 1px solid var(--n-tab-border-color);\n ")])]),x("bottom",[x("card-type",[g("tabs-scroll-padding","border-top: 1px solid var(--n-tab-border-color);"),y("prefix, suffix","\n border-top: 1px solid var(--n-tab-border-color);\n "),g("tabs-tab","\n border-bottom-left-radius: var(--n-tab-border-radius);\n border-bottom-right-radius: var(--n-tab-border-radius);\n ",[x("active","\n border-top: 1px solid #0000;\n ")]),g("tabs-tab-pad","\n border-top: 1px solid var(--n-tab-border-color);\n "),g("tabs-pad","\n border-top: 1px solid var(--n-tab-border-color);\n ")])])])]),je=e({name:"Tabs",props:Object.assign(Object.assign({},$.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]}),setup(e,{slots:n}){var a,r,o,i;const{mergedClsPrefixRef:s,inlineThemeDisabled:l}=C(e),d=$("Tabs","-tabs",_e,z,e,s),c=t(null),p=t(null),f=t(null),v=t(null),u=t(null),h=t(null),g=t(!0),x=t(!0),m=ne(e,["labelSize","size"]),y=ne(e,["activeName","value"]),w=t(null!==(r=null!==(a=y.value)&&void 0!==a?a:e.defaultValue)&&void 0!==r?r:n.default?null===(i=null===(o=R(n.default())[0])||void 0===o?void 0:o.props)||void 0===i?void 0:i.name:null),k=ae(y,w),E={id:0},O=b((()=>{if(e.justifyContent&&"card"!==e.type)return{display:"flex",justifyContent:e.justifyContent}}));function D(){var e;const{value:t}=k;if(null===t)return null;return null===(e=c.value)||void 0===e?void 0:e.querySelector(`[data-name="${t}"]`)}function F(e){const{value:t}=p;if(t)for(const n of e)t.style[n]=""}function I(){if("card"===e.type)return;const t=D();t?function(t){if("card"===e.type)return;const{value:n}=p;if(!n)return;const a="0"===n.style.opacity;if(t){const r=`${s.value}-tabs-bar--disabled`,{barWidth:o,placement:i}=e;if("true"===t.dataset.disabled?n.classList.add(r):n.classList.remove(r),["top","bottom"].includes(i)){if(F(["top","maxHeight","height"]),"number"==typeof o&&t.offsetWidth>=o){const e=Math.floor((t.offsetWidth-o)/2)+t.offsetLeft;n.style.left=`${e}px`,n.style.maxWidth=`${o}px`}else n.style.left=`${t.offsetLeft}px`,n.style.maxWidth=`${t.offsetWidth}px`;n.style.width="8192px",a&&(n.style.transition="none"),n.offsetWidth,a&&(n.style.transition="",n.style.opacity="1")}else{if(F(["left","maxWidth","width"]),"number"==typeof o&&t.offsetHeight>=o){const e=Math.floor((t.offsetHeight-o)/2)+t.offsetTop;n.style.top=`${e}px`,n.style.maxHeight=`${o}px`}else n.style.top=`${t.offsetTop}px`,n.style.maxHeight=`${t.offsetHeight}px`;n.style.height="8192px",a&&(n.style.transition="none"),n.offsetHeight,a&&(n.style.transition="",n.style.opacity="1")}}}(t):function(){if("card"===e.type)return;const{value:t}=p;t&&(t.style.opacity="0")}()}function V(){var e;const t=null===(e=u.value)||void 0===e?void 0:e.$el;if(!t)return;const n=D();if(!n)return;const{scrollLeft:a,offsetWidth:r}=t,{offsetLeft:o,offsetWidth:i}=n;a>o?t.scrollTo({top:0,left:o,behavior:"smooth"}):o+i>a+r&&t.scrollTo({top:0,left:o+i-r,behavior:"smooth"})}S(k,(()=>{E.id=0,I(),V()}));const U=t(null);let M=0,X=null;const G={value:[]},Y=t("next");function q(){const{value:e}=p;if(!e)return;const t="transition-disabled";e.classList.add(t),I(),e.classList.remove(t)}const Q=t(null);function J({transitionDisabled:e}){const t=c.value;if(!t)return;e&&t.classList.add("transition-disabled");const n=D();n&&Q.value&&(Q.value.style.width=`${n.offsetWidth}px`,Q.value.style.height=`${n.offsetHeight}px`,Q.value.style.transform=`translateX(${n.offsetLeft-H(getComputedStyle(t).paddingLeft)}px)`,e&&Q.value.offsetWidth),e&&t.classList.remove("transition-disabled")}S([k],(()=>{"segment"===e.type&&T((()=>{J({transitionDisabled:!1})}))})),P((()=>{"segment"===e.type&&J({transitionDisabled:!0})}));let K=0;const Z=$e((function(t){var n;if(0===t.contentRect.width&&0===t.contentRect.height)return;if(K===t.contentRect.width)return;K=t.contentRect.width;const{type:a}=e;if("line"!==a&&"bar"!==a||q(),"segment"!==a){const{placement:t}=e;re(("top"===t||"bottom"===t?null===(n=u.value)||void 0===n?void 0:n.$el:h.value)||null)}}),64);S([()=>e.justifyContent,()=>e.size],(()=>{T((()=>{const{type:t}=e;"line"!==t&&"bar"!==t||q()}))}));const ee=t(!1);const te=$e((function(t){var n;const{target:a,contentRect:{width:r,height:o}}=t,i=a.parentElement.parentElement.offsetWidth,s=a.parentElement.parentElement.offsetHeight,{placement:l}=e;if(ee.value){const{value:e}=v;if(!e)return;"top"===l||"bottom"===l?i-r>e.$el.offsetWidth&&(ee.value=!1):s-o>e.$el.offsetHeight&&(ee.value=!1)}else"top"===l||"bottom"===l?i=n}else{const{scrollTop:e,scrollHeight:n,offsetHeight:a}=t;g.value=e<=0,x.value=e+a>=n}}const oe=$e((e=>{re(e.target)}),64);_(Re,{triggerRef:j(e,"trigger"),tabStyleRef:j(e,"tabStyle"),tabClassRef:j(e,"tabClass"),addTabStyleRef:j(e,"addTabStyle"),addTabClassRef:j(e,"addTabClass"),paneClassRef:j(e,"paneClass"),paneStyleRef:j(e,"paneStyle"),mergedClsPrefixRef:s,typeRef:j(e,"type"),closableRef:j(e,"closable"),valueRef:k,tabChangeIdRef:E,onBeforeLeaveRef:j(e,"onBeforeLeave"),activateTab:function(t){const n=k.value;let a="next";for(const e of G.value){if(e===n)break;if(e===t){a="prev";break}}Y.value=a,function(t){const{onActiveNameChange:n,onUpdateValue:a,"onUpdate:value":r}=e;n&&N(n,t);a&&N(a,t);r&&N(r,t);w.value=t}(t)},handleClose:function(t){const{onClose:n}=e;n&&N(n,t)},handleAdd:function(){const{onAdd:t}=e;t&&t(),T((()=>{const e=D(),{value:t}=u;e&&t&&t.scrollTo({left:e.offsetLeft,top:0,behavior:"smooth"})}))}}),ie((()=>{I(),V()})),L((()=>{const{value:e}=f;if(!e)return;const{value:t}=s,n=`${t}-tabs-nav-scroll-wrapper--shadow-start`,a=`${t}-tabs-nav-scroll-wrapper--shadow-end`;g.value?e.classList.remove(n):e.classList.add(n),x.value?e.classList.remove(a):e.classList.add(a)}));const se={syncBarPosition:()=>{I()}},le=b((()=>{const{value:t}=m,{type:n}=e,a=`${t}${{card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[n]}`,{self:{barColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:s,tabColor:l,tabBorderColor:b,paneTextColor:c,tabFontWeight:p,tabBorderRadius:f,tabFontWeightActive:v,colorSegment:u,fontWeightStrong:h,tabColorSegment:g,closeSize:x,closeIconSize:y,closeColorHover:w,closeColorPressed:C,closeBorderRadius:$,[A("panePadding",t)]:z,[A("tabPadding",a)]:R,[A("tabPaddingVertical",a)]:S,[A("tabGap",a)]:T,[A("tabGap",`${a}Vertical`)]:P,[A("tabTextColor",n)]:_,[A("tabTextColorActive",n)]:j,[A("tabTextColorHover",n)]:L,[A("tabTextColorDisabled",n)]:B,[A("tabFontSize",t)]:k},common:{cubicBezierEaseInOut:E}}=d.value;return{"--n-bezier":E,"--n-color-segment":u,"--n-bar-color":r,"--n-tab-font-size":k,"--n-tab-text-color":_,"--n-tab-text-color-active":j,"--n-tab-text-color-disabled":B,"--n-tab-text-color-hover":L,"--n-pane-text-color":c,"--n-tab-border-color":b,"--n-tab-border-radius":f,"--n-close-size":x,"--n-close-icon-size":y,"--n-close-color-hover":w,"--n-close-color-pressed":C,"--n-close-border-radius":$,"--n-close-icon-color":o,"--n-close-icon-color-hover":i,"--n-close-icon-color-pressed":s,"--n-tab-color":l,"--n-tab-font-weight":p,"--n-tab-font-weight-active":v,"--n-tab-padding":R,"--n-tab-padding-vertical":S,"--n-tab-gap":T,"--n-tab-gap-vertical":P,"--n-pane-padding-left":W(z,"left"),"--n-pane-padding-right":W(z,"right"),"--n-pane-padding-top":W(z,"top"),"--n-pane-padding-bottom":W(z,"bottom"),"--n-font-weight-strong":h,"--n-tab-color-segment":g}})),de=l?B("tabs",b((()=>`${m.value[0]}${e.type[0]}`)),le,e):void 0;return Object.assign({mergedClsPrefix:s,mergedValue:k,renderedNames:new Set,segmentCapsuleElRef:Q,tabsPaneWrapperRef:U,tabsElRef:c,barElRef:p,addTabInstRef:v,xScrollInstRef:u,scrollWrapperElRef:f,addTabFixed:ee,tabWrapperStyle:O,handleNavResize:Z,mergedSize:m,handleScroll:oe,handleTabsResize:te,cssVars:l?void 0:le,themeClass:null==de?void 0:de.themeClass,animationDirection:Y,renderNameListRef:G,yScrollElRef:h,handleSegmentResize:()=>{J({transitionDisabled:!0})},onAnimationBeforeLeave:function(e){const t=U.value;if(t){M=e.getBoundingClientRect().height;const n=`${M}px`,a=()=>{t.style.height=n,t.style.maxHeight=n};X?(a(),X(),X=null):X=a}},onAnimationEnter:function(e){const t=U.value;if(t){const n=e.getBoundingClientRect().height,a=()=>{document.body.offsetHeight,t.style.maxHeight=`${n}px`,t.style.height=`${Math.max(M,n)}px`};X?(X(),X=null,a()):X=a}},onAnimationAfterEnter:function(){const t=U.value;if(t){t.style.maxHeight="",t.style.height="";const{paneWrapperStyle:n}=e;if("string"==typeof n)t.style.cssText=n;else if(n){const{maxHeight:e,height:a}=n;void 0!==e&&(t.style.maxHeight=e),void 0!==a&&(t.style.height=a)}}},onRender:null==de?void 0:de.onRender},se)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:o,mergedSize:i,renderNameListRef:s,onRender:l,paneWrapperClass:d,paneWrapperStyle:b,$slots:{default:c,prefix:p,suffix:f}}=this;null==l||l();const v=c?R(c()).filter((e=>!0===e.type.__TAB_PANE__)):[],u=c?R(c()).filter((e=>!0===e.type.__TAB__)):[],h=!u.length,g="card"===t,x="segment"===t,m=!g&&!x&&this.justifyContent;s.value=[];const y=()=>{const t=a("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},m?null:a("div",{class:`${e}-tabs-scroll-padding`,style:"top"===n||"bottom"===n?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),h?v.map(((e,t)=>(s.value.push(e.props.name),Be(a(Pe,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:0!==t&&(!m||"center"===m||"start"===m||"end"===m)}),e.children?{default:e.children.tab}:void 0))))):u.map(((e,t)=>(s.value.push(e.props.name),Be(0===t||m?e:We(e))))),!r&&o&&g?Ae(o,0!==(h?v.length:u.length)):null,m?null:a("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return a("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},g&&o?a(E,{onResize:this.handleTabsResize},{default:()=>t}):t,g?a("div",{class:`${e}-tabs-pad`}):null,g?null:a("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},w=x?"top":n;return a("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,m&&`${e}-tabs--flex`,`${e}-tabs--${w}`],style:this.cssVars},a("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${w}`,`${e}-tabs-nav`]},k(p,(t=>t&&a("div",{class:`${e}-tabs-nav__prefix`},t))),x?a(E,{onResize:this.handleSegmentResize},{default:()=>a("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},a("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},a("div",{class:`${e}-tabs-wrapper`},a("div",{class:`${e}-tabs-tab`}))),h?v.map(((e,t)=>(s.value.push(e.props.name),a(Pe,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:0!==t}),e.children?{default:e.children.tab}:void 0)))):u.map(((e,t)=>(s.value.push(e.props.name),0===t?e:We(e)))))}):a(E,{onResize:this.handleNavResize},{default:()=>a("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(w)?a(be,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:y}):a("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},y()))}),r&&o&&g?Ae(o,!0):null,k(f,(t=>t&&a("div",{class:`${e}-tabs-nav__suffix`},t)))),h&&(!this.animated||"top"!==w&&"bottom"!==w?Le(v,this.mergedValue,this.renderedNames):a("div",{ref:"tabsPaneWrapperRef",style:b,class:[`${e}-tabs-pane-wrapper`,d]},Le(v,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection))))}});function Le(e,t,n,r,o,i,s){const l=[];return e.forEach((e=>{const{name:a,displayDirective:r,"display-directive":o}=e.props,i=e=>r===e||o===e,s=t===a;if(void 0!==e.key&&(e.key=a),s||i("show")||i("show:lazy")&&n.has(a)){n.has(a)||n.add(a);const t=!i("if");l.push(t?O(e,[[D,s]]):e)}})),s?a(F,{name:`${s}-transition`,onBeforeLeave:r,onEnter:o,onAfterEnter:i},{default:()=>l}):l}function Ae(e,t){return a(Pe,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:"object"==typeof e&&e.disabled})}function We(e){const t=I(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Be(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const ke={class:"user-info flex flex-wrap gap-8 p-8 pb-6 border-b border-solid"},Ee={class:"avatar relative h-24"},Ne={class:"info grow flex flex-col justify-center"},He={class:"name mb-4"},Oe={class:"lg:text-2xl md:text-lg sm:text-base font-bold"},De={class:"tooltip-wrap flex items-center"},Fe={class:"line-height-1 ml-2"},Ie={class:"tooltip-wrap flex items-center"},Ve={class:"tooltip-wrap flex items-center"},Ue={class:"line-height-1 ml-2"},Me={class:"tooltip-wrap flex items-center"},Xe={class:"line-height-1 ml-2"},Ge={class:"section-selector p-5 md:p-6 pt-0"},Ye={class:"main mt-8"},qe=e({__name:"index",setup(e){const n=t("settings"),a=V(),r=j(a.getUserInfo);return(e,t)=>{const a=se,o=Z,i=le,s=Pe,l=je,d=ee,b=Te;return U(),M(p,null,[X(d,{class:"header flex flex-col","content-style":{padding:0}},{default:G((()=>{var e,d;return[Y("div",ke,[Y("div",Ee,[X(a,{round:"",src:null==(e=q(r))?void 0:e.avatarUrl,size:80},null,8,["src"])]),Y("div",Ne,[Y("div",He,[Y("h1",Oe,Q(null==(d=q(r))?void 0:d.fullName),1)]),X(i,{size:"large"},{default:G((()=>[X(te,{"tooltip-text":"Roles",placement:"top"},{default:G((()=>{var e;return[Y("div",De,[X(o,{component:"tabler:user"}),Y("span",Fe,Q(null==(e=q(r))?void 0:e.roles),1)])]})),_:1}),X(te,{"tooltip-text":"Location",placement:"top"},{default:G((()=>[Y("div",Ie,[X(o,{component:"tabler:map-pin"}),t[2]||(t[2]=Y("span",{class:"line-height-1 ml-2"},"China",-1))])])),_:1}),X(te,{"tooltip-text":"Email",placement:"top"},{default:G((()=>{var e;return[Y("div",Ve,[X(o,{component:"tabler:mail"}),Y("span",Ue,Q(null==(e=q(r))?void 0:e.email),1)])]})),_:1}),X(te,{"tooltip-text":"Contacts",placement:"top"},{default:G((()=>{var e;return[Y("div",Me,[X(o,{component:"tabler:phone"}),Y("span",Xe,Q(null==(e=q(r))?void 0:e.phone),1)])]})),_:1})])),_:1})])]),Y("div",Ge,[X(l,{value:q(n),"onUpdate:value":t[0]||(t[0]=e=>J(n)?n.value=e:null)},{default:G((()=>[X(s,{name:"settings"},{default:G((()=>t[3]||(t[3]=[K(" Settings ")]))),_:1})])),_:1},8,["value"])])]})),_:1}),Y("div",Ye,[X(l,{value:q(n),"onUpdate:value":t[1]||(t[1]=e=>J(n)?n.value=e:null),"tab-style":{display:"none"},animated:""},{default:G((()=>[X(b,{name:"settings"})])),_:1},8,["value"])])],64)}}});export{qe as default}; diff --git a/docs/assets/index-B0007Jh1.js b/docs/assets/index-B0007Jh1.js new file mode 100644 index 0000000..ecff048 --- /dev/null +++ b/docs/assets/index-B0007Jh1.js @@ -0,0 +1 @@ +var e=Object.defineProperty,a=Object.defineProperties,t=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,o=(a,t,l)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[t]=l;import{d as s,v as i,x as u,y as d,z as p,A as c,C as m,D as f,E as h,F as v,l as g,G as b,N as _,o as y,p as k,g as x,a as z,b as w,w as C,h as j,H as V,B as $,c as P,e as R,S as B,I as O,J as S,j as F,K as D,L as I,_ as U,M as H}from"./index-BT0ZcDkn.js";import{u as E}from"./use-message-CulIy1l8.js";import{_ as T}from"./plugin-vueexport-helper-BCo6x5W8.js";import{r as M,s as A,_ as N}from"./RadioGroup-BozaTzAB.js";import{N as L}from"./Input-D2qMgPO1.js";import{N as q,a as G}from"./FormItem-CZeE-Hc9.js";import{_ as W}from"./DatePicker-xH6BAkRV.js";import{_ as J}from"./Space-_SFqgYmP.js";import{_ as K}from"./Avatar-BpYqF4bS.js";import{_ as Q}from"./Dropdown-BMB08iEg.js";import{C as X}from"./ChevronForwardCircleOutline-BjHSf1QY.js";import"./use-merged-state-D7wGS6Km.js";import"./get-slot-BjAOOWF7.js";import"./use-locale-CbMPSc0o.js";import"./FocusDetector-C7V71fRC.js";import"./Popover-3mPJ01hC.js";import"./use-compitable-CHcH6xDN.js";import"./next-frame-once-DiJwGkuW.js";import"./Forward-xWz6l688.js";import"./create-Bylz8BGN.js";import"./Tag-D4OMG_5z.js";const Y=s({name:"ArrowBack",render:()=>i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},i("path",{d:"M0 0h24v24H0V0z",fill:"none"}),i("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}),Z=s({name:"RadioButton",props:M,setup:A,render(){const{mergedClsPrefix:e}=this;return i("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},i("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),i("div",{class:`${e}-radio-button__state-border`}),u(this.$slots.default,(a=>a||this.label?i("div",{ref:"labelRef",class:`${e}-radio__label`},a||this.label):null)))}}),ee=d([p("page-header-header","\n margin-bottom: 20px;\n "),p("page-header","\n display: flex;\n align-items: center;\n justify-content: space-between;\n line-height: 1.5;\n font-size: var(--n-font-size);\n ",[c("main","\n display: flex;\n flex-wrap: nowrap;\n align-items: center;\n "),c("back","\n display: flex;\n margin-right: 16px;\n font-size: var(--n-back-size);\n cursor: pointer;\n color: var(--n-back-color);\n transition: color .3s var(--n-bezier);\n ",[d("&:hover","color: var(--n-back-color-hover);"),d("&:active","color: var(--n-back-color-pressed);")]),c("avatar","\n display: flex;\n margin-right: 12px\n "),c("title","\n margin-right: 16px;\n transition: color .3s var(--n-bezier);\n font-size: var(--n-title-font-size);\n font-weight: var(--n-title-font-weight);\n color: var(--n-title-text-color);\n "),c("subtitle","\n font-size: 14px;\n transition: color .3s var(--n-bezier);\n color: var(--n-subtitle-text-color);\n ")]),p("page-header-content","\n font-size: var(--n-font-size);\n ",[d("&:not(:first-child)","margin-top: 20px;")]),p("page-header-footer","\n font-size: var(--n-font-size);\n ",[d("&:not(:first-child)","margin-top: 20px;")])]),ae=Object.assign(Object.assign({},m.props),{title:String,subtitle:String,extra:String,onBack:Function}),te=s({name:"PageHeader",props:ae,setup(e){const{mergedClsPrefixRef:a,mergedRtlRef:t,inlineThemeDisabled:l}=f(e),r=m("PageHeader","-page-header",ee,h,e,a),n=v("PageHeader",t,a),o=g((()=>{const{self:{titleTextColor:e,subtitleTextColor:a,backColor:t,fontSize:l,titleFontSize:n,backSize:o,titleFontWeight:s,backColorHover:i,backColorPressed:u},common:{cubicBezierEaseInOut:d}}=r.value;return{"--n-title-text-color":e,"--n-title-font-size":n,"--n-title-font-weight":s,"--n-font-size":l,"--n-back-size":o,"--n-subtitle-text-color":a,"--n-back-color":t,"--n-back-color-hover":i,"--n-back-color-pressed":u,"--n-bezier":d}})),s=l?b("page-header",void 0,o,e):void 0;return{rtlEnabled:n,mergedClsPrefix:a,cssVars:l?void 0:o,themeClass:null==s?void 0:s.themeClass,onRender:null==s?void 0:s.onRender}},render(){var e;const{onBack:a,title:t,subtitle:l,extra:r,mergedClsPrefix:n,cssVars:o,$slots:s}=this;null===(e=this.onRender)||void 0===e||e.call(this);const{title:u,subtitle:d,extra:p,default:c,header:m,avatar:f,footer:h,back:v}=s,g=a,b=t||u,y=l||d,k=r||p;return i("div",{style:o,class:[`${n}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${n}-page-header-wrapper--rtl`]},m?i("div",{class:`${n}-page-header-header`,key:"breadcrumb"},m()):null,(g||f||b||y||k)&&i("div",{class:`${n}-page-header`,key:"header"},i("div",{class:`${n}-page-header__main`,key:"back"},g?i("div",{class:`${n}-page-header__back`,onClick:a},v?v():i(_,{clsPrefix:n},{default:()=>i(Y,null)})):null,f?i("div",{class:`${n}-page-header__avatar`},f()):null,b?i("div",{class:`${n}-page-header__title`,key:"title"},t||u()):null,y?i("div",{class:`${n}-page-header__subtitle`,key:"subtitle"},l||d()):null),k?i("div",{class:`${n}-page-header__extra`},r||p()):null),c?i("div",{class:`${n}-page-header-content`,key:"content"},c()):null,h?i("div",{class:`${n}-page-header-footer`,key:"footer"},h()):null)}}),le={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},re=[x("path",{d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),x("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M338.29 338.29L448 448"},null,-1)],ne=s({name:"SearchOutline",render:function(e,a){return y(),k("svg",le,re)}}),oe=s({setup(){const e=z(null),a=E();return{formRef:e,size:z("medium"),formValue:z({user:{name:"",age:""},timestamp:(new Date).getTime(),phone:""}),rules:{user:{name:{required:!0,message:"请输入姓名",trigger:"blur"},age:{required:!0,message:"请输入年龄",trigger:["input","blur"]}},phone:{required:!0,message:"请输入电话号码",trigger:["input"]}},handleValidateClick(t){var l;t.preventDefault(),null==(l=e.value)||l.validate((e=>{e?(console.log(e),a.error("Invalid")):a.success("Valid")}))}}}}),se={style:{width:"50%"}};const ie=T(oe,[["render",function(e,a,t,l,r,n){const o=Z,s=N,i=L,u=q,d=W,p=$,c=G,m=J;return y(),k(V,null,[w(s,{value:e.size,"onUpdate:value":a[0]||(a[0]=a=>e.size=a),name:"left-size",style:{"margin-bottom":"12px"}},{default:C((()=>[w(o,{value:"small"},{default:C((()=>a[9]||(a[9]=[j(" 小 ")]))),_:1}),w(o,{value:"medium"},{default:C((()=>a[10]||(a[10]=[j(" 中 ")]))),_:1}),w(o,{value:"large"},{default:C((()=>a[11]||(a[11]=[j(" 大 ")]))),_:1})])),_:1},8,["value"]),w(c,{ref:"formRef",inline:"","label-width":80,model:e.formValue,rules:e.rules,size:e.size},{default:C((()=>[w(u,{label:"姓名",path:"user.name"},{default:C((()=>[w(i,{value:e.formValue.user.name,"onUpdate:value":a[1]||(a[1]=a=>e.formValue.user.name=a),placeholder:"输入姓名"},null,8,["value"])])),_:1}),w(u,{label:"年龄",path:"user.age"},{default:C((()=>[w(i,{value:e.formValue.user.age,"onUpdate:value":a[2]||(a[2]=a=>e.formValue.user.age=a),placeholder:"输入年龄"},null,8,["value"])])),_:1}),w(u,{label:"电话号码",path:"phone"},{default:C((()=>[w(i,{value:e.formValue.phone,"onUpdate:value":a[3]||(a[3]=a=>e.formValue.phone=a),placeholder:"电话号码"},null,8,["value"])])),_:1}),w(u,{label:"日期时间"},{default:C((()=>[w(d,{value:e.formValue.timestamp,"onUpdate:value":a[4]||(a[4]=a=>e.formValue.timestamp=a),type:"date"},null,8,["value"])])),_:1}),w(u,null,{default:C((()=>[w(p,{"attr-type":"button",onClick:e.handleValidateClick},{default:C((()=>a[12]||(a[12]=[j(" 验证 ")]))),_:1},8,["onClick"])])),_:1})])),_:1},8,["model","rules","size"]),x("div",se,[w(c,{ref:"formRef2","label-width":80,model:e.formValue,rules:e.rules,size:e.size},{default:C((()=>[w(u,{label:"姓名",path:"user.name"},{default:C((()=>[w(i,{value:e.formValue.user.name,"onUpdate:value":a[5]||(a[5]=a=>e.formValue.user.name=a),placeholder:"输入姓名"},null,8,["value"])])),_:1}),w(u,{label:"姓名",path:"user.name"},{default:C((()=>[w(i,{value:e.formValue.user.name,"onUpdate:value":a[6]||(a[6]=a=>e.formValue.user.name=a),placeholder:"输入姓名"},null,8,["value"])])),_:1}),w(u,{label:"年龄",path:"user.age"},{default:C((()=>[w(i,{value:e.formValue.user.age,"onUpdate:value":a[7]||(a[7]=a=>e.formValue.user.age=a),placeholder:"输入年龄"},null,8,["value"])])),_:1}),w(u,{label:"电话号码",path:"phone"},{default:C((()=>[w(i,{value:e.formValue.phone,"onUpdate:value":a[8]||(a[8]=a=>e.formValue.phone=a),placeholder:"电话号码"},null,8,["value"])])),_:1}),w(u,null,{default:C((()=>[w(m,null,{default:C((()=>[w(p,{"attr-type":"button",onClick:e.handleValidateClick},{default:C((()=>a[13]||(a[13]=[j(" 验证 ")]))),_:1},8,["onClick"]),w(p,null,{default:C((()=>a[14]||(a[14]=[j("Default")]))),_:1}),w(p,{type:"tertiary"},{default:C((()=>a[15]||(a[15]=[j(" Tertiary ")]))),_:1}),w(p,{type:"primary"},{default:C((()=>a[16]||(a[16]=[j(" Primary ")]))),_:1}),w(p,{type:"info"},{default:C((()=>a[17]||(a[17]=[j(" Info ")]))),_:1}),w(p,{type:"success"},{default:C((()=>a[18]||(a[18]=[j(" Success ")]))),_:1}),w(p,{type:"warning"},{default:C((()=>a[19]||(a[19]=[j(" Warning ")]))),_:1}),w(p,{type:"error"},{default:C((()=>a[20]||(a[20]=[j(" Error ")]))),_:1})])),_:1})])),_:1})])),_:1},8,["model","rules","size"])]),a[21]||(a[21]=x("pre",null,null,-1))],64)}]]);const ue=T(s({setup(){const e=E();return{handleBack(){e.info("[onBack]")},options:[{label:"催更",key:"1"},{label:"催更",key:"2"},{label:"催更",key:"3"}]}}}),[["render",function(e,a,t,l,r,n){const o=K,s=$,i=Q,u=J,d=te;return y(),P(d,{subtitle:"表单详情",onBack:e.handleBack},{title:C((()=>a[0]||(a[0]=[x("a",{href:"https://anyway.fm/",style:{"text-decoration":"none",color:"inherit"}},"Anyway.FM",-1)]))),header:C((()=>a[1]||(a[1]=[]))),avatar:C((()=>[w(o,{src:"https://cdnimg103.lizhi.fm/user/2017/02/04/2583325032200238082_160x160.jpg"})])),extra:C((()=>[w(u,null,{default:C((()=>[w(s,null,{default:C((()=>a[2]||(a[2]=[j("催更")]))),_:1}),w(i,{options:e.options,placement:"bottom-start"},{default:C((()=>[w(s,{bordered:!1,style:{padding:"0 4px"}},{default:C((()=>a[3]||(a[3]=[j(" ··· ")]))),_:1})])),_:1},8,["options"])])),_:1})])),footer:C((()=>a[4]||(a[4]=[j(" 截止到 2021 年 4 月 3 日 ")]))),_:1},8,["onBack"])}]]),de=s((pe=((e,a)=>{for(var t in a||(a={}))r.call(a,t)&&o(e,t,a[t]);if(l)for(var t of l(a))n.call(a,t)&&o(e,t,a[t]);return e})({},{name:"Chat"}),a(pe,t({__name:"index",setup(e){const a=z(!1),t=s((()=>()=>i("b","组件Foo"))),l=s((()=>()=>i("b","组件Bar")));return(e,r)=>{const n=I,o=U,s=$,i=J,u=H;return y(),k("div",null,[w(n,{title:"卡片"},{default:C((()=>r[2]||(r[2]=[j(" 卡片内容 ")]))),_:1}),w(n,{title:"按钮组",class:"mt-5"},{default:C((()=>[w(o,{size:"30",component:R(B)},null,8,["component"]),w(o,{size:"60",component:R(O)},null,8,["component"]),w(o,{size:"60",component:R(ne)},null,8,["component"]),w(i,null,{default:C((()=>[w(s,null,{default:C((()=>r[3]||(r[3]=[j("Default")]))),_:1}),w(s,{type:"tertiary"},{default:C((()=>r[4]||(r[4]=[j(" Tertiary ")]))),_:1}),w(s,{type:"primary"},{default:C((()=>r[5]||(r[5]=[j(" Primary ")]))),_:1}),w(s,{type:"info"},{default:C((()=>r[6]||(r[6]=[j(" Info ")]))),_:1}),w(s,{type:"success"},{default:C((()=>r[7]||(r[7]=[j(" Success ")]))),_:1}),w(s,{type:"warning"},{default:C((()=>r[8]||(r[8]=[j(" Warning ")]))),_:1}),w(s,{type:"error"},{default:C((()=>r[9]||(r[9]=[j(" Error ")]))),_:1})])),_:1}),r[10]||(r[10]=j(" 卡片内容 "))])),_:1}),w(n,{title:"测试动态组件",class:"mt-5"},{default:C((()=>[w(o,{size:"30",component:R(B)},null,8,["component"]),w(o,{size:"60",component:R(O)},null,8,["component"]),w(o,{size:"60",component:R(ne)},null,8,["component"]),w(i,null,{default:C((()=>[w(s,{onClick:r[0]||(r[0]=e=>a.value=!0)},{default:C((()=>r[11]||(r[11]=[j("默认")]))),_:1}),w(s,{onClick:r[1]||(r[1]=e=>a.value=!1)},{default:C((()=>r[12]||(r[12]=[j(" 更换图标 ")]))),_:1}),w(o,{size:"60",component:R(a)?R(X):R(S)},null,8,["component"])])),_:1}),j(" "+F(R(a)?R(t):R(l))+" ",1),x("div",null,[x("div",null,[(y(),P(D(R(a)?R(l):R(t))))]),x("div",null,[w(o,{style:{width:"200px"},color:"#165dff",size:"60",component:R(a)?R(l):R(t)},null,8,["component"])]),x("div",null,[w(u,{style:{width:"200px"},color:"red",size:"30",component:R(a)?R(l):R(t)},null,8,["component"])]),x("div",null,[w(o,{style:{width:"200px"},color:"#165dff",size:"60",component:R(a)?R(l):R(t)},null,8,["component"])]),x("div",null,[w(u,{style:{width:"200px"},color:"red",size:"30",component:R(a)?R(l):R(t)},null,8,["component"])])]),x("div",null,[w(R(t))]),x("div",null,[w(R(l))]),r[13]||(r[13]=x("div",null,null,-1))])),_:1}),w(n,{class:"mt-10 mb-10"},{default:C((()=>[w(ue),w(ie)])),_:1})])}}}))));var pe;export{de as default}; diff --git a/docs/assets/index-B014LJnX.js b/docs/assets/index-B014LJnX.js new file mode 100644 index 0000000..ddd74c0 --- /dev/null +++ b/docs/assets/index-B014LJnX.js @@ -0,0 +1,22 @@ +var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,i=(t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,a=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&i(e,n,t[n]);if(o)for(var n of o(t))r.call(t,n)&&i(e,n,t[n]);return e},u=(e,o)=>t(e,n(o)),s=e=>"symbol"==typeof e?e:e+"",g=(e,t)=>{var n={};for(var i in e)l.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&o)for(var i of o(e))t.indexOf(i)<0&&r.call(e,i)&&(n[i]=e[i]);return n};import{y as d,z as c,Q as p,U as f,V as m,W as b,d as v,D as h,C as w,X as C,F as S,l as R,Y as F,G as P,v as M,Z as x,$ as I,a0 as V,a as y,a1 as _,e as z}from"./index-BT0ZcDkn.js";const E=d([c("table","\n font-size: var(--n-font-size);\n font-variant-numeric: tabular-nums;\n line-height: var(--n-line-height);\n width: 100%;\n border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;\n text-align: left;\n border-collapse: separate;\n border-spacing: 0;\n overflow: hidden;\n background-color: var(--n-td-color);\n border-color: var(--n-merged-border-color);\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n --n-merged-border-color: var(--n-border-color);\n ",[d("th","\n white-space: nowrap;\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n text-align: inherit;\n padding: var(--n-th-padding);\n vertical-align: inherit;\n text-transform: none;\n border: 0px solid var(--n-merged-border-color);\n font-weight: var(--n-th-font-weight);\n color: var(--n-th-text-color);\n background-color: var(--n-th-color);\n border-bottom: 1px solid var(--n-merged-border-color);\n border-right: 1px solid var(--n-merged-border-color);\n ",[d("&:last-child","\n border-right: 0px solid var(--n-merged-border-color);\n ")]),d("td","\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n padding: var(--n-td-padding);\n color: var(--n-td-text-color);\n background-color: var(--n-td-color);\n border: 0px solid var(--n-merged-border-color);\n border-right: 1px solid var(--n-merged-border-color);\n border-bottom: 1px solid var(--n-merged-border-color);\n ",[d("&:last-child","\n border-right: 0px solid var(--n-merged-border-color);\n ")]),p("bordered","\n border: 1px solid var(--n-merged-border-color);\n border-radius: var(--n-border-radius);\n ",[d("tr",[d("&:last-child",[d("td","\n border-bottom: 0 solid var(--n-merged-border-color);\n ")])])]),p("single-line",[d("th","\n border-right: 0px solid var(--n-merged-border-color);\n "),d("td","\n border-right: 0px solid var(--n-merged-border-color);\n ")]),p("single-column",[d("tr",[d("&:not(:last-child)",[d("td","\n border-bottom: 0px solid var(--n-merged-border-color);\n ")])])]),p("striped",[d("tr:nth-of-type(even)",[d("td","background-color: var(--n-td-color-striped)")])]),f("bottom-bordered",[d("tr",[d("&:last-child",[d("td","\n border-bottom: 0px solid var(--n-merged-border-color);\n ")])])])]),m(c("table","\n background-color: var(--n-td-color-modal);\n --n-merged-border-color: var(--n-border-color-modal);\n ",[d("th","\n background-color: var(--n-th-color-modal);\n "),d("td","\n background-color: var(--n-td-color-modal);\n ")])),b(c("table","\n background-color: var(--n-td-color-popover);\n --n-merged-border-color: var(--n-border-color-popover);\n ",[d("th","\n background-color: var(--n-th-color-popover);\n "),d("td","\n background-color: var(--n-td-color-popover);\n ")]))]),G=v({name:"Table",props:Object.assign(Object.assign({},w.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:o}=h(e),l=w("Table","-table",E,C,e,t),r=S("Table",o,t),i=R((()=>{const{size:t}=e,{self:{borderColor:n,tdColor:o,tdColorModal:r,tdColorPopover:i,thColor:a,thColorModal:u,thColorPopover:s,thTextColor:g,tdTextColor:d,borderRadius:c,thFontWeight:p,lineHeight:f,borderColorModal:m,borderColorPopover:b,tdColorStriped:v,tdColorStripedModal:h,tdColorStripedPopover:w,[F("fontSize",t)]:C,[F("tdPadding",t)]:S,[F("thPadding",t)]:R},common:{cubicBezierEaseInOut:P}}=l.value;return{"--n-bezier":P,"--n-td-color":o,"--n-td-color-modal":r,"--n-td-color-popover":i,"--n-td-text-color":d,"--n-border-color":n,"--n-border-color-modal":m,"--n-border-color-popover":b,"--n-border-radius":c,"--n-font-size":C,"--n-th-color":a,"--n-th-color-modal":u,"--n-th-color-popover":s,"--n-th-font-weight":p,"--n-th-text-color":g,"--n-line-height":f,"--n-td-padding":S,"--n-th-padding":R,"--n-td-color-striped":v,"--n-td-color-striped-modal":h,"--n-td-color-striped-popover":w}})),a=n?P("table",R((()=>e.size[0])),i,e):void 0;return{rtlEnabled:r,mergedClsPrefix:t,cssVars:n?void 0:i,themeClass:null==a?void 0:a.themeClass,onRender:null==a?void 0:a.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return null===(e=this.onRender)||void 0===e||e.call(this),M("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}); +/** + * table-core + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */ +function A(){return{accessor:(e,t)=>u(a({},t),"function"==typeof e?{accessorFn:e}:{accessorKey:e}),display:e=>e,group:e=>e}}function D(e,t){return"function"==typeof e?e(t):e}function O(e,t){return n=>{t.setState((t=>u(a({},t),{[e]:D(n,t[e])})))}}function L(e){return e instanceof Function}function H(e,t,n){let o,l=[];return r=>{let i;n.key&&n.debug&&(i=Date.now());const a=e(r);if(!(a.length!==l.length||a.some(((e,t)=>l[t]!==e))))return o;let u;if(l=a,n.key&&n.debug&&(u=Date.now()),o=t(...a),null==n||null==n.onChange||n.onChange(o),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-u))/100,o=t/16,l=(e,t)=>{for(e=String(e);e.length{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:o}}const T="debugHeaders";function k(e,t,n){var o;let l={id:null!=(o=n.id)?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(l),e},getContext:()=>({table:e,header:l,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(l,e)})),l}const j={createTable:e=>{e.getHeaderGroups=H((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,l)=>{var r,i;const a=null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],u=null!=(i=null==l?void 0:l.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[];return q(t,[...a,...n.filter((e=>!(null!=o&&o.includes(e.id)||null!=l&&l.includes(e.id)))),...u],e)}),B(e.options,T)),e.getCenterHeaderGroups=H((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,l)=>q(t,n=n.filter((e=>!(null!=o&&o.includes(e.id)||null!=l&&l.includes(e.id)))),e,"center")),B(e.options,T)),e.getLeftHeaderGroups=H((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,o)=>{var l;return q(t,null!=(l=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?l:[],e,"left")}),B(e.options,T)),e.getRightHeaderGroups=H((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,o)=>{var l;return q(t,null!=(l=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?l:[],e,"right")}),B(e.options,T)),e.getFooterGroups=H((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),B(e.options,T)),e.getLeftFooterGroups=H((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),B(e.options,T)),e.getCenterFooterGroups=H((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),B(e.options,T)),e.getRightFooterGroups=H((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),B(e.options,T)),e.getFlatHeaders=H((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),B(e.options,T)),e.getLeftFlatHeaders=H((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),B(e.options,T)),e.getCenterFlatHeaders=H((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),B(e.options,T)),e.getRightFlatHeaders=H((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),B(e.options,T)),e.getCenterLeafHeaders=H((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),B(e.options,T)),e.getLeftLeafHeaders=H((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),B(e.options,T)),e.getRightLeafHeaders=H((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),B(e.options,T)),e.getLeafHeaders=H((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var o,l,r,i,a,u;return[...null!=(o=null==(l=e[0])?void 0:l.headers)?o:[],...null!=(r=null==(i=t[0])?void 0:i.headers)?r:[],...null!=(a=null==(u=n[0])?void 0:u.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),B(e.options,T))}};function q(e,t,n,o){var l,r;let i=0;const a=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)};a(e);let u=[];const s=(e,t)=>{const l={depth:t,id:[o,`${t}`].filter(Boolean).join("_"),headers:[]},r=[];e.forEach((e=>{const i=[...r].reverse()[0];let a,u=!1;if(e.column.depth===l.depth&&e.column.parent?a=e.column.parent:(a=e.column,u=!0),i&&(null==i?void 0:i.column)===a)i.subHeaders.push(e);else{const l=k(n,a,{id:[o,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:u,placeholderId:u?`${r.filter((e=>e.column===a)).length}`:void 0,depth:t,index:r.length});l.subHeaders.push(e),r.push(l)}l.headers.push(e),e.headerGroup=l})),u.push(l),t>0&&s(r,t-1)},g=t.map(((e,t)=>k(n,e,{depth:i,index:t})));s(g,i-1),u.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,o=[0];e.subHeaders&&e.subHeaders.length?(o=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:l}=e;t+=n,o.push(l)}))):t=1;return n+=Math.min(...o),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(l=null==(r=u[0])?void 0:r.headers)?l:[]),u}const N=(e,t,n,o,l,r,i)=>{let a={id:t,index:o,original:n,depth:l,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,o),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,o),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],o=e=>{e.forEach((e=>{n.push(e);const l=t(e);null!=l&&l.length&&o(l)}))};return o(e),n}(a.subRows,(e=>e.subRows)),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:H((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,o){const l={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:()=>{var t;return null!=(t=l.getValue())?t:e.options.renderFallbackValue},getContext:H((()=>[e,n,t,l]),((e,t,n,o)=>({table:e,column:t,row:n,cell:o,getValue:o.getValue,renderValue:o.renderValue})),B(e.options,"debugCells"))};return e._features.forEach((o=>{null==o.createCell||o.createCell(l,n,t,e)}),{}),l}(e,a,t,t.id)))),B(e.options,"debugRows")),_getAllCellsByColumnId:H((()=>[a.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),B(e.options,"debugRows"))};for(let u=0;u{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},U=(e,t,n)=>{var o,l;const r=null==n||null==(o=n.toString())?void 0:o.toLowerCase();return Boolean(null==(l=e.getValue(t))||null==(l=l.toString())||null==(l=l.toLowerCase())?void 0:l.includes(r))};U.autoRemove=e=>ne(e);const X=(e,t,n)=>{var o;return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())?void 0:o.includes(n))};X.autoRemove=e=>ne(e);const K=(e,t,n)=>{var o;return(null==(o=e.getValue(t))||null==(o=o.toString())?void 0:o.toLowerCase())===(null==n?void 0:n.toLowerCase())};K.autoRemove=e=>ne(e);const W=(e,t,n)=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)};W.autoRemove=e=>ne(e)||!(null!=e&&e.length);const Q=(e,t,n)=>!n.some((n=>{var o;return!(null!=(o=e.getValue(t))&&o.includes(n))}));Q.autoRemove=e=>ne(e)||!(null!=e&&e.length);const Y=(e,t,n)=>n.some((n=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)}));Y.autoRemove=e=>ne(e)||!(null!=e&&e.length);const Z=(e,t,n)=>e.getValue(t)===n;Z.autoRemove=e=>ne(e);const J=(e,t,n)=>e.getValue(t)==n;J.autoRemove=e=>ne(e);const ee=(e,t,n)=>{let[o,l]=n;const r=e.getValue(t);return r>=o&&r<=l};ee.resolveFilterValue=e=>{let[t,n]=e,o="number"!=typeof t?parseFloat(t):t,l="number"!=typeof n?parseFloat(n):n,r=null===t||Number.isNaN(o)?-1/0:o,i=null===n||Number.isNaN(l)?1/0:l;if(r>i){const e=r;r=i,i=e}return[r,i]},ee.autoRemove=e=>ne(e)||ne(e[0])&&ne(e[1]);const te={includesString:U,includesStringSensitive:X,equalsString:K,arrIncludes:W,arrIncludesAll:Q,arrIncludesSome:Y,equals:Z,weakEquals:J,inNumberRange:ee};function ne(e){return null==e||""===e}const oe={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>a({columnFilters:[]},e),getDefaultOptions:e=>({onColumnFiltersChange:O("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"string"==typeof o?te.includesString:"number"==typeof o?te.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?te.equals:Array.isArray(o)?te.arrIncludes:te.weakEquals},e.getFilterFn=()=>{var n,o;return L(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(o=t.options.filterFns)?void 0:o[e.columnDef.filterFn])?n:te[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,l;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(o=t.options.enableColumnFilters)||o)&&(null==(l=t.options.enableFilters)||l)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().columnFilters)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),l=null==t?void 0:t.find((t=>t.id===e.id)),r=D(n,l?l.value:void 0);var i;if(le(o,r,e))return null!=(i=null==t?void 0:t.filter((t=>t.id!==e.id)))?i:[];const a={id:e.id,value:r};var u;return l?null!=(u=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?u:[]:null!=t&&t.length?[...t,a]:[a]}))}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=D(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(le(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function le(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const re={sum:(e,t,n)=>n.reduce(((t,n)=>{const o=n.getValue(e);return t+("number"==typeof o?o:0)}),0),min:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o>n||void 0===o&&n>=n)&&(o=n)})),o},max:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o=n)&&(o=n)})),o},extent:(e,t,n)=>{let o,l;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===o?n>=n&&(o=l=n):(o>n&&(o=n),l{let n=0,o=0;if(t.forEach((t=>{let l=t.getValue(e);null!=l&&(l=+l)>=l&&(++n,o+=l)})),n)return o/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(o=n,!Array.isArray(o)||!o.every((e=>"number"==typeof e)))return;var o;if(1===n.length)return n[0];const l=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t));return n.length%2!=0?r[l]:(r[l-1]+r[l])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},ie={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>a({grouping:[]},e),getDefaultOptions:e=>({onGroupingChange:O("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,o;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(o=t.options.enableGrouping)||o)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"number"==typeof o?re.sum:"[object Date]"===Object.prototype.toString.call(o)?re.extent:void 0},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return L(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(o=t.options.aggregationFns)?void 0:o[e.columnDef.aggregationFn])?n:re[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return null!=o&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const ae={getInitialState:e=>a({columnOrder:[]},e),getDefaultOptions:e=>({onColumnOrderChange:O("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=H((e=>[pe(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),B(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var o;return(null==(o=pe(t,n)[0])?void 0:o.id)===e.id},e.getIsLastColumn=n=>{var o;const l=pe(t,n);return(null==(o=l[l.length-1])?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=H((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>o=>{let l=[];if(null!=e&&e.length){const t=[...e],n=[...o];for(;n.length&&t.length;){const e=t.shift(),o=n.findIndex((t=>t.id===e));o>-1&&l.push(n.splice(o,1)[0])}l=[...l,...n]}else l=o;return function(e,t,n){if(null==t||!t.length||!n)return e;const o=e.filter((e=>!t.includes(e.id)));return"remove"===n?o:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...o]}(l,t,n)}),B(e.options,"debugTable"))}},ue={getInitialState:e=>a({columnPinning:{left:[],right:[]}},e),getDefaultOptions:e=>({onColumnPinningChange:O("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,l,r,i,a,u;return"right"===n?{left:(null!=(r=null==e?void 0:e.left)?r:[]).filter((e=>!(null!=o&&o.includes(e)))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter((e=>!(null!=o&&o.includes(e)))),...o]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=o&&o.includes(e)))),...o],right:(null!=(u=null==e?void 0:e.right)?u:[]).filter((e=>!(null!=o&&o.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=o&&o.includes(e)))),right:(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=o&&o.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,o,l;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(o=null!=(l=t.options.enableColumnPinning)?l:t.options.enablePinning)||o)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:o,right:l}=t.getState().columnPinning,r=n.some((e=>null==o?void 0:o.includes(e))),i=n.some((e=>null==l?void 0:l.includes(e)));return r?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,o;const l=e.getIsPinned();return l?null!=(n=null==(o=t.getState().columnPinning)||null==(o=o[l])?void 0:o.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=H((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const o=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!o.includes(e.column.id)))}),B(t.options,"debugRows")),e.getLeftVisibleCells=H((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>u(a({},e),{position:"left"})))),B(t.options,"debugRows")),e.getRightVisibleCells=H((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>u(a({},e),{position:"right"})))),B(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(o=e.initialState)?void 0:o.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;var l,r;return t?Boolean(null==(n=o[t])?void 0:n.length):Boolean((null==(l=o.left)?void 0:l.length)||(null==(r=o.right)?void 0:r.length))},e.getLeftLeafColumns=H((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),B(e.options,"debugColumns")),e.getRightLeafColumns=H((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),B(e.options,"debugColumns")),e.getCenterLeafColumns=H((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const o=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!o.includes(e.id)))}),B(e.options,"debugColumns"))}},se={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},ge={getDefaultColumnDef:()=>se,getInitialState:e=>a({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}},e),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:O("columnSizing",e),onColumnSizingInfoChange:O("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,l;const r=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:se.minSize,null!=(o=null!=r?r:e.columnDef.size)?o:se.size),null!=(l=e.columnDef.maxSize)?l:se.maxSize)},e.getStart=H((e=>[e,pe(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),B(t.options,"debugColumns")),e.getAfter=H((e=>[e,pe(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),B(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing((t=>{var n;let o=t,{[n=e.id]:l}=o;return g(o,[s(n)])}))},e.getCanResize=()=>{var n,o;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(o=t.options.enableColumnResizing)||o)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var o;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(o=e.column.getSize())?o:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const o=t.getColumn(e.column.id),l=null==o?void 0:o.getCanResize();return r=>{if(!o||!l)return;if(null==r.persist||r.persist(),ce(r)&&r.touches&&r.touches.length>1)return;const i=e.getSize(),s=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[o.id,o.getSize()]],g=ce(r)?Math.round(r.touches[0].clientX):r.clientX,d={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var o,l;const r="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(o=null==e?void 0:e.startOffset)?o:0))*r,s=Math.max(i/(null!=(l=null==e?void 0:e.startSize)?l:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;d[t]=Math.round(100*Math.max(n+n*s,0))/100})),u(a({},e),{deltaOffset:i,deltaPercentage:s})})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>a(a({},e),d))))},p=e=>c("move",e),f=e=>{c("end",e),t.setColumnSizingInfo((e=>u(a({},e),{isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},m=n||"undefined"!=typeof document?document:null,b={moveHandler:e=>p(e.clientX),upHandler:e=>{null==m||m.removeEventListener("mousemove",b.moveHandler),null==m||m.removeEventListener("mouseup",b.upHandler),f(e.clientX)}},v={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(e.touches[0].clientX),!1),upHandler:e=>{var t;null==m||m.removeEventListener("touchmove",v.moveHandler),null==m||m.removeEventListener("touchend",v.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof de)return de;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return de=e,de}()&&{passive:!1};ce(r)?(null==m||m.addEventListener("touchmove",v.moveHandler,h),null==m||m.addEventListener("touchend",v.upHandler,h)):(null==m||m.addEventListener("mousemove",b.moveHandler,h),null==m||m.addEventListener("mouseup",b.upHandler,h)),t.setColumnSizingInfo((e=>u(a({},e),{startOffset:g,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:o.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let de=null;function ce(e){return"touchstart"===e.type}function pe(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const fe={getInitialState:e=>a({rowSelection:{}},e),getDefaultOptions:e=>({onRowSelectionChange:O("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const o=a({},n),l=e.getPreGroupedRowModel().flatRows;return t?l.forEach((e=>{e.getCanSelect()&&(o[e.id]=!0)})):l.forEach((e=>{delete o[e.id]})),o}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const o=void 0!==t?t:!e.getIsAllPageRowsSelected(),l=a({},n);return e.getRowModel().rows.forEach((t=>{me(l,t.id,o,!0,e)})),l})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=H((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?be(e,n):{rows:[],flatRows:[],rowsById:{}}),B(e.options,"debugTable")),e.getFilteredSelectedRowModel=H((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?be(e,n):{rows:[],flatRows:[],rowsById:{}}),B(e.options,"debugTable")),e.getGroupedSelectedRowModel=H((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?be(e,n):{rows:[],flatRows:[],rowsById:{}}),B(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=Boolean(t.length&&Object.keys(n).length);return o&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some((e=>!n[e.id]))&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,o)=>{const l=e.getIsSelected();t.setRowSelection((r=>{var i;if(n=void 0!==n?n:!l,e.getCanSelect()&&l===n)return r;const u=a({},r);return me(u,e.id,n,null==(i=null==o?void 0:o.selectChildren)||i,t),u}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return ve(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===he(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===he(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var o;t&&e.toggleSelected(null==(o=n.target)?void 0:o.checked)}}}},me=(e,t,n,o,l)=>{var r;const i=l.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],o&&null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>me(e,t.id,n,o,l)))};function be(e,t){const n=e.getState().rowSelection,o=[],l={},r=function(e,t){return e.map((e=>{var t;const i=ve(e,n);if(i&&(o.push(e),l[e.id]=e),null!=(t=e.subRows)&&t.length&&(e=u(a({},e),{subRows:r(e.subRows)})),i)return e})).filter(Boolean)};return{rows:r(t.rows),flatRows:o,rowsById:l}}function ve(e,t){var n;return null!=(n=t[e.id])&&n}function he(e,t,n){var o;if(null==(o=e.subRows)||!o.length)return!1;let l=!0,r=!1;return e.subRows.forEach((e=>{if((!r||l)&&(e.getCanSelect()&&(ve(e,t)?r=!0:l=!1),e.subRows&&e.subRows.length)){const n=he(e,t);"all"===n?r=!0:"some"===n?(r=!0,l=!1):l=!1}})),l?"all":!!r&&"some"}const we=/([0-9]+)/gm;function Ce(e,t){return e===t?0:e>t?1:-1}function Se(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Re(e,t){const n=e.split(we).filter(Boolean),o=t.split(we).filter(Boolean);for(;n.length&&o.length;){const e=n.shift(),t=o.shift(),l=parseInt(e,10),r=parseInt(t,10),i=[l,r].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(l)?-1:1;if(l>r)return 1;if(r>l)return-1}}return n.length-o.length}const Fe={alphanumeric:(e,t,n)=>Re(Se(e.getValue(n)).toLowerCase(),Se(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Re(Se(e.getValue(n)),Se(t.getValue(n))),text:(e,t,n)=>Ce(Se(e.getValue(n)).toLowerCase(),Se(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>Ce(Se(e.getValue(n)),Se(t.getValue(n))),datetime:(e,t,n)=>{const o=e.getValue(n),l=t.getValue(n);return o>l?1:oCe(e.getValue(n),t.getValue(n))},Pe=[j,{getInitialState:e=>a({columnVisibility:{}},e),getDefaultOptions:e=>({onColumnVisibilityChange:O("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>u(a({},t),{[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,o;const l=e.columns;return null==(n=l.length?l.some((e=>e.getIsVisible())):null==(o=t.getState().columnVisibility)?void 0:o[e.id])||n},e.getCanHide=()=>{var n,o;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(o=t.options.enableHiding)||o)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=H((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),B(t.options,"debugRows")),e.getVisibleCells=H((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),B(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>H((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),B(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t(0,(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t(0,(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t(0,(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t(0,(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>u(a({},e),{[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},ae,ue,$,oe,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>a({globalFilter:void 0},e),getDefaultOptions:e=>({onGlobalFilterChange:O("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,o,l,r;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(o=t.options.enableGlobalFilter)||o)&&(null==(l=t.options.enableFilters)||l)&&(null==(r=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||r)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>te.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return L(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[o])?t:te[o]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>a({sorting:[]},e),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:O("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return Fe.datetime;if("string"==typeof n&&(o=!0,n.split(we).length>1))return Fe.alphanumeric}return o?Fe.text:Fe.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return L(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(o=t.options.sortingFns)?void 0:o[e.columnDef.sortingFn])?n:Fe[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const l=e.getNextSortingOrder(),r=null!=n;t.setSorting((i=>{const s=null==i?void 0:i.find((t=>t.id===e.id)),g=null==i?void 0:i.findIndex((t=>t.id===e.id));let d,c=[],p=r?n:"desc"===l;var f;(d=null!=i&&i.length&&e.getCanMultiSort()&&o?s?"toggle":"add":null!=i&&i.length&&g!==i.length-1?"replace":s?"toggle":"replace","toggle"===d&&(r||l||(d="remove")),"add"===d)?(c=[...i,{id:e.id,desc:p}],c.splice(0,c.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):c="toggle"===d?i.map((t=>t.id===e.id?u(a({},t),{desc:p}):t)):"remove"===d?i.filter((t=>t.id!==e.id)):[{id:e.id,desc:p}];return c}))},e.getFirstSortDir=()=>{var n,o;return(null!=(n=null!=(o=e.columnDef.sortDescFirst)?o:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var o,l;const r=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===r||null!=(o=t.options.enableSortingRemoval)&&!o||n&&null!=(l=t.options.enableMultiRemove)&&!l)&&("desc"===i?"asc":"desc"):r},e.getCanSort=()=>{var n,o;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(o=t.options.enableSorting)||o)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return null!=(n=null!=(o=e.columnDef.enableMultiSort)?o:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!o&&(o.desc?"desc":"asc")},e.getSortIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().sorting)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(null==o.persist||o.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(o))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},ie,{getInitialState:e=>a({expanded:{}},e),getDefaultOptions:e=>({onExpandedChange:O("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,l;if(t){if(null!=(o=null!=(l=e.options.autoResetAll)?l:e.options.autoResetExpanded)?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,o;e.setExpanded(t?{}:null!=(n=null==(o=e.initialState)?void 0:o.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((o=>{var l,r;const i=!0===o||!(null==o||!o[e.id]);let d={};if(!0===o?Object.keys(t.getRowModel().rowsById).forEach((e=>{d[e]=!0})):d=o,n=null!=(r=n)?r:!i,!i&&n)return u(a({},d),{[e.id]:!0});if(i&&!n){const t=d,{[l=e.id]:n}=t;return g(t,[s(l)])}return o}))},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===o||(null==o?void 0:o[e.id]))},e.getCanExpand=()=>{var n,o,l;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(o=t.options.enableExpanding)||o)&&!(null==(l=e.subRows)||!l.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>u(a({},e),{pagination:a(a({},{pageIndex:0,pageSize:10}),null==e?void 0:e.pagination)}),getDefaultOptions:e=>({onPaginationChange:O("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,l;if(t){if(null!=(o=null!=(l=e.options.autoResetAll)?l:e.options.autoResetPageIndex)?o:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>D(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=D(t,n.pageIndex);const l=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,l)),u(a({},n),{pageIndex:o})}))},e.resetPageIndex=t=>{var n,o;e.setPageIndex(t?0:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageIndex)?n:0)},e.resetPageSize=t=>{var n,o;e.setPageSize(t?10:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,D(t,e.pageSize)),o=e.pageSize*e.pageIndex,l=Math.floor(o/n);return u(a({},e),{pageIndex:l,pageSize:n})}))},e.setPageCount=t=>e.setPagination((n=>{var o;let l=D(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof l&&(l=Math.max(-1,l)),u(a({},n),{pageCount:l})})),e.getPageOptions=H((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),B(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&te.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>a({rowPinning:{top:[],bottom:[]}},e),getDefaultOptions:e=>({onRowPinningChange:O("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,o,l)=>{const r=o?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],i=l?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],a=new Set([...i,e.id,...r]);t.setRowPinning((e=>{var t,o,l,r,i,u;return"bottom"===n?{top:(null!=(l=null==e?void 0:e.top)?l:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:[...(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter((e=>!(null!=a&&a.has(e)))),...Array.from(a)],bottom:(null!=(u=null==e?void 0:e.bottom)?u:[]).filter((e=>!(null!=a&&a.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:(null!=(o=null==e?void 0:e.bottom)?o:[]).filter((e=>!(null!=a&&a.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:l}=t.options;return"function"==typeof o?o(e):null==(n=null!=o?o:l)||n},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:l}=t.getState().rowPinning,r=n.some((e=>null==o?void 0:o.includes(e))),i=n.some((e=>null==l?void 0:l.includes(e)));return r?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,o;const l=e.getIsPinned();if(!l)return-1;const r=null==(n="top"===l?t.getTopRows():t.getBottomRows())?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(o=null==r?void 0:r.indexOf(e.id))?o:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(o=e.initialState)?void 0:o.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;var l,r;return t?Boolean(null==(n=o[t])?void 0:n.length):Boolean((null==(l=o.top)?void 0:l.length)||(null==(r=o.bottom)?void 0:r.length))},e._getPinnedRows=(t,n,o)=>{var l;return(null==(l=e.options.keepPinnedRows)||l?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>u(a({},e),{position:o})))},e.getTopRows=H((()=>[e.getRowModel().rows,e.getState().rowPinning.top]),((t,n)=>e._getPinnedRows(t,n,"top")),B(e.options,"debugRows")),e.getBottomRows=H((()=>[e.getRowModel().rows,e.getState().rowPinning.bottom]),((t,n)=>e._getPinnedRows(t,n,"bottom")),B(e.options,"debugRows")),e.getCenterRows=H((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const o=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!o.has(e.id)))}),B(e.options,"debugRows"))}},fe,ge];function Me(e){var t,n;const o=[...Pe,...null!=(t=e._features)?t:[]];let l={_features:o};const r=l._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(l))),{});let i=a(a({},{}),null!=(n=e.initialState)?n:{});l._features.forEach((e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i}));const u=[];let s=!1;const g={_features:o,options:a(a({},r),e),initialState:i,_queue:e=>{u.push(e),s||(s=!0,Promise.resolve().then((()=>{for(;u.length;)u.shift()();s=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{l.setState(l.initialState)},setOptions:e=>{const t=D(e,l.options);var n;l.options=(n=t,l.options.mergeOptions?l.options.mergeOptions(r,n):a(a({},r),n))},getState:()=>l.options.state,setState:e=>{null==l.options.onStateChange||l.options.onStateChange(e)},_getRowId:(e,t,n)=>{var o;return null!=(o=null==l.options.getRowId?void 0:l.options.getRowId(e,t,n))?o:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(l._getCoreRowModel||(l._getCoreRowModel=l.options.getCoreRowModel(l)),l._getCoreRowModel()),getRowModel:()=>l.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?l.getPrePaginationRowModel():l.getRowModel()).rowsById[e];if(!n&&(n=l.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:H((()=>[l.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},a(a({header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null}},l._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{})),e)}),B(e,"debugColumns")),_getColumnDefs:()=>l.options.columns,getAllColumns:H((()=>[l._getColumnDefs()]),(e=>{const t=function(e,n,o){return void 0===o&&(o=0),e.map((e=>{const r=function(e,t,n,o){var l,r;const i=e._getDefaultColumnDef(),u=a(a({},i),t),s=u.accessorKey;let g,d=null!=(l=null!=(r=u.id)?r:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?l:"string"==typeof u.header?u.header:void 0;if(u.accessorFn?g=u.accessorFn:s&&(g=s.includes(".")?e=>{let t=e;for(const o of s.split(".")){var n;t=null==(n=t)?void 0:n[o]}return t}:e=>e[u.accessorKey]),!d)throw new Error;let c={id:`${String(d)}`,accessorFn:g,parent:o,depth:n,columnDef:u,columns:[],getFlatColumns:H((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),B(e.options,"debugColumns")),getLeafColumns:H((()=>[e._getOrderColumnsFn()]),(e=>{var t;return null!=(t=c.columns)&&t.length?e(c.columns.flatMap((e=>e.getLeafColumns()))):[c]}),B(e.options,"debugColumns"))};for(const a of e._features)null==a.createColumn||a.createColumn(c,e);return c}(l,e,o,n),i=e;return r.columns=i.columns?t(i.columns,r,o+1):[],r}))};return t(e)}),B(e,"debugColumns")),getAllFlatColumns:H((()=>[l.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),B(e,"debugColumns")),_getAllFlatColumnsById:H((()=>[l.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),B(e,"debugColumns")),getAllLeafColumns:H((()=>[l.getAllColumns(),l._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),B(e,"debugColumns")),getColumn:e=>l._getAllFlatColumnsById()[e]};Object.assign(l,g);for(let a=0;aH((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(t,l,r){void 0===l&&(l=0);const i=[];for(let u=0;ue._autoResetPageIndex())))}function Ie(e){return e=>H((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((t,n)=>{if(!n.rows.length)return n;const{pageSize:o,pageIndex:l}=t;let{rows:r,flatRows:i,rowsById:a}=n;const u=o*l,s=u+o;let g;r=r.slice(u,s),g=e.options.paginateExpandedRows?{rows:r,flatRows:i,rowsById:a}:function(e){const t=[],n=e=>{var o;t.push(e),null!=(o=e.subRows)&&o.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}({rows:r,flatRows:i,rowsById:a}),g.flatRows=[];const d=e=>{g.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return g.rows.forEach(d),g}),B(e.options,"debugTable"))} +/** + * vue-table + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ve(){return!0}const ye=Symbol("merge-proxy"),_e={get:(e,t,n)=>t===ye?n:e.get(t),has:(e,t)=>e.has(t),set:Ve,deleteProperty:Ve,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:Ve,deleteProperty:Ve}),ownKeys:e=>e.keys()};function ze(e){return"value"in e?e.value:e}function Ee(){for(var e=arguments.length,t=new Array(e),n=0;n=0;n--){const o=ze(t[n])[e];if(void 0!==o)return o}},has(e){for(let n=t.length-1;n>=0;n--)if(e in ze(t[n]))return!0;return!1},keys(){const e=[];for(let n=0;n()=>"function"==typeof e.render||"object"==typeof e.render?M(e.render,e.props):e.render});function Ae(e){return Ee(e,{data:z(e.data)})}function De(e){const t=x(e.data),n=Me(Ee({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions:(e,n)=>t?a(a({},e),n):Ee(e,n)},t?Ae(e):e));if(t){const t=I(e.data);V(t,(()=>{n.setState((e=>u(a({},e),{data:t.value})))}),{immediate:!0})}const o=y(n.initialState);return _((()=>{n.setOptions((n=>{var l;const r=new Proxy({},{get:(e,t)=>o.value[t]});return Ee(n,t?Ae(e):e,{state:Ee(r,null!=(l=e.state)?l:{}),onStateChange:t=>{o.value=t instanceof Function?t(o.value):t,null==e.onStateChange||e.onStateChange(t)}})}))})),n}export{Ge as F,G as _,Ie as a,A as c,xe as g,De as u}; diff --git a/docs/assets/index-BDCWwx3N.js b/docs/assets/index-BDCWwx3N.js new file mode 100644 index 0000000..49ad6d8 --- /dev/null +++ b/docs/assets/index-BDCWwx3N.js @@ -0,0 +1 @@ +import{s as e,a,b as l,t,W as o,h as s,d as r,g as n,C as i,_ as u,c as p,S as d,e as f,A as m,f as c,T as h}from"./numberUtils-C2LWAuD7.js";import{v as y,d as b,a as v,i as _,o as g,c as k,w as j,b as w,e as U,f as R,h as x,B as C,L as z}from"./index-BT0ZcDkn.js";import{u as K}from"./use-message-CulIy1l8.js";import{r as S}from"./utils-PlAvPplV.js";import{N}from"./Input-D2qMgPO1.js";import{N as V,a as F}from"./FormItem-CZeE-Hc9.js";import{_ as P,a as T}from"./Grid-qb506I7V.js";import{_ as D}from"./DatePicker-xH6BAkRV.js";import{_ as A}from"./Select-D_I2Mr2d.js";import{_ as G}from"./Dropdown-BMB08iEg.js";import{_ as I}from"./Space-_SFqgYmP.js";import"./get-slot-BjAOOWF7.js";import"./DataTable-CDcTRuJS.js";import"./Checkbox-Kaq6uefv.js";import"./use-merged-state-D7wGS6Km.js";import"./RadioGroup-BozaTzAB.js";import"./Popover-3mPJ01hC.js";import"./use-compitable-CHcH6xDN.js";import"./next-frame-once-DiJwGkuW.js";import"./FocusDetector-C7V71fRC.js";import"./create-Bylz8BGN.js";import"./Tooltip-BFoQMn72.js";import"./Empty-C_CzYco1.js";import"./use-locale-CbMPSc0o.js";import"./Pagination-YSg8zdta.js";import"./Forward-xWz6l688.js";import"./Tag-D4OMG_5z.js";import"./isNil-aV-w2MPu.js";import"./index-LLZlmyqL.js";import"./Checkmark-DuWLWy-v.js";const $=o=>{const s=[];for(let e=0;e<50;e++)s.push({title:"单据日期"+e,key:"billdate"+e,width:100});return[{type:"selection",fixed:"left"},{title:"单据日期",key:"billdate",sorter:e("billdate"),width:100},{title:"姓名",key:"name",sorter:a("name"),width:100},{title:"联系电话",key:"phone",ellipsis:{tooltip:!0},width:120},{title:"销售金额",key:"sales",width:150,align:"right",sorter:l("sales"),render:t("sales")},{title:"收款金额",width:100,key:"payment",align:"right",sorter:l("payment"),render:t("payment")},{title:"地址",key:"address",width:160},{title:"单据状态",key:"state",width:100},...s,{title:"操作",key:"action",fixed:"right",align:"center",width:80,render:o}]},q=(e,a)=>y("span",{},o(e.reduce(((e,l)=>e+Number(l[a])),0))),J=e=>((e,a)=>{const l={};for(const t of a)l[t]={value:q(e,t)};return l})(e,["sales","payment"]),L=b({__name:"index",setup(e){const a=K(),l=v(null),{tableRef:t,getKeys:o,getRows:b,getSource:q,setRows:L,setKeys:O}=s(),Q={params:{fuzzy:"",filter:{name:"",state:null,saleValue:null,where:"",phone:"",select:"",stateValue:"",dateRange:null}},watchFilter:!0,rowKey:"id"},W=_("n-config-provider");console.log("res log==>",W);const B=()=>y(C,{size:"small",onClick:()=>{a.info("action")}},(()=>"操作")),E=[{label:"批量发起",key:"submit",icon:S(d)},{label:"批量审核",key:"audit",icon:S(f)},{label:"批量驳回",key:"reject",icon:S(m)},{label:"批量反审",key:"reAudit",icon:S(c)},{label:"批量删除",key:"delete",icon:S(h)}],H=[["0","全部收款"],["1","部分收款"],["9","未收款"]].map((e=>({label:e[1],value:e[0]}))),X=["","起草","待审","通过"].map((e=>({label:e||"全部",value:e}))),Y=e=>{const l=e();a.info(l.length?JSON.stringify(l):"空数据")};return(e,a)=>{const s=N,d=u,f=V,m=P,c=D,h=A,y=T,v=F,_=p,K=G,S=I,W=z;return g(),k(W,null,{default:j((()=>[w(U(r),{ref_key:"tableRef",ref:t,columns:U($)(B),summary:U(J),api:U(n),config:Q},{form:j((({collapsed:a,reload:t,qParams:o})=>[w(v,{ref_key:"formRef",ref:l,"label-placement":"left","label-width":"auto",model:o},{default:j((()=>[w(y,{"x-gap":8,"y-gap":15,cols:"2 s:3 m:4 l:5 xl:6",collapsed:a,"collapsed-rows":1,responsive:"screen"},{default:j((()=>[w(d,{label:e.$t("common.likeQuery"),path:"fuzzy","show-feedback":!1},{default:j((()=>[w(s,{value:o.fuzzy,"onUpdate:value":e=>o.fuzzy=e,placeholder:e.$t("common.input"),clearable:"",onKeyup:R(t,["enter"]),onClear:t},null,8,["value","onUpdate:value","placeholder","onKeyup","onClear"])])),_:2},1032,["label"]),w(m,null,{default:j((()=>[w(f,{label:"姓名",path:"user.name","show-feedback":!1,rule:[{required:!0,message:"姓名必填"}]},{default:j((()=>[w(s,{value:o.filter.name,"onUpdate:value":e=>o.filter.name=e,placeholder:"输入姓名"},null,8,["value","onUpdate:value"])])),_:2},1024)])),_:2},1024),w(m,{span:2},{default:j((()=>[w(f,{label:"单据日期","show-feedback":!1,path:"phone"},{default:j((()=>[w(c,{value:o.filter.dateRange,"onUpdate:value":e=>o.filter.dateRange=e,type:"daterange",clearable:""},null,8,["value","onUpdate:value"])])),_:2},1024)])),_:2},1024),w(m,null,{default:j((()=>[w(f,{label:"收款状态","show-feedback":!1,path:"phone"},{default:j((()=>[w(h,{value:o.filter.saleValue,"onUpdate:value":e=>o.filter.saleValue=e,clearable:"",options:U(H)},null,8,["value","onUpdate:value","options"])])),_:2},1024)])),_:2},1024),w(m,null,{default:j((()=>[w(f,{label:"单据状态","show-feedback":!1,path:"user.name"},{default:j((()=>[w(h,{value:o.filter.stateValue,"onUpdate:value":e=>o.filter.stateValue=e,placeholder:"Select",options:U(X)},null,8,["value","onUpdate:value","options"])])),_:2},1024)])),_:2},1024),w(m,null,{default:j((()=>[w(f,{label:"电话号码",path:"phone","show-feedback":!1},{default:j((()=>[w(s,{value:o.filter.phone,"onUpdate:value":e=>o.filter.phone=e,placeholder:"电话号码"},null,8,["value","onUpdate:value"])])),_:2},1024)])),_:2},1024),w(m,null,{default:j((()=>[w(f,{label:"电话号码",path:"phone","show-feedback":!1},{default:j((()=>[w(s,{value:o.filter.phone,"onUpdate:value":e=>o.filter.phone=e,placeholder:"电话号码"},null,8,["value","onUpdate:value"])])),_:2},1024)])),_:2},1024),w(m,null,{default:j((()=>[w(f,{label:"电话号码",path:"phone","show-feedback":!1},{default:j((()=>[w(s,{value:o.filter.phone,"onUpdate:value":e=>o.filter.phone=e,placeholder:"电话号码"},null,8,["value","onUpdate:value"])])),_:2},1024)])),_:2},1024)])),_:2},1032,["collapsed"])])),_:2},1032,["model"])])),"bar-left":j((()=>[w(S,null,{default:j((()=>[w(_,{type:"primary",icon:U(i)},{default:j((()=>a[5]||(a[5]=[x("新增")]))),_:1},8,["icon"]),w(U(C),{strong:"",secondary:"",onClick:a[0]||(a[0]=e=>Y(U(o)))},{default:j((()=>a[6]||(a[6]=[x("获取选中Keys")]))),_:1}),w(U(C),{strong:"",secondary:"",onClick:a[1]||(a[1]=e=>Y(U(b)))},{default:j((()=>a[7]||(a[7]=[x("获取选中Rows")]))),_:1}),w(U(C),{strong:"",secondary:"",onClick:a[2]||(a[2]=e=>Y(U(q)))},{default:j((()=>a[8]||(a[8]=[x("获取当页数据")]))),_:1}),w(U(C),{strong:"",secondary:"",onClick:a[3]||(a[3]=e=>U(O)([0,1,2]))},{default:j((()=>a[9]||(a[9]=[x("设置选中Keys")]))),_:1}),w(U(C),{strong:"",secondary:"",onClick:a[4]||(a[4]=e=>U(L)([{id:3},{id:4},{id:5}]))},{default:j((()=>a[10]||(a[10]=[x("设置选中Rows")]))),_:1}),w(K,{trigger:"hover",options:E},{default:j((()=>[w(U(C),null,{default:j((()=>a[11]||(a[11]=[x("更多...")]))),_:1})])),_:1})])),_:1})])),_:1},8,["columns","summary","api"])])),_:1})}}});export{L as default}; diff --git a/docs/assets/index-BNGu24Wu.js b/docs/assets/index-BNGu24Wu.js new file mode 100644 index 0000000..44f07a4 --- /dev/null +++ b/docs/assets/index-BNGu24Wu.js @@ -0,0 +1 @@ +var e=Object.defineProperty,s=Object.defineProperties,t=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,d=(s,t,l)=>t in s?e(s,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[t]=l;import{F as p,_ as o,u as n,c as u,g as i}from"./index-B014LJnX.js";import{d as c,o as b,c as P,w as y,g as T,p as g,H as h,O as m,b as f,e as x,q as C,P as R,u as I,L as G}from"./index-BT0ZcDkn.js";import{_ as j}from"./Empty-C_CzYco1.js";import"./use-locale-CbMPSc0o.js";const w=["colspan"],O={key:0},_=["colspan"],v=R(c({__name:"AppTable",props:{table:{}},setup:e=>(e,s)=>{const t=j,l=o;return b(),P(l,{bordered:!0,"single-line":!1,striped:""},{default:y((()=>[T("thead",null,[(b(!0),g(h,null,m(e.table.getHeaderGroups(),(e=>(b(),g("tr",{key:e.id},[(b(!0),g(h,null,m(e.headers,(e=>(b(),g("th",{key:e.id,colspan:e.colSpan,class:"font-bold!",scope:"col"},[f(x(p),{render:e.column.columnDef.header,props:e.getContext()},null,8,["render","props"])],8,w)))),128))])))),128))]),T("tbody",null,[(b(!0),g(h,null,m(e.table.getRowModel().rows,(e=>(b(),g("tr",{key:e.id},[(b(!0),g(h,null,m(e.getVisibleCells(),(e=>(b(),g("td",{key:e.id},[T("div",null,[T("div",null,[f(x(p),{render:e.column.columnDef.cell,props:e.getContext()},null,8,["render","props"])])])])))),128))])))),128)),0===e.table.getRowModel().rows.length?(b(),g("tr",O,[T("td",{colspan:e.table.getAllColumns().length},[f(t)],8,_)])):C("",!0)])])),_:1})}})),k=[{id:1,userInput:"你好,能告诉我今天的天气吗?",expectedReply:"ChatGPT生成适当的天气预报回复",isTestPassed:!0},{id:2,userInput:"请为我讲一个幽默笑话。",expectedReply:"ChatGPT生成幽默笑话回复",isTestPassed:!0},{id:3,userInput:'翻译 "hello" 成法语。',expectedReply:"ChatGPT生成合理的法语翻译",isTestPassed:!0},{id:4,userInput:"帮我制定一个减肥计划。",expectedReply:"ChatGPT生成关于减肥计划的建议",isTestPassed:!0},{id:5,userInput:"解释一下人工智能的概念。",expectedReply:"ChatGPT生成关于人工智能的解释",isTestPassed:!0},{id:6,userInput:"给我推荐一本好看的小说。",expectedReply:"ChatGPT生成推荐的小说书目",isTestPassed:!0},{id:7,userInput:"为什么天空是蓝色的?",expectedReply:"ChatGPT生成关于天空颜色的科学解释",isTestPassed:!0},{id:8,userInput:"如何备份我的电脑文件?",expectedReply:"ChatGPT生成关于备份方法的建议",isTestPassed:!0},{id:9,userInput:"告诉我一些做饭的窍门。",expectedReply:"ChatGPT生成烹饪技巧和建议",isTestPassed:!0},{id:10,userInput:"你有兴趣爱好吗?",expectedReply:"ChatGPT生成关于自己兴趣的回复",isTestPassed:!1}],V=c((A=((e,s)=>{for(var t in s||(s={}))a.call(s,t)&&d(e,t,s[t]);if(l)for(var t of l(s))r.call(s,t)&&d(e,t,s[t]);return e})({},{name:"HeadlessTableBasic"}),s(A,t({__name:"index",setup(e){const{t:s}=I(),t=u(),l=[t.accessor((e=>e.userInput),{id:"userInput",cell:e=>e.getValue(),header:()=>" 用户输入",footer:e=>e.column.id}),t.accessor((e=>e.expectedReply),{id:"expectedReply",cell:e=>e.getValue(),header:()=>"预期回复",footer:e=>e.column.id}),t.accessor((e=>e.isTestPassed),{id:"isTestPassed",cell:e=>!0===e.getValue()?"✅":"❌",header:()=>"是否通过测试",footer:e=>e.column.id})],a=[];for(let d=0;d<10;d++)a.push(k[0]);const r=n({get data(){return a},debugAll:!0,columns:l,getCoreRowModel:i()});return(e,t)=>{const l=G;return b(),P(l,{title:x(s)("page.headlessTable.pageTitles.basic")},{default:y((()=>[f(x(v),{table:x(r)},null,8,["table"])])),_:1},8,["title"])}}}))));var A;export{V as default}; diff --git a/docs/assets/index-BT0ZcDkn.js b/docs/assets/index-BT0ZcDkn.js new file mode 100644 index 0000000..d60d7a2 --- /dev/null +++ b/docs/assets/index-BT0ZcDkn.js @@ -0,0 +1,56 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Bje_nPpk.js","./use-merged-state-D7wGS6Km.js","./ToolTipper.vuevuetypescriptsetuptruelang-BQIt4vT0.js","./Tooltip-BFoQMn72.js","./Popover-3mPJ01hC.js","./use-compitable-CHcH6xDN.js","./next-frame-once-DiJwGkuW.js","./AppLogo.vuevuetypescriptsetuptruelang-DzR987t-.js","./ChevronForwardCircleOutline-BjHSf1QY.js","./Dropdown-BMB08iEg.js","./create-Bylz8BGN.js","./utils-PlAvPplV.js","./isNil-aV-w2MPu.js","./use-message-CulIy1l8.js","./Avatar-BpYqF4bS.js","./Tag-D4OMG_5z.js","./Divider-DXNdPNfR.js","./Switch-obDBD39a.js","./index-LLZlmyqL.js","./Space-_SFqgYmP.js","./get-slot-BjAOOWF7.js","./Select-D_I2Mr2d.js","./use-locale-CbMPSc0o.js","./Input-D2qMgPO1.js","./FocusDetector-C7V71fRC.js","./Checkmark-DuWLWy-v.js","./Empty-C_CzYco1.js","./Grid-qb506I7V.js","./InputGroup-Bg5yCPNp.js","./plugin-vueexport-helper-BCo6x5W8.js","./useScreen-jjQj1L0Z.js","./index-Hnu1-XZ6.css","./IframeContainer-BTKu5TDG.js","./Spin-WJzlISCz.js","./index-B0007Jh1.js","./RadioGroup-BozaTzAB.js","./FormItem-CZeE-Hc9.js","./DatePicker-xH6BAkRV.js","./Forward-xWz6l688.js","./index-BNGu24Wu.js","./index-B014LJnX.js","./index-GzWcCMOW.js","./Pagination-YSg8zdta.js","./index-BDCWwx3N.js","./numberUtils-C2LWAuD7.js","./DataTable-CDcTRuJS.js","./Checkbox-Kaq6uefv.js","./index-5zZZ8SzU.js","./index-CojYk2g6.js","./index-DJtKRHrO.js","./index-To49Aw5y.js","./index-Bfcg8leT.js","./index-CCyqW-xK.js","./index-R-_qEdOR.js","./index-zHZrWMB7.js","./useLoading-8gX1N9xN.js","./index-CVaUJNeN.css","./index-CtdGT7EU.js","./index-BuzKd2Uk.css","./index-Bk2Jy4Jp.js","./index-xMmFfZT8.css","./index-iaKve87E.js","./index-J67kjxMB.js","./index-DTlshqIS.js","./CurrentPermissionMode.vuevuetypescriptsetuptruelang-DP-DEThw.js","./ButtonPermission-C-oJZffx.js","./Authority.vuevuetypescriptsetuptruelang-DWAZzzN5.js","./index-C280tQWg.js","./ButtonPermission-DnMJq6mr.js","./index-9AHSgKyT.js","./success-DHNpXM1V.js","./Descriptions-BD5yoHoK.js","./Result-Du_g0nDe.js","./fail-BFU6g2ZA.js","./Exception-CX230KUQ.js","./index-BkjyKYn-.js","./index-D6AiU-ev.css"])))=>i.map(i=>d[i]); +var e,t,o,n,r,i,a,s,l,c,u,d,f,p,h,m,g,v,b,y,x,C,S,w,_,k,P,T,E,O,M,I,R,$,A,L,z,F,B,j=Object.defineProperty,D=Object.defineProperties,H=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,V=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),q=e=>{throw TypeError(e)},G=Math.pow,Q=(e,t,o)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,K=(e,t)=>{for(var o in t||(t={}))N.call(t,o)&&Q(e,o,t[o]);if(W)for(var o of W(t))U.call(t,o)&&Q(e,o,t[o]);return e},Y=(e,t)=>D(e,H(t)),J=(e,t)=>{var o={};for(var n in e)N.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&W)for(var n of W(e))t.indexOf(n)<0&&U.call(e,n)&&(o[n]=e[n]);return o},X=(e,t,o)=>Q(e,"symbol"!=typeof t?t+"":t,o),Z=(e,t,o)=>t.has(e)||q("Cannot "+o),ee=(e,t,o)=>(Z(e,t,"read from private field"),o?o.call(e):t.get(e)),te=(e,t,o)=>t.has(e)?q("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),oe=(e,t,o,n)=>(Z(e,t,"write to private field"),n?n.call(e,o):t.set(e,o),o),ne=(e,t,o)=>(Z(e,t,"access private method"),o),re=(e,t,o,n)=>({set _(n){oe(e,t,n,o)},get _(){return ee(e,t,n)}}),ie=(e,t,o)=>new Promise(((n,r)=>{var i=e=>{try{s(o.next(e))}catch(t){r(t)}},a=e=>{try{s(o.throw(e))}catch(t){r(t)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,a);s((o=o.apply(e,t)).next())})),ae=function(e,t){this[0]=e,this[1]=t},se=(e,t,o)=>{var n=(e,t,r,i)=>{try{var a=o[e](t),s=(t=a.value)instanceof ae,l=a.done;Promise.resolve(s?t[0]:t).then((o=>s?n("return"===e?e:"next",t[1]?{done:o.done,value:o.value}:o,r,i):r({value:o,done:l}))).catch((e=>n("throw",e,r,i)))}catch(c){i(c)}},r=e=>i[e]=t=>new Promise(((o,r)=>n(e,t,o,r))),i={};return o=o.apply(e,t),i[V("asyncIterator")]=()=>i,r("next"),r("throw"),r("return"),i},le=e=>{var t,o=e[V("asyncIterator")],n=!1,r={};return null==o?(o=e[V("iterator")](),t=e=>r[e]=t=>o[e](t)):(o=o.call(e),t=e=>r[e]=t=>{if(n){if(n=!1,"throw"===e)throw t;return t}return n=!0,{done:!1,value:new ae(new Promise((n=>{var r=o[e](t);r instanceof Object||q("Object expected"),n(r)})),1)}}),r[V("iterator")]=()=>r,t("next"),"throw"in o?t("throw"):r.throw=e=>{throw e},"return"in o&&t("return"),r}; +/** +* @vue/shared v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +/*! #__NO_SIDE_EFFECTS__ */ +function ce(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return e=>e in t}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const ue={},de=[],fe=()=>{},pe=()=>!1,he=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),me=e=>e.startsWith("onUpdate:"),ge=Object.assign,ve=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},be=Object.prototype.hasOwnProperty,ye=(e,t)=>be.call(e,t),xe=Array.isArray,Ce=e=>"[object Map]"===Oe(e),Se=e=>"[object Set]"===Oe(e),we=e=>"function"==typeof e,_e=e=>"string"==typeof e,ke=e=>"symbol"==typeof e,Pe=e=>null!==e&&"object"==typeof e,Te=e=>(Pe(e)||we(e))&&we(e.then)&&we(e.catch),Ee=Object.prototype.toString,Oe=e=>Ee.call(e),Me=e=>"[object Object]"===Oe(e),Ie=e=>_e(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Re=ce(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$e=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},Ae=/-(\w)/g,Le=$e((e=>e.replace(Ae,((e,t)=>t?t.toUpperCase():"")))),ze=/\B([A-Z])/g,Fe=$e((e=>e.replace(ze,"-$1").toLowerCase())),Be=$e((e=>e.charAt(0).toUpperCase()+e.slice(1))),je=$e((e=>e?`on${Be(e)}`:"")),De=(e,t)=>!Object.is(e,t),He=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:o})},Ne=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ue;const Ve=()=>Ue||(Ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function qe(e){if(xe(e)){const t={};for(let o=0;o{if(e){const o=e.split(Qe);o.length>1&&(t[o[0].trim()]=o[1].trim())}})),t}function Je(e){let t="";if(_e(e))t=e;else if(xe(e))for(let o=0;o!(!e||!0!==e.__v_isRef),ot=e=>_e(e)?e:null==e?"":xe(e)||Pe(e)&&(e.toString===Ee||!we(e.toString))?tt(e)?ot(e.value):JSON.stringify(e,nt,2):String(e),nt=(e,t)=>tt(t)?nt(e,t.value):Ce(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,o],n)=>(e[rt(t,n)+" =>"]=o,e)),{})}:Se(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>rt(e)))}:ke(t)?rt(t):!Pe(t)||xe(t)||Me(t)?t:String(t),rt=(e,t="")=>{var o;return ke(e)?`Symbol(${null!=(o=e.description)?o:t})`:e}; +/** +* @vue/reactivity v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/ +let it,at;class st{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=it,!e&&it&&(this.index=(it.scopes||(it.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e0)return;if(ht){let e=ht;for(ht=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;pt;){let o=pt;for(pt=void 0;o;){const n=o.next;if(o.next=void 0,o.flags&=-9,1&o.flags)try{o.trigger()}catch(t){e||(e=t)}o=n}}if(e)throw e}function yt(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function xt(e){let t,o=e.depsTail,n=o;for(;n;){const e=n.prevDep;-1===n.version?(n===o&&(o=e),wt(n),_t(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=e}e.deps=t,e.depsTail=o}function Ct(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(St(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function St(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===Mt)return;e.globalVersion=Mt;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Ct(e))return void(e.flags&=-3);const o=at,n=kt;at=e,kt=!0;try{yt(e);const o=e.fn(e._value);(0===t.version||De(o,e._value))&&(e._value=o,t.version++)}catch(r){throw t.version++,r}finally{at=o,kt=n,xt(e),e.flags&=-3}}function wt(e,t=!1){const{dep:o,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),o.subs===e&&(o.subs=n,!n&&o.computed)){o.computed.flags&=-5;for(let e=o.computed.deps;e;e=e.nextDep)wt(e,!0)}t||--o.sc||!o.map||o.map.delete(o.key)}function _t(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let kt=!0;const Pt=[];function Tt(){Pt.push(kt),kt=!1}function Et(){const e=Pt.pop();kt=void 0===e||e}function Ot(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=at;at=void 0;try{t()}finally{at=e}}}let Mt=0,It=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Rt{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!at||!kt||at===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==at)t=this.activeLink=new It(at,this),at.deps?(t.prevDep=at.depsTail,at.depsTail.nextDep=t,at.depsTail=t):at.deps=at.depsTail=t,$t(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=at.depsTail,t.nextDep=void 0,at.depsTail.nextDep=t,at.depsTail=t,at.deps===t&&(at.deps=e)}return t}trigger(e){this.version++,Mt++,this.notify(e)}notify(e){vt();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{bt()}}}function $t(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)$t(e)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const At=new WeakMap,Lt=Symbol(""),zt=Symbol(""),Ft=Symbol("");function Bt(e,t,o){if(kt&&at){let t=At.get(e);t||At.set(e,t=new Map);let n=t.get(o);n||(t.set(o,n=new Rt),n.map=t,n.key=o),n.track()}}function jt(e,t,o,n,r,i){const a=At.get(e);if(!a)return void Mt++;const s=e=>{e&&e.trigger()};if(vt(),"clear"===t)a.forEach(s);else{const r=xe(e),i=r&&Ie(o);if(r&&"length"===o){const e=Number(n);a.forEach(((t,o)=>{("length"===o||o===Ft||!ke(o)&&o>=e)&&s(t)}))}else switch((void 0!==o||a.has(void 0))&&s(a.get(o)),i&&s(a.get(Ft)),t){case"add":r?i&&s(a.get("length")):(s(a.get(Lt)),Ce(e)&&s(a.get(zt)));break;case"delete":r||(s(a.get(Lt)),Ce(e)&&s(a.get(zt)));break;case"set":Ce(e)&&s(a.get(Lt))}}bt()}function Dt(e){const t=Po(e);return t===e?t:(Bt(t,0,Ft),_o(e)?t:t.map(Eo))}function Ht(e){return Bt(e=Po(e),0,Ft),e}const Wt={__proto__:null,[Symbol.iterator](){return Nt(this,Symbol.iterator,Eo)},concat(...e){return Dt(this).concat(...e.map((e=>xe(e)?Dt(e):e)))},entries(){return Nt(this,"entries",(e=>(e[1]=Eo(e[1]),e)))},every(e,t){return Vt(this,"every",e,t,void 0,arguments)},filter(e,t){return Vt(this,"filter",e,t,(e=>e.map(Eo)),arguments)},find(e,t){return Vt(this,"find",e,t,Eo,arguments)},findIndex(e,t){return Vt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Vt(this,"findLast",e,t,Eo,arguments)},findLastIndex(e,t){return Vt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Vt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Gt(this,"includes",e)},indexOf(...e){return Gt(this,"indexOf",e)},join(e){return Dt(this).join(e)},lastIndexOf(...e){return Gt(this,"lastIndexOf",e)},map(e,t){return Vt(this,"map",e,t,void 0,arguments)},pop(){return Qt(this,"pop")},push(...e){return Qt(this,"push",e)},reduce(e,...t){return qt(this,"reduce",e,t)},reduceRight(e,...t){return qt(this,"reduceRight",e,t)},shift(){return Qt(this,"shift")},some(e,t){return Vt(this,"some",e,t,void 0,arguments)},splice(...e){return Qt(this,"splice",e)},toReversed(){return Dt(this).toReversed()},toSorted(e){return Dt(this).toSorted(e)},toSpliced(...e){return Dt(this).toSpliced(...e)},unshift(...e){return Qt(this,"unshift",e)},values(){return Nt(this,"values",Eo)}};function Nt(e,t,o){const n=Ht(e),r=n[t]();return n===e||_o(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.value&&(e.value=o(e.value)),e}),r}const Ut=Array.prototype;function Vt(e,t,o,n,r,i){const a=Ht(e),s=a!==e&&!_o(e),l=a[t];if(l!==Ut[t]){const t=l.apply(e,i);return s?Eo(t):t}let c=o;a!==e&&(s?c=function(t,n){return o.call(this,Eo(t),n,e)}:o.length>2&&(c=function(t,n){return o.call(this,t,n,e)}));const u=l.call(a,c,n);return s&&r?r(u):u}function qt(e,t,o,n){const r=Ht(e);let i=o;return r!==e&&(_o(e)?o.length>3&&(i=function(t,n,r){return o.call(this,t,n,r,e)}):i=function(t,n,r){return o.call(this,t,Eo(n),r,e)}),r[t](i,...n)}function Gt(e,t,o){const n=Po(e);Bt(n,0,Ft);const r=n[t](...o);return-1!==r&&!1!==r||!ko(o[0])?r:(o[0]=Po(o[0]),n[t](...o))}function Qt(e,t,o=[]){Tt(),vt();const n=Po(e)[t].apply(e,o);return bt(),Et(),n}const Kt=ce("__proto__,__v_isRef,__isVue"),Yt=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(ke));function Jt(e){ke(e)||(e=String(e));const t=Po(this);return Bt(t,0,e),t.hasOwnProperty(e)}class Xt{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,o){const n=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!n;if("__v_isReadonly"===t)return n;if("__v_isShallow"===t)return r;if("__v_raw"===t)return o===(n?r?go:mo:r?ho:po).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(o)?e:void 0;const i=xe(e);if(!n){let e;if(i&&(e=Wt[t]))return e;if("hasOwnProperty"===t)return Jt}const a=Reflect.get(e,t,Mo(e)?e:o);return(ke(t)?Yt.has(t):Kt(t))?a:(n||Bt(e,0,t),r?a:Mo(a)?i&&Ie(t)?a:a.value:Pe(a)?n?xo(a):bo(a):a)}}class Zt extends Xt{constructor(e=!1){super(!1,e)}set(e,t,o,n){let r=e[t];if(!this._isShallow){const t=wo(r);if(_o(o)||wo(o)||(r=Po(r),o=Po(o)),!xe(e)&&Mo(r)&&!Mo(o))return!t&&(r.value=o,!0)}const i=xe(e)&&Ie(t)?Number(t)e,io=e=>Reflect.getPrototypeOf(e);function ao(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function so(e,t){const o={get(o){const n=this.__v_raw,r=Po(n),i=Po(o);e||(De(o,i)&&Bt(r,0,o),Bt(r,0,i));const{has:a}=io(r),s=t?ro:e?Oo:Eo;return a.call(r,o)?s(n.get(o)):a.call(r,i)?s(n.get(i)):void(n!==r&&n.get(o))},get size(){const t=this.__v_raw;return!e&&Bt(Po(t),0,Lt),Reflect.get(t,"size",t)},has(t){const o=this.__v_raw,n=Po(o),r=Po(t);return e||(De(t,r)&&Bt(n,0,t),Bt(n,0,r)),t===r?o.has(t):o.has(t)||o.has(r)},forEach(o,n){const r=this,i=r.__v_raw,a=Po(i),s=t?ro:e?Oo:Eo;return!e&&Bt(a,0,Lt),i.forEach(((e,t)=>o.call(n,s(e),s(t),r)))}};ge(o,e?{add:ao("add"),set:ao("set"),delete:ao("delete"),clear:ao("clear")}:{add(e){t||_o(e)||wo(e)||(e=Po(e));const o=Po(this);return io(o).has.call(o,e)||(o.add(e),jt(o,"add",e,e)),this},set(e,o){t||_o(o)||wo(o)||(o=Po(o));const n=Po(this),{has:r,get:i}=io(n);let a=r.call(n,e);a||(e=Po(e),a=r.call(n,e));const s=i.call(n,e);return n.set(e,o),a?De(o,s)&&jt(n,"set",e,o):jt(n,"add",e,o),this},delete(e){const t=Po(this),{has:o,get:n}=io(t);let r=o.call(t,e);r||(e=Po(e),r=o.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return r&&jt(t,"delete",e,void 0),i},clear(){const e=Po(this),t=0!==e.size,o=e.clear();return t&&jt(e,"clear",void 0,void 0),o}});return["keys","values","entries",Symbol.iterator].forEach((n=>{o[n]=function(e,t,o){return function(...n){const r=this.__v_raw,i=Po(r),a=Ce(i),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=r[e](...n),u=o?ro:t?Oo:Eo;return!t&&Bt(i,0,l?zt:Lt),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}(n,e,t)})),o}function lo(e,t){const o=so(e,t);return(t,n,r)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(ye(o,n)&&n in t?o:t,n,r)}const co={get:lo(!1,!1)},uo={get:lo(!1,!0)},fo={get:lo(!0,!1)},po=new WeakMap,ho=new WeakMap,mo=new WeakMap,go=new WeakMap;function vo(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>Oe(e).slice(8,-1))(e))}function bo(e){return wo(e)?e:Co(e,!1,to,co,po)}function yo(e){return Co(e,!1,no,uo,ho)}function xo(e){return Co(e,!0,oo,fo,mo)}function Co(e,t,o,n,r){if(!Pe(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const a=vo(e);if(0===a)return e;const s=new Proxy(e,2===a?n:o);return r.set(e,s),s}function So(e){return wo(e)?So(e.__v_raw):!(!e||!e.__v_isReactive)}function wo(e){return!(!e||!e.__v_isReadonly)}function _o(e){return!(!e||!e.__v_isShallow)}function ko(e){return!!e&&!!e.__v_raw}function Po(e){const t=e&&e.__v_raw;return t?Po(t):e}function To(e){return!ye(e,"__v_skip")&&Object.isExtensible(e)&&We(e,"__v_skip",!0),e}const Eo=e=>Pe(e)?bo(e):e,Oo=e=>Pe(e)?xo(e):e;function Mo(e){return!!e&&!0===e.__v_isRef}function Io(e){return $o(e,!1)}function Ro(e){return $o(e,!0)}function $o(e,t){return Mo(e)?e:new Ao(e,t)}class Ao{constructor(e,t){this.dep=new Rt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Po(e),this._value=t?e:Eo(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,o=this.__v_isShallow||_o(e)||wo(e);e=o?e:Po(e),De(e,t)&&(this._rawValue=e,this._value=o?e:Eo(e),this.dep.trigger())}}function Lo(e){return Mo(e)?e.value:e}function zo(e){return we(e)?e():Lo(e)}const Fo={get:(e,t,o)=>"__v_raw"===t?e:Lo(Reflect.get(e,t,o)),set:(e,t,o,n)=>{const r=e[t];return Mo(r)&&!Mo(o)?(r.value=o,!0):Reflect.set(e,t,o,n)}};function Bo(e){return So(e)?e:new Proxy(e,Fo)}class jo{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new Rt,{get:o,set:n}=e(t.track.bind(t),t.trigger.bind(t));this._get=o,this._set=n}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Do(e){return new jo(e)}function Ho(e){const t=xe(e)?new Array(e.length):{};for(const o in e)t[o]=Vo(e,o);return t}class Wo{constructor(e,t,o){this._object=e,this._key=t,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const o=At.get(e);return o&&o.get(t)}(Po(this._object),this._key)}}class No{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Uo(e,t,o){return Mo(e)?e:we(e)?new No(e):Pe(e)&&arguments.length>1?Vo(e,t,o):Io(e)}function Vo(e,t,o){const n=e[t];return Mo(n)?n:new Wo(e,t,o)}class qo{constructor(e,t,o){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Rt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Mt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=o}notify(){if(this.flags|=16,!(8&this.flags)&&at!==this)return gt(this,!0),!0}get value(){const e=this.dep.track();return St(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const Go={},Qo=new WeakMap;let Ko;function Yo(e,t,o=ue){const{immediate:n,deep:r,once:i,scheduler:a,augmentJob:s,call:l}=o,c=e=>r?e:_o(e)||!1===r||0===r?Jo(e,1):Jo(e);let u,d,f,p,h=!1,m=!1;if(Mo(e)?(d=()=>e.value,h=_o(e)):So(e)?(d=()=>c(e),h=!0):xe(e)?(m=!0,h=e.some((e=>So(e)||_o(e))),d=()=>e.map((e=>Mo(e)?e.value:So(e)?c(e):we(e)?l?l(e,2):e():void 0))):d=we(e)?t?l?()=>l(e,2):e:()=>{if(f){Tt();try{f()}finally{Et()}}const t=Ko;Ko=u;try{return l?l(e,3,[p]):e(p)}finally{Ko=t}}:fe,t&&r){const e=d,t=!0===r?1/0:r;d=()=>Jo(e(),t)}const g=ct(),v=()=>{u.stop(),g&&ve(g.effects,u)};if(i&&t){const e=t;t=(...t)=>{e(...t),v()}}let b=m?new Array(e.length).fill(Go):Go;const y=e=>{if(1&u.flags&&(u.dirty||e))if(t){const e=u.run();if(r||h||(m?e.some(((e,t)=>De(e,b[t]))):De(e,b))){f&&f();const o=Ko;Ko=u;try{const o=[e,b===Go?void 0:m&&b[0]===Go?[]:b,p];l?l(t,3,o):t(...o),b=e}finally{Ko=o}}}else u.run()};return s&&s(y),u=new ft(d),u.scheduler=a?()=>a(y,!1):y,p=e=>function(e,t=!1,o=Ko){if(o){let t=Qo.get(o);t||Qo.set(o,t=[]),t.push(e)}}(e,!1,u),f=u.onStop=()=>{const e=Qo.get(u);if(e){if(l)l(e,4);else for(const t of e)t();Qo.delete(u)}},t?n?y(!0):b=u.run():a?a(y.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}function Jo(e,t=1/0,o){if(t<=0||!Pe(e)||e.__v_skip)return e;if((o=o||new Set).has(e))return e;if(o.add(e),t--,Mo(e))Jo(e.value,t,o);else if(xe(e))for(let n=0;n{Jo(e,t,o)}));else if(Me(e)){for(const n in e)Jo(e[n],t,o);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Jo(e[n],t,o)}return e} +/** +* @vue/runtime-core v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Xo(e,t,o,n){try{return n?e(...n):e()}catch(r){en(r,t,o)}}function Zo(e,t,o,n){if(we(e)){const r=Xo(e,t,o,n);return r&&Te(r)&&r.catch((e=>{en(e,t,o)})),r}if(xe(e)){const r=[];for(let i=0;i=hn(o)?tn.push(e):tn.splice(function(e){let t=on+1,o=tn.length;for(;t>>1,r=tn[n],i=hn(r);ihn(e)-hn(t)));if(nn.length=0,rn)return void rn.push(...e);for(rn=e,an=0;annull==e.id?2&e.flags?-1:1/0:e.id;function mn(e){try{for(on=0;on{n._d&&ji(-1);const r=bn(t);let i;try{i=e(...o)}finally{bn(r),n._d&&ji(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function xn(e,t){if(null===gn)return e;const o=ya(gn),n=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,_n=e=>e&&(e.disabled||""===e.disabled),kn=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Pn=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Tn=(e,t)=>{const o=e&&e.to;if(_e(o)){if(t){return t(o)}return null}return o};function En(e,t,o,{o:{insert:n},m:r},i=2){0===i&&n(e.targetAnchor,t,o);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===i;if(d&&n(a,t,o),(!d||_n(u))&&16&l)for(let f=0;f{16&b&&(r&&r.isCE&&(r.ce._teleportTarget=e),u(y,e,t,r,i,a,s,l))},f=()=>{const e=t.target=Tn(t.props,h),o=In(e,t,m,p);e&&("svg"!==a&&kn(e)?a="svg":"mathml"!==a&&Pn(e)&&(a="mathml"),v||(d(e,o),Mn(t,!1)))};v&&(d(o,c),Mn(t,!0)),(C=t.props)&&(C.defer||""===C.defer)?si(f,i):f()}else{t.el=e.el,t.targetStart=e.targetStart;const n=t.anchor=e.anchor,u=t.target=e.target,p=t.targetAnchor=e.targetAnchor,m=_n(e.props),g=m?o:u,b=m?n:p;if("svg"===a||kn(u)?a="svg":("mathml"===a||Pn(u))&&(a="mathml"),x?(f(e.dynamicChildren,x,g,r,i,a,s),di(e,t,!0)):l||d(e,t,g,b,r,i,a,s,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):En(t,o,n,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Tn(t.props,h);e&&En(t,e,null,c,0)}else m&&En(t,u,p,c,1);Mn(t,v)}var C},remove(e,t,o,{um:n,o:{remove:r}},i){const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=e;if(d&&(r(c),r(u)),i&&r(l),16&a){const e=i||!_n(f);for(let r=0;r{e.isMounted=!0})),sr((()=>{e.isUnmounting=!0})),e}const Ln=[Function,Array],zn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ln,onEnter:Ln,onAfterEnter:Ln,onEnterCancelled:Ln,onBeforeLeave:Ln,onLeave:Ln,onAfterLeave:Ln,onLeaveCancelled:Ln,onBeforeAppear:Ln,onAppear:Ln,onAfterAppear:Ln,onAppearCancelled:Ln},Fn=e=>{const t=e.subTree;return t.component?Fn(t.component):t};function Bn(e){let t=e[0];if(e.length>1)for(const o of e)if(o.type!==$i){t=o;break}return t}const jn={name:"BaseTransition",props:zn,setup(e,{slots:t}){const o=la(),n=An();return()=>{const r=t.default&&Vn(t.default(),!0);if(!r||!r.length)return;const i=Bn(r),a=Po(e),{mode:s}=a;if(n.isLeaving)return Wn(i);const l=Nn(i);if(!l)return Wn(i);let c=Hn(l,a,n,o,(e=>c=e));l.type!==$i&&Un(l,c);const u=o.subTree,d=u&&Nn(u);if(d&&d.type!==$i&&!Ui(l,d)&&Fn(o).type!==$i){const e=Hn(d,a,n,o);if(Un(d,e),"out-in"===s&&l.type!==$i)return n.isLeaving=!0,e.afterLeave=()=>{n.isLeaving=!1,8&o.job.flags||o.update(),delete e.afterLeave},Wn(i);"in-out"===s&&l.type!==$i&&(e.delayLeave=(e,t,o)=>{Dn(n,d)[String(d.key)]=d,e[Rn]=()=>{t(),e[Rn]=void 0,delete c.delayedLeave},c.delayedLeave=o})}return i}}};function Dn(e,t){const{leavingVNodes:o}=e;let n=o.get(t.type);return n||(n=Object.create(null),o.set(t.type,n)),n}function Hn(e,t,o,n,r){const{appear:i,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:g,onAppear:v,onAfterAppear:b,onAppearCancelled:y}=t,x=String(e.key),C=Dn(o,e),S=(e,t)=>{e&&Zo(e,n,9,t)},w=(e,t)=>{const o=t[1];S(e,t),xe(e)?e.every((e=>e.length<=1))&&o():e.length<=1&&o()},_={mode:a,persisted:s,beforeEnter(t){let n=l;if(!o.isMounted){if(!i)return;n=g||l}t[Rn]&&t[Rn](!0);const r=C[x];r&&Ui(e,r)&&r.el[Rn]&&r.el[Rn](),S(n,[t])},enter(e){let t=c,n=u,r=d;if(!o.isMounted){if(!i)return;t=v||c,n=b||u,r=y||d}let a=!1;const s=e[$n]=t=>{a||(a=!0,S(t?r:n,[e]),_.delayedLeave&&_.delayedLeave(),e[$n]=void 0)};t?w(t,[e,s]):s()},leave(t,n){const r=String(e.key);if(t[$n]&&t[$n](!0),o.isUnmounting)return n();S(f,[t]);let i=!1;const a=t[Rn]=o=>{i||(i=!0,n(),S(o?m:h,[t]),t[Rn]=void 0,C[r]===e&&delete C[r])};C[r]=e,p?w(p,[t,a]):a()},clone(e){const i=Hn(e,t,o,n,r);return r&&r(i),i}};return _}function Wn(e){if(Yn(e))return(e=Yi(e)).children=null,e}function Nn(e){if(!Yn(e))return wn(e.type)&&e.children?Bn(e.children):e;const{shapeFlag:t,children:o}=e;if(o){if(16&t)return o[0];if(32&t&&we(o.default))return o.default()}}function Un(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Un(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Vn(e,t=!1,o){let n=[],r=0;for(let i=0;i1)for(let i=0;ige({name:e.name},t,{setup:e}))():e}function Gn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Qn(e,t,o,n,r=!1){if(xe(e))return void e.forEach(((e,i)=>Qn(e,t&&(xe(t)?t[i]:t),o,n,r)));if(Kn(n)&&!r)return;const i=4&n.shapeFlag?ya(n.component):n.el,a=r?null:i,{i:s,r:l}=e,c=t&&t.r,u=s.refs===ue?s.refs={}:s.refs,d=s.setupState,f=Po(d),p=d===ue?()=>!1:e=>ye(f,e);if(null!=c&&c!==l&&(_e(c)?(u[c]=null,p(c)&&(d[c]=null)):Mo(c)&&(c.value=null)),we(l))Xo(l,s,12,[a,u]);else{const t=_e(l),n=Mo(l);if(t||n){const s=()=>{if(e.f){const o=t?p(l)?d[l]:u[l]:l.value;r?xe(o)&&ve(o,i):xe(o)?o.includes(i)||o.push(i):t?(u[l]=[i],p(l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else t?(u[l]=a,p(l)&&(d[l]=a)):n&&(l.value=a,e.k&&(u[e.k]=a))};a?(s.id=-1,si(s,o)):s()}}}Ve().requestIdleCallback,Ve().cancelIdleCallback;const Kn=e=>!!e.type.__asyncLoader,Yn=e=>e.type.__isKeepAlive;function Jn(e,t){Zn(e,"a",t)}function Xn(e,t){Zn(e,"da",t)}function Zn(e,t,o=sa){const n=e.__wdc||(e.__wdc=()=>{let t=o;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(tr(t,n,o),o){let e=o.parent;for(;e&&e.parent;)Yn(e.parent.vnode)&&er(n,t,o,e),e=e.parent}}function er(e,t,o,n){const r=tr(t,e,n,!0);lr((()=>{ve(n[t],r)}),o)}function tr(e,t,o=sa,n=!1){if(o){const r=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...n)=>{Tt();const r=da(o),i=Zo(t,o,e,n);return r(),Et(),i});return n?r.unshift(i):r.push(i),i}}const or=e=>(t,o=sa)=>{ma&&"sp"!==e||tr(e,((...e)=>t(...e)),o)},nr=or("bm"),rr=or("m"),ir=or("bu"),ar=or("u"),sr=or("bum"),lr=or("um"),cr=or("sp"),ur=or("rtg"),dr=or("rtc");function fr(e,t=sa){tr("ec",e,t)}const pr="components";function hr(e,t){return br(pr,e,!0,t)||e}const mr=Symbol.for("v-ndc");function gr(e){return _e(e)?br(pr,e,!1)||e:e||mr}function vr(e){return br("directives",e)}function br(e,t,o=!0,n=!1){const r=gn||sa;if(r){const o=r.type;if(e===pr){const e=xa(o,!1);if(e&&(e===t||e===Le(t)||e===Be(Le(t))))return o}const i=yr(r[e]||o[e],t)||yr(r.appContext[e],t);return!i&&n?o:i}}function yr(e,t){return e&&(e[t]||e[Le(t)]||e[Be(Le(t))])}function xr(e,t,o,n){let r;const i=o,a=xe(e);if(a||_e(e)){let o=!1;a&&So(e)&&(o=!_o(e),e=Ht(e)),r=new Array(e.length);for(let n=0,a=e.length;nt(e,o,void 0,i)));else{const o=Object.keys(e);r=new Array(o.length);for(let n=0,a=o.length;n!Ni(e)||e.type!==$i&&!(e.type===Ii&&!Sr(e.children))))?e:null}const wr=e=>e?pa(e)?ya(e):wr(e.parent):null,_r=ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>wr(e.parent),$root:e=>wr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>$r(e),$forceUpdate:e=>e.f||(e.f=()=>{un(e.update)}),$nextTick:e=>e.n||(e.n=cn.bind(e.proxy)),$watch:e=>yi.bind(e)}),kr=(e,t)=>e!==ue&&!e.__isScriptSetup&&ye(e,t),Pr={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:o,setupState:n,data:r,props:i,accessCache:a,type:s,appContext:l}=e;let c;if("$"!==t[0]){const s=a[t];if(void 0!==s)switch(s){case 1:return n[t];case 2:return r[t];case 4:return o[t];case 3:return i[t]}else{if(kr(n,t))return a[t]=1,n[t];if(r!==ue&&ye(r,t))return a[t]=2,r[t];if((c=e.propsOptions[0])&&ye(c,t))return a[t]=3,i[t];if(o!==ue&&ye(o,t))return a[t]=4,o[t];Or&&(a[t]=0)}}const u=_r[t];let d,f;return u?("$attrs"===t&&Bt(e.attrs,0,""),u(e)):(d=s.__cssModules)&&(d=d[t])?d:o!==ue&&ye(o,t)?(a[t]=4,o[t]):(f=l.config.globalProperties,ye(f,t)?f[t]:void 0)},set({_:e},t,o){const{data:n,setupState:r,ctx:i}=e;return kr(r,t)?(r[t]=o,!0):n!==ue&&ye(n,t)?(n[t]=o,!0):!ye(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=o,!0))},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:r,propsOptions:i}},a){let s;return!!o[a]||e!==ue&&ye(e,a)||kr(t,a)||(s=i[0])&&ye(s,a)||ye(n,a)||ye(_r,a)||ye(r.config.globalProperties,a)},defineProperty(e,t,o){return null!=o.get?e._.accessCache[t]=0:ye(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function Tr(e){return xe(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function Er(e,t){return e&&t?xe(e)&&xe(t)?e.concat(t):ge({},Tr(e),Tr(t)):e||t}let Or=!0;function Mr(e){const t=$r(e),o=e.proxy,n=e.ctx;Or=!1,t.beforeCreate&&Ir(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:h,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:b,destroyed:y,unmounted:x,render:C,renderTracked:S,renderTriggered:w,errorCaptured:_,serverPrefetch:k,expose:P,inheritAttrs:T,components:E,directives:O,filters:M}=t;if(c&&function(e,t){xe(e)&&(e=Fr(e));for(const o in e){const n=e[o];let r;r=Pe(n)?"default"in n?qr(n.from||o,n.default,!0):qr(n.from||o):qr(n),Mo(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[o]=r}}(c,n,null),a)for(const R in a){const e=a[R];we(e)&&(n[R]=e.bind(o))}if(r){const t=r.call(o,o);Pe(t)&&(e.data=bo(t))}if(Or=!0,i)for(const R in i){const e=i[R],t=we(e)?e.bind(o,o):we(e.get)?e.get.bind(o,o):fe,r=!we(e)&&we(e.set)?e.set.bind(o):fe,a=Ca({get:t,set:r});Object.defineProperty(n,R,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(s)for(const R in s)Rr(s[R],n,o,R);if(l){const e=we(l)?l.call(o):l;Reflect.ownKeys(e).forEach((t=>{Vr(t,e[t])}))}function I(e,t){xe(t)?t.forEach((t=>e(t.bind(o)))):t&&e(t.bind(o))}if(u&&Ir(u,e,"c"),I(nr,d),I(rr,f),I(ir,p),I(ar,h),I(Jn,m),I(Xn,g),I(fr,_),I(dr,S),I(ur,w),I(sr,b),I(lr,x),I(cr,k),xe(P))if(P.length){const t=e.exposed||(e.exposed={});P.forEach((e=>{Object.defineProperty(t,e,{get:()=>o[e],set:t=>o[e]=t})}))}else e.exposed||(e.exposed={});C&&e.render===fe&&(e.render=C),null!=T&&(e.inheritAttrs=T),E&&(e.components=E),O&&(e.directives=O),k&&Gn(e)}function Ir(e,t,o){Zo(xe(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,o)}function Rr(e,t,o,n){let r=n.includes(".")?xi(o,n):()=>o[n];if(_e(e)){const o=t[e];we(o)&&vi(r,o)}else if(we(e))vi(r,e.bind(o));else if(Pe(e))if(xe(e))e.forEach((e=>Rr(e,t,o,n)));else{const n=we(e.handler)?e.handler.bind(o):t[e.handler];we(n)&&vi(r,n,e)}}function $r(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:r.length||o||n?(l={},r.length&&r.forEach((e=>Ar(l,e,a,!0))),Ar(l,t,a)):l=t,Pe(t)&&i.set(t,l),l}function Ar(e,t,o,n=!1){const{mixins:r,extends:i}=t;i&&Ar(e,i,o,!0),r&&r.forEach((t=>Ar(e,t,o,!0)));for(const a in t)if(n&&"expose"===a);else{const n=Lr[a]||o&&o[a];e[a]=n?n(e[a],t[a]):t[a]}return e}const Lr={data:zr,props:Dr,emits:Dr,methods:jr,computed:jr,beforeCreate:Br,created:Br,beforeMount:Br,mounted:Br,beforeUpdate:Br,updated:Br,beforeDestroy:Br,beforeUnmount:Br,destroyed:Br,unmounted:Br,activated:Br,deactivated:Br,errorCaptured:Br,serverPrefetch:Br,components:jr,directives:jr,watch:function(e,t){if(!e)return t;if(!t)return e;const o=ge(Object.create(null),e);for(const n in t)o[n]=Br(e[n],t[n]);return o},provide:zr,inject:function(e,t){return jr(Fr(e),Fr(t))}};function zr(e,t){return t?e?function(){return ge(we(e)?e.call(this,this):e,we(t)?t.call(this,this):t)}:t:e}function Fr(e){if(xe(e)){const t={};for(let o=0;o(i.has(e)||(e&&we(e.install)?(i.add(e),e.install(l,...t)):we(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),l),component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(i,a,c){if(!s){const u=l._ceVNode||Qi(o,n);return u.appContext=r,!0===c?c="svg":!1===c&&(c=void 0),a&&t?t(u,i):e(u,i,c),s=!0,l._container=i,i.__vue_app__=l,ya(u.component)}},onUnmount(e){a.push(e)},unmount(){s&&(Zo(a,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l),runWithContext(e){const t=Ur;Ur=l;try{return e()}finally{Ur=t}}};return l}}let Ur=null;function Vr(e,t){if(sa){let o=sa.provides;const n=sa.parent&&sa.parent.provides;n===o&&(o=sa.provides=Object.create(n)),o[e]=t}else;}function qr(e,t,o=!1){const n=sa||gn;if(n||Ur){const r=Ur?Ur._context.provides:n?null==n.parent?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return o&&we(t)?t.call(n&&n.proxy):t}}const Gr={},Qr=()=>Object.create(Gr),Kr=e=>Object.getPrototypeOf(e)===Gr;function Yr(e,t,o,n){const[r,i]=e.propsOptions;let a,s=!1;if(t)for(let l in t){if(Re(l))continue;const c=t[l];let u;r&&ye(r,u=Le(l))?i&&i.includes(u)?(a||(a={}))[u]=c:o[u]=c:ki(e.emitsOptions,l)||l in n&&c===n[l]||(n[l]=c,s=!0)}if(i){const t=Po(o),n=a||ue;for(let a=0;a{l=!0;const[o,n]=Zr(e,t,!0);ge(a,o),n&&s.push(...n)};!o&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!i&&!l)return Pe(e)&&n.set(e,de),de;if(xe(i))for(let u=0;u"_"===e[0]||"$stable"===e,oi=e=>xe(e)?e.map(ea):[ea(e)],ni=(e,t,o)=>{if(t._n)return t;const n=yn(((...e)=>oi(t(...e))),o);return n._c=!1,n},ri=(e,t,o)=>{const n=e._ctx;for(const r in e){if(ti(r))continue;const o=e[r];if(we(o))t[r]=ni(0,o,n);else if(null!=o){const e=oi(o);t[r]=()=>e}}},ii=(e,t)=>{const o=oi(t);e.slots.default=()=>o},ai=(e,t,o)=>{for(const n in t)(o||"_"!==n)&&(e[n]=t[n])},si=function(e,t){t&&t.pendingBranch?xe(e)?t.effects.push(...e):t.effects.push(e):(xe(o=e)?nn.push(...o):rn&&-1===o.id?rn.splice(an+1,0,o):1&o.flags||(nn.push(o),o.flags|=1),dn());var o};function li(e){return function(e){Ve().__VUE__=!0;const{insert:t,remove:o,patchProp:n,createElement:r,createText:i,createComment:a,setText:s,setElementText:l,parentNode:c,nextSibling:u,setScopeId:d=fe,insertStaticContent:f}=e,p=(e,t,o,n=null,r=null,i=null,a=void 0,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ui(e,t)&&(n=H(e),z(e,r,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Ri:h(e,t,o,n);break;case $i:m(e,t,o,n);break;case Ai:null==e&&g(t,o,n,a);break;case Ii:P(e,t,o,n,r,i,a,s,l);break;default:1&d?y(e,t,o,n,r,i,a,s,l):6&d?T(e,t,o,n,r,i,a,s,l):(64&d||128&d)&&c.process(e,t,o,n,r,i,a,s,l,U)}null!=u&&r&&Qn(u,e&&e.ref,i,t||e,!t)},h=(e,o,n,r)=>{if(null==e)t(o.el=i(o.children),n,r);else{const t=o.el=e.el;o.children!==e.children&&s(t,o.children)}},m=(e,o,n,r)=>{null==e?t(o.el=a(o.children||""),n,r):o.el=e.el},g=(e,t,o,n)=>{[e.el,e.anchor]=f(e.children,t,o,n,e.el,e.anchor)},v=({el:e,anchor:o},n,r)=>{let i;for(;e&&e!==o;)i=u(e),t(e,n,r),e=i;t(o,n,r)},b=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=u(e),o(e),e=n;o(t)},y=(e,t,o,n,r,i,a,s,l)=>{"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?x(t,o,n,r,i,a,s,l):w(e,t,r,i,a,s,l)},x=(e,o,i,a,s,c,u,d)=>{let f,p;const{props:h,shapeFlag:m,transition:g,dirs:v}=e;if(f=e.el=r(e.type,c,h&&h.is,h),8&m?l(f,e.children):16&m&&S(e.children,f,null,a,s,ci(e,c),u,d),v&&Cn(e,null,a,"created"),C(f,e,e.scopeId,u,a),h){for(const e in h)"value"===e||Re(e)||n(f,e,null,h[e],c,a);"value"in h&&n(f,"value",null,h.value,c),(p=h.onVnodeBeforeMount)&&ra(p,a,e)}v&&Cn(e,null,a,"beforeMount");const b=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(s,g);b&&g.beforeEnter(f),t(f,o,i),((p=h&&h.onVnodeMounted)||b||v)&&si((()=>{p&&ra(p,a,e),b&&g.enter(f),v&&Cn(e,null,a,"mounted")}),s)},C=(e,t,o,n,r)=>{if(o&&d(e,o),n)for(let i=0;i{for(let c=l;c{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=16&e.patchFlag;const p=e.props||ue,h=t.props||ue;let m;if(o&&ui(o,!1),(m=h.onVnodeBeforeUpdate)&&ra(m,o,t,e),f&&Cn(t,e,o,"beforeUpdate"),o&&ui(o,!0),(p.innerHTML&&null==h.innerHTML||p.textContent&&null==h.textContent)&&l(c,""),d?_(e.dynamicChildren,d,c,o,r,ci(t,i),a):s||R(e,t,c,null,o,r,ci(t,i),a,!1),u>0){if(16&u)k(c,p,h,o,i);else if(2&u&&p.class!==h.class&&n(c,"class",null,h.class,i),4&u&&n(c,"style",p.style,h.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{m&&ra(m,o,t,e),f&&Cn(t,e,o,"updated")}),r)},_=(e,t,o,n,r,i,a)=>{for(let s=0;s{if(t!==o){if(t!==ue)for(const a in t)Re(a)||a in o||n(e,a,t[a],null,i,r);for(const a in o){if(Re(a))continue;const s=o[a],l=t[a];s!==l&&"value"!==a&&n(e,a,l,s,i,r)}"value"in o&&n(e,"value",t.value,o.value,i)}},P=(e,o,n,r,a,s,l,c,u)=>{const d=o.el=e?e.el:i(""),f=o.anchor=e?e.anchor:i("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:m}=o;m&&(c=c?c.concat(m):m),null==e?(t(d,n,r),t(f,n,r),S(o.children||[],n,f,a,s,l,c,u)):p>0&&64&p&&h&&e.dynamicChildren?(_(e.dynamicChildren,h,n,a,s,l,c),(null!=o.key||a&&o===a.subTree)&&di(e,o,!0)):R(e,o,n,f,a,s,l,c,u)},T=(e,t,o,n,r,i,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,o,n,a,l):E(t,o,n,r,i,a,l):O(e,t,l)},E=(e,t,o,n,r,i,a)=>{const s=e.component=function(e,t,o){const n=e.type,r=(t?t.appContext:e.appContext)||ia,i={uid:aa++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new st(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Zr(n,r),emitsOptions:_i(n,r),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:n.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,setupContext:null,suspense:o,suspenseId:o?o.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};i.ctx={_:i},i.root=t?t.root:i,i.emit=wi.bind(null,i),e.ce&&e.ce(i);return i}(e,n,r);if(Yn(e)&&(s.ctx.renderer=U),function(e,t=!1,o=!1){t&&ua(t);const{props:n,children:r}=e.vnode,i=pa(e);(function(e,t,o,n=!1){const r={},i=Qr();e.propsDefaults=Object.create(null),Yr(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);o?e.props=n?r:yo(r):e.type.props?e.props=r:e.props=i,e.attrs=i})(e,n,i,t),((e,t,o)=>{const n=e.slots=Qr();if(32&e.vnode.shapeFlag){const e=t._;e?(ai(n,t,o),o&&We(n,"_",e,!0)):ri(t,n)}else t&&ii(e,t)})(e,r,o);const a=i?function(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Pr);const{setup:n}=o;if(n){Tt();const o=e.setupContext=n.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,ba),slots:e.slots,emit:e.emit,expose:t}}(e):null,r=da(e),i=Xo(n,e,0,[e.props,o]),a=Te(i);if(Et(),r(),!a&&!e.sp||Kn(e)||Gn(e),a){if(i.then(fa,fa),t)return i.then((o=>{ga(e,o,t)})).catch((t=>{en(t,e,0)}));e.asyncDep=i}else ga(e,i,t)}else va(e,t)}(e,t):void 0;t&&ua(!1)}(s,!1,a),s.asyncDep){if(r&&r.registerDep(s,M,a),!e.el){const e=s.subTree=Qi($i);m(null,e,t,o)}}else M(s,e,t,o,r,i,a)},O=(e,t,o)=>{const n=t.component=e.component;if(function(e,t,o){const{props:n,children:r,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(o&&l>=0))return!(!r&&!s||s&&s.$stable)||n!==a&&(n?!a||Oi(n,a,c):!!a);if(1024&l)return!0;if(16&l)return n?Oi(n,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t{const s=()=>{if(e.isMounted){let{next:t,bu:o,u:n,parent:l,vnode:u}=e;{const o=fi(e);if(o)return t&&(t.el=u.el,I(e,t,a)),void o.asyncDep.then((()=>{e.isUnmounted||s()}))}let d,f=t;ui(e,!1),t?(t.el=u.el,I(e,t,a)):t=u,o&&He(o),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ra(d,l,t,u),ui(e,!0);const h=Pi(e),m=e.subTree;e.subTree=h,p(m,h,c(m.el),H(m),e,r,i),t.el=h.el,null===f&&function({vnode:e,parent:t},o){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n!==e)break;(e=t.vnode).el=o,t=t.parent}}(e,h.el),n&&si(n,r),(d=t.props&&t.props.onVnodeUpdated)&&si((()=>ra(d,l,t,u)),r)}else{let a;const{el:s,props:l}=t,{bm:c,m:u,parent:d,root:f,type:h}=e,m=Kn(t);if(ui(e,!1),c&&He(c),!m&&(a=l&&l.onVnodeBeforeMount)&&ra(a,d,t),ui(e,!0),s&&q){const t=()=>{e.subTree=Pi(e),q(s,e.subTree,e,r,null)};m&&h.__asyncHydrate?h.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._injectChildStyle(h);const a=e.subTree=Pi(e);p(null,a,o,n,e,r,i),t.el=a.el}if(u&&si(u,r),!m&&(a=l&&l.onVnodeMounted)){const e=t;si((()=>ra(a,d,e)),r)}(256&t.shapeFlag||d&&Kn(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&si(e.a,r),e.isMounted=!0,t=o=n=null}};e.scope.on();const l=e.effect=new ft(s);e.scope.off();const u=e.update=l.run.bind(l),d=e.job=l.runIfDirty.bind(l);d.i=e,d.id=e.uid,l.scheduler=()=>un(d),ui(e,!0),u()},I=(e,t,o)=>{t.component=e;const n=e.vnode.props;e.vnode=t,e.next=null,function(e,t,o,n){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,s=Po(r),[l]=e.propsOptions;let c=!1;if(!(n||a>0)||16&a){let n;Yr(e,t,r,i)&&(c=!0);for(const i in s)t&&(ye(t,i)||(n=Fe(i))!==i&&ye(t,n))||(l?!o||void 0===o[i]&&void 0===o[n]||(r[i]=Jr(l,s,i,void 0,e,!0)):delete r[i]);if(i!==s)for(const e in i)t&&ye(t,e)||(delete i[e],c=!0)}else if(8&a){const o=e.vnode.dynamicProps;for(let n=0;n{const{vnode:n,slots:r}=e;let i=!0,a=ue;if(32&n.shapeFlag){const e=t._;e?o&&1===e?i=!1:ai(r,t,o):(i=!t.$stable,ri(t,r)),a=t}else t&&(ii(e,t),a={default:1});if(i)for(const s in r)ti(s)||null!=a[s]||delete r[s]})(e,t.children,o),Tt(),fn(e),Et()},R=(e,t,o,n,r,i,a,s,c=!1)=>{const u=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void A(u,f,o,n,r,i,a,s,c);if(256&p)return void $(u,f,o,n,r,i,a,s,c)}8&h?(16&d&&D(u,r,i),f!==u&&l(o,f)):16&d?16&h?A(u,f,o,n,r,i,a,s,c):D(u,r,i,!0):(8&d&&l(o,""),16&h&&S(f,o,n,r,i,a,s,c))},$=(e,t,o,n,r,i,a,s,l)=>{t=t||de;const c=(e=e||de).length,u=t.length,d=Math.min(c,u);let f;for(f=0;fu?D(e,r,i,!0,!1,d):S(t,o,n,r,i,a,s,l,d)},A=(e,t,o,n,r,i,a,s,l)=>{let c=0;const u=t.length;let d=e.length-1,f=u-1;for(;c<=d&&c<=f;){const n=e[c],u=t[c]=l?ta(t[c]):ea(t[c]);if(!Ui(n,u))break;p(n,u,o,null,r,i,a,s,l),c++}for(;c<=d&&c<=f;){const n=e[d],c=t[f]=l?ta(t[f]):ea(t[f]);if(!Ui(n,c))break;p(n,c,o,null,r,i,a,s,l),d--,f--}if(c>d){if(c<=f){const e=f+1,d=ef)for(;c<=d;)z(e[c],r,i,!0),c++;else{const h=c,m=c,g=new Map;for(c=m;c<=f;c++){const e=t[c]=l?ta(t[c]):ea(t[c]);null!=e.key&&g.set(e.key,c)}let v,b=0;const y=f-m+1;let x=!1,C=0;const S=new Array(y);for(c=0;c=y){z(n,r,i,!0);continue}let u;if(null!=n.key)u=g.get(n.key);else for(v=m;v<=f;v++)if(0===S[v-m]&&Ui(n,t[v])){u=v;break}void 0===u?z(n,r,i,!0):(S[u-m]=c+1,u>=C?C=u:x=!0,p(n,t[u],o,null,r,i,a,s,l),b++)}const w=x?function(e){const t=e.slice(),o=[0];let n,r,i,a,s;const l=e.length;for(n=0;n>1,e[o[s]]0&&(t[n]=o[i-1]),o[i]=n)}}i=o.length,a=o[i-1];for(;i-- >0;)o[i]=a,a=t[a];return o}(S):de;for(v=w.length-1,c=y-1;c>=0;c--){const e=m+c,d=t[e],f=e+1{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void L(e.component.subTree,o,n,r);if(128&u)return void e.suspense.move(o,n,r);if(64&u)return void s.move(e,o,n,U);if(s===Ii){t(a,o,n);for(let e=0;el.enter(a)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=l,s=()=>t(a,o,n),c=()=>{e(a,(()=>{s(),i&&i()}))};r?r(a,s,c):c()}else t(a,o,n)},z=(e,t,o,n=!1,r=!1)=>{const{type:i,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p}=e;if(-2===d&&(r=!1),null!=s&&Qn(s,null,o,e,!0),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&f,m=!Kn(e);let g;if(m&&(g=a&&a.onVnodeBeforeUnmount)&&ra(g,t,e),6&u)j(e.component,o,n);else{if(128&u)return void e.suspense.unmount(o,n);h&&Cn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,o,U,n):c&&!c.hasOnce&&(i!==Ii||d>0&&64&d)?D(c,t,o,!1,!0):(i===Ii&&384&d||!r&&16&u)&&D(l,t,o),n&&F(e)}(m&&(g=a&&a.onVnodeUnmounted)||h)&&si((()=>{g&&ra(g,t,e),h&&Cn(e,null,t,"unmounted")}),o)},F=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Ii)return void B(n,r);if(t===Ai)return void b(e);const a=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:o}=i,r=()=>t(n,a);o?o(e.el,a,r):r()}else a()},B=(e,t)=>{let n;for(;e!==t;)n=u(e),o(e),e=n;o(t)},j=(e,t,o)=>{const{bum:n,scope:r,job:i,subTree:a,um:s,m:l,a:c}=e;pi(l),pi(c),n&&He(n),r.stop(),i&&(i.flags|=8,z(a,e,t,o)),s&&si(s,t),si((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},D=(e,t,o,n=!1,r=!1,i=0)=>{for(let a=i;a{if(6&e.shapeFlag)return H(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=u(e.anchor||e.el),o=t&&t[Sn];return o?u(o):t};let W=!1;const N=(e,t,o)=>{null==e?t._vnode&&z(t._vnode,null,null,!0):p(t._vnode||null,e,t,null,null,null,o),t._vnode=e,W||(W=!0,fn(),pn(),W=!1)},U={p:p,um:z,m:L,r:F,mt:E,mc:S,pc:R,pbc:_,n:H,o:e};let V,q;return{render:N,hydrate:V,createApp:Nr(N,V)}}(e)}function ci({type:e,props:t},o){return"svg"===o&&"foreignObject"===e||"mathml"===o&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function ui({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function di(e,t,o=!1){const n=e.children,r=t.children;if(xe(n)&&xe(r))for(let i=0;iqr(hi);function gi(e,t){return bi(e,null,t)}function vi(e,t,o){return bi(e,t,o)}function bi(e,t,o=ue){const{immediate:n,deep:r,flush:i,once:a}=o,s=ge({},o),l=t&&n||!t&&"post"!==i;let c;if(ma)if("sync"===i){const e=mi();c=e.__watcherHandles||(e.__watcherHandles=[])}else if(!l){const e=()=>{};return e.stop=fe,e.resume=fe,e.pause=fe,e}const u=sa;s.call=(e,t,o)=>Zo(e,u,t,o);let d=!1;"post"===i?s.scheduler=e=>{si(e,u&&u.suspense)}:"sync"!==i&&(d=!0,s.scheduler=(e,t)=>{t?e():un(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};const f=Yo(e,t,s);return ma&&(c?c.push(f):l&&f()),f}function yi(e,t,o){const n=this.proxy,r=_e(e)?e.includes(".")?xi(n,e):()=>n[e]:e.bind(n,n);let i;we(t)?i=t:(i=t.handler,o=t);const a=da(this),s=bi(r,i.bind(n),o);return a(),s}function xi(e,t){const o=t.split(".");return()=>{let t=e;for(let e=0;e{let l,c,u=ue;return bi((()=>{const t=e[r];De(l,t)&&(l=t,s())}),null,{flush:"sync"}),{get:()=>(a(),o.get?o.get(l):l),set(e){const a=o.set?o.set(e):e;if(!(De(a,l)||u!==ue&&De(e,u)))return;const d=n.vnode.props;d&&(t in d||r in d||i in d)&&(`onUpdate:${t}`in d||`onUpdate:${r}`in d||`onUpdate:${i}`in d)||(l=e,s()),n.emit(`update:${t}`,a),De(e,a)&&De(e,u)&&!De(a,c)&&s(),u=e,c=a}}}));return s[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?a||ue:s,done:!1}:{done:!0}}},s}const Si=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${Le(t)}Modifiers`]||e[`${Fe(t)}Modifiers`];function wi(e,t,...o){if(e.isUnmounted)return;const n=e.vnode.props||ue;let r=o;const i=t.startsWith("update:"),a=i&&Si(n,t.slice(7));let s;a&&(a.trim&&(r=o.map((e=>_e(e)?e.trim():e))),a.number&&(r=o.map(Ne)));let l=n[s=je(t)]||n[s=je(Le(t))];!l&&i&&(l=n[s=je(Fe(t))]),l&&Zo(l,e,6,r);const c=n[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,Zo(c,e,6,r)}}function _i(e,t,o=!1){const n=t.emitsCache,r=n.get(e);if(void 0!==r)return r;const i=e.emits;let a={},s=!1;if(!we(e)){const n=e=>{const o=_i(e,t,!0);o&&(s=!0,ge(a,o))};!o&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}return i||s?(xe(i)?i.forEach((e=>a[e]=null)):ge(a,i),Pe(e)&&n.set(e,a),a):(Pe(e)&&n.set(e,null),null)}function ki(e,t){return!(!e||!he(t))&&(t=t.slice(2).replace(/Once$/,""),ye(e,t[0].toLowerCase()+t.slice(1))||ye(e,Fe(t))||ye(e,t))}function Pi(e){const{type:t,vnode:o,proxy:n,withProxy:r,propsOptions:[i],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:d,data:f,setupState:p,ctx:h,inheritAttrs:m}=e,g=bn(e);let v,b;try{if(4&o.shapeFlag){const e=r||n,t=e;v=ea(c.call(t,e,u,d,p,f,h)),b=s}else{const e=t;0,v=ea(e.length>1?e(d,{attrs:s,slots:a,emit:l}):e(d,null)),b=t.props?s:Ti(s)}}catch(x){Li.length=0,en(x,e,1),v=Qi($i)}let y=v;if(b&&!1!==m){const e=Object.keys(b),{shapeFlag:t}=y;e.length&&7&t&&(i&&e.some(me)&&(b=Ei(b,i)),y=Yi(y,b,!1,!0))}return o.dirs&&(y=Yi(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(o.dirs):o.dirs),o.transition&&Un(y,o.transition),v=y,bn(g),v}const Ti=e=>{let t;for(const o in e)("class"===o||"style"===o||he(o))&&((t||(t={}))[o]=e[o]);return t},Ei=(e,t)=>{const o={};for(const n in e)me(n)&&n.slice(9)in t||(o[n]=e[n]);return o};function Oi(e,t,o){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;const Ii=Symbol.for("v-fgt"),Ri=Symbol.for("v-txt"),$i=Symbol.for("v-cmt"),Ai=Symbol.for("v-stc"),Li=[];let zi=null;function Fi(e=!1){Li.push(zi=e?null:[])}let Bi=1;function ji(e){Bi+=e,e<0&&zi&&(zi.hasOnce=!0)}function Di(e){return e.dynamicChildren=Bi>0?zi||de:null,Li.pop(),zi=Li[Li.length-1]||null,Bi>0&&zi&&zi.push(e),e}function Hi(e,t,o,n,r,i){return Di(Gi(e,t,o,n,r,i,!0))}function Wi(e,t,o,n,r){return Di(Qi(e,t,o,n,r,!0))}function Ni(e){return!!e&&!0===e.__v_isVNode}function Ui(e,t){return e.type===t.type&&e.key===t.key}const Vi=({key:e})=>null!=e?e:null,qi=({ref:e,ref_key:t,ref_for:o})=>("number"==typeof e&&(e=""+e),null!=e?_e(e)||Mo(e)||we(e)?{i:gn,r:e,k:t,f:!!o}:e:null);function Gi(e,t=null,o=null,n=0,r=null,i=(e===Ii?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Vi(t),ref:t&&qi(t),scopeId:vn,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:gn};return s?(oa(l,o),128&i&&e.normalize(l)):o&&(l.shapeFlag|=_e(o)?8:16),Bi>0&&!a&&zi&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&zi.push(l),l}const Qi=function(e,t=null,o=null,n=0,r=null,i=!1){e&&e!==mr||(e=$i);if(Ni(e)){const n=Yi(e,t,!0);return o&&oa(n,o),Bi>0&&!i&&zi&&(6&n.shapeFlag?zi[zi.indexOf(e)]=n:zi.push(n)),n.patchFlag=-2,n}a=e,we(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=Ki(t);let{class:e,style:o}=t;e&&!_e(e)&&(t.class=Je(e)),Pe(o)&&(ko(o)&&!xe(o)&&(o=ge({},o)),t.style=qe(o))}const s=_e(e)?1:Mi(e)?128:wn(e)?64:Pe(e)?4:we(e)?2:0;return Gi(e,t,o,n,r,s,i,!0)};function Ki(e){return e?ko(e)||Kr(e)?ge({},e):e:null}function Yi(e,t,o=!1,n=!1){const{props:r,ref:i,patchFlag:a,children:s,transition:l}=e,c=t?na(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Vi(c),ref:t&&t.ref?o&&i?xe(i)?i.concat(qi(t)):[i,qi(t)]:qi(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ii?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yi(e.ssContent),ssFallback:e.ssFallback&&Yi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&Un(u,l.clone(u)),u}function Ji(e=" ",t=0){return Qi(Ri,null,e,t)}function Xi(e,t){const o=Qi(Ai,null,e);return o.staticCount=t,o}function Zi(e="",t=!1){return t?(Fi(),Wi($i,null,e)):Qi($i,null,e)}function ea(e){return null==e||"boolean"==typeof e?Qi($i):xe(e)?Qi(Ii,null,e.slice()):Ni(e)?ta(e):Qi(Ri,null,String(e))}function ta(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Yi(e)}function oa(e,t){let o=0;const{shapeFlag:n}=e;if(null==t)t=null;else if(xe(t))o=16;else if("object"==typeof t){if(65&n){const o=t.default;return void(o&&(o._c&&(o._d=!1),oa(e,o()),o._c&&(o._d=!0)))}{o=32;const n=t._;n||Kr(t)?3===n&&gn&&(1===gn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=gn}}else we(t)?(t={default:t,_ctx:gn},o=32):(t=String(t),64&n?(o=16,t=[Ji(t)]):o=8);e.children=t,e.shapeFlag|=o}function na(...e){const t={};for(let o=0;osa||gn;let ca,ua;{const e=Ve(),t=(t,o)=>{let n;return(n=e[t])||(n=e[t]=[]),n.push(o),e=>{n.length>1?n.forEach((t=>t(e))):n[0](e)}};ca=t("__VUE_INSTANCE_SETTERS__",(e=>sa=e)),ua=t("__VUE_SSR_SETTERS__",(e=>ma=e))}const da=e=>{const t=sa;return ca(e),e.scope.on(),()=>{e.scope.off(),ca(t)}},fa=()=>{sa&&sa.scope.off(),ca(null)};function pa(e){return 4&e.vnode.shapeFlag}let ha,ma=!1;function ga(e,t,o){we(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pe(t)&&(e.setupState=Bo(t)),va(e,o)}function va(e,t,o){const n=e.type;if(!e.render){if(!t&&ha&&!n.render){const t=n.template||$r(e).template;if(t){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:a}=n,s=ge(ge({isCustomElement:o,delimiters:i},r),a);n.render=ha(t,s)}}e.render=n.render||fe}{const t=da(e);Tt();try{Mr(e)}finally{Et(),t()}}}const ba={get:(e,t)=>(Bt(e,0,""),e[t])};function ya(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Bo(To(e.exposed)),{get:(t,o)=>o in t?t[o]:o in _r?_r[o](e):void 0,has:(e,t)=>t in e||t in _r})):e.proxy}function xa(e,t=!0){return we(e)?e.displayName||e.name:e.name||t&&e.__name}const Ca=(e,t)=>{const o=function(e,t,o=!1){let n,r;return we(e)?n=e:(n=e.get,r=e.set),new qo(n,r,o)}(e,0,ma);return o};function Sa(e,t,o){const n=arguments.length;return 2===n?Pe(t)&&!xe(t)?Ni(t)?Qi(e,null,[t]):Qi(e,t):Qi(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):3===n&&Ni(o)&&(o=[o]),Qi(e,t,o))}const wa="3.5.12"; +/** +* @vue/runtime-dom v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let _a;const ka="undefined"!=typeof window&&window.trustedTypes;if(ka)try{_a=ka.createPolicy("vue",{createHTML:e=>e})}catch(hD){}const Pa=_a?e=>_a.createHTML(e):e=>e,Ta="undefined"!=typeof document?document:null,Ea=Ta&&Ta.createElement("template"),Oa={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,n)=>{const r="svg"===t?Ta.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Ta.createElementNS("http://www.w3.org/1998/Math/MathML",e):o?Ta.createElement(e,{is:o}):Ta.createElement(e);return"select"===e&&n&&null!=n.multiple&&r.setAttribute("multiple",n.multiple),r},createText:e=>Ta.createTextNode(e),createComment:e=>Ta.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ta.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,n,r,i){const a=o?o.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),o),r!==i&&(r=r.nextSibling););else{Ea.innerHTML=Pa("svg"===n?`${e}`:"mathml"===n?`${e}`:e);const r=Ea.content;if("svg"===n||"mathml"===n){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,o)}return[a?a.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},Ma="transition",Ia="animation",Ra=Symbol("_vtc"),$a={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Aa=ge({},zn,$a),La=(e=>(e.displayName="Transition",e.props=Aa,e))(((e,{slots:t})=>Sa(jn,Ba(e),t))),za=(e,t=[])=>{xe(e)?e.forEach((e=>e(...t))):e&&e(...t)},Fa=e=>!!e&&(xe(e)?e.some((e=>e.length>1)):e.length>1);function Ba(e){const t={};for(const E in e)E in $a||(t[E]=e[E]);if(!1===e.css)return t;const{name:o="v",type:n,duration:r,enterFromClass:i=`${o}-enter-from`,enterActiveClass:a=`${o}-enter-active`,enterToClass:s=`${o}-enter-to`,appearFromClass:l=i,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${o}-leave-from`,leaveActiveClass:f=`${o}-leave-active`,leaveToClass:p=`${o}-leave-to`}=e,h=function(e){if(null==e)return null;if(Pe(e))return[ja(e.enter),ja(e.leave)];{const t=ja(e);return[t,t]}}(r),m=h&&h[0],g=h&&h[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:y,onLeave:x,onLeaveCancelled:C,onBeforeAppear:S=v,onAppear:w=b,onAppearCancelled:_=y}=t,k=(e,t,o)=>{Ha(e,t?u:s),Ha(e,t?c:a),o&&o()},P=(e,t)=>{e._isLeaving=!1,Ha(e,d),Ha(e,p),Ha(e,f),t&&t()},T=e=>(t,o)=>{const r=e?w:b,a=()=>k(t,e,o);za(r,[t,a]),Wa((()=>{Ha(t,e?l:i),Da(t,e?u:s),Fa(r)||Ua(t,n,m,a)}))};return ge(t,{onBeforeEnter(e){za(v,[e]),Da(e,i),Da(e,a)},onBeforeAppear(e){za(S,[e]),Da(e,l),Da(e,c)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;const o=()=>P(e,t);Da(e,d),Da(e,f),Qa(),Wa((()=>{e._isLeaving&&(Ha(e,d),Da(e,p),Fa(x)||Ua(e,n,g,o))})),za(x,[e,o])},onEnterCancelled(e){k(e,!1),za(y,[e])},onAppearCancelled(e){k(e,!0),za(_,[e])},onLeaveCancelled(e){P(e),za(C,[e])}})}function ja(e){const t=(e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function Da(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[Ra]||(e[Ra]=new Set)).add(t)}function Ha(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const o=e[Ra];o&&(o.delete(t),o.size||(e[Ra]=void 0))}function Wa(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Na=0;function Ua(e,t,o,n){const r=e._endId=++Na,i=()=>{r===e._endId&&n()};if(null!=o)return setTimeout(i,o);const{type:a,timeout:s,propCount:l}=Va(e,t);if(!a)return n();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,f),i()},f=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u(o[e]||"").split(", "),r=n(`${Ma}Delay`),i=n(`${Ma}Duration`),a=qa(r,i),s=n(`${Ia}Delay`),l=n(`${Ia}Duration`),c=qa(s,l);let u=null,d=0,f=0;t===Ma?a>0&&(u=Ma,d=a,f=i.length):t===Ia?c>0&&(u=Ia,d=c,f=l.length):(d=Math.max(a,c),u=d>0?a>c?Ma:Ia:null,f=u?u===Ma?i.length:l.length:0);return{type:u,timeout:d,propCount:f,hasTransform:u===Ma&&/\b(transform|all)(,|$)/.test(n(`${Ma}Property`).toString())}}function qa(e,t){for(;e.lengthGa(t)+Ga(e[o]))))}function Ga(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Qa(){return document.body.offsetHeight}const Ka=Symbol("_vod"),Ya=Symbol("_vsh"),Ja={beforeMount(e,{value:t},{transition:o}){e[Ka]="none"===e.style.display?"":e.style.display,o&&t?o.beforeEnter(e):Xa(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:n}){!t!=!o&&(n?t?(n.beforeEnter(e),Xa(e,!0),n.enter(e)):n.leave(e,(()=>{Xa(e,!1)})):Xa(e,t))},beforeUnmount(e,{value:t}){Xa(e,t)}};function Xa(e,t){e.style.display=t?e[Ka]:"none",e[Ya]=!t}const Za=Symbol("");function es(e){const t=la();if(!t)return;const o=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>os(e,o)))},n=()=>{const n=e(t.proxy);t.ce?os(t.ce,n):ts(t.subTree,n),o(n)};nr((()=>{bi(n,null,{flush:"post"})})),rr((()=>{const e=new MutationObserver(n);e.observe(t.subTree.el.parentNode,{childList:!0}),lr((()=>e.disconnect()))}))}function ts(e,t){if(128&e.shapeFlag){const o=e.suspense;e=o.activeBranch,o.pendingBranch&&!o.isHydrating&&o.effects.push((()=>{ts(o.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)os(e.el,t);else if(e.type===Ii)e.children.forEach((e=>ts(e,t)));else if(e.type===Ai){let{el:o,anchor:n}=e;for(;o&&(os(o,t),o!==n);)o=o.nextSibling}}function os(e,t){if(1===e.nodeType){const o=e.style;let n="";for(const e in t)o.setProperty(`--${e}`,t[e]),n+=`--${e}: ${t[e]};`;o[Za]=n}}const ns=/(^|;)\s*display\s*:/;const rs=/\s*!important$/;function is(e,t,o){if(xe(o))o.forEach((o=>is(e,t,o)));else if(null==o&&(o=""),t.startsWith("--"))e.setProperty(t,o);else{const n=function(e,t){const o=ss[t];if(o)return o;let n=Le(t);if("filter"!==n&&n in e)return ss[t]=n;n=Be(n);for(let r=0;r{if(e._vts){if(e._vts<=o.attached)return}else e._vts=Date.now();Zo(function(e,t){if(xe(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,o.value),t,5,[e])};return o.value=e,o.attached=vs(),o}(n,r);ds(e,o,a,s)}else a&&(!function(e,t,o,n){e.removeEventListener(t,o,n)}(e,o,a,s),i[t]=void 0)}}const hs=/(?:Once|Passive|Capture)$/;let ms=0;const gs=Promise.resolve(),vs=()=>ms||(gs.then((()=>ms=0)),ms=Date.now());const bs=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const ys=new WeakMap,xs=new WeakMap,Cs=Symbol("_moveCb"),Ss=Symbol("_enterCb"),ws=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:ge({},Aa,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=la(),n=An();let r,i;return ar((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,o){const n=e.cloneNode(),r=e[Ra];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&n.classList.remove(e)))}));o.split(/\s+/).forEach((e=>e&&n.classList.add(e))),n.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(n);const{hasTransform:a}=Va(n);return i.removeChild(n),a}(r[0].el,o.vnode.el,t))return;r.forEach(_s),r.forEach(ks);const n=r.filter(Ps);Qa(),n.forEach((e=>{const o=e.el,n=o.style;Da(o,t),n.transform=n.webkitTransform=n.transitionDuration="";const r=o[Cs]=e=>{e&&e.target!==o||e&&!/transform$/.test(e.propertyName)||(o.removeEventListener("transitionend",r),o[Cs]=null,Ha(o,t))};o.addEventListener("transitionend",r)}))})),()=>{const a=Po(e),s=Ba(a);let l=a.tag||Ii;if(r=[],i)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return xe(t)?e=>He(t,e):t};function Es(e){e.target.composing=!0}function Os(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ms=Symbol("_assign"),Is={created(e,{modifiers:{lazy:t,trim:o,number:n}},r){e[Ms]=Ts(r);const i=n||r.props&&"number"===r.props.type;ds(e,t?"change":"input",(t=>{if(t.target.composing)return;let n=e.value;o&&(n=n.trim()),i&&(n=Ne(n)),e[Ms](n)})),o&&ds(e,"change",(()=>{e.value=e.value.trim()})),t||(ds(e,"compositionstart",Es),ds(e,"compositionend",Os),ds(e,"change",Os))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:o,modifiers:{lazy:n,trim:r,number:i}},a){if(e[Ms]=Ts(a),e.composing)return;const s=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:Ne(e.value))!==s){if(document.activeElement===e&&"range"!==e.type){if(n&&t===o)return;if(r&&e.value.trim()===s)return}e.value=s}}},Rs={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$s=(e,t)=>{const o=e._withKeys||(e._withKeys={}),n=t.join(".");return o[n]||(o[n]=o=>{if(!("key"in o))return;const n=Fe(o.key);return t.some((e=>e===n||Rs[e]===n))?e(o):void 0})},As=ge({patchProp:(e,t,o,n,r,i)=>{const a="svg"===r;"class"===t?function(e,t,o){const n=e[Ra];n&&(t=(t?[t,...n]:[...n]).join(" ")),null==t?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}(e,n,a):"style"===t?function(e,t,o){const n=e.style,r=_e(o);let i=!1;if(o&&!r){if(t)if(_e(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==o[t]&&is(n,t,"")}else for(const e in t)null==o[e]&&is(n,e,"");for(const e in o)"display"===e&&(i=!0),is(n,e,o[e])}else if(r){if(t!==o){const e=n[Za];e&&(o+=";"+e),n.cssText=o,i=ns.test(o)}}else t&&e.removeAttribute("style");Ka in e&&(e[Ka]=i?n.display:"",e[Ya]&&(n.display="none"))}(e,o,n):he(t)?me(t)||ps(e,t,0,n,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,o,n){if(n)return"innerHTML"===t||"textContent"===t||!!(t in e&&bs(t)&&we(o));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(bs(t)&&_e(o))return!1;return t in e}(e,t,n,a))?(us(e,t,n),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||cs(e,t,n,a,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&_e(n)?("true-value"===t?e._trueValue=n:"false-value"===t&&(e._falseValue=n),cs(e,t,n,a)):us(e,Le(t),n,0,t)}},Oa);let Ls;function zs(e){return e.composedPath()[0]||null}function Fs(e){return"string"==typeof e?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Bs(e){if(null!=e)return"number"==typeof e?`${e}px`:e.endsWith("px")?e:`${e}px`}function js(e,t){const o=e.trim().split(/\s+/g),n={top:o[0]};switch(o.length){case 1:n.right=o[0],n.bottom=o[0],n.left=o[0];break;case 2:n.right=o[1],n.left=o[1],n.bottom=o[0];break;case 3:n.right=o[1],n.bottom=o[2],n.left=o[1];break;case 4:n.right=o[1],n.bottom=o[2],n.left=o[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return void 0===t?n:n[t]}function Ds(e,t){const[o,n]=e.split(" ");return{row:o,col:n||o}}const Hs={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},Ws="^\\s*",Ns="\\s*$",Us="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Vs="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",qs="([0-9A-Fa-f])",Gs="([0-9A-Fa-f]{2})",Qs=new RegExp(`${Ws}hsl\\s*\\(${Vs},${Us},${Us}\\)${Ns}`),Ks=new RegExp(`${Ws}hsv\\s*\\(${Vs},${Us},${Us}\\)${Ns}`),Ys=new RegExp(`${Ws}hsla\\s*\\(${Vs},${Us},${Us},${Vs}\\)${Ns}`),Js=new RegExp(`${Ws}hsva\\s*\\(${Vs},${Us},${Us},${Vs}\\)${Ns}`),Xs=new RegExp(`${Ws}rgb\\s*\\(${Vs},${Vs},${Vs}\\)${Ns}`),Zs=new RegExp(`${Ws}rgba\\s*\\(${Vs},${Vs},${Vs},${Vs}\\)${Ns}`),el=new RegExp(`${Ws}#${qs}${qs}${qs}${Ns}`),tl=new RegExp(`${Ws}#${Gs}${Gs}${Gs}${Ns}`),ol=new RegExp(`${Ws}#${qs}${qs}${qs}${qs}${Ns}`),nl=new RegExp(`${Ws}#${Gs}${Gs}${Gs}${Gs}${Ns}`);function rl(e){return parseInt(e,16)}function il(e){try{let t;if(t=Ys.exec(e))return[hl(t[1]),gl(t[5]),gl(t[9]),pl(t[13])];if(t=Qs.exec(e))return[hl(t[1]),gl(t[5]),gl(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(hD){throw hD}}function al(e){try{let t;if(t=Js.exec(e))return[hl(t[1]),gl(t[5]),gl(t[9]),pl(t[13])];if(t=Ks.exec(e))return[hl(t[1]),gl(t[5]),gl(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(hD){throw hD}}function sl(e){try{let t;if(t=tl.exec(e))return[rl(t[1]),rl(t[2]),rl(t[3]),1];if(t=Xs.exec(e))return[ml(t[1]),ml(t[5]),ml(t[9]),1];if(t=Zs.exec(e))return[ml(t[1]),ml(t[5]),ml(t[9]),pl(t[13])];if(t=el.exec(e))return[rl(t[1]+t[1]),rl(t[2]+t[2]),rl(t[3]+t[3]),1];if(t=nl.exec(e))return[rl(t[1]),rl(t[2]),rl(t[3]),pl(rl(t[4])/255)];if(t=ol.exec(e))return[rl(t[1]+t[1]),rl(t[2]+t[2]),rl(t[3]+t[3]),pl(rl(t[4]+t[4])/255)];if(e in Hs)return sl(Hs[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(hD){throw hD}}function ll(e,t,o,n){return`rgba(${ml(e)}, ${ml(t)}, ${ml(o)}, ${r=n,r>1?1:r<0?0:r})`;var r}function cl(e,t,o,n,r){return ml((e*t*(1-n)+o*n)/r)}function ul(e,t){Array.isArray(e)||(e=sl(e)),Array.isArray(t)||(t=sl(t));const o=e[3],n=t[3],r=pl(o+n-o*n);return ll(cl(e[0],o,t[0],n,r),cl(e[1],o,t[1],n,r),cl(e[2],o,t[2],n,r),r)}function dl(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:sl(e);return t.alpha?ll(o,n,r,t.alpha):ll(o,n,r,i)}function fl(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:sl(e),{lightness:a=1,alpha:s=1}=t;return bl([o*a,n*a,r*a,i*s])}function pl(e){const t=Math.round(100*Number(e))/100;return t>1?1:t<0?0:t}function hl(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function ml(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function gl(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function vl(e){const[t,o,n]=Array.isArray(e)?e:sl(e);return function(e,t,o){return`rgb(${ml(e)}, ${ml(t)}, ${ml(o)})`}(t,o,n)}function bl(e){const[t,o,n]=e;return 3 in e?`rgba(${ml(t)}, ${ml(o)}, ${ml(n)}, ${pl(e[3])})`:`rgba(${ml(t)}, ${ml(o)}, ${ml(n)}, 1)`}function yl(e){return`hsv(${hl(e[0])}, ${gl(e[1])}%, ${gl(e[2])}%)`}function xl(e){const[t,o,n]=e;return 3 in e?`hsva(${hl(t)}, ${gl(o)}%, ${gl(n)}%, ${pl(e[3])})`:`hsva(${hl(t)}, ${gl(o)}%, ${gl(n)}%, 1)`}function Cl(e){return`hsl(${hl(e[0])}, ${gl(e[1])}%, ${gl(e[2])}%)`}function Sl(e){const[t,o,n]=e;return 3 in e?`hsla(${hl(t)}, ${gl(o)}%, ${gl(n)}%, ${pl(e[3])})`:`hsla(${hl(t)}, ${gl(o)}%, ${gl(n)}%, 1)`}function wl(e){if("string"==typeof e){let t;if(t=tl.exec(e))return`${t[0]}FF`;if(t=nl.exec(e))return t[0];if(t=el.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}FF`;if(t=ol.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}${t[4]}${t[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map((e=>ml(e).toString(16).toUpperCase().padStart(2,"0"))).join("")}`+(3===e.length?"FF":ml(255*e[3]).toString(16).padStart(2,"0").toUpperCase())}function _l(e){if("string"==typeof e){let t;if(t=tl.exec(e))return t[0];if(t=nl.exec(e))return t[0].slice(0,7);if(t=el.exec(e)||ol.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map((e=>ml(e).toString(16).toUpperCase().padStart(2,"0"))).join("")}`}function kl(e=8){return Math.random().toString(16).slice(2,2+e)}function Pl(e,t){const o=[];for(let n=0;n{n[t]=e[t]})),Object.assign(n,o)}function El(e,t=[],o){const n={};return Object.getOwnPropertyNames(e).forEach((o=>{t.includes(o)||(n[o]=e[o])})),Object.assign(n,o)}function Ol(e,t=!0,o=[]){return e.forEach((e=>{if(null!==e)if("object"==typeof e)if(Array.isArray(e))Ol(e,t,o);else if(e.type===Ii){if(null===e.children)return;Array.isArray(e.children)&&Ol(e.children,t,o)}else{if(e.type===$i&&t)return;o.push(e)}else"string"!=typeof e&&"number"!=typeof e||o.push(Ji(String(e)))})),o}function Ml(e,...t){if(!Array.isArray(e))return e(...t);e.forEach((e=>Ml(e,...t)))}function Il(e){return Object.keys(e)}function Rl(e,...t){return"function"==typeof e?e(...t):"string"==typeof e?Ji(e):"number"==typeof e?Ji(String(e)):null}function $l(e,t){console.error(`[naive/${e}]: ${t}`)}function Al(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Ll(e,t="default",o=void 0){const n=e[t];if(!n)return $l("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=Ol(n(o));return 1===r.length?r[0]:($l("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function zl(e){return e}function Fl(e){return e.some((e=>!Ni(e)||e.type!==$i&&!(e.type===Ii&&!Fl(e.children))))?e:null}function Bl(e,t){return e&&Fl(e())||t()}function jl(e,t,o){return e&&Fl(e(t))||o(t)}function Dl(e,t){return t(e&&Fl(e())||null)}function Hl(e){return!(e&&Fl(e()))}const Wl=qn({render(){var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)}}),Nl=/^(\d|\.)+$/,Ul=/(\d|\.)+/;function Vl(e,{c:t=1,offset:o=0,attachPx:n=!0}={}){if("number"==typeof e){const n=(e+o)*t;return 0===n?"0":`${n}px`}if("string"==typeof e){if(Nl.test(e)){const r=(Number(e)+o)*t;return n?0===r?"0":`${r}px`:`${r}`}{const n=Ul.exec(e);return n?e.replace(Ul,String((Number(n[0])+o)*t)):e}}return e}function ql(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function Gl(e){const{left:t,right:o,top:n,bottom:r}=js(e);return`${n} ${o} ${r} ${t}`}const Ql=/\s*,(?![^(]*\))\s*/g,Kl=/\s+/g;function Yl(e){let t=[""];return e.forEach((e=>{(e=e&&e.trim())&&(t=e.includes("&")?function(e,t){const o=[];return t.split(Ql).forEach((t=>{let n=function(e){let t=0;for(let o=0;o{o.push((e&&e+" ")+t)}));if(1===n)return void e.forEach((e=>{o.push(t.replace("&",e))}));let r=[t];for(;n--;){const t=[];r.forEach((o=>{e.forEach((e=>{t.push(o.replace("&",e))}))})),r=t}r.forEach((e=>o.push(e)))})),o}(t,e):function(e,t){const o=[];return t.split(Ql).forEach((t=>{e.forEach((e=>{o.push((e&&e+" ")+t)}))})),o}(t,e))})),t.join(", ").replace(Kl," ")}function Jl(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Xl(e,t){return(null!=t?t:document.head).querySelector(`style[cssr-id="${e}"]`)}function Zl(e){return!!e&&/^\s*@(s|m)/.test(e)}const ec=/[A-Z]/g;function tc(e){return e.replace(ec,(e=>"-"+e.toLowerCase()))}function oc(e,t,o,n){if(!t)return"";const r=function(e,t,o){return"function"==typeof e?e({context:t.context,props:o}):e}(t,o,n);if(!r)return"";if("string"==typeof r)return`${e} {\n${r}\n}`;const i=Object.keys(r);if(0===i.length)return o.config.keepEmptyBlock?e+" {\n}":"";const a=e?[e+" {"]:[];return i.forEach((e=>{const t=r[e];"raw"!==e?(e=tc(e),null!=t&&a.push(` ${e}${function(e,t=" "){return"object"==typeof e&&null!==e?" {\n"+Object.entries(e).map((e=>t+` ${tc(e[0])}: ${e[1]};`)).join("\n")+"\n"+t+"}":`: ${e};`}(t)}`)):a.push("\n"+t+"\n")})),e&&a.push("}"),a.join("\n")}function nc(e,t,o){e&&e.forEach((e=>{if(Array.isArray(e))nc(e,t,o);else if("function"==typeof e){const n=e(t);Array.isArray(n)?nc(n,t,o):n&&o(n)}else e&&o(e)}))}function rc(e,t,o,n,r){const i=e.$;let a="";if(i&&"string"!=typeof i)if("function"==typeof i){const e=i({context:n.context,props:r});Zl(e)?a=e:t.push(e)}else if(i.before&&i.before(n.context),i.$&&"string"!=typeof i.$){if(i.$){const e=i.$({context:n.context,props:r});Zl(e)?a=e:t.push(e)}}else Zl(i.$)?a=i.$:t.push(i.$);else Zl(i)?a=i:t.push(i);const s=Yl(t),l=oc(s,e.props,n,r);a?o.push(`${a} {`):l.length&&o.push(l),e.children&&nc(e.children,{context:n.context,props:r},(e=>{if("string"==typeof e){const t=oc(s,{raw:e},n,r);o.push(t)}else rc(e,t,o,n,r)})),t.pop(),a&&o.push("}"),i&&i.after&&i.after(n.context)}function ic(e){for(var t,o=0,n=0,r=e.length;r>=4;++n,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),o=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&o)+(59797*(o>>>16)<<16);switch(r){case 3:o^=(255&e.charCodeAt(n+2))<<16;case 2:o^=(255&e.charCodeAt(n+1))<<8;case 1:o=1540483477*(65535&(o^=255&e.charCodeAt(n)))+(59797*(o>>>16)<<16)}return(((o=1540483477*(65535&(o^=o>>>13))+(59797*(o>>>16)<<16))^o>>>15)>>>0).toString(36)}function ac(e,t){e.push(t)}function sc(e,t,o,n,r,i,a,s,l){let c;if(void 0===o&&(c=t.render(n),o=ic(c)),l)return void l.adapter(o,null!=c?c:t.render(n));void 0===s&&(s=document.head);const u=Xl(o,s);if(null!==u&&!i)return u;const d=null!=u?u:function(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}(o);if(void 0===c&&(c=t.render(n)),d.textContent=c,null!==u)return u;if(a){const e=s.querySelector(`meta[name="${a}"]`);if(e)return s.insertBefore(d,e),ac(t.els,d),d}return r?s.insertBefore(d,s.querySelector("style, link")):s.appendChild(d),ac(t.els,d),d}function lc(e){return function(e,t,o){const n=[];return rc(e,[],n,t,o),n.join("\n\n")}(this,this.instance,e)}function cc(e={}){const{id:t,ssr:o,props:n,head:r=!1,force:i=!1,anchorMetaName:a,parent:s}=e;return sc(this.instance,this,t,n,r,i,a,s,o)}function uc(e={}){const{id:t,parent:o}=e;!function(e,t,o,n){const{els:r}=t;if(void 0===o)r.forEach(Jl),t.els=[];else{const e=Xl(o,n);e&&r.includes(e)&&(Jl(e),t.els=r.filter((t=>t!==e)))}}(this.instance,this,t,o)}"undefined"!=typeof window&&(window.__cssrContext={});const dc=function(e,t,o,n){return{instance:e,$:t,props:o,children:n,els:[],render:lc,mount:cc,unmount:uc}};function fc(e={}){const t={c:(...e)=>function(e,t,o,n){return Array.isArray(t)?dc(e,{$:null},null,t):Array.isArray(o)?dc(e,t,null,o):Array.isArray(n)?dc(e,t,o,n):dc(e,t,o,null)}(t,...e),use:(e,...o)=>e.install(t,...o),find:Xl,context:{},config:e};return t}const pc=".n-",hc=fc(),mc=function(e){let t,o=".",n="__",r="--";if(e){let t=e.blockPrefix;t&&(o=t),t=e.elementPrefix,t&&(n=t),t=e.modifierPrefix,t&&(r=t)}const i={install(e){t=e.c;const o=e.context;o.bem={},o.bem.b=null,o.bem.els=null}};return Object.assign(i,{cB:(...e)=>t(function(e){let t,n;return{before(e){t=e.bem.b,n=e.bem.els,e.bem.els=null},after(e){e.bem.b=t,e.bem.els=n},$:({context:t,props:n})=>(e="string"==typeof e?e:e({context:t,props:n}),t.bem.b=e,`${(null==n?void 0:n.bPrefix)||o}${t.bem.b}`)}}(e[0]),e[1],e[2]),cE:(...e)=>t(function(e){let t;return{before(e){t=e.bem.els},after(e){e.bem.els=t},$:({context:t,props:r})=>(e="string"==typeof e?e:e({context:t,props:r}),t.bem.els=e.split(",").map((e=>e.trim())),t.bem.els.map((e=>`${(null==r?void 0:r.bPrefix)||o}${t.bem.b}${n}${e}`)).join(", "))}}(e[0]),e[1],e[2]),cM:(...e)=>{return t((i=e[0],{$({context:e,props:t}){const a=(i="string"==typeof i?i:i({context:e,props:t})).split(",").map((e=>e.trim()));function s(i){return a.map((a=>`&${(null==t?void 0:t.bPrefix)||o}${e.bem.b}${void 0!==i?`${n}${i}`:""}${r}${a}`)).join(", ")}const l=e.bem.els;return null!==l?s(l[0]):s()}}),e[1],e[2]);var i},cNotM:(...e)=>{return t((i=e[0],{$({context:e,props:t}){i="string"==typeof i?i:i({context:e,props:t});const a=e.bem.els;return`&:not(${(null==t?void 0:t.bPrefix)||o}${e.bem.b}${null!==a&&a.length>0?`${n}${a[0]}`:""}${r}${i})`}}),e[1],e[2]);var i}}),i}({blockPrefix:pc,elementPrefix:"__",modifierPrefix:"--"});hc.use(mc);const{c:gc,find:vc}=hc,{cB:bc,cE:yc,cM:xc,cNotM:Cc}=mc;function Sc(e){return gc((({props:{bPrefix:e}})=>`${e||pc}modal, ${e||pc}drawer`),[e])}function wc(e){return gc((({props:{bPrefix:e}})=>`${e||pc}popover`),[e])}function _c(e){return gc((({props:{bPrefix:e}})=>`&${e||pc}modal`),e)}const kc=(...e)=>gc(">",[bc(...e)]);function Pc(e,t){return e+("default"===t?"":t.replace(/^[a-z]/,(e=>e.toUpperCase())))}const Tc="undefined"!=typeof document&&"undefined"!=typeof window,Ec=new WeakSet;function Oc(e){Ec.add(e)}function Mc(e){return!Ec.has(e)}function Ic(e){const t=Io(!!e.value);if(t.value)return xo(t);const o=vi(e,(e=>{e&&(t.value=!0,o())}));return xo(t)}function Rc(e){const t=Ca(e),o=Io(t.value);return vi(t,(e=>{o.value=e})),"function"==typeof e?o:{__v_isRef:!0,get value(){return o.value},set value(t){e.set(t)}}}function $c(){return null!==la()}const Ac="undefined"!=typeof window;function Lc(e){return e.composedPath()[0]}const zc={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function Fc(e,t,o){const n=zc[e];let r=n.get(t);void 0===r&&n.set(t,r=new WeakMap);let i=r.get(o);return void 0===i&&r.set(o,i=function(e,t,o){if("mousemoveoutside"===e){const e=e=>{t.contains(Lc(e))||o(e)};return{mousemove:e,touchstart:e}}if("clickoutside"===e){let e=!1;const n=o=>{e=!t.contains(Lc(o))},r=n=>{e&&(t.contains(Lc(n))||o(n))};return{mousedown:n,mouseup:r,touchstart:n,touchend:r}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}(e,t,o)),i}const{on:Bc,off:jc}=function(){if("undefined"==typeof window)return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function o(){e.set(this,!0)}function n(){e.set(this,!0),t.set(this,!0)}function r(e,t,o){const n=e[t];return e[t]=function(){return o.apply(e,arguments),n.apply(e,arguments)},e}function i(e,t){e[t]=Event.prototype[t]}const a=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var e;return null!==(e=a.get(this))&&void 0!==e?e:null}function c(e,t){void 0!==s&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:null!=t?t:s.get})}const u={bubble:{},capture:{}},d={},f=function(){const s=function(s){const{type:d,eventPhase:f,bubbles:p}=s,h=Lc(s);if(2===f)return;const m=1===f?"capture":"bubble";let g=h;const v=[];for(;null===g&&(g=window),v.push(g),g!==window;)g=g.parentNode||null;const b=u.capture[d],y=u.bubble[d];if(r(s,"stopPropagation",o),r(s,"stopImmediatePropagation",n),c(s,l),"capture"===m){if(void 0===b)return;for(let o=v.length-1;o>=0&&!e.has(s);--o){const e=v[o],n=b.get(e);if(void 0!==n){a.set(s,e);for(const e of n){if(t.has(s))break;e(s)}}if(0===o&&!p&&void 0!==y){const o=y.get(e);if(void 0!==o)for(const e of o){if(t.has(s))break;e(s)}}}}else if("bubble"===m){if(void 0===y)return;for(let o=0;ot(e)))};return e.displayName="evtdUnifiedWindowEventHandler",e}();function h(e,t){const o=u[e];return void 0===o[t]&&(o[t]=new Map,window.addEventListener(t,f,"capture"===e)),o[t]}function m(e,t){let o=e.get(t);return void 0===o&&e.set(t,o=new Set),o}function g(e,t,o,n){const r=function(e,t,o,n){if("mousemoveoutside"===e||"clickoutside"===e){const r=Fc(e,t,o);return Object.keys(r).forEach((e=>{jc(e,document,r[e],n)})),!0}return!1}(e,t,o,n);if(r)return;const i=!0===n||"object"==typeof n&&!0===n.capture,a=i?"capture":"bubble",s=h(a,e),l=m(s,t);if(t===window){if(!function(e,t,o,n){const r=u[t][o];if(void 0!==r){const t=r.get(e);if(void 0!==t&&t.has(n))return!0}return!1}(t,i?"bubble":"capture",e,o)&&function(e,t){const o=d[e];return!(void 0===o||!o.has(t))}(e,o)){const t=d[e];t.delete(o),0===t.size&&(window.removeEventListener(e,p),d[e]=void 0)}}l.has(o)&&l.delete(o),0===l.size&&s.delete(t),0===s.size&&(window.removeEventListener(e,f,"capture"===a),u[a][e]=void 0)}return{on:function(e,t,o,n){let r;r="object"==typeof n&&!0===n.once?i=>{g(e,t,r,n),o(i)}:o;if(function(e,t,o,n){if("mousemoveoutside"===e||"clickoutside"===e){const r=Fc(e,t,o);return Object.keys(r).forEach((e=>{Bc(e,document,r[e],n)})),!0}return!1}(e,t,r,n))return;const i=m(h(!0===n||"object"==typeof n&&!0===n.capture?"capture":"bubble",e),t);if(i.has(r)||i.add(r),t===window){const t=function(e){return void 0===d[e]&&(d[e]=new Set,window.addEventListener(e,p)),d[e]}(e);t.has(r)||t.add(r)}},off:g}}(),Dc=Io(null);function Hc(e){if(e.clientX>0||e.clientY>0)Dc.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:e,top:o,width:n,height:r}=t.getBoundingClientRect();Dc.value=e>0||o>0?{x:e+n/2,y:o+r/2}:{x:0,y:0}}else Dc.value=null}}let Wc=0,Nc=!0;function Uc(){if(!Ac)return xo(Io(null));0===Wc&&Bc("click",document,Hc,!0);const e=()=>{Wc+=1};return Nc&&(Nc=$c())?(nr(e),sr((()=>{Wc-=1,0===Wc&&jc("click",document,Hc,!0)}))):e(),xo(Dc)}const Vc=Io(void 0);let qc=0;function Gc(){Vc.value=Date.now()}let Qc=!0;function Kc(e){if(!Ac)return xo(Io(!1));const t=Io(!1);let o=null;function n(){null!==o&&window.clearTimeout(o)}function r(){n(),t.value=!0,o=window.setTimeout((()=>{t.value=!1}),e)}0===qc&&Bc("click",window,Gc,!0);const i=()=>{qc+=1,Bc("click",window,r,!0)};return Qc&&(Qc=$c())?(nr(i),sr((()=>{qc-=1,0===qc&&jc("click",window,Gc,!0),jc("click",window,r,!0),n()}))):i(),xo(t)}function Yc(){const e=Io(!1);return rr((()=>{e.value=!0})),xo(e)}const Jc="undefined"!=typeof window&&(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream;const Xc="n-modal-body",Zc="n-modal",eu="n-drawer-body",tu="n-drawer",ou="n-popover-body";function nu(e,t,o="default"){const n=t[o];if(void 0===n)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return n()}function ru(e,t=!0,o=[]){return e.forEach((e=>{if(null!==e)if("object"==typeof e)if(Array.isArray(e))ru(e,t,o);else if(e.type===Ii){if(null===e.children)return;Array.isArray(e.children)&&ru(e.children,t,o)}else e.type!==$i&&o.push(e);else"string"!=typeof e&&"number"!=typeof e||o.push(Ji(String(e)))})),o}function iu(e,t,o="default"){const n=t[o];if(void 0===n)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const r=ru(n());if(1===r.length)return r[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}const au="@@coContext",su={mounted(e,{value:t,modifiers:o}){e[au]={handler:void 0},"function"==typeof t&&(e[au].handler=t,Bc("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const n=e[au];"function"==typeof t?n.handler?n.handler!==t&&(jc("clickoutside",e,n.handler,{capture:o.capture}),n.handler=t,Bc("clickoutside",e,t,{capture:o.capture})):(e[au].handler=t,Bc("clickoutside",e,t,{capture:o.capture})):n.handler&&(jc("clickoutside",e,n.handler,{capture:o.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[au];o&&jc("clickoutside",e,o,{capture:t.capture}),e[au].handler=void 0}};const lu=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){const{elementZIndex:o}=this;if(void 0!==t)return e.style.zIndex=`${t}`,void o.delete(e);const{nextZIndex:n}=this;if(o.has(e)){if(o.get(e)+1===this.nextZIndex)return}e.style.zIndex=`${n}`,o.set(e,n),this.nextZIndex=n+1,this.squashState()}unregister(e,t){const{elementZIndex:o}=this;var n,r;o.has(e)?o.delete(e):void 0===t&&(n="z-index-manager/unregister-element",r="Element not found when unregistering.",console.error(`[vdirs/${n}]: ${r}`)),this.squashState()}squashState(){const{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){const e=Array.from(this.elementZIndex.entries());e.sort(((e,t)=>e[1]-t[1])),this.nextZIndex=2e3,e.forEach((e=>{const t=e[0],o=this.nextZIndex++;`${o}`!==t.style.zIndex&&(t.style.zIndex=`${o}`)}))}},cu="@@ziContext",uu={mounted(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o;e[cu]={enabled:!!r,initialized:!1},r&&(lu.ensureZIndex(e,n),e[cu].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o,i=e[cu].enabled;r&&!i&&(lu.ensureZIndex(e,n),e[cu].initialized=!0),e[cu].enabled=!!r},unmounted(e,t){if(!e[cu].initialized)return;const{value:o={}}=t,{zIndex:n}=o;lu.unregister(e,n)}};const du="undefined"!=typeof document;function fu(){if(du)return;const e=qr("@css-render/vue3-ssr",null);return null!==e?{adapter:(t,o)=>function(e,t,o){const{styles:n,ids:r}=o;r.has(e)||null!==n&&(r.add(e),n.push(function(e,t){return``}(e,t)))}(t,o,e),context:e}:void 0}function pu(e,t){console.error(`[vueuc/${e}]: ${t}`)}function hu(e){return"string"==typeof e?document.querySelector(e):e()}const mu=qn({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup:e=>({showTeleport:Ic(Uo(e,"show")),mergedTo:Ca((()=>{const{to:t}=e;return null!=t?t:"body"}))}),render(){return this.showTeleport?this.disabled?nu("lazy-teleport",this.$slots):Sa(On,{disabled:this.disabled,to:this.mergedTo},nu("lazy-teleport",this.$slots)):null}});var gu,vu,bu=[],yu="ResizeObserver loop completed with undelivered notifications.";(vu=gu||(gu={})).BORDER_BOX="border-box",vu.CONTENT_BOX="content-box",vu.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var xu,Cu=function(e){return Object.freeze(e)},Su=function(){return function(e,t){this.inlineSize=e,this.blockSize=t,Cu(this)}}(),wu=function(){function e(e,t,o,n){return this.x=e,this.y=t,this.width=o,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Cu(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),_u=function(e){return e instanceof SVGElement&&"getBBox"in e},ku=function(e){if(_u(e)){var t=e.getBBox(),o=t.width,n=t.height;return!o&&!n}var r=e,i=r.offsetWidth,a=r.offsetHeight;return!(i||a||e.getClientRects().length)},Pu=function(e){var t;if(e instanceof Element)return!0;var o=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},Tu="undefined"!=typeof window?window:{},Eu=new WeakMap,Ou=/auto|scroll/,Mu=/^tb|vertical/,Iu=/msie|trident/i.test(Tu.navigator&&Tu.navigator.userAgent),Ru=function(e){return parseFloat(e||"0")},$u=function(e,t,o){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===o&&(o=!1),new Su((o?t:e)||0,(o?e:t)||0)},Au=Cu({devicePixelContentBoxSize:$u(),borderBoxSize:$u(),contentBoxSize:$u(),contentRect:new wu(0,0,0,0)}),Lu=function(e,t){if(void 0===t&&(t=!1),Eu.has(e)&&!t)return Eu.get(e);if(ku(e))return Eu.set(e,Au),Au;var o=getComputedStyle(e),n=_u(e)&&e.ownerSVGElement&&e.getBBox(),r=!Iu&&"border-box"===o.boxSizing,i=Mu.test(o.writingMode||""),a=!n&&Ou.test(o.overflowY||""),s=!n&&Ou.test(o.overflowX||""),l=n?0:Ru(o.paddingTop),c=n?0:Ru(o.paddingRight),u=n?0:Ru(o.paddingBottom),d=n?0:Ru(o.paddingLeft),f=n?0:Ru(o.borderTopWidth),p=n?0:Ru(o.borderRightWidth),h=n?0:Ru(o.borderBottomWidth),m=d+c,g=l+u,v=(n?0:Ru(o.borderLeftWidth))+p,b=f+h,y=s?e.offsetHeight-b-e.clientHeight:0,x=a?e.offsetWidth-v-e.clientWidth:0,C=r?m+v:0,S=r?g+b:0,w=n?n.width:Ru(o.width)-C-x,_=n?n.height:Ru(o.height)-S-y,k=w+m+x+v,P=_+g+y+b,T=Cu({devicePixelContentBoxSize:$u(Math.round(w*devicePixelRatio),Math.round(_*devicePixelRatio),i),borderBoxSize:$u(k,P,i),contentBoxSize:$u(w,_,i),contentRect:new wu(d,l,w,_)});return Eu.set(e,T),T},zu=function(e,t,o){var n=Lu(e,o),r=n.borderBoxSize,i=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case gu.DEVICE_PIXEL_CONTENT_BOX:return a;case gu.BORDER_BOX:return r;default:return i}},Fu=function(){return function(e){var t=Lu(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Cu([t.borderBoxSize]),this.contentBoxSize=Cu([t.contentBoxSize]),this.devicePixelContentBoxSize=Cu([t.devicePixelContentBoxSize])}}(),Bu=function(e){if(ku(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},ju=function(){var e=1/0,t=[];bu.forEach((function(o){if(0!==o.activeTargets.length){var n=[];o.activeTargets.forEach((function(t){var o=new Fu(t.target),r=Bu(t.target);n.push(o),t.lastReportedSize=zu(t.target,t.observedBox),re?t.activeTargets.push(o):t.skippedTargets.push(o))}))}))},Hu=function(){var e,t=0;for(Du(t);bu.some((function(e){return e.activeTargets.length>0}));)t=ju(),Du(t);return bu.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:yu}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=yu),window.dispatchEvent(e)),t>0},Wu=[],Nu=function(e){if(!xu){var t=0,o=document.createTextNode("");new MutationObserver((function(){return Wu.splice(0).forEach((function(e){return e()}))})).observe(o,{characterData:!0}),xu=function(){o.textContent="".concat(t?t--:t++)}}Wu.push(e),xu()},Uu=0,Vu={attributes:!0,characterData:!0,childList:!0,subtree:!0},qu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Gu=function(e){return void 0===e&&(e=0),Date.now()+e},Qu=!1,Ku=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!Qu){Qu=!0;var o,n=Gu(e);o=function(){var o=!1;try{o=Hu()}finally{if(Qu=!1,e=n-Gu(),!Uu)return;o?t.run(1e3):e>0?t.run(e):t.start()}},Nu((function(){requestAnimationFrame(o)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Vu)};document.body?t():Tu.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),qu.forEach((function(t){return Tu.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),qu.forEach((function(t){return Tu.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Yu=function(e){!Uu&&e>0&&Ku.start(),!(Uu+=e)&&Ku.stop()},Ju=function(){function e(e,t){this.target=e,this.observedBox=t||gu.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=zu(this.target,this.observedBox,!0);return e=this.target,_u(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Xu=function(){return function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}}(),Zu=new WeakMap,ed=function(e,t){for(var o=0;o=0&&(r&&bu.splice(bu.indexOf(o),1),o.observationTargets.splice(n,1),Yu(-1))},e.disconnect=function(e){var t=this,o=Zu.get(e);o.observationTargets.slice().forEach((function(o){return t.unobserve(e,o.target)})),o.activeTargets.splice(0,o.activeTargets.length)},e}(),od=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");td.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Pu(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");td.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Pu(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");td.unobserve(this,e)},e.prototype.disconnect=function(){td.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const nd=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new("undefined"!=typeof window&&window.ResizeObserver||od)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const t of e){const e=this.elHandlersMap.get(t.target);void 0!==e&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},rd=qn({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const o=la().proxy;function n(t){const{onResize:o}=e;void 0!==o&&o(t)}rr((()=>{const e=o.$el;void 0!==e?e.nextElementSibling===e.nextSibling||3!==e.nodeType||""===e.nodeValue?null!==e.nextElementSibling&&(nd.registerHandler(e.nextElementSibling,n),t=!0):pu("resize-observer","$el can not be observed (it may be a text node)."):pu("resize-observer","$el does not exist.")})),sr((()=>{t&&nd.unregisterHandler(o.$el.nextElementSibling)}))},render(){return Cr(this.$slots,"default")}});function id(e){return e instanceof HTMLElement}function ad(e){for(let t=0;t=0;t--){const o=e.childNodes[t];if(id(o)&&(ld(o)||sd(o)))return!0}return!1}function ld(e){if(!function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}(e))return!1;try{e.focus({preventScroll:!0})}catch(hD){}return document.activeElement===e}let cd=[];const ud=qn({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=kl(),o=Io(null),n=Io(null);let r=!1,i=!1;const a="undefined"==typeof document?null:document.activeElement;function s(){return cd[cd.length-1]===t}function l(t){var o;"Escape"===t.code&&s()&&(null===(o=e.onEsc)||void 0===o||o.call(e,t))}function c(e){if(!i&&s()){const t=u();if(null===t)return;if(t.contains(zs(e)))return;f("first")}}function u(){const e=o.value;if(null===e)return null;let t=e;for(;!(t=t.nextSibling,null===t||t instanceof Element&&"DIV"===t.tagName););return t}function d(){var o;if(e.disabled)return;if(document.removeEventListener("focus",c,!0),cd=cd.filter((e=>e!==t)),s())return;const{finalFocusTo:n}=e;void 0!==n?null===(o=hu(n))||void 0===o||o.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function f(t){if(s()&&e.active){const e=o.value,r=n.value;if(null!==e&&null!==r){const o=u();if(null==o||o===r)return i=!0,e.focus({preventScroll:!0}),void(i=!1);i=!0;const n="first"===t?ad(o):sd(o);i=!1,n||(i=!0,e.focus({preventScroll:!0}),i=!1)}}}return rr((()=>{vi((()=>e.active),(o=>{o?(!function(){var o;if(e.disabled)return;if(cd.push(t),e.autoFocus){const{initialFocusTo:t}=e;void 0===t?f("first"):null===(o=hu(t))||void 0===o||o.focus({preventScroll:!0})}r=!0,document.addEventListener("focus",c,!0)}(),Bc("keydown",document,l)):(jc("keydown",document,l),r&&d())}),{immediate:!0})})),sr((()=>{jc("keydown",document,l),r&&d()})),{focusableStartRef:o,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:function(e){if(i)return;const t=u();null!==t&&(null!==e.relatedTarget&&t.contains(e.relatedTarget)?f("last"):f("first"))},handleEndFocus:function(e){i||(null!==e.relatedTarget&&e.relatedTarget===o.value?f("last"):f("first"))}}},render(){const{default:e}=this.$slots;if(void 0===e)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return Sa(Ii,null,[Sa("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),Sa("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let dd=0,fd="",pd="",hd="",md="";const gd=Io("0px");function vd(e){if("undefined"==typeof document)return;const t=document.documentElement;let o,n=!1;const r=()=>{t.style.marginRight=fd,t.style.overflow=pd,t.style.overflowX=hd,t.style.overflowY=md,gd.value="0px"};rr((()=>{o=vi(e,(e=>{if(e){if(!dd){const e=window.innerWidth-t.offsetWidth;e>0&&(fd=t.style.marginRight,t.style.marginRight=`${e}px`,gd.value=`${e}px`),pd=t.style.overflow,hd=t.style.overflowX,md=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,dd++}else dd--,dd||r(),n=!1}),{immediate:!0})})),sr((()=>{null==o||o(),n&&(dd--,dd||r(),n=!1)}))}const bd=Io(!1);function yd(){bd.value=!0}function xd(){bd.value=!1}let Cd=0;function Sd(){return Tc&&(nr((()=>{Cd||(window.addEventListener("compositionstart",yd),window.addEventListener("compositionend",xd)),Cd++})),sr((()=>{Cd<=1?(window.removeEventListener("compositionstart",yd),window.removeEventListener("compositionend",xd),Cd=0):Cd--}))),bd}const wd="n-form-item";function _d(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:n}={}){const r=qr(wd,null);Vr(wd,null);const i=Ca(o?()=>o(r):()=>{const{size:o}=e;if(o)return o;if(r){const{mergedSize:e}=r;if(void 0!==e.value)return e.value}return t}),a=Ca(n?()=>n(r):()=>{const{disabled:t}=e;return void 0!==t?t:!!r&&r.disabled.value}),s=Ca((()=>{const{status:t}=e;return t||(null==r?void 0:r.mergedValidationStatus.value)}));return sr((()=>{r&&r.restoreValidation()})),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:s,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}var kd="object"==typeof global&&global&&global.Object===Object&&global,Pd="object"==typeof self&&self&&self.Object===Object&&self,Td=kd||Pd||Function("return this")(),Ed=Td.Symbol,Od=Object.prototype,Md=Od.hasOwnProperty,Id=Od.toString,Rd=Ed?Ed.toStringTag:void 0;var $d=Object.prototype.toString;var Ad=Ed?Ed.toStringTag:void 0;function Ld(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ad&&Ad in Object(e)?function(e){var t=Md.call(e,Rd),o=e[Rd];try{e[Rd]=void 0;var n=!0}catch(hD){}var r=Id.call(e);return n&&(t?e[Rd]=o:delete e[Rd]),r}(e):function(e){return $d.call(e)}(e)}function zd(e){return null!=e&&"object"==typeof e}function Fd(e){return"symbol"==typeof e||zd(e)&&"[object Symbol]"==Ld(e)}function Bd(e,t){for(var o=-1,n=null==e?0:e.length,r=Array(n);++o0){if(++ff>=800)return arguments[0]}else ff=0;return df.apply(void 0,arguments)});function vf(e){return e!=e}function bf(e,t){return!!(null==e?0:e.length)&&function(e,t,o){return t==t?function(e,t,o){for(var n=o-1,r=e.length;++n-1}var yf=/^(?:0|[1-9]\d*)$/;function xf(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&yf.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function Mf(e){return null!=e&&Of(e.length)&&!Vd(e)}function If(e){return Ef((function(t,o){var n=-1,r=o.length,i=r>1?o[r-1]:void 0,a=r>2?o[2]:void 0;for(i=e.length>3&&"function"==typeof i?(r--,i):void 0,a&&function(e,t,o){if(!Nd(o))return!1;var n=typeof t;return!!("number"==n?Mf(o)&&xf(t,o.length):"string"==n&&t in o)&&Sf(o[t],e)}(o[0],o[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++n-1},gp.prototype.set=function(e,t){var o=this.__data__,n=hp(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this};var vp=rf(Td,"Map");function bp(e,t){var o,n,r=e.__data__;return("string"==(n=typeof(o=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==o:null===o)?r["string"==typeof t?"string":"hash"]:r.map}function yp(e){var t=-1,o=null==e?0:e.length;for(this.clear();++tr?0:r+t),(o=o>r?r:o)<0&&(o+=r),r=t>o?0:o-t>>>0,t>>>=0;for(var i=Array(r);++n=r?t:Hp(t,o,n)).join(""):e.slice(1);return a[nh]()+s});var ih,ah=(ih={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},function(e){return null==ih?void 0:ih[e]}),sh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lh=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var ch=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var uh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var dh="\\ud800-\\udfff",fh="\\u2700-\\u27bf",ph="a-z\\xdf-\\xf6\\xf8-\\xff",hh="A-Z\\xc0-\\xd6\\xd8-\\xde",mh="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",gh="["+mh+"]",vh="\\d+",bh="["+fh+"]",yh="["+ph+"]",xh="[^"+dh+mh+vh+fh+ph+hh+"]",Ch="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",wh="["+hh+"]",_h="(?:"+yh+"|"+xh+")",kh="(?:"+wh+"|"+xh+")",Ph="(?:['’](?:d|ll|m|re|s|t|ve))?",Th="(?:['’](?:D|LL|M|RE|S|T|VE))?",Eh="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Oh="[\\ufe0e\\ufe0f]?",Mh=Oh+Eh+("(?:\\u200d(?:"+["[^"+dh+"]",Ch,Sh].join("|")+")"+Oh+Eh+")*"),Ih="(?:"+[bh,Ch,Sh].join("|")+")"+Mh,Rh=RegExp([wh+"?"+yh+"+"+Ph+"(?="+[gh,wh,"$"].join("|")+")",kh+"+"+Th+"(?="+[gh,wh+_h,"$"].join("|")+")",wh+"?"+_h+"+"+Ph,wh+"+"+Th,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vh,Ih].join("|"),"g");function $h(e,t,o){return e=_p(e),void 0===t?function(e){return uh.test(e)}(e)?function(e){return e.match(Rh)||[]}(e):function(e){return e.match(ch)||[]}(e):e.match(t)||[]}var Ah=RegExp("['’]","g");function Lh(e){var t=this.__data__=new gp(e);this.size=t.size}Lh.prototype.clear=function(){this.__data__=new gp,this.size=0},Lh.prototype.delete=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o},Lh.prototype.get=function(e){return this.__data__.get(e)},Lh.prototype.has=function(e){return this.__data__.has(e)},Lh.prototype.set=function(e,t){var o=this.__data__;if(o instanceof gp){var n=o.__data__;if(!vp||n.length<199)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new yp(n)}return o.set(e,t),this.size=o.size,this};var zh="object"==typeof exports&&exports&&!exports.nodeType&&exports,Fh=zh&&"object"==typeof module&&module&&!module.nodeType&&module,Bh=Fh&&Fh.exports===zh?Td.Buffer:void 0,jh=Bh?Bh.allocUnsafe:void 0;function Dh(e,t){if(t)return e.slice();var o=e.length,n=jh?jh(o):new e.constructor(o);return e.copy(n),n}function Hh(){return[]}var Wh=Object.prototype.propertyIsEnumerable,Nh=Object.getOwnPropertySymbols,Uh=Nh?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var o=-1,n=null==e?0:e.length,r=0,i=[];++os))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=2&o?new Tm:void 0;for(i.set(e,t),i.set(t,e);++d=120&&u.length>=120?new Tm(a&&u):void 0}u=e[0];var d=-1,f=s[0];e:for(;++d1),t})),kf(e,Qh(e),o),n&&(o=Pm(o,7,hg));for(var r=t.length;r--;)pg(o,t[r]);return o})),gg=Jh&&1/Rm(new Jh([,-0]))[1]==1/0?function(e){return new Jh(e)}:function(){};function vg(e,t,o){var n=-1,r=bf,i=e.length,a=!0,s=[],l=s;if(o)a=!1,r=og;else if(i>=200){var c=t?null:gg(e);if(c)return Rm(c);a=!1,r=Om,l=new Tm}else l=t?[]:s;e:for(;++n{const e=null==i?void 0:i.value;o.mount({id:void 0===e?t:e+t,head:!0,props:{bPrefix:e?`.${e}-`:void 0},anchorMetaName:Pg,ssr:a,parent:null==s?void 0:s.styleMountTarget}),(null==s?void 0:s.preflightStyleDisabled)||_g.mount({id:"n-global",head:!0,anchorMetaName:Pg,ssr:a,parent:null==s?void 0:s.styleMountTarget})};a?e():nr(e)}return Ca((()=>{var t;const{theme:{common:o,self:i,peers:a={}}={},themeOverrides:l={},builtinThemeOverrides:c={}}=r,{common:u,peers:d}=l,{common:f,[e]:{common:p,self:h,peers:m={}}={}}=(null==s?void 0:s.mergedThemeRef.value)||{},{common:g,[e]:v={}}=(null==s?void 0:s.mergedThemeOverridesRef.value)||{},{common:b,peers:y={}}=v,x=fg({},o||p||f||n.common,g,b,u);return{common:x,self:fg(null===(t=i||h||n.self)||void 0===t?void 0:t(x),c,v,l),peers:fg({},n.peers,m,a),peerOverrides:fg({},c.peers,y,d)}}))}Tg.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Eg="n";function Og(e={},t={defaultBordered:!0}){const o=qr(kg,null);return{inlineThemeDisabled:null==o?void 0:o.inlineThemeDisabled,mergedRtlRef:null==o?void 0:o.mergedRtlRef,mergedComponentPropsRef:null==o?void 0:o.mergedComponentPropsRef,mergedBreakpointsRef:null==o?void 0:o.mergedBreakpointsRef,mergedBorderedRef:Ca((()=>{var n,r;const{bordered:i}=e;return void 0!==i?i:null===(r=null!==(n=null==o?void 0:o.mergedBorderedRef.value)&&void 0!==n?n:t.defaultBordered)||void 0===r||r})),mergedClsPrefixRef:o?o.mergedClsPrefixRef:Ro(Eg),namespaceRef:Ca((()=>null==o?void 0:o.mergedNamespaceRef.value))}}function Mg(){const e=qr(kg,null);return e?e.mergedClsPrefixRef:Ro(Eg)}const Ig={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:"缩放到原始尺寸"}},Rg={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}};function $g(e){return(t={})=>{const o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}function Ag(e){return(t,o)=>{let n;if("formatting"===((null==o?void 0:o.context)?String(o.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,r=(null==o?void 0:o.width)?String(o.width):t;n=e.formattingValues[r]||e.formattingValues[t]}else{const t=e.defaultWidth,r=(null==o?void 0:o.width)?String(o.width):e.defaultWidth;n=e.values[r]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function Lg(e){return(t,o={})=>{const n=o.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;const a=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let o=0;oe.test(a))):function(e,t){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o;return}(s,(e=>e.test(a)));let c;c=e.valueCallback?e.valueCallback(l):l,c=o.valueCallback?o.valueCallback(c):c;return{value:c,rest:t.slice(a.length)}}}function zg(e){return(t,o={})=>{const n=t.match(e.matchPattern);if(!n)return null;const r=n[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=o.valueCallback?o.valueCallback(a):a;return{value:a,rest:t.slice(r.length)}}}function Fg(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}let Bg={};function jg(){return Bg}function Dg(e,t){var o,n,r,i,a,s,l,c;const u=jg(),d=null!=(c=null!=(l=null!=(i=null!=(r=null==t?void 0:t.weekStartsOn)?r:null==(n=null==(o=null==t?void 0:t.locale)?void 0:o.options)?void 0:n.weekStartsOn)?i:u.weekStartsOn)?l:null==(s=null==(a=u.locale)?void 0:a.options)?void 0:s.weekStartsOn)?c:0,f=Fg(e),p=f.getDay(),h=(p{const o=Number(e),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},era:Ag({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ag({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ag({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ag({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ag({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},Vg={ordinalNumber:zg({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:Lg({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Lg({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Lg({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Lg({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Lg({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},qg={code:"en-US",formatDistance:(e,t,o)=>{let n;const r=Wg[e];return n="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),(null==o?void 0:o.addSuffix)?o.comparison&&o.comparison>0?"in "+n:n+" ago":n},formatLong:{date:$g({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:$g({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:$g({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:(e,t,o,n)=>Ng[e],localize:Ug,match:Vg,options:{weekStartsOn:0,firstWeekContainsDate:1}},Gg={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}} 年"}},Qg={date:$g({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:$g({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:$g({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function Kg(e,t,o){const n="eeee p";return Hg(e,t,o)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}const Yg={lastWeek:Kg,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Kg,other:"PP p"},Jg={code:"zh-CN",formatDistance:(e,t,o)=>{let n;const r=Gg[e];return n="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",String(t)),(null==o?void 0:o.addSuffix)?o.comparison&&o.comparison>0?n+"内":n+"前":n},formatLong:Qg,formatRelative:(e,t,o,n)=>{const r=Yg[e];return"function"==typeof r?r(t,o,n):r},localize:{ordinalNumber:(e,t)=>{const o=Number(e);switch(null==t?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()}},era:Ag({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:Ag({values:{narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ag({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:Ag({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:Ag({values:{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:"夜间"}},defaultWidth:"wide",formattingValues:{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:"夜间"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:zg({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:Lg({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:Lg({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Lg({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:Lg({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:Lg({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Xg={name:"zh-CN",locale:Jg},Zg={name:"en-US",locale:qg};function ev(e,t,o){if(!t)return;const n=fu(),r=qr(kg,null),i=()=>{const i=o.value;t.mount({id:void 0===i?e:i+e,head:!0,anchorMetaName:Pg,props:{bPrefix:i?`.${i}-`:void 0},ssr:n,parent:null==r?void 0:r.styleMountTarget}),(null==r?void 0:r.preflightStyleDisabled)||_g.mount({id:"n-global",head:!0,anchorMetaName:Pg,ssr:n,parent:null==r?void 0:r.styleMountTarget})};n?i():nr(i)}function tv(e,t,o,n){o||Al("useThemeClass","cssVarsRef is not passed");const r=qr(kg,null),i=null==r?void 0:r.mergedThemeHashRef,a=null==r?void 0:r.styleMountTarget,s=Io(""),l=fu();let c;const u=`__${e}`;return gi((()=>{(()=>{let e=u;const r=t?t.value:void 0,d=null==i?void 0:i.value;d&&(e+=`-${d}`),r&&(e+=`-${r}`);const{themeOverrides:f,builtinThemeOverrides:p}=n;f&&(e+=`-${ic(JSON.stringify(f))}`),p&&(e+=`-${ic(JSON.stringify(p))}`),s.value=e,c=()=>{const t=o.value;let n="";for(const e in t)n+=`${e}: ${t[e]};`;gc(`.${e}`,n).mount({id:e,ssr:l,parent:a}),c=void 0}})()})),{themeClass:s,onRender:()=>{null==c||c()}}}function ov(e,t,o){if(!t)return;const n=fu(),r=Ca((()=>{const{value:o}=t;if(!o)return;const n=o[e];return n||void 0})),i=qr(kg,null),a=()=>{gi((()=>{const{value:t}=o,a=`${t}${e}Rtl`;if(function(e,t){if(void 0===e)return!1;if(t){const{context:{ids:o}}=t;return o.has(e)}return null!==Xl(e)}(a,n))return;const{value:s}=r;s&&s.style.mount({id:a,head:!0,anchorMetaName:Pg,props:{bPrefix:t?`.${t}-`:void 0},ssr:n,parent:null==i?void 0:i.styleMountTarget})}))};return n?a():nr(a),r}function nv(e,t){return qn({name:rh(e),setup(){var o;const n=null===(o=qr(kg,null))||void 0===o?void 0:o.mergedIconsRef;return()=>{var o;const r=null===(o=null==n?void 0:n.value)||void 0===o?void 0:o[e];return r?r():t}}})}const rv=nv("close",Sa("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},Sa("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Sa("g",{fill:"currentColor","fill-rule":"nonzero"},Sa("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),iv=nv("error",Sa("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Sa("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},Sa("g",{"fill-rule":"nonzero"},Sa("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"}))))),av=nv("info",Sa("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Sa("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},Sa("g",{"fill-rule":"nonzero"},Sa("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"}))))),sv=nv("success",Sa("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Sa("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},Sa("g",{"fill-rule":"nonzero"},Sa("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"}))))),lv=nv("warning",Sa("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Sa("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},Sa("g",{"fill-rule":"nonzero"},Sa("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"}))))),cv=qn({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=Yc();return()=>Sa(La,{name:"icon-switch-transition",appear:o.value},t)}}),uv=qn({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function o(t){e.width?t.style.maxWidth=`${t.offsetWidth}px`:t.style.maxHeight=`${t.offsetHeight}px`,t.offsetWidth}function n(t){e.width?t.style.maxWidth="0":t.style.maxHeight="0",t.offsetWidth;const{onLeave:o}=e;o&&o()}function r(t){e.width?t.style.maxWidth="":t.style.maxHeight="";const{onAfterLeave:o}=e;o&&o()}function i(t){if(t.style.transition="none",e.width){const e=t.offsetWidth;t.style.maxWidth="0",t.offsetWidth,t.style.transition="",t.style.maxWidth=`${e}px`}else if(e.reverse)t.style.maxHeight=`${t.offsetHeight}px`,t.offsetHeight,t.style.transition="",t.style.maxHeight="0";else{const e=t.offsetHeight;t.style.maxHeight="0",t.offsetWidth,t.style.transition="",t.style.maxHeight=`${e}px`}t.offsetWidth}function a(t){var o;e.width?t.style.maxWidth="":e.reverse||(t.style.maxHeight=""),null===(o=e.onAfterEnter)||void 0===o||o.call(e)}return()=>{const{group:s,width:l,appear:c,mode:u}=e,d=s?ws:La,f={name:l?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:a,onBeforeLeave:o,onLeave:n,onAfterLeave:r};return s||(f.mode=u),Sa(d,f,t)}}}),dv=bc("base-icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[gc("svg","\n height: 1em;\n width: 1em;\n ")]),fv=qn({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){ev("-base-icon",dv,Uo(e,"clsPrefix"))},render(){return Sa("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),pv=bc("base-close","\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n background-color: transparent;\n color: var(--n-close-icon-color);\n border-radius: var(--n-close-border-radius);\n height: var(--n-close-size);\n width: var(--n-close-size);\n font-size: var(--n-close-icon-size);\n outline: none;\n border: none;\n position: relative;\n padding: 0;\n",[xc("absolute","\n height: var(--n-close-icon-size);\n width: var(--n-close-icon-size);\n "),gc("&::before",'\n content: "";\n position: absolute;\n width: var(--n-close-size);\n height: var(--n-close-size);\n left: 50%;\n top: 50%;\n transform: translateY(-50%) translateX(-50%);\n transition: inherit;\n border-radius: inherit;\n '),Cc("disabled",[gc("&:hover","\n color: var(--n-close-icon-color-hover);\n "),gc("&:hover::before","\n background-color: var(--n-close-color-hover);\n "),gc("&:focus::before","\n background-color: var(--n-close-color-hover);\n "),gc("&:active","\n color: var(--n-close-icon-color-pressed);\n "),gc("&:active::before","\n background-color: var(--n-close-color-pressed);\n ")]),xc("disabled","\n cursor: not-allowed;\n color: var(--n-close-icon-color-disabled);\n background-color: transparent;\n "),xc("round",[gc("&::before","\n border-radius: 50%;\n ")])]),hv=qn({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup:e=>(ev("-base-close",pv,Uo(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:n,round:r,isButtonTag:i}=e;return Sa(i?"button":"div",{type:i?"button":void 0,tabindex:o||!e.focusable?-1:0,"aria-disabled":o,"aria-label":"close",role:i?void 0:"button",disabled:o,class:[`${t}-base-close`,n&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,r&&`${t}-base-close--round`],onMousedown:t=>{e.focusable||t.preventDefault()},onClick:e.onClick},Sa(fv,{clsPrefix:t},{default:()=>Sa(rv,null)}))})}),{cubicBezierEaseInOut:mv}=xg;function gv({originalTransform:e="",left:t=0,top:o=0,transition:n=`all .3s ${mv} !important`}={}){return[gc("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:o,opacity:0}),gc("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),gc("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:n})]}const vv=gc([gc("@keyframes rotator","\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }"),bc("base-loading","\n position: relative;\n line-height: 0;\n width: 1em;\n height: 1em;\n ",[yc("transition-wrapper","\n position: absolute;\n width: 100%;\n height: 100%;\n ",[gv()]),yc("placeholder","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[gv({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),yc("container","\n animation: rotator 3s linear infinite both;\n ",[yc("icon","\n height: 1em;\n width: 1em;\n ")])])]),bv="1.6s",yv={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},xv=qn({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},yv),setup(e){ev("-base-loading",vv,Uo(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:n,scale:r}=this,i=t/r;return Sa("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},Sa(cv,null,{default:()=>this.show?Sa("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},Sa("div",{class:`${e}-base-loading__container`},Sa("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},Sa("g",null,Sa("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:bv,fill:"freeze",repeatCount:"indefinite"}),Sa("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:i,cy:i,r:t-o/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},Sa("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:bv,fill:"freeze",repeatCount:"indefinite"}),Sa("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:bv,fill:"freeze",repeatCount:"indefinite"})))))):Sa("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),Cv="#000",Sv="#fff",wv="#fff",_v="rgb(72, 72, 78)",kv="rgb(24, 24, 28)",Pv="rgb(44, 44, 50)",Tv="rgb(16, 16, 20)",Ev="0.9",Ov="0.82",Mv="0.52",Iv="0.38",Rv="0.28",$v="0.52",Av="0.38",Lv="0.06",zv="0.09",Fv="0.06",Bv="0.05",jv="0.05",Dv="0.18",Hv="0.2",Wv="0.12",Nv="0.24",Uv="0.09",Vv="0.1",qv="0.06",Gv="0.04",Qv="0.2",Kv="0.3",Yv="0.12",Jv="0.2",Xv="#7fe7c4",Zv="#63e2b7",eb="#5acea7",tb="rgb(42, 148, 125)",ob="#8acbec",nb="#70c0e8",rb="#66afd3",ib="rgb(56, 137, 197)",ab="#e98b8b",sb="#e88080",lb="#e57272",cb="rgb(208, 58, 82)",ub="#f5d599",db="#f2c97d",fb="#e6c260",pb="rgb(240, 138, 0)",hb="#7fe7c4",mb="#63e2b7",gb="#5acea7",vb="rgb(42, 148, 125)",bb=sl(Cv),yb=sl(Sv),xb=`rgba(${yb.slice(0,3).join(", ")}, `;function Cb(e){return`${xb+String(e)})`}const Sb=Object.assign(Object.assign({name:"common"},xg),{baseColor:Cv,primaryColor:Zv,primaryColorHover:Xv,primaryColorPressed:eb,primaryColorSuppl:tb,infoColor:nb,infoColorHover:ob,infoColorPressed:rb,infoColorSuppl:ib,successColor:mb,successColorHover:hb,successColorPressed:gb,successColorSuppl:vb,warningColor:db,warningColorHover:ub,warningColorPressed:fb,warningColorSuppl:pb,errorColor:sb,errorColorHover:ab,errorColorPressed:lb,errorColorSuppl:cb,textColorBase:wv,textColor1:Cb(Ev),textColor2:Cb(Ov),textColor3:Cb(Mv),textColorDisabled:Cb(Iv),placeholderColor:Cb(Iv),placeholderColorDisabled:Cb(Rv),iconColor:Cb(Iv),iconColorDisabled:Cb(Rv),iconColorHover:Cb(1.25*Number(Iv)),iconColorPressed:Cb(.8*Number(Iv)),opacity1:Ev,opacity2:Ov,opacity3:Mv,opacity4:Iv,opacity5:Rv,dividerColor:Cb(Uv),borderColor:Cb(Nv),closeIconColorHover:Cb(Number($v)),closeIconColor:Cb(Number($v)),closeIconColorPressed:Cb(Number($v)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Cb(Iv),clearColorHover:fl(Cb(Iv),{alpha:1.25}),clearColorPressed:fl(Cb(Iv),{alpha:.8}),scrollbarColor:Cb(Qv),scrollbarColorHover:Cb(Kv),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Cb(Wv),railColor:Cb(Hv),popoverColor:_v,tableColor:kv,cardColor:kv,modalColor:Pv,bodyColor:Tv,tagColor:function(e){const t=Array.from(yb);return t[3]=Number(e),ul(bb,t)}(Jv),avatarColor:Cb(Dv),invertedColor:Cv,inputColor:Cb(Vv),codeColor:Cb(Yv),tabColor:Cb(Gv),actionColor:Cb(qv),tableHeaderColor:Cb(qv),hoverColor:Cb(zv),tableColorHover:Cb(Fv),tableColorStriped:Cb(Bv),pressedColor:Cb(jv),opacityDisabled:Av,inputColorDisabled:Cb(Lv),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)"}),wb="#FFF",_b="#000",kb="#000",Pb="#fff",Tb="#fff",Eb="#fff",Ob="#fff",Mb="0.82",Ib="0.72",Rb="0.38",$b="0.24",Ab="0.18",Lb="0.6",zb="0.5",Fb="0.2",Bb=".08",jb="0",Db="0.25",Hb="0.4",Wb="#36ad6a",Nb="#18a058",Ub="#0c7a43",Vb="#36ad6a",qb="#4098fc",Gb="#2080f0",Qb="#1060c9",Kb="#4098fc",Yb="#de576d",Jb="#d03050",Xb="#ab1f3f",Zb="#de576d",ey="#fcb040",ty="#f0a020",oy="#c97c10",ny="#fcb040",ry="#36ad6a",iy="#18a058",ay="#0c7a43",sy="#36ad6a",ly=sl(wb),cy=sl(_b),uy=`rgba(${cy.slice(0,3).join(", ")}, `;function dy(e){return`${uy+String(e)})`}function fy(e){const t=Array.from(cy);return t[3]=Number(e),ul(ly,t)}const py=Object.assign(Object.assign({name:"common"},xg),{baseColor:wb,primaryColor:Nb,primaryColorHover:Wb,primaryColorPressed:Ub,primaryColorSuppl:Vb,infoColor:Gb,infoColorHover:qb,infoColorPressed:Qb,infoColorSuppl:Kb,successColor:iy,successColorHover:ry,successColorPressed:ay,successColorSuppl:sy,warningColor:ty,warningColorHover:ey,warningColorPressed:oy,warningColorSuppl:ny,errorColor:Jb,errorColorHover:Yb,errorColorPressed:Xb,errorColorSuppl:Zb,textColorBase:kb,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:fy($b),placeholderColor:fy($b),placeholderColorDisabled:fy(Ab),iconColor:fy($b),iconColorHover:fl(fy($b),{lightness:.75}),iconColorPressed:fl(fy($b),{lightness:.9}),iconColorDisabled:fy(Ab),opacity1:Mb,opacity2:Ib,opacity3:Rb,opacity4:$b,opacity5:Ab,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:fy(Number(Lb)),closeIconColorHover:fy(Number(Lb)),closeIconColorPressed:fy(Number(Lb)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:fy($b),clearColorHover:fl(fy($b),{lightness:.75}),clearColorPressed:fl(fy($b),{lightness:.9}),scrollbarColor:dy(Db),scrollbarColorHover:dy(Hb),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:fy(Bb),railColor:"rgb(219, 219, 223)",popoverColor:Pb,tableColor:Tb,cardColor:Tb,modalColor:Eb,bodyColor:Ob,tagColor:"#eee",avatarColor:fy(Fb),invertedColor:"rgb(0, 20, 40)",inputColor:fy(jb),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:zb,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),hy={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function my(e){const{textColorDisabled:t,iconColor:o,textColor2:n,fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:s,fontSizeHuge:l}=e;return Object.assign(Object.assign({},hy),{fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:s,fontSizeHuge:l,textColor:t,iconColor:o,extraTextColor:n})}const gy={name:"Empty",common:py,self:my},vy={name:"Empty",common:Sb,self:my},by={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function yy(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:n,scrollbarWidth:r,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},by),{height:n,width:r,borderRadius:i,color:t,colorHover:o})}const xy={name:"Scrollbar",common:py,self:yy},Cy={name:"Scrollbar",common:Sb,self:yy},{cubicBezierEaseInOut:Sy}=xg;function wy({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:n=Sy,leaveCubicBezier:r=Sy}={}){return[gc(`&.${e}-transition-enter-active`,{transition:`all ${t} ${n}!important`}),gc(`&.${e}-transition-leave-active`,{transition:`all ${o} ${r}!important`}),gc(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),gc(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const _y=bc("scrollbar","\n overflow: hidden;\n position: relative;\n z-index: auto;\n height: 100%;\n width: 100%;\n",[gc(">",[bc("scrollbar-container","\n width: 100%;\n overflow: scroll;\n height: 100%;\n min-height: inherit;\n max-height: inherit;\n scrollbar-width: none;\n ",[gc("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb","\n width: 0;\n height: 0;\n display: none;\n "),gc(">",[bc("scrollbar-content","\n box-sizing: border-box;\n min-width: 100%;\n ")])])]),gc(">, +",[bc("scrollbar-rail","\n position: absolute;\n pointer-events: none;\n user-select: none;\n background: var(--n-scrollbar-rail-color);\n -webkit-user-select: none;\n ",[xc("horizontal","\n height: var(--n-scrollbar-height);\n ",[gc(">",[yc("scrollbar","\n height: var(--n-scrollbar-height);\n border-radius: var(--n-scrollbar-border-radius);\n right: 0;\n ")])]),xc("horizontal--top","\n inset: var(--n-scrollbar-rail-inset-horizontal-top); \n "),xc("horizontal--bottom","\n inset: var(--n-scrollbar-rail-inset-horizontal-bottom); \n "),xc("vertical","\n width: var(--n-scrollbar-width);\n ",[gc(">",[yc("scrollbar","\n width: var(--n-scrollbar-width);\n border-radius: var(--n-scrollbar-border-radius);\n bottom: 0;\n ")])]),xc("vertical--left","\n inset: var(--n-scrollbar-rail-inset-vertical-left); \n "),xc("vertical--right","\n inset: var(--n-scrollbar-rail-inset-vertical-right); \n "),xc("disabled",[gc(">",[yc("scrollbar","pointer-events: none;")])]),gc(">",[yc("scrollbar","\n z-index: 1;\n position: absolute;\n cursor: pointer;\n pointer-events: all;\n background-color: var(--n-scrollbar-color);\n transition: background-color .2s var(--n-scrollbar-bezier);\n ",[wy(),gc("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),ky=qn({name:"Scrollbar",props:Object.assign(Object.assign({},Tg.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=Og(e),r=ov("Scrollbar",n,t),i=Io(null),a=Io(null),s=Io(null),l=Io(null),c=Io(null),u=Io(null),d=Io(null),f=Io(null),p=Io(null),h=Io(null),m=Io(null),g=Io(0),v=Io(0),b=Io(!1),y=Io(!1);let x,C,S=!1,w=!1,_=0,k=0,P=0,T=0;const E=Jc,O=Tg("Scrollbar","-scrollbar",_y,xy,e,t),M=Ca((()=>{const{value:e}=f,{value:t}=u,{value:o}=h;return null===e||null===t||null===o?0:Math.min(e,o*e/t+1.5*Fs(O.value.self.width))})),I=Ca((()=>`${M.value}px`)),R=Ca((()=>{const{value:e}=p,{value:t}=d,{value:o}=m;return null===e||null===t||null===o?0:o*e/t+1.5*Fs(O.value.self.height)})),$=Ca((()=>`${R.value}px`)),A=Ca((()=>{const{value:e}=f,{value:t}=g,{value:o}=u,{value:n}=h;if(null===e||null===o||null===n)return 0;{const r=o-e;return r?t/r*(n-M.value):0}})),L=Ca((()=>`${A.value}px`)),z=Ca((()=>{const{value:e}=p,{value:t}=v,{value:o}=d,{value:n}=m;if(null===e||null===o||null===n)return 0;{const r=o-e;return r?t/r*(n-R.value):0}})),F=Ca((()=>`${z.value}px`)),B=Ca((()=>{const{value:e}=f,{value:t}=u;return null!==e&&null!==t&&t>e})),j=Ca((()=>{const{value:e}=p,{value:t}=d;return null!==e&&null!==t&&t>e})),D=Ca((()=>{const{trigger:t}=e;return"none"===t||b.value})),H=Ca((()=>{const{trigger:t}=e;return"none"===t||y.value})),W=Ca((()=>{const{container:t}=e;return t?t():a.value})),N=Ca((()=>{const{content:t}=e;return t?t():s.value})),U=(t,o)=>{if(!e.scrollable)return;if("number"==typeof t)return void q(t,null!=o?o:0,0,!1,"auto");const{left:n,top:r,index:i,elSize:a,position:s,behavior:l,el:c,debounce:u=!0}=t;void 0===n&&void 0===r||q(null!=n?n:0,null!=r?r:0,0,!1,l),void 0!==c?q(0,c.offsetTop,c.offsetHeight,u,l):void 0!==i&&void 0!==a?q(0,i*a,a,u,l):"bottom"===s?q(0,Number.MAX_SAFE_INTEGER,0,!1,l):"top"===s&&q(0,0,0,!1,l)},V=function(e){const t={isDeactivated:!1};let o=!1;return Jn((()=>{t.isDeactivated=!1,o?e():o=!0})),Xn((()=>{t.isDeactivated=!0,o||(o=!0)})),t}((()=>{e.container||U({top:g.value,left:v.value})}));function q(e,t,o,n,r){const{value:i}=W;if(i){if(n){const{scrollTop:n,offsetHeight:a}=i;if(t>n)return void(t+o<=n+a||i.scrollTo({left:e,top:t+o-a,behavior:r}))}i.scrollTo({left:e,top:t,behavior:r})}}function G(){!function(){void 0!==C&&window.clearTimeout(C);C=window.setTimeout((()=>{y.value=!1}),e.duration)}(),function(){void 0!==x&&window.clearTimeout(x);x=window.setTimeout((()=>{b.value=!1}),e.duration)}()}function Q(){const{value:e}=W;e&&(g.value=e.scrollTop,v.value=e.scrollLeft*((null==r?void 0:r.value)?-1:1))}function K(){const{value:e}=W;e&&(g.value=e.scrollTop,v.value=e.scrollLeft*((null==r?void 0:r.value)?-1:1),f.value=e.offsetHeight,p.value=e.offsetWidth,u.value=e.scrollHeight,d.value=e.scrollWidth);const{value:t}=c,{value:o}=l;t&&(m.value=t.offsetWidth),o&&(h.value=o.offsetHeight)}function Y(){e.scrollable&&(e.useUnifiedContainer?K():(!function(){const{value:e}=N;e&&(u.value=e.offsetHeight,d.value=e.offsetWidth);const{value:t}=W;t&&(f.value=t.offsetHeight,p.value=t.offsetWidth);const{value:o}=c,{value:n}=l;o&&(m.value=o.offsetWidth),n&&(h.value=n.offsetHeight)}(),Q()))}function J(e){var t;return!(null===(t=i.value)||void 0===t?void 0:t.contains(zs(e)))}function X(t){if(!w)return;void 0!==x&&window.clearTimeout(x),void 0!==C&&window.clearTimeout(C);const{value:o}=p,{value:n}=d,{value:i}=R;if(null===o||null===n)return;const a=(null==r?void 0:r.value)?window.innerWidth-t.clientX-P:t.clientX-P,s=n-o;let l=k+a*(n-o)/(o-i);l=Math.min(s,l),l=Math.max(l,0);const{value:c}=W;if(c){c.scrollLeft=l*((null==r?void 0:r.value)?-1:1);const{internalOnUpdateScrollLeft:t}=e;t&&t(l)}}function Z(e){e.preventDefault(),e.stopPropagation(),jc("mousemove",window,X,!0),jc("mouseup",window,Z,!0),w=!1,Y(),J(e)&&G()}function ee(e){if(!S)return;void 0!==x&&window.clearTimeout(x),void 0!==C&&window.clearTimeout(C);const{value:t}=f,{value:o}=u,{value:n}=M;if(null===t||null===o)return;const r=e.clientY-T,i=o-t;let a=_+r*(o-t)/(t-n);a=Math.min(i,a),a=Math.max(a,0);const{value:s}=W;s&&(s.scrollTop=a)}function te(e){e.preventDefault(),e.stopPropagation(),jc("mousemove",window,ee,!0),jc("mouseup",window,te,!0),S=!1,Y(),J(e)&&G()}gi((()=>{const{value:e}=j,{value:o}=B,{value:n}=t,{value:r}=c,{value:i}=l;r&&(e?r.classList.remove(`${n}-scrollbar-rail--disabled`):r.classList.add(`${n}-scrollbar-rail--disabled`)),i&&(o?i.classList.remove(`${n}-scrollbar-rail--disabled`):i.classList.add(`${n}-scrollbar-rail--disabled`))})),rr((()=>{e.container||Y()})),sr((()=>{void 0!==x&&window.clearTimeout(x),void 0!==C&&window.clearTimeout(C),jc("mousemove",window,ee,!0),jc("mouseup",window,te,!0)}));const oe=Ca((()=>{const{common:{cubicBezierEaseInOut:e},self:{color:t,colorHover:o,height:n,width:i,borderRadius:a,railInsetHorizontalTop:s,railInsetHorizontalBottom:l,railInsetVerticalRight:c,railInsetVerticalLeft:u,railColor:d}}=O.value;return{"--n-scrollbar-bezier":e,"--n-scrollbar-color":t,"--n-scrollbar-color-hover":o,"--n-scrollbar-border-radius":a,"--n-scrollbar-width":i,"--n-scrollbar-height":n,"--n-scrollbar-rail-inset-horizontal-top":s,"--n-scrollbar-rail-inset-horizontal-bottom":l,"--n-scrollbar-rail-inset-vertical-right":(null==r?void 0:r.value)?Gl(c):c,"--n-scrollbar-rail-inset-vertical-left":(null==r?void 0:r.value)?Gl(u):u,"--n-scrollbar-rail-color":d}})),ne=o?tv("scrollbar",void 0,oe,e):void 0,re={scrollTo:U,scrollBy:(t,o)=>{if(!e.scrollable)return;const{value:n}=W;n&&("object"==typeof t?n.scrollBy(t):n.scrollBy(t,o||0))},sync:Y,syncUnifiedContainer:K,handleMouseEnterWrapper:function(){!function(){void 0!==x&&window.clearTimeout(x);b.value=!0}(),function(){void 0!==C&&window.clearTimeout(C);y.value=!0}(),Y()},handleMouseLeaveWrapper:function(){G()}};return Object.assign(Object.assign({},re),{mergedClsPrefix:t,rtlEnabled:r,containerScrollTop:g,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:l,xRailRef:c,needYBar:B,needXBar:j,yBarSizePx:I,xBarSizePx:$,yBarTopPx:L,xBarLeftPx:F,isShowXBar:D,isShowYBar:H,isIos:E,handleScroll:function(t){const{onScroll:o}=e;o&&o(t),Q()},handleContentResize:()=>{V.isDeactivated||Y()},handleContainerResize:t=>{if(V.isDeactivated)return;const{onResize:o}=e;o&&o(t),Y()},handleYScrollMouseDown:function(e){e.preventDefault(),e.stopPropagation(),S=!0,Bc("mousemove",window,ee,!0),Bc("mouseup",window,te,!0),_=g.value,T=e.clientY},handleXScrollMouseDown:function(e){e.preventDefault(),e.stopPropagation(),w=!0,Bc("mousemove",window,X,!0),Bc("mouseup",window,Z,!0),k=v.value,P=(null==r?void 0:r.value)?window.innerWidth-e.clientX:e.clientX},cssVars:o?void 0:oe,themeClass:null==ne?void 0:ne.themeClass,onRender:null==ne?void 0:ne.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:o,triggerDisplayManually:n,rtlEnabled:r,internalHoistYRail:i,yPlacement:a,xPlacement:s,xScrollable:l}=this;if(!this.scrollable)return null===(e=t.default)||void 0===e?void 0:e.call(t);const c="none"===this.trigger,u=(e,t)=>Sa("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`,`${o}-scrollbar-rail--vertical--${a}`,e],"data-scrollbar-rail":!0,style:[t||"",this.verticalRailStyle],"aria-hidden":!0},Sa(c?Wl:La,c?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?Sa("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),d=()=>{var e,a;return null===(e=this.onRender)||void 0===e||e.call(this),Sa("div",na(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${o}-scrollbar`,this.themeClass,r&&`${o}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?null===(a=t.default)||void 0===a?void 0:a.call(t):Sa("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},Sa(rd,{onResize:this.handleContentResize},{default:()=>Sa("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${o}-scrollbar-content`,this.contentClass]},t)})),i?null:u(void 0,void 0),l&&Sa("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`,`${o}-scrollbar-rail--horizontal--${s}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},Sa(c?Wl:La,c?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?Sa("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},f=this.container?d():Sa(rd,{onResize:this.handleContainerResize},{default:d});return i?Sa(Ii,null,f,u(this.themeClass,this.cssVars)):f}}),Py=ky,Ty={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 Ey(e){const{borderRadius:t,popoverColor:o,textColor3:n,dividerColor:r,textColor2:i,primaryColorPressed:a,textColorDisabled:s,primaryColor:l,opacityDisabled:c,hoverColor:u,fontSizeTiny:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:h,fontSizeHuge:m,heightTiny:g,heightSmall:v,heightMedium:b,heightLarge:y,heightHuge:x}=e;return Object.assign(Object.assign({},Ty),{optionFontSizeTiny:d,optionFontSizeSmall:f,optionFontSizeMedium:p,optionFontSizeLarge:h,optionFontSizeHuge:m,optionHeightTiny:g,optionHeightSmall:v,optionHeightMedium:b,optionHeightLarge:y,optionHeightHuge:x,borderRadius:t,color:o,groupHeaderTextColor:n,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:s,optionTextColorActive:l,optionOpacityDisabled:c,optionCheckColor:l,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:i,loadingColor:l})}const Oy={name:"InternalSelectMenu",common:py,peers:{Scrollbar:xy,Empty:gy},self:Ey},My={name:"InternalSelectMenu",common:Sb,peers:{Scrollbar:Cy,Empty:vy},self:Ey},{cubicBezierEaseIn:Iy,cubicBezierEaseOut:Ry}=xg;function $y({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:n="",originalTransition:r=""}={}){return[gc("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Iy}, transform ${t} ${Iy} ${r&&`,${r}`}`}),gc("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Ry}, transform ${t} ${Ry} ${r&&`,${r}`}`}),gc("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${o})`}),gc("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}const Ay=bc("base-wave","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n"),Ly=qn({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){ev("-base-wave",Ay,Uo(e,"clsPrefix"));const t=Io(null),o=Io(!1);let n=null;return sr((()=>{null!==n&&window.clearTimeout(n)})),{active:o,selfRef:t,play(){null!==n&&(window.clearTimeout(n),o.value=!1,n=null),cn((()=>{var e;null===(e=t.value)||void 0===e||e.offsetHeight,o.value=!0,n=window.setTimeout((()=>{o.value=!1,n=null}),1e3)}))}}},render(){const{clsPrefix:e}=this;return Sa("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),zy={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function Fy(e){const{boxShadow2:t,popoverColor:o,textColor2:n,borderRadius:r,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},zy),{fontSize:i,borderRadius:r,color:o,dividerColor:a,textColor:n,boxShadow:t})}const By={name:"Popover",common:py,self:Fy},jy={name:"Popover",common:Sb,self:Fy},Dy={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},Hy={name:"Tag",common:Sb,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:u,tagColor:d,opacityDisabled:f,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:m,closeColorHover:g,closeColorPressed:v,borderRadiusSmall:b,fontSizeMini:y,fontSizeTiny:x,fontSizeSmall:C,fontSizeMedium:S,heightMini:w,heightTiny:_,heightSmall:k,heightMedium:P,buttonColor2Hover:T,buttonColor2Pressed:E,fontWeightStrong:O}=e;return Object.assign(Object.assign({},Dy),{closeBorderRadius:b,heightTiny:w,heightSmall:_,heightMedium:k,heightLarge:P,borderRadius:b,opacityDisabled:f,fontSizeTiny:y,fontSizeSmall:x,fontSizeMedium:C,fontSizeLarge:S,fontWeightStrong:O,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:T,colorPressedCheckable:E,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${u}`,textColor:t,color:d,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:m,closeColorHover:g,closeColorPressed:v,borderPrimary:`1px solid ${dl(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:dl(r,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:fl(r,{lightness:.7}),closeIconColorHoverPrimary:fl(r,{lightness:.7}),closeIconColorPressedPrimary:fl(r,{lightness:.7}),closeColorHoverPrimary:dl(r,{alpha:.16}),closeColorPressedPrimary:dl(r,{alpha:.12}),borderInfo:`1px solid ${dl(i,{alpha:.3})}`,textColorInfo:i,colorInfo:dl(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:fl(i,{alpha:.7}),closeIconColorHoverInfo:fl(i,{alpha:.7}),closeIconColorPressedInfo:fl(i,{alpha:.7}),closeColorHoverInfo:dl(i,{alpha:.16}),closeColorPressedInfo:dl(i,{alpha:.12}),borderSuccess:`1px solid ${dl(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:dl(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:fl(a,{alpha:.7}),closeIconColorHoverSuccess:fl(a,{alpha:.7}),closeIconColorPressedSuccess:fl(a,{alpha:.7}),closeColorHoverSuccess:dl(a,{alpha:.16}),closeColorPressedSuccess:dl(a,{alpha:.12}),borderWarning:`1px solid ${dl(s,{alpha:.3})}`,textColorWarning:s,colorWarning:dl(s,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:fl(s,{alpha:.7}),closeIconColorHoverWarning:fl(s,{alpha:.7}),closeIconColorPressedWarning:fl(s,{alpha:.7}),closeColorHoverWarning:dl(s,{alpha:.16}),closeColorPressedWarning:dl(s,{alpha:.11}),borderError:`1px solid ${dl(l,{alpha:.3})}`,textColorError:l,colorError:dl(l,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:fl(l,{alpha:.7}),closeIconColorHoverError:fl(l,{alpha:.7}),closeIconColorPressedError:fl(l,{alpha:.7}),closeColorHoverError:dl(l,{alpha:.16}),closeColorPressedError:dl(l,{alpha:.12})})}};const Wy={name:"Tag",common:py,self:function(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:u,opacityDisabled:d,tagColor:f,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:m,borderRadiusSmall:g,fontSizeMini:v,fontSizeTiny:b,fontSizeSmall:y,fontSizeMedium:x,heightMini:C,heightTiny:S,heightSmall:w,heightMedium:_,closeColorHover:k,closeColorPressed:P,buttonColor2Hover:T,buttonColor2Pressed:E,fontWeightStrong:O}=e;return Object.assign(Object.assign({},Dy),{closeBorderRadius:g,heightTiny:C,heightSmall:S,heightMedium:w,heightLarge:_,borderRadius:g,opacityDisabled:d,fontSizeTiny:v,fontSizeSmall:b,fontSizeMedium:y,fontSizeLarge:x,fontWeightStrong:O,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:T,colorPressedCheckable:E,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:m,closeColorHover:k,closeColorPressed:P,borderPrimary:`1px solid ${dl(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:dl(r,{alpha:.12}),colorBorderedPrimary:dl(r,{alpha:.1}),closeIconColorPrimary:r,closeIconColorHoverPrimary:r,closeIconColorPressedPrimary:r,closeColorHoverPrimary:dl(r,{alpha:.12}),closeColorPressedPrimary:dl(r,{alpha:.18}),borderInfo:`1px solid ${dl(i,{alpha:.3})}`,textColorInfo:i,colorInfo:dl(i,{alpha:.12}),colorBorderedInfo:dl(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:dl(i,{alpha:.12}),closeColorPressedInfo:dl(i,{alpha:.18}),borderSuccess:`1px solid ${dl(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:dl(a,{alpha:.12}),colorBorderedSuccess:dl(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:dl(a,{alpha:.12}),closeColorPressedSuccess:dl(a,{alpha:.18}),borderWarning:`1px solid ${dl(s,{alpha:.35})}`,textColorWarning:s,colorWarning:dl(s,{alpha:.15}),colorBorderedWarning:dl(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:dl(s,{alpha:.12}),closeColorPressedWarning:dl(s,{alpha:.18}),borderError:`1px solid ${dl(l,{alpha:.23})}`,textColorError:l,colorError:dl(l,{alpha:.1}),colorBorderedError:dl(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:dl(l,{alpha:.12}),closeColorPressedError:dl(l,{alpha:.18})})}},Ny={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};const Uy={name:"InternalSelection",common:py,peers:{Popover:By},self:function(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,borderColor:f,iconColor:p,iconColorDisabled:h,clearColor:m,clearColorHover:g,clearColorPressed:v,placeholderColor:b,placeholderColorDisabled:y,fontSizeTiny:x,fontSizeSmall:C,fontSizeMedium:S,fontSizeLarge:w,heightTiny:_,heightSmall:k,heightMedium:P,heightLarge:T}=e;return Object.assign(Object.assign({},Ny),{fontSizeTiny:x,fontSizeSmall:C,fontSizeMedium:S,fontSizeLarge:w,heightTiny:_,heightSmall:k,heightMedium:P,heightLarge:T,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:b,placeholderColorDisabled:y,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 ${dl(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${dl(a,{alpha:.2})}`,caretColor:a,arrowColor:p,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 0 2px ${dl(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${dl(l,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${dl(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${dl(u,{alpha:.2})}`,colorActiveError:r,caretColorError:u,clearColor:m,clearColorHover:g,clearColorPressed:v})}},Vy={name:"InternalSelection",common:Sb,peers:{Popover:jy},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,iconColor:f,iconColorDisabled:p,clearColor:h,clearColorHover:m,clearColorPressed:g,placeholderColor:v,placeholderColorDisabled:b,fontSizeTiny:y,fontSizeSmall:x,fontSizeMedium:C,fontSizeLarge:S,heightTiny:w,heightSmall:_,heightMedium:k,heightLarge:P}=e;return Object.assign(Object.assign({},Ny),{fontSizeTiny:y,fontSizeSmall:x,fontSizeMedium:C,fontSizeLarge:S,heightTiny:w,heightSmall:_,heightMedium:k,heightLarge:P,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:v,placeholderColorDisabled:b,color:r,colorDisabled:i,colorActive:dl(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 ${dl(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${dl(a,{alpha:.4})}`,caretColor:a,arrowColor:f,arrowColorDisabled:p,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 ${dl(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${dl(l,{alpha:.4})}`,colorActiveWarning:dl(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${dl(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${dl(u,{alpha:.4})}`,colorActiveError:dl(u,{alpha:.1}),caretColorError:u,clearColor:h,clearColorHover:m,clearColorPressed:g})}},{cubicBezierEaseInOut:qy}=xg;const Gy={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"},Qy={name:"Alert",common:Sb,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:n,dividerColor:r,inputColor:i,textColor1:a,textColor2:s,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:p,successColorSuppl:h,warningColorSuppl:m,errorColorSuppl:g,fontSize:v}=e;return Object.assign(Object.assign({},Gy),{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:u,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${dl(p,{alpha:.35})}`,colorInfo:dl(p,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:l,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${dl(h,{alpha:.35})}`,colorSuccess:dl(h,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:h,contentTextColorSuccess:s,closeColorHoverSuccess:l,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${dl(m,{alpha:.35})}`,colorWarning:dl(m,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:m,contentTextColorWarning:s,closeColorHoverWarning:l,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${dl(g,{alpha:.35})}`,colorError:dl(g,{alpha:.25}),titleTextColorError:a,iconColorError:g,contentTextColorError:s,closeColorHoverError:l,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:d,closeIconColorPressedError:f})}};const Ky={name:"Alert",common:py,self:function(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:n,baseColor:r,dividerColor:i,actionColor:a,textColor1:s,textColor2:l,closeColorHover:c,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,infoColor:h,successColor:m,warningColor:g,errorColor:v,fontSize:b}=e;return Object.assign(Object.assign({},Gy),{fontSize:b,lineHeight:t,titleFontWeight:n,borderRadius:o,border:`1px solid ${i}`,color:a,titleTextColor:s,iconColor:l,contentTextColor:l,closeBorderRadius:o,closeColorHover:c,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,borderInfo:`1px solid ${ul(r,dl(h,{alpha:.25}))}`,colorInfo:ul(r,dl(h,{alpha:.08})),titleTextColorInfo:s,iconColorInfo:h,contentTextColorInfo:l,closeColorHoverInfo:c,closeColorPressedInfo:u,closeIconColorInfo:d,closeIconColorHoverInfo:f,closeIconColorPressedInfo:p,borderSuccess:`1px solid ${ul(r,dl(m,{alpha:.25}))}`,colorSuccess:ul(r,dl(m,{alpha:.08})),titleTextColorSuccess:s,iconColorSuccess:m,contentTextColorSuccess:l,closeColorHoverSuccess:c,closeColorPressedSuccess:u,closeIconColorSuccess:d,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:p,borderWarning:`1px solid ${ul(r,dl(g,{alpha:.33}))}`,colorWarning:ul(r,dl(g,{alpha:.08})),titleTextColorWarning:s,iconColorWarning:g,contentTextColorWarning:l,closeColorHoverWarning:c,closeColorPressedWarning:u,closeIconColorWarning:d,closeIconColorHoverWarning:f,closeIconColorPressedWarning:p,borderError:`1px solid ${ul(r,dl(v,{alpha:.25}))}`,colorError:ul(r,dl(v,{alpha:.08})),titleTextColorError:s,iconColorError:v,contentTextColorError:l,closeColorHoverError:c,closeColorPressedError:u,closeIconColorError:d,closeIconColorHoverError:f,closeIconColorPressedError:p})}},{cubicBezierEaseInOut:Yy,cubicBezierEaseOut:Jy,cubicBezierEaseIn:Xy}=xg;function Zy({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:n="0s",foldPadding:r=!1,enterToProps:i,leaveToProps:a,reverse:s=!1}={}){const l=s?"leave":"enter",c=s?"enter":"leave";return[gc(`&.fade-in-height-expand-transition-${c}-from,\n &.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),gc(`&.fade-in-height-expand-transition-${c}-to,\n &.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})),gc(`&.fade-in-height-expand-transition-${c}-active`,`\n overflow: ${e};\n transition:\n max-height ${t} ${Yy} ${n},\n opacity ${t} ${Jy} ${n},\n margin-top ${t} ${Yy} ${n},\n margin-bottom ${t} ${Yy} ${n},\n padding-top ${t} ${Yy} ${n},\n padding-bottom ${t} ${Yy} ${n}\n ${o?`,${o}`:""}\n `),gc(`&.fade-in-height-expand-transition-${l}-active`,`\n overflow: ${e};\n transition:\n max-height ${t} ${Yy},\n opacity ${t} ${Xy},\n margin-top ${t} ${Yy},\n margin-bottom ${t} ${Yy},\n padding-top ${t} ${Yy},\n padding-bottom ${t} ${Yy}\n ${o?`,${o}`:""}\n `)]}const ex={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function tx(e){const{borderRadius:t,railColor:o,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},ex),{borderRadius:t,railColor:o,railColorActive:n,linkColor:dl(n,{alpha:.15}),linkTextColor:a,linkTextColorHover:r,linkTextColorPressed:i,linkTextColorActive:n})}const ox={name:"Anchor",common:py,self:tx},nx={name:"Anchor",common:Sb,self:tx},rx=Tc&&"chrome"in window;Tc&&navigator.userAgent.includes("Firefox");const ix=Tc&&navigator.userAgent.includes("Safari")&&!rx,ax={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},sx={name:"Input",common:Sb,self(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,borderRadius:f,lineHeight:p,fontSizeTiny:h,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:v,heightTiny:b,heightSmall:y,heightMedium:x,heightLarge:C,clearColor:S,clearColorHover:w,clearColorPressed:_,placeholderColor:k,placeholderColorDisabled:P,iconColor:T,iconColorDisabled:E,iconColorHover:O,iconColorPressed:M}=e;return Object.assign(Object.assign({},ax),{countTextColorDisabled:n,countTextColor:o,heightTiny:b,heightSmall:y,heightMedium:x,heightLarge:C,fontSizeTiny:h,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:v,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:n,textDecorationColor:t,groupLabelTextColor:t,caretColor:r,placeholderColor:k,placeholderColorDisabled:P,color:a,colorDisabled:s,colorFocus:dl(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 ${dl(r,{alpha:.3})}`,loadingColor:r,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:dl(l,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${dl(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,colorFocusError:dl(u,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${dl(u,{alpha:.3})}`,caretColorError:u,clearColor:S,clearColorHover:w,clearColorPressed:_,iconColor:T,iconColorDisabled:E,iconColorHover:O,iconColorPressed:M,suffixTextColor:t})}};const lx={name:"Input",common:py,self:function(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:s,borderColor:l,warningColor:c,warningColorHover:u,errorColor:d,errorColorHover:f,borderRadius:p,lineHeight:h,fontSizeTiny:m,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:b,heightTiny:y,heightSmall:x,heightMedium:C,heightLarge:S,actionColor:w,clearColor:_,clearColorHover:k,clearColorPressed:P,placeholderColor:T,placeholderColorDisabled:E,iconColor:O,iconColorDisabled:M,iconColorHover:I,iconColorPressed:R}=e;return Object.assign(Object.assign({},ax),{countTextColorDisabled:n,countTextColor:o,heightTiny:y,heightSmall:x,heightMedium:C,heightLarge:S,fontSizeTiny:m,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:b,lineHeight:h,lineHeightTextarea:h,borderRadius:p,iconSize:"16px",groupLabelColor:w,groupLabelTextColor:t,textColor:t,textColorDisabled:n,textDecorationColor:t,caretColor:r,placeholderColor:T,placeholderColorDisabled:E,color:a,colorDisabled:s,colorFocus:a,groupLabelBorder:`1px solid ${l}`,border:`1px solid ${l}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${l}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${dl(r,{alpha:.2})}`,loadingColor:r,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${dl(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:a,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${dl(d,{alpha:.2})}`,caretColorError:d,clearColor:_,clearColorHover:k,clearColorPressed:P,iconColor:O,iconColorDisabled:M,iconColorHover:I,iconColorPressed:R,suffixTextColor:t})}};function cx(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ux={name:"AutoComplete",common:py,peers:{InternalSelectMenu:Oy,Input:lx},self:cx},dx={name:"AutoComplete",common:Sb,peers:{InternalSelectMenu:My,Input:sx},self:cx};function fx(e){const{borderRadius:t,avatarColor:o,cardColor:n,fontSize:r,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,modalColor:u,popoverColor:d}=e;return{borderRadius:t,fontSize:r,border:`2px solid ${n}`,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,color:ul(n,o),colorModal:ul(u,o),colorPopover:ul(d,o)}}const px={name:"Avatar",common:py,self:fx},hx={name:"Avatar",common:Sb,self:fx};function mx(){return{gap:"-12px"}}const gx={name:"AvatarGroup",common:py,peers:{Avatar:px},self:mx},vx={name:"AvatarGroup",common:Sb,peers:{Avatar:hx},self:mx},bx={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},yx={name:"BackTop",common:Sb,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:n,primaryColorPressed:r}=e;return Object.assign(Object.assign({},bx),{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)"})}};const xx={name:"BackTop",common:py,self:function(e){const{popoverColor:t,textColor2:o,primaryColorHover:n,primaryColorPressed:r}=e;return Object.assign(Object.assign({},bx),{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)"})}},Cx={name:"Badge",common:Sb,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}}};const Sx={name:"Badge",common:py,self:function(e){const{errorColor:t,infoColor:o,successColor:n,warningColor:r,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:n,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}},wx={fontWeightActive:"400"};function _x(e){const{fontSize:t,textColor3:o,textColor2:n,borderRadius:r,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},wx),{fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:n,itemTextColorPressed:n,itemTextColorActive:n,itemBorderRadius:r,itemColorHover:i,itemColorPressed:a,separatorColor:o})}const kx={name:"Breadcrumb",common:py,self:_x},Px={name:"Breadcrumb",common:Sb,self:_x};function Tx(e){return ul(e,[255,255,255,.16])}function Ex(e){return ul(e,[0,0,0,.12])}const Ox="n-button-group",Mx={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function Ix(e){const{heightTiny:t,heightSmall:o,heightMedium:n,heightLarge:r,borderRadius:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,textColor2:d,textColor3:f,primaryColorHover:p,primaryColorPressed:h,borderColor:m,primaryColor:g,baseColor:v,infoColor:b,infoColorHover:y,infoColorPressed:x,successColor:C,successColorHover:S,successColorPressed:w,warningColor:_,warningColorHover:k,warningColorPressed:P,errorColor:T,errorColorHover:E,errorColorPressed:O,fontWeight:M,buttonColor2:I,buttonColor2Hover:R,buttonColor2Pressed:$,fontWeightStrong:A}=e;return Object.assign(Object.assign({},Mx),{heightTiny:t,heightSmall:o,heightMedium:n,heightLarge:r,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:I,colorSecondaryHover:R,colorSecondaryPressed:$,colorTertiary:I,colorTertiaryHover:R,colorTertiaryPressed:$,colorQuaternary:"#0000",colorQuaternaryHover:R,colorQuaternaryPressed:$,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:d,textColorTertiary:f,textColorHover:p,textColorPressed:h,textColorFocus:p,textColorDisabled:d,textColorText:d,textColorTextHover:p,textColorTextPressed:h,textColorTextFocus:p,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:p,textColorGhostPressed:h,textColorGhostFocus:p,textColorGhostDisabled:d,border:`1px solid ${m}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${m}`,rippleColor:g,colorPrimary:g,colorHoverPrimary:p,colorPressedPrimary:h,colorFocusPrimary:p,colorDisabledPrimary:g,textColorPrimary:v,textColorHoverPrimary:v,textColorPressedPrimary:v,textColorFocusPrimary:v,textColorDisabledPrimary:v,textColorTextPrimary:g,textColorTextHoverPrimary:p,textColorTextPressedPrimary:h,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:d,textColorGhostPrimary:g,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:g,borderPrimary:`1px solid ${g}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${g}`,rippleColorPrimary:g,colorInfo:b,colorHoverInfo:y,colorPressedInfo:x,colorFocusInfo:y,colorDisabledInfo:b,textColorInfo:v,textColorHoverInfo:v,textColorPressedInfo:v,textColorFocusInfo:v,textColorDisabledInfo:v,textColorTextInfo:b,textColorTextHoverInfo:y,textColorTextPressedInfo:x,textColorTextFocusInfo:y,textColorTextDisabledInfo:d,textColorGhostInfo:b,textColorGhostHoverInfo:y,textColorGhostPressedInfo:x,textColorGhostFocusInfo:y,textColorGhostDisabledInfo:b,borderInfo:`1px solid ${b}`,borderHoverInfo:`1px solid ${y}`,borderPressedInfo:`1px solid ${x}`,borderFocusInfo:`1px solid ${y}`,borderDisabledInfo:`1px solid ${b}`,rippleColorInfo:b,colorSuccess:C,colorHoverSuccess:S,colorPressedSuccess:w,colorFocusSuccess:S,colorDisabledSuccess:C,textColorSuccess:v,textColorHoverSuccess:v,textColorPressedSuccess:v,textColorFocusSuccess:v,textColorDisabledSuccess:v,textColorTextSuccess:C,textColorTextHoverSuccess:S,textColorTextPressedSuccess:w,textColorTextFocusSuccess:S,textColorTextDisabledSuccess:d,textColorGhostSuccess:C,textColorGhostHoverSuccess:S,textColorGhostPressedSuccess:w,textColorGhostFocusSuccess:S,textColorGhostDisabledSuccess:C,borderSuccess:`1px solid ${C}`,borderHoverSuccess:`1px solid ${S}`,borderPressedSuccess:`1px solid ${w}`,borderFocusSuccess:`1px solid ${S}`,borderDisabledSuccess:`1px solid ${C}`,rippleColorSuccess:C,colorWarning:_,colorHoverWarning:k,colorPressedWarning:P,colorFocusWarning:k,colorDisabledWarning:_,textColorWarning:v,textColorHoverWarning:v,textColorPressedWarning:v,textColorFocusWarning:v,textColorDisabledWarning:v,textColorTextWarning:_,textColorTextHoverWarning:k,textColorTextPressedWarning:P,textColorTextFocusWarning:k,textColorTextDisabledWarning:d,textColorGhostWarning:_,textColorGhostHoverWarning:k,textColorGhostPressedWarning:P,textColorGhostFocusWarning:k,textColorGhostDisabledWarning:_,borderWarning:`1px solid ${_}`,borderHoverWarning:`1px solid ${k}`,borderPressedWarning:`1px solid ${P}`,borderFocusWarning:`1px solid ${k}`,borderDisabledWarning:`1px solid ${_}`,rippleColorWarning:_,colorError:T,colorHoverError:E,colorPressedError:O,colorFocusError:E,colorDisabledError:T,textColorError:v,textColorHoverError:v,textColorPressedError:v,textColorFocusError:v,textColorDisabledError:v,textColorTextError:T,textColorTextHoverError:E,textColorTextPressedError:O,textColorTextFocusError:E,textColorTextDisabledError:d,textColorGhostError:T,textColorGhostHoverError:E,textColorGhostPressedError:O,textColorGhostFocusError:E,textColorGhostDisabledError:T,borderError:`1px solid ${T}`,borderHoverError:`1px solid ${E}`,borderPressedError:`1px solid ${O}`,borderFocusError:`1px solid ${E}`,borderDisabledError:`1px solid ${T}`,rippleColorError:T,waveOpacity:"0.6",fontWeight:M,fontWeightStrong:A})}const Rx={name:"Button",common:py,self:Ix},$x={name:"Button",common:Sb,self(e){const t=Ix(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},Ax=gc([bc("button","\n margin: 0;\n font-weight: var(--n-font-weight);\n line-height: 1;\n font-family: inherit;\n padding: var(--n-padding);\n height: var(--n-height);\n font-size: var(--n-font-size);\n border-radius: var(--n-border-radius);\n color: var(--n-text-color);\n background-color: var(--n-color);\n width: var(--n-width);\n white-space: nowrap;\n outline: none;\n position: relative;\n z-index: auto;\n border: none;\n display: inline-flex;\n flex-wrap: nowrap;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n user-select: none;\n -webkit-user-select: none;\n text-align: center;\n cursor: pointer;\n text-decoration: none;\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[xc("color",[yc("border",{borderColor:"var(--n-border-color)"}),xc("disabled",[yc("border",{borderColor:"var(--n-border-color-disabled)"})]),Cc("disabled",[gc("&:focus",[yc("state-border",{borderColor:"var(--n-border-color-focus)"})]),gc("&:hover",[yc("state-border",{borderColor:"var(--n-border-color-hover)"})]),gc("&:active",[yc("state-border",{borderColor:"var(--n-border-color-pressed)"})]),xc("pressed",[yc("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),xc("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[yc("border",{border:"var(--n-border-disabled)"})]),Cc("disabled",[gc("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[yc("state-border",{border:"var(--n-border-focus)"})]),gc("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[yc("state-border",{border:"var(--n-border-hover)"})]),gc("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[yc("state-border",{border:"var(--n-border-pressed)"})]),xc("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[yc("state-border",{border:"var(--n-border-pressed)"})])]),xc("loading","cursor: wait;"),bc("base-wave","\n pointer-events: none;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n animation-iteration-count: 1;\n animation-duration: var(--n-ripple-duration);\n animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);\n ",[xc("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),Tc&&"MozBoxSizing"in document.createElement("div").style?gc("&::moz-focus-inner",{border:0}):null,yc("border, state-border","\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n border-radius: inherit;\n transition: border-color .3s var(--n-bezier);\n pointer-events: none;\n "),yc("border",{border:"var(--n-border)"}),yc("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),yc("icon","\n margin: var(--n-icon-margin);\n margin-left: 0;\n height: var(--n-icon-size);\n width: var(--n-icon-size);\n max-width: var(--n-icon-size);\n font-size: var(--n-icon-size);\n position: relative;\n flex-shrink: 0;\n ",[bc("icon-slot","\n height: var(--n-icon-size);\n width: var(--n-icon-size);\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n ",[gv({top:"50%",originalTransform:"translateY(-50%)"})]),function({duration:e=".2s",delay:t=".1s"}={}){return[gc("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),gc("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from","\n opacity: 0!important;\n margin-left: 0!important;\n margin-right: 0!important;\n "),gc("&.fade-in-width-expand-transition-leave-active",`\n overflow: hidden;\n transition:\n opacity ${e} ${qy},\n max-width ${e} ${qy} ${t},\n margin-left ${e} ${qy} ${t},\n margin-right ${e} ${qy} ${t};\n `),gc("&.fade-in-width-expand-transition-enter-active",`\n overflow: hidden;\n transition:\n opacity ${e} ${qy} ${t},\n max-width ${e} ${qy},\n margin-left ${e} ${qy},\n margin-right ${e} ${qy};\n `)]}()]),yc("content","\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n min-width: 0;\n ",[gc("~",[yc("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),xc("block","\n display: flex;\n width: 100%;\n "),xc("dashed",[yc("border, state-border",{borderStyle:"dashed !important"})]),xc("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),gc("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),gc("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),Lx=qn({name:"Button",props:Object.assign(Object.assign({},Tg.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!ix}}),setup(e){const t=Io(null),o=Io(null),n=Io(!1),r=Rc((()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered)),i=qr(Ox,{}),{mergedSizeRef:a}=_d({},{defaultSize:"medium",mergedSize:t=>{const{size:o}=e;if(o)return o;const{size:n}=i;if(n)return n;const{mergedSize:r}=t||{};return r?r.value:"medium"}}),s=Ca((()=>e.focusable&&!e.disabled)),{inlineThemeDisabled:l,mergedClsPrefixRef:c,mergedRtlRef:u}=Og(e),d=Tg("Button","-button",Ax,Rx,e,c),f=ov("Button",u,c),p=Ca((()=>{const t=d.value,{common:{cubicBezierEaseInOut:o,cubicBezierEaseOut:n},self:r}=t,{rippleDuration:i,opacityDisabled:s,fontWeight:l,fontWeightStrong:c}=r,u=a.value,{dashed:f,type:p,ghost:h,text:m,color:g,round:v,circle:b,textColor:y,secondary:x,tertiary:C,quaternary:S,strong:w}=e,_={"--n-font-weight":w?c:l};let k={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const P="tertiary"===p,T="default"===p,E=P?"default":p;if(m){const e=y||g;k={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":e||r[Pc("textColorText",E)],"--n-text-color-hover":e?Tx(e):r[Pc("textColorTextHover",E)],"--n-text-color-pressed":e?Ex(e):r[Pc("textColorTextPressed",E)],"--n-text-color-focus":e?Tx(e):r[Pc("textColorTextHover",E)],"--n-text-color-disabled":e||r[Pc("textColorTextDisabled",E)]}}else if(h||f){const e=y||g;k={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":g||r[Pc("rippleColor",E)],"--n-text-color":e||r[Pc("textColorGhost",E)],"--n-text-color-hover":e?Tx(e):r[Pc("textColorGhostHover",E)],"--n-text-color-pressed":e?Ex(e):r[Pc("textColorGhostPressed",E)],"--n-text-color-focus":e?Tx(e):r[Pc("textColorGhostHover",E)],"--n-text-color-disabled":e||r[Pc("textColorGhostDisabled",E)]}}else if(x){const e=T?r.textColor:P?r.textColorTertiary:r[Pc("color",E)],t=g||e,o="default"!==p&&"tertiary"!==p;k={"--n-color":o?dl(t,{alpha:Number(r.colorOpacitySecondary)}):r.colorSecondary,"--n-color-hover":o?dl(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-pressed":o?dl(t,{alpha:Number(r.colorOpacitySecondaryPressed)}):r.colorSecondaryPressed,"--n-color-focus":o?dl(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-disabled":r.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":t,"--n-text-color-hover":t,"--n-text-color-pressed":t,"--n-text-color-focus":t,"--n-text-color-disabled":t}}else if(C||S){const e=T?r.textColor:P?r.textColorTertiary:r[Pc("color",E)],t=g||e;C?(k["--n-color"]=r.colorTertiary,k["--n-color-hover"]=r.colorTertiaryHover,k["--n-color-pressed"]=r.colorTertiaryPressed,k["--n-color-focus"]=r.colorSecondaryHover,k["--n-color-disabled"]=r.colorTertiary):(k["--n-color"]=r.colorQuaternary,k["--n-color-hover"]=r.colorQuaternaryHover,k["--n-color-pressed"]=r.colorQuaternaryPressed,k["--n-color-focus"]=r.colorQuaternaryHover,k["--n-color-disabled"]=r.colorQuaternary),k["--n-ripple-color"]="#0000",k["--n-text-color"]=t,k["--n-text-color-hover"]=t,k["--n-text-color-pressed"]=t,k["--n-text-color-focus"]=t,k["--n-text-color-disabled"]=t}else k={"--n-color":g||r[Pc("color",E)],"--n-color-hover":g?Tx(g):r[Pc("colorHover",E)],"--n-color-pressed":g?Ex(g):r[Pc("colorPressed",E)],"--n-color-focus":g?Tx(g):r[Pc("colorFocus",E)],"--n-color-disabled":g||r[Pc("colorDisabled",E)],"--n-ripple-color":g||r[Pc("rippleColor",E)],"--n-text-color":y||(g?r.textColorPrimary:P?r.textColorTertiary:r[Pc("textColor",E)]),"--n-text-color-hover":y||(g?r.textColorHoverPrimary:r[Pc("textColorHover",E)]),"--n-text-color-pressed":y||(g?r.textColorPressedPrimary:r[Pc("textColorPressed",E)]),"--n-text-color-focus":y||(g?r.textColorFocusPrimary:r[Pc("textColorFocus",E)]),"--n-text-color-disabled":y||(g?r.textColorDisabledPrimary:r[Pc("textColorDisabled",E)])};let O={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};O=m?{"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:{"--n-border":r[Pc("border",E)],"--n-border-hover":r[Pc("borderHover",E)],"--n-border-pressed":r[Pc("borderPressed",E)],"--n-border-focus":r[Pc("borderFocus",E)],"--n-border-disabled":r[Pc("borderDisabled",E)]};const{[Pc("height",u)]:M,[Pc("fontSize",u)]:I,[Pc("padding",u)]:R,[Pc("paddingRound",u)]:$,[Pc("iconSize",u)]:A,[Pc("borderRadius",u)]:L,[Pc("iconMargin",u)]:z,waveOpacity:F}=r,B={"--n-width":b&&!m?M:"initial","--n-height":m?"initial":M,"--n-font-size":I,"--n-padding":b||m?"initial":v?$:R,"--n-icon-size":A,"--n-icon-margin":z,"--n-border-radius":m?"initial":b||v?M:L};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":o,"--n-bezier-ease-out":n,"--n-ripple-duration":i,"--n-opacity-disabled":s,"--n-wave-opacity":F},_),k),O),B)})),h=l?tv("button",Ca((()=>{let t="";const{dashed:o,type:n,ghost:r,text:i,color:s,round:l,circle:c,textColor:u,secondary:d,tertiary:f,quaternary:p,strong:h}=e;o&&(t+="a"),r&&(t+="b"),i&&(t+="c"),l&&(t+="d"),c&&(t+="e"),d&&(t+="f"),f&&(t+="g"),p&&(t+="h"),h&&(t+="i"),s&&(t+=`j${ql(s)}`),u&&(t+=`k${ql(u)}`);const{value:m}=a;return t+=`l${m[0]}`,t+=`m${n[0]}`,t})),p,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:c,mergedFocusable:s,mergedSize:a,showBorder:r,enterPressed:n,rtlEnabled:f,handleMousedown:o=>{var n;s.value||o.preventDefault(),e.nativeFocusBehavior||(o.preventDefault(),e.disabled||s.value&&(null===(n=t.value)||void 0===n||n.focus({preventScroll:!0})))},handleKeydown:t=>{if("Enter"===t.key){if(!e.keyboard||e.loading)return void t.preventDefault();n.value=!0}},handleBlur:()=>{n.value=!1},handleKeyup:t=>{if("Enter"===t.key){if(!e.keyboard)return;n.value=!1}},handleClick:t=>{var n;if(!e.disabled&&!e.loading){const{onClick:r}=e;r&&Ml(r,t),e.text||null===(n=o.value)||void 0===n||n.play()}},customColorCssVars:Ca((()=>{const{color:t}=e;if(!t)return null;const o=Tx(t);return{"--n-border-color":t,"--n-border-color-hover":o,"--n-border-color-pressed":Ex(t),"--n-border-color-focus":o,"--n-border-color-disabled":t}})),cssVars:l?void 0:p,themeClass:null==h?void 0:h.themeClass,onRender:null==h?void 0:h.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;null==o||o();const n=Dl(this.$slots.default,(t=>t&&Sa("span",{class:`${e}-button__content`},t)));return Sa(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},"right"===this.iconPlacement&&n,Sa(uv,{width:!0},{default:()=>Dl(this.$slots.icon,(t=>(this.loading||this.renderIcon||t)&&Sa("span",{class:`${e}-button__icon`,style:{margin:Hl(this.$slots.default)?"0":""}},Sa(cv,null,{default:()=>this.loading?Sa(xv,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):Sa("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():t)}))))}),"left"===this.iconPlacement&&n,this.text?null:Sa(Ly,{ref:"waveElRef",clsPrefix:e}),this.showBorder?Sa("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?Sa("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),zx=Lx,Fx={titleFontSize:"22px"};function Bx(e){const{borderRadius:t,fontSize:o,lineHeight:n,textColor2:r,textColor1:i,textColorDisabled:a,dividerColor:s,fontWeightStrong:l,primaryColor:c,baseColor:u,hoverColor:d,cardColor:f,modalColor:p,popoverColor:h}=e;return Object.assign(Object.assign({},Fx),{borderRadius:t,borderColor:ul(f,s),borderColorModal:ul(p,s),borderColorPopover:ul(h,s),textColor:r,titleFontWeight:l,titleTextColor:i,dayTextColor:a,fontSize:o,lineHeight:n,dateColorCurrent:c,dateTextColorCurrent:u,cellColorHover:ul(f,d),cellColorHoverModal:ul(p,d),cellColorHoverPopover:ul(h,d),cellColor:f,cellColorModal:p,cellColorPopover:h,barColor:c})}const jx={name:"Calendar",common:py,peers:{Button:Rx},self:Bx},Dx={name:"Calendar",common:Sb,peers:{Button:$x},self:Bx};function Hx(e){const{fontSize:t,boxShadow2:o,popoverColor:n,textColor2:r,borderRadius:i,borderColor:a,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}=e;return{panelFontSize:t,boxShadow:o,color:n,textColor:r,borderRadius:i,border:`1px solid ${a}`,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}}const Wx={name:"ColorPicker",common:py,peers:{Input:lx,Button:Rx},self:Hx},Nx={name:"ColorPicker",common:Sb,peers:{Input:sx,Button:$x},self:Hx},Ux={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function Vx(e){const{primaryColor:t,borderRadius:o,lineHeight:n,fontSize:r,cardColor:i,textColor2:a,textColor1:s,dividerColor:l,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:p,closeColorPressed:h,modalColor:m,boxShadow1:g,popoverColor:v,actionColor:b}=e;return Object.assign(Object.assign({},Ux),{lineHeight:n,color:i,colorModal:m,colorPopover:v,colorTarget:t,colorEmbedded:b,colorEmbeddedModal:b,colorEmbeddedPopover:b,textColor:a,titleTextColor:s,borderColor:l,actionColor:b,titleFontWeight:c,closeColorHover:p,closeColorPressed:h,closeBorderRadius:o,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:r,fontSizeMedium:r,fontSizeLarge:r,fontSizeHuge:r,boxShadow:g,borderRadius:o})}const qx={name:"Card",common:py,self:Vx},Gx={name:"Card",common:Sb,self(e){const t=Vx(e),{cardColor:o,modalColor:n,popoverColor:r}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=n,t.colorEmbeddedPopover=r,t}},Qx=gc([bc("card","\n font-size: var(--n-font-size);\n line-height: var(--n-line-height);\n display: flex;\n flex-direction: column;\n width: 100%;\n box-sizing: border-box;\n position: relative;\n border-radius: var(--n-border-radius);\n background-color: var(--n-color);\n color: var(--n-text-color);\n word-break: break-word;\n transition: \n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[_c({background:"var(--n-color-modal)"}),xc("hoverable",[gc("&:hover","box-shadow: var(--n-box-shadow);")]),xc("content-segmented",[gc(">",[yc("content",{paddingTop:"var(--n-padding-bottom)"})])]),xc("content-soft-segmented",[gc(">",[yc("content","\n margin: 0 var(--n-padding-left);\n padding: var(--n-padding-bottom) 0;\n ")])]),xc("footer-segmented",[gc(">",[yc("footer",{paddingTop:"var(--n-padding-bottom)"})])]),xc("footer-soft-segmented",[gc(">",[yc("footer","\n padding: var(--n-padding-bottom) 0;\n margin: 0 var(--n-padding-left);\n ")])]),gc(">",[bc("card-header","\n box-sizing: border-box;\n display: flex;\n align-items: center;\n font-size: var(--n-title-font-size);\n padding:\n var(--n-padding-top)\n var(--n-padding-left)\n var(--n-padding-bottom)\n var(--n-padding-left);\n ",[yc("main","\n font-weight: var(--n-title-font-weight);\n transition: color .3s var(--n-bezier);\n flex: 1;\n min-width: 0;\n color: var(--n-title-text-color);\n "),yc("extra","\n display: flex;\n align-items: center;\n font-size: var(--n-font-size);\n font-weight: 400;\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n "),yc("close","\n margin: 0 0 0 8px;\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ")]),yc("action","\n box-sizing: border-box;\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n background-clip: padding-box;\n background-color: var(--n-action-color);\n "),yc("content","flex: 1; min-width: 0;"),yc("content, footer","\n box-sizing: border-box;\n padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);\n font-size: var(--n-font-size);\n ",[gc("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),yc("action","\n background-color: var(--n-action-color);\n padding: var(--n-padding-bottom) var(--n-padding-left);\n border-bottom-left-radius: var(--n-border-radius);\n border-bottom-right-radius: var(--n-border-radius);\n ")]),bc("card-cover","\n overflow: hidden;\n width: 100%;\n border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;\n ",[gc("img","\n display: block;\n width: 100%;\n ")]),xc("bordered","\n border: 1px solid var(--n-border-color);\n ",[gc("&:target","border-color: var(--n-color-target);")]),xc("action-segmented",[gc(">",[yc("action",[gc("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),xc("content-segmented, content-soft-segmented",[gc(">",[yc("content",{transition:"border-color 0.3s var(--n-bezier)"},[gc("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),xc("footer-segmented, footer-soft-segmented",[gc(">",[yc("footer",{transition:"border-color 0.3s var(--n-bezier)"},[gc("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),xc("embedded","\n background-color: var(--n-color-embedded);\n ")]),Sc(bc("card","\n background: var(--n-color-modal);\n ",[xc("embedded","\n background-color: var(--n-color-embedded-modal);\n ")])),wc(bc("card","\n background: var(--n-color-popover);\n ",[xc("embedded","\n background-color: var(--n-color-embedded-popover);\n ")]))]),Kx={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function},Yx=Il(Kx),Jx=qn({name:"Card",props:Object.assign(Object.assign({},Tg.props),Kx),setup(e){const{inlineThemeDisabled:t,mergedClsPrefixRef:o,mergedRtlRef:n}=Og(e),r=Tg("Card","-card",Qx,qx,e,o),i=ov("Card",n,o),a=Ca((()=>{const{size:t}=e,{self:{color:o,colorModal:n,colorTarget:i,textColor:a,titleTextColor:s,titleFontWeight:l,borderColor:c,actionColor:u,borderRadius:d,lineHeight:f,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:m,closeColorHover:g,closeColorPressed:v,closeBorderRadius:b,closeIconSize:y,closeSize:x,boxShadow:C,colorPopover:S,colorEmbedded:w,colorEmbeddedModal:_,colorEmbeddedPopover:k,[Pc("padding",t)]:P,[Pc("fontSize",t)]:T,[Pc("titleFontSize",t)]:E},common:{cubicBezierEaseInOut:O}}=r.value,{top:M,left:I,bottom:R}=js(P);return{"--n-bezier":O,"--n-border-radius":d,"--n-color":o,"--n-color-modal":n,"--n-color-popover":S,"--n-color-embedded":w,"--n-color-embedded-modal":_,"--n-color-embedded-popover":k,"--n-color-target":i,"--n-text-color":a,"--n-line-height":f,"--n-action-color":u,"--n-title-text-color":s,"--n-title-font-weight":l,"--n-close-icon-color":p,"--n-close-icon-color-hover":h,"--n-close-icon-color-pressed":m,"--n-close-color-hover":g,"--n-close-color-pressed":v,"--n-border-color":c,"--n-box-shadow":C,"--n-padding-top":M,"--n-padding-bottom":R,"--n-padding-left":I,"--n-font-size":T,"--n-title-font-size":E,"--n-close-size":x,"--n-close-icon-size":y,"--n-close-border-radius":b}})),s=t?tv("card",Ca((()=>e.size[0])),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:o,mergedTheme:r,handleCloseClick:()=>{const{onClose:t}=e;t&&Ml(t)},cssVars:t?void 0:a,themeClass:null==s?void 0:s.themeClass,onRender:null==s?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:n,rtlEnabled:r,onRender:i,embedded:a,tag:s,$slots:l}=this;return null==i||i(),Sa(s,{class:[`${n}-card`,this.themeClass,a&&`${n}-card--embedded`,{[`${n}-card--rtl`]:r,[`${n}-card--content${"boolean"!=typeof e&&"soft"===e.content?"-soft":""}-segmented`]:!0===e||!1!==e&&e.content,[`${n}-card--footer${"boolean"!=typeof e&&"soft"===e.footer?"-soft":""}-segmented`]:!0===e||!1!==e&&e.footer,[`${n}-card--action-segmented`]:!0===e||!1!==e&&e.action,[`${n}-card--bordered`]:t,[`${n}-card--hoverable`]:o}],style:this.cssVars,role:this.role},Dl(l.cover,(e=>{const t=this.cover?Fl([this.cover()]):e;return t&&Sa("div",{class:`${n}-card-cover`,role:"none"},t)})),Dl(l.header,(e=>{const{title:t}=this,o=t?Fl("function"==typeof t?[t()]:[t]):e;return o||this.closable?Sa("div",{class:[`${n}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},Sa("div",{class:`${n}-card-header__main`,role:"heading"},o),Dl(l["header-extra"],(e=>{const t=this.headerExtra?Fl([this.headerExtra()]):e;return t&&Sa("div",{class:[`${n}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},t)})),this.closable&&Sa(hv,{clsPrefix:n,class:`${n}-card-header__close`,onClick:this.handleCloseClick,absolute:!0})):null})),Dl(l.default,(e=>{const{content:t}=this,o=t?Fl("function"==typeof t?[t()]:[t]):e;return o&&Sa("div",{class:[`${n}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},o)})),Dl(l.footer,(e=>{const t=this.footer?Fl([this.footer()]):e;return t&&Sa("div",{class:[`${n}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},t)})),Dl(l.action,(e=>{const t=this.action?Fl([this.action()]):e;return t&&Sa("div",{class:`${n}-card__action`,role:"none"},t)})))}});function Xx(){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 Zx={name:"Carousel",common:py,self:Xx},eC={name:"Carousel",common:Sb,self:Xx},tC={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function oC(e){const{baseColor:t,inputColorDisabled:o,cardColor:n,modalColor:r,popoverColor:i,textColorDisabled:a,borderColor:s,primaryColor:l,textColor2:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:p,lineHeight:h}=e;return Object.assign(Object.assign({},tC),{labelLineHeight:h,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadius:p,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 ${dl(l,{alpha:.3})}`,textColor:c,textColorDisabled:a})}const nC={name:"Checkbox",common:py,self:oC},rC={name:"Checkbox",common:Sb,self(e){const{cardColor:t}=e,o=oC(e);return o.color="#0000",o.checkMarkColor=t,o}};function iC(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r,textColor3:i,primaryColor:a,textColorDisabled:s,dividerColor:l,hoverColor:c,fontSizeMedium:u,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:n,menuBoxShadow:o,menuDividerColor:l,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:d,optionFontSize:u,optionColorHover:c,optionTextColor:r,optionTextColorActive:a,optionTextColorDisabled:s,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}}const aC={name:"Cascader",common:py,peers:{InternalSelectMenu:Oy,InternalSelection:Uy,Scrollbar:xy,Checkbox:nC,Empty:gy},self:iC},sC={name:"Cascader",common:Sb,peers:{InternalSelectMenu:My,InternalSelection:Vy,Scrollbar:Cy,Checkbox:rC,Empty:gy},self:iC},lC={name:"Code",common:Sb,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}}};const cC={name:"Code",common:py,self:function(e){const{textColor2:t,fontSize:o,fontWeightStrong:n,textColor3:r}=e;return{textColor:t,fontSize:o,fontWeightStrong:n,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:r}}};function uC(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 dC={name:"Collapse",common:py,self:uC},fC={name:"Collapse",common:Sb,self:uC};function pC(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const hC={name:"CollapseTransition",common:py,self:pC},mC={name:"CollapseTransition",common:Sb,self:pC},gC=qn({name:"ConfigProvider",alias:["App"],props:{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:()=>($l("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},setup(e){const t=qr(kg,null),o=Ca((()=>{const{theme:o}=e;if(null===o)return;const n=null==t?void 0:t.mergedThemeRef.value;return void 0===o?n:void 0===n?o:Object.assign({},n,o)})),n=Ca((()=>{const{themeOverrides:o}=e;if(null!==o){if(void 0===o)return null==t?void 0:t.mergedThemeOverridesRef.value;{const e=null==t?void 0:t.mergedThemeOverridesRef.value;return void 0===e?o:fg({},e,o)}}})),r=Rc((()=>{const{namespace:o}=e;return void 0===o?null==t?void 0:t.mergedNamespaceRef.value:o})),i=Rc((()=>{const{bordered:o}=e;return void 0===o?null==t?void 0:t.mergedBorderedRef.value:o})),a=Ca((()=>{const{icons:o}=e;return void 0===o?null==t?void 0:t.mergedIconsRef.value:o})),s=Ca((()=>{const{componentOptions:o}=e;return void 0!==o?o:null==t?void 0:t.mergedComponentPropsRef.value})),l=Ca((()=>{const{clsPrefix:o}=e;return void 0!==o?o:t?t.mergedClsPrefixRef.value:Eg})),c=Ca((()=>{var o;const{rtl:n}=e;if(void 0===n)return null==t?void 0:t.mergedRtlRef.value;const r={};for(const e of n)r[e.name]=To(e),null===(o=e.peers)||void 0===o||o.forEach((e=>{e.name in r||(r[e.name]=To(e))}));return r})),u=Ca((()=>e.breakpoints||(null==t?void 0:t.mergedBreakpointsRef.value))),d=e.inlineThemeDisabled||(null==t?void 0:t.inlineThemeDisabled),f=e.preflightStyleDisabled||(null==t?void 0:t.preflightStyleDisabled),p=e.styleMountTarget||(null==t?void 0:t.styleMountTarget),h=Ca((()=>{const{value:e}=o,{value:t}=n,r=t&&0!==Object.keys(t).length,i=null==e?void 0:e.name;return i?r?`${i}-${ic(JSON.stringify(n.value))}`:i:r?ic(JSON.stringify(n.value)):""}));return Vr(kg,{mergedThemeHashRef:h,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:s,mergedBorderedRef:i,mergedNamespaceRef:r,mergedClsPrefixRef:l,mergedLocaleRef:Ca((()=>{const{locale:o}=e;if(null!==o)return void 0===o?null==t?void 0:t.mergedLocaleRef.value:o})),mergedDateLocaleRef:Ca((()=>{const{dateLocale:o}=e;if(null!==o)return void 0===o?null==t?void 0:t.mergedDateLocaleRef.value:o})),mergedHljsRef:Ca((()=>{const{hljs:o}=e;return void 0===o?null==t?void 0:t.mergedHljsRef.value:o})),mergedKatexRef:Ca((()=>{const{katex:o}=e;return void 0===o?null==t?void 0:t.mergedKatexRef.value:o})),mergedThemeRef:o,mergedThemeOverridesRef:n,inlineThemeDisabled:d||!1,preflightStyleDisabled:f||!1,styleMountTarget:p}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:r,mergedTheme:o,mergedThemeOverrides:n}},render(){var e,t,o,n;return this.abstract?null===(n=(o=this.$slots).default)||void 0===n?void 0:n.call(o):Sa(this.as||this.tag,{class:`${this.mergedClsPrefix||Eg}-config-provider`},null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))}}),vC={name:"Popselect",common:Sb,peers:{Popover:jy,InternalSelectMenu:My}};const bC={name:"Popselect",common:py,peers:{Popover:By,InternalSelectMenu:Oy},self:function(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function yC(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const xC={name:"Select",common:py,peers:{InternalSelection:Uy,InternalSelectMenu:Oy},self:yC},CC={name:"Select",common:Sb,peers:{InternalSelection:Vy,InternalSelectMenu:My},self:yC},SC={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 wC(e){const{textColor2:t,primaryColor:o,primaryColorHover:n,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:a,borderColor:s,borderRadius:l,fontSizeTiny:c,fontSizeSmall:u,fontSizeMedium:d,heightTiny:f,heightSmall:p,heightMedium:h}=e;return Object.assign(Object.assign({},SC),{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:p,itemSizeLarge:h,itemFontSizeSmall:c,itemFontSizeMedium:u,itemFontSizeLarge:d,jumperFontSizeSmall:c,jumperFontSizeMedium:u,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:a})}const _C={name:"Pagination",common:py,peers:{Select:xC,Input:lx,Popselect:bC},self:wC},kC={name:"Pagination",common:Sb,peers:{Select:CC,Input:sx,Popselect:vC},self(e){const{primaryColor:t,opacity3:o}=e,n=dl(t,{alpha:Number(o)}),r=wC(e);return r.itemBorderActive=`1px solid ${n}`,r.itemBorderDisabled="1px solid #0000",r}},PC={padding:"8px 14px"},TC={name:"Tooltip",common:Sb,peers:{Popover:jy},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r}=e;return Object.assign(Object.assign({},PC),{borderRadius:t,boxShadow:o,color:n,textColor:r})}};const EC={name:"Tooltip",common:py,peers:{Popover:By},self:function(e){const{borderRadius:t,boxShadow2:o,baseColor:n}=e;return Object.assign(Object.assign({},PC),{borderRadius:t,boxShadow:o,color:ul(n,"rgba(0, 0, 0, .85)"),textColor:n})}},OC={name:"Ellipsis",common:Sb,peers:{Tooltip:TC}},MC={name:"Ellipsis",common:py,peers:{Tooltip:EC}},IC={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},RC={name:"Radio",common:Sb,self(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:h,lineHeight:m}=e;return Object.assign(Object.assign({},IC),{labelLineHeight:m,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,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 ${dl(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 ${dl(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}};const $C={name:"Radio",common:py,self:function(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:h,lineHeight:m}=e;return Object.assign(Object.assign({},IC),{labelLineHeight:m,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,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 ${dl(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 ${dl(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}},AC={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 LC(e){const{primaryColor:t,textColor2:o,dividerColor:n,hoverColor:r,popoverColor:i,invertedColor:a,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:d,heightSmall:f,heightMedium:p,heightLarge:h,heightHuge:m,textColor3:g,opacityDisabled:v}=e;return Object.assign(Object.assign({},AC),{optionHeightSmall:f,optionHeightMedium:p,optionHeightLarge:h,optionHeightHuge:m,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:d,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:o,prefixColor:o,optionColorHover:r,optionColorActive:dl(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 zC={name:"Dropdown",common:py,peers:{Popover:By},self:LC},FC={name:"Dropdown",common:Sb,peers:{Popover:jy},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:n}=e,r=LC(e);return r.colorInverted=n,r.optionColorActive=dl(o,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}},BC={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 jC(e){const{cardColor:t,modalColor:o,popoverColor:n,textColor2:r,textColor1:i,tableHeaderColor:a,tableColorHover:s,iconColor:l,primaryColor:c,fontWeightStrong:u,borderRadius:d,lineHeight:f,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:m,dividerColor:g,heightSmall:v,opacityDisabled:b,tableColorStriped:y}=e;return Object.assign(Object.assign({},BC),{actionDividerColor:g,lineHeight:f,borderRadius:d,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:m,borderColor:ul(t,g),tdColorHover:ul(t,s),tdColorSorting:ul(t,s),tdColorStriped:ul(t,y),thColor:ul(t,a),thColorHover:ul(ul(t,a),s),thColorSorting:ul(ul(t,a),s),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:u,thButtonColorHover:s,thIconColor:l,thIconColorActive:c,borderColorModal:ul(o,g),tdColorHoverModal:ul(o,s),tdColorSortingModal:ul(o,s),tdColorStripedModal:ul(o,y),thColorModal:ul(o,a),thColorHoverModal:ul(ul(o,a),s),thColorSortingModal:ul(ul(o,a),s),tdColorModal:o,borderColorPopover:ul(n,g),tdColorHoverPopover:ul(n,s),tdColorSortingPopover:ul(n,s),tdColorStripedPopover:ul(n,y),thColorPopover:ul(n,a),thColorHoverPopover:ul(ul(n,a),s),thColorSortingPopover:ul(ul(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:b})}const DC={name:"DataTable",common:py,peers:{Button:Rx,Checkbox:nC,Radio:$C,Pagination:_C,Scrollbar:xy,Empty:gy,Popover:By,Ellipsis:MC,Dropdown:zC},self:jC},HC={name:"DataTable",common:Sb,peers:{Button:$x,Checkbox:rC,Radio:RC,Pagination:kC,Scrollbar:Cy,Empty:vy,Popover:jy,Ellipsis:OC,Dropdown:FC},self(e){const t=jC(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}};function WC(e){const{textColorBase:t,opacity1:o,opacity2:n,opacity3:r,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:o,opacity2Depth:n,opacity3Depth:r,opacity4Depth:i,opacity5Depth:a}}const NC={name:"Icon",common:py,self:WC},UC={name:"Icon",common:Sb,self:WC},VC=bc("icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[xc("color-transition",{transition:"color .3s var(--n-bezier)"}),xc("depth",{color:"var(--n-color)"},[gc("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),gc("svg",{height:"1em",width:"1em"})]),qC=qn({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:Object.assign(Object.assign({},Tg.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Og(e),n=Tg("Icon","-icon",VC,NC,e,t),r=Ca((()=>{const{depth:t}=e,{common:{cubicBezierEaseInOut:o},self:r}=n.value;if(void 0!==t){const{color:e,[`opacity${t}Depth`]:n}=r;return{"--n-bezier":o,"--n-color":e,"--n-opacity":n}}return{"--n-bezier":o,"--n-color":"","--n-opacity":""}})),i=o?tv("icon",Ca((()=>`${e.depth||"d"}`)),r,e):void 0;return{mergedClsPrefix:t,mergedStyle:Ca((()=>{const{size:t,color:o}=e;return{fontSize:Vl(t),color:o}})),cssVars:o?void 0:r,themeClass:null==i?void 0:i.themeClass,onRender:null==i?void 0:i.onRender}},render(){var e;const{$parent:t,depth:o,mergedClsPrefix:n,component:r,onRender:i,themeClass:a}=this;return(null===(e=null==t?void 0:t.$options)||void 0===e?void 0:e._n_icon__)&&$l("icon","don't wrap `n-icon` inside `n-icon`"),null==i||i(),Sa("i",na(this.$attrs,{role:"img",class:[`${n}-icon`,a,{[`${n}-icon--depth`]:o,[`${n}-icon--color-transition`]:void 0!==o}],style:[this.cssVars,this.mergedStyle]}),r?Sa(r):this.$slots)}}),GC={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function QC(e){const{popoverColor:t,textColor2:o,primaryColor:n,hoverColor:r,dividerColor:i,opacityDisabled:a,boxShadow2:s,borderRadius:l,iconColor:c,iconColorDisabled:u}=e;return Object.assign(Object.assign({},GC),{panelColor:t,panelBoxShadow:s,panelDividerColor:i,itemTextColor:o,itemTextColorActive:n,itemColorHover:r,itemOpacityDisabled:a,itemBorderRadius:l,borderRadius:l,iconColor:c,iconColorDisabled:u})}const KC={name:"TimePicker",common:py,peers:{Scrollbar:xy,Button:Rx,Input:lx},self:QC},YC={name:"TimePicker",common:Sb,peers:{Scrollbar:Cy,Button:$x,Input:sx},self:QC},JC={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 XC(e){const{hoverColor:t,fontSize:o,textColor2:n,textColorDisabled:r,popoverColor:i,primaryColor:a,borderRadiusSmall:s,iconColor:l,iconColorDisabled:c,textColor1:u,dividerColor:d,boxShadow2:f,borderRadius:p,fontWeightStrong:h}=e;return Object.assign(Object.assign({},JC),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:n,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:dl(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:s,panelColor:i,panelTextColor:n,arrowColor:l,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:n,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:p,calendarTitleFontWeight:h,scrollItemBorderRadius:p,iconColor:l,iconColorDisabled:c})}const ZC={name:"DatePicker",common:py,peers:{Input:lx,Button:Rx,TimePicker:KC,Scrollbar:xy},self:XC},eS={name:"DatePicker",common:Sb,peers:{Input:sx,Button:$x,TimePicker:YC,Scrollbar:Cy},self(e){const{popoverColor:t,hoverColor:o,primaryColor:n}=e,r=XC(e);return r.itemColorDisabled=ul(t,o),r.itemColorIncluded=dl(n,{alpha:.15}),r.itemColorHover=ul(t,o),r}},tS={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 oS(e){const{tableHeaderColor:t,textColor2:o,textColor1:n,cardColor:r,modalColor:i,popoverColor:a,dividerColor:s,borderRadius:l,fontWeightStrong:c,lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},tS),{lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p,titleTextColor:n,thColor:ul(r,t),thColorModal:ul(i,t),thColorPopover:ul(a,t),thTextColor:n,thFontWeight:c,tdTextColor:o,tdColor:r,tdColorModal:i,tdColorPopover:a,borderColor:ul(r,s),borderColorModal:ul(i,s),borderColorPopover:ul(a,s),borderRadius:l})}const nS={name:"Descriptions",common:py,self:oS},rS={name:"Descriptions",common:Sb,self:oS},iS={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 aS(e){const{textColor1:t,textColor2:o,modalColor:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,infoColor:c,successColor:u,warningColor:d,errorColor:f,primaryColor:p,dividerColor:h,borderRadius:m,fontWeightStrong:g,lineHeight:v,fontSize:b}=e;return Object.assign(Object.assign({},iS),{fontSize:b,lineHeight:v,border:`1px solid ${h}`,titleTextColor:t,textColor:o,color:n,closeColorHover:s,closeColorPressed:l,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:m,iconColor:p,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:d,iconColorError:f,borderRadius:m,titleFontWeight:g})}const sS={name:"Dialog",common:py,peers:{Button:Rx},self:aS},lS={name:"Dialog",common:Sb,peers:{Button:$x},self:aS},cS={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},uS=Il(cS),dS=gc([bc("dialog","\n --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left);\n word-break: break-word;\n line-height: var(--n-line-height);\n position: relative;\n background: var(--n-color);\n color: var(--n-text-color);\n box-sizing: border-box;\n margin: auto;\n border-radius: var(--n-border-radius);\n padding: var(--n-padding);\n transition: \n border-color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ",[yc("icon",{color:"var(--n-icon-color)"}),xc("bordered",{border:"var(--n-border)"}),xc("icon-top",[yc("close",{margin:"var(--n-close-margin)"}),yc("icon",{margin:"var(--n-icon-margin)"}),yc("content",{textAlign:"center"}),yc("title",{justifyContent:"center"}),yc("action",{justifyContent:"center"})]),xc("icon-left",[yc("icon",{margin:"var(--n-icon-margin)"}),xc("closable",[yc("title","\n padding-right: calc(var(--n-close-size) + 6px);\n ")])]),yc("close","\n position: absolute;\n right: 0;\n top: 0;\n margin: var(--n-close-margin);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n z-index: 1;\n "),yc("content","\n font-size: var(--n-font-size);\n margin: var(--n-content-margin);\n position: relative;\n word-break: break-word;\n ",[xc("last","margin-bottom: 0;")]),yc("action","\n display: flex;\n justify-content: flex-end;\n ",[gc("> *:not(:last-child)","\n margin-right: var(--n-action-space);\n ")]),yc("icon","\n font-size: var(--n-icon-size);\n transition: color .3s var(--n-bezier);\n "),yc("title","\n transition: color .3s var(--n-bezier);\n display: flex;\n align-items: center;\n font-size: var(--n-title-font-size);\n font-weight: var(--n-title-font-weight);\n color: var(--n-title-text-color);\n "),bc("dialog-icon-container","\n display: flex;\n justify-content: center;\n ")]),Sc(bc("dialog","\n width: 446px;\n max-width: calc(100vw - 32px);\n ")),bc("dialog",[_c("\n width: 446px;\n max-width: calc(100vw - 32px);\n ")])]),fS={default:()=>Sa(av,null),info:()=>Sa(av,null),success:()=>Sa(sv,null),warning:()=>Sa(lv,null),error:()=>Sa(iv,null)},pS=qn({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Tg.props),cS),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=Og(e),i=ov("Dialog",r,o),a=Ca((()=>{var o,n;const{iconPlacement:r}=e;return r||(null===(n=null===(o=null==t?void 0:t.value)||void 0===o?void 0:o.Dialog)||void 0===n?void 0:n.iconPlacement)||"left"}));const s=Tg("Dialog","-dialog",dS,sS,e,o),l=Ca((()=>{const{type:t}=e,o=a.value,{common:{cubicBezierEaseInOut:n},self:{fontSize:r,lineHeight:i,border:l,titleTextColor:c,textColor:u,color:d,closeBorderRadius:f,closeColorHover:p,closeColorPressed:h,closeIconColor:m,closeIconColorHover:g,closeIconColorPressed:v,closeIconSize:b,borderRadius:y,titleFontWeight:x,titleFontSize:C,padding:S,iconSize:w,actionSpace:_,contentMargin:k,closeSize:P,["top"===o?"iconMarginIconTop":"iconMargin"]:T,["top"===o?"closeMarginIconTop":"closeMargin"]:E,[Pc("iconColor",t)]:O}}=s.value,M=js(T);return{"--n-font-size":r,"--n-icon-color":O,"--n-bezier":n,"--n-close-margin":E,"--n-icon-margin-top":M.top,"--n-icon-margin-right":M.right,"--n-icon-margin-bottom":M.bottom,"--n-icon-margin-left":M.left,"--n-icon-size":w,"--n-close-size":P,"--n-close-icon-size":b,"--n-close-border-radius":f,"--n-close-color-hover":p,"--n-close-color-pressed":h,"--n-close-icon-color":m,"--n-close-icon-color-hover":g,"--n-close-icon-color-pressed":v,"--n-color":d,"--n-text-color":u,"--n-border-radius":y,"--n-padding":S,"--n-line-height":i,"--n-border":l,"--n-content-margin":k,"--n-title-font-size":C,"--n-title-font-weight":x,"--n-title-text-color":c,"--n-action-space":_}})),c=n?tv("dialog",Ca((()=>`${e.type[0]}${a.value[0]}`)),l,e):void 0;return{mergedClsPrefix:o,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:s,handlePositiveClick:function(t){const{onPositiveClick:o}=e;o&&o(t)},handleNegativeClick:function(t){const{onNegativeClick:o}=e;o&&o(t)},handleCloseClick:function(){const{onClose:t}=e;t&&t()},cssVars:n?void 0:l,themeClass:null==c?void 0:c.themeClass,onRender:null==c?void 0:c.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:o,cssVars:n,closable:r,showIcon:i,title:a,content:s,action:l,negativeText:c,positiveText:u,positiveButtonProps:d,negativeButtonProps:f,handlePositiveClick:p,handleNegativeClick:h,mergedTheme:m,loading:g,type:v,mergedClsPrefix:b}=this;null===(e=this.onRender)||void 0===e||e.call(this);const y=i?Sa(fv,{clsPrefix:b,class:`${b}-dialog__icon`},{default:()=>Dl(this.$slots.icon,(e=>e||(this.icon?Rl(this.icon):fS[this.type]())))}):null,x=Dl(this.$slots.action,(e=>e||u||c||l?Sa("div",{class:[`${b}-dialog__action`,this.actionClass],style:this.actionStyle},e||(l?[Rl(l)]:[this.negativeText&&Sa(Lx,Object.assign({theme:m.peers.Button,themeOverrides:m.peerOverrides.Button,ghost:!0,size:"small",onClick:h},f),{default:()=>Rl(this.negativeText)}),this.positiveText&&Sa(Lx,Object.assign({theme:m.peers.Button,themeOverrides:m.peerOverrides.Button,size:"small",type:"default"===v?"primary":v,disabled:g,loading:g,onClick:p},d),{default:()=>Rl(this.positiveText)})])):null));return Sa("div",{class:[`${b}-dialog`,this.themeClass,this.closable&&`${b}-dialog--closable`,`${b}-dialog--icon-${o}`,t&&`${b}-dialog--bordered`,this.rtlEnabled&&`${b}-dialog--rtl`],style:n,role:"dialog"},r?Dl(this.$slots.close,(e=>{const t=[`${b}-dialog__close`,this.rtlEnabled&&`${b}-dialog--rtl`];return e?Sa("div",{class:t},e):Sa(hv,{clsPrefix:b,class:t,onClick:this.handleCloseClick})})):null,i&&"top"===o?Sa("div",{class:`${b}-dialog-icon-container`},y):null,Sa("div",{class:[`${b}-dialog__title`,this.titleClass],style:this.titleStyle},i&&"left"===o?y:null,Bl(this.$slots.header,(()=>[Rl(a)]))),Sa("div",{class:[`${b}-dialog__content`,x?"":`${b}-dialog__content--last`,this.contentClass],style:this.contentStyle},Bl(this.$slots.default,(()=>[Rl(s)]))),x)}}),hS="n-dialog-provider",mS="n-dialog-api";function gS(e){const{modalColor:t,textColor2:o,boxShadow3:n}=e;return{color:t,textColor:o,boxShadow:n}}const vS={name:"Modal",common:py,peers:{Scrollbar:xy,Dialog:sS,Card:qx},self:gS},bS={name:"Modal",common:Sb,peers:{Scrollbar:Cy,Dialog:lS,Card:Gx},self:gS},yS=Object.assign(Object.assign({},Kx),cS),xS=Il(yS),CS=qn({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},yS),{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=Io(null),o=Io(null),n=Io(e.show),r=Io(null),i=Io(null);vi(Uo(e,"show"),(e=>{e&&(n.value=!0)})),vd(Ca((()=>e.blockScroll&&n.value)));const a=qr(Zc);function s(){if("center"===a.transformOriginRef.value)return"";const{value:e}=r,{value:t}=i;if(null===e||null===t)return"";if(o.value){return`${e}px ${t+o.value.containerScrollTop}px`}return""}const l=Io(null);return vi(l,(e=>{e&&cn((()=>{const o=e.el;o&&t.value!==o&&(t.value=o)}))})),Vr(Xc,t),Vr(eu,null),Vr(ou,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,displayed:n,childNodeRef:l,handlePositiveClick:function(){e.onPositiveClick()},handleNegativeClick:function(){e.onNegativeClick()},handleCloseClick:function(){const{onClose:t}=e;t&&t()},handleAfterLeave:function(){n.value=!1,r.value=null,i.value=null,e.onAfterLeave()},handleBeforeLeave:function(t){t.style.transformOrigin=s(),e.onBeforeLeave()},handleEnter:function(e){cn((()=>{!function(e){if("center"===a.transformOriginRef.value)return;const t=a.getMousePosition();if(!t)return;if(!o.value)return;const n=o.value.containerScrollTop,{offsetLeft:l,offsetTop:c}=e;if(t){const e=t.y,o=t.x;r.value=-(l-o),i.value=-(c-e-n)}e.style.transformOrigin=s()}(e)}))}}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterLeave:n,handleBeforeLeave:r,preset:i,mergedClsPrefix:a}=this;let s=null;if(!i){if(s=Ll(e),!s)return void $l("modal","default slot is empty");s=Yi(s),s.props=na({class:`${a}-modal`},t,s.props||{})}return"show"===this.displayDirective||this.displayed||this.show?xn(Sa("div",{role:"none",class:`${a}-modal-body-wrapper`},Sa(ky,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var t;return[null===(t=this.renderMask)||void 0===t?void 0:t.call(this),Sa(ud,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var t;return Sa(La,{name:"fade-in-scale-up-transition",appear:null!==(t=this.appear)&&void 0!==t?t:this.isMounted,onEnter:o,onAfterEnter:this.onAfterEnter,onAfterLeave:n,onBeforeLeave:r},{default:()=>{const t=[[Ja,this.show]],{onClickoutside:o}=this;return o&&t.push([su,this.onClickoutside,void 0,{capture:!0}]),xn("confirm"===this.preset||"dialog"===this.preset?Sa(pS,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},Tl(this.$props,uS),{"aria-modal":"true"}),e):"card"===this.preset?Sa(Jx,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},Tl(this.$props,Yx),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=s,t)}})}})]}})),[[Ja,"if"===this.displayDirective||this.displayed||this.show]]):null}}),SS=gc([bc("modal-container","\n position: fixed;\n left: 0;\n top: 0;\n height: 0;\n width: 0;\n display: flex;\n "),bc("modal-mask","\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, .4);\n ",[wy({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),bc("modal-body-wrapper","\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n overflow: visible;\n ",[bc("modal-scroll-content","\n min-height: 100%;\n display: flex;\n position: relative;\n ")]),bc("modal","\n position: relative;\n align-self: center;\n color: var(--n-text-color);\n margin: auto;\n box-shadow: var(--n-box-shadow);\n ",[$y({duration:".25s",enterScale:".5"})])]),wS=qn({name:"Modal",inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign(Object.assign({},Tg.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}}),yS),{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}),setup(e){const t=Io(null),{mergedClsPrefixRef:o,namespaceRef:n,inlineThemeDisabled:r}=Og(e),i=Tg("Modal","-modal",SS,vS,e,o),a=Kc(64),s=Uc(),l=Yc(),c=e.internalDialog?qr(hS,null):null,u=e.internalModal?qr("n-modal-provider",null):null,d=Sd();function f(t){const{onUpdateShow:o,"onUpdate:show":n,onHide:r}=e;o&&Ml(o,t),n&&Ml(n,t),r&&!t&&r(t)}Vr(Zc,{getMousePosition:()=>{const e=c||u;if(e){const{clickedRef:t,clickedPositionRef:o}=e;if(t.value&&o.value)return o.value}return a.value?s.value:null},mergedClsPrefixRef:o,mergedThemeRef:i,isMountedRef:l,appearRef:Uo(e,"internalAppear"),transformOriginRef:Uo(e,"transformOrigin")});const p=Ca((()=>{const{common:{cubicBezierEaseOut:e},self:{boxShadow:t,color:o,textColor:n}}=i.value;return{"--n-bezier-ease-out":e,"--n-box-shadow":t,"--n-color":o,"--n-text-color":n}})),h=r?tv("theme-class",void 0,p,e):void 0;return{mergedClsPrefix:o,namespace:n,isMounted:l,containerRef:t,presetProps:Ca((()=>Tl(e,xS))),handleEsc:function(t){var o;null===(o=e.onEsc)||void 0===o||o.call(e),e.show&&e.closeOnEsc&&Mc(t)&&(d.value||f(!1))},handleAfterLeave:function(){const{onAfterLeave:t,onAfterHide:o}=e;t&&Ml(t),o&&o()},handleClickoutside:function(o){var n;const{onMaskClick:r}=e;r&&r(o),e.maskClosable&&(null===(n=t.value)||void 0===n?void 0:n.contains(zs(o)))&&f(!1)},handleBeforeLeave:function(){const{onBeforeLeave:t,onBeforeHide:o}=e;t&&Ml(t),o&&o()},doUpdateShow:f,handleNegativeClick:function(){const{onNegativeClick:t}=e;t?Promise.resolve(t()).then((e=>{!1!==e&&f(!1)})):f(!1)},handlePositiveClick:function(){const{onPositiveClick:t}=e;t?Promise.resolve(t()).then((e=>{!1!==e&&f(!1)})):f(!1)},handleCloseClick:function(){const{onClose:t}=e;t?Promise.resolve(t()).then((e=>{!1!==e&&f(!1)})):f(!1)},cssVars:r?void 0:p,themeClass:null==h?void 0:h.themeClass,onRender:null==h?void 0:h.onRender}},render(){const{mergedClsPrefix:e}=this;return Sa(mu,{to:this.to,show:this.show},{default:()=>{var t;null===(t=this.onRender)||void 0===t||t.call(this);const{unstableShowMask:o}=this;return xn(Sa("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},Sa(CS,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 t;return Sa(La,{name:"fade-in-transition",key:"mask",appear:null!==(t=this.internalAppear)&&void 0!==t?t:this.isMounted},{default:()=>this.show?Sa("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[uu,{zIndex:this.zIndex,enabled:this.show}]])}})}}),_S=Object.assign(Object.assign({},cS),{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}),kS=qn({name:"DialogEnvironment",props:Object.assign(Object.assign({},_S),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=Io(!0);function o(){t.value=!1}return{show:t,hide:o,handleUpdateShow:function(e){t.value=e},handleAfterLeave:function(){const{onInternalAfterLeave:t,internalKey:o,onAfterLeave:n}=e;t&&t(o),n&&n()},handleCloseClick:function(){const{onClose:t}=e;t?Promise.resolve(t()).then((e=>{!1!==e&&o()})):o()},handleNegativeClick:function(t){const{onNegativeClick:n}=e;n?Promise.resolve(n(t)).then((e=>{!1!==e&&o()})):o()},handlePositiveClick:function(t){const{onPositiveClick:n}=e;n?Promise.resolve(n(t)).then((e=>{!1!==e&&o()})):o()},handleMaskClick:function(t){const{onMaskClick:n,maskClosable:r}=e;n&&(n(t),r&&o())},handleEsc:function(){const{onEsc:t}=e;t&&t()}}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:n,handleAfterLeave:r,handleMaskClick:i,handleEsc:a,to:s,maskClosable:l,show:c}=this;return Sa(wS,{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:()=>Sa(pS,Object.assign({},Tl(this.$props,uS),{style:this.internalStyle,onClose:n,onNegativeClick:o,onPositiveClick:e}))})}}),PS=qn({name:"DialogProvider",props:{injectionKey:String,to:[String,Object]},setup(){const e=Io([]),t={};function o(o={}){const n=kl(),r=bo(Object.assign(Object.assign({},o),{key:n,destroy:()=>{var e;null===(e=t[`n-dialog-${n}`])||void 0===e||e.hide()}}));return e.value.push(r),r}const n=["info","success","warning","error"].map((e=>t=>o(Object.assign(Object.assign({},t),{type:e}))));const r={create:o,destroyAll:function(){Object.values(t).forEach((e=>{null==e||e.hide()}))},info:n[0],success:n[1],warning:n[2],error:n[3]};return Vr(mS,r),Vr(hS,{clickedRef:Kc(64),clickedPositionRef:Uc()}),Vr("n-dialog-reactive-list",e),Object.assign(Object.assign({},r),{dialogList:e,dialogInstRefs:t,handleAfterLeave:function(t){const{value:o}=e;o.splice(o.findIndex((e=>e.key===t)),1)}})},render(){var e,t;return Sa(Ii,null,[this.dialogList.map((e=>Sa(kS,El(e,["destroy","style"],{internalStyle:e.style,to:this.to,ref:t=>{null===t?delete this.dialogInstRefs[`n-dialog-${e.key}`]:this.dialogInstRefs[`n-dialog-${e.key}`]=t},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave})))),null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}});function TS(e){const{textColor1:t,dividerColor:o,fontWeightStrong:n}=e;return{textColor:t,color:o,fontWeight:n}}const ES={name:"Divider",common:py,self:TS},OS={name:"Divider",common:Sb,self:TS};function MS(e){const{modalColor:t,textColor1:o,textColor2:n,boxShadow3:r,lineHeight:i,fontWeightStrong:a,dividerColor:s,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:p,primaryColorHover:h}=e;return{bodyPadding:"16px 24px",borderRadius:p,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:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:h}}const IS={name:"Drawer",common:py,peers:{Scrollbar:xy},self:MS},RS={name:"Drawer",common:Sb,peers:{Scrollbar:Cy},self:MS},$S={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},AS={name:"DynamicInput",common:Sb,peers:{Input:sx,Button:$x},self:()=>$S};const LS={name:"DynamicInput",common:py,peers:{Input:lx,Button:Rx},self:function(){return $S}},zS={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},FS={name:"Space",self:()=>zS};const BS={name:"Space",self:function(){return zS}},jS={name:"DynamicTags",common:Sb,peers:{Input:sx,Button:$x,Tag:Hy,Space:FS},self:()=>({inputWidth:"64px"})},DS={name:"DynamicTags",common:py,peers:{Input:lx,Button:Rx,Tag:Wy,Space:BS},self:()=>({inputWidth:"64px"})},HS={name:"Element",common:Sb},WS={name:"Element",common:py},NS={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},US={name:"Flex",self:()=>NS};const VS={name:"Flex",self:function(){return NS}},qS={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 GS(e){const{heightSmall:t,heightMedium:o,heightLarge:n,textColor1:r,errorColor:i,warningColor:a,lineHeight:s,textColor3:l}=e;return Object.assign(Object.assign({},qS),{blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:n,lineHeight:s,labelTextColor:r,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:l})}const QS={name:"Form",common:py,self:GS},KS={name:"Form",common:Sb,self:GS},YS={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function JS(e){const{textColor2:t,successColor:o,infoColor:n,warningColor:r,errorColor:i,popoverColor:a,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:p,borderRadius:h,fontWeightStrong:m,boxShadow2:g,lineHeight:v,fontSize:b}=e;return Object.assign(Object.assign({},YS),{borderRadius:h,lineHeight:v,fontSize:b,headerFontWeight:m,iconColor:t,iconColorSuccess:o,iconColorInfo:n,iconColorWarning:r,iconColorError:i,color:a,textColor:t,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeBorderRadius:h,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:g})}const XS={name:"Notification",common:py,peers:{Scrollbar:xy},self:JS},ZS={name:"Notification",common:Sb,peers:{Scrollbar:Cy},self:JS},ew={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 tw(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,infoColor:i,successColor:a,errorColor:s,warningColor:l,popoverColor:c,boxShadow2:u,primaryColor:d,lineHeight:f,borderRadius:p,closeColorHover:h,closeColorPressed:m}=e;return Object.assign(Object.assign({},ew),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:l,iconColorError:s,iconColorLoading:d,closeColorHover:h,closeColorPressed:m,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,closeColorHoverInfo:h,closeColorPressedInfo:m,closeIconColorInfo:o,closeIconColorHoverInfo:n,closeIconColorPressedInfo:r,closeColorHoverSuccess:h,closeColorPressedSuccess:m,closeIconColorSuccess:o,closeIconColorHoverSuccess:n,closeIconColorPressedSuccess:r,closeColorHoverError:h,closeColorPressedError:m,closeIconColorError:o,closeIconColorHoverError:n,closeIconColorPressedError:r,closeColorHoverWarning:h,closeColorPressedWarning:m,closeIconColorWarning:o,closeIconColorHoverWarning:n,closeIconColorPressedWarning:r,closeColorHoverLoading:h,closeColorPressedLoading:m,closeIconColorLoading:o,closeIconColorHoverLoading:n,closeIconColorPressedLoading:r,loadingColor:d,lineHeight:f,borderRadius:p})}const ow={name:"Message",common:py,self:tw},nw={name:"Message",common:Sb,self:tw},rw={name:"ButtonGroup",common:Sb},iw={name:"ButtonGroup",common:py},aw={name:"GradientText",common:Sb,self(e){const{primaryColor:t,successColor:o,warningColor:n,errorColor:r,infoColor:i,primaryColorSuppl:a,successColorSuppl:s,warningColorSuppl:l,errorColorSuppl:c,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:u,colorStartWarning:n,colorEndWarning:l,colorStartError:r,colorEndError:c,colorStartSuccess:o,colorEndSuccess:s}}};const sw={name:"GradientText",common:py,self:function(e){const{primaryColor:t,successColor:o,warningColor:n,errorColor:r,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:dl(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:dl(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:dl(n,{alpha:.6}),colorEndWarning:n,colorStartError:dl(r,{alpha:.6}),colorEndError:r,colorStartSuccess:dl(o,{alpha:.6}),colorEndSuccess:o}}},lw={name:"InputNumber",common:Sb,peers:{Button:$x,Input:sx},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};const cw={name:"InputNumber",common:py,peers:{Button:Rx,Input:lx},self:function(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},uw={name:"Layout",common:Sb,peers:{Scrollbar:Cy},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:ul(o,a),siderToggleBarColorHover:ul(o,s),__invertScrollbar:"false"}}};const dw={name:"Layout",common:py,peers:{Scrollbar:xy},self:function(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:ul(n,s),siderToggleBarColorHover:ul(n,l),__invertScrollbar:"true"}}};function fw(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:ul(n,l),colorPopover:r,colorHoverPopover:ul(r,l),borderColor:i,borderColorModal:ul(n,i),borderColorPopover:ul(r,i),borderRadius:a,fontSize:s}}const pw={name:"List",common:py,self:fw},hw={name:"List",common:Sb,self:fw},mw={name:"LoadingBar",common:Sb,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};const gw={name:"LoadingBar",common:py,self:function(e){const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}}},vw={name:"Log",common:Sb,peers:{Scrollbar:Cy,Code:lC},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}}};const bw={name:"Log",common:py,peers:{Scrollbar:xy,Code:cC},self:function(e){const{textColor2:t,modalColor:o,borderColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${n}`,loadingColor:i}}},yw={name:"Mention",common:Sb,peers:{InternalSelectMenu:My,Input:sx},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};const xw={name:"Mention",common:py,peers:{InternalSelectMenu:Oy,Input:lx},self:function(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function Cw(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:dl(n,{alpha:.1}),itemColorActiveHover:dl(n,{alpha:.1}),itemColorActiveCollapsed:dl(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},{itemColorHoverInverted:"#0000",itemColorActiveInverted:d=n,itemColorActiveHoverInverted:d,itemColorActiveCollapsedInverted:d,itemTextColorInverted:u="#BBB",itemTextColorHoverInverted:f="#FFF",itemTextColorChildActiveInverted:f,itemTextColorChildActiveHoverInverted:f,itemTextColorActiveInverted:f,itemTextColorActiveHoverInverted:f,itemTextColorHorizontalInverted:u,itemTextColorHoverHorizontalInverted:f,itemTextColorChildActiveHorizontalInverted:f,itemTextColorChildActiveHoverHorizontalInverted:f,itemTextColorActiveHorizontalInverted:f,itemTextColorActiveHoverHorizontalInverted:f,itemIconColorInverted:u,itemIconColorHoverInverted:f,itemIconColorActiveInverted:f,itemIconColorActiveHoverInverted:f,itemIconColorChildActiveInverted:f,itemIconColorChildActiveHoverInverted:f,itemIconColorCollapsedInverted:u,itemIconColorHorizontalInverted:u,itemIconColorHoverHorizontalInverted:f,itemIconColorActiveHorizontalInverted:f,itemIconColorActiveHoverHorizontalInverted:f,itemIconColorChildActiveHorizontalInverted:f,itemIconColorChildActiveHoverHorizontalInverted:f,arrowColorInverted:u,arrowColorHoverInverted:f,arrowColorActiveInverted:f,arrowColorActiveHoverInverted:f,arrowColorChildActiveInverted:f,arrowColorChildActiveHoverInverted:f,groupTextColorInverted:"#AAA"});var u,d,f}const Sw={name:"Menu",common:py,peers:{Tooltip:EC,Dropdown:zC},self:Cw},ww={name:"Menu",common:Sb,peers:{Tooltip:TC,Dropdown:FC},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,n=Cw(e);return n.itemColorActive=dl(t,{alpha:.15}),n.itemColorActiveHover=dl(t,{alpha:.15}),n.itemColorActiveCollapsed=dl(t,{alpha:.15}),n.itemColorActiveInverted=o,n.itemColorActiveHoverInverted=o,n.itemColorActiveCollapsedInverted=o,n}},_w={titleFontSize:"18px",backSize:"22px"};function kw(e){const{textColor1:t,textColor2:o,textColor3:n,fontSize:r,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:s}=e;return Object.assign(Object.assign({},_w),{titleFontWeight:i,fontSize:r,titleTextColor:t,backColor:o,backColorHover:a,backColorPressed:s,subtitleTextColor:n})}const Pw={name:"PageHeader",common:py,self:kw},Tw={name:"PageHeader",common:Sb,self:kw},Ew={iconSize:"22px"};function Ow(e){const{fontSize:t,warningColor:o}=e;return Object.assign(Object.assign({},Ew),{fontSize:t,iconColor:o})}const Mw={name:"Popconfirm",common:py,peers:{Button:Rx,Popover:By},self:Ow},Iw={name:"Popconfirm",common:Sb,peers:{Button:$x,Popover:jy},self:Ow};function Rw(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 $w={name:"Progress",common:py,self:Rw},Aw={name:"Progress",common:Sb,self(e){const t=Rw(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}},Lw={name:"Rate",common:Sb,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};const zw={name:"Rate",common:py,self:function(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},Fw={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 Bw(e){const{textColor2:t,textColor1:o,errorColor:n,successColor:r,infoColor:i,warningColor:a,lineHeight:s,fontWeightStrong:l}=e;return Object.assign(Object.assign({},Fw),{lineHeight:s,titleFontWeight:l,titleTextColor:o,textColor:t,iconColorError:n,iconColorSuccess:r,iconColorInfo:i,iconColorWarning:a})}const jw={name:"Result",common:py,self:Bw},Dw={name:"Result",common:Sb,self:Bw},Hw={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},Ww={name:"Slider",common:Sb,self(e){const{railColor:t,modalColor:o,primaryColorSuppl:n,popoverColor:r,textColor2:i,cardColor:a,borderRadius:s,fontSize:l,opacityDisabled:c}=e;return Object.assign(Object.assign({},Hw),{fontSize:l,markFontSize:l,railColor:t,railColorHover:t,fillColor:n,fillColorHover:n,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:o,dotColorPopover:r,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:r,indicatorBoxShadow:"0 2px 8px 0 rgba(0, 0, 0, 0.12)",indicatorTextColor:i,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})}};const Nw={name:"Slider",common:py,self:function(e){const{railColor:t,primaryColor:o,baseColor:n,cardColor:r,modalColor:i,popoverColor:a,borderRadius:s,fontSize:l,opacityDisabled:c}=e;return Object.assign(Object.assign({},Hw),{fontSize:l,markFontSize:l,railColor:t,railColorHover:t,fillColor:o,fillColorHover:o,opacityDisabled:c,handleColor:"#FFF",dotColor:r,dotColorModal:i,dotColorPopover:a,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:"rgba(0, 0, 0, .85)",indicatorBoxShadow:"0 2px 8px 0 rgba(0, 0, 0, 0.12)",indicatorTextColor:n,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})}};function Uw(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 Vw={name:"Spin",common:py,self:Uw},qw={name:"Spin",common:Sb,self:Uw};function Gw(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 Qw={name:"Statistic",common:py,self:Gw},Kw={name:"Statistic",common:Sb,self:Gw},Yw={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Jw(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:n,primaryColor:r,errorColor:i,textColor1:a,textColor2:s}=e;return Object.assign(Object.assign({},Yw),{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 Xw={name:"Steps",common:py,self:Jw},Zw={name:"Steps",common:Sb,self:Jw},e_={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"},t_={name:"Switch",common:Sb,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:n,primaryColor:r,textColor2:i,baseColor:a}=e;return Object.assign(Object.assign({},e_),{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 ${dl(r,{alpha:.3})}`})}};const o_={name:"Switch",common:py,self:function(e){const{primaryColor:t,opacityDisabled:o,borderRadius:n,textColor3:r}=e;return Object.assign(Object.assign({},e_),{iconColor:r,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 0 2px ${dl(t,{alpha:.2})}`})}},n_={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function r_(e){const{dividerColor:t,cardColor:o,modalColor:n,popoverColor:r,tableHeaderColor:i,tableColorStriped:a,textColor1:s,textColor2:l,borderRadius:c,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:h}=e;return Object.assign(Object.assign({},n_),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:h,lineHeight:d,borderRadius:c,borderColor:ul(o,t),borderColorModal:ul(n,t),borderColorPopover:ul(r,t),tdColor:o,tdColorModal:n,tdColorPopover:r,tdColorStriped:ul(o,a),tdColorStripedModal:ul(n,a),tdColorStripedPopover:ul(r,a),thColor:ul(o,i),thColorModal:ul(n,i),thColorPopover:ul(r,i),thTextColor:s,tdTextColor:l,thFontWeight:u})}const i_={name:"Table",common:py,self:r_},a_={name:"Table",common:Sb,self:r_},s_={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 l_(e){const{textColor2:t,primaryColor:o,textColorDisabled:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,tabColor:c,baseColor:u,dividerColor:d,fontWeight:f,textColor1:p,borderRadius:h,fontSize:m,fontWeightStrong:g}=e;return Object.assign(Object.assign({},s_),{colorSegment:c,tabFontSizeCard:m,tabTextColorLine:p,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:n,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:n,tabTextColorBar:p,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:n,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:o,tabTextColorDisabledCard:n,barColor:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,closeBorderRadius:h,tabColor:c,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:h,paneTextColor:t,fontWeightStrong:g})}const c_={name:"Tabs",common:py,self:l_},u_={name:"Tabs",common:Sb,self(e){const t=l_(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function d_(e){const{textColor1:t,textColor2:o,fontWeightStrong:n,fontSize:r}=e;return{fontSize:r,titleTextColor:t,textColor:o,titleFontWeight:n}}const f_={name:"Thing",common:py,self:d_},p_={name:"Thing",common:Sb,self:d_},h_={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},m_={name:"Timeline",common:Sb,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,textColor1:a,textColor2:s,railColor:l,fontWeightStrong:c,fontSize:u}=e;return Object.assign(Object.assign({},h_),{contentFontSize:u,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})}};const g_={name:"Timeline",common:py,self:function(e){const{textColor3:t,infoColor:o,errorColor:n,successColor:r,warningColor:i,textColor1:a,textColor2:s,railColor:l,fontWeightStrong:c,fontSize:u}=e;return Object.assign(Object.assign({},h_),{contentFontSize:u,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})}},v_={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},b_={name:"Transfer",common:Sb,peers:{Checkbox:rC,Scrollbar:Cy,Input:sx,Empty:vy,Button:$x},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:n,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:s,inputColor:l,tableHeaderColor:c,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,hoverColor:h,closeColorHover:m,closeColorPressed:g,closeIconColor:v,closeIconColorHover:b,closeIconColorPressed:y,dividerColor:x}=e;return Object.assign(Object.assign({},v_),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:o,borderRadius:s,dividerColor:x,borderColor:"#0000",listColor:l,headerColor:c,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:h,titleFontWeight:t,closeColorHover:m,closeColorPressed:g,closeIconColor:v,closeIconColorHover:b,closeIconColorPressed:y})}};const y_={name:"Transfer",common:py,peers:{Checkbox:nC,Scrollbar:xy,Input:lx,Empty:gy,Button:Rx},self:function(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:n,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:s,cardColor:l,tableHeaderColor:c,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,borderColor:h,hoverColor:m,closeColorHover:g,closeColorPressed:v,closeIconColor:b,closeIconColorHover:y,closeIconColorPressed:x}=e;return Object.assign(Object.assign({},v_),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:o,borderRadius:s,dividerColor:h,borderColor:h,listColor:l,headerColor:ul(l,c),titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:m,titleFontWeight:t,closeColorHover:g,closeColorPressed:v,closeIconColor:b,closeIconColorHover:y,closeIconColorPressed:x})}};function x_(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:dl(i,{alpha:.1}),arrowColor:a,nodeTextColor:s,nodeTextColorDisabled:l,loadingColor:i,dropMarkColor:i,lineColor:o}}const C_={name:"Tree",common:py,peers:{Checkbox:nC,Scrollbar:xy,Empty:gy},self:x_},S_={name:"Tree",common:Sb,peers:{Checkbox:rC,Scrollbar:Cy,Empty:vy},self(e){const{primaryColor:t}=e,o=x_(e);return o.nodeColorActive=dl(t,{alpha:.15}),o}},w_={name:"TreeSelect",common:Sb,peers:{Tree:S_,Empty:vy,InternalSelection:Vy}};const __={name:"TreeSelect",common:py,peers:{Tree:C_,Empty:gy,InternalSelection:Uy},self:function(e){const{popoverColor:t,boxShadow2:o,borderRadius:n,heightMedium:r,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:n,menuHeight:`calc(${r} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:a,headerPadding:"8px 12px"}}},k_={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 P_(e){const{primaryColor:t,textColor2:o,borderColor:n,lineHeight:r,fontSize:i,borderRadiusSmall:a,dividerColor:s,fontWeightStrong:l,textColor1:c,textColor3:u,infoColor:d,warningColor:f,errorColor:p,successColor:h,codeColor:m}=e;return Object.assign(Object.assign({},k_),{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:u,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:h,textColor:o,textColor1Depth:c,textColor2Depth:o,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:h,textColorWarning:f,textColorError:p,codeTextColor:o,codeColor:m,codeBorder:"1px solid #0000"})}const T_={name:"Typography",common:py,self:P_},E_={name:"Typography",common:Sb,self:P_};function O_(e){const{iconColor:t,primaryColor:o,errorColor:n,textColor2:r,successColor:i,opacityDisabled:a,actionColor:s,borderColor:l,hoverColor:c,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:c,itemColorHoverError:dl(n,{alpha:.06}),itemTextColor:r,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${l}`}}const M_={name:"Upload",common:py,peers:{Button:Rx,Progress:$w},self:O_},I_={name:"Upload",common:Sb,peers:{Button:$x,Progress:Aw},self(e){const{errorColor:t}=e,o=O_(e);return o.itemColorHoverError=dl(t,{alpha:.09}),o}},R_={name:"Watermark",common:Sb,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},$_={name:"Watermark",common:py,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},A_={name:"Row",common:py},L_={name:"Row",common:Sb};const z_={name:"FloatButtonGroup",common:py,self:function(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)"}}},F_={name:"FloatButton",common:Sb,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}}};const B_={name:"FloatButton",common:py,self:function(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:n,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:s,borderRadius:l}=e;return{color:t,colorHover:n,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:s,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:l}}},j_=qn({name:"GlobalStyle",setup(){if("undefined"==typeof document)return;const e=qr(kg,null),{body:t}=document,{style:o}=t;let n=!1,r=!0;nr((()=>{gi((()=>{var i,a;const{textColor2:s,fontSize:l,fontFamily:c,bodyColor:u,cubicBezierEaseInOut:d,lineHeight:f}=e?fg({},(null===(i=e.mergedThemeRef.value)||void 0===i?void 0:i.common)||py,null===(a=e.mergedThemeOverridesRef.value)||void 0===a?void 0:a.common):py;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=u,o.color=s,o.fontSize=l,o.fontFamily=c,o.lineHeight=f;const e=`color .3s ${d}, background-color .3s ${d}`;r?setTimeout((()=>{o.transition=e}),0):o.transition=e,t.setAttribute("n-styled",""),n=!0,r=!1}}))})),lr((()=>{n&&t.removeAttribute("n-styled")}))},render:()=>null});function D_(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const H_={name:"IconWrapper",common:py,self:D_},W_={name:"IconWrapper",common:Sb,self:D_};const N_={name:"Image",common:py,peers:{Tooltip:EC},self:function(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},U_={name:"Image",common:Sb,peers:{Tooltip:TC},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},V_={extraFontSize:"12px",width:"440px"},q_={name:"Transfer",common:Sb,peers:{Checkbox:rC,Scrollbar:Cy,Input:sx,Empty:vy,Button:$x},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:n,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:s,heightMedium:l,heightSmall:c,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:h,textColor2:m,hoverColor:g}=e;return Object.assign(Object.assign({},V_),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:u,borderColor:"#0000",listColor:d,headerColor:f,titleTextColor:p,titleTextColorDisabled:h,extraTextColor:m,filterDividerColor:"#0000",itemTextColor:m,itemTextColorDisabled:h,itemColorPending:g,titleFontWeight:n,iconColor:o,iconColorDisabled:t})}};const G_={name:"Transfer",common:py,peers:{Checkbox:nC,Scrollbar:xy,Input:lx,Empty:gy,Button:Rx},self:function(e){const{fontWeight:t,iconColorDisabled:o,iconColor:n,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:s,heightMedium:l,heightSmall:c,borderRadius:u,cardColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:h,textColor2:m,borderColor:g,hoverColor:v}=e;return Object.assign(Object.assign({},V_),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:u,borderColor:g,listColor:d,headerColor:ul(d,f),titleTextColor:p,titleTextColorDisabled:h,extraTextColor:m,filterDividerColor:g,itemTextColor:m,itemTextColorDisabled:h,itemColorPending:v,titleFontWeight:t,iconColor:n,iconColorDisabled:o})}},Q_="n-loading-bar",K_=bc("loading-bar-container","\n z-index: 5999;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n height: 2px;\n",[wy({enterDuration:"0.3s",leaveDuration:"0.8s"}),bc("loading-bar","\n width: 100%;\n transition:\n max-width 4s linear,\n background .2s linear;\n height: var(--n-height);\n ",[xc("starting","\n background: var(--n-color-loading);\n "),xc("finishing","\n background: var(--n-color-loading);\n transition:\n max-width .2s linear,\n background .2s linear;\n "),xc("error","\n background: var(--n-color-error);\n transition:\n max-width .2s linear,\n background .2s linear;\n ")])]);var Y_=function(e,t,o,n){return new(o||(o=Promise))((function(r,i){function a(e){try{l(n.next(e))}catch(hD){i(hD)}}function s(e){try{l(n.throw(e))}catch(hD){i(hD)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};function J_(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const X_=qn({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=Og(),{props:t,mergedClsPrefixRef:o}=qr(Q_),n=Io(null),r=Io(!1),i=Io(!1),a=Io(!1),s=Io(!1);let l=!1;const c=Io(!1),u=Ca((()=>{const{loadingBarStyle:e}=t;return e?e[c.value?"error":"loading"]:""}));function d(){return Y_(this,void 0,void 0,(function*(){r.value=!1,a.value=!1,l=!1,c.value=!1,s.value=!0,yield cn(),s.value=!1}))}function f(){return Y_(this,arguments,void 0,(function*(e=0,t=80,r="starting"){if(i.value=!0,yield d(),l)return;a.value=!0,yield cn();const s=n.value;s&&(s.style.maxWidth=`${e}%`,s.style.transition="none",s.offsetWidth,s.className=J_(r,o.value),s.style.transition="",s.style.maxWidth=`${t}%`)}))}const p=Tg("LoadingBar","-loading-bar",K_,gw,t,o),h=Ca((()=>{const{self:{height:e,colorError:t,colorLoading:o}}=p.value;return{"--n-height":e,"--n-color-loading":o,"--n-color-error":t}})),m=e?tv("loading-bar",void 0,h,t):void 0;return{mergedClsPrefix:o,loadingBarRef:n,started:i,loading:a,entering:r,transitionDisabled:s,start:f,error:function(){if(!l&&!c.value)if(a.value){c.value=!0;const e=n.value;if(!e)return;e.className=J_("error",o.value),e.style.maxWidth="100%",e.offsetWidth,a.value=!1}else f(100,100,"error").then((()=>{c.value=!0;const e=n.value;e&&(e.className=J_("error",o.value),e.offsetWidth,a.value=!1)}))},finish:function(){return Y_(this,void 0,void 0,(function*(){if(l||c.value)return;i.value&&(yield cn()),l=!0;const e=n.value;e&&(e.className=J_("finishing",o.value),e.style.maxWidth="100%",e.offsetWidth,a.value=!1)}))},handleEnter:function(){r.value=!0},handleAfterEnter:function(){r.value=!1},handleAfterLeave:function(){return Y_(this,void 0,void 0,(function*(){yield d()}))},mergedLoadingBarStyle:u,cssVars:e?void 0:h,themeClass:null==m?void 0:m.themeClass,onRender:null==m?void 0:m.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return Sa(La,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return null===(t=this.onRender)||void 0===t||t.call(this),xn(Sa("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},Sa("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Ja,this.loading||!this.loading&&this.entering]])}})}}),Z_=qn({name:"LoadingBarProvider",props:Object.assign(Object.assign({},Tg.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),setup(e){const t=Yc(),o=Io(null),n={start(){var e;t.value?null===(e=o.value)||void 0===e||e.start():cn((()=>{var e;null===(e=o.value)||void 0===e||e.start()}))},error(){var e;t.value?null===(e=o.value)||void 0===e||e.error():cn((()=>{var e;null===(e=o.value)||void 0===e||e.error()}))},finish(){var e;t.value?null===(e=o.value)||void 0===e||e.finish():cn((()=>{var e;null===(e=o.value)||void 0===e||e.finish()}))}},{mergedClsPrefixRef:r}=Og(e);return Vr("n-loading-bar-api",n),Vr(Q_,{props:e,mergedClsPrefixRef:r}),Object.assign(n,{loadingBarRef:o})},render(){var e,t;return Sa(Ii,null,Sa(On,{disabled:!1===this.to,to:this.to||"body"},Sa(X_,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))}}),ek={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},tk="n-message-api",ok="n-message-provider",nk=gc([bc("message-wrapper","\n margin: var(--n-margin);\n z-index: 0;\n transform-origin: top center;\n display: flex;\n ",[Zy({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),bc("message","\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n transform .3s var(--n-bezier),\n margin-bottom .3s var(--n-bezier);\n padding: var(--n-padding);\n border-radius: var(--n-border-radius);\n flex-wrap: nowrap;\n overflow: hidden;\n max-width: var(--n-max-width);\n color: var(--n-text-color);\n background-color: var(--n-color);\n box-shadow: var(--n-box-shadow);\n ",[yc("content","\n display: inline-block;\n line-height: var(--n-line-height);\n font-size: var(--n-font-size);\n "),yc("icon","\n position: relative;\n margin: var(--n-icon-margin);\n height: var(--n-icon-size);\n width: var(--n-icon-size);\n font-size: var(--n-icon-size);\n flex-shrink: 0;\n ",[["default","info","success","warning","error","loading"].map((e=>xc(`${e}-type`,[gc("> *",`\n color: var(--n-icon-color-${e});\n transition: color .3s var(--n-bezier);\n `)]))),gc("> *","\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n ",[gv()])]),yc("close","\n margin: var(--n-close-margin);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n flex-shrink: 0;\n ",[gc("&:hover","\n color: var(--n-close-icon-color-hover);\n "),gc("&:active","\n color: var(--n-close-icon-color-pressed);\n ")])]),bc("message-container","\n z-index: 6000;\n position: fixed;\n height: 0;\n overflow: visible;\n display: flex;\n flex-direction: column;\n align-items: center;\n ",[xc("top","\n top: 12px;\n left: 0;\n right: 0;\n "),xc("top-left","\n top: 12px;\n left: 12px;\n right: 0;\n align-items: flex-start;\n "),xc("top-right","\n top: 12px;\n left: 0;\n right: 12px;\n align-items: flex-end;\n "),xc("bottom","\n bottom: 4px;\n left: 0;\n right: 0;\n justify-content: flex-end;\n "),xc("bottom-left","\n bottom: 4px;\n left: 12px;\n right: 0;\n justify-content: flex-end;\n align-items: flex-start;\n "),xc("bottom-right","\n bottom: 4px;\n left: 0;\n right: 12px;\n justify-content: flex-end;\n align-items: flex-end;\n ")])]),rk={info:()=>Sa(av,null),success:()=>Sa(sv,null),warning:()=>Sa(lv,null),error:()=>Sa(iv,null),default:()=>null},ik=qn({name:"Message",props:Object.assign(Object.assign({},ek),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=Og(e),{props:n,mergedClsPrefixRef:r}=qr(ok),i=ov("Message",o,r),a=Tg("Message","-message",nk,ow,n,r),s=Ca((()=>{const{type:t}=e,{common:{cubicBezierEaseInOut:o},self:{padding:n,margin:r,maxWidth:i,iconMargin:s,closeMargin:l,closeSize:c,iconSize:u,fontSize:d,lineHeight:f,borderRadius:p,iconColorInfo:h,iconColorSuccess:m,iconColorWarning:g,iconColorError:v,iconColorLoading:b,closeIconSize:y,closeBorderRadius:x,[Pc("textColor",t)]:C,[Pc("boxShadow",t)]:S,[Pc("color",t)]:w,[Pc("closeColorHover",t)]:_,[Pc("closeColorPressed",t)]:k,[Pc("closeIconColor",t)]:P,[Pc("closeIconColorPressed",t)]:T,[Pc("closeIconColorHover",t)]:E}}=a.value;return{"--n-bezier":o,"--n-margin":r,"--n-padding":n,"--n-max-width":i,"--n-font-size":d,"--n-icon-margin":s,"--n-icon-size":u,"--n-close-icon-size":y,"--n-close-border-radius":x,"--n-close-size":c,"--n-close-margin":l,"--n-text-color":C,"--n-color":w,"--n-box-shadow":S,"--n-icon-color-info":h,"--n-icon-color-success":m,"--n-icon-color-warning":g,"--n-icon-color-error":v,"--n-icon-color-loading":b,"--n-close-color-hover":_,"--n-close-color-pressed":k,"--n-close-icon-color":P,"--n-close-icon-color-pressed":T,"--n-close-icon-color-hover":E,"--n-line-height":f,"--n-border-radius":p}})),l=t?tv("message",Ca((()=>e.type[0])),s,{}):void 0;return{mergedClsPrefix:r,rtlEnabled:i,messageProviderProps:n,handleClose(){var t;null===(t=e.onClose)||void 0===t||t.call(e)},cssVars:t?void 0:s,themeClass:null==l?void 0:l.themeClass,onRender:null==l?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:u}=this;let d;return null==s||s(),Sa("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):Sa("div",{class:[`${r}-message ${r}-message--${t}-type`,this.rtlEnabled&&`${r}-message--rtl`]},(d=function(e,t,o){if("function"==typeof e)return e();{const e="loading"===t?Sa(xv,{clsPrefix:o,strokeWidth:24,scale:.85}):rk[t]();return e?Sa(fv,{clsPrefix:o,key:t},{default:()=>e}):null}}(l,t,r))&&u?Sa("div",{class:`${r}-message__icon ${r}-message__icon--${t}-type`},Sa(cv,null,{default:()=>d})):null,Sa("div",{class:`${r}-message__content`},Rl(n)),o?Sa(hv,{clsPrefix:r,class:`${r}-message__close`,onClick:c,absolute:!0}):null))}});const ak=qn({name:"MessageEnvironment",props:Object.assign(Object.assign({},ek),{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=Io(!0);function n(){const{duration:o}=e;o&&(t=window.setTimeout(r,o))}function r(){const{onHide:n}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),n&&n()}return rr((()=>{n()})),{show:o,hide:r,handleClose:function(){const{onClose:t}=e;t&&t(),r()},handleAfterLeave:function(){const{onAfterLeave:t,onInternalAfterLeave:o,onAfterHide:n,internalKey:r}=e;t&&t(),o&&o(r),n&&n()},handleMouseleave:function(e){e.currentTarget===e.target&&n()},handleMouseenter:function(e){e.currentTarget===e.target&&null!==t&&(window.clearTimeout(t),t=null)},deactivate:function(){r()}}},render(){return Sa(uv,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?Sa(ik,{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]})}}),sk=qn({name:"MessageProvider",props:Object.assign(Object.assign({},Tg.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]}),setup(e){const{mergedClsPrefixRef:t}=Og(e),o=Io([]),n=Io({}),r={create:(e,t)=>i(e,Object.assign({type:"default"},t)),info:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"info"})),success:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"success"})),warning:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"warning"})),error:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"error"})),loading:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"loading"})),destroyAll:function(){Object.values(n.value).forEach((e=>{e.hide()}))}};function i(t,r){const i=kl(),a=bo(Object.assign(Object.assign({},r),{content:t,key:i,destroy:()=>{var e;null===(e=n.value[i])||void 0===e||e.hide()}})),{max:s}=e;return s&&o.value.length>=s&&o.value.shift(),o.value.push(a),a}return Vr(ok,{props:e,mergedClsPrefixRef:t}),Vr(tk,r),Object.assign({mergedClsPrefix:t,messageRefs:n,messageList:o,handleAfterLeave:function(e){o.value.splice(o.value.findIndex((t=>t.key===e)),1),delete n.value[e]}},r)},render(){var e,t,o;return Sa(Ii,null,null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e),this.messageList.length?Sa(On,{to:null!==(o=this.to)&&void 0!==o?o:"body"},Sa("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map((e=>Sa(ak,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},El(e,["destroy"],void 0),{duration:void 0===e.duration?this.duration:e.duration,keepAliveOnHover:void 0===e.keepAliveOnHover?this.keepAliveOnHover:e.keepAliveOnHover,closable:void 0===e.closable?this.closable:e.closable})))))):null)}}),lk="n-notification-provider",ck=qn({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:o}=qr(lk),n=Io(null);return gi((()=>{var e,t;o.value>0?null===(e=null==n?void 0:n.value)||void 0===e||e.classList.add("transitioning"):null===(t=null==n?void 0:n.value)||void 0===t||t.classList.remove("transitioning")})),{selfRef:n,mergedTheme:e,mergedClsPrefix:t,transitioning:o}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:o,mergedTheme:n,placement:r}=this;return Sa("div",{ref:"selfRef",class:[`${o}-notification-container`,t&&`${o}-notification-container--scrollable`,`${o}-notification-container--${r}`]},t?Sa(ky,{theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),uk={info:()=>Sa(av,null),success:()=>Sa(sv,null),warning:()=>Sa(lv,null),error:()=>Sa(iv,null),default:()=>null},dk={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},fk=Il(dk),pk=qn({name:"Notification",props:dk,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:o,props:n}=qr(lk),{inlineThemeDisabled:r,mergedRtlRef:i}=Og(),a=ov("Notification",i,t),s=Ca((()=>{const{type:t}=e,{self:{color:n,textColor:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:s,headerTextColor:l,descriptionTextColor:c,actionTextColor:u,borderRadius:d,headerFontWeight:f,boxShadow:p,lineHeight:h,fontSize:m,closeMargin:g,closeSize:v,width:b,padding:y,closeIconSize:x,closeBorderRadius:C,closeColorHover:S,closeColorPressed:w,titleFontSize:_,metaFontSize:k,descriptionFontSize:P,[Pc("iconColor",t)]:T},common:{cubicBezierEaseOut:E,cubicBezierEaseIn:O,cubicBezierEaseInOut:M}}=o.value,{left:I,right:R,top:$,bottom:A}=js(y);return{"--n-color":n,"--n-font-size":m,"--n-text-color":r,"--n-description-text-color":c,"--n-action-text-color":u,"--n-title-text-color":l,"--n-title-font-weight":f,"--n-bezier":M,"--n-bezier-ease-out":E,"--n-bezier-ease-in":O,"--n-border-radius":d,"--n-box-shadow":p,"--n-close-border-radius":C,"--n-close-color-hover":S,"--n-close-color-pressed":w,"--n-close-icon-color":i,"--n-close-icon-color-hover":a,"--n-close-icon-color-pressed":s,"--n-line-height":h,"--n-icon-color":T,"--n-close-margin":g,"--n-close-size":v,"--n-close-icon-size":x,"--n-width":b,"--n-padding-left":I,"--n-padding-right":R,"--n-padding-top":$,"--n-padding-bottom":A,"--n-title-font-size":_,"--n-meta-font-size":k,"--n-description-font-size":P}})),l=r?tv("notification",Ca((()=>e.type[0])),s,n):void 0;return{mergedClsPrefix:t,showAvatar:Ca((()=>e.avatar||"default"!==e.type)),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:r?void 0:s,themeClass:null==l?void 0:l.themeClass,onRender:null==l?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return null===(e=this.onRender)||void 0===e||e.call(this),Sa("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},Sa("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?Sa("div",{class:`${t}-notification__avatar`},this.avatar?Rl(this.avatar):"default"!==this.type?Sa(fv,{clsPrefix:t},{default:()=>uk[this.type]()}):null):null,this.closable?Sa(hv,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,Sa("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?Sa("div",{class:`${t}-notification-main__header`},Rl(this.title)):null,this.description?Sa("div",{class:`${t}-notification-main__description`},Rl(this.description)):null,this.content?Sa("pre",{class:`${t}-notification-main__content`},Rl(this.content)):null,this.meta||this.action?Sa("div",{class:`${t}-notification-main-footer`},this.meta?Sa("div",{class:`${t}-notification-main-footer__meta`},Rl(this.meta)):null,this.action?Sa("div",{class:`${t}-notification-main-footer__action`},Rl(this.action)):null):null)))}}),hk=Object.assign(Object.assign({},dk),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),mk=qn({name:"NotificationEnvironment",props:Object.assign(Object.assign({},hk),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=qr(lk),o=Io(!0);let n=null;function r(){o.value=!1,n&&window.clearTimeout(n)}return rr((()=>{e.duration&&(n=window.setTimeout(r,e.duration))})),{show:o,hide:r,handleClose:function(){const{onClose:t}=e;t?Promise.resolve(t()).then((e=>{!1!==e&&r()})):r()},handleAfterLeave:function(){t.value--;const{onAfterLeave:o,onInternalAfterLeave:n,onAfterHide:r,internalKey:i}=e;o&&o(),n(i),r&&r()},handleLeave:function(t){const{onHide:o}=e;o&&o(),t.style.maxHeight="0",t.offsetHeight},handleBeforeLeave:function(e){t.value++,e.style.maxHeight=`${e.offsetHeight}px`,e.style.height=`${e.offsetHeight}px`,e.offsetHeight},handleAfterEnter:function(o){t.value--,o.style.height="",o.style.maxHeight="";const{onAfterEnter:n,onAfterShow:r}=e;n&&n(),r&&r()},handleBeforeEnter:function(e){t.value++,cn((()=>{e.style.height=`${e.offsetHeight}px`,e.style.maxHeight="0",e.style.transition="none",e.offsetHeight,e.style.transition="",e.style.maxHeight=e.style.height}))},handleMouseenter:function(e){e.currentTarget===e.target&&null!==n&&(window.clearTimeout(n),n=null)},handleMouseleave:function(t){t.currentTarget===t.target&&function(){const{duration:t}=e;t&&(n=window.setTimeout(r,t))}()}}},render(){return Sa(La,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?Sa(pk,Object.assign({},Tl(this.$props,fk),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),gk=gc([bc("notification-container","\n z-index: 4000;\n position: fixed;\n overflow: visible;\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n ",[gc(">",[bc("scrollbar","\n width: initial;\n overflow: visible;\n height: -moz-fit-content !important;\n height: fit-content !important;\n max-height: 100vh !important;\n ",[gc(">",[bc("scrollbar-container","\n height: -moz-fit-content !important;\n height: fit-content !important;\n max-height: 100vh !important;\n ",[bc("scrollbar-content","\n padding-top: 12px;\n padding-bottom: 33px;\n ")])])])]),xc("top, top-right, top-left","\n top: 12px;\n ",[gc("&.transitioning >",[bc("scrollbar",[gc(">",[bc("scrollbar-container","\n min-height: 100vh !important;\n ")])])])]),xc("bottom, bottom-right, bottom-left","\n bottom: 12px;\n ",[gc(">",[bc("scrollbar",[gc(">",[bc("scrollbar-container",[bc("scrollbar-content","\n padding-bottom: 12px;\n ")])])])]),bc("notification-wrapper","\n display: flex;\n align-items: flex-end;\n margin-bottom: 0;\n margin-top: 12px;\n ")]),xc("top, bottom","\n left: 50%;\n transform: translateX(-50%);\n ",[bc("notification-wrapper",[gc("&.notification-transition-enter-from, &.notification-transition-leave-to","\n transform: scale(0.85);\n "),gc("&.notification-transition-leave-from, &.notification-transition-enter-to","\n transform: scale(1);\n ")])]),xc("top",[bc("notification-wrapper","\n transform-origin: top center;\n ")]),xc("bottom",[bc("notification-wrapper","\n transform-origin: bottom center;\n ")]),xc("top-right, bottom-right",[bc("notification","\n margin-left: 28px;\n margin-right: 16px;\n ")]),xc("top-left, bottom-left",[bc("notification","\n margin-left: 16px;\n margin-right: 28px;\n ")]),xc("top-right","\n right: 0;\n ",[vk("top-right")]),xc("top-left","\n left: 0;\n ",[vk("top-left")]),xc("bottom-right","\n right: 0;\n ",[vk("bottom-right")]),xc("bottom-left","\n left: 0;\n ",[vk("bottom-left")]),xc("scrollable",[xc("top-right","\n top: 0;\n "),xc("top-left","\n top: 0;\n "),xc("bottom-right","\n bottom: 0;\n "),xc("bottom-left","\n bottom: 0;\n ")]),bc("notification-wrapper","\n margin-bottom: 12px;\n ",[gc("&.notification-transition-enter-from, &.notification-transition-leave-to","\n opacity: 0;\n margin-top: 0 !important;\n margin-bottom: 0 !important;\n "),gc("&.notification-transition-leave-from, &.notification-transition-enter-to","\n opacity: 1;\n "),gc("&.notification-transition-leave-active","\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n transform .3s var(--n-bezier-ease-in),\n max-height .3s var(--n-bezier),\n margin-top .3s linear,\n margin-bottom .3s linear,\n box-shadow .3s var(--n-bezier);\n "),gc("&.notification-transition-enter-active","\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n transform .3s var(--n-bezier-ease-out),\n max-height .3s var(--n-bezier),\n margin-top .3s linear,\n margin-bottom .3s linear,\n box-shadow .3s var(--n-bezier);\n ")]),bc("notification","\n background-color: var(--n-color);\n color: var(--n-text-color);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n font-family: inherit;\n font-size: var(--n-font-size);\n font-weight: 400;\n position: relative;\n display: flex;\n overflow: hidden;\n flex-shrink: 0;\n padding-left: var(--n-padding-left);\n padding-right: var(--n-padding-right);\n width: var(--n-width);\n max-width: calc(100vw - 16px - 16px);\n border-radius: var(--n-border-radius);\n box-shadow: var(--n-box-shadow);\n box-sizing: border-box;\n opacity: 1;\n ",[yc("avatar",[bc("icon","\n color: var(--n-icon-color);\n "),bc("base-icon","\n color: var(--n-icon-color);\n ")]),xc("show-avatar",[bc("notification-main","\n margin-left: 40px;\n width: calc(100% - 40px); \n ")]),xc("closable",[bc("notification-main",[gc("> *:first-child","\n padding-right: 20px;\n ")]),yc("close","\n position: absolute;\n top: 0;\n right: 0;\n margin: var(--n-close-margin);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ")]),yc("avatar","\n position: absolute;\n top: var(--n-padding-top);\n left: var(--n-padding-left);\n width: 28px;\n height: 28px;\n font-size: 28px;\n display: flex;\n align-items: center;\n justify-content: center;\n ",[bc("icon","transition: color .3s var(--n-bezier);")]),bc("notification-main","\n padding-top: var(--n-padding-top);\n padding-bottom: var(--n-padding-bottom);\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n margin-left: 8px;\n width: calc(100% - 8px);\n ",[bc("notification-main-footer","\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 12px;\n ",[yc("meta","\n font-size: var(--n-meta-font-size);\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-description-text-color);\n "),yc("action","\n cursor: pointer;\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-action-text-color);\n ")]),yc("header","\n font-weight: var(--n-title-font-weight);\n font-size: var(--n-title-font-size);\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-title-text-color);\n "),yc("description","\n margin-top: 8px;\n font-size: var(--n-description-font-size);\n white-space: pre-wrap;\n word-wrap: break-word;\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-description-text-color);\n "),yc("content","\n line-height: var(--n-line-height);\n margin: 12px 0 0 0;\n font-family: inherit;\n white-space: pre-wrap;\n word-wrap: break-word;\n transition: color .3s var(--n-bezier-ease-out);\n color: var(--n-text-color);\n ",[gc("&:first-child","margin: 0;")])])])])]);function vk(e){const t=e.split("-")[1];return bc("notification-wrapper",[gc("&.notification-transition-enter-from, &.notification-transition-leave-to",`\n transform: translate(${"left"===t?"calc(-100%)":"calc(100%)"}, 0);\n `),gc("&.notification-transition-leave-from, &.notification-transition-enter-to","\n transform: translate(0, 0);\n ")])}const bk="n-notification-api",yk=qn({name:"NotificationProvider",props:Object.assign(Object.assign({},Tg.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),setup(e){const{mergedClsPrefixRef:t}=Og(e),o=Io([]),n={},r=new Set;function i(t){const i=kl(),a=()=>{r.add(i),n[i]&&n[i].hide()},s=bo(Object.assign(Object.assign({},t),{key:i,destroy:a,hide:a,deactivate:a})),{max:l}=e;if(l&&o.value.length-r.size>=l){let e=!1,t=0;for(const i of o.value){if(!r.has(i.key)){n[i.key]&&(i.destroy(),e=!0);break}t++}e||o.value.splice(t,1)}return o.value.push(s),s}const a=["info","success","warning","error"].map((e=>t=>i(Object.assign(Object.assign({},t),{type:e}))));const s=Tg("Notification","-notification",gk,XS,e,t),l={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:function(e){return i(e)},destroyAll:function(){Object.values(o.value).forEach((e=>{e.hide()}))}},c=Io(0);return Vr(bk,l),Vr(lk,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:c}),Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:n,handleAfterLeave:function(e){r.delete(e),o.value.splice(o.value.findIndex((t=>t.key===e)),1)}},l)},render(){var e,t,o;const{placement:n}=this;return Sa(Ii,null,null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e),this.notificationList.length?Sa(On,{to:null!==(o=this.to)&&void 0!==o?o:"body"},Sa(ck,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&"top"!==n&&"bottom"!==n,placement:n},{default:()=>this.notificationList.map((e=>Sa(mk,Object.assign({ref:t=>{const o=e.key;null===t?delete this.notificationRefs[o]:this.notificationRefs[o]=t}},El(e,["destroy","hide","deactivate"]),{internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:void 0===e.keepAliveOnHover?this.keepAliveOnHover:e.keepAliveOnHover}))))})):null)}});const xk={name:"QrCode",common:py,self:function(e){return{borderRadius:e.borderRadius}}};const Ck={name:"Skeleton",common:py,self:function(e){const{heightSmall:t,heightMedium:o,heightLarge:n,borderRadius:r}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:r,heightSmall:t,heightMedium:o,heightLarge:n}}};const Sk={name:"Split",common:py,self:function(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}},wk=()=>({}),_k={name:"Equation",common:py,self:wk},kk={name:"dark",common:Sb,Alert:Qy,Anchor:nx,AutoComplete:dx,Avatar:hx,AvatarGroup:vx,BackTop:yx,Badge:Cx,Breadcrumb:Px,Button:$x,ButtonGroup:rw,Calendar:Dx,Card:Gx,Carousel:eC,Cascader:sC,Checkbox:rC,Code:lC,Collapse:fC,CollapseTransition:mC,ColorPicker:Nx,DataTable:HC,DatePicker:eS,Descriptions:rS,Dialog:lS,Divider:OS,Drawer:RS,Dropdown:FC,DynamicInput:AS,DynamicTags:jS,Element:HS,Empty:vy,Ellipsis:OC,Equation:{name:"Equation",common:Sb,self:wk},Flex:US,Form:KS,GradientText:aw,Icon:UC,IconWrapper:W_,Image:U_,Input:sx,InputNumber:lw,LegacyTransfer:q_,Layout:uw,List:hw,LoadingBar:mw,Log:vw,Menu:ww,Mention:yw,Message:nw,Modal:bS,Notification:ZS,PageHeader:Tw,Pagination:kC,Popconfirm:Iw,Popover:jy,Popselect:vC,Progress:Aw,QrCode:{name:"QrCode",common:Sb,self:e=>({borderRadius:e.borderRadius})},Radio:RC,Rate:Lw,Result:Dw,Row:L_,Scrollbar:Cy,Select:CC,Skeleton:{name:"Skeleton",common:Sb,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}}},Slider:Ww,Space:FS,Spin:qw,Statistic:Kw,Steps:Zw,Switch:t_,Table:a_,Tabs:u_,Tag:Hy,Thing:p_,TimePicker:YC,Timeline:m_,Tooltip:TC,Transfer:b_,Tree:S_,TreeSelect:w_,Typography:E_,Upload:I_,Watermark:R_,Split:{name:"Split",common:Sb},FloatButton:F_,FloatButtonGroup:{name:"FloatButtonGroup",common:Sb,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)"}}}},Pk={name:"light",common:py,Alert:Ky,Anchor:ox,AutoComplete:ux,Avatar:px,AvatarGroup:gx,BackTop:xx,Badge:Sx,Breadcrumb:kx,Button:Rx,ButtonGroup:iw,Calendar:jx,Card:qx,Carousel:Zx,Cascader:aC,Checkbox:nC,Code:cC,Collapse:dC,CollapseTransition:hC,ColorPicker:Wx,DataTable:DC,DatePicker:ZC,Descriptions:nS,Dialog:sS,Divider:ES,Drawer:IS,Dropdown:zC,DynamicInput:LS,DynamicTags:DS,Element:WS,Empty:gy,Equation:_k,Ellipsis:MC,Flex:VS,Form:QS,GradientText:sw,Icon:NC,IconWrapper:H_,Image:N_,Input:lx,InputNumber:cw,Layout:dw,LegacyTransfer:G_,List:pw,LoadingBar:gw,Log:bw,Menu:Sw,Mention:xw,Message:ow,Modal:vS,Notification:XS,PageHeader:Pw,Pagination:_C,Popconfirm:Mw,Popover:By,Popselect:bC,Progress:$w,QrCode:xk,Radio:$C,Rate:zw,Row:A_,Result:jw,Scrollbar:xy,Skeleton:Ck,Select:xC,Slider:Nw,Space:BS,Spin:Vw,Statistic:Qw,Steps:Xw,Switch:o_,Table:i_,Tabs:c_,Tag:Wy,Thing:f_,TimePicker:KC,Timeline:g_,Tooltip:EC,Transfer:y_,Tree:C_,TreeSelect:__,Typography:T_,Upload:M_,Watermark:$_,Split:Sk,FloatButton:B_,FloatButtonGroup:z_}; +/*! + * pinia v2.2.6 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */ +let Tk;const Ek=e=>Tk=e,Ok=Symbol();function Mk(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Ik,Rk;(Rk=Ik||(Ik={})).direct="direct",Rk.patchObject="patch object",Rk.patchFunction="patch function";const $k=()=>{};function Ak(e,t,o,n=$k){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),n())};return!o&&ct()&&ut(r),r}function Lk(e,...t){e.slice().forEach((e=>{e(...t)}))}const zk=e=>e(),Fk=Symbol(),Bk=Symbol();function jk(e,t){e instanceof Map&&t instanceof Map?t.forEach(((t,o)=>e.set(o,t))):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];Mk(r)&&Mk(n)&&e.hasOwnProperty(o)&&!Mo(n)&&!So(n)?e[o]=jk(r,n):e[o]=n}return e}const Dk=Symbol();const{assign:Hk}=Object;function Wk(e,t,o={},n,r,i){let a;const s=Hk({actions:{}},o),l={deep:!0};let c,u,d,f=[],p=[];const h=n.state.value[e];let m;function g(t){let o;c=u=!1,"function"==typeof t?(t(n.state.value[e]),o={type:Ik.patchFunction,storeId:e,events:d}):(jk(n.state.value[e],t),o={type:Ik.patchObject,payload:t,storeId:e,events:d});const r=m=Symbol();cn().then((()=>{m===r&&(c=!0)})),u=!0,Lk(f,o,n.state.value[e])}i||h||(n.state.value[e]={}),Io({});const v=i?function(){const{state:e}=o,t=e?e():{};this.$patch((e=>{Hk(e,t)}))}:$k;const b=(t,o="")=>{if(Fk in t)return t[Bk]=o,t;const r=function(){Ek(n);const o=Array.from(arguments),i=[],a=[];let s;Lk(p,{args:o,name:r[Bk],store:x,after:function(e){i.push(e)},onError:function(e){a.push(e)}});try{s=t.apply(this&&this.$id===e?this:x,o)}catch(l){throw Lk(a,l),l}return s instanceof Promise?s.then((e=>(Lk(i,e),e))).catch((e=>(Lk(a,e),Promise.reject(e)))):(Lk(i,s),s)};return r[Fk]=!0,r[Bk]=o,r},y={_p:n,$id:e,$onAction:Ak.bind(null,p),$patch:g,$reset:v,$subscribe(t,o={}){const r=Ak(f,t,o.detached,(()=>i())),i=a.run((()=>vi((()=>n.state.value[e]),(n=>{("sync"===o.flush?u:c)&&t({storeId:e,type:Ik.direct,events:d},n)}),Hk({},l,o))));return r},$dispose:function(){a.stop(),f=[],p=[],n._s.delete(e)}},x=bo(y);n._s.set(e,x);const C=(n._a&&n._a.runWithContext||zk)((()=>n._e.run((()=>(a=lt()).run((()=>t({action:b})))))));for(const _ in C){const t=C[_];if(Mo(t)&&(!Mo(w=t)||!w.effect)||So(t))i||(!h||Mk(S=t)&&S.hasOwnProperty(Dk)||(Mo(t)?t.value=h[_]:jk(t,h[_])),n.state.value[e][_]=t);else if("function"==typeof t){const e=b(t,_);C[_]=e,s.actions[_]=t}}var S,w;return Hk(x,C),Hk(Po(x),C),Object.defineProperty(x,"$state",{get:()=>n.state.value[e],set:e=>{g((t=>{Hk(t,e)}))}}),n._p.forEach((e=>{Hk(x,a.run((()=>e({store:x,app:n._a,pinia:n,options:s}))))})),h&&i&&o.hydrate&&o.hydrate(x.$state,h),c=!0,u=!0,x} +/*! #__NO_SIDE_EFFECTS__ */function Nk(e,t,o){let n,r;const i="function"==typeof t;function a(e,o){(e=e||(!!(sa||gn||Ur)?qr(Ok,null):null))&&Ek(e),(e=Tk)._s.has(n)||(i?Wk(n,t,r,e):function(e,t,o){const{state:n,actions:r,getters:i}=t,a=o.state.value[e];let s;s=Wk(e,(function(){a||(o.state.value[e]=n?n():{});const t=Ho(o.state.value[e]);return Hk(t,r,Object.keys(i||{}).reduce(((t,n)=>(t[n]=To(Ca((()=>{Ek(o);const t=o._s.get(e);return i[n].call(t,t)}))),t)),{}))}),t,o,0,!0)}(n,r,e));return e._s.get(n)}return"string"==typeof e?(n=e,r=i?o:t):(r=e,n=e.id),a.$id=n,a}const Uk="https://github.com/kirklin/celeris-web";var Vk=(e=>(e.BASE_LOGIN="/login",e.BASE_HOME="/dashboard/index",e.ERROR_PAGE="/exception",e))(Vk||{});var qk=(e=>(e.ROLE="ROLE",e.BACKEND="BACKEND",e.ROUTE_MAPPING="ROUTE_MAPPING",e))(qk||{}),Gk=(e=>(e.LOCAL_STORAGE="LOCAL_STORAGE",e.SESSION_STORAGE="SESSION_STORAGE",e))(Gk||{}),Qk=(e=>(e[e.ROUTE_JUMP=0]="ROUTE_JUMP",e[e.PAGE_COVERAGE=1]="PAGE_COVERAGE",e))(Qk||{}),Kk=(e=>(e.ZOOM_FADE="zoom-fade",e.ZOOM_OUT="zoom-out",e.FADE_SLIDE="fade-slide",e.FADE="fade",e.FADE_BOTTOM="fade-bottom",e.FADE_SCALE="fade-scale",e))(Kk||{}),Yk=(e=>(e.AUTO="auto",e.HEADER="header",e.FIXED="fixed",e))(Yk||{}),Jk=(e=>(e.ADMIN="admin",e.USER="user",e.GUEST="guest",e))(Jk||{});function Xk(e){navigator.clipboard.writeText(e).then((()=>{iM.info("Copy Success",tM("Content:",e))})).catch((t=>{const o=document.createElement("textarea");o.value=e,document.body.appendChild(o),o.select();const n=document.execCommand("copy");document.body.removeChild(o),n?iM.info("Copy Success",tM("Content:",e)):iM.error("Copy Failed",tM("Content:",e),tM("Error:",t))}))}var Zk="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function eP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tP(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var o=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),o}var oP={exports:{}};var nP={exports:{}};const rP=tP(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var iP;function aP(){return iP||(iP=1,nP.exports=(e=e||function(e,t){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==Zk&&Zk.crypto&&(o=Zk.crypto),!o)try{o=rP}catch(m){}var n=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},r=Object.create||function(){function e(){}return function(t){var o;return e.prototype=t,o=new e,e.prototype=null,o}}(),i={},a=i.lib={},s=a.Base=function(){return{extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=a.WordArray=s.extend({init:function(e,o){e=this.words=e||[],this.sigBytes=o!=t?o:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,o=e.words,n=this.sigBytes,r=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[n+i>>>2]|=a<<24-(n+i)%4*8}else for(var s=0;s>>2]=o[s>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,o=this.sigBytes;t[o>>>2]&=4294967295<<32-o%4*8,t.length=e.ceil(o/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],o=0;o>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,o=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(o,t/2)}},d=c.Latin1={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],r=0;r>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,o=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(o,t)}},f=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(hD){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var o,n=this._data,r=n.words,i=n.sigBytes,a=this.blockSize,s=i/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,i);if(c){for(var d=0;d>>6-a%4*2;r[i>>>2]|=s<<24-i%4*8,i++}return o.create(r,i)}t.enc.Base64={stringify:function(e){var t=e.words,o=e.sigBytes,n=this._map;e.clamp();for(var r=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;r.length%4;)r.push(l);return r.join("")},parse:function(e){var t=e.length,o=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],h=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],b=e[t+7],y=e[t+8],x=e[t+9],C=e[t+10],S=e[t+11],w=e[t+12],_=e[t+13],k=e[t+14],P=e[t+15],T=i[0],E=i[1],O=i[2],M=i[3];T=c(T,E,O,M,a,7,s[0]),M=c(M,T,E,O,l,12,s[1]),O=c(O,M,T,E,p,17,s[2]),E=c(E,O,M,T,h,22,s[3]),T=c(T,E,O,M,m,7,s[4]),M=c(M,T,E,O,g,12,s[5]),O=c(O,M,T,E,v,17,s[6]),E=c(E,O,M,T,b,22,s[7]),T=c(T,E,O,M,y,7,s[8]),M=c(M,T,E,O,x,12,s[9]),O=c(O,M,T,E,C,17,s[10]),E=c(E,O,M,T,S,22,s[11]),T=c(T,E,O,M,w,7,s[12]),M=c(M,T,E,O,_,12,s[13]),O=c(O,M,T,E,k,17,s[14]),T=u(T,E=c(E,O,M,T,P,22,s[15]),O,M,l,5,s[16]),M=u(M,T,E,O,v,9,s[17]),O=u(O,M,T,E,S,14,s[18]),E=u(E,O,M,T,a,20,s[19]),T=u(T,E,O,M,g,5,s[20]),M=u(M,T,E,O,C,9,s[21]),O=u(O,M,T,E,P,14,s[22]),E=u(E,O,M,T,m,20,s[23]),T=u(T,E,O,M,x,5,s[24]),M=u(M,T,E,O,k,9,s[25]),O=u(O,M,T,E,h,14,s[26]),E=u(E,O,M,T,y,20,s[27]),T=u(T,E,O,M,_,5,s[28]),M=u(M,T,E,O,p,9,s[29]),O=u(O,M,T,E,b,14,s[30]),T=d(T,E=u(E,O,M,T,w,20,s[31]),O,M,g,4,s[32]),M=d(M,T,E,O,y,11,s[33]),O=d(O,M,T,E,S,16,s[34]),E=d(E,O,M,T,k,23,s[35]),T=d(T,E,O,M,l,4,s[36]),M=d(M,T,E,O,m,11,s[37]),O=d(O,M,T,E,b,16,s[38]),E=d(E,O,M,T,C,23,s[39]),T=d(T,E,O,M,_,4,s[40]),M=d(M,T,E,O,a,11,s[41]),O=d(O,M,T,E,h,16,s[42]),E=d(E,O,M,T,v,23,s[43]),T=d(T,E,O,M,x,4,s[44]),M=d(M,T,E,O,w,11,s[45]),O=d(O,M,T,E,P,16,s[46]),T=f(T,E=d(E,O,M,T,p,23,s[47]),O,M,a,6,s[48]),M=f(M,T,E,O,b,10,s[49]),O=f(O,M,T,E,k,15,s[50]),E=f(E,O,M,T,g,21,s[51]),T=f(T,E,O,M,w,6,s[52]),M=f(M,T,E,O,h,10,s[53]),O=f(O,M,T,E,C,15,s[54]),E=f(E,O,M,T,l,21,s[55]),T=f(T,E,O,M,y,6,s[56]),M=f(M,T,E,O,P,10,s[57]),O=f(O,M,T,E,v,15,s[58]),E=f(E,O,M,T,_,21,s[59]),T=f(T,E,O,M,m,6,s[60]),M=f(M,T,E,O,S,10,s[61]),O=f(O,M,T,E,p,15,s[62]),E=f(E,O,M,T,x,21,s[63]),i[0]=i[0]+T|0,i[1]=i[1]+E|0,i[2]=i[2]+O|0,i[3]=i[3]+M|0},_doFinalize:function(){var e=this._data,o=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;o[r>>>5]|=128<<24-r%32;var i=t.floor(n/4294967296),a=n;o[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),o[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(o.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,o,n,r,i,a){var s=e+(t&o|~t&n)+r+a;return(s<>>32-i)+t}function u(e,t,o,n,r,i,a){var s=e+(t&n|o&~n)+r+a;return(s<>>32-i)+t}function d(e,t,o,n,r,i,a){var s=e+(t^o^n)+r+a;return(s<>>32-i)+t}function f(e,t,o,n,r,i,a){var s=e+(o^(t|~n))+r+a;return(s<>>32-i)+t}o.MD5=i._createHelper(l),o.HmacMD5=i._createHmacHelper(l)}(Math),e.MD5));var e}var pP,hP={exports:{}},mP={exports:{}};function gP(){return pP?mP.exports:(pP=1,mP.exports=(s=aP(),t=(e=s).lib,o=t.WordArray,n=t.Hasher,r=e.algo,i=[],a=r.SHA1=n.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var o=this._hash.words,n=o[0],r=o[1],a=o[2],s=o[3],l=o[4],c=0;c<80;c++){if(c<16)i[c]=0|e[t+c];else{var u=i[c-3]^i[c-8]^i[c-14]^i[c-16];i[c]=u<<1|u>>>31}var d=(n<<5|n>>>27)+l+i[c];d+=c<20?1518500249+(r&a|~r&s):c<40?1859775393+(r^a^s):c<60?(r&a|r&s|a&s)-1894007588:(r^a^s)-899497514,l=s,s=a,a=r<<30|r>>>2,r=n,n=d}o[0]=o[0]+n|0,o[1]=o[1]+r|0,o[2]=o[2]+a|0,o[3]=o[3]+s|0,o[4]=o[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(o/4294967296),t[15+(n+64>>>9<<4)]=o,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=n._createHelper(a),e.HmacSHA1=n._createHmacHelper(a),s.SHA1));var e,t,o,n,r,i,a,s}var vP,bP,yP={exports:{}};function xP(){return bP?hP.exports:(bP=1,hP.exports=function(e){return function(){var t=e,o=t.lib,n=o.Base,r=o.WordArray,i=t.algo,a=i.MD5,s=i.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var o,n=this.cfg,i=n.hasher.create(),a=r.create(),s=a.words,l=n.keySize,c=n.iterations;s.lengthr&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,l=a.words,c=0;c>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:h}),reset:function(){var e;u.reset.call(this);var t=this.cfg,o=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,o&&o.words):(this._mode=e.call(n,this,o&&o.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(o.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,o=e.salt;return(o?i.create([1398893684,1701076831]).concat(o).concat(t):t).toString(l)},parse:function(e){var t,o=l.parse(e),n=o.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),o.sigBytes-=16),m.create({ciphertext:o,salt:t})}},v=n.SerializableCipher=r.extend({cfg:r.extend({format:g}),encrypt:function(e,t,o,n){n=this.cfg.extend(n);var r=e.createEncryptor(o,n),i=r.finalize(t),a=r.cfg;return m.create({ciphertext:i,key:o,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,o,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(o,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(o.kdf={}).OpenSSL={execute:function(e,t,o,n,r){if(n||(n=i.random(8)),r)a=c.create({keySize:t+o,hasher:r}).compute(e,n);else var a=c.create({keySize:t+o}).compute(e,n);var s=i.create(a.words.slice(t),4*o);return a.sigBytes=4*t,m.create({key:a,iv:s,salt:n})}},y=n.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:b}),encrypt:function(e,t,o,n){var r=(n=this.cfg.extend(n)).kdf.execute(o,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=r.iv;var i=v.encrypt.call(this,e,t,r.key,n);return i.mixIn(r),i},decrypt:function(e,t,o,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var r=n.kdf.execute(o,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=r.iv,v.decrypt.call(this,e,t,r.key,n)}})}())));var e}var kP=oP.exports=(SP=aP(),cP(),fP(),xP(),_P(),function(){var e=SP,t=e.lib.BlockCipher,o=e.algo,n=[],r=[],i=[],a=[],s=[],l=[],c=[],u=[],d=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var o=0,p=0;for(t=0;t<256;t++){var h=p^p<<1^p<<2^p<<3^p<<4;h=h>>>8^255&h^99,n[o]=h,r[h]=o;var m=e[o],g=e[m],v=e[g],b=257*e[h]^16843008*h;i[o]=b<<24|b>>>8,a[o]=b<<16|b>>>16,s[o]=b<<8|b>>>24,l[o]=b,b=16843009*v^65537*g^257*m^16843008*o,c[h]=b<<24|b>>>8,u[h]=b<<16|b>>>16,d[h]=b<<8|b>>>24,f[h]=b,o?(o=m^e[e[e[v^m]]],p^=e[e[p]]):o=p=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],h=o.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,o=e.sigBytes/4,r=4*((this._nRounds=o+6)+1),i=this._keySchedule=[],a=0;a6&&a%o==4&&(h=n[h>>>24]<<24|n[h>>>16&255]<<16|n[h>>>8&255]<<8|n[255&h]):(h=n[(h=h<<8|h>>>24)>>>24]<<24|n[h>>>16&255]<<16|n[h>>>8&255]<<8|n[255&h],h^=p[a/o|0]<<24),i[a]=i[a-o]^h);for(var s=this._invKeySchedule=[],l=0;l>>24]]^u[n[h>>>16&255]]^d[n[h>>>8&255]]^f[n[255&h]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,i,a,s,l,n)},decryptBlock:function(e,t){var o=e[t+1];e[t+1]=e[t+3],e[t+3]=o,this._doCryptBlock(e,t,this._invKeySchedule,c,u,d,f,r),o=e[t+1],e[t+1]=e[t+3],e[t+3]=o},_doCryptBlock:function(e,t,o,n,r,i,a,s){for(var l=this._nRounds,c=e[t]^o[0],u=e[t+1]^o[1],d=e[t+2]^o[2],f=e[t+3]^o[3],p=4,h=1;h>>24]^r[u>>>16&255]^i[d>>>8&255]^a[255&f]^o[p++],g=n[u>>>24]^r[d>>>16&255]^i[f>>>8&255]^a[255&c]^o[p++],v=n[d>>>24]^r[f>>>16&255]^i[c>>>8&255]^a[255&u]^o[p++],b=n[f>>>24]^r[c>>>16&255]^i[u>>>8&255]^a[255&d]^o[p++];c=m,u=g,d=v,f=b}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^o[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&c])^o[p++],v=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^o[p++],b=(s[f>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^o[p++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=b},keySize:8});e.AES=t._createHelper(h)}(),SP.AES),PP={exports:{}};PP.exports=function(e){return e.enc.Utf8}(aP());var TP=PP.exports;const EP=eP(TP);var OP={exports:{}};OP.exports=function(e){return e.pad.Pkcs7}(aP(),_P());const MP=eP(OP.exports);var IP={exports:{}};IP.exports=function(e){return e.mode.CTR=(t=e.lib.BlockCipherMode.extend(),o=t.Encryptor=t.extend({processBlock:function(e,t){var o=this._cipher,n=o.blockSize,r=this._iv,i=this._counter;r&&(i=this._counter=r.slice(0),this._iv=void 0);var a=i.slice(0);o.encryptBlock(a,0),i[n-1]=i[n-1]+1|0;for(var s=0;s>>7)^(h<<14|h>>>18)^h>>>3,g=c[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+v+c[p-16]}var b=n&r^n&i^r&i,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),x=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[p]+c[p];f=d,d=u,u=s,s=a+x|0,a=i,i=r,r=n,n=x+(y+b)|0}o[0]=o[0]+n|0,o[1]=o[1]+r|0,o[2]=o[2]+i|0,o[3]=o[3]+a|0,o[4]=o[4]+s|0,o[5]=o[5]+u|0,o[6]=o[6]+d|0,o[7]=o[7]+f|0},_doFinalize:function(){var e=this._data,o=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return o[r>>>5]|=128<<24-r%32,o[14+(r+64>>>9<<4)]=t.floor(n/4294967296),o[15+(r+64>>>9<<4)]=n,e.sigBytes=4*o.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});o.SHA256=i._createHelper(u),o.HmacSHA256=i._createHmacHelper(u)})(Math),e.SHA256}(aP());var AP,LP={exports:{}};!function(e){(function(){var t=e,o=t.lib.Hasher,n=t.x64,r=n.Word,i=n.WordArray,a=t.algo;function s(){return r.create.apply(r,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=o.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var o=this._hash.words,n=o[0],r=o[1],i=o[2],a=o[3],s=o[4],u=o[5],d=o[6],f=o[7],p=n.high,h=n.low,m=r.high,g=r.low,v=i.high,b=i.low,y=a.high,x=a.low,C=s.high,S=s.low,w=u.high,_=u.low,k=d.high,P=d.low,T=f.high,E=f.low,O=p,M=h,I=m,R=g,$=v,A=b,L=y,z=x,F=C,B=S,j=w,D=_,H=k,W=P,N=T,U=E,V=0;V<80;V++){var q,G,Q=c[V];if(V<16)G=Q.high=0|e[t+2*V],q=Q.low=0|e[t+2*V+1];else{var K=c[V-15],Y=K.high,J=K.low,X=(Y>>>1|J<<31)^(Y>>>8|J<<24)^Y>>>7,Z=(J>>>1|Y<<31)^(J>>>8|Y<<24)^(J>>>7|Y<<25),ee=c[V-2],te=ee.high,oe=ee.low,ne=(te>>>19|oe<<13)^(te<<3|oe>>>29)^te>>>6,re=(oe>>>19|te<<13)^(oe<<3|te>>>29)^(oe>>>6|te<<26),ie=c[V-7],ae=ie.high,se=ie.low,le=c[V-16],ce=le.high,ue=le.low;G=(G=(G=X+ae+((q=Z+se)>>>0>>0?1:0))+ne+((q+=re)>>>0>>0?1:0))+ce+((q+=ue)>>>0>>0?1:0),Q.high=G,Q.low=q}var de,fe=F&j^~F&H,pe=B&D^~B&W,he=O&I^O&$^I&$,me=M&R^M&A^R&A,ge=(O>>>28|M<<4)^(O<<30|M>>>2)^(O<<25|M>>>7),ve=(M>>>28|O<<4)^(M<<30|O>>>2)^(M<<25|O>>>7),be=(F>>>14|B<<18)^(F>>>18|B<<14)^(F<<23|B>>>9),ye=(B>>>14|F<<18)^(B>>>18|F<<14)^(B<<23|F>>>9),xe=l[V],Ce=xe.high,Se=xe.low,we=N+be+((de=U+ye)>>>0>>0?1:0),_e=ve+me;N=H,U=W,H=j,W=D,j=F,D=B,F=L+(we=(we=(we=we+fe+((de+=pe)>>>0>>0?1:0))+Ce+((de+=Se)>>>0>>0?1:0))+G+((de+=q)>>>0>>0?1:0))+((B=z+de|0)>>>0>>0?1:0)|0,L=$,z=A,$=I,A=R,I=O,R=M,O=we+(ge+he+(_e>>>0>>0?1:0))+((M=de+_e|0)>>>0>>0?1:0)|0}h=n.low=h+M,n.high=p+O+(h>>>0>>0?1:0),g=r.low=g+R,r.high=m+I+(g>>>0>>0?1:0),b=i.low=b+A,i.high=v+$+(b>>>0>>0?1:0),x=a.low=x+z,a.high=y+L+(x>>>0>>0?1:0),S=s.low=S+B,s.high=C+F+(S>>>0>>0?1:0),_=u.low=_+D,u.high=w+j+(_>>>0>>0?1:0),P=d.low=P+W,d.high=k+H+(P>>>0>>0?1:0),E=f.low=E+U,f.high=T+N+(E>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(o/4294967296),t[31+(n+128>>>10<<5)]=o,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=o._createHelper(u),t.HmacSHA512=o._createHmacHelper(u)})(),e.SHA512}(aP(),AP||(AP=1,LP.exports=function(e){return n=(o=e).lib,r=n.Base,i=n.WordArray,(a=o.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=r.extend({init:function(e,o){e=this.words=e||[],this.sigBytes=o!=t?o:8*e.length},toX32:function(){for(var e=this.words,t=e.length,o=[],n=0;n0:"number"==typeof e},HP=function(e,t,o){return void 0===t&&(t=0),void 0===o&&(o=Math.pow(10,t)),Math.round(o*e)/o+0},WP=function(e,t,o){return void 0===t&&(t=0),void 0===o&&(o=1),e>o?o:e>t?e:t},NP=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},UP=function(e){return{r:WP(e.r,0,255),g:WP(e.g,0,255),b:WP(e.b,0,255),a:WP(e.a)}},VP=function(e){return{r:HP(e.r),g:HP(e.g),b:HP(e.b),a:HP(e.a,3)}},qP=/^#([0-9a-f]{3,8})$/i,GP=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},QP=function(e){var t=e.r,o=e.g,n=e.b,r=e.a,i=Math.max(t,o,n),a=i-Math.min(t,o,n),s=a?i===t?(o-n)/a:i===o?2+(n-t)/a:4+(t-o)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:r}},KP=function(e){var t=e.h,o=e.s,n=e.v,r=e.a;t=t/360*6,o/=100,n/=100;var i=Math.floor(t),a=n*(1-o),s=n*(1-(t-i)*o),l=n*(1-(1-t+i)*o),c=i%6;return{r:255*[n,s,a,a,l,n][c],g:255*[l,n,n,s,a,a][c],b:255*[a,a,l,n,n,s][c],a:r}},YP=function(e){return{h:NP(e.h),s:WP(e.s,0,100),l:WP(e.l,0,100),a:WP(e.a)}},JP=function(e){return{h:HP(e.h),s:HP(e.s),l:HP(e.l),a:HP(e.a,3)}},XP=function(e){return KP((o=(t=e).s,{h:t.h,s:(o*=((n=t.l)<50?n:100-n)/100)>0?2*o/(n+o)*100:0,v:n+o,a:t.a}));var t,o,n},ZP=function(e){return{h:(t=QP(e)).h,s:(r=(200-(o=t.s))*(n=t.v)/100)>0&&r<200?o*n/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,o,n,r},eT=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,tT=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,oT=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,nT=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,rT={string:[[function(e){var t=qP.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?HP(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?HP(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=oT.exec(e)||nT.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:UP({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=eT.exec(e)||tT.exec(e);if(!t)return null;var o,n,r=YP({h:(o=t[1],n=t[2],void 0===n&&(n="deg"),Number(o)*(jP[n]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return XP(r)},"hsl"]],object:[[function(e){var t=e.r,o=e.g,n=e.b,r=e.a,i=void 0===r?1:r;return DP(t)&&DP(o)&&DP(n)?UP({r:Number(t),g:Number(o),b:Number(n),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,o=e.s,n=e.l,r=e.a,i=void 0===r?1:r;if(!DP(t)||!DP(o)||!DP(n))return null;var a=YP({h:Number(t),s:Number(o),l:Number(n),a:Number(i)});return XP(a)},"hsl"],[function(e){var t=e.h,o=e.s,n=e.v,r=e.a,i=void 0===r?1:r;if(!DP(t)||!DP(o)||!DP(n))return null;var a,s=(a={h:Number(t),s:Number(o),v:Number(n),a:Number(i)},{h:NP(a.h),s:WP(a.s,0,100),v:WP(a.v,0,100),a:WP(a.a)});return KP(s)},"hsv"]]},iT=function(e,t){for(var o=0;o=.5},e.prototype.toHex=function(){return t=(e=VP(this.rgba)).r,o=e.g,n=e.b,i=(r=e.a)<1?GP(HP(255*r)):"","#"+GP(t)+GP(o)+GP(n)+i;var e,t,o,n,r,i},e.prototype.toRgb=function(){return VP(this.rgba)},e.prototype.toRgbString=function(){return t=(e=VP(this.rgba)).r,o=e.g,n=e.b,(r=e.a)<1?"rgba("+t+", "+o+", "+n+", "+r+")":"rgb("+t+", "+o+", "+n+")";var e,t,o,n,r},e.prototype.toHsl=function(){return JP(ZP(this.rgba))},e.prototype.toHslString=function(){return t=(e=JP(ZP(this.rgba))).h,o=e.s,n=e.l,(r=e.a)<1?"hsla("+t+", "+o+"%, "+n+"%, "+r+")":"hsl("+t+", "+o+"%, "+n+"%)";var e,t,o,n,r},e.prototype.toHsv=function(){return e=QP(this.rgba),{h:HP(e.h),s:HP(e.s),v:HP(e.v),a:HP(e.a,3)};var e},e.prototype.invert=function(){return uT({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),uT(aT(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),uT(aT(this.rgba,-e))},e.prototype.grayscale=function(){return uT(aT(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),uT(lT(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),uT(lT(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?uT({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):HP(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=ZP(this.rgba);return"number"==typeof e?uT({h:e,s:t.s,l:t.l,a:t.a}):HP(t.h)},e.prototype.isEqual=function(e){return this.toHex()===uT(e).toHex()},e}(),uT=function(e){return e instanceof cT?e:new cT(e)},dT=[],fT=function(e){e.forEach((function(e){dT.indexOf(e)<0&&(e(cT,rT),dT.push(e))}))};var pT=function(e,t,o){return void 0===t&&(t=0),void 0===o&&(o=1),e>o?o:e>t?e:t},hT=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},mT=function(e){return 255*(e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e)},gT=96.422,vT=82.521,bT=216/24389,yT=24389/27,xT=function(e){var t=function(e){var t,o,n=hT(e.r),r=hT(e.g),i=hT(e.b);return o={x:100*(.4124564*n+.3575761*r+.1804375*i),y:100*(.2126729*n+.7151522*r+.072175*i),z:100*(.0193339*n+.119192*r+.9503041*i),a:e.a},{x:pT((t={x:1.0478112*o.x+.0228866*o.y+-.050127*o.z,y:.0295424*o.x+.9904844*o.y+-.0170491*o.z,z:-.0092345*o.x+.0150436*o.y+.7521316*o.z,a:o.a}).x,0,gT),y:pT(t.y,0,100),z:pT(t.z,0,vT),a:pT(t.a)}}(e),o=t.x/gT,n=t.y/100,r=t.z/vT;return o=o>bT?Math.cbrt(o):(yT*o+16)/116,{l:116*(n=n>bT?Math.cbrt(n):(yT*n+16)/116)-16,a:500*(o-n),b:200*(n-(r=r>bT?Math.cbrt(r):(yT*r+16)/116)),alpha:t.a}},CT=function(e,t,o){var n,r,i,a,s,l=xT(e),c=xT(t);return r={l:pT((n={l:l.l*(1-o)+c.l*o,a:l.a*(1-o)+c.a*o,b:l.b*(1-o)+c.b*o,alpha:l.alpha*(1-o)+c.alpha*o}).l,0,400),a:n.a,b:n.b,alpha:pT(n.alpha)},a=r.a/500+(i=(r.l+16)/116),s=i-r.b/200,function(e){var t,o,n=.9555766*(t=e).x+-.0230393*t.y+.0631636*t.z,r=-.0282895*t.x+1.0099416*t.y+.0210077*t.z,i=.0122982*t.x+-.020483*t.y+1.3299098*t.z;return o={r:mT(.032404542*n-.015371385*r-.004985314*i),g:mT(-.00969266*n+.018760108*r+41556e-8*i),b:mT(556434e-9*n-.002040259*r+.010572252*i),a:e.a},{r:pT(o.r,0,255),g:pT(o.g,0,255),b:pT(o.b,0,255),a:pT(o.a)}}({x:(Math.pow(a,3)>bT?Math.pow(a,3):(116*a-16)/yT)*gT,y:100*(r.l>8?Math.pow((r.l+16)/116,3):r.l/yT),z:(Math.pow(s,3)>bT?Math.pow(s,3):(116*s-16)/yT)*vT,a:r.alpha})};fT([function(e,t){var o={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var r in o)n[o[r]]=r;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,a,s=n[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in o)i[d]=new e(o[d]).toRgb();for(var f in o){var p=(r=l,a=i[f],Math.pow(r.r-a.r,2)+Math.pow(r.g-a.g,2)+Math.pow(r.b-a.b,2));pfunction(e,t){const o=uT(e);if(!o.isValid())throw new Error("Invalid input color value");if(6===t)return uT(o).toHex();const n=t<6,r=o.toHsv(),i=n?6-t:t-5-1,a={h:_T(r,i,n),s:kT(r,i,n),v:PT(r,i,n)};return uT(a).toHex()}(e,t)));if(t){return ST.map((({index:e,opacity:t})=>uT(o).mix(n[e],t))).map((e=>uT(e).toHex()))}return n}function _T(e,t,o){let n;const r=Math.round(e.h);return n=r>=60&&r<=240?o?r-2*t:r+2*t:o?r+2*t:r-2*t,(n%360+360)%360}function kT(e,t,o){if(0===e.h&&0===e.s)return e.s;let n;return n=o?e.s-16*t:4===t?e.s+16:e.s+5*t,n=Math.max(6,Math.min(n,100)),o&&5===t&&(n=Math.min(n,10)),n}function PT(e,t,o){let n;return n=o?e.v+5*t:e.v-15*t,Math.min(100,n)}const TT={red:"#F53F3F",orangered:"#F77234",orange:"#FF7D00",gold:"#F7BA1E",yellow:"#FADC19",lime:"#9FDB1D",green:"#00B42A",cyan:"#14C9C9",blue:"#3491FA",kirklinBlue:"#66CCFF",purple:"#722ED1",pinkpurple:"#D91AD9",magenta:"#F5319D",gray:"#86909c",grey:"#86909c",black:"#000000",white:"#ffffff"},ET={},OT={};function MT(e){return uT(e).isValid()}function IT(e){return uT(e).toRgbString()}function RT(e){const t=uT(e).toRgb();return[t.r,t.g,t.b].join(", ")}Object.keys(TT).forEach((e=>{ET[e]=wT(TT[e]),ET[e].primary=ET[e][5],OT[e]=wT(TT[e],!0),OT[e].primary=OT[e][5]})),ET.gray=["#f7f8fa","#f2f3f5","#e5e6eb","#c9cdd4","#a9aeb8","#86909c","#6b7785","#4e5969","#272e3b","#1d2129"],OT.gray=["#17171a","#2e2e30","#484849","#5f5f60","#78787a","#929293","#ababac","#c5c5c5","#dfdfdf","#f6f6f6"];const $T={red:"#F53F3F",orangered:"#F77234",orange:"#FF7D00",gold:"#F7BA1E",yellow:"#FADC19",lime:"#9FDB1D",green:"#00B42A",cyan:"#14C9C9",blue:"#3491FA",celerisBlue:"#165DFF",purple:"#722ED1",pinkpurple:"#D91AD9",magenta:"#F5319D",gray:"#86909c",grey:"#86909c",black:"#000000"},AT={},LT={};Object.keys($T).forEach((e=>{AT[e]=wT($T[e]),AT[e].primary=AT[e][5],LT[e]=wT($T[e],!0),LT[e].primary=LT[e][5]})),AT.gray=["#f7f8fa","#f2f3f5","#e5e6eb","#c9cdd4","#a9aeb8","#86909c","#6b7785","#4e5969","#272e3b","#1d2129"],LT.gray=["#17171a","#2e2e30","#484849","#5f5f60","#78787a","#929293","#ababac","#c5c5c5","#dfdfdf","#f6f6f6"];var zT={exports:{}};const FT=eP(zT.exports=function(){var e=1e3,t=6e4,o=36e5,n="millisecond",r="second",i="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],o=e%100;return"["+e+(t[(o-20)%10]||t[o]||t[0])+"]"}},v=function(e,t,o){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(o)+e},b={s:v,z:function(e){var t=-e.utcOffset(),o=Math.abs(t),n=Math.floor(o/60),r=o%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(r,2,"0")},m:function e(t,o){if(t.date()1)return e(a[0])}else{var s=t.name;x[s]=t,r=s}return!n&&r&&(y=r),r||!n&&y},_=function(e,t){if(S(e))return e.clone();var o="object"==typeof t?t:{};return o.date=e,o.args=arguments,new P(o)},k=b;k.l=w,k.i=S,k.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var P=function(){function g(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[C]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,o=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(h);if(n){var r=n[2]-1||0,i=(n[7]||"0").substring(0,3);return o?new Date(Date.UTC(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var o=_(e);return this.startOf(t)<=o&&o<=this.endOf(t)},v.isAfter=function(e,t){return _(e){try{return!("undefined"!=typeof window&&void 0!==document)}catch(hD){return!0}})();function jT(e){return/^https?:\/\/([\w-]+\.)+[\w-]+(\/[\w- ./?%&=]*)?$/i.test(e)}function DT(e,t,o="replace"){return t?e?tg({},e,t,((e,t)=>{if(jd(t)&&jd(e))switch(o){case"union":return bg(e,t,cg);case"intersection":return lg(e,t,cg);case"concat":return e.concat(t);case"replace":return t;default:throw new Error(`Unknown merge array strategy: ${o}`)}if(Nd(t)&&Nd(e))return DT(e,t,o)})):t:e}function HT(e){return e instanceof Error||Nd(e)&&"message"in e?e.message:String(e)}function WT(e,t,o=document.documentElement){o.style.setProperty(e,t)}function NT(e,t){var o;if(!BT)return null!=(o=(null!=t?t:document).querySelector(e))?o:void 0}var UT={};Object.defineProperty(UT,"__esModule",{value:!0}),UT.TokenData=void 0,UT.parse=tE,UT.compile=function(e,t={}){const{encode:o=encodeURIComponent,delimiter:n=qT}=t,r=oE((e instanceof eE?e:tE(e,t)).tokens,n,o);return function(e={}){const[t,...o]=r(e);if(o.length)throw new TypeError(`Missing parameters: ${o.join(", ")}`);return t}},UT.match=function(e,t={}){const{decode:o=decodeURIComponent,delimiter:n=qT}=t,{regexp:r,keys:i}=nE(e,t),a=i.map((e=>!1===o?GT:"param"===e.type?o:e=>e.split(n).map(o)));return function(e){const t=r.exec(e);if(!t)return!1;const o=t[0],n=Object.create(null);for(let r=1;rKT.test(e)))}(t.name)&&function(e){return"text"!==(null==e?void 0:e.type)||!KT.test(e.value[0])} +/*! + * vue-router v4.4.5 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */(n[o+1]),i=r?t.name:JSON.stringify(t.name);if("param"===t.type)return`:${i}`;if("wildcard"===t.type)return`*${i}`;throw new TypeError(`Unexpected token: ${t}`)})).join("")};const qT="/",GT=e=>e,QT=/^[$_\p{ID_Start}]$/u,KT=/^[$\u200c\u200d\p{ID_Continue}]$/u,YT="https://git.new/pathToRegexpError",JT={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function XT(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class ZT{constructor(e){this.tokens=e}peek(){if(!this._peek){const e=this.tokens.next();this._peek=e.value}return this._peek}tryConsume(e){const t=this.peek();if(t.type===e)return this._peek=void 0,t.value}consume(e){const t=this.tryConsume(e);if(void 0!==t)return t;const{type:o,index:n}=this.peek();throw new TypeError(`Unexpected ${o} at ${n}, expected ${e}: ${YT}`)}text(){let e,t="";for(;e=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=e;return t}}class eE{constructor(e){this.tokens=e}}function tE(e,t={}){const{encodePath:o=GT}=t,n=new ZT(function*(e){const t=[...e];let o=0;function n(){let e="";if(QT.test(t[++o]))for(e+=t[o];KT.test(t[++o]);)e+=t[o];else if('"'===t[o]){let n=o;for(;ofunction(e,t,o){if("text"===e.type)return()=>[e.value];if("group"===e.type){const n=oE(e.tokens,t,o);return e=>{const[t,...o]=n(e);return o.length?[""]:[t]}}const n=o||GT;if("wildcard"===e.type&&!1!==o)return o=>{const r=o[e.name];if(null==r)return["",e.name];if(!Array.isArray(r)||0===r.length)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[r.map(((t,o)=>{if("string"!=typeof t)throw new TypeError(`Expected "${e.name}/${o}" to be a string`);return n(t)})).join(t)]};return t=>{const o=t[e.name];if(null==o)return["",e.name];if("string"!=typeof o)throw new TypeError(`Expected "${e.name}" to be a string`);return[n(o)]}}(e,t,o)));return e=>{const t=[""];for(const o of n){const[n,...r]=o(e);t[0]+=n,t.push(...r)}return t}}function nE(e,t={}){const{delimiter:o=qT,end:n=!0,sensitive:r=!1,trailing:i=!0}=t,a=[],s=[],l=r?"":"i",c=(Array.isArray(e)?e:[e]).map((e=>e instanceof eE?e:tE(e,t)));for(const{tokens:d}of c)for(const e of rE(d,0,[])){const t=iE(e,o,a);s.push(t)}let u=`^(?:${s.join("|")})`;i&&(u+=`(?:${XT(o)}$)?`),u+=n?"$":`(?=${XT(o)}|$)`;return{regexp:new RegExp(u,l),keys:a}}function*rE(e,t,o){if(t===e.length)return yield o;const n=e[t];if("group"===n.type){const r=o.slice();for(const o of rE(n.tokens,0,r))yield*le(rE(e,t+1,o))}else o.push(n);yield*le(rE(e,t+1,o))}function iE(e,t,o){let n="",r="",i=!0;for(let a=0;a{},fE=Array.isArray,pE=/#/g,hE=/&/g,mE=/\//g,gE=/=/g,vE=/\?/g,bE=/\+/g,yE=/%5B/g,xE=/%5D/g,CE=/%5E/g,SE=/%60/g,wE=/%7B/g,_E=/%7C/g,kE=/%7D/g,PE=/%20/g;function TE(e){return encodeURI(""+e).replace(_E,"|").replace(yE,"[").replace(xE,"]")}function EE(e){return TE(e).replace(bE,"%2B").replace(PE,"+").replace(pE,"%23").replace(hE,"%26").replace(SE,"`").replace(wE,"{").replace(kE,"}").replace(CE,"^")}function OE(e){return null==e?"":function(e){return TE(e).replace(pE,"%23").replace(vE,"%3F")}(e).replace(mE,"%2F")}function ME(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const IE=/\/$/;function RE(e,t,o="/"){let n,r={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return 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=function(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,a,s=o.length-1;for(i=0;i1&&s--}return o.slice(0,s).join("/")+"/"+n.slice(i).join("/")}(null!=n?n:t,o),{fullPath:n+(i&&"?")+i+a,path:n,query:r,hash:ME(a)}}function $E(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function AE(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function LE(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!zE(e[o],t[o]))return!1;return!0}function zE(e,t){return fE(e)?FE(e,t):fE(t)?FE(t,e):e===t}function FE(e,t){return fE(t)?e.length===t.length&&e.every(((e,o)=>e===t[o])):1===e.length&&e[0]===t}const BE={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var jE,DE,HE,WE;function NE(e){if(!e)if(sE){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(IE,"")}(DE=jE||(jE={})).pop="pop",DE.push="push",(WE=HE||(HE={})).back="back",WE.forward="forward",WE.unknown="";const UE=/^[^#]+#/;function VE(e,t){return e.replace(UE,"#")+t}const qE=()=>({left:window.scrollX,top:window.scrollY});function GE(e){let t;if("el"in e){const o=e.el,n="string"==typeof o&&o.startsWith("#"),r="string"==typeof o?n?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!r)return;t=function(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)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function QE(e,t){return(history.state?history.state.position-t:-1)+e}const KE=new Map;function YE(e,t){const{pathname:o,search:n,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,o=r.slice(t);return"/"!==o[0]&&(o="/"+o),$E(o,"")}return $E(o,e)+n+r}function JE(e,t,o,n=!1,r=!1){return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:r?qE():null}}function XE(e){const{history:t,location:o}=window,n={value:YE(e,o)},r={value:t.state};function i(n,i,a){const s=e.indexOf("#"),l=s>-1?(o.host&&document.querySelector("base")?e:e.slice(s))+n:location.protocol+"//"+location.host+e+n;try{t[a?"replaceState":"pushState"](i,"",l),r.value=i}catch(c){console.error(c),o[a?"replace":"assign"](l)}}return r.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:n,state:r,push:function(e,o){const a=cE({},r.value,t.state,{forward:e,scroll:qE()});i(a.current,a,!0),i(e,cE({},JE(n.value,e,null),{position:a.position+1},o),!1),n.value=e},replace:function(e,o){i(e,cE({},t.state,JE(r.value.back,e,r.value.forward,!0),o,{position:r.value.position}),!0),n.value=e}}}function ZE(e){const t=XE(e=NE(e)),o=function(e,t,o,n){let r=[],i=[],a=null;const s=({state:i})=>{const s=YE(e,location),l=o.value,c=t.value;let u=0;if(i){if(o.value=s,t.value=i,a&&a===l)return void(a=null);u=c?i.position-c.position:0}else n(s);r.forEach((e=>{e(o.value,l,{delta:u,type:jE.pop,direction:u?u>0?HE.forward:HE.back:HE.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(cE({},e.state,{scroll:qE()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){a=o.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const n=cE({location:"",base:e,go:function(e,t=!0){t||o.pauseListeners(),history.go(e)},createHref:VE.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function eO(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),ZE(e)}function tO(e){return"string"==typeof e||"symbol"==typeof e}const oO=Symbol("");var nO,rO;function iO(e,t){return cE(new Error,{type:e,[oO]:!0},t)}function aO(e,t){return e instanceof Error&&oO in e&&(null==t||!!(e.type&t))}(rO=nO||(nO={}))[rO.aborted=4]="aborted",rO[rO.cancelled=8]="cancelled",rO[rO.duplicated=16]="duplicated";const sO="[^/]+?",lO={sensitive:!1,strict:!1,start:!0,end:!0},cO=/[.+*?^${}()[\]/\\]/g;function uO(e,t){let o=0;for(;ot.length?1===t.length&&80===t[0]?1:-1:0}function dO(e,t){let o=0;const n=e.score,r=t.score;for(;o0&&t[t.length-1]<0}const pO={type:0,value:""},hO=/[a-zA-Z0-9_]/;function mO(e,t,o){const n=function(e,t){const o=cE({},lO,t),n=[];let r=o.start?"^":"";const i=[];for(const l of e){const e=l.length?[]:[90];o.strict&&!l.length&&(r+="/");for(let t=0;t1&&("*"===s||"+"===s)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}function f(){c+=s}for(;l{i(f)}:dE}function i(e){if(tO(e)){const t=n.get(e);t&&(n.delete(e),o.splice(o.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=o.indexOf(e);t>-1&&(o.splice(t,1),e.record.name&&n.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function a(e){const t=function(e,t){let o=0,n=t.length;for(;o!==n;){const r=o+n>>1;dO(e,t[r])<0?n=r:o=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(wO(t)&&0===dO(e,t))return t;return}(e);r&&(n=t.lastIndexOf(r,n-1));return n}(e,o);o.splice(t,0,e),e.record.name&&!xO(e)&&n.set(e.record.name,e)}return t=SO({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,a,s={};if("name"in e&&e.name){if(r=n.get(e.name),!r)throw iO(1,{location:e});a=r.record.name,s=cE(vO(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&vO(e.params,r.keys.map((e=>e.name)))),i=r.stringify(s)}else if(null!=e.path)i=e.path,r=o.find((e=>e.re.test(i))),r&&(s=r.parse(i),a=r.record.name);else{if(r=t.name?n.get(t.name):o.find((e=>e.re.test(t.path))),!r)throw iO(1,{location:e,currentLocation:t});a=r.record.name,s=cE({},t.params,e.params),i=r.stringify(s)}const l=[];let c=r;for(;c;)l.unshift(c.record),c=c.parent;return{name:a,path:i,params:s,matched:l,meta:CO(l)}},removeRoute:i,clearRoutes:function(){o.length=0,n.clear()},getRoutes:function(){return o},getRecordMatcher:function(e){return n.get(e)}}}function vO(e,t){const o={};for(const n of t)n in e&&(o[n]=e[n]);return o}function bO(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:yO(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 yO(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const n in e.components)t[n]="object"==typeof o?o[n]:o;return t}function xO(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function CO(e){return e.reduce(((e,t)=>cE(e,t.meta)),{})}function SO(e,t){const o={};for(const n in e)o[n]=n in t?t[n]:e[n];return o}function wO({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function _O(e){const t={};if(""===e||"?"===e)return t;const o=("?"===e[0]?e.slice(1):e).split("&");for(let n=0;ne&&EE(e))):[n&&EE(n)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+o,null!=e&&(t+="="+e))}))}return t}function PO(e){const t={};for(const o in e){const n=e[o];void 0!==n&&(t[o]=fE(n)?n.map((e=>null==e?null:""+e)):null==n?n:""+n)}return t}const TO=Symbol(""),EO=Symbol(""),OO=Symbol(""),MO=Symbol(""),IO=Symbol("");function RO(){let e=[];return{add:function(t){return e.push(t),()=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function $O(e,t,o,n,r,i=e=>e()){const a=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise(((s,l)=>{const c=e=>{var i;!1===e?l(iO(4,{from:o,to:t})):e instanceof Error?l(e):"string"==typeof(i=e)||i&&"object"==typeof i?l(iO(2,{from:t,to:e})):(a&&n.enterCallbacks[r]===a&&"function"==typeof e&&a.push(e),s())},u=i((()=>e.call(n&&n.instances[r],t,o,c)));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch((e=>l(e)))}))}function AO(e,t,o,n,r=e=>e()){const i=[];for(const a of e)for(const e in a.components){let s=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if(lE(s)){const l=(s.__vccOpts||s)[t];l&&i.push($O(l,o,n,a,e,r))}else{let l=s();i.push((()=>l.then((i=>{if(!i)throw new Error(`Couldn't resolve component "${e}" at "${a.path}"`);const s=(l=i).__esModule||"Module"===l[Symbol.toStringTag]||l.default&&lE(l.default)?i.default:i;var l;a.mods[e]=i,a.components[e]=s;const c=(s.__vccOpts||s)[t];return c&&$O(c,o,n,a,e,r)()}))))}}return i}function LO(e){const t=qr(OO),o=qr(MO),n=Ca((()=>{const o=Lo(e.to);return t.resolve(o)})),r=Ca((()=>{const{matched:e}=n.value,{length:t}=e,r=e[t-1],i=o.matched;if(!r||!i.length)return-1;const a=i.findIndex(AE.bind(null,r));if(a>-1)return a;const s=FO(e[t-2]);return t>1&&FO(r)===s&&i[i.length-1].path!==s?i.findIndex(AE.bind(null,e[t-2])):a})),i=Ca((()=>r.value>-1&&function(e,t){for(const o in t){const n=t[o],r=e[o];if("string"==typeof n){if(n!==r)return!1}else if(!fE(r)||r.length!==n.length||n.some(((e,t)=>e!==r[t])))return!1}return!0}(o.params,n.value.params))),a=Ca((()=>r.value>-1&&r.value===o.matched.length-1&&LE(o.params,n.value.params)));return{route:n,href:Ca((()=>n.value.href)),isActive:i,isExactActive:a,navigate:function(o={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(o)?t[Lo(e.replace)?"replace":"push"](Lo(e.to)).catch(dE):Promise.resolve()}}}const zO=qn({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:LO,setup(e,{slots:t}){const o=bo(LO(e)),{options:n}=qr(OO),r=Ca((()=>({[BO(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[BO(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive})));return()=>{const n=t.default&&t.default(o);return e.custom?n:Sa("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},n)}}});function FO(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const BO=(e,t,o)=>null!=e?e:null!=t?t:o,jO=qn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=qr(IO),r=Ca((()=>e.route||n.value)),i=qr(EO,0),a=Ca((()=>{let e=Lo(i);const{matched:t}=r.value;let o;for(;(o=t[e])&&!o.components;)e++;return e})),s=Ca((()=>r.value.matched[a.value]));Vr(EO,Ca((()=>a.value+1))),Vr(TO,s),Vr(IO,r);const l=Io();return vi((()=>[l.value,s.value,e.name]),(([e,t,o],[n,r,i])=>{t&&(t.instances[o]=e,r&&r!==t&&e&&e===n&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&AE(t,r)&&n||(t.enterCallbacks[o]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const n=r.value,i=e.name,a=s.value,c=a&&a.components[i];if(!c)return DO(o.default,{Component:c,route:n});const u=a.props[i],d=u?!0===u?n.params:"function"==typeof u?u(n):u:null,f=Sa(c,cE({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[i]=null)},ref:l}));return DO(o.default,{Component:f,route:n})||f}}});function DO(e,t){if(!e)return null;const o=e(t);return 1===o.length?o[0]:o}const HO=jO;function WO(e){const t=gO(e.routes,e),o=e.parseQuery||_O,n=e.stringifyQuery||kO,r=e.history,i=RO(),a=RO(),s=RO(),l=Ro(BE);let c=BE;sE&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=uE.bind(null,(e=>""+e)),d=uE.bind(null,OE),f=uE.bind(null,ME);function p(e,i){if(i=cE({},i||l.value),"string"==typeof e){const n=RE(o,e,i.path),a=t.resolve({path:n.path},i),s=r.createHref(n.fullPath);return cE(n,a,{params:f(a.params),hash:ME(n.hash),redirectedFrom:void 0,href:s})}let a;if(null!=e.path)a=cE({},e,{path:RE(o,e.path,i.path).path});else{const t=cE({},e.params);for(const e in t)null==t[e]&&delete t[e];a=cE({},e,{params:d(t)}),i.params=d(i.params)}const s=t.resolve(a,i),c=e.hash||"";s.params=u(f(s.params));const p=function(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}(n,cE({},e,{hash:(h=c,TE(h).replace(wE,"{").replace(kE,"}").replace(CE,"^")),path:s.path}));var h;const m=r.createHref(p);return cE({fullPath:p,hash:c,query:n===kO?PO(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function h(e){return"string"==typeof e?RE(o,e,l.value.path):cE({},e)}function m(e,t){if(c!==e)return iO(8,{from:t,to:e})}function g(e){return b(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:o}=t;let n="function"==typeof o?o(e):o;return"string"==typeof n&&(n=n.includes("?")||n.includes("#")?n=h(n):{path:n},n.params={}),cE({query:e.query,hash:e.hash,params:null!=n.path?{}:e.params},n)}}function b(e,t){const o=c=p(e),r=l.value,i=e.state,a=e.force,s=!0===e.replace,u=v(o);if(u)return b(cE(h(u),{state:"object"==typeof u?cE({},i,u.state):i,force:a,replace:s}),t||o);const d=o;let f;return d.redirectedFrom=t,!a&&function(e,t,o){const n=t.matched.length-1,r=o.matched.length-1;return n>-1&&n===r&&AE(t.matched[n],o.matched[r])&&LE(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}(n,r,o)&&(f=iO(16,{to:d,from:r}),I(r,r,!0,!1)),(f?Promise.resolve(f):C(d,r)).catch((e=>aO(e)?aO(e,2)?e:M(e):O(e,d,r))).then((e=>{if(e){if(aO(e,2))return b(cE({replace:s},h(e.to),{state:"object"==typeof e.to?cE({},i,e.to.state):i,force:a}),t||d)}else e=w(d,r,!0,s,i);return S(d,r,e),e}))}function y(e,t){const o=m(e,t);return o?Promise.reject(o):Promise.resolve()}function x(e){const t=A.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function C(e,t){let o;const[n,r,s]=function(e,t){const o=[],n=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;aAE(e,i)))?n.push(i):o.push(i));const s=e.matched[a];s&&(t.matched.find((e=>AE(e,s)))||r.push(s))}return[o,n,r]}(e,t);o=AO(n.reverse(),"beforeRouteLeave",e,t);for(const i of n)i.leaveGuards.forEach((n=>{o.push($O(n,e,t))}));const l=y.bind(null,e,t);return o.push(l),z(o).then((()=>{o=[];for(const n of i.list())o.push($O(n,e,t));return o.push(l),z(o)})).then((()=>{o=AO(r,"beforeRouteUpdate",e,t);for(const n of r)n.updateGuards.forEach((n=>{o.push($O(n,e,t))}));return o.push(l),z(o)})).then((()=>{o=[];for(const n of s)if(n.beforeEnter)if(fE(n.beforeEnter))for(const r of n.beforeEnter)o.push($O(r,e,t));else o.push($O(n.beforeEnter,e,t));return o.push(l),z(o)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),o=AO(s,"beforeRouteEnter",e,t,x),o.push(l),z(o)))).then((()=>{o=[];for(const n of a.list())o.push($O(n,e,t));return o.push(l),z(o)})).catch((e=>aO(e,8)?e:Promise.reject(e)))}function S(e,t,o){s.list().forEach((n=>x((()=>n(e,t,o)))))}function w(e,t,o,n,i){const a=m(e,t);if(a)return a;const s=t===BE,c=sE?history.state:{};o&&(n||s?r.replace(e.fullPath,cE({scroll:s&&c&&c.scroll},i)):r.push(e.fullPath,i)),l.value=e,I(e,t,o,s),M()}let _;function k(){_||(_=r.listen(((e,t,o)=>{if(!L.listening)return;const n=p(e),i=v(n);if(i)return void b(cE(i,{replace:!0}),n).catch(dE);c=n;const a=l.value;var s,u;sE&&(s=QE(a.fullPath,o.delta),u=qE(),KE.set(s,u)),C(n,a).catch((e=>aO(e,12)?e:aO(e,2)?(b(e.to,n).then((e=>{aO(e,20)&&!o.delta&&o.type===jE.pop&&r.go(-1,!1)})).catch(dE),Promise.reject()):(o.delta&&r.go(-o.delta,!1),O(e,n,a)))).then((e=>{(e=e||w(n,a,!1))&&(o.delta&&!aO(e,8)?r.go(-o.delta,!1):o.type===jE.pop&&aO(e,20)&&r.go(-1,!1)),S(n,a,e)})).catch(dE)})))}let P,T=RO(),E=RO();function O(e,t,o){M(e);const n=E.list();return n.length?n.forEach((n=>n(e,t,o))):console.error(e),Promise.reject(e)}function M(e){return P||(P=!e,k(),T.list().forEach((([t,o])=>e?o(e):t())),T.reset()),e}function I(t,o,n,r){const{scrollBehavior:i}=e;if(!sE||!i)return Promise.resolve();const a=!n&&function(e){const t=KE.get(e);return KE.delete(e),t}(QE(t.fullPath,0))||(r||!n)&&history.state&&history.state.scroll||null;return cn().then((()=>i(t,o,a))).then((e=>e&&GE(e))).catch((e=>O(e,t,o)))}const R=e=>r.go(e);let $;const A=new Set,L={currentRoute:l,listening:!0,addRoute:function(e,o){let n,r;return tO(e)?(n=t.getRecordMatcher(e),r=o):r=e,t.addRoute(r,n)},removeRoute:function(e){const o=t.getRecordMatcher(e);o&&t.removeRoute(o)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:p,options:e,push:g,replace:function(e){return g(cE(h(e),{replace:!0}))},go:R,back:()=>R(-1),forward:()=>R(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:E.add,isReady:function(){return P&&l.value!==BE?Promise.resolve():new Promise(((e,t)=>{T.add([e,t])}))},install(e){e.component("RouterLink",zO),e.component("RouterView",HO),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Lo(l)}),sE&&!$&&l.value===BE&&($=!0,g(r.location).catch((e=>{})));const t={};for(const n in BE)Object.defineProperty(t,n,{get:()=>l.value[n],enumerable:!0});e.provide(OO,this),e.provide(MO,yo(t)),e.provide(IO,l);const o=e.unmount;A.add(e),e.unmount=function(){A.delete(e),A.size<1&&(c=BE,_&&_(),_=null,l.value=BE,$=!1,P=!1),o()}}};function z(e){return e.reduce(((e,t)=>e.then((()=>x(t)))),Promise.resolve())}return L}function NO(){return qr(OO)}function UO(e){return qr(MO)}function VO(e){return VT(e).regexp}function qO(e){const t=Pm(e,5);for(const o of t)KO(o)&&GO(o);return t}function GO(e){var t;let o=WO({routes:[e],history:eO()});QO(o.getRoutes(),e.children||[],e),o=null,e.children=null==(t=e.children)?void 0:t.map((e=>mg(e,"children")))}function QO(e,t,o){var n,r;for(const i of t){const t=e.find((e=>e.name===i.name));t&&(o.children=o.children||[],o.children.find((e=>e.name===t.name))||null==(n=o.children)||n.push(t),(null==(r=i.children)?void 0:r.length)&&QO(e,i.children,o))}}function KO(e){var t,o;if(!e||!Reflect.has(e,"children")||!(null==(t=e.children)?void 0:t.length))return!1;const n=e.children;for(const r of n)if(null==(o=r.children)?void 0:o.length)return!0;return!1}function YO(e,t){return e.install=t=>{for(const o of[e,...Object.values({})])t.component(o.name,o)},e}var JO={},XO=(e=>(e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warn=3]="Warn",e[e.Error=4]="Error",e))(XO||{});function ZO(e,...t){switch(e){case XO.Trace:return console.trace(...t);case XO.Debug:return console.debug(...t);case XO.Info:return console.info(...t);case XO.Warn:return console.warn(...t);case XO.Error:return console.error(...t)}}class eM{constructor(e,t){this.identifier=e,this.value=t}toJSON(){return{identifier:this.identifier,value:this.value}}}const tM=(e,t)=>new eM(e,t);class oM{constructor(e="%s",t=!0){this.formatType=e,this.useColors=t,this.minimumTagWidth=5,this.message={format:"",args:[],fields:[]}}tag(e,t){let o=e;for(let n=e.length;ne instanceof eM))?this.message.fields.push(...e):this.useColors&&(t||o)?(this.message.format+=`${this.formatType}${this.getType(e)}${this.formatType}`,this.message.args.push(this.style(t,o),e,this.reset())):(this.message.format+=`${this.getType(e)}`,this.message.args.push(e))}write(e){const t=this.flush();this.doWrite(e,t)}flush(){const e=this.message;return this.message={format:"",args:[],fields:[]},e}getType(e){switch(typeof e){case"object":return"%o";case"number":return"%d";default:return"%s"}}}class nM{constructor(e,t){this.expected=e,this.ms=t}}class rM{constructor(e,t,o,n=[]){if(this._formatter=e,this.name=t,this.defaultFields=o,this.extenders=n,this.level=XO.Info,this.muted=!1,t&&(this.nameColor=this.hashStringToColor(t)),"undefined"!=typeof process)switch(JO.LOG_LEVEL){case"trace":this.level=XO.Trace;break;case"debug":this.level=XO.Debug;break;case"info":this.level=XO.Info;break;case"warn":this.level=XO.Warn;break;case"error":this.level=XO.Error}}set formatter(e){this._formatter=e}get formatter(){return this._formatter}mute(){this.muted=!0}extend(e){this.extenders.push(e)}info(e,...t){this.handle({message:e,fields:t,tagColor:"#66ccff",level:XO.Info})}warn(e,...t){this.handle({message:e,fields:t,tagColor:"#ffae00",level:XO.Warn})}trace(e,...t){this.handle({message:e,fields:t,tagColor:"#9e9e9e",level:XO.Trace})}debug(e,...t){this.handle({message:e,fields:t,tagColor:"#ffb8da",level:XO.Debug})}error(e,...t){this.handle({message:e,fields:t,tagColor:"#ff0000",level:XO.Error})}named(e,...t){const o=new rM(this._formatter,e,t,this.extenders);return this.muted&&o.mute(),o}handle(e){if(this.level>e.level||this.muted)return;let t=e.fields||[];if("function"==typeof e.message){const o=e.message();e.message=o.shift(),t=o}const o=this.defaultFields?t.filter((e=>!!e)).concat(this.defaultFields):t.filter((e=>!!e)),n=Date.now();let r=[];o&&o.length>0&&(r=o.filter((e=>e.value instanceof nM)),this._formatter.push(o)),this._formatter.tag(XO[e.level].toLowerCase(),e.tagColor),this.name&&this.nameColor&&this._formatter.tag(this.name,this.nameColor),this._formatter.push(e.message),r.length>0&&r.forEach((e=>{const t=n-e.value.ms,o=t/e.value.expected,r=125*(1-o),i=125+r,a=o<1?i:r,s=o>=1?i:r;this._formatter.push(` ${e.identifier}=`,"#3390ff"),this._formatter.push(`${t}ms`,this.rgbToHex(s>0?s:0,a>0?a:0,0))})),this._formatter.write(e.level),this.extenders.forEach((t=>{t(K({section:this.name},e))}))}djb2(e){let t=5381;for(let o=0;o>16,(65280&t)>>8,255&t)}}const iM=new rM("undefined"==typeof process||void 0===process.stdout?new class extends oM{constructor(){super("%c")}style(e,t){return(e?`color: ${e};`:"")+(t?`font-weight: ${t};`:"")}reset(){return this.style("inherit","normal")}doWrite(e,t){console.groupCollapsed(t.format,...t.args),t.fields.forEach((t=>{this.push(t.identifier,"#3794ff","bold"),void 0!==t.value&&t.value.constructor&&t.value.constructor.name&&this.push(` (${t.value.constructor.name})`),this.push(": "),this.push(t.value);const o=this.flush();ZO(e,o.format,...o.args)})),console.groupEnd()}}:new class extends oM{constructor(){super("%s",!!process.stdout.isTTY)}style(e,t){return("bold"===t?"":"")+(e?this.hex(e):"")}reset(){return""}hex(e){const[t,o,n]=this.hexToRgb(e);return`[38;2;${t};${o};${n}m`}hexToRgb(e){const t=parseInt(e.substring(1),16);return[t>>16&255,t>>8&255,255&t]}doWrite(e,t){if(0===t.fields.length)return ZO(e,`[%s] ${t.format}`,(new Date).toISOString(),...t.args);const o={};t.fields.forEach((e=>o[e.identifier]=e.value)),ZO(e,`[%s] ${t.format} %s%s%s`,(new Date).toISOString(),...t.args,this.style("#8c8c8c"),JSON.stringify(o),this.reset())}}),aM={},sM=function(e,t,o){let n=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),i=(null==r?void 0:r.nonce)||(null==r?void 0:r.getAttribute("nonce"));n=Promise.allSettled(t.map((t=>{if(t=function(e,t){return new URL(e,t).href}(t,o),t in aM)return;aM[t]=!0;const n=t.endsWith(".css"),r=n?'[rel="stylesheet"]':"";if(!!o)for(let o=e.length-1;o>=0;o--){const r=e[o];if(r.href===t&&(!n||"stylesheet"===r.rel))return}else if(document.querySelector(`link[href="${t}"]${r}`))return;const a=document.createElement("link");return a.rel=n?"stylesheet":"modulepreload",n||(a.as="script"),a.crossOrigin="",a.href=t,i&&a.setAttribute("nonce",i),document.head.appendChild(a),n?new Promise(((e,o)=>{a.addEventListener("load",e),a.addEventListener("error",(()=>o(new Error(`Unable to preload CSS for ${t}`))))})):void 0})))}function r(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return n.then((t=>{for(const e of t||[])"rejected"===e.status&&r(e.reason);return e().catch(r)}))},lM="PageNotFound",cM="Redirect",uM=()=>sM((()=>import("./index-Bje_nPpk.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url),dM=()=>sM((()=>import("./IframeContainer-BTKu5TDG.js")),__vite__mapDeps([32,33,5]),import.meta.url);function fM(e="ParentLayout"){return()=>Promise.resolve({name:e})}const pM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},hM=[Gi("path",{d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192s192-86 192-192z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),Gi("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M352 176L217.6 336L160 272"},null,-1)],mM=qn({name:"CheckmarkCircleOutline",render:function(e,t){return Fi(),Hi("svg",pM,hM)}}),gM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},vM=[Gi("path",{d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192s192-86 192-192z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),Gi("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M320 320L192 192"},null,-1),Gi("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 320l128-128"},null,-1)],bM=qn({name:"CloseCircleOutline",render:function(e,t){return Fi(),Hi("svg",gM,vM)}}),yM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},xM=[Gi("rect",{x:"128",y:"128",width:"336",height:"336",rx:"57",ry:"57",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1),Gi("path",{d:"M383.5 128l.5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)],CM=qn({name:"CopyOutline",render:function(e,t){return Fi(),Hi("svg",yM,xM)}}),SM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},wM=[Gi("path",{d:"M478.07 356.88L439 151c-8.86-40.35-23-71-88-71H145c-66 0-79.14 30.65-88 71L18 356.88c-7 34.12 4.43 61.25 33.37 71.81S103 423 119.18 391.3l15.42-30.52a16 16 0 0 1 14.28-8.78h198.28a16 16 0 0 1 14.28 8.78l15.42 30.52c16.14 31.7 38.88 48 67.81 37.39S485 391 478.07 356.88zM224 240h-48v48h-32v-48H96v-32h48v-48h32v48h48zm68 4a20 20 0 1 1 20-20a20 20 0 0 1-20 20zm44 44a20 20 0 1 1 20-20a20 20 0 0 1-20 20zm0-88a20 20 0 1 1 20-20a20 20 0 0 1-20 20zm44 44a20 20 0 1 1 20-20a20 20 0 0 1-20 20z",fill:"currentColor"},null,-1)],_M=qn({name:"GameControllerSharp",render:function(e,t){return Fi(),Hi("svg",SM,wM)}}),kM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},PM=[Gi("path",{d:"M200.66 352H144a96 96 0 0 1 0-192h55.41",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"48"},null,-1),Gi("path",{d:"M312.59 160H368a96 96 0 0 1 0 192h-56.66",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"48"},null,-1),Gi("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"48",d:"M169.07 256h175.86"},null,-1)],TM=qn({name:"Link",render:function(e,t){return Fi(),Hi("svg",kM,PM)}}),EM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},OM=[Xi('',6)],MM=qn({name:"List",render:function(e,t){return Fi(),Hi("svg",EM,OM)}}),IM={path:"/chat",name:"Chat",component:uM,redirect:"/chat/index",meta:{title:"routes.chat.chat",icon:_M,orderNumber:-9999,shouldHideSubMenuInMenu:!0},children:[{path:"index",name:"Chat",component:()=>sM((()=>import("./index-B0007Jh1.js")),__vite__mapDeps([34,13,29,35,1,20,23,22,36,37,9,4,5,6,10,24,38,19,14,15,8]),import.meta.url),meta:{title:"routes.chat.chat",icon:_M,shouldHideInMenu:!0}}]},RM=Object.freeze(Object.defineProperty({__proto__:null,default:IM},Symbol.toStringTag,{value:"Module"})),$M={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},AM=[Xi('',1)],LM=qn({name:"Armchair",render:function(e,t){return Fi(),Hi("svg",$M,AM)}}),zM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},FM=[Xi('',1)],BM=qn({name:"Backhoe",render:function(e,t){return Fi(),Hi("svg",zM,FM)}}),jM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},DM=[Gi("path",{d:"M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2c2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2a4.2 4.2 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12.3 12.3 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6c-.6.6-.6 1.2-.5 2V21",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)],HM=qn({name:"BrandGithub",render:function(e,t){return Fi(),Hi("svg",jM,DM)}}),WM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},NM=[Gi("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[Gi("circle",{cx:"12",cy:"12",r:"1"}),Gi("path",{d:"M16.924 11.132a5 5 0 1 0-4.056 5.792"}),Gi("path",{d:"M3 12a9 9 0 1 0 9-9"})],-1)],UM=qn({name:"ChartArcs",render:function(e,t){return Fi(),Hi("svg",WM,NM)}}),VM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},qM=[Xi('',1)],GM=qn({name:"CheckupList",render:function(e,t){return Fi(),Hi("svg",VM,qM)}}),QM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},KM=[Gi("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[Gi("circle",{cx:"9.5",cy:"9.5",r:"6.5"}),Gi("rect",{x:"10",y:"10",width:"11",height:"11",rx:"2"})],-1)],YM=qn({name:"CircleSquare",render:function(e,t){return Fi(),Hi("svg",QM,KM)}}),JM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},XM=[Xi('',1)],ZM=qn({name:"Components",render:function(e,t){return Fi(),Hi("svg",JM,XM)}}),eI={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},tI=[Gi("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[Gi("circle",{cx:"12",cy:"13",r:"2"}),Gi("path",{d:"M13.45 11.55L15.5 9.5"}),Gi("path",{d:"M6.4 20a9 9 0 1 1 11.2 0z"})],-1)],oI=qn({name:"Dashboard",render:function(e,t){return Fi(),Hi("svg",eI,tI)}}),nI={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},rI=[Xi('',1)],iI=qn({name:"DeviceDesktopAnalytics",render:function(e,t){return Fi(),Hi("svg",nI,rI)}}),aI={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},sI=[Gi("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[Gi("circle",{cx:"17",cy:"6",r:"2"}),Gi("path",{d:"M9 11a5 5 0 1 0 3.95 7.95"}),Gi("path",{d:"M19 20l-4-5h-4l3-5l-4-3l-4 1"})],-1)],lI=qn({name:"Disabled2",render:function(e,t){return Fi(),Hi("svg",aI,sI)}}),cI={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},uI=[Gi("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[Gi("path",{d:"M10.07 15.34c1.115.88 2.74.88 3.855 0c1.115-.88 1.398-2.388.671-3.575L12 8l-2.602 3.765c-.726 1.187-.443 2.694.672 3.575z"}),Gi("circle",{cx:"12",cy:"12",r:"9"})],-1)],dI=qn({name:"DropCircle",render:function(e,t){return Fi(),Hi("svg",cI,uI)}}),fI={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},pI=[Gi("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[Gi("path",{d:"M9 7H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2v-3"}),Gi("path",{d:"M9 15h3l8.5-8.5a1.5 1.5 0 0 0-3-3L9 12v3"}),Gi("path",{d:"M16 5l3 3"})],-1)],hI=qn({name:"Edit",render:function(e,t){return Fi(),Hi("svg",fI,pI)}}),mI={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},gI=[Gi("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[Gi("rect",{x:"8",y:"11",width:"8",height:"5",rx:"1"}),Gi("path",{d:"M10 11V9a2 2 0 1 1 4 0v2"}),Gi("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"})],-1)],vI=qn({name:"LockSquare",render:function(e,t){return Fi(),Hi("svg",mI,gI)}}),bI={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},yI=[Xi('',1)],xI=qn({name:"Palette",render:function(e,t){return Fi(),Hi("svg",bI,yI)}}),CI={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},SI=[Gi("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[Gi("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),Gi("path",{d:"M4 10h16"}),Gi("path",{d:"M10 4v16"})],-1)],wI=qn({name:"Table",render:function(e,t){return Fi(),Hi("svg",CI,SI)}}),_I={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},kI=[Xi('',1)],PI=qn({name:"Typography",render:function(e,t){return Fi(),Hi("svg",_I,kI)}}),TI={path:"/components",name:"Components",component:uM,redirect:"/components/headlessTable/basic",meta:{title:"routes.components.components",icon:ZM,shouldHideSubMenuInMenu:!1},children:[{path:"headlessTable",name:"HeadlessTable",component:uM,redirect:"/components/headlessTable/basic",meta:{title:"routes.components.headlessTable",icon:wI,shouldHideInMenu:!1},children:[{path:"basic",name:"headlessTableBasic",component:()=>sM((()=>import("./index-BNGu24Wu.js")),__vite__mapDeps([39,40,26,22]),import.meta.url),meta:{title:"routes.components.headlessTableBasic",shouldHideInMenu:!1}},{path:"pagination",name:"headlessTablePagination",component:()=>sM((()=>import("./index-GzWcCMOW.js")),__vite__mapDeps([41,40,42,22,1,23,21,5,10,4,6,15,18,24,25,26,38]),import.meta.url),meta:{title:"routes.components.headlessTablePagination",shouldHideInMenu:!1}}]},{path:"report",name:"Report",component:uM,redirect:"/components/report/r01",meta:{title:"routes.components.report",icon:iI,shouldHideInMenu:!1},children:[{path:"r01",name:"reportTest",component:()=>sM((()=>import("./index-BDCWwx3N.js")),__vite__mapDeps([43,44,27,6,20,36,45,46,1,35,4,5,23,22,9,10,24,3,26,42,21,15,18,25,38,11,12,13,37,19]),import.meta.url),meta:{title:"routes.components.report001",shouldHideInMenu:!1}},{path:"r02",name:"reportDemo",component:()=>sM((()=>import("./index-5zZZ8SzU.js")),__vite__mapDeps([47,29,45,46,1,35,20,4,5,6,23,22,9,10,24,3,26,42,21,15,18,25,38]),import.meta.url),meta:{title:"routes.components.report002",shouldHideInMenu:!1}}]},{path:"list",name:"List",component:uM,redirect:"/components/list/basic",meta:{title:"routes.components.list",icon:MM,shouldHideInMenu:!1},children:[{path:"basic",name:"listBasic",component:()=>sM((()=>import("./index-CojYk2g6.js")),__vite__mapDeps([48,44,27,6,20,36,45,46,1,35,4,5,23,22,9,10,24,3,26,42,21,15,18,25,38,11,12,13,37,19]),import.meta.url),meta:{title:"routes.components.listBasic",shouldHideInMenu:!1},children:[{path:"detail",name:"Detail",component:()=>sM((()=>import("./index-CojYk2g6.js")),__vite__mapDeps([48,44,27,6,20,36,45,46,1,35,4,5,23,22,9,10,24,3,26,42,21,15,18,25,38,11,12,13,37,19]),import.meta.url),meta:{title:"routes.components.detail",shouldHideInMenu:!1,shouldHideBreadcrumb:!1,currentActiveMenu:"/components/list/basic"}},{path:"preview",name:"Preview",component:()=>sM((()=>import("./index-CojYk2g6.js")),__vite__mapDeps([48,44,27,6,20,36,45,46,1,35,4,5,23,22,9,10,24,3,26,42,21,15,18,25,38,11,12,13,37,19]),import.meta.url),meta:{title:"routes.components.preview",shouldHideInMenu:!0,currentActiveMenu:"/components/list/basic"}}]},{path:"card",name:"listCard",component:()=>sM((()=>import("./index-DJtKRHrO.js")),__vite__mapDeps([49,29,17,9,4,1,5,6,10,3,18,19,20]),import.meta.url),meta:{title:"routes.components.listCard",shouldHideInMenu:!1}}]},{path:"form",name:"Form",component:uM,redirect:"/components/form/simple",meta:{title:"routes.components.form",icon:hI,shouldHideInMenu:!1},children:[{path:"simple",name:"Simple",component:()=>sM((()=>import("./index-To49Aw5y.js")),__vite__mapDeps([50,29]),import.meta.url),meta:{title:"routes.components.formsimple",shouldHideInMenu:!1}},{path:"complex",name:"Complex",component:()=>sM((()=>import("./index-Bfcg8leT.js")),__vite__mapDeps([51,13,23,22,1,36,19,20,16,45,46,35,4,5,6,9,10,24,3,26,42,21,15,18,25,38]),import.meta.url),meta:{title:"routes.components.formcomplex",shouldHideInMenu:!1}}]},{path:"echarts",name:"Echarts",component:uM,redirect:"/components/echarts/demo",meta:{title:"routes.components.echarts",icon:UM,shouldHideInMenu:!1},children:[{path:"demo",name:"ChartsDemo",component:()=>sM((()=>import("./index-CCyqW-xK.js")),__vite__mapDeps([52,53]),import.meta.url),meta:{title:"routes.components.normal",shouldHideInMenu:!1}}]}]},EI=Object.freeze(Object.defineProperty({__proto__:null,default:TI},Symbol.toStringTag,{value:"Module"})),OI={path:"/dashboard",name:"Dashboard",component:uM,redirect:"/dashboard/index",meta:{title:"routes.dashboard.dashboard",icon:oI,orderNumber:-9e3,shouldHideSubMenuInMenu:!0},children:[{path:"index",name:"Dashboard",component:()=>sM((()=>import("./index-zHZrWMB7.js")),__vite__mapDeps([54,29,27,6,20,53,55,30,33,5,12,19,56]),import.meta.url),meta:{title:"routes.dashboard.dashboard",icon:oI,shouldHideInMenu:!0,shouldAffixToNavBar:!0}}]},MI=Object.freeze(Object.defineProperty({__proto__:null,default:OI},Symbol.toStringTag,{value:"Module"})),II={path:"/design",name:"Design",component:uM,redirect:"/design/palette",meta:{title:"routes.design.design",icon:lI},children:[{path:"palette",name:"Palette",component:()=>sM((()=>import("./index-CtdGT7EU.js")),__vite__mapDeps([57,29,27,6,20,58]),import.meta.url),meta:{title:"routes.design.palette",icon:xI}},{path:"typography",name:"Typography",component:()=>sM((()=>import("./index-Bk2Jy4Jp.js")),__vite__mapDeps([59,29,60]),import.meta.url),meta:{title:"routes.design.typography",icon:PI}}]},RI=Object.freeze(Object.defineProperty({__proto__:null,default:II},Symbol.toStringTag,{value:"Module"})),$I={path:"/directive",name:"Directives",component:uM,redirect:"/directive/copy",meta:{title:"routes.directives.directives",icon:BM},children:[{path:"ripple",name:"Ripple",component:()=>sM((()=>import("./index-D4YjQK5G.js")),[],import.meta.url),meta:{title:"routes.directives.ripple",icon:dI}},{path:"copy",name:"Copy",component:()=>sM((()=>import("./index-iaKve87E.js")),__vite__mapDeps([61,28,13,23,22,1]),import.meta.url),meta:{title:"routes.directives.copy",icon:CM}}]},AI=Object.freeze(Object.defineProperty({__proto__:null,default:$I},Symbol.toStringTag,{value:"Module"})),LI='',zI='',FI='',BI='',jI={path:"/frame",name:"Frame",component:uM,redirect:"/frame/github",meta:{title:"routes.iframe.iframe",icon:TM},children:[{path:"vite",name:"Vite",component:dM,meta:{title:"routes.iframe.viteInternal",icon:FI,iframeLink:"https://cn.vitejs.dev/"}},{path:"vite-external",name:"ViteExternal",component:dM,meta:{title:"routes.iframe.ViteExternal",icon:FI,externalLink:"https://vitejs.dev/"}},{path:"github",name:"GitHub",component:dM,meta:{title:"routes.iframe.githubInternal",icon:HM,iframeLink:Uk}},{path:"github-external",name:"GitHubExternal",component:dM,meta:{title:"routes.iframe.GitHubExternal",icon:HM,externalLink:Uk}}]},DI=Object.freeze(Object.defineProperty({__proto__:null,default:jI},Symbol.toStringTag,{value:"Module"})),HI={path:"/menu",name:"Menu",component:uM,redirect:"/menu/index",meta:{title:"routes.menu.menu",icon:LM,orderNumber:-9999,shouldHideSubMenuInMenu:!0},children:[{path:"index",name:"Menu",component:()=>sM((()=>import("./index-J67kjxMB.js")),__vite__mapDeps([62,29,17,9,4,1,5,6,10,3,18,19,20]),import.meta.url),meta:{title:"routes.menu.menu",icon:LM,shouldHideInMenu:!0}},{path:"fuck",name:"FuckMenu",component:()=>sM((()=>import("./index-J67kjxMB.js")),__vite__mapDeps([62,29,17,9,4,1,5,6,10,3,18,19,20]),import.meta.url),meta:{title:"routes.menu.menu",icon:LM,shouldHideInMenu:!0}}]},WI=Object.freeze(Object.defineProperty({__proto__:null,default:HI},Symbol.toStringTag,{value:"Module"})),NI={path:"/permission",name:"Permission",component:uM,redirect:"/permission/frontend/page",meta:{title:"routes.permission.permission",icon:vI,orderNo:15},children:[{path:"frontend",name:"PermissionFrontDemo",component:fM("PermissionFrontDemo"),redirect:"/permission/frontend/page",meta:{title:"routes.permission.frontend"},children:[{path:"page",name:"FrontPageAuth",component:()=>sM((()=>import("./index-DTlshqIS.js")),__vite__mapDeps([63,64,19,20]),import.meta.url),meta:{title:"routes.permission.pageAuth"}},{path:"button-permission",name:"FrontButtonAuth",component:()=>sM((()=>import("./ButtonPermission-C-oJZffx.js")),__vite__mapDeps([65,64,66,19,20,16]),import.meta.url),meta:{title:"routes.permission.buttonAuth"}},{path:"auth-pageA",name:"FrontAuthPageA",component:()=>sM((()=>import("./AuthPageA-Dj0i4MBa.js")),[],import.meta.url),meta:{title:"routes.permission.authPageA",allowedRoles:[Jk.ADMIN]}},{path:"auth-pageB",name:"FrontAuthPageB",component:()=>sM((()=>import("./AuthPageB-B-BbysAB.js")),[],import.meta.url),meta:{title:"routes.permission.authPageB",allowedRoles:[Jk.USER]}}]},{path:"back",name:"PermissionBackDemo",component:fM("PermissionBackDemo"),redirect:"/permission/back/page",meta:{title:"routes.permission.backend"},children:[{path:"page",name:"BackAuthPage",component:()=>sM((()=>import("./index-C280tQWg.js")),__vite__mapDeps([67,64,19,20]),import.meta.url),meta:{title:"routes.permission.pageAuth"}},{path:"button-permission",name:"BackButtonAuth",component:()=>sM((()=>import("./ButtonPermission-DnMJq6mr.js")),__vite__mapDeps([68,64,66,16,19,20]),import.meta.url),meta:{title:"routes.permission.buttonAuth"}}]}]},UI=Object.freeze(Object.defineProperty({__proto__:null,default:NI},Symbol.toStringTag,{value:"Module"})),VI={path:"/profile",name:"Profile",component:uM,redirect:"/profile/index",meta:{title:"routes.profile.profile",icon:YM,orderNumber:-9e3,shouldHideSubMenuInMenu:!0,shouldHideInMenu:!0},children:[{path:"index",name:"Profile",component:()=>sM((()=>import("./index-9AHSgKyT.js")),__vite__mapDeps([69,2,3,4,1,5,6,14,15,19,20]),import.meta.url),meta:{title:"routes.profile.profile",icon:YM,shouldHideInMenu:!0}}]},qI=Object.freeze(Object.defineProperty({__proto__:null,default:VI},Symbol.toStringTag,{value:"Module"})),GI={path:"/result",name:"Result",component:uM,redirect:"/result/success",meta:{title:"routes.result.result",icon:GM},children:[{path:"success",name:"ResultSuccess",component:()=>sM((()=>import("./success-DHNpXM1V.js")),__vite__mapDeps([70,71,5,20,25,19,72]),import.meta.url),meta:{title:"routes.result.success",icon:mM}},{path:"fail",name:"ResultFail",component:()=>sM((()=>import("./fail-BFU6g2ZA.js")),__vite__mapDeps([73,19,20,72,71,5]),import.meta.url),meta:{title:"routes.result.fail",icon:bM}}]},QI=Object.freeze(Object.defineProperty({__proto__:null,default:GI},Symbol.toStringTag,{value:"Module"})),KI={path:"/",name:lM,component:uM,meta:{title:"ErrorPage",shouldHideInMenu:!0,shouldHideBreadcrumb:!0},children:[{path:":path(.*)*",name:lM,component:()=>sM((()=>import("./Exception-CX230KUQ.js")),__vite__mapDeps([74,19,20,72]),import.meta.url),meta:{title:"ErrorPage",shouldHideInMenu:!0,shouldHideBreadcrumb:!0}}]},YI={path:"/redirect",component:uM,name:"RedirectTo",meta:{title:cM,shouldHideBreadcrumb:!0,shouldHideInMenu:!0},children:[{path:"/redirect/:path(.*)",name:cM,component:()=>sM((()=>import("./index-CBXzYHRV.js")),[],import.meta.url),meta:{title:cM,shouldHideBreadcrumb:!0}}]},JI=function(e){const t=[];return Object.keys(e).forEach((o=>{const n=e[o].default||{},r=jd(n)?[...n]:[n];t.push(...r)})),t}(Object.assign({"./modules/chat.ts":RM,"./modules/components.ts":EI,"./modules/dashboard.ts":MI,"./modules/design.ts":RI,"./modules/directives.ts":AI,"./modules/iframe.ts":DI,"./modules/menu.ts":WI,"./modules/permission.ts":UI,"./modules/profile.ts":qI,"./modules/result.ts":QI}));const XI=[KI,...JI],ZI=new Map,eR=e=>{for(let t=0;tsM((()=>import("./index-BkjyKYn-.js")),__vite__mapDeps([75,7,13,23,22,1,36,46,55,30,16,29,76]),import.meta.url),meta:{title:"Login"}},YI,KI],nR=[];const rR=WO({history:eO(),routes:oR,strict:!0,scrollBehavior:()=>({left:0,top:0})});function iR(){rR.getRoutes().forEach((e=>{const{name:t}=e;t&&!nR.includes(t)&&rR.hasRoute(t)&&rR.removeRoute(t)}))}!function e(t){t.forEach((t=>{var o;nR.push(null!=(o=t.name)?o:""),t.children&&e(t.children)}))}(oR);const aR={shouldShowSettingButton:!0,locale:"zh-CN",shouldShowDarkModeToggle:!0,settingButtonPosition:Yk.AUTO,permissionMode:qk.BACKEND,permissionCacheType:Gk.LOCAL_STORAGE,sessionTimeoutProcessing:Qk.ROUTE_JUMP,shouldShowFullContent:!1,shouldShowLogo:!0,shouldShowFooter:!1,headerSetting:{shouldShow:!0,shouldShowFullScreen:!0,shouldShowSearch:!0,shouldShowNotice:!0,shouldShowSettingDrawer:!1},menuSetting:{collapsed:!1},transitionSetting:{shouldEnable:!0,routerBasicTransition:Kk.FADE,shouldOpenPageLoading:!0,shouldOpenNProgress:!0},shouldOpenKeepAlive:!0,lockTime:0,shouldShowBreadCrumb:!0,shouldShowBreadCrumbIcon:!0,shouldUseErrorHandle:!1,shouldUseOpenBackTop:!0,canEmbedIFramePage:!0,shouldCloseMessageOnSwitch:!0,shouldRemoveAllHttpPending:!1},sR=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,lR=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,cR=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function uR(e,t){if(!("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t))return t;!function(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}(e)}function dR(e,t={}){if("string"!=typeof e)return e;const o=e.trim();if('"'===e[0]&&e.endsWith('"')&&!e.includes("\\"))return o.slice(1,-1);if(o.length<=9){const e=o.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if("undefined"===e)return;if("null"===e)return null;if("nan"===e)return Number.NaN;if("infinity"===e)return Number.POSITIVE_INFINITY;if("-infinity"===e)return Number.NEGATIVE_INFINITY}if(!cR.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(sR.test(e)||lR.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,uR)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}function fR(e,t){if(null==e)return;let o=e;for(let n=0;n1&&(t=pR("object"==typeof e&&null!==e&&Object.prototype.hasOwnProperty.call(e,n)?e[n]:Number.isInteger(Number(o[1]))?[]:{},t,Array.prototype.slice.call(o,1))),Number.isInteger(Number(n))&&Array.isArray(e)?e.slice()[n]:Object.assign({},e,{[n]:t})}function hR(e,t){if(null==e||0===t.length)return e;if(1===t.length){if(null==e)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const o={};for(const t in e)o[t]=e[t];return delete o[t[0]],o}if(null==e[t[0]]){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const o={};for(const t in e)o[t]=e[t];return o}return pR(e,hR(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function mR(e,t){return t.map((e=>e.split("."))).map((t=>[t,fR(e,t)])).filter((e=>void 0!==e[1])).reduce(((e,t)=>pR(e,t[1],t[0])),{})}function gR(e,t){return t.map((e=>e.split("."))).reduce(((e,t)=>hR(e,t)),e)}function vR(e,{storage:t,serializer:o,key:n,debug:r,pick:i,omit:a,beforeHydrate:s,afterHydrate:l},c,u=!0){try{u&&(null==s||s(c));const r=t.getItem(n);if(r){const t=o.deserialize(r),n=i?mR(t,i):t,s=a?gR(n,a):n;e.$patch(s)}u&&(null==l||l(c))}catch(d){r&&console.error("[pinia-plugin-persistedstate]",d)}}function bR(e,{storage:t,serializer:o,key:n,debug:r,pick:i,omit:a}){try{const r=i?mR(e,i):e,s=a?gR(r,a):r,l=o.serialize(s);t.setItem(n,l)}catch(s){r&&console.error("[pinia-plugin-persistedstate]",s)}}function yR(e={}){return function(t){var o;!function(e,t,o){const{pinia:n,store:r,options:{persist:i=o}}=e;if(!i)return;if(!(r.$id in n.state.value)){const e=n._s.get(r.$id.replace("__hot:",""));return void(e&&Promise.resolve().then((()=>e.$persist())))}const a=(Array.isArray(i)?i:!0===i?[{}]:[i]).map(t);r.$hydrate=({runHooks:t=!0}={})=>{a.forEach((o=>{vR(r,o,e,t)}))},r.$persist=()=>{a.forEach((e=>{bR(r.$state,e)}))},a.forEach((t=>{vR(r,t,e),r.$subscribe(((e,o)=>bR(o,t)),{detached:!0})}))}(t,(o=>{var n,r,i,a,s,l,c;return{key:(e.key?e.key:e=>e)(null!=(n=o.key)?n:t.store.$id),debug:null!=(i=null!=(r=o.debug)?r:e.debug)&&i,serializer:null!=(s=null!=(a=o.serializer)?a:e.serializer)?s:{serialize:e=>JSON.stringify(e),deserialize:e=>dR(e)},storage:null!=(c=null!=(l=o.storage)?l:e.storage)?c:window.localStorage,beforeHydrate:o.beforeHydrate,afterHydrate:o.afterHydrate,pick:o.pick,omit:o.omit}}),null!=(o=e.auto)&&o)}}const xR=class{static createAesEncryption(e){return new zP(e)}static createBase64Encryption(){return BP.getInstance()}}.createAesEncryption({key:"celeris-web-admin@",iv:"@celeris-web-admin"}),CR=`${function(e){const t=e,o=null==t?void 0:t.MODE;return`${null==t?void 0:t.VITE_GLOB_APP_SHORT_NAME}_${o}`.toUpperCase()}({BASE_URL:"./",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BUILD_COMPRESS:"none",VITE_DROP_CONSOLE:"false",VITE_GLOB_API_URL:"https://test.djgo.cc/api",VITE_GLOB_API_URL_PREFIX:"",VITE_GLOB_APP_SHORT_NAME:"Naiveui_Web",VITE_GLOB_APP_TITLE:"Naive Admin",VITE_LEGACY:"false",VITE_PORT:"8888",VITE_PUBLIC_PATH:"./",VITE_USE_HTTPS:"false",VITE_USE_MOCK:"false"})}_0.02_`.toUpperCase();function SR(e){return{deserialize:e=>dR(xR.decrypt(e)),serialize:e=>{const t=JSON.stringify(e);return xR.encrypt(t)}}}const wR=Nk("APP_USER_STORE",{persist:{pick:["userInfo","token","refreshToken","roleList","updatedAt"],storage:aR.permissionCacheType===Gk.LOCAL_STORAGE?localStorage:sessionStorage},state:()=>({shouldLoggedIn:!1,userInfo:null,token:void 0,refreshToken:void 0,roleList:[],shouldPasswordExpired:void 0,updatedAt:void 0}),getters:{getShouldLoggedIn:e=>e.shouldLoggedIn,getUserInfo:e=>e.userInfo,getToken:e=>e.token,getRefreshToken:e=>e.refreshToken,getRoleList:e=>e.roleList,getShouldPasswordExpired:e=>e.shouldPasswordExpired,getUpdatedAt:e=>e.updatedAt},actions:{setShouldLoggedIn(e){this.shouldLoggedIn=e},setUserInfo(e){this.userInfo=e,this.updatedAt=Date.now()},setToken(e){this.token=e},setRefreshToken(e){this.refreshToken=e},setRoleList(e){this.roleList=e},setShouldPasswordExpired(e){this.shouldPasswordExpired=e},setUpdatedAt(e){this.updatedAt=e},resetUserState(){this.shouldLoggedIn=!1,this.userInfo=null,this.token=void 0,this.refreshToken=void 0,this.roleList=[],this.shouldPasswordExpired=void 0,this.updatedAt=void 0},login(e){return ie(this,null,(function*(){try{const o=e,{errorMessageMode:n,redirectToHome:r=!0}=o,i=J(o,["errorMessageMode","redirectToHome"]),{data:a,status:s,message:l}=yield(t=i,FA("/auth/login",K({},t)));if(console.log("status log==>",s,l),"fail"==s)throw l;return this.setToken(a.token),this.performAfterLoginAction(r)}catch(o){return Promise.reject(o)}var t}))},performAfterLoginAction(e=!0){return ie(this,null,(function*(){if(!this.getToken)return null;this.setShouldLoggedIn(!0);const t=yield this.getUserInfoAction();if(this.shouldPasswordExpired)this.setShouldPasswordExpired(!1);else{const o=jA();if(console.log("permissionStore log==>",o.shouldAddRouteDynamically),!o.shouldAddRouteDynamically){(yield o.buildRoutesAction()).forEach((e=>{rR.addRoute(e)})),rR.addRoute(KI),o.setShouldAddRouteDynamically(!0)}e&&(yield rR.replace((null==t?void 0:t.homePageUrl)||Vk.BASE_HOME))}return t}))},getUserInfoAction(){return ie(this,null,(function*(){if(!this.getToken)return null;const{data:e}=yield BA("/user/info"),{roles:t=[]}=e;return this.setRoleList(t),this.setUserInfo(e),e}))},logout(e=!0){return ie(this,null,(function*(){if(this.getToken)try{yield FA("/auth/logout")}catch(t){iM.error("logout error",tM("error",HT(t)))}this.resetUserState(),e&&(yield rR.push(Vk.BASE_LOGIN))}))}}});function _R(){return wR(NA)}function kR(e,t){return function(){return e.apply(t,arguments)}}const{toString:PR}=Object.prototype,{getPrototypeOf:TR}=Object,ER=(e=>t=>{const o=PR.call(t);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),OR=e=>(e=e.toLowerCase(),t=>ER(t)===e),MR=e=>t=>typeof t===e,{isArray:IR}=Array,RR=MR("undefined");const $R=OR("ArrayBuffer");const AR=MR("string"),LR=MR("function"),zR=MR("number"),FR=e=>null!==e&&"object"==typeof e,BR=e=>{if("object"!==ER(e))return!1;const t=TR(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},jR=OR("Date"),DR=OR("File"),HR=OR("Blob"),WR=OR("FileList"),NR=OR("URLSearchParams"),[UR,VR,qR,GR]=["ReadableStream","Request","Response","Headers"].map(OR);function QR(e,t,{allOwnKeys:o=!1}={}){if(null==e)return;let n,r;if("object"!=typeof e&&(e=[e]),IR(e))for(n=0,r=e.length;n0;)if(n=o[r],t===n.toLowerCase())return n;return null}const YR="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,JR=e=>!RR(e)&&e!==YR;const XR=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&TR(Uint8Array)),ZR=OR("HTMLFormElement"),e$=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),t$=OR("RegExp"),o$=(e,t)=>{const o=Object.getOwnPropertyDescriptors(e),n={};QR(o,((o,r)=>{let i;!1!==(i=t(o,r,e))&&(n[r]=i||o)})),Object.defineProperties(e,n)},n$="abcdefghijklmnopqrstuvwxyz",r$="0123456789",i$={DIGIT:r$,ALPHA:n$,ALPHA_DIGIT:n$+n$.toUpperCase()+r$};const a$=OR("AsyncFunction"),s$=(l$="function"==typeof setImmediate,c$=LR(YR.postMessage),l$?setImmediate:c$?(u$=`axios@${Math.random()}`,d$=[],YR.addEventListener("message",(({source:e,data:t})=>{e===YR&&t===u$&&d$.length&&d$.shift()()}),!1),e=>{d$.push(e),YR.postMessage(u$,"*")}):e=>setTimeout(e));var l$,c$,u$,d$;const f$="undefined"!=typeof queueMicrotask?queueMicrotask.bind(YR):"undefined"!=typeof process&&process.nextTick||s$,p$={isArray:IR,isArrayBuffer:$R,isBuffer:function(e){return null!==e&&!RR(e)&&null!==e.constructor&&!RR(e.constructor)&&LR(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||LR(e.append)&&("formdata"===(t=ER(e))||"object"===t&&LR(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&$R(e.buffer),t},isString:AR,isNumber:zR,isBoolean:e=>!0===e||!1===e,isObject:FR,isPlainObject:BR,isReadableStream:UR,isRequest:VR,isResponse:qR,isHeaders:GR,isUndefined:RR,isDate:jR,isFile:DR,isBlob:HR,isRegExp:t$,isFunction:LR,isStream:e=>FR(e)&&LR(e.pipe),isURLSearchParams:NR,isTypedArray:XR,isFileList:WR,forEach:QR,merge:function e(){const{caseless:t}=JR(this)&&this||{},o={},n=(n,r)=>{const i=t&&KR(o,r)||r;BR(o[i])&&BR(n)?o[i]=e(o[i],n):BR(n)?o[i]=e({},n):IR(n)?o[i]=n.slice():o[i]=n};for(let r=0,i=arguments.length;r(QR(t,((t,n)=>{o&&LR(t)?e[n]=kR(t,o):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(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)},toFlatObject:(e,t,o,n)=>{let r,i,a;const s={};if(t=t||{},null==e)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=!1!==o&&TR(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},kindOf:ER,kindOfTest:OR,endsWith:(e,t,o)=>{e=String(e),(void 0===o||o>e.length)&&(o=e.length),o-=t.length;const n=e.indexOf(t,o);return-1!==n&&n===o},toArray:e=>{if(!e)return null;if(IR(e))return e;let t=e.length;if(!zR(t))return null;const o=new Array(t);for(;t-- >0;)o[t]=e[t];return o},forEachEntry:(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const o=n.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{let o;const n=[];for(;null!==(o=e.exec(t));)n.push(o);return n},isHTMLForm:ZR,hasOwnProperty:e$,hasOwnProp:e$,reduceDescriptors:o$,freezeMethods:e=>{o$(e,((t,o)=>{if(LR(e)&&-1!==["arguments","caller","callee"].indexOf(o))return!1;const n=e[o];LR(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")}))}))},toObjectSet:(e,t)=>{const o={},n=e=>{e.forEach((e=>{o[e]=!0}))};return IR(e)?n(e):n(String(e).split(t)),o},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,o){return t.toUpperCase()+o})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:KR,global:YR,isContextDefined:JR,ALPHABET:i$,generateString:(e=16,t=i$.ALPHA_DIGIT)=>{let o="";const{length:n}=t;for(;e--;)o+=t[Math.random()*n|0];return o},isSpecCompliantForm:function(e){return!!(e&&LR(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),o=(e,n)=>{if(FR(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const r=IR(e)?[]:{};return QR(e,((e,t)=>{const i=o(e,n+1);!RR(i)&&(r[t]=i)})),t[n]=void 0,r}}return e};return o(e,0)},isAsyncFn:a$,isThenable:e=>e&&(FR(e)||LR(e))&&LR(e.then)&&LR(e.catch),setImmediate:s$,asap:f$};function h$(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)}p$.inherits(h$,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:p$.toJSONObject(this.config),code:this.code,status:this.status}}});const m$=h$.prototype,g$={};["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=>{g$[e]={value:e}})),Object.defineProperties(h$,g$),Object.defineProperty(m$,"isAxiosError",{value:!0}),h$.from=(e,t,o,n,r,i)=>{const a=Object.create(m$);return p$.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),h$.call(a,e.message,t,o,n,r),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function v$(e){return p$.isPlainObject(e)||p$.isArray(e)}function b$(e){return p$.endsWith(e,"[]")?e.slice(0,-2):e}function y$(e,t,o){return e?e.concat(t).map((function(e,t){return e=b$(e),!o&&t?"["+e+"]":e})).join(o?".":""):t}const x$=p$.toFlatObject(p$,{},null,(function(e){return/^is[A-Z]/.test(e)}));function C$(e,t,o){if(!p$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(o=p$.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!p$.isUndefined(t[e])}))).metaTokens,r=o.visitor||c,i=o.dots,a=o.indexes,s=(o.Blob||"undefined"!=typeof Blob&&Blob)&&p$.isSpecCompliantForm(t);if(!p$.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(p$.isDate(e))return e.toISOString();if(!s&&p$.isBlob(e))throw new h$("Blob is not supported. Use a Buffer instead.");return p$.isArrayBuffer(e)||p$.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,o,r){let s=e;if(e&&!r&&"object"==typeof e)if(p$.endsWith(o,"{}"))o=n?o:o.slice(0,-2),e=JSON.stringify(e);else if(p$.isArray(e)&&function(e){return p$.isArray(e)&&!e.some(v$)}(e)||(p$.isFileList(e)||p$.endsWith(o,"[]"))&&(s=p$.toArray(e)))return o=b$(o),s.forEach((function(e,n){!p$.isUndefined(e)&&null!==e&&t.append(!0===a?y$([o],n,i):null===a?o:o+"[]",l(e))})),!1;return!!v$(e)||(t.append(y$(r,o,i),l(e)),!1)}const u=[],d=Object.assign(x$,{defaultVisitor:c,convertValue:l,isVisitable:v$});if(!p$.isObject(e))throw new TypeError("data must be an object");return function e(o,n){if(!p$.isUndefined(o)){if(-1!==u.indexOf(o))throw Error("Circular reference detected in "+n.join("."));u.push(o),p$.forEach(o,(function(o,i){!0===(!(p$.isUndefined(o)||null===o)&&r.call(t,o,p$.isString(i)?i.trim():i,n,d))&&e(o,n?n.concat(i):[i])})),u.pop()}}(e),t}function S$(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function w$(e,t){this._pairs=[],e&&C$(e,this,t)}const _$=w$.prototype;function k$(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function P$(e,t,o){if(!t)return e;const n=o&&o.encode||k$,r=o&&o.serialize;let i;if(i=r?r(t,o):p$.isURLSearchParams(t)?t.toString():new w$(t,o).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}_$.append=function(e,t){this._pairs.push([e,t])},_$.toString=function(e){const t=e?function(t){return e.call(this,t,S$)}:S$;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class T${constructor(){this.handlers=[]}use(e,t,o){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!o&&o.synchronous,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){p$.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const E$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},O$={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:w$,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},M$="undefined"!=typeof window&&"undefined"!=typeof document,I$="object"==typeof navigator&&navigator||void 0,R$=M$&&(!I$||["ReactNative","NativeScript","NS"].indexOf(I$.product)<0),$$="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,A$=M$&&window.location.href||"http://localhost",L$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:M$,hasStandardBrowserEnv:R$,hasStandardBrowserWebWorkerEnv:$$,navigator:I$,origin:A$},Symbol.toStringTag,{value:"Module"})),z$=K(K({},L$),O$);function F$(e){function t(e,o,n,r){let i=e[r++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=r>=e.length;if(i=!i&&p$.isArray(n)?n.length:i,s)return p$.hasOwnProp(n,i)?n[i]=[n[i],o]:n[i]=o,!a;n[i]&&p$.isObject(n[i])||(n[i]=[]);return t(e,o,n[i],r)&&p$.isArray(n[i])&&(n[i]=function(e){const t={},o=Object.keys(e);let n;const r=o.length;let i;for(n=0;n{t(function(e){return p$.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,o,0)})),o}return null}const B$={transitional:E$,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const o=t.getContentType()||"",n=o.indexOf("application/json")>-1,r=p$.isObject(e);r&&p$.isHTMLForm(e)&&(e=new FormData(e));if(p$.isFormData(e))return n?JSON.stringify(F$(e)):e;if(p$.isArrayBuffer(e)||p$.isBuffer(e)||p$.isStream(e)||p$.isFile(e)||p$.isBlob(e)||p$.isReadableStream(e))return e;if(p$.isArrayBufferView(e))return e.buffer;if(p$.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(r){if(o.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return C$(e,new z$.classes.URLSearchParams,Object.assign({visitor:function(e,t,o,n){return z$.isNode&&p$.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=p$.isFileList(e))||o.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return C$(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||n?(t.setContentType("application/json",!1),function(e,t){if(p$.isString(e))try{return(t||JSON.parse)(e),p$.trim(e)}catch(hD){if("SyntaxError"!==hD.name)throw hD}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||B$.transitional,o=t&&t.forcedJSONParsing,n="json"===this.responseType;if(p$.isResponse(e)||p$.isReadableStream(e))return e;if(e&&p$.isString(e)&&(o&&!this.responseType||n)){const o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(hD){if(o){if("SyntaxError"===hD.name)throw h$.from(hD,h$.ERR_BAD_RESPONSE,this,null,this.response);throw hD}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:z$.classes.FormData,Blob:z$.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p$.forEach(["delete","get","head","post","put","patch"],(e=>{B$.headers[e]={}}));const j$=p$.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"]),D$=Symbol("internals");function H$(e){return e&&String(e).trim().toLowerCase()}function W$(e){return!1===e||null==e?e:p$.isArray(e)?e.map(W$):String(e)}function N$(e,t,o,n,r){return p$.isFunction(n)?n.call(this,t,o):(r&&(t=o),p$.isString(t)?p$.isString(n)?-1!==t.indexOf(n):p$.isRegExp(n)?n.test(t):void 0:void 0)}class U${constructor(e){e&&this.set(e)}set(e,t,o){const n=this;function r(e,t,o){const r=H$(t);if(!r)throw new Error("header name must be a non-empty string");const i=p$.findKey(n,r);(!i||void 0===n[i]||!0===o||void 0===o&&!1!==n[i])&&(n[i||t]=W$(e))}const i=(e,t)=>p$.forEach(e,((e,o)=>r(e,o,t)));if(p$.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(p$.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let o,n,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),o=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!o||t[o]&&j$[o]||("set-cookie"===o?t[o]?t[o].push(n):t[o]=[n]:t[o]=t[o]?t[o]+", "+n:n)})),t})(e),t);else if(p$.isHeaders(e))for(const[a,s]of e.entries())r(s,a,o);else null!=e&&r(t,e,o);return this}get(e,t){if(e=H$(e)){const o=p$.findKey(this,e);if(o){const e=this[o];if(!t)return e;if(!0===t)return function(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}(e);if(p$.isFunction(t))return t.call(this,e,o);if(p$.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=H$(e)){const o=p$.findKey(this,e);return!(!o||void 0===this[o]||t&&!N$(0,this[o],o,t))}return!1}delete(e,t){const o=this;let n=!1;function r(e){if(e=H$(e)){const r=p$.findKey(o,e);!r||t&&!N$(0,o[r],r,t)||(delete o[r],n=!0)}}return p$.isArray(e)?e.forEach(r):r(e),n}clear(e){const t=Object.keys(this);let o=t.length,n=!1;for(;o--;){const r=t[o];e&&!N$(0,this[r],r,e,!0)||(delete this[r],n=!0)}return n}normalize(e){const t=this,o={};return p$.forEach(this,((n,r)=>{const i=p$.findKey(o,r);if(i)return t[i]=W$(n),void delete t[r];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,o)=>t.toUpperCase()+o))}(r):String(r).trim();a!==r&&delete t[r],t[a]=W$(n),o[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return p$.forEach(this,((o,n)=>{null!=o&&!1!==o&&(t[n]=e&&p$.isArray(o)?o.join(", "):o)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const o=new this(e);return t.forEach((e=>o.set(e))),o}static accessor(e){const t=(this[D$]=this[D$]={accessors:{}}).accessors,o=this.prototype;function n(e){const n=H$(e);t[n]||(!function(e,t){const o=p$.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+o,{value:function(e,o,r){return this[n].call(this,t,e,o,r)},configurable:!0})}))}(o,e),t[n]=!0)}return p$.isArray(e)?e.forEach(n):n(e),this}}function V$(e,t){const o=this||B$,n=t||o,r=U$.from(n.headers);let i=n.data;return p$.forEach(e,(function(e){i=e.call(o,i,r.normalize(),t?t.status:void 0)})),r.normalize(),i}function q$(e){return!(!e||!e.__CANCEL__)}function G$(e,t,o){h$.call(this,null==e?"canceled":e,h$.ERR_CANCELED,t,o),this.name="CanceledError"}function Q$(e,t,o){const n=o.config.validateStatus;o.status&&n&&!n(o.status)?t(new h$("Request failed with status code "+o.status,[h$.ERR_BAD_REQUEST,h$.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o)):e(o)}U$.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),p$.reduceDescriptors(U$.prototype,(({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[o]=e}}})),p$.freezeMethods(U$),p$.inherits(G$,h$,{__CANCEL__:!0});const K$=(e,t,o=3)=>{let n=0;const r=function(e,t){e=e||10;const o=new Array(e),n=new Array(e);let r,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=n[a];r||(r=l),o[i]=s,n[i]=l;let u=a,d=0;for(;u!==i;)d+=o[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-r{r=i,o=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-r;s>=i?a(e,t):(o=e,n||(n=setTimeout((()=>{n=null,a(o)}),i-s)))},()=>o&&a(o)]}((o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s);n=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:o,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),o)},Y$=(e,t)=>{const o=null!=e;return[n=>t[0]({lengthComputable:o,total:e,loaded:n}),t[1]]},J$=e=>(...t)=>p$.asap((()=>e(...t))),X$=z$.hasStandardBrowserEnv?function(){const e=z$.navigator&&/(msie|trident)/i.test(z$.navigator.userAgent),t=document.createElement("a");let o;function n(o){let n=o;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return o=n(window.location.href),function(e){const t=p$.isString(e)?n(e):e;return t.protocol===o.protocol&&t.host===o.host}}():function(){return function(){return!0}}(),Z$=z$.hasStandardBrowserEnv?{write(e,t,o,n,r,i){const a=[e+"="+encodeURIComponent(t)];p$.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),p$.isString(n)&&a.push("path="+n),p$.isString(r)&&a.push("domain="+r),!0===i&&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:()=>null,remove(){}};function eA(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const tA=e=>e instanceof U$?K({},e):e;function oA(e,t){t=t||{};const o={};function n(e,t,o){return p$.isPlainObject(e)&&p$.isPlainObject(t)?p$.merge.call({caseless:o},e,t):p$.isPlainObject(t)?p$.merge({},t):p$.isArray(t)?t.slice():t}function r(e,t,o){return p$.isUndefined(t)?p$.isUndefined(e)?void 0:n(void 0,e,o):n(e,t,o)}function i(e,t){if(!p$.isUndefined(t))return n(void 0,t)}function a(e,t){return p$.isUndefined(t)?p$.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(o,r,i){return i in t?n(o,r):i in e?n(void 0,o):void 0}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:(e,t)=>r(tA(e),tA(t),!0)};return p$.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=l[n]||r,a=i(e[n],t[n],n);p$.isUndefined(a)&&i!==s||(o[n]=a)})),o}const nA=e=>{const t=oA({},e);let o,{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=U$.from(s),t.url=P$(eA(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),p$.isFormData(n))if(z$.hasStandardBrowserEnv||z$.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(o=s.getContentType())){const[e,...t]=o?o.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(z$.hasStandardBrowserEnv&&(r&&p$.isFunction(r)&&(r=r(t)),r||!1!==r&&X$(t.url))){const e=i&&a&&Z$.read(a);e&&s.set(i,e)}return t},rA="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,o){const n=nA(e);let r=n.data;const i=U$.from(n.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=n;function h(){c&&c(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const n=U$.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Q$((function(e){t(e),h()}),(function(e){o(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(o(new h$("Request aborted",h$.ECONNABORTED,e,m)),m=null)},m.onerror=function(){o(new h$("Network Error",h$.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const r=n.transitional||E$;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),o(new h$(t,r.clarifyTimeoutError?h$.ETIMEDOUT:h$.ECONNABORTED,e,m)),m=null},void 0===r&&i.setContentType(null),"setRequestHeader"in m&&p$.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),p$.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),d&&"json"!==d&&(m.responseType=n.responseType),p&&([l,u]=K$(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=K$(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(a=t=>{m&&(o(!t||t.type?new G$(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);v&&-1===z$.protocols.indexOf(v)?o(new h$("Unsupported protocol "+v+":",h$.ERR_BAD_REQUEST,e)):m.send(r||null)}))},iA=(e,t)=>{const{length:o}=e=e?e.filter(Boolean):[];if(t||o){let o,n=new AbortController;const r=function(e){if(!o){o=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof h$?t:new G$(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,r(new h$(`timeout ${t} of ms exceeded`,h$.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)})),e=null)};e.forEach((e=>e.addEventListener("abort",r)));const{signal:s}=n;return s.unsubscribe=()=>p$.asap(a),s}},aA=function*(e,t){let o=e.byteLength;if(o(t=e[V("asyncIterator")])?t.call(e):(e=e[V("iterator")](),t={},(o=(o,n)=>(n=e[o])&&(t[o]=t=>new Promise(((o,r,i)=>(t=n.call(e,t),i=t.done,Promise.resolve(t.value).then((e=>o({value:e,done:i})),r))))))("next"),o("return"),t))(lA(e));o=!(n=yield new ae(i.next())).done;o=!1){const e=n.value;yield*le(aA(e,t))}}catch(n){r=[n]}finally{try{o&&(n=i.return)&&(yield new ae(n.call(i)))}finally{if(r)throw r[0]}}}))},lA=function(e){return se(this,null,(function*(){if(e[Symbol.asyncIterator])return void(yield*le(e));const t=e.getReader();try{for(;;){const{done:e,value:o}=yield new ae(t.read());if(e)break;yield o}}finally{yield new ae(t.cancel())}}))},cA=(e,t,o,n)=>{const r=sA(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({pull(e){return ie(this,null,(function*(){try{const{done:t,value:n}=yield r.next();if(t)return s(),void e.close();let i=n.byteLength;if(o){let e=a+=i;o(e)}e.enqueue(new Uint8Array(n))}catch(t){throw s(t),t}}))},cancel:e=>(s(e),r.return())},{highWaterMark:2})},uA="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,dA=uA&&"function"==typeof ReadableStream,fA=uA&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):e=>ie(void 0,null,(function*(){return new Uint8Array(yield new Response(e).arrayBuffer())}))),pA=(e,...t)=>{try{return!!e(...t)}catch(hD){return!1}},hA=dA&&pA((()=>{let e=!1;const t=new Request(z$.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),mA=dA&&pA((()=>p$.isReadableStream(new Response("").body))),gA={stream:mA&&(e=>e.body)};var vA;uA&&(vA=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!gA[e]&&(gA[e]=p$.isFunction(vA[e])?t=>t[e]():(t,o)=>{throw new h$(`Response type '${e}' is not supported`,h$.ERR_NOT_SUPPORT,o)})})));const bA=(e,t)=>ie(void 0,null,(function*(){const o=p$.toFiniteNumber(e.getContentLength());return null==o?(e=>ie(void 0,null,(function*(){if(null==e)return 0;if(p$.isBlob(e))return e.size;if(p$.isSpecCompliantForm(e)){const t=new Request(z$.origin,{method:"POST",body:e});return(yield t.arrayBuffer()).byteLength}return p$.isArrayBufferView(e)||p$.isArrayBuffer(e)?e.byteLength:(p$.isURLSearchParams(e)&&(e+=""),p$.isString(e)?(yield fA(e)).byteLength:void 0)})))(t):o})),yA={http:null,xhr:rA,fetch:uA&&(e=>ie(void 0,null,(function*(){let{url:t,method:o,data:n,signal:r,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=nA(e);c=c?(c+"").toLowerCase():"text";let p,h=iA([r,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&hA&&"get"!==o&&"head"!==o&&0!==(g=yield bA(u,n))){let e,o=new Request(t,{method:"POST",body:n,duplex:"half"});if(p$.isFormData(n)&&(e=o.headers.get("content-type"))&&u.setContentType(e),o.body){const[e,t]=Y$(g,K$(J$(l)));n=cA(o.body,65536,e,t)}}p$.isString(d)||(d=d?"include":"omit");const r="credentials"in Request.prototype;p=new Request(t,Y(K({},f),{signal:h,method:o.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:r?d:void 0}));let i=yield fetch(p);const a=mA&&("stream"===c||"response"===c);if(mA&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=p$.toFiniteNumber(i.headers.get("content-length")),[o,n]=s&&Y$(t,K$(J$(s),!0))||[];i=new Response(cA(i.body,65536,o,(()=>{n&&n(),m&&m()})),e)}c=c||"text";let v=yield gA[p$.findKey(gA,c)||"text"](i,e);return!a&&m&&m(),yield new Promise(((t,o)=>{Q$(t,o,{data:v,headers:U$.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new h$("Network Error",h$.ERR_NETWORK,e,p),{cause:v.cause||v});throw h$.from(v,v&&v.code,e,p)}})))};p$.forEach(yA,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(hD){}Object.defineProperty(e,"adapterName",{value:t})}}));const xA=e=>`- ${e}`,CA=e=>p$.isFunction(e)||null===e||!1===e,SA=e=>{e=p$.isArray(e)?e:[e];const{length:t}=e;let o,n;const r={};for(let i=0;i`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new h$("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(xA).join("\n"):" "+xA(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function wA(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new G$(null,e)}function _A(e){wA(e),e.headers=U$.from(e.headers),e.data=V$.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return SA(e.adapter||B$.adapter)(e).then((function(t){return wA(e),t.data=V$.call(e,e.transformResponse,t),t.headers=U$.from(t.headers),t}),(function(t){return q$(t)||(wA(e),t&&t.response&&(t.response.data=V$.call(e,e.transformResponse,t.response),t.response.headers=U$.from(t.response.headers))),Promise.reject(t)}))}const kA="1.7.7",PA={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{PA[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}}));const TA={};PA.transitional=function(e,t,o){function n(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(o,r,i)=>{if(!1===e)throw new h$(n(r," has been removed"+(t?" in "+t:"")),h$.ERR_DEPRECATED);return t&&!TA[r]&&(TA[r]=!0,console.warn(n(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(o,r,i)}};const EA={assertOptions:function(e,t,o){if("object"!=typeof e)throw new h$("options must be an object",h$.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 t=e[i],o=void 0===t||a(t,i,e);if(!0!==o)throw new h$("option "+i+" must be "+o,h$.ERR_BAD_OPTION_VALUE)}else if(!0!==o)throw new h$("Unknown option "+i,h$.ERR_BAD_OPTION)}},validators:PA},OA=EA.validators;class MA{constructor(e){this.defaults=e,this.interceptors={request:new T$,response:new T$}}request(e,t){return ie(this,null,(function*(){try{return yield this._request(e,t)}catch(o){if(o instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{o.stack?t&&!String(o.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(o.stack+="\n"+t):o.stack=t}catch(hD){}}throw o}}))}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=oA(this.defaults,t);const{transitional:o,paramsSerializer:n,headers:r}=t;void 0!==o&&EA.assertOptions(o,{silentJSONParsing:OA.transitional(OA.boolean),forcedJSONParsing:OA.transitional(OA.boolean),clarifyTimeoutError:OA.transitional(OA.boolean)},!1),null!=n&&(p$.isFunction(n)?t.paramsSerializer={serialize:n}:EA.assertOptions(n,{encode:OA.function,serialize:OA.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=r&&p$.merge(r.common,r[t.method]);r&&p$.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=U$.concat(i,r);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[_A.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d{if(!o._listeners)return;let t=o._listeners.length;for(;t-- >0;)o._listeners[t](e);o._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{o.subscribe(e),t=e})).then(e);return n.cancel=function(){o.unsubscribe(t)},n},e((function(e,n,r){o.reason||(o.reason=new G$(e,n,r),t(o.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new IA((function(t){e=t})),cancel:e}}}const RA={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(RA).forEach((([e,t])=>{RA[t]=e}));const $A=function e(t){const o=new MA(t),n=kR(MA.prototype.request,o);return p$.extend(n,MA.prototype,o,{allOwnKeys:!0}),p$.extend(n,o,null,{allOwnKeys:!0}),n.create=function(o){return e(oA(t,o))},n}(B$);$A.Axios=MA,$A.CanceledError=G$,$A.CancelToken=IA,$A.isCancel=q$,$A.VERSION=kA,$A.toFormData=C$,$A.AxiosError=h$,$A.Cancel=$A.CanceledError,$A.all=function(e){return Promise.all(e)},$A.spread=function(e){return function(t){return e.apply(null,t)}},$A.isAxiosError=function(e){return p$.isObject(e)&&!0===e.isAxiosError},$A.mergeConfig=oA,$A.AxiosHeaders=U$,$A.formToJSON=e=>F$(p$.isHTMLForm(e)?new FormData(e):e),$A.getAdapter=SA,$A.HttpStatusCode=RA,$A.default=$A;const AA={BASE_URL:"./",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BUILD_COMPRESS:"none",VITE_DROP_CONSOLE:"false",VITE_GLOB_API_URL:"https://test.djgo.cc/api",VITE_GLOB_API_URL_PREFIX:"",VITE_GLOB_APP_SHORT_NAME:"Naiveui_Web",VITE_GLOB_APP_TITLE:"Naive Admin",VITE_LEGACY:"false",VITE_PORT:"8888",VITE_PUBLIC_PATH:"./",VITE_USE_HTTPS:"false",VITE_USE_MOCK:"false"};const{API_URL:LA}=function(){const e=function(e){const{VITE_GLOB_APP_TITLE:t,VITE_GLOB_API_URL:o,VITE_GLOB_APP_SHORT_NAME:n,VITE_GLOB_API_URL_PREFIX:r}=e;return/^[a-zA-Z_]*$/.test(n)||console.warn("VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running."),{APP_TITLE:t||"",API_URL:o||"",APP_SHORT_NAME:n||"",API_URL_PREFIX:r||""}}(AA);return e}(),zA=$A.create({baseURL:LA,timeout:5e3});zA.interceptors.request.use((function(e){const t=wR();return e.headers.Authorization=t.getToken,e}),(function(e){return Promise.reject(e)})),zA.interceptors.response.use((function(e){return e.data}),(function(e){return Promise.reject(e)}));const FA=(e,t,o)=>zA.post(e,t,o),BA=(e,t)=>zA.get(e,t);const jA=Nk("APP_PERMISSION_STORE",{state:()=>({permissionCodes:[],shouldAddRouteDynamically:!1,lastMenuBuildTime:0,backendMenuList:[],frontendMenuList:[]}),getters:{getPermissionCodes:e=>e.permissionCodes,getBackendMenuList:e=>e.backendMenuList,getFrontendMenuList:e=>e.frontendMenuList,getLastMenuBuildTime:e=>e.lastMenuBuildTime,getShouldAddRouteDynamically:e=>e.shouldAddRouteDynamically},actions:{setPermissionCodes(e){this.permissionCodes=e},setBackendMenuList(e){this.backendMenuList=e,e.length>0&&this.setLastMenuBuildTime()},setFrontendMenuList(e){this.frontendMenuList=e},setLastMenuBuildTime(e){this.lastMenuBuildTime=e||Date.now()},setShouldAddRouteDynamically(e){this.shouldAddRouteDynamically=e},resetPermissionState(){this.permissionCodes=[],this.backendMenuList=[],this.frontendMenuList=[],this.lastMenuBuildTime=0,this.shouldAddRouteDynamically=!1},changePermissionCode(){return ie(this,null,(function*(){const{data:e}=yield BA("/auth/permission");this.setPermissionCodes(e)}))},buildRoutesAction(){return ie(this,null,(function*(){let e=[];return e=XI,BA("/menu/all").then((({data:e})=>{this.setBackendMenuList(e)})),e=qO(e),e}))}}});function DA(){return jA(NA)}const HA=oR.map((e=>e.name)),WA=Nk("APP_TABS_STORE",{persist:!0,state:()=>({tabs:[],maxVisibleTabs:3}),getters:{getTabsList:e=>e.tabs},actions:{addTab(e){const{name:t,meta:o}=e;if(!t||HA.includes(t))return;const n=(null==o?void 0:o.title)||t.toString().split("-").at(-1);if(n){const o={name:t,fullPath:e.fullPath,title:n,pin:!1};this.tabs=yg([...this.tabs,o],"fullPath").slice(-this.maxVisibleTabs)}},closeTab(e){this.tabs=this.tabs.filter((t=>t.fullPath!==e.fullPath))},pinnedTab:e=>(e.pin=!e.pin,!0),resetTabsState(){this.tabs=[],this.maxVisibleTabs=3}}}),NA=function(){const e=lt(!0),t=e.run((()=>Io({})));let o=[],n=[];const r=To({install(e){Ek(r),r._a=e,e.provide(Ok,r),e.config.globalProperties.$pinia=r,n.forEach((e=>o.push(e))),n=[]},use(e){return this._a?o.push(e):n.push(e),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return r}();var UA;let VA;NA.use(yR((UA=CR,{storage:localStorage,key:e=>`${UA}__${e}`,serializer:SR()})));const qA=Nk("APP_STORE",{state:()=>({projectSetting:aR,pageLoading:!1}),persist:{pick:["projectSetting"]},getters:{getPageLoading:e=>e.pageLoading,getProjectSetting:e=>e.projectSetting||{},getMenuSetting(){return this.getProjectSetting.menuSetting},getHeaderSetting(){return this.projectSetting.headerSetting},getTransitionSetting(){return this.projectSetting.transitionSetting}},actions:{setPageLoading(e){this.pageLoading=e},setProjectSetting(e){this.projectSetting=DT(this.projectSetting||{},e)},setMenuSetting(e){this.setProjectSetting({menuSetting:e})},setHeaderSetting(e){this.setProjectSetting({headerSetting:e})},setTransitionSetting(e){this.setProjectSetting({transitionSetting:e})},setPageLoadingAction(e){clearTimeout(VA),e?VA=setTimeout((()=>{this.setPageLoading(e)}),50):this.setPageLoading(e)},resetAPPState(){iR(),this.setProjectSetting(aR)}}});function GA(){return qA(NA)}function QA(){const e=GA();return{getProjectSetting:function(){return e.getProjectSetting},setProjectSetting:function(t){e.setProjectSetting(t)},getShouldShowSettingButton:Uo((()=>e.getProjectSetting.shouldShowSettingButton)),getLocale:Ca((()=>e.getProjectSetting.locale)),getShouldShowDarkModeToggle:Uo((()=>e.getProjectSetting.shouldShowDarkModeToggle)),getSettingButtonPosition:Uo((()=>e.getProjectSetting.settingButtonPosition)),getPermissionMode:Uo((()=>e.getProjectSetting.permissionMode)),getPermissionCacheType:Uo((()=>e.getProjectSetting.permissionCacheType)),getSessionTimeoutProcessing:Uo((()=>e.getProjectSetting.sessionTimeoutProcessing)),getShouldShowFullContent:Uo((()=>e.getProjectSetting.shouldShowFullContent)),getShouldShowLogo:Uo((()=>e.getProjectSetting.shouldShowLogo)),getShouldShowFooter:Uo((()=>e.getProjectSetting.shouldShowFooter)),getShouldOpenKeepAlive:Uo((()=>e.getProjectSetting.shouldOpenKeepAlive)),getLockTime:Uo((()=>e.getProjectSetting.lockTime)),getShouldShowBreadCrumb:Uo((()=>e.getProjectSetting.shouldShowBreadCrumb)),getShouldShowBreadCrumbIcon:Uo((()=>e.getProjectSetting.shouldShowBreadCrumbIcon)),getShouldUseErrorHandle:Uo((()=>e.getProjectSetting.shouldUseErrorHandle)),getShouldUseOpenBackTop:Uo((()=>e.getProjectSetting.shouldUseOpenBackTop)),getCanEmbedIFramePage:Uo((()=>e.getProjectSetting.canEmbedIFramePage)),getShouldCloseMessageOnSwitch:Uo((()=>e.getProjectSetting.shouldCloseMessageOnSwitch)),getShouldRemoveAllHttpPending:Uo((()=>e.getProjectSetting.shouldRemoveAllHttpPending))}}function KA(){const e=_R(),t=GA(),o=DA(),n=Uo((()=>t.getProjectSetting.permissionMode)),r=Uo((()=>n.value===qk.BACKEND)),i=Uo((()=>n.value===qk.ROUTE_MAPPING)),a=Uo((()=>n.value===qk.ROLE));function s(){return ie(this,null,(function*(){iR();(yield o.buildRoutesAction()).forEach((e=>{rR.addRoute(e)})),o.setLastMenuBuildTime()}))}return{getPermissionMode:n,isBackendPermissionMode:r,isRouteMappingPermissionMode:i,isRolePermissionMode:a,changeRole:function(t){return ie(this,null,(function*(){if(aR.permissionMode!==qk.ROUTE_MAPPING)throw new Error("Please switch to ROUTE_MAPPING mode in the configuration before performing this operation.");jd(t)||(t=[t]),e.setRoleList(t),yield s()}))},hasPermission:function(t,n=!1){if(!t)return n;const r=aR.permissionMode;if([qk.ROUTE_MAPPING,qk.ROLE].includes(r))return jd(t)?sg(t,e.getRoleList).length>0:e.getRoleList.includes(t);if(qk.BACKEND===r){const e=o.getPermissionCodes;return jd(t)?sg(t,e).length>0:e.includes(t)}return n},togglePermissionMode:function(){var e;t.setProjectSetting({permissionMode:(null==(e=t.projectSetting)?void 0:e.permissionMode)===qk.BACKEND?qk.ROUTE_MAPPING:qk.BACKEND}),location.reload()},refreshMenu:function(){return ie(this,null,(function*(){yield s()}))}}}function YA(e,t){return t?wT(e,!0,Sb.bodyColor):wT(e)}function JA(e){return e?Sb.textColor2:py.baseColor}function XA(e,t){const o=function(e,t){const o={},n=Object.keys(e),r=[{scene:"",handler:e=>YA(e,t)[5]},{scene:"Hover",handler:e=>YA(e,t)[4]},{scene:"Suppl",handler:e=>YA(e,t)[4]},{scene:"Pressed",handler:e=>YA(e,t)[6]}];return n.forEach((t=>{r.forEach((n=>{const r=n.handler(e[t]),i=`${t}Color${n.scene}`;o[i]=r}))})),o}(e,t);return DT(K({common:K({},o)},function(e,t){const o={Button:{},Checkbox:{checkMarkColor:JA(t)},DatePicker:{itemTextColorActive:JA(t)},Calendar:{dateTextColorCurrent:JA(t)},Switch:{buttonColor:JA(t)}},n=Object.keys(e),r=["","Hover","Pressed","Focus","Disabled"];return n.forEach((e=>{r.forEach((n=>{const r=`textColor${n}${i=e,i.charAt(0).toUpperCase()+i.slice(1)}`;var i;o.Button[r]=JA(t)}))})),o}(e,t)),function(e){var t;const o=BL().getNaiveUIPresetTheme.value;return{common:{borderRadius:"0.5rem",borderRadiusSmall:"0.25rem",cubicBezierEaseInOut:"cubic-bezier(0.65, 0, 0.35, 1)",cubicBezierEaseOut:"cubic-bezier(0.33, 1, 0.68, 1)",cubicBezierEaseIn:"cubic-bezier(0.32, 0, 0.67, 0)",modalColor:null==(t=null==o?void 0:o.common)?void 0:t.modalColor},Card:{borderRadius:"1rem"},Statistic:{labelTextColor:e?"#fff":"#000",valueTextColor:e?"#fff":"#000",labelFontWeight:400,valueFontWeight:800}}}(t))}const ZA={shouldEnableGrayMode:!1,shouldEnableColorWeak:!1,shouldEnableDarkMode:!1,shouldFollowSystemTheme:!0,themeColor:$T.celerisBlue,otherColor:{info:$T.blue,success:$T.green,warning:$T.orange,error:$T.red}};function eL(e){return!!ct()&&(ut(e),!0)}function tL(e){return"function"==typeof e?e():Lo(e)}const oL="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const nL=Object.prototype.toString,rL=()=>{};const iL=e=>e();function aL(e,t,o={}){const n=o,{eventFilter:r=iL}=n,i=J(n,["eventFilter"]);return vi(e,(a=r,s=t,function(...e){return new Promise(((t,o)=>{Promise.resolve(a((()=>s.apply(this,e)),{fn:s,thisArg:this,args:e})).then(t).catch(o)}))}),i);var a,s}function sL(e,t,o={}){const n=o,{eventFilter:r}=n,i=J(n,["eventFilter"]),{eventFilter:a,pause:s,resume:l,isActive:c}=function(e=iL){const t=Io(!0);return{isActive:xo(t),pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...o)=>{t.value&&e(...o)}}}(r);return{stop:aL(e,t,Y(K({},i),{eventFilter:a})),pause:s,resume:l,isActive:c}}function lL(e,t=!0,o){la()?rr(e,o):t?e():cn(e)}function cL(e=!1,t={}){const{truthyValue:o=!0,falsyValue:n=!1}=t,r=Mo(e),i=Io(e);function a(e){if(arguments.length)return i.value=e,i.value;{const e=tL(o);return i.value=i.value===e?tL(n):e,i.value}}return r?a:[i,a]}function uL(e,t,o){return vi(e,((e,o,n)=>{e&&t(e,o,n)}),Y(K({},o),{once:!1}))}const dL=oL?window:void 0,fL=oL?window.document:void 0;function pL(e){var t;const o=tL(e);return null!=(t=null==o?void 0:o.$el)?t:o}function hL(...e){let t,o,n,r;if("string"==typeof e[0]||Array.isArray(e[0])?([o,n,r]=e,t=dL):[t,o,n,r]=e,!t)return rL;Array.isArray(o)||(o=[o]),Array.isArray(n)||(n=[n]);const i=[],a=()=>{i.forEach((e=>e())),i.length=0},s=vi((()=>[pL(t),tL(r)]),(([e,t])=>{if(a(),!e)return;const r=(s=t,"[object Object]"===nL.call(s)?K({},t):t);var s;i.push(...o.flatMap((t=>n.map((o=>((e,t,o,n)=>(e.addEventListener(t,o,n),()=>e.removeEventListener(t,o,n)))(e,t,o,r))))))}),{immediate:!0,flush:"post"}),l=()=>{s(),a()};return eL(l),l}function mL(e){const t=function(){const e=Io(!1),t=la();return t&&rr((()=>{e.value=!0}),t),e}();return Ca((()=>(t.value,Boolean(e()))))}function gL(e,t={}){const{window:o=dL}=t,n=mL((()=>o&&"matchMedia"in o&&"function"==typeof o.matchMedia));let r;const i=Io(!1),a=e=>{i.value=e.matches},s=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",a):r.removeListener(a))},l=gi((()=>{n.value&&(s(),r=o.matchMedia(tL(e)),"addEventListener"in r?r.addEventListener("change",a):r.addListener(a),i.value=r.matches)}));return eL((()=>{l(),s(),r=void 0})),i}const vL={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function bL(e,t={}){function o(t,o){let n=tL(e[tL(t)]);return null!=o&&(n=function(e,t){var o;if("number"==typeof e)return e+t;const n=(null==(o=e.match(/^-?\d+\.?\d*/))?void 0:o[0])||"",r=e.slice(n.length),i=Number.parseFloat(n)+t;return Number.isNaN(i)?e:i+r}(n,o)),"number"==typeof n&&(n=`${n}px`),n}const{window:n=dL,strategy:r="min-width"}=t;function i(e){return!!n&&n.matchMedia(e).matches}const a=e=>gL((()=>`(min-width: ${o(e)})`),t),s=e=>gL((()=>`(max-width: ${o(e)})`),t),l=Object.keys(e).reduce(((e,t)=>(Object.defineProperty(e,t,{get:()=>"min-width"===r?a(t):s(t),enumerable:!0,configurable:!0}),e)),{});function c(){const t=Object.keys(e).map((e=>[e,a(e)]));return Ca((()=>t.filter((([,e])=>e.value)).map((([e])=>e))))}return Object.assign(l,{greaterOrEqual:a,smallerOrEqual:s,greater:e=>gL((()=>`(min-width: ${o(e,.1)})`),t),smaller:e=>gL((()=>`(max-width: ${o(e,-.1)})`),t),between:(e,n)=>gL((()=>`(min-width: ${o(e)}) and (max-width: ${o(n,-.1)})`),t),isGreater:e=>i(`(min-width: ${o(e,.1)})`),isGreaterOrEqual:e=>i(`(min-width: ${o(e)})`),isSmaller:e=>i(`(max-width: ${o(e,-.1)})`),isSmallerOrEqual:e=>i(`(max-width: ${o(e)})`),isInBetween:(e,t)=>i(`(min-width: ${o(e)}) and (max-width: ${o(t,-.1)})`),current:c,active(){const e=c();return Ca((()=>0===e.value.length?"":e.value.at(-1)))}})}const yL="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},xL="__vueuse_ssr_handlers__",CL=SL();function SL(){return xL in yL||(yL[xL]=yL[xL]||{}),yL[xL]}function wL(e,t){return CL[e]||t}function _L(e){return gL("(prefers-color-scheme: dark)",e)}const kL={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},PL="vueuse-storage";function TL(e,t,o,n={}){var r;const{flush:i="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=dL,eventFilter:f,onError:p=e=>{console.error(e)},initOnMounted:h}=n,m=(u?Ro:Io)("function"==typeof t?t():t);if(!o)try{o=wL("getDefaultStorage",(()=>{var e;return null==(e=dL)?void 0:e.localStorage}))()}catch(hD){p(hD)}if(!o)return m;const g=tL(t),v=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}(g),b=null!=(r=n.serializer)?r:kL[v],{pause:y,resume:x}=sL(m,(()=>function(t){try{const n=o.getItem(e);if(null==t)C(n,null),o.removeItem(e);else{const r=b.write(t);n!==r&&(o.setItem(e,r),C(n,r))}}catch(hD){p(hD)}}(m.value)),{flush:i,deep:a,eventFilter:f});function C(t,n){if(d){const r={key:e,oldValue:t,newValue:n,storageArea:o};d.dispatchEvent(o instanceof Storage?new StorageEvent("storage",r):new CustomEvent(PL,{detail:r}))}}function S(t){if(!t||t.storageArea===o)if(t&&null==t.key)m.value=g;else if(!t||t.key===e){y();try{(null==t?void 0:t.newValue)!==b.write(m.value)&&(m.value=function(t){const n=t?t.newValue:o.getItem(e);if(null==n)return l&&null!=g&&o.setItem(e,b.write(g)),g;if(!t&&c){const e=b.read(n);return"function"==typeof c?c(e,g):"object"!==v||Array.isArray(e)?e:K(K({},g),e)}return"string"!=typeof n?n:b.read(n)}(t))}catch(hD){p(hD)}finally{t?cn(x):x()}}}function w(e){S(e.detail)}return d&&s&&lL((()=>{o instanceof Storage?hL(d,"storage",S):hL(d,PL,w),h&&S()})),h||S(),m}function EL(e){const t=la(),o=function(e,t){let o,n,r;const i=Io(!0),a=()=>{i.value=!0,r()};vi(e,a,{flush:"sync"});const s="function"==typeof t?t:t.get,l="function"==typeof t?void 0:t.set,c=Do(((e,t)=>(n=e,r=t,{get:()=>(i.value&&(o=s(o),i.value=!1),n(),o),set(e){null==l||l(e)}})));return Object.isExtensible(c)&&(c.trigger=a),c}((()=>null),(()=>t.proxy.$el));return ar(o.trigger),rr(o.trigger),o}function OL(e,t={width:0,height:0},o={}){const{window:n=dL,box:r="content-box"}=o,i=Ca((()=>{var t,o;return null==(o=null==(t=pL(e))?void 0:t.namespaceURI)?void 0:o.includes("svg")})),a=Io(t.width),s=Io(t.height),{stop:l}=function(e,t,o={}){const n=o,{window:r=dL}=n,i=J(n,["window"]);let a;const s=mL((()=>r&&"ResizeObserver"in r)),l=()=>{a&&(a.disconnect(),a=void 0)},c=vi(Ca((()=>{const t=tL(e);return Array.isArray(t)?t.map((e=>pL(e))):[pL(t)]})),(e=>{if(l(),s.value&&r){a=new ResizeObserver(t);for(const t of e)t&&a.observe(t,i)}}),{immediate:!0,flush:"post"}),u=()=>{l(),c()};return eL(u),{isSupported:s,stop:u}}(e,(([t])=>{const o="border-box"===r?t.borderBoxSize:"content-box"===r?t.contentBoxSize:t.devicePixelContentBoxSize;if(n&&i.value){const t=pL(e);if(t){const e=t.getBoundingClientRect();a.value=e.width,s.value=e.height}}else if(o){const e=Array.isArray(o)?o:[o];a.value=e.reduce(((e,{inlineSize:t})=>e+t),0),s.value=e.reduce(((e,{blockSize:t})=>e+t),0)}else a.value=t.contentRect.width,s.value=t.contentRect.height}),o);lL((()=>{const o=pL(e);o&&(a.value="offsetWidth"in o?o.offsetWidth:t.width,s.value="offsetHeight"in o?o.offsetHeight:t.height)}));const c=vi((()=>pL(e)),(e=>{a.value=e?t.width:0,s.value=e?t.height:0}));return{width:a,height:s,stop:function(){l(),c()}}}const ML=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function IL(e,t={}){const{document:o=fL,autoExit:n=!1}=t,r=Ca((()=>{var t;return null!=(t=pL(e))?t:null==o?void 0:o.querySelector("html")})),i=Io(!1),a=Ca((()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find((e=>o&&e in o||r.value&&e in r.value)))),s=Ca((()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find((e=>o&&e in o||r.value&&e in r.value)))),l=Ca((()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find((e=>o&&e in o||r.value&&e in r.value)))),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find((e=>o&&e in o)),u=mL((()=>r.value&&o&&void 0!==a.value&&void 0!==s.value&&void 0!==l.value)),d=()=>{if(l.value){if(o&&null!=o[l.value])return o[l.value];{const e=r.value;if(null!=(null==e?void 0:e[l.value]))return Boolean(e[l.value])}}return!1};function f(){return ie(this,null,(function*(){if(u.value&&i.value){if(s.value)if(null!=(null==o?void 0:o[s.value]))yield o[s.value]();else{const e=r.value;null!=(null==e?void 0:e[s.value])&&(yield e[s.value]())}i.value=!1}}))}function p(){return ie(this,null,(function*(){if(!u.value||i.value)return;d()&&(yield f());const e=r.value;a.value&&null!=(null==e?void 0:e[a.value])&&(yield e[a.value](),i.value=!0)}))}const h=()=>{const e=d();(!e||e&&c&&(null==o?void 0:o[c])===r.value)&&(i.value=e)};return hL(o,ML,h,!1),hL((()=>pL(r)),ML,h,!1),n&&eL(f),{isSupported:u,isFullscreen:i,enter:p,exit:f,toggle:function(){return ie(this,null,(function*(){yield i.value?f():p()}))}}}const RL={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function $L(e={}){const{reactive:t=!1,target:o=dL,aliasMap:n=RL,passive:r=!0,onEventFired:i=rL}=e,a=bo(new Set),s={toJSON:()=>({}),current:a},l=t?bo(s):s,c=new Set,u=new Set;function d(e,o){e in l&&(t?l[e]=o:l[e].value=o)}function f(){a.clear();for(const e of u)d(e,!1)}function p(e,t){var o,n;const r=null==(o=e.key)?void 0:o.toLowerCase(),i=[null==(n=e.code)?void 0:n.toLowerCase(),r].filter(Boolean);r&&(t?a.add(r):a.delete(r));for(const a of i)u.add(a),d(a,t);"meta"!==r||t?"function"==typeof e.getModifierState&&e.getModifierState("Meta")&&t&&[...a,...i].forEach((e=>c.add(e))):(c.forEach((e=>{a.delete(e),d(e,!1)})),c.clear())}hL(o,"keydown",(e=>(p(e,!0),i(e))),{passive:r}),hL(o,"keyup",(e=>(p(e,!1),i(e))),{passive:r}),hL("blur",f,{passive:!0}),hL("focus",f,{passive:!0});const h=new Proxy(l,{get(e,o,r){if("string"!=typeof o)return Reflect.get(e,o,r);if((o=o.toLowerCase())in n&&(o=n[o]),!(o in l))if(/[+_-]/.test(o)){const e=o.split(/[+_-]/g).map((e=>e.trim()));l[o]=Ca((()=>e.every((e=>tL(h[e])))))}else l[o]=Io(!1);const i=Reflect.get(e,o,r);return t?tL(i):i}});return h}function AL(e=EL()){const t=Ro(),o=()=>{const o=pL(e);o&&(t.value=o.parentElement)};return lL(o),vi((()=>tL(e)),o),t}const LL=function(e={}){const{selector:t="html",attribute:o="class",initialValue:n="auto",window:r=dL,storage:i,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:c,disableTransition:u=!0}=e,d=K({auto:"",light:"light",dark:"dark"},e.modes||{}),f=_L({window:r}),p=Ca((()=>f.value?"dark":"light")),h=l||(null==a?function(...e){if(1!==e.length)return Uo(...e);const t=e[0];return"function"==typeof t?xo(Do((()=>({get:t,set:rL})))):Io(t)}(n):TL(a,n,i,{window:r,listenToStorageChanges:s})),m=Ca((()=>"auto"===h.value?p.value:h.value)),g=wL("updateHTMLAttrs",((e,t,o)=>{const n="string"==typeof e?null==r?void 0:r.document.querySelector(e):pL(e);if(!n)return;const i=new Set,a=new Set;let s,l=null;if("class"===t){const e=o.split(/\s/g);Object.values(d).flatMap((e=>(e||"").split(/\s/g))).filter(Boolean).forEach((t=>{e.includes(t)?i.add(t):a.add(t)}))}else l={key:t,value:o};if(0!==i.size||0!==a.size||null!==l){u&&(s=r.document.createElement("style"),s.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),r.document.head.appendChild(s));for(const e of i)n.classList.add(e);for(const e of a)n.classList.remove(e);l&&n.setAttribute(l.key,l.value),u&&(r.getComputedStyle(s).opacity,document.head.removeChild(s))}}));function v(e){var n;g(t,o,null!=(n=d[e])?n:e)}function b(t){e.onChanged?e.onChanged(t,v):v(t)}vi(m,b,{flush:"post",immediate:!0}),lL((()=>b(m.value)));const y=Ca({get:()=>c?h.value:m.value,set(e){h.value=e}});try{return Object.assign(y,{store:h,system:p,state:m})}catch(hD){return y}}({initialValue:ZA.shouldFollowSystemTheme?"auto":ZA.shouldEnableDarkMode?"dark":"light"}),zL=_L(),FL=Nk("APP_DESIGN_STORE",{persist:{pick:["themeSetting"]},state:()=>({themeSetting:ZA}),getters:{getThemeSetting:e=>e.themeSetting,getNaiveUIPresetTheme(){return this.getDarkMode?kk:Pk},getNaiveUICustomTheme(e){return XA(Y(K({},e.themeSetting.otherColor),{primary:e.themeSetting.themeColor}),this.getDarkMode)},getDarkMode(e){return this.getFollowSystemTheme?zL.value:e.themeSetting.shouldEnableDarkMode},getColorWeakMode:e=>e.themeSetting.shouldEnableColorWeak,getGrayMode:e=>e.themeSetting.shouldEnableGrayMode,getFollowSystemTheme:e=>e.themeSetting.shouldFollowSystemTheme,getThemeColor:e=>e.themeSetting.themeColor},actions:{setThemeSetting(e){this.themeSetting=DT(this.themeSetting,e)},setDarkMode(e){this.themeSetting.shouldFollowSystemTheme?(LL.value="auto",this.setThemeSetting({shouldEnableDarkMode:zL.value})):(LL.value=e?"dark":"light",this.setThemeSetting({shouldEnableDarkMode:e}))},setColorWeakMode(e){this.setThemeSetting({shouldEnableColorWeak:e})},setGrayMode(e){this.setThemeSetting({shouldEnableGrayMode:e})},setFollowSystemTheme(e){LL.value=e?"auto":this.getThemeSetting.shouldEnableDarkMode?"dark":"light",this.setThemeSetting({shouldFollowSystemTheme:e})},setThemeColor(e){this.setThemeSetting({themeColor:e})},resetDesignState(){this.setThemeSetting(ZA)}}});function BL(){const e=FL(NA);return{getThemeSetting:()=>e.getThemeSetting,setThemeSetting:t=>e.setThemeSetting(t),getNaiveUIPresetTheme:Uo((()=>e.getNaiveUIPresetTheme)),getNaiveUICustomTheme:Uo((()=>e.getNaiveUICustomTheme)),getDarkMode:Uo((()=>e.getDarkMode)),getColorWeakMode:Uo((()=>e.getColorWeakMode)),getGrayMode:Uo((()=>e.getGrayMode)),getFollowSystemTheme:Uo((()=>e.getFollowSystemTheme)),getThemeColor:Uo((()=>e.getThemeColor)),setDarkMode:t=>e.setDarkMode(t),setColorWeakMode:t=>e.setColorWeakMode(t),setGrayMode:t=>e.setGrayMode(t),setFollowSystemTheme:t=>e.setFollowSystemTheme(t),setThemeColor:t=>e.setThemeColor(t),resetDesignState:()=>e.resetDesignState()}}function jL(){const e=GA();return{getTransitionSetting:function(){return e.getTransitionSetting},setTransitionSetting:function(t){e.setProjectSetting({transitionSetting:t})},getShouldEnableTransition:Uo((()=>e.getTransitionSetting.shouldEnable)),setShouldEnableTransition:t=>{e.setProjectSetting({transitionSetting:{shouldEnable:t}})},getShouldOpenNProgress:Uo((()=>e.getTransitionSetting.shouldOpenNProgress)),setShouldOpenNProgress:t=>{e.setProjectSetting({transitionSetting:{shouldOpenNProgress:t}})},getShouldOpenPageLoading:Uo((()=>e.getTransitionSetting.shouldOpenPageLoading)),setShouldOpenPageLoading:t=>{e.setProjectSetting({transitionSetting:{shouldOpenPageLoading:t}})},getRouterBasicTransition:Uo((()=>e.getTransitionSetting.routerBasicTransition)),setRouterBasicTransition:t=>{e.setProjectSetting({transitionSetting:{routerBasicTransition:t}})}}}function DL(){const e=FL(),t=lt();t.run((()=>{vi((()=>e.getNaiveUICustomTheme),(e=>{(null==e?void 0:e.common)&&(function(e){for(const[t,o]of Object.entries(e))if(o)if(MT(o)){if(WT(`--${dg(t)}`,IT(o)),"primaryColor"===t){const e=wT(o);for(let o=0;o{t.stop()}))}const HL=qn({__name:"App",setup(e){DL();const{configProviderProps:t}=function(){const{getNaiveUIPresetTheme:e,getNaiveUICustomTheme:t}=BL();return{configProviderProps:Uo({"cls-prefix":"ca",theme:e,"theme-overrides":t,namespace:"ca","inline-theme-disabled":!0})}}(),{getLocale:o}=QA();return(e,n)=>{const r=hr("RouterView"),i=j_,a=sk,s=yk,l=PS,c=Z_,u=gC;return Fi(),Wi(u,na(K(K({},Lo(t)),"zh-CN"==o.value?{locale:Ig,dateLocale:Xg}:{locale:Rg,dateLocale:Zg}),{class:"w-full h-full"}),{default:yn((()=>[Qi(c,null,{default:yn((()=>[Qi(l,null,{default:yn((()=>[Qi(s,null,{default:yn((()=>[Qi(a,null,{default:yn((()=>[Qi(r),Qi(i)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},16)}}});var WL=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},NL="undefined"==typeof window||"Deno"in globalThis;function UL(){}function VL(e,t){return"function"==typeof e?e(t):e}function qL(e,t){const{type:o="all",exact:n,fetchStatus:r,predicate:i,queryKey:a,stale:s}=e;if(a)if(n){if(t.queryHash!==QL(a,t.options))return!1}else if(!YL(t.queryKey,a))return!1;if("all"!==o){const e=t.isActive();if("active"===o&&!e)return!1;if("inactive"===o&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!r||r===t.state.fetchStatus)&&!(i&&!i(t)))}function GL(e,t){const{exact:o,status:n,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(o){if(KL(t.options.mutationKey)!==KL(i))return!1}else if(!YL(t.options.mutationKey,i))return!1}return(!n||t.state.status===n)&&!(r&&!r(t))}function QL(e,t){return((null==t?void 0:t.queryKeyHashFn)||KL)(e)}function KL(e){return JSON.stringify(e,((e,t)=>ZL(t)?Object.keys(t).sort().reduce(((e,o)=>(e[o]=t[o],e)),{}):t))}function YL(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((o=>!YL(e[o],t[o]))))}function JL(e,t){if(e===t)return e;const o=XL(e)&&XL(t);if(o||ZL(e)&&ZL(t)){const n=o?e:Object.keys(e),r=n.length,i=o?t:Object.keys(t),a=i.length,s=o?[]:{};let l=0;for(let c=0;co?n.slice(1):n}function nz(e,t,o=0){const n=[t,...e];return o&&n.length>o?n.slice(0,-1):n}var rz=Symbol();function iz(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==rz?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var az=new(n=class extends WL{constructor(){super(),te(this,e),te(this,t),te(this,o),oe(this,o,(e=>{if(!NL&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){ee(this,t)||this.setEventListener(ee(this,o))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=ee(this,t))||e.call(this),oe(this,t,void 0))}setEventListener(e){var n;oe(this,o,e),null==(n=ee(this,t))||n.call(this),oe(this,t,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})))}setFocused(t){ee(this,e)!==t&&(oe(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var t;return"boolean"==typeof ee(this,e)?ee(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,o=new WeakMap,n),sz=new(s=class extends WL{constructor(){super(),te(this,r,!0),te(this,i),te(this,a),oe(this,a,(e=>{if(!NL&&window.addEventListener){const t=()=>e(!0),o=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",o)}}}))}onSubscribe(){ee(this,i)||this.setEventListener(ee(this,a))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=ee(this,i))||e.call(this),oe(this,i,void 0))}setEventListener(e){var t;oe(this,a,e),null==(t=ee(this,i))||t.call(this),oe(this,i,e(this.setOnline.bind(this)))}setOnline(e){ee(this,r)!==e&&(oe(this,r,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return ee(this,r)}},r=new WeakMap,i=new WeakMap,a=new WeakMap,s);function lz(e){return Math.min(1e3*G(2,e),3e4)}function cz(e){return"online"!==(null!=e?e:"online")||sz.isOnline()}var uz=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function dz(e){return e instanceof uz}function fz(e){let t,o=!1,n=0,r=!1;const i=function(){let e,t;const o=new Promise(((o,n)=>{e=o,t=n}));function n(e){Object.assign(o,e),delete o.resolve,delete o.reject}return o.status="pending",o.catch((()=>{})),o.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},o.reject=e=>{n({status:"rejected",reason:e}),t(e)},o}(),a=()=>az.isFocused()&&("always"===e.networkMode||sz.isOnline())&&e.canRun(),s=()=>cz(e.networkMode)&&e.canRun(),l=o=>{var n;r||(r=!0,null==(n=e.onSuccess)||n.call(e,o),null==t||t(),i.resolve(o))},c=o=>{var n;r||(r=!0,null==(n=e.onError)||n.call(e,o),null==t||t(),i.reject(o))},u=()=>new Promise((o=>{var n;t=e=>{(r||a())&&o(e)},null==(n=e.onPause)||n.call(e)})).then((()=>{var o;t=void 0,r||null==(o=e.onContinue)||o.call(e)})),d=()=>{if(r)return;let t;const i=0===n?e.initialPromise:void 0;try{t=null!=i?i:e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch((t=>{var i,s,l;if(r)return;const f=null!=(i=e.retry)?i:NL?0:3,p=null!=(s=e.retryDelay)?s:lz,h="function"==typeof p?p(n,t):p,m=!0===f||"number"==typeof f&&n{setTimeout(e,g)}))).then((()=>a()?void 0:u())).then((()=>{o?c(t):d()}))):c(t)}))};return{promise:i,cancel:t=>{var o;r||(c(new uz(t)),null==(o=e.abort)||o.call(e))},continue:()=>(null==t||t(),i),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1},canStart:s,start:()=>(s()?d():u().then(d),i)}}var pz=function(){let e=[],t=0,o=e=>{e()},n=e=>{e()},r=e=>setTimeout(e,0);const i=n=>{t?e.push(n):r((()=>{o(n)}))};return{batch:i=>{let a;t++;try{a=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&r((()=>{n((()=>{t.forEach((e=>{o(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{o=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{r=e}}}(),hz=(c=class{constructor(){te(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.gcTime)&&e>=0&&e!==1/0&&oe(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,null!=e?e:NL?1/0:3e5)}clearGcTimeout(){ee(this,l)&&(clearTimeout(ee(this,l)),oe(this,l,void 0))}},l=new WeakMap,c),mz=(b=class extends hz{constructor(e){var t;super(),te(this,g),te(this,u),te(this,d),te(this,f),te(this,p),te(this,h),te(this,m),oe(this,m,!1),oe(this,h,e.defaultOptions),this.setOptions(e.options),this.observers=[],oe(this,f,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,oe(this,u,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,o=void 0!==t,n=o?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:o?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=null!=(t=e.state)?t:ee(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=ee(this,p))?void 0:e.promise}setOptions(e){this.options=K(K({},ee(this,h)),e),this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||ee(this,f).remove(this)}setData(e,t){const o=tz(this.state.data,e,this.options);return ne(this,g,v).call(this,{data:o,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),o}setState(e,t){ne(this,g,v).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,o;const n=null==(t=ee(this,p))?void 0:t.promise;return null==(o=ee(this,p))||o.cancel(e),n?n.then(UL).catch(UL):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ee(this,u))}isActive(){return this.observers.some((e=>{return!1!==(t=e.options.enabled,o=this,"function"==typeof t?t(o):t);var t,o}))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===rz||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null==(e=ee(this,p))||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null==(e=ee(this,p))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),ee(this,f).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(ee(this,p)&&(ee(this,m)?ee(this,p).cancel({revert:!0}):ee(this,p).cancelRetry()),this.scheduleGc()),ee(this,f).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ne(this,g,v).call(this,{type:"invalidate"})}fetch(e,t){var o,n,r;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(ee(this,p))return ee(this,p).continueRetry(),ee(this,p).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const i=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(oe(this,m,!0),i.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=iz(this.options,t),o={queryKey:this.queryKey,meta:this.meta};return a(o),oe(this,m,!1),this.options.persister?this.options.persister(e,o,this):e(o)}};a(s),null==(o=this.options.behavior)||o.onFetch(s,this),oe(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(n=s.fetchOptions)?void 0:n.meta)||ne(this,g,v).call(this,{type:"fetch",meta:null==(r=s.fetchOptions)?void 0:r.meta});const l=e=>{var t,o,n,r;dz(e)&&e.silent||ne(this,g,v).call(this,{type:"error",error:e}),dz(e)||(null==(o=(t=ee(this,f).config).onError)||o.call(t,e,this),null==(r=(n=ee(this,f).config).onSettled)||r.call(n,this.state.data,e,this)),this.scheduleGc()};return oe(this,p,fz({initialPromise:null==t?void 0:t.initialPromise,fn:s.fetchFn,abort:i.abort.bind(i),onSuccess:e=>{var t,o,n,r;if(void 0!==e){try{this.setData(e)}catch(i){return void l(i)}null==(o=(t=ee(this,f).config).onSuccess)||o.call(t,e,this),null==(r=(n=ee(this,f).config).onSettled)||r.call(n,e,this.state.error,this),this.scheduleGc()}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{ne(this,g,v).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{ne(this,g,v).call(this,{type:"pause"})},onContinue:()=>{ne(this,g,v).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),ee(this,p).start()}},u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,h=new WeakMap,m=new WeakMap,g=new WeakSet,v=function(e){this.state=(t=>{var o,n,r,i;switch(e.type){case"failed":return Y(K({},t),{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return Y(K({},t),{fetchStatus:"paused"});case"continue":return Y(K({},t),{fetchStatus:"fetching"});case"fetch":return Y(K(K({},t),(r=t.data,i=this.options,K({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cz(i.networkMode)?"fetching":"paused"},void 0===r&&{error:null,status:"pending"}))),{fetchMeta:null!=(o=e.meta)?o:null});case"success":return K(Y(K({},t),{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(n=e.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success"}),!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const a=e.error;return dz(a)&&a.revert&&ee(this,d)?Y(K({},ee(this,d)),{fetchStatus:"idle"}):Y(K({},t),{error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"});case"invalidate":return Y(K({},t),{isInvalidated:!0});case"setState":return K(K({},t),e.state)}})(this.state),pz.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),ee(this,f).notify({query:this,type:"updated",action:e})}))},b);var gz=(x=class extends WL{constructor(e={}){super(),te(this,y),this.config=e,oe(this,y,new Map)}build(e,t,o){var n;const r=t.queryKey,i=null!=(n=t.queryHash)?n:QL(r,t);let a=this.get(i);return a||(a=new mz({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:o,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){ee(this,y).has(e.queryHash)||(ee(this,y).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=ee(this,y).get(e.queryHash);t&&(e.destroy(),t===e&&ee(this,y).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){pz.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return ee(this,y).get(e)}getAll(){return[...ee(this,y).values()]}find(e){const t=K({exact:!0},e);return this.getAll().find((e=>qL(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>qL(e,t))):t}notify(e){pz.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){pz.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){pz.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},y=new WeakMap,x),vz=(P=class extends hz{constructor(e){super(),te(this,_),te(this,C),te(this,S),te(this,w),this.mutationId=e.mutationId,oe(this,S,e.mutationCache),oe(this,C,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){ee(this,C).includes(e)||(ee(this,C).push(e),this.clearGcTimeout(),ee(this,S).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){oe(this,C,ee(this,C).filter((t=>t!==e))),this.scheduleGc(),ee(this,S).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){ee(this,C).length||("pending"===this.state.status?this.scheduleGc():ee(this,S).remove(this))}continue(){var e,t;return null!=(t=null==(e=ee(this,w))?void 0:e.continue())?t:this.execute(this.state.variables)}execute(e){return ie(this,null,(function*(){var t,o,n,r,i,a,s,l,c,u,d,f,p,h,m,g,v,b,y,x,C;oe(this,w,fz({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{ne(this,_,k).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{ne(this,_,k).call(this,{type:"pause"})},onContinue:()=>{ne(this,_,k).call(this,{type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ee(this,S).canRun(this)}));const P="pending"===this.state.status,T=!ee(this,w).canStart();try{if(!P){ne(this,_,k).call(this,{type:"pending",variables:e,isPaused:T}),yield null==(n=(o=ee(this,S).config).onMutate)?void 0:n.call(o,e,this);const t=yield null==(i=(r=this.options).onMutate)?void 0:i.call(r,e);t!==this.state.context&&ne(this,_,k).call(this,{type:"pending",context:t,variables:e,isPaused:T})}const t=yield ee(this,w).start();return yield null==(s=(a=ee(this,S).config).onSuccess)?void 0:s.call(a,t,e,this.state.context,this),yield null==(c=(l=this.options).onSuccess)?void 0:c.call(l,t,e,this.state.context),yield null==(d=(u=ee(this,S).config).onSettled)?void 0:d.call(u,t,null,this.state.variables,this.state.context,this),yield null==(p=(f=this.options).onSettled)?void 0:p.call(f,t,null,e,this.state.context),ne(this,_,k).call(this,{type:"success",data:t}),t}catch(E){try{throw yield null==(m=(h=ee(this,S).config).onError)?void 0:m.call(h,E,e,this.state.context,this),yield null==(v=(g=this.options).onError)?void 0:v.call(g,E,e,this.state.context),yield null==(y=(b=ee(this,S).config).onSettled)?void 0:y.call(b,void 0,E,this.state.variables,this.state.context,this),yield null==(C=(x=this.options).onSettled)?void 0:C.call(x,void 0,E,e,this.state.context),E}finally{ne(this,_,k).call(this,{type:"error",error:E})}}finally{ee(this,S).runNext(this)}}))}},C=new WeakMap,S=new WeakMap,w=new WeakMap,_=new WeakSet,k=function(e){this.state=(t=>{switch(e.type){case"failed":return Y(K({},t),{failureCount:e.failureCount,failureReason:e.error});case"pause":return Y(K({},t),{isPaused:!0});case"continue":return Y(K({},t),{isPaused:!1});case"pending":return Y(K({},t),{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()});case"success":return Y(K({},t),{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return Y(K({},t),{data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"})}})(this.state),pz.batch((()=>{ee(this,C).forEach((t=>{t.onMutationUpdate(e)})),ee(this,S).notify({mutation:this,type:"updated",action:e})}))},P);var bz=(O=class extends WL{constructor(e={}){super(),te(this,T),te(this,E),this.config=e,oe(this,T,new Map),oe(this,E,Date.now())}build(e,t,o){const n=new vz({mutationCache:this,mutationId:++re(this,E)._,options:e.defaultMutationOptions(t),state:o});return this.add(n),n}add(e){var t;const o=yz(e),n=null!=(t=ee(this,T).get(o))?t:[];n.push(e),ee(this,T).set(o,n),this.notify({type:"added",mutation:e})}remove(e){var t;const o=yz(e);if(ee(this,T).has(o)){const n=null==(t=ee(this,T).get(o))?void 0:t.filter((t=>t!==e));n&&(0===n.length?ee(this,T).delete(o):ee(this,T).set(o,n))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const o=null==(t=ee(this,T).get(yz(e)))?void 0:t.find((e=>"pending"===e.state.status));return!o||o===e}runNext(e){var t,o;const n=null==(t=ee(this,T).get(yz(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return null!=(o=null==n?void 0:n.continue())?o:Promise.resolve()}clear(){pz.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...ee(this,T).values()].flat()}find(e){const t=K({exact:!0},e);return this.getAll().find((e=>GL(t,e)))}findAll(e={}){return this.getAll().filter((t=>GL(e,t)))}notify(e){pz.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return pz.batch((()=>Promise.all(e.map((e=>e.continue().catch(UL))))))}},T=new WeakMap,E=new WeakMap,O);function yz(e){var t,o;return null!=(o=null==(t=e.options.scope)?void 0:t.id)?o:String(e.mutationId)}function xz(e){return{onFetch:(t,o)=>{var n,r,i,a,s;const l=t.options,c=null==(i=null==(r=null==(n=t.fetchOptions)?void 0:n.meta)?void 0:r.fetchMore)?void 0:i.direction,u=(null==(a=t.state.data)?void 0:a.pages)||[],d=(null==(s=t.state.data)?void 0:s.pageParams)||[];let f={pages:[],pageParams:[]},p=0;const h=()=>ie(this,null,(function*(){var o;let n=!1;const r=iz(t.options,t.fetchOptions),i=(e,o,i)=>ie(this,null,(function*(){if(n)return Promise.reject();if(null==o&&e.pages.length)return Promise.resolve(e);const a={queryKey:t.queryKey,pageParam:o,direction:i?"backward":"forward",meta:t.options.meta};(e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)})})(a);const s=yield r(a),{maxPages:l}=t.options,c=i?nz:oz;return{pages:c(e.pages,s,l),pageParams:c(e.pageParams,o,l)}}));if(c&&u.length){const e="backward"===c,t={pages:u,pageParams:d},o=(e?Sz:Cz)(l,t);f=yield i(t,o,e)}else{const t=null!=e?e:u.length;do{const e=0===p?null!=(o=d[0])?o:l.initialPageParam:Cz(l,f);if(p>0&&null==e)break;f=yield i(f,e),p++}while(p{var e,n;return null==(n=(e=t.options).persister)?void 0:n.call(e,h,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},o)}:t.fetchFn=h}}}function Cz(e,{pages:t,pageParams:o}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,o[n],o):void 0}function Sz(e,{pages:t,pageParams:o}){var n;return t.length>0?null==(n=e.getPreviousPageParam)?void 0:n.call(e,t[0],t,o[0],o):void 0}var wz=(B=class{constructor(e={}){te(this,M),te(this,I),te(this,R),te(this,$),te(this,A),te(this,L),te(this,z),te(this,F),oe(this,M,e.queryCache||new gz),oe(this,I,e.mutationCache||new bz),oe(this,R,e.defaultOptions||{}),oe(this,$,new Map),oe(this,A,new Map),oe(this,L,0)}mount(){re(this,L)._++,1===ee(this,L)&&(oe(this,z,az.subscribe((e=>ie(this,null,(function*(){e&&(yield this.resumePausedMutations(),ee(this,M).onFocus())}))))),oe(this,F,sz.subscribe((e=>ie(this,null,(function*(){e&&(yield this.resumePausedMutations(),ee(this,M).onOnline())}))))))}unmount(){var e,t;re(this,L)._--,0===ee(this,L)&&(null==(e=ee(this,z))||e.call(this),oe(this,z,void 0),null==(t=ee(this,F))||t.call(this),oe(this,F,void 0))}isFetching(e){return ee(this,M).findAll(Y(K({},e),{fetchStatus:"fetching"})).length}isMutating(e){return ee(this,I).findAll(Y(K({},e),{status:"pending"})).length}getQueryData(e){var t;const o=this.defaultQueryOptions({queryKey:e});return null==(t=ee(this,M).get(o.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const o=this.defaultQueryOptions(e),n=ee(this,M).build(this,o);return e.revalidateIfStale&&n.isStaleByTime(VL(o.staleTime,n))&&this.prefetchQuery(o),Promise.resolve(t)}}getQueriesData(e){return ee(this,M).findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,o){const n=this.defaultQueryOptions({queryKey:e}),r=ee(this,M).get(n.queryHash),i=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0!==i)return ee(this,M).build(this,n).setData(i,Y(K({},o),{manual:!0}))}setQueriesData(e,t,o){return pz.batch((()=>ee(this,M).findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,o)]))))}getQueryState(e){var t;const o=this.defaultQueryOptions({queryKey:e});return null==(t=ee(this,M).get(o.queryHash))?void 0:t.state}removeQueries(e){const t=ee(this,M);pz.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const o=ee(this,M),n=K({type:"active"},e);return pz.batch((()=>(o.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(n,t))))}cancelQueries(e={},t={}){const o=K({revert:!0},t),n=pz.batch((()=>ee(this,M).findAll(e).map((e=>e.cancel(o)))));return Promise.all(n).then(UL).catch(UL)}invalidateQueries(e={},t={}){return pz.batch((()=>{var o,n;if(ee(this,M).findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const r=Y(K({},e),{type:null!=(n=null!=(o=e.refetchType)?o:e.type)?n:"active"});return this.refetchQueries(r,t)}))}refetchQueries(e={},t){var o;const n=Y(K({},t),{cancelRefetch:null==(o=null==t?void 0:t.cancelRefetch)||o}),r=pz.batch((()=>ee(this,M).findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(UL)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(UL)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const o=ee(this,M).build(this,t);return o.isStaleByTime(VL(t.staleTime,o))?o.fetch(t):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(UL).catch(UL)}fetchInfiniteQuery(e){return e.behavior=xz(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(UL).catch(UL)}ensureInfiniteQueryData(e){return e.behavior=xz(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return sz.isOnline()?ee(this,I).resumePausedMutations():Promise.resolve()}getQueryCache(){return ee(this,M)}getMutationCache(){return ee(this,I)}getDefaultOptions(){return ee(this,R)}setDefaultOptions(e){oe(this,R,e)}setQueryDefaults(e,t){ee(this,$).set(KL(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ee(this,$).values()];let o={};return t.forEach((t=>{YL(e,t.queryKey)&&(o=K(K({},o),t.defaultOptions))})),o}setMutationDefaults(e,t){ee(this,A).set(KL(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ee(this,A).values()];let o={};return t.forEach((t=>{YL(e,t.mutationKey)&&(o=K(K({},o),t.defaultOptions))})),o}defaultQueryOptions(e){if(e._defaulted)return e;const t=Y(K(K(K({},ee(this,R).queries),this.getQueryDefaults(e.queryKey)),e),{_defaulted:!0});return t.queryHash||(t.queryHash=QL(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===rz&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:Y(K(K(K({},ee(this,R).mutations),(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{_defaulted:!0})}clear(){ee(this,M).clear(),ee(this,I).clear()}},M=new WeakMap,I=new WeakMap,R=new WeakMap,$=new WeakMap,A=new WeakMap,L=new WeakMap,z=new WeakMap,F=new WeakMap,B);function _z(e){return e}function kz(e){return K(K({mutationKey:e.options.mutationKey,state:e.state},e.options.scope&&{scope:e.options.scope}),e.meta&&{meta:e.meta})}function Pz(e,t){var o;return K(K({state:K(K({},e.state),void 0!==e.state.data&&{data:t(e.state.data)}),queryKey:e.queryKey,queryHash:e.queryHash},"pending"===e.state.status&&{promise:null==(o=e.promise)?void 0:o.then(t).catch((e=>Promise.reject(new Error("redacted"))))}),e.meta&&{meta:e.meta})}function Tz(e){return e.state.isPaused}function Ez(e){return"success"===e.state.status}function Oz(e,t={}){var o,n,r,i,a,s,l,c,u;const d=null!=(r=null!=(n=t.shouldDehydrateMutation)?n:null==(o=e.getDefaultOptions().dehydrate)?void 0:o.shouldDehydrateMutation)?r:Tz,f=e.getMutationCache().getAll().flatMap((e=>d(e)?[kz(e)]:[])),p=null!=(s=null!=(a=t.shouldDehydrateQuery)?a:null==(i=e.getDefaultOptions().dehydrate)?void 0:i.shouldDehydrateQuery)?s:Ez,h=null!=(u=null!=(c=t.serializeData)?c:null==(l=e.getDefaultOptions().dehydrate)?void 0:l.serializeData)?u:_z;return{mutations:f,queries:e.getQueryCache().getAll().flatMap((e=>p(e)?[Pz(e,h)]:[]))}}function Mz(e,t,o="",n=0){if(t){const r=t(e,o,n);if(void 0===r&&Mo(e))return r;if(void 0!==r)return r}if(Array.isArray(e))return e.map(((e,o)=>Mz(e,t,String(o),n+1)));if("object"==typeof e&&function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}(e)){const o=Object.entries(e).map((([e,o])=>[e,Mz(o,t,e,n+1)]));return Object.fromEntries(o)}return e}function Iz(e,t=!1){return Mz(e,((e,o,n)=>1===n&&"queryKey"===o?Iz(e,!0):t&&"function"==typeof e?Iz(e(),t):Mo(e)?Iz(Lo(e),t):void 0))}var Rz=class extends gz{find(e){return super.find(Iz(e))}findAll(e={}){return super.findAll(Iz(e))}},$z=class extends bz{find(e){return super.find(Iz(e))}findAll(e={}){return super.findAll(Iz(e))}},Az=class extends wz{constructor(e={}){super({defaultOptions:e.defaultOptions,queryCache:e.queryCache||new Rz,mutationCache:e.mutationCache||new $z}),this.isRestoring=Io(!1)}isFetching(e={}){return super.isFetching(Iz(e))}isMutating(e={}){return super.isMutating(Iz(e))}getQueryData(e){return super.getQueryData(Iz(e))}ensureQueryData(e){return super.ensureQueryData(Iz(e))}getQueriesData(e){return super.getQueriesData(Iz(e))}setQueryData(e,t,o={}){return super.setQueryData(Iz(e),t,Iz(o))}setQueriesData(e,t,o={}){return super.setQueriesData(Iz(e),t,Iz(o))}getQueryState(e){return super.getQueryState(Iz(e))}removeQueries(e={}){return super.removeQueries(Iz(e))}resetQueries(e={},t={}){return super.resetQueries(Iz(e),Iz(t))}cancelQueries(e={},t={}){return super.cancelQueries(Iz(e),Iz(t))}invalidateQueries(e={},t={}){var o,n;const r=Iz(e),i=Iz(t);if(super.invalidateQueries(Y(K({},r),{refetchType:"none"}),i),"none"===r.refetchType)return Promise.resolve();const a=Y(K({},r),{type:null!=(n=null!=(o=r.refetchType)?o:r.type)?n:"active"});return cn().then((()=>super.refetchQueries(a,i)))}refetchQueries(e={},t={}){return super.refetchQueries(Iz(e),Iz(t))}fetchQuery(e){return super.fetchQuery(Iz(e))}prefetchQuery(e){return super.prefetchQuery(Iz(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(Iz(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(Iz(e))}setDefaultOptions(e){super.setDefaultOptions(Iz(e))}setQueryDefaults(e,t){super.setQueryDefaults(Iz(e),Iz(t))}getQueryDefaults(e){return super.getQueryDefaults(Iz(e))}setMutationDefaults(e,t){super.setMutationDefaults(Iz(e),Iz(t))}getMutationDefaults(e){return super.getMutationDefaults(Iz(e))}},Lz={install:(e,t={})=>{const o="VUE_QUERY_CLIENT"+((n=t.queryClientKey)?`:${n}`:"");var n;let r;if("queryClient"in t&&t.queryClient)r=t.queryClient;else{const e="queryClientConfig"in t?t.queryClientConfig:void 0;r=new Az(e)}NL||r.mount();let i=()=>{};if(t.clientPersister){r.isRestoring.value=!0;const[e,o]=t.clientPersister(r);i=e,o.then((()=>{var e;r.isRestoring.value=!1,null==(e=t.clientPersisterOnSuccess)||e.call(t,r)}))}const a=()=>{r.unmount(),i()};if(e.onUnmount)e.onUnmount(a);else{const t=e.unmount;e.unmount=function(){a(),t()}}e.provide(o,r)}},zz=["added","removed","updated"];function Fz(e){return zz.includes(e)}function Bz(e){return ie(this,arguments,(function*({queryClient:e,persister:t,maxAge:o=864e5,buster:n="",hydrateOptions:r}){try{const i=yield t.restoreClient();if(i)if(i.timestamp){const a=Date.now()-i.timestamp>o,s=i.buster!==n;a||s?t.removeClient():function(e,t,o){var n,r,i,a;if("object"!=typeof t||null===t)return;const s=e.getMutationCache(),l=e.getQueryCache(),c=null!=(a=null!=(i=null==(n=null==o?void 0:o.defaultOptions)?void 0:n.deserializeData)?i:null==(r=e.getDefaultOptions().hydrate)?void 0:r.deserializeData)?a:_z,u=t.mutations||[],d=t.queries||[];u.forEach((t=>{var n,r,i=t,{state:a}=i,l=J(i,["state"]);s.build(e,K(K(K({},null==(n=e.getDefaultOptions().hydrate)?void 0:n.mutations),null==(r=null==o?void 0:o.defaultOptions)?void 0:r.mutations),l),a)})),d.forEach((({queryKey:t,state:n,queryHash:r,meta:i,promise:a})=>{var s,u;let d=l.get(r);const f=void 0===n.data?n.data:c(n.data);if(d){if(d.state.dataUpdatedAt{o||(t=function(e){const t=e.queryClient.getQueryCache().subscribe((t=>{Fz(t.type)&&jz(e)})),o=e.queryClient.getMutationCache().subscribe((t=>{Fz(t.type)&&jz(e)}));return()=>{t(),o()}}(e))}));return[()=>{o=!0,null==t||t()},n]}function Hz(){}function Wz({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:o=1e3,serialize:n=JSON.stringify,deserialize:r=JSON.parse,retry:i}){if(e){const a=o=>{try{return void e.setItem(t,n(o))}catch(r){return r}};return{persistClient:Nz((e=>{let t=e,o=a(t),n=0;for(;o&&t;)n++,t=null==i?void 0:i({persistedClient:t,error:o,errorCount:n}),t&&(o=a(t))}),o),restoreClient:()=>{const o=e.getItem(t);if(o)return r(o)},removeClient:()=>{e.removeItem(t)}}}return{persistClient:Hz,restoreClient:()=>{},removeClient:Hz}}function Nz(e,t=100){let o,n=null;return function(...r){o=r,null===n&&(n=setTimeout((()=>{e(...o),n=null}),t))}}const Uz={queryClientConfig:{defaultOptions:{queries:{staleTime:864e5}}},clientPersister:e=>Dz({queryClient:e,persister:Wz({storage:localStorage})})};const Vz={event:"mousedown",transition:400,background:"rgba(0, 0, 0, 0.12)",zIndex:"9999"};const qz={copy:{mounted(e,t){e.copyData=t.value;const o=()=>{e.copyData?Xk(e.copyData):iM.warn("There is no content to copy.")};e.addEventListener("click",o),e.__handleClick__=o},updated(e,t){e.copyData=t.value},beforeUnmount(e){e.removeEventListener("click",e.__handleClick__)}},ripple:{beforeMount(e,t){if(!1===t.value)return;const o=function(e){const t=K({},Vz);"event"in e&&(t.event=Object.keys(e).find((e=>"event"!==e))||Vz.event);"transition"in e&&(t.transition=Number.parseInt(Object.keys(e).find((e=>"transition"!==e))||String(Vz.transition)));return t}(t.modifiers),n=e.getAttribute("ripple-background")||o.background;e.addEventListener(o.event,(t=>{!function(e,t,o,n){const{clientX:r,clientY:i}=e instanceof MouseEvent?e:e.touches[0],a=t.getBoundingClientRect(),{left:s,top:l,width:c,height:u}=a,d=r-s,f=i-l,p=Math.max(d,c-d),h=Math.max(f,u-f),m=Math.sqrt(p*p+h*h),g=Math.max(Number.parseInt(getComputedStyle(t).borderWidth.replace("px","")),0),v=n.zIndex,b=function(e,t,o,n,r){const i=document.createElement("div");return i.className="ripple",i.style.marginTop=`${t}px`,i.style.marginLeft=`${e}px`,i.style.width="1px",i.style.height="1px",i.style.transition=`all ${o}ms cubic-bezier(0.61, 1, 0.88, 1)`,i.style.borderRadius="50%",i.style.pointerEvents="none",i.style.position="relative",i.style.zIndex=r,i.style.backgroundColor=n,i}(d,f,n.transition,o,v),y=function(e,t,o,n){const r=document.createElement("div");return r.className="ripple-container",r.style.position="absolute",r.style.left=0-o+"px",r.style.top=0-o+"px",r.style.height="0",r.style.width="0",r.style.pointerEvents="none",r.style.overflow="hidden",r.style.width=`${e}px`,r.style.height=`${t}px`,r.style.direction="ltr",r.style.borderTopLeftRadius=n.borderTopLeftRadius,r.style.borderTopRightRadius=n.borderTopRightRadius,r.style.borderBottomLeftRadius=n.borderBottomLeftRadius,r.style.borderBottomRightRadius=n.borderBottomRightRadius,r}(c,u,g,getComputedStyle(t));y.appendChild(b),t.appendChild(y),setTimeout((()=>{b.style.width=2*m+"px",b.style.height=2*m+"px",b.style.marginLeft=d-m+"px",b.style.marginTop=f-m+"px"}),0),function(e,t,o){const n=()=>{t.style.backgroundColor="rgba(0, 0, 0, 0)",setTimeout((()=>{var e;null==(e=null==t?void 0:t.parentNode)||e.removeChild(t)}),o),e.removeEventListener("mouseup",n),e.removeEventListener("mouseleave",n),e.removeEventListener("dragstart",n),setTimeout((()=>{e.querySelector(".ripple-container")||(e.style.position="static"!==getComputedStyle(e).position?getComputedStyle(e).position:"")}),o+260)};e.addEventListener("mouseup",n),e.addEventListener("mouseleave",n),e.addEventListener("dragstart",n)}(t,y,n.transition)}(t,e,n,o)}))},updated(e,t){if(!t.value)return void function(e){const t=NT(".ripple-container",e);t&&(t.style.backgroundColor="rgba(0, 0, 0, 0)",setTimeout((()=>{var e;null==(e=t.parentNode)||e.removeChild(t)}),850))}(e);const o=e.getAttribute("ripple-background");!function(e,t){const o=NT(".ripple-container",e);o&&t&&(o.style.backgroundColor=t)}(e,o)}},anchor:{mounted(e,t){e.addEventListener("click",(()=>{const e=document.querySelector(t.value);e&&e.scrollIntoView({behavior:"smooth"})}))}},auth:{mounted:function(e,t){!function(e,t){var o;const{hasPermission:n}=KA(),r=t.value;r&&(n(r)||null==(o=e.parentNode)||o.removeChild(e))}(e,t)}}}; +/*! + * shared v10.0.4 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */ +const Gz="undefined"!=typeof window,Qz=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Kz=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Yz=e=>"number"==typeof e&&isFinite(e),Jz=e=>"[object RegExp]"===dF(e),Xz=e=>fF(e)&&0===Object.keys(e).length,Zz=Object.assign;let eF;const tF=()=>eF||(eF="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function oF(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const nF=Object.prototype.hasOwnProperty;function rF(e,t){return nF.call(e,t)}const iF=Array.isArray,aF=e=>"function"==typeof e,sF=e=>"string"==typeof e,lF=e=>"boolean"==typeof e,cF=e=>null!==e&&"object"==typeof e,uF=Object.prototype.toString,dF=e=>uF.call(e),fF=e=>"[object Object]"===dF(e);function pF(e,t=""){return e.reduce(((e,o,n)=>0===n?e+o:e+t+o),"")}function hF(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const mF=e=>!cF(e)||iF(e);function gF(e,t){if(mF(e)||mF(t))throw new Error("Invalid value");const o=[{src:e,des:t}];for(;o.length;){const{src:e,des:t}=o.pop();Object.keys(e).forEach((n=>{cF(e[n])&&!cF(t[n])&&(t[n]=Array.isArray(e[n])?[]:{}),mF(t[n])||mF(e[n])?t[n]=e[n]:o.push({src:e[n],des:t[n]})}))}} +/*! + * message-compiler v10.0.4 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function vF(e,t,o){return{start:e,end:t}}const bF=1,yF=2,xF=3,CF=4,SF=5,wF=6,_F=7,kF=8,PF=9,TF=10,EF=11,OF=12,MF=13,IF=14;function RF(e,t,o={}){const{domain:n,messages:r,args:i}=o,a=new SyntaxError(String(e));return a.code=e,t&&(a.location=t),a.domain=n,a}function $F(e){throw e}const AF=" ",LF="\n",zF=String.fromCharCode(8232),FF=String.fromCharCode(8233);function BF(e){const t=e;let o=0,n=1,r=1,i=0;const a=e=>"\r"===t[e]&&t[e+1]===LF,s=e=>t[e]===FF,l=e=>t[e]===zF,c=e=>a(e)||(e=>t[e]===LF)(e)||s(e)||l(e),u=e=>a(e)||s(e)||l(e)?LF:t[e];function d(){return i=0,c(o)&&(n++,r=0),a(o)&&o++,o++,r++,t[o]}return{index:()=>o,line:()=>n,column:()=>r,peekOffset:()=>i,charAt:u,currentChar:()=>u(o),currentPeek:()=>u(o+i),next:d,peek:function(){return a(o+i)&&i++,i++,t[o+i]},reset:function(){o=0,n=1,r=1,i=0},resetPeek:function(e=0){i=e},skipToPeek:function(){const e=o+i;for(;e!==o;)d();i=0}}}const jF=void 0;function DF(e,t={}){const o=!1!==t.location,n=BF(e),r=()=>n.index(),i=()=>{return e=n.line(),t=n.column(),o=n.index(),{line:e,column:t,offset:o};var e,t,o},a=i(),s=r(),l={currentType:13,offset:s,startLoc:a,endLoc:a,lastType:13,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(e,t,n,...r){const i=c();if(t.column+=n,t.offset+=n,u){const n=RF(e,o?vF(i.startLoc,t):null,{domain:"tokenizer",args:r});u(n)}}function f(e,t,n){e.endLoc=i(),e.currentType=t;const r={type:t};return o&&(r.loc=vF(e.startLoc,e.endLoc)),null!=n&&(r.value=n),r}const p=e=>f(e,13);function h(e,t){return e.currentChar()===t?(e.next(),t):(d(bF,i(),0,t),"")}function m(e){let t="";for(;e.currentPeek()===AF||e.currentPeek()===LF;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function v(e){if(e===jF)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function b(e,t){const{currentType:o}=t;if(2!==o)return!1;m(e);const n=function(e){if(e===jF)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),n}function y(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function x(e,t=!0){const o=(t=!1,n="")=>{const r=e.currentPeek();return"{"===r?t:"@"!==r&&r?"|"===r?!(n===AF||n===LF):r===AF?(e.peek(),o(!0,AF)):r!==LF||(e.peek(),o(!0,LF)):t},n=o();return t&&e.resetPeek(),n}function C(e,t){const o=e.currentChar();return o===jF?jF:t(o)?(e.next(),o):null}function S(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function w(e){return C(e,S)}function _(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function k(e){return C(e,_)}function P(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function T(e){return C(e,P)}function E(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function O(e){return C(e,E)}function M(e){let t="",o="";for(;t=T(e);)o+=t;return o}function I(e){return"'"!==e&&e!==LF}function R(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return $(e,t,4);case"U":return $(e,t,6);default:return d(CF,i(),0,t),""}}function $(e,t,o){h(e,t);let n="";for(let r=0;r=1&&d(PF,i(),0),e.next(),o=f(t,2,"{"),g(e),t.braceNest++,o;case"}":return t.braceNest>0&&2===t.currentType&&d(kF,i(),0),e.next(),o=f(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),o;case"@":return t.braceNest>0&&d(_F,i(),0),o=F(e,t)||p(t),t.braceNest=0,o;default:{let n=!0,r=!0,a=!0;if(y(e))return t.braceNest>0&&d(_F,i(),0),o=f(t,1,L(e)),t.braceNest=0,t.inLinked=!1,o;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return d(_F,i(),0),t.braceNest=0,B(e,t);if(n=function(e,t){const{currentType:o}=t;if(2!==o)return!1;m(e);const n=v(e.currentPeek());return e.resetPeek(),n}(e,t))return o=f(t,4,function(e){g(e);let t="",o="";for(;t=k(e);)o+=t;return e.currentChar()===jF&&d(_F,i(),0),o}(e)),g(e),o;if(r=b(e,t))return o=f(t,5,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${M(e)}`):t+=M(e),e.currentChar()===jF&&d(_F,i(),0),t}(e)),g(e),o;if(a=function(e,t){const{currentType:o}=t;if(2!==o)return!1;m(e);const n="'"===e.currentPeek();return e.resetPeek(),n}(e,t))return o=f(t,6,function(e){g(e),h(e,"'");let t="",o="";for(;t=C(e,I);)o+="\\"===t?R(e):t;const n=e.currentChar();return n===LF||n===jF?(d(xF,i(),0),n===LF&&(e.next(),h(e,"'")),o):(h(e,"'"),o)}(e)),g(e),o;if(!n&&!r&&!a)return o=f(t,12,function(e){g(e);let t="",o="";for(;t=C(e,A);)o+=t;return o}(e)),d(yF,i(),0,o.value),g(e),o;break}}return o}function F(e,t){const{currentType:o}=t;let n=null;const r=e.currentChar();switch(7!==o&&8!==o&&11!==o&&9!==o||r!==LF&&r!==AF||d(TF,i(),0),r){case"@":return e.next(),n=f(t,7,"@"),t.inLinked=!0,n;case".":return g(e),e.next(),f(t,8,".");case":":return g(e),e.next(),f(t,9,":");default:return y(e)?(n=f(t,1,L(e)),t.braceNest=0,t.inLinked=!1,n):function(e,t){const{currentType:o}=t;if(7!==o)return!1;m(e);const n="."===e.currentPeek();return e.resetPeek(),n}(e,t)||function(e,t){const{currentType:o}=t;if(7!==o&&11!==o)return!1;m(e);const n=":"===e.currentPeek();return e.resetPeek(),n}(e,t)?(g(e),F(e,t)):function(e,t){const{currentType:o}=t;if(8!==o)return!1;m(e);const n=v(e.currentPeek());return e.resetPeek(),n}(e,t)?(g(e),f(t,11,function(e){let t="",o="";for(;t=w(e);)o+=t;return o}(e))):function(e,t){const{currentType:o}=t;if(9!==o)return!1;const n=()=>{const t=e.currentPeek();return"{"===t?v(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===AF||!t)&&(t===LF?(e.peek(),n()):x(e,!1))},r=n();return e.resetPeek(),r}(e,t)?(g(e),"{"===r?z(e,t)||n:f(t,10,function(e){const t=o=>{const n=e.currentChar();return"{"!==n&&"@"!==n&&"|"!==n&&"("!==n&&")"!==n&&n?n===AF?o:(o+=n,e.next(),t(o)):o};return t("")}(e))):(7===o&&d(TF,i(),0),t.braceNest=0,t.inLinked=!1,B(e,t))}}function B(e,t){let o={type:13};if(t.braceNest>0)return z(e,t)||p(t);if(t.inLinked)return F(e,t)||p(t);switch(e.currentChar()){case"{":return z(e,t)||p(t);case"}":return d(wF,i(),0),e.next(),f(t,3,"}");case"@":return F(e,t)||p(t);default:if(y(e))return o=f(t,1,L(e)),t.braceNest=0,t.inLinked=!1,o;if(x(e))return f(t,0,function(e){let t="";for(;;){const o=e.currentChar();if("{"===o||"}"===o||"@"===o||"|"===o||!o)break;if(o===AF||o===LF)if(x(e))t+=o,e.next();else{if(y(e))break;t+=o,e.next()}else t+=o,e.next()}return t}(e))}return o}return{nextToken:function(){const{currentType:e,offset:t,startLoc:o,endLoc:a}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=o,l.lastEndLoc=a,l.offset=r(),l.startLoc=i(),n.currentChar()===jF?f(l,13):B(n,l)},currentOffset:r,currentPosition:i,context:c}}const HF=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function WF(e,t,o){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||o,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function NF(e={}){const t=!1!==e.location,{onError:o}=e;function n(e,n,r,i,...a){const s=e.currentPosition();if(s.offset+=i,s.column+=i,o){const e=RF(n,t?vF(r,s):null,{domain:"parser",args:a});o(e)}}function r(e,o,n){const r={type:e};return t&&(r.start=o,r.end=o,r.loc={start:n,end:n}),r}function i(e,o,n,r){t&&(e.end=o,e.loc&&(e.loc.end=n))}function a(e,t){const o=e.context(),n=r(3,o.offset,o.startLoc);return n.value=t,i(n,e.currentOffset(),e.currentPosition()),n}function s(e,t){const o=e.context(),{lastOffset:n,lastStartLoc:a}=o,s=r(5,n,a);return s.index=parseInt(t,10),e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){const o=e.context(),{lastOffset:n,lastStartLoc:a}=o,s=r(4,n,a);return s.key=t,e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const o=e.context(),{lastOffset:n,lastStartLoc:a}=o,s=r(9,n,a);return s.value=t.replace(HF,WF),e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function u(e){const t=e.context(),o=r(6,t.offset,t.startLoc);let a=e.nextToken();if(8===a.type){const t=function(e){const t=e.nextToken(),o=e.context(),{lastOffset:a,lastStartLoc:s}=o,l=r(8,a,s);return 11!==t.type?(n(e,OF,o.lastStartLoc,0),l.value="",i(l,a,s),{nextConsumeToken:t,node:l}):(null==t.value&&n(e,IF,o.lastStartLoc,0,UF(t)),l.value=t.value||"",i(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);o.modifier=t.node,a=t.nextConsumeToken||e.nextToken()}switch(9!==a.type&&n(e,IF,t.lastStartLoc,0,UF(a)),a=e.nextToken(),2===a.type&&(a=e.nextToken()),a.type){case 10:null==a.value&&n(e,IF,t.lastStartLoc,0,UF(a)),o.key=function(e,t){const o=e.context(),n=r(7,o.offset,o.startLoc);return n.value=t,i(n,e.currentOffset(),e.currentPosition()),n}(e,a.value||"");break;case 4:null==a.value&&n(e,IF,t.lastStartLoc,0,UF(a)),o.key=l(e,a.value||"");break;case 5:null==a.value&&n(e,IF,t.lastStartLoc,0,UF(a)),o.key=s(e,a.value||"");break;case 6:null==a.value&&n(e,IF,t.lastStartLoc,0,UF(a)),o.key=c(e,a.value||"");break;default:{n(e,MF,t.lastStartLoc,0);const s=e.context(),l=r(7,s.offset,s.startLoc);return l.value="",i(l,s.offset,s.startLoc),o.key=l,i(o,s.offset,s.startLoc),{nextConsumeToken:a,node:o}}}return i(o,e.currentOffset(),e.currentPosition()),{node:o}}function d(e){const t=e.context(),o=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);o.items=[];let d=null;do{const r=d||e.nextToken();switch(d=null,r.type){case 0:null==r.value&&n(e,IF,t.lastStartLoc,0,UF(r)),o.items.push(a(e,r.value||""));break;case 5:null==r.value&&n(e,IF,t.lastStartLoc,0,UF(r)),o.items.push(s(e,r.value||""));break;case 4:null==r.value&&n(e,IF,t.lastStartLoc,0,UF(r)),o.items.push(l(e,r.value||""));break;case 6:null==r.value&&n(e,IF,t.lastStartLoc,0,UF(r)),o.items.push(c(e,r.value||""));break;case 7:{const t=u(e);o.items.push(t.node),d=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);return i(o,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),o}function f(e){const t=e.context(),{offset:o,startLoc:a}=t,s=d(e);return 13===t.currentType?s:function(e,t,o,a){const s=e.context();let l=0===a.items.length;const c=r(1,t,o);c.cases=[],c.cases.push(a);do{const t=d(e);l||(l=0===t.items.length),c.cases.push(t)}while(13!==s.currentType);return l&&n(e,EF,o,0),i(c,e.currentOffset(),e.currentPosition()),c}(e,o,a,s)}return{parse:function(o){const a=DF(o,Zz({},e)),s=a.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=o),l.body=f(a),e.onCacheKey&&(l.cacheKey=e.onCacheKey(o)),13!==s.currentType&&n(a,IF,s.lastStartLoc,0,o[s.offset]||""),i(l,a.currentOffset(),a.currentPosition()),l}}}function UF(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function VF(e,t){for(let o=0;ot,helper:e=>(t.helpers.add(e),e)}}(e);o.helper("normalize"),e.body&&qF(e.body,o);const n=o.context();e.helpers=Array.from(n.helpers)}function QF(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let o=0;o1){e.push(`${o("plural")}([`),e.indent(n());const r=t.cases.length;for(let o=0;oQF(e)))}(a),r&&KF(a),{ast:a,code:""}):(GF(a,o),((e,t={})=>{const o=sF(t.mode)?t.mode:"normal",n=sF(t.filename)?t.filename:"message.intl",r=!!t.sourceMap,i=null!=t.breakLineCode?t.breakLineCode:"arrow"===o?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==o,s=e.helpers||[],l=function(e,t){const{sourceMap:o,filename:n,breakLineCode:r,needIndent:i}=t,a=!1!==t.location,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};function l(e,t){s.code+=e}function c(e,t=!0){const o=t?r:"";l(i?o+" ".repeat(e):o)}return a&&e.loc&&(s.source=e.loc.source),{context:()=>s,push:l,indent:function(e=!0){const t=++s.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&c(t)},newline:function(){c(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:o,filename:n,sourceMap:r,breakLineCode:i,needIndent:a});l.push("normal"===o?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${pF(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),YF(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}})(a,o))} +/*! + * core-base v10.0.4 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function XF(e){return t=>function(e,t){const o=t.b||t.body;if(1===(o.t||o.type)){const t=o,n=t.c||t.cases;return e.plural(n.reduce(((t,o)=>[...t,ZF(e,o)]),[]))}return ZF(e,o)}(t,e)}function ZF(e,t){const o=t.s||t.static;if(null!=o)return"text"===e.type?o:e.normalize([o]);{const o=(t.i||t.items).reduce(((t,o)=>[...t,eB(e,o)]),[]);return e.normalize(o)}}function eB(e,t){const o=t.t||t.type;switch(o){case 3:{const e=t;return e.v||e.value}case 9:{const e=t;return e.v||e.value}case 4:{const o=t;return e.interpolate(e.named(o.k||o.key))}case 5:{const o=t;return e.interpolate(e.list(null!=o.i?o.i:o.index))}case 6:{const o=t,n=o.m||o.modifier;return e.linked(eB(e,o.k||o.key),n?eB(e,n):void 0,e.type)}case 7:{const e=t;return e.v||e.value}case 8:{const e=t;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${o}`)}}const tB=e=>e;let oB=Object.create(null);const nB=e=>cF(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);let rB=null;const iB=aB("function:translate");function aB(e){return t=>rB&&rB.emit(e,t)}const sB=17,lB=18,cB=19,uB=21,dB=22,fB=23;function pB(e){return RF(e,null,void 0)}function hB(e,t){return null!=t.locale?gB(t.locale):gB(e.locale)}let mB;function gB(e){if(sF(e))return e;if(aF(e)){if(e.resolvedOnce&&null!=mB)return mB;if("Function"===e.constructor.name){const o=e();if(cF(t=o)&&aF(t.then)&&aF(t.catch))throw pB(uB);return mB=o}throw pB(dB)}throw pB(fB);var t}function vB(e,t,o){return[...new Set([o,...iF(t)?t:cF(t)?Object.keys(t):sF(t)?[t]:[o]])]}function bB(e,t,o){const n=sF(o)?o:EB,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(n);if(!i){i=[];let e=[o];for(;iF(e);)e=yB(i,e,t);const a=iF(t)||!fF(t)?t:t.default?t.default:null;e=sF(a)?[a]:a,iF(e)&&yB(i,e,!1),r.__localeChainCache.set(n,i)}return i}function yB(e,t,o){let n=!0;for(let r=0;r`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let MB,IB,RB;let $B=null;const AB=()=>$B;let LB=null;const zB=e=>{LB=e};let FB=0;function BB(e={}){const t=aF(e.onWarn)?e.onWarn:hF,o=sF(e.version)?e.version:"10.0.4",n=sF(e.locale)||aF(e.locale)?e.locale:EB,r=aF(n)?EB:n,i=iF(e.fallbackLocale)||fF(e.fallbackLocale)||sF(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,a=fF(e.messages)?e.messages:{[r]:{}},s=fF(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},l=fF(e.numberFormats)?e.numberFormats:{[r]:{}},c=Zz({},e.modifiers||{},{upper:(e,t)=>"text"===t&&sF(e)?e.toUpperCase():"vnode"===t&&cF(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&sF(e)?e.toLowerCase():"vnode"===t&&cF(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&sF(e)?OB(e):"vnode"===t&&cF(e)&&"__v_isVNode"in e?OB(e.children):e}),u=e.pluralRules||{},d=aF(e.missing)?e.missing:null,f=!lF(e.missingWarn)&&!Jz(e.missingWarn)||e.missingWarn,p=!lF(e.fallbackWarn)&&!Jz(e.fallbackWarn)||e.fallbackWarn,h=!!e.fallbackFormat,m=!!e.unresolving,g=aF(e.postTranslation)?e.postTranslation:null,v=fF(e.processor)?e.processor:null,b=!lF(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,x=aF(e.messageCompiler)?e.messageCompiler:MB,C=aF(e.messageResolver)?e.messageResolver:IB||TB,S=aF(e.localeFallbacker)?e.localeFallbacker:RB||vB,w=cF(e.fallbackContext)?e.fallbackContext:void 0,_=e,k=cF(_.__datetimeFormatters)?_.__datetimeFormatters:new Map,P=cF(_.__numberFormatters)?_.__numberFormatters:new Map,T=cF(_.__meta)?_.__meta:{};FB++;const E={version:o,cid:FB,locale:n,fallbackLocale:i,messages:a,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:h,unresolving:m,postTranslation:g,processor:v,warnHtmlMessage:b,escapeParameter:y,messageCompiler:x,messageResolver:C,localeFallbacker:S,fallbackContext:w,onWarn:t,__meta:T};return E.datetimeFormats=s,E.numberFormats=l,E.__datetimeFormatters=k,E.__numberFormatters=P,__INTLIFY_PROD_DEVTOOLS__&&function(e,t,o){rB&&rB.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:o})}(E,o,T),E}function jB(e,t,o,n,r){const{missing:i,onWarn:a}=e;if(null!==i){const n=i(e,o,t,r);return sF(n)?n:t}return t}function DB(e,t,o){e.__localeChainCache=new Map,e.localeFallbacker(e,o,t)}function HB(e,t){const o=t.indexOf(e);if(-1===o)return!1;for(let i=o+1;i{NB.includes(e)?s[e]=o[e]:i[e]=o[e]})),sF(n)?i.locale=n:fF(n)&&(s=n),fF(r)&&(s=r),[i.key||"",a,i,s]}function VB(e,t,o){const n=e;for(const r in o){const e=`${t}__${r}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function qB(e,...t){const{numberFormats:o,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,c,u,d]=QB(...t);lF(u.missingWarn)?u.missingWarn:e.missingWarn;lF(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,p=hB(e,u),h=a(e,r,p);if(!sF(l)||""===l)return new Intl.NumberFormat(p,d).format(c);let m,g={},v=null;for(let x=0;x{GB.includes(e)?a[e]=o[e]:i[e]=o[e]})),sF(n)?i.locale=n:fF(n)&&(a=n),fF(r)&&(a=r),[i.key||"",s,i,a]}function KB(e,t,o){const n=e;for(const r in o){const e=`${t}__${r}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const YB=e=>e,JB=e=>"",XB=e=>0===e.length?"":pF(e),ZB=e=>null==e?"":iF(e)||fF(e)&&e.toString===uF?JSON.stringify(e,null,2):String(e);function ej(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function tj(e={}){const t=e.locale,o=function(e){const t=Yz(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Yz(e.named.count)||Yz(e.named.n))?Yz(e.named.count)?e.named.count:Yz(e.named.n)?e.named.n:t:t}(e),n=cF(e.pluralRules)&&sF(t)&&aF(e.pluralRules[t])?e.pluralRules[t]:ej,r=cF(e.pluralRules)&&sF(t)&&aF(e.pluralRules[t])?ej:void 0,i=e.list||[],a=e.named||{};Yz(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(o,a);function s(t,o){const n=aF(e.messages)?e.messages(t,!!o):!!cF(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):JB)}const l=fF(e.processor)&&aF(e.processor.normalize)?e.processor.normalize:XB,c=fF(e.processor)&&aF(e.processor.interpolate)?e.processor.interpolate:ZB,u={list:e=>i[e],named:e=>a[e],plural:e=>e[n(o,e.length,r)],linked:(t,...o)=>{const[n,r]=o;let i="text",a="";1===o.length?cF(n)?(a=n.modifier||a,i=n.type||i):sF(n)&&(a=n||a):2===o.length&&(sF(n)&&(a=n||a),sF(r)&&(i=r||i));const l=s(t,!0)(u),c="vnode"===i&&iF(l)&&a?l[0]:l;return a?(d=a,e.modifiers?e.modifiers[d]:YB)(c,i):c;var d},message:s,type:fF(e.processor)&&sF(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:l,values:Zz({},i,a)};return u}const oj=()=>"",nj=e=>aF(e);function rj(e,...t){const{fallbackFormat:o,postTranslation:n,unresolving:r,messageCompiler:i,fallbackLocale:a,messages:s}=e,[l,c]=sj(...t),u=lF(c.missingWarn)?c.missingWarn:e.missingWarn,d=lF(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=lF(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,h=sF(c.default)||lF(c.default)?lF(c.default)?i?l:()=>l:c.default:o?i?l:()=>l:null,m=o||null!=h&&(sF(h)||aF(h)),g=hB(e,c);f&&function(e){iF(e.list)?e.list=e.list.map((e=>sF(e)?oF(e):e)):cF(e.named)&&Object.keys(e.named).forEach((t=>{sF(e.named[t])&&(e.named[t]=oF(e.named[t]))}))}(c);let[v,b,y]=p?[l,g,s[g]||{}]:ij(e,l,g,a,d,u),x=v,C=l;if(p||sF(x)||nB(x)||nj(x)||m&&(x=h,C=x),!(p||(sF(x)||nB(x)||nj(x))&&sF(b)))return r?-1:l;let S=!1;const w=nj(x)?x:aj(e,l,b,x,C,(()=>{S=!0}));if(S)return x;const _=function(e,t,o,n){const{modifiers:r,pluralRules:i,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d=(n,r)=>{let i=a(o,n);if(null==i&&(u||r)){const[,,o]=ij(u||e,n,t,s,l,c);i=a(o,n)}if(sF(i)||nB(i)){let o=!1;const r=aj(e,n,t,i,n,(()=>{o=!0}));return o?oj:r}return nj(i)?i:oj},f={locale:t,modifiers:r,pluralRules:i,messages:d};e.processor&&(f.processor=e.processor);n.list&&(f.list=n.list);n.named&&(f.named=n.named);Yz(n.plural)&&(f.pluralIndex=n.plural);return f}(e,b,y,c),k=function(e,t,o){const n=t(o);return n}(0,w,tj(_)),P=n?n(k,l):k;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:sF(l)?l:nj(x)?x.key:"",locale:b||(nj(x)?x.locale:""),format:sF(x)?x:nj(x)?x.source:"",message:P};t.meta=Zz({},e.__meta,AB()||{}),iB(t)}return P}function ij(e,t,o,n,r,i){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:c}=e,u=c(e,n,o);let d,f={},p=null;for(let h=0;hn;return e.locale=o,e.key=t,e}const l=a(n,function(e,t,o,n,r,i){return{locale:t,key:o,warnHtmlMessage:r,onError:e=>{throw i&&i(e),e},onCacheKey:e=>((e,t,o)=>Kz({l:e,k:t,s:o}))(t,o,e)}}(0,o,r,0,s,i));return l.locale=o,l.key=t,l.source=n,l}function sj(...e){const[t,o,n]=e,r={};if(!(sF(t)||Yz(t)||nj(t)||nB(t)))throw pB(sB);const i=Yz(t)?String(t):(nj(t),t);return Yz(o)?r.plural=o:sF(o)?r.default=o:fF(o)&&!Xz(o)?r.named=o:iF(o)&&(r.list=o),Yz(n)?r.plural=n:sF(n)?r.default=n:fF(n)&&Zz(r,n),[i,r]}"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(tF().__INTLIFY_PROD_DEVTOOLS__=!1),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(tF().__INTLIFY_DROP_MESSAGE_COMPILER__=!1);const lj=24,cj=25,uj=26,dj=27,fj=28,pj=29,hj=31,mj=32;function gj(e,...t){return RF(e,null,void 0)}const vj=Qz("__translateVNode"),bj=Qz("__datetimeParts"),yj=Qz("__numberParts"),xj=Qz("__setPluralRules"),Cj=Qz("__injectWithOption"),Sj=Qz("__dispose");function wj(e){if(!cF(e))return e;for(const t in e)if(rF(e,t))if(t.includes(".")){const o=t.split("."),n=o.length-1;let r=e,i=!1;for(let e=0;e{if("locale"in e&&"resource"in e){const{locale:t,resource:o}=e;t?(a[t]=a[t]||{},gF(o,a[t])):gF(o,a)}else sF(e)&&gF(JSON.parse(e),a)})),null==r&&i)for(const s in a)rF(a,s)&&wj(a[s]);return a}function kj(e){return e.type}function Pj(e,t,o){let n=cF(t.messages)?t.messages:{};"__i18nGlobal"in o&&(n=_j(e.locale.value,{messages:n,__i18n:o.__i18nGlobal}));const r=Object.keys(n);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),cF(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach((o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])}))}if(cF(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach((o=>{e.mergeNumberFormat(o,t.numberFormats[o])}))}}function Tj(e){return Qi(Ri,null,e,0)}const Ej=()=>[],Oj=()=>!1;let Mj=0;function Ij(e){return(t,o,n,r)=>e(o,n,la()||void 0,r)}function Rj(e={}){const{__root:t,__injectWithOption:o}=e,n=void 0===t,r=e.flatJson,i=Gz?Io:Ro;let a=!lF(e.inheritLocale)||e.inheritLocale;const s=i(t&&a?t.locale.value:sF(e.locale)?e.locale:EB),l=i(t&&a?t.fallbackLocale.value:sF(e.fallbackLocale)||iF(e.fallbackLocale)||fF(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:s.value),c=i(_j(s.value,e)),u=i(fF(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=i(fF(e.numberFormats)?e.numberFormats:{[s.value]:{}});let f=t?t.missingWarn:!lF(e.missingWarn)&&!Jz(e.missingWarn)||e.missingWarn,p=t?t.fallbackWarn:!lF(e.fallbackWarn)&&!Jz(e.fallbackWarn)||e.fallbackWarn,h=t?t.fallbackRoot:!lF(e.fallbackRoot)||e.fallbackRoot,m=!!e.fallbackFormat,g=aF(e.missing)?e.missing:null,v=aF(e.missing)?Ij(e.missing):null,b=aF(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:!lF(e.warnHtmlMessage)||e.warnHtmlMessage,x=!!e.escapeParameter;const C=t?t.modifiers:fF(e.modifiers)?e.modifiers:{};let S,w=e.pluralRules||t&&t.pluralRules;S=(()=>{n&&zB(null);const t={version:"10.0.4",locale:s.value,fallbackLocale:l.value,messages:c.value,modifiers:C,pluralRules:w,missing:null===v?void 0:v,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:!0,postTranslation:null===b?void 0:b,warnHtmlMessage:y,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=u.value,t.numberFormats=d.value,t.__datetimeFormatters=fF(S)?S.__datetimeFormatters:void 0,t.__numberFormatters=fF(S)?S.__numberFormatters:void 0;const o=BB(t);return n&&zB(o),o})(),DB(S,s.value,l.value);const _=Ca({get:()=>s.value,set:e=>{s.value=e,S.locale=s.value}}),k=Ca({get:()=>l.value,set:e=>{l.value=e,S.fallbackLocale=l.value,DB(S,s.value,e)}}),P=Ca((()=>c.value)),T=Ca((()=>u.value)),E=Ca((()=>d.value));const O=(e,o,r,i,a,f)=>{let p;s.value,l.value,c.value,u.value,d.value;try{__INTLIFY_PROD_DEVTOOLS__,n||(S.fallbackContext=t?LB:void 0),p=e(S)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(S.fallbackContext=void 0)}if("translate exists"!==r&&Yz(p)&&-1===p||"translate exists"===r&&!p){const[e,n]=o();return t&&h?i(t):a(e)}if(f(p))return p;throw gj(lj)};function M(...e){return O((t=>Reflect.apply(rj,null,[t,...e])),(()=>sj(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>sF(e)))}const I={normalize:function(e){return e.map((e=>sF(e)||Yz(e)||lF(e)?Tj(String(e)):e))},interpolate:e=>e,type:"vnode"};function R(e){return c.value[e]||{}}Mj++,t&&Gz&&(vi(t.locale,(e=>{a&&(s.value=e,S.locale=e,DB(S,s.value,l.value))})),vi(t.fallbackLocale,(e=>{a&&(l.value=e,S.fallbackLocale=e,DB(S,s.value,l.value))})));const $={id:Mj,locale:_,fallbackLocale:k,get inheritLocale(){return a},set inheritLocale(e){a=e,e&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,DB(S,s.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:P,get modifiers(){return C},get pluralRules(){return w||{}},get isGlobal(){return n},get missingWarn(){return f},set missingWarn(e){f=e,S.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,S.fallbackWarn=p},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return m},set fallbackFormat(e){m=e,S.fallbackFormat=m},get warnHtmlMessage(){return y},set warnHtmlMessage(e){y=e,S.warnHtmlMessage=e},get escapeParameter(){return x},set escapeParameter(e){x=e,S.escapeParameter=e},t:M,getLocaleMessage:R,setLocaleMessage:function(e,t){if(r){const o={[e]:t};for(const e in o)rF(o,e)&&wj(o[e]);t=o[e]}c.value[e]=t,S.messages=c.value},mergeLocaleMessage:function(e,t){c.value[e]=c.value[e]||{};const o={[e]:t};if(r)for(const n in o)rF(o,n)&&wj(o[n]);gF(t=o[e],c.value[e]),S.messages=c.value},getPostTranslationHandler:function(){return aF(b)?b:null},setPostTranslationHandler:function(e){b=e,S.postTranslation=e},getMissingHandler:function(){return g},setMissingHandler:function(e){null!==e&&(v=Ij(e)),g=e,S.missing=v},[xj]:function(e){w=e,S.pluralRules=w}};return $.datetimeFormats=T,$.numberFormats=E,$.rt=function(...e){const[t,o,n]=e;if(n&&!cF(n))throw gj(cj);return M(t,o,Zz({resolvedMessage:!0},n||{}))},$.te=function(e,t){return O((()=>{if(!e)return!1;const o=R(sF(t)?t:s.value),n=S.messageResolver(o,e);return nB(n)||nj(n)||sF(n)}),(()=>[e]),"translate exists",(o=>Reflect.apply(o.te,o,[e,t])),Oj,(e=>lF(e)))},$.tm=function(e){const o=function(e){let t=null;const o=bB(S,l.value,s.value);for(let n=0;nReflect.apply(WB,null,[t,...e])),(()=>UB(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>sF(e)))},$.n=function(...e){return O((t=>Reflect.apply(qB,null,[t,...e])),(()=>QB(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>sF(e)))},$.getDateTimeFormat=function(e){return u.value[e]||{}},$.setDateTimeFormat=function(e,t){u.value[e]=t,S.datetimeFormats=u.value,VB(S,e,t)},$.mergeDateTimeFormat=function(e,t){u.value[e]=Zz(u.value[e]||{},t),S.datetimeFormats=u.value,VB(S,e,t)},$.getNumberFormat=function(e){return d.value[e]||{}},$.setNumberFormat=function(e,t){d.value[e]=t,S.numberFormats=d.value,KB(S,e,t)},$.mergeNumberFormat=function(e,t){d.value[e]=Zz(d.value[e]||{},t),S.numberFormats=d.value,KB(S,e,t)},$[Cj]=o,$[vj]=function(...e){return O((t=>{let o;const n=t;try{n.processor=I,o=Reflect.apply(rj,null,[n,...e])}finally{n.processor=null}return o}),(()=>sj(...e)),"translate",(t=>t[vj](...e)),(e=>[Tj(e)]),(e=>iF(e)))},$[bj]=function(...e){return O((t=>Reflect.apply(WB,null,[t,...e])),(()=>UB(...e)),"datetime format",(t=>t[bj](...e)),Ej,(e=>sF(e)||iF(e)))},$[yj]=function(...e){return O((t=>Reflect.apply(qB,null,[t,...e])),(()=>QB(...e)),"number format",(t=>t[yj](...e)),Ej,(e=>sF(e)||iF(e)))},$}function $j(e={}){const t=Rj(function(e){const t=sF(e.locale)?e.locale:EB,o=sF(e.fallbackLocale)||iF(e.fallbackLocale)||fF(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,n=aF(e.missing)?e.missing:void 0,r=!lF(e.silentTranslationWarn)&&!Jz(e.silentTranslationWarn)||!e.silentTranslationWarn,i=!lF(e.silentFallbackWarn)&&!Jz(e.silentFallbackWarn)||!e.silentFallbackWarn,a=!lF(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,l=fF(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=aF(e.postTranslation)?e.postTranslation:void 0,d=!sF(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,p=!lF(e.sync)||e.sync;let h=e.messages;if(fF(e.sharedMessages)){const t=e.sharedMessages;h=Object.keys(t).reduce(((e,o)=>{const n=e[o]||(e[o]={});return Zz(n,t[o]),e}),h||{})}const{__i18n:m,__root:g,__injectWithOption:v}=e,b=e.datetimeFormats,y=e.numberFormats;return{locale:t,fallbackLocale:o,messages:h,flatJson:e.flatJson,datetimeFormats:b,numberFormats:y,missing:n,missingWarn:r,fallbackWarn:i,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:m,__root:g,__injectWithOption:v}}(e)),{__extender:o}=e,n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return lF(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=lF(e)?!e:e},get silentFallbackWarn(){return lF(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=lF(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t:(...e)=>Reflect.apply(t.t,t,[...e]),rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[o,n,r]=e,i={plural:1};let a=null,s=null;if(!sF(o))throw gj(cj);const l=o;return sF(n)?i.locale=n:Yz(n)?i.plural=n:iF(n)?a=n:fF(n)&&(s=n),sF(r)?i.locale=r:iF(r)?a=r:fF(r)&&(s=r),Reflect.apply(t.t,t,[l,a||s||{},i])},te:(e,o)=>t.te(e,o),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,o){t.setLocaleMessage(e,o)},mergeLocaleMessage(e,o){t.mergeLocaleMessage(e,o)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,o){t.setDateTimeFormat(e,o)},mergeDateTimeFormat(e,o){t.mergeDateTimeFormat(e,o)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,o){t.setNumberFormat(e,o)},mergeNumberFormat(e,o){t.mergeNumberFormat(e,o)}};return n.__extender=o,n}function Aj(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[xj](t.pluralizationRules||e.pluralizationRules);const o=_j(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(o).forEach((t=>e.mergeLocaleMessage(t,o[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((o=>e.mergeDateTimeFormat(o,t.datetimeFormats[o]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((o=>e.mergeNumberFormat(o,t.numberFormats[o]))),e}const Lj={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function zj(){return Ii}const Fj=qn({name:"i18n-t",props:Zz({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Yz(e)||!isNaN(e)}},Lj),setup(e,t){const{slots:o,attrs:n}=t,r=e.i18n||Vj({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(o).filter((e=>"_"!==e)),a={};e.locale&&(a.locale=e.locale),void 0!==e.plural&&(a.plural=sF(e.plural)?+e.plural:e.plural);const s=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===Ii?t.children:[t]]),[]);return t.reduce(((t,o)=>{const n=e[o];return n&&(t[o]=n()),t}),{})}(t,i),l=r[vj](e.keypath,s,a),c=Zz({},n);return Sa(sF(e.tag)||cF(e.tag)?e.tag:zj(),c,l)}}});function Bj(e,t,o,n){const{slots:r,attrs:i}=t;return()=>{const t={part:!0};let a={};e.locale&&(t.locale=e.locale),sF(e.format)?t.key=e.format:cF(e.format)&&(sF(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce(((t,n)=>o.includes(n)?Zz({},t,{[n]:e.format[n]}):t),{}));const s=n(e.value,t,a);let l=[t.key];iF(s)?l=s.map(((e,t)=>{const o=r[e.type],n=o?o({[e.type]:e.value,index:t,parts:s}):[e.value];var i;return iF(i=n)&&!sF(i[0])&&(n[0].key=`${e.type}-${t}`),n})):sF(s)&&(l=[s]);const c=Zz({},i);return Sa(sF(e.tag)||cF(e.tag)?e.tag:zj(),c,l)}}const jj=qn({name:"i18n-n",props:Zz({value:{type:Number,required:!0},format:{type:[String,Object]}},Lj),setup(e,t){const o=e.i18n||Vj({useScope:e.scope,__useComponent:!0});return Bj(e,t,GB,((...e)=>o[yj](...e)))}}),Dj=qn({name:"i18n-d",props:Zz({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Lj),setup(e,t){const o=e.i18n||Vj({useScope:e.scope,__useComponent:!0});return Bj(e,t,NB,((...e)=>o[bj](...e)))}});function Hj(e){if(sF(e))return{path:e};if(fF(e)){if(!("path"in e))throw gj(fj);return e}throw gj(pj)}function Wj(e){const{path:t,locale:o,args:n,choice:r,plural:i}=e,a={},s=n||{};return sF(o)&&(a.locale=o),Yz(r)&&(a.plural=r),Yz(i)&&(a.plural=i),[t,s,a]}function Nj(e,t,...o){const n=fF(o[0])?o[0]:{};(!lF(n.globalInstall)||n.globalInstall)&&([Fj.name,"I18nT"].forEach((t=>e.component(t,Fj))),[jj.name,"I18nN"].forEach((t=>e.component(t,jj))),[Dj.name,"I18nD"].forEach((t=>e.component(t,Dj)))),e.directive("t",function(e){const t=t=>{const{instance:o,value:n}=t;if(!o||!o.$)throw gj(mj);const r=function(e,t){const o=e;if("composition"===e.mode)return o.__getInstance(t)||e.global;{const n=o.__getInstance(t);return null!=n?n.__composer:e.global.__composer}}(e,o.$),i=Hj(n);return[Reflect.apply(r.t,r,[...Wj(i)]),r]};return{created:(o,n)=>{const[r,i]=t(n);Gz&&e.global===i&&(o.__i18nWatcher=vi(i.locale,(()=>{n.instance&&n.instance.$forceUpdate()}))),o.__composer=i,o.textContent=r},unmounted:e=>{Gz&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const o=e.__composer,n=Hj(t);e.textContent=Reflect.apply(o.t,o,[...Wj(n)])}},getSSRProps:e=>{const[o]=t(e);return{textContent:o}}}}(t))}const Uj=Qz("global-vue-i18n");function Vj(e={}){const t=la();if(null==t)throw gj(uj);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw gj(dj);const o=function(e){const t=qr(e.isCE?Uj:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw gj(e.isCE?hj:mj);return t}(t),n=function(e){return"composition"===e.mode?e.global:e.global.__composer}(o),r=kj(t),i=function(e,t){return Xz(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,r);if("global"===i)return Pj(n,e,r),n;if("parent"===i){let r=function(e,t,o=!1){let n=null;const r=t.root;let i=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,o);for(;null!=i;){const t=e;if("composition"===e.mode)n=t.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(i);null!=e&&(n=e.__composer,o&&n&&!n[Cj]&&(n=null))}if(null!=n)break;if(r===i)break;i=i.parent}return n}(o,t,e.__useComponent);return null==r&&(r=n),r}const a=o;let s=a.__getInstance(t);if(null==s){const o=Zz({},e);"__i18n"in r&&(o.__i18n=r.__i18n),n&&(o.__root=n),s=Rj(o),a.__composerExtend&&(s[Sj]=a.__composerExtend(s)),function(e,t,o){rr((()=>{}),t),lr((()=>{const n=o;e.__deleteInstance(t);const r=n[Sj];r&&(r(),delete n[Sj])}),t)}(a,t,s),a.__setInstance(t,s)}return s}const qj=["locale","fallbackLocale","availableLocales"],Gj=["t","rt","d","n","tm","te"];var Qj;if("boolean"!=typeof __VUE_I18N_FULL_INSTALL__&&(tF().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!=typeof __VUE_I18N_LEGACY_API__&&(tF().__VUE_I18N_LEGACY_API__=!0),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(tF().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(tF().__INTLIFY_PROD_DEVTOOLS__=!1),MB=function(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&sF(e)){!lF(t.warnHtmlMessage)||t.warnHtmlMessage;const o=(t.onCacheKey||tB)(e),n=oB[o];if(n)return n;const{ast:r,detectError:i}=function(e,t={}){let o=!1;const n=t.onError||$F;return t.onError=e=>{o=!0,n(e)},Y(K({},JF(e,t)),{detectError:o})}(e,Y(K({},t),{location:!1,jit:!0})),a=XF(r);return i?a:oB[o]=a}{const t=e.cacheKey;if(t){const o=oB[t];return o||(oB[t]=XF(e))}return XF(e)}},IB=function(e,t){if(!cF(e))return null;let o=PB.get(t);if(o||(o=function(e){const t=[];let o,n,r,i,a,s,l,c=-1,u=0,d=0;const f=[];function p(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===n?n=r:n+=r},f[1]=()=>{void 0!==n&&(t.push(n),n=void 0)},f[2]=()=>{f[0](),d++},f[3]=()=>{if(d>0)d--,u=4,f[0]();else{if(d=0,void 0===n)return!1;if(n=kB(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,o=e[c],"\\"!==o||!p()){if(i=_B(o),l=SB[u],a=l[i]||l.l||8,8===a)return;if(u=a[0],void 0!==a[1]&&(s=f[a[1]],s&&(r=o,!1===s())))return;if(7===u)return t}}(t),o&&PB.set(t,o)),!o)return null;const n=o.length;let r=e,i=0;for(;i$j(e))):o.run((()=>Rj(e)));if(null==n)throw gj(mj);return[o,n]}(e,t),a=Qz(""),s={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},install(e,...n){return ie(this,null,(function*(){if(e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,s),fF(n[0])){const e=n[0];s.__composerExtend=e.__composerExtend,s.__vueI18nExtend=e.__vueI18nExtend}let r=null;!t&&o&&(r=function(e,t){const o=Object.create(null);qj.forEach((e=>{const n=Object.getOwnPropertyDescriptor(t,e);if(!n)throw gj(mj);const r=Mo(n.value)?{get:()=>n.value.value,set(e){n.value.value=e}}:{get:()=>n.get&&n.get()};Object.defineProperty(o,e,r)})),e.config.globalProperties.$i18n=o,Gj.forEach((o=>{const n=Object.getOwnPropertyDescriptor(t,o);if(!n||!n.value)throw gj(mj);Object.defineProperty(e.config.globalProperties,`$${o}`,n)}));const n=()=>{delete e.config.globalProperties.$i18n,Gj.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return n}(e,s.global)),__VUE_I18N_FULL_INSTALL__&&Nj(e,s,...n),__VUE_I18N_LEGACY_API__&&t&&e.mixin(function(e,t,o){return{beforeCreate(){const n=la();if(!n)throw gj(mj);const r=this.$options;if(r.i18n){const n=r.i18n;if(r.__i18n&&(n.__i18n=r.__i18n),n.__root=t,this===this.$root)this.$i18n=Aj(e,n);else{n.__injectWithOption=!0,n.__extender=o.__vueI18nExtend,this.$i18n=$j(n);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Aj(e,r);else{this.$i18n=$j({__i18n:r.__i18n,__injectWithOption:!0,__extender:o.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Pj(t,r,r),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),o.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const e=la();if(!e)throw gj(mj);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),o.__deleteInstance(e),delete this.$i18n}}}(i,i.__composer,s));const l=e.unmount;e.unmount=()=>{r&&r(),s.dispose(),l()}}))},get global(){return i},dispose(){r.stop()},__instances:n,__getInstance:function(e){return n.get(e)||null},__setInstance:function(e,t){n.set(e,t)},__deleteInstance:function(e){n.delete(e)}};return s}({globalInjection:!0,legacy:!1,locale:"",messages:{"en-US":{routes:{components:{components:"Component Example",table:"Table Component",headlessTable:"Headless Table",headlessTableBasic:"Basic Table",headlessTablePagination:"Pagination Table",report:"Report",report001:"Multiple Query",report002:"Simple Query",list:"List",listBasic:"listBasic",listCard:"listCard",detail:"Edit",preview:"View",form:"Form",formsimple:"Form Simple",formcomplex:"Form Complex",echarts:"Echarts"},chat:{chat:"Chat"},profile:{profile:"Profile"},design:{design:"Design",palette:"Palette",typography:"Typography"},dashboard:{dashboard:"Dashboard"},directives:{directives:"Directive Examples",permission:"Permission Directive",copy:"Copy Directive",ripple:"Ripple Directive"},iframe:{iframe:"Embedded Webpage",githubInternal:"GitHub (Embedded)",GitHubExternal:"GitHub (External)",viteInternal:"Vite Documentation (Embedded)",ViteExternal:"Vite Documentation (External)"},permission:{permission:"Permission Test",authPageA:"Test Page A",authPageB:"Test Page B",frontend:"Frontend-based",backend:"Backend-based",pageAuth:"Page Permissions",buttonAuth:"Button Permissions",role:"Role Permissions",directive:"Directive Permissions"},result:{result:"Result Page",success:"Success Page",fail:"Fail Page"}},layouts:{header:{toggleCollapsed:"Toggle Menu",toggleFullScreen:"Toggle Fullscreen",switchLocale:"Switch Language",settingDrawer:"Settings Drawer",openSettingDrawer:"Open Settings Drawer",projectSetting:"Project Settings",darkMode:"Dark Mode",followSystem:"Follow System",systemDefault:"System Default",systemTheme:"System Theme",themeMode:"Theme Mode",lightMode:"Light Mode",colorWeak:"Color Weak Mode",themeConfig:{title:"Theme Configuration",copyConfigButton:"Copy Current Configuration",resetConfigButton:"Reset Current Configuration",message:{copyConfigSuccess:"Configuration copied successfully!",resetConfigSuccess:"Configuration reset successfully!"}},transitionSetting:{title:"Animation Settings",enableTransition:"Enable Animation",enableProgressBar:"Enable Progress Bar",enablePageLoadingTransition:"Enable Page Loading Animation",routeTransition:"Route Transition"},layout:"Page Layout",footer:"Footer",backtop:"Back Top"},userInfo:{userInformation:"User Information",greeting:"Hello",rolesList:"Role List: {roles}",logoutButton:"Logout"},logoutConfirmation:{title:"Warning",content:"Are you sure you want to log out?",positiveText:"Logout",negativeText:"Cancel",onNegativeClickMessage:"Logout canceled",onPositiveClickMessage:"Logout successful"}},searchDialog:{searchPlaceholder:"Search",noResultsFound:"Sorry, no results found for { search }",toSelectTooltip:"to select",toNavigateTooltip:"to navigate",applications:"Applications",chatBot:"ChatBot",action:"Action",actions:"Actions",shortcut:"Shortcut",go:"Go to "},page:{login:{title:"Login",form:{username:{label:"Username",placeholder:"Enter your username",error:"Username cannot be empty"},password:{label:"Password",placeholder:"Enter your password",error:"Password cannot be empty"},confirmPassword:{label:"Confirm Password",placeholder:"Enter your password",error:"Confirm password cannot be empty",validator:"Password is not same!"},forgotPassword:{label:"Phone Number",placeholder:"Example: 13812345678",requiredError:"Phone number is required",invalidFormatError:"Invalid phone number format"},socialButtons:{signInWithQQ:"Sign in with QQ",signInWithWeChat:"Sign in with WeChat"},signText:{signIn:"Don't you have an account?",forgotPassword:"Back to Sign in",signUp:"Do you have an account?"},welcomeBackTitle:"Welcome Back",helloTitle:"Hello",forgotPasswordTitle:"Forgot Password",greetingText:"Celeris Web is a highly performant and customizable front-end development template built with Vue 3, Vite, and TypeScript.",sendResetLinkButton:"Send Reset Link",resetLinkSentMessage:"Reset Link sent",signUp:"Sign up",backToSignIn:"Back to Sign in",signIn:"Sign in",remember:"Remember me",loginButton:"Sign in",registerButton:"Create an account",forgetPassword:"Forgot password",incorrectAccountOrPassword:"Incorrect account or password!"},notification:{loginSuccessMessage:"Login successful",welcomeBackMessage:"Welcome back, {username}!"}},copyDirective:{copy:"Copy",copyDirective:"Copy Directive Example",copyPlaceholder:"Please enter the content to copy",copySuccess:"Copy successful",copyError:"Copy failed"},rippleDirective:{ripple:"Ripple",rippleDirective:"Ripple Directive Example",description1:"Ripples are state layers used to communicate the status of a component or interactive element.",description2:"A state layer is a semi-transparent covering on an element that indicates its state."},permission:{permissionMode:{currentMode:"Current Permission Mode",backendMode:"Backend Permission Mode",frontendMode:"Frontend Role Permission Mode",toggleMode:"Toggle Permission Mode"},pageTitles:{frontend:"Frontend Permission Example",backend:"Backend Permission Example",button:"Button Permission Control"},roleButtonText:"Visible with {role} Role",codeButtonText:"Visible with [{code}] Code",currentPermissionMode:"Current Permission Mode",currentRole:"Current Role",currentCode:"Current Code",clickToSeeButtonChange:"Click to see button changes",clickToSeeLeftMenuChange:"Click to see left menu changes",frontendPermissionSwitchTitle:"Permission Switching (Please switch permission mode to Frontend Role mode first)",backendPermissionSwitchTitle:"Permission Switching (Please switch permission mode to Backend Role mode first)",componentWayTitle:"Component-based Permission Check (You can register it globally if needed)",functionWayTitle:"Function-based Permission Check (Suitable for filtering within functions)",directiveWayTitle:"Directive-based Permission Check (This method cannot dynamically modify permissions)",backendLeftMenuChangeTitle:"Click to see left menu changes (Must be in Backend Role mode to test the functionality displayed on this page)"},headlessTable:{pageTitles:{basic:"Basic Table"}},result:{status:{error:"Error",success:"Success"},failPage:{title:"Error Sending Content",subTitle:"Sorry, there was a problem sending the content.",buttons:{home:"Return to Home",back:"Go Back"},errorHeader:"There might be the following issues when sending content:",networkIssue:"Network connection problem",checkNetwork:"Check network >",messageTooLong:"Message is too long, please simplify",viewHelp:"View help >"},successPage:{title:"Operation Successful",subTitle:"Content generated by ChatGPT has been successfully created.",buttons:{home:"Return to Home"},contentHeader:"AIGC Generated Content:",generatedTimeLabel:"Generated Time",generatorLabel:"Generator",generatedContent:"Generated content will be displayed here",contentLabel:"Content",step1:"Input Content",step2:"Generating",step2Content:"ChatGPT is generating content, please wait a moment.",step3:"Under Review",step3Content:"Generated content is under review and will be approved shortly.",step4:"Completed"}}},common:{likeQuery:""}},"zh-CN":{routes:{components:{components:"组件示例",table:"表格组件",headlessTable:"Headless 表格",headlessTableBasic:"基础表格",headlessTablePagination:"分页表格",report:"财务报表",report001:"多条件查询报表",report002:"简单查询报表",list:"列表",listBasic:"基础列表",listCard:"卡片列表",detail:"编辑",preview:"查看",form:"表单",formsimple:"简单表单",formcomplex:"复杂表单",echarts:"Echarts",normal:"普通示例"},chat:{chat:"Chat"},menu:{menu:"菜单"},profile:{profile:"个人资料"},design:{design:"设计",palette:"调色板",typography:"汉字排版"},dashboard:{dashboard:"仪表盘"},directives:{directives:"指令示例",permission:"权限指令",copy:"复制指令",ripple:"涟漪指令"},iframe:{iframe:"内嵌网页",githubInternal:"GitHub 仓库(内嵌)",GitHubExternal:"GitHub 仓库(外链)",viteInternal:"Vite 中文文档 (内嵌)",ViteExternal:"Vite 官方文档 (外链)"},permission:{permission:"权限测试页",authPageA:"权限测试页A",authPageB:"权限测试页B",frontend:"基于前端权限",backend:"基于后台权限",pageAuth:"页面权限",buttonAuth:"按钮权限",role:"角色权限",directive:"指令权限"},result:{result:"结果页",success:"成功页",fail:"失败页"}},layouts:{header:{toggleCollapsed:"折叠菜单",toggleFullScreen:"切换全屏",switchLocale:"切换语言",settingDrawer:"设置抽屉",openSettingDrawer:"打开设置抽屉",projectSetting:"项目设置",darkMode:"深色主题",followSystem:"跟随系统",systemDefault:"系统默认",systemTheme:"系统主题",themeMode:"主题模式",lightMode:"浅色主题",colorWeak:"色弱模式",themeConfig:{title:"主题配置",copyConfigButton:"拷贝当前配置",resetConfigButton:"重置当前配置",message:{copyConfigSuccess:"拷贝配置成功!",resetConfigSuccess:"重置配置成功!"},clearStore:"清理缓存"},transitionSetting:{title:"动画设置",enableTransition:"开启动画",enableProgressBar:"开启进度条",enablePageLoadingTransition:"开启页面加载动画",routeTransition:"切换路由动画"},layout:"布局",footer:"页脚",backtop:"返回顶部"},userInfo:{userInformation:"用户信息",greeting:"你好",rolesList:"角色列表:{roles}",logoutButton:"退出登录"},logoutConfirmation:{title:"警告",content:"您确定要退出登录吗?",positiveText:"退出登录",negativeText:"取消",onNegativeClickMessage:"取消退出登录",onPositiveClickMessage:"退出登录成功"}},searchDialog:{searchPlaceholder:"搜索",noResultsFound:"抱歉,未找到符合 { search } 的结果",toSelectTooltip:"选择",toNavigateTooltip:"导航",applications:"应用程序",chatBot:"ChatBot",actions:"操作列表",action:"操作",shortcut:"快捷方式",go:"前往"},page:{login:{title:"登录",form:{username:{label:"用户名",placeholder:"请输入用户名",error:"用户名不能为空"},password:{label:"密码",placeholder:"请输入密码",error:"密码不能为空"},confirmPassword:{label:"确认密码",placeholder:"请输入密码",error:"确认密码不能为空",validator:"两次密码不一致!"},forgotPassword:{label:"手机号码",placeholder:"示例:15912345678",requiredError:"手机号码不能为空",invalidFormatError:"无效的手机号码格式"},socialButtons:{signInWithQQ:"使用 QQ 登录",signInWithWeChat:"使用微信登录"},signText:{signIn:"还没有账号吗?",forgotPassword:"返回登录",signUp:"已经有账号了吗?"},welcomeBackTitle:"欢迎回来",helloTitle:"你好",forgotPasswordTitle:"忘记密码",greetingText:"Celeris Web 是一个使用 Vue 3、Vite 和 TypeScript 构建的高性能、可定制的前端开发模板。",sendResetLinkButton:"发送重置链接",resetLinkSentMessage:"重置链接已发送",signUp:"注册",backToSignIn:"返回登录",signIn:"登录",remember:"记住我",loginButton:"登录",registerButton:"注册",forgetPassword:"忘记密码",incorrectAccountOrPassword:"账号或密码不正确!"},notification:{loginSuccessMessage:"登录成功",welcomeBackMessage:"欢迎回来,{username}!"}},copyDirective:{copy:"复制",copyDirective:"复制指令示例",copyPlaceholder:"请输入要复制的内容",copySuccess:"复制成功",copyError:"复制失败"},rippleDirective:{ripple:"涟漪",rippleDirective:"涟漪指令示例",description1:"涟漪是用于传达组件或交互元素状态的状态图层。",description2:"状态图层是放置在元素上的半透明覆盖层,用于指示其状态。"},permission:{permissionMode:{currentMode:"当前权限模式",backendMode:"后台权限模式",frontendMode:"前端角色权限模式",toggleMode:"切换权限模式"},pageTitles:{frontend:"前端权限示例",backend:"后端权限示例",button:"按钮权限控制"},roleButtonText:"拥有 { role } 角色权限可见",codeButtonText:"拥有code { code } 权限可见",currentPermissionMode:"当前权限模式",currentRole:"当前角色",currentCode:"当前code",clickToSeeButtonChange:"点击后请查看按钮变化",clickToSeeLeftMenuChange:"点击后请查看左侧菜单变化",frontendPermissionSwitchTitle:"权限切换(请先切换权限模式为前端角色权限模式)",backendPermissionSwitchTitle:"权限切换(请先切换权限模式为后端角色权限模式)",componentWayTitle:"组件方式判断权限(有需要可以自行全局注册)",functionWayTitle:"函数方式方式判断权限(适用于函数内部过滤)",functionWayButtonBoth:"拥有[USER,ADMIN]角色权限可见",directiveWayTitle:"指令方式方式判断权限(该方式不能动态修改权限.)",backendLeftMenuChangeTitle:"点击后请查看左侧菜单变化(必须处于后台权限模式才可测试此页面所展示的功能)"},headlessTable:{pageTitles:{basic:"基础表格"}},result:{status:{error:"错误",success:"成功"},failPage:{title:"内容发送出错",subTitle:"很抱歉,发送内容时出现了问题。",buttons:{home:"返回主页",back:"返回上一级"},errorHeader:"发送内容出错时可能会有以下问题:",networkIssue:"网络连接问题",checkNetwork:"检查网络 >",messageTooLong:"消息过长,请精简一些",viewHelp:"查看帮助 >"},successPage:{title:"操作成功",subTitle:"ChatGPT 生成的内容已成功创建。",buttons:{home:"返回主页"},contentHeader:"AIGC 生成内容:",generatedTimeLabel:"生成时间",generatorLabel:"生成者",generatedContent:"在此显示生成的内容",contentLabel:"内容",step1:"输入内容",step2:"生成中",step2Content:"ChatGPT 正在生成内容,请稍等片刻。",step3:"审核中",step3Content:"生成的内容正在审核中,将很快完成审核。",step4:"完成"}}},common:{likeQuery:"模糊查询",input:"请输入{0}"}}}}),Jj=Yj.global.t,Xj=e=>{Yj.global.locale.value=e};const Zj=Vk.BASE_LOGIN,eD=tR.path,tD=[Zj];const oD={all:nD=nD||new Map,on(e,t){const o=nD.get(e);o?o.push(t):nD.set(e,[t])},off(e,t){const o=nD.get(e);o&&(t?o.splice(o.indexOf(t)>>>0,1):nD.set(e,[]))},emit(e,t){let o=nD.get(e);o&&o.slice().forEach((e=>{e(t)})),o=nD.get("*"),o&&o.slice().forEach((o=>{o(e,t)}))},clear(){this.all.clear()}};var nD;let rD;function iD(e){const t=function(e){if(!e)return e;const t=e,{matched:o}=t,n=J(t,["matched"]);return Y(K({},n),{matched:null==o?void 0:o.map((({meta:e,name:t,path:o})=>({meta:e,name:t,path:o})))})}(e);oD.emit("RouteChange",t),rD=t}function aD(e,t=!0){oD.on("RouteChange",e),t&&rD&&e(rD)}function sD(e){e.afterEach((e=>{if(e.path===Vk.BASE_LOGIN){const e=wR(),t=qA(),o=jA(),n=WA();t.resetAPPState(),o.resetPermissionState(),e.resetUserState(),n.resetTabsState(),oD.clear()}}))}var lD={exports:{}}; +/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */const cD=eP(lD.exports=function(){var e,t,o={version:"0.2.0"},n=o.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function r(e,t,o){return eo?o:e}function i(e){return 100*(-1+e)}function a(e,t,o){var r;return(r="translate3d"===n.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===n.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+t+"ms "+o,r}o.configure=function(e){var t,o;for(t in e)void 0!==(o=e[t])&&e.hasOwnProperty(t)&&(n[t]=o);return this},o.status=null,o.set=function(e){var t=o.isStarted();e=r(e,n.minimum,1),o.status=1===e?null:e;var i=o.render(!t),c=i.querySelector(n.barSelector),u=n.speed,d=n.easing;return i.offsetWidth,s((function(t){""===n.positionUsing&&(n.positionUsing=o.getPositioningCSS()),l(c,a(e,u,d)),1===e?(l(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout((function(){l(i,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){o.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},o.isStarted=function(){return"number"==typeof o.status},o.start=function(){o.status||o.set(0);var e=function(){setTimeout((function(){o.status&&(o.trickle(),e())}),n.trickleSpeed)};return n.trickle&&e(),this},o.done=function(e){return e||o.status?o.inc(.3+.5*Math.random()).set(1):this},o.inc=function(e){var t=o.status;return t?("number"!=typeof e&&(e=(1-t)*r(Math.random()*t,.1,.95)),t=r(t+e,0,.994),o.set(t)):o.start()},o.trickle=function(){return o.inc(Math.random()*n.trickleRate)},e=0,t=0,o.promise=function(n){return n&&"resolved"!==n.state()?(0===t&&o.start(),e++,t++,n.always((function(){0==--t?(e=0,o.done()):o.set((e-t)/e)})),this):this},o.render=function(e){if(o.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=n.template;var r,a=t.querySelector(n.barSelector),s=e?"-100":i(o.status||0),c=document.querySelector(n.parent);return l(a,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),n.showSpinner||(r=t.querySelector(n.spinnerSelector))&&p(r),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},o.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(n.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},o.isRendered=function(){return!!document.getElementById("nprogress")},o.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var o=e.shift();o&&o(t)}return function(o){e.push(o),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function o(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function n(t){var o=document.body.style;if(t in o)return t;for(var n,r=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);r--;)if((n=e[r]+i)in o)return n;return t}function r(e){return e=o(e),t[e]||(t[e]=n(e))}function i(e,t,o){t=r(t),e.style[t]=o}return function(e,t){var o,n,r=arguments;if(2==r.length)for(o in t)void 0!==(n=t[o])&&t.hasOwnProperty(o)&&i(e,o,n);else i(e,r[1],r[2])}}();function c(e,t){return("string"==typeof e?e:f(e)).indexOf(" "+t+" ")>=0}function u(e,t){var o=f(e),n=o+t;c(o,t)||(e.className=n.substring(1))}function d(e,t){var o,n=f(e);c(e,t)&&(o=n.replace(" "+t+" "," "),e.className=o.substring(1,o.length-1))}function f(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return o}());cD.configure({easing:"ease",speed:300,showSpinner:!0,trickleSpeed:200,minimum:.1});const uD=qn({__name:"Iconx",props:["component","size","depth","color"],setup(e){const t=e,o=e=>{return"string"==typeof(t=e)||!jd(t)&&zd(t)&&"[object String]"==Ld(t)?Qi("i",{innerHTML:e||"svg??"}):e;var t};return(n,r)=>{const i=qC;return Fi(),Wi(i,Xe(Ki(Y(K({},t),{component:o(e.component)}))),null,16)}}}),dD=YO(uD),fD=((...e)=>{const t=(Ls||(Ls=li(As))).createApp(...e),{mount:o}=t;return t.mount=e=>{const n=function(e){if(_e(e)){return document.querySelector(e)}return e}(e);if(!n)return;const r=t._component;we(r)||r.render||r.template||(r.template=n.innerHTML),1===n.nodeType&&(n.textContent="");const i=o(n,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),i},t})(HL);var pD;fD.use(dD),fD.use(Lz,Uz),function(e){e.use(NA)}(fD),function(e){e.use(rR)}(fD),function(e){const t=new Set;function o(e){return t.has(e.path)}function n(e){o(e)||t.add(e.path)}e.beforeEach((e=>(e.meta.loaded=o(e),iD(e),!0))),e.afterEach((e=>{n(e)}))}(pD=rR),function(e){const t=_R(),o=GA(),{getShouldEnableTransition:n,getShouldOpenPageLoading:r}=jL();e.beforeEach((e=>!(t.getToken&&!e.meta.loaded&&zo(n)&&zo(r)&&(o.setPageLoadingAction(!0),0)))),e.afterEach((()=>ie(this,null,(function*(){return zo(r)&&(yield new Promise((e=>{const t=Date.now();o.setPageLoading(!0),setTimeout((()=>{const n=500-(Date.now()-t);n<=0?(o.setPageLoading(!1),e(null)):setTimeout((()=>{o.setPageLoading(!1),e(null)}),n)}),0)}))),!0}))))}(pD),function(e){e.beforeEach((e=>{const{meta:t}=e;return!t||!Reflect.has(t,"externalLink")||(function(e,{target:t="_blank",features:o="noopener=yes,noreferrer=yes"}={}){window.open(e,t,o)}(t.externalLink),!1)}))}(pD),function(e){e.beforeEach((()=>!0))}(pD),function(e){const{getShouldEnableTransition:t,getShouldOpenNProgress:o}=jL();e.beforeEach((e=>(e.meta.loaded||zo(t)&&zo(o)&&!cD.isStarted()&&cD.start(),!0))),e.afterEach((()=>(zo(t)&&zo(o)&&cD.done(),!0)))}(pD),function(e){const t=_R(),o=DA();e.beforeEach(((n,r,i)=>ie(this,null,(function*(){var a,s,l,c;if(r.path===eD&&n.path===Vk.BASE_HOME&&(null==(a=t.getUserInfo)?void 0:a.homePageUrl)&&t.getUserInfo.homePageUrl!==Vk.BASE_HOME)return void i(t.getUserInfo.homePageUrl);const u=t.getToken;if(tD.includes(n.path)){if(n.path===Zj&&u){const e=t.getShouldPasswordExpired;try{if(yield t.performAfterLoginAction(),!e)return void i((null==(s=n.query)?void 0:s.redirect)||"/")}catch(hD){}}i()}else{if(!u){if(n.meta.shouldIgnoreAuth)return void i();const e={path:Zj,replace:!0};return n.path&&(e.query=Y(K({},e.query),{redirect:n.path})),void i(e)}if(r.path!==Zj||n.name!==KI.name||n.fullPath===((null==(l=t.getUserInfo)?void 0:l.homePageUrl)||Vk.BASE_HOME)){if(0===t.getUpdatedAt)try{yield t.getUserInfoAction()}catch(d){return void i()}if(o.getShouldAddRouteDynamically)i();else if((yield o.buildRoutesAction()).forEach((t=>{e.addRoute(t)})),e.addRoute(KI),o.setShouldAddRouteDynamically(!0),n.name===KI.name)i({path:n.fullPath,replace:!0,query:n.query});else{const e=r.query.redirect||n.path,t=decodeURIComponent(e),o=n.path===t?Y(K({},n),{replace:!0}):{path:t};i(o)}}else i((null==(c=t.getUserInfo)?void 0:c.homePageUrl)||Vk.BASE_HOME)}}))))}(pD),sD(pD),function(e){Object.keys(qz).forEach((t=>{e.directive(t,qz[t])}))}(fD),Promise.all([function(e){return ie(this,null,(function*(){const{getLocale:t}=QA(),o=t.value;Xj(o),e.use(Yj)}))}(fD)]).finally((()=>{fD.mount("#app")}));export{Ro as $,yc as A,Lx as B,Tg as C,Og as D,Pw as E,ov as F,tv as G,Ii as H,LI as I,BI as J,gr as K,Jx as L,qC as M,fv as N,xr as O,YO as P,xc as Q,Kk as R,zI as S,La as T,Cc as U,Sc as V,wc as W,i_ as X,Pc as Y,Mo as Z,uD as _,Io as a,xv as a$,vi as a0,gi as a1,rr as a2,ev as a3,Vr as a4,Ox as a5,VS as a6,Ds as a7,Fs as a8,Ol as a9,Yc as aA,xn as aB,su as aC,Ml as aD,Oc as aE,zs as aF,zx as aG,jl as aH,Bl as aI,ZC as aJ,$l as aK,sr as aL,QS as aM,Il as aN,Vl as aO,Ep as aP,xg as aQ,kl as aR,wd as aS,Mg as aT,MC as aU,Xn as aV,$C as aW,jc as aX,Bc as aY,Bs as aZ,cv as a_,Tl as aa,BA as ab,Xe as ac,Ki as ad,Cr as ae,Er as af,Ci as ag,Po as ah,na as ai,Ho as aj,la as ak,Xi as al,lr as am,cn as an,nv as ao,Fg as ap,Dg as aq,jg as ar,qg as as,Hg as at,zl as au,ky as av,$y as aw,_d as ax,KC as ay,Uo as az,Qi as b,bl as b$,kg as b0,Rc as b1,Pg as b2,rd as b3,Pl as b4,gv as b5,DC as b6,nC as b7,bC as b8,El as b9,fu as bA,Fd as bB,Nd as bC,Td as bD,Rl as bE,c_ as bF,Ja as bG,ws as bH,Yi as bI,Xw as bJ,rv as bK,FT as bL,NO as bM,Vk as bN,nS as bO,jd as bP,HT as bQ,jw as bR,gd as bS,xx as bT,mu as bU,kx as bV,Tc as bW,wl as bX,sl as bY,Sl as bZ,xl as b_,_C as ba,Qw as bb,py as bc,BL as bd,Je as be,es as bf,cL as bg,fT as bh,uT as bi,wT as bj,Xk as bk,$T as bl,vr as bm,KA as bn,Jk as bo,jA as bp,Zy as bq,Ky as br,js as bs,hv as bt,uv as bu,iv as bv,lv as bw,av as bx,sv as by,qk as bz,Wi as c,Sw as c$,il as c0,al as c1,_l as c2,Cl as c3,vl as c4,yl as c5,Wx as c6,tu as c7,vd as c8,eu as c9,xe as cA,wS as cB,rR as cC,jT as cD,VO as cE,cM as cF,ZI as cG,zO as cH,ZM as cI,WS as cJ,dg as cK,mS as cL,nd as cM,Oy as cN,Uy as cO,Wl as cP,xC as cQ,Jn as cR,gy as cS,bL as cT,vL as cU,Ac as cV,tk as cW,lx as cX,ix as cY,Rg as cZ,Zg as c_,ou as ca,Xc as cb,ud as cc,wy as cd,IS as ce,Sd as cf,uu as cg,Mc as ch,T_ as ci,GA as cj,QA as ck,IL as cl,Jj as cm,Kj as cn,Xj as co,jL as cp,FL as cq,WA as cr,aD as cs,UO as ct,zo as cu,hr as cv,$L as cw,uL as cx,dD as cy,Is as cz,qn as d,o_ as d0,Hl as d1,$c as d2,xo as d3,Py as d4,zC as d5,ES as d6,Mf as d7,Wf as d8,Yf as d9,Bf as da,lm as db,$f as dc,op as dd,px as de,ql as df,Wy as dg,EC as dh,nu as di,iu as dj,fc as dk,Km as dl,np as dm,Qm as dn,Bd as dp,kc as dq,By as dr,Ll as ds,Ri as dt,$i as du,BS as dv,yg as dw,AL as dx,OL as dy,Vw as dz,Lo as e,$s as f,Gi as g,Ji as h,qr as i,ot as j,wR as k,Ca as l,nr as m,bk as n,Fi as o,Hi as p,Zi as q,bo as r,qe as s,Al as t,Vj as u,Sa as v,yn as w,Dl as x,gc as y,bc as z}; diff --git a/docs/assets/index-Bfcg8leT.js b/docs/assets/index-Bfcg8leT.js new file mode 100644 index 0000000..df3698c --- /dev/null +++ b/docs/assets/index-Bfcg8leT.js @@ -0,0 +1 @@ +import{d as e,a,r as t,o as l,c as r,w as o,b as s,e as u,h as p,B as n,L as m,v as i}from"./index-BT0ZcDkn.js";import{u as d}from"./use-message-CulIy1l8.js";import{N as c}from"./Input-D2qMgPO1.js";import{N as f,a as y}from"./FormItem-CZeE-Hc9.js";import{_ as h}from"./Space-_SFqgYmP.js";import{N as g}from"./Divider-DXNdPNfR.js";import{_ as v}from"./DataTable-CDcTRuJS.js";import"./use-locale-CbMPSc0o.js";import"./use-merged-state-D7wGS6Km.js";import"./get-slot-BjAOOWF7.js";import"./Checkbox-Kaq6uefv.js";import"./RadioGroup-BozaTzAB.js";import"./Popover-3mPJ01hC.js";import"./use-compitable-CHcH6xDN.js";import"./next-frame-once-DiJwGkuW.js";import"./Dropdown-BMB08iEg.js";import"./create-Bylz8BGN.js";import"./FocusDetector-C7V71fRC.js";import"./Tooltip-BFoQMn72.js";import"./Empty-C_CzYco1.js";import"./Pagination-YSg8zdta.js";import"./Select-D_I2Mr2d.js";import"./Tag-D4OMG_5z.js";import"./index-LLZlmyqL.js";import"./Checkmark-DuWLWy-v.js";import"./Forward-xWz6l688.js";const j=e({__name:"index",setup(e){const j=d(),_=a(null),k=a({user:{name:"",age:""},phone:""}),b=e=>{var a;e.preventDefault(),null==(a=_.value)||a.validate((e=>{e?(console.log(e),j.error("Invalid")):j.success("Valid")}))},S=t({page:2,pageSize:10,showSizePicker:!0,pageSizes:[10,20,100],onChange:e=>{S.page=e},onUpdatePageSize:e=>{S.pageSize=e,S.page=1}}),T={summary:e=>({name:{value:i("span",{style:{color:"red"}},e.reduce(((e,a)=>e+a.age),0)),colSpan:3}}),data:(()=>{const e=[];for(let a=0;a<100;a++)e.push({key:a,name:"John Brown"+a,age:32,address:"New York No. 1 Lake Park"});return e})(),columns:[{type:"selection"},{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Address",key:"address"}]};return(e,a)=>{const t=c,i=f,d=n,j=y,U=h,w=g,x=v,z=m;return l(),r(z,null,{default:o((()=>[s(j,{ref_key:"formRef",ref:_,inline:"","label-width":80,model:u(k)},{default:o((()=>[s(i,{label:"姓名",path:"user.name"},{default:o((()=>[s(t,{value:u(k).user.name,"onUpdate:value":a[0]||(a[0]=e=>u(k).user.name=e),placeholder:"输入姓名"},null,8,["value"])])),_:1}),s(i,{label:"年龄",path:"user.age"},{default:o((()=>[s(t,{value:u(k).user.age,"onUpdate:value":a[1]||(a[1]=e=>u(k).user.age=e),placeholder:"输入年龄"},null,8,["value"])])),_:1}),s(i,{label:"电话号码",path:"phone"},{default:o((()=>[s(t,{value:u(k).phone,"onUpdate:value":a[2]||(a[2]=e=>u(k).phone=e),placeholder:"电话号码"},null,8,["value"])])),_:1}),s(i,{label:"姓名",path:"user.name"},{default:o((()=>[s(t,{value:u(k).user.name,"onUpdate:value":a[3]||(a[3]=e=>u(k).user.name=e),placeholder:"输入姓名"},null,8,["value"])])),_:1}),s(i,{label:"年龄",path:"user.age"},{default:o((()=>[s(t,{value:u(k).user.age,"onUpdate:value":a[4]||(a[4]=e=>u(k).user.age=e),placeholder:"输入年龄"},null,8,["value"])])),_:1}),s(i,{label:"电话号码",path:"phone"},{default:o((()=>[s(t,{value:u(k).phone,"onUpdate:value":a[5]||(a[5]=e=>u(k).phone=e),placeholder:"电话号码"},null,8,["value"])])),_:1}),s(i,null,{default:o((()=>[s(d,{"attr-type":"button",type:"primary",onClick:b},{default:o((()=>a[6]||(a[6]=[p(" 查询 ")]))),_:1})])),_:1})])),_:1},8,["model"]),s(U,null,{default:o((()=>[s(d,null,{default:o((()=>a[7]||(a[7]=[p("Default")]))),_:1}),s(d,{type:"tertiary"},{default:o((()=>a[8]||(a[8]=[p(" Tertiary ")]))),_:1}),s(d,{type:"primary"},{default:o((()=>a[9]||(a[9]=[p(" Primary ")]))),_:1}),s(d,{type:"tertiary"},{default:o((()=>a[10]||(a[10]=[p(" Tertiary ")]))),_:1}),s(d,{type:"tertiary"},{default:o((()=>a[11]||(a[11]=[p(" Tertiary ")]))),_:1}),s(d,{type:"tertiary"},{default:o((()=>a[12]||(a[12]=[p(" Tertiary ")]))),_:1}),s(d,{type:"tertiary"},{default:o((()=>a[13]||(a[13]=[p(" Tertiary ")]))),_:1})])),_:1}),s(w,{dashed:""}),s(x,{columns:T.columns,data:T.data,summary:T.summary,size:"small",pagination:u(S)},null,8,["columns","data","summary","pagination"])])),_:1})}}});export{j as default}; diff --git a/docs/assets/index-Bje_nPpk.js b/docs/assets/index-Bje_nPpk.js new file mode 100644 index 0000000..55c8502 --- /dev/null +++ b/docs/assets/index-Bje_nPpk.js @@ -0,0 +1 @@ +var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,l=(t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,s=(e,t)=>{for(var n in t||(t={}))r.call(t,n)&&l(e,n,t[n]);if(o)for(var n of o(t))a.call(t,n)&&l(e,n,t[n]);return e},i=(e,o)=>t(e,n(o));import{v as c,z as u,aw as d,Q as h,y as p,d as v,D as m,a as g,a1 as f,a0 as b,az as w,l as x,aO as y,bS as k,C,bT as S,a2 as _,aL as z,G as $,aA as M,bU as B,T,ai as P,aI as j,an as U,N as R,A as D,bV as L,a4 as O,au as A,am as F,bW as I,i as H,bX as E,bY as N,bZ as V,b_ as W,b$ as q,c0 as X,c1 as Y,aY as K,aX as G,c2 as Z,c3 as Q,c4 as J,c5 as ee,aK as te,ax as ne,c6 as oe,Y as re,aF as ae,aB as le,aC as se,aD as ie,B as ce,c7 as ue,F as de,c8 as he,c9 as pe,ca as ve,cb as me,bG as ge,cc as fe,av as be,aQ as we,cd as xe,ce as ye,cf as ke,cg as Ce,ch as Se,t as _e,bt as ze,ci as $e,bP as Me,o as Be,p as Te,g as Pe,al as je,cj as Ue,e as Re,ck as De,c as Le,w as Oe,ae as Ae,q as Fe,b as Ie,j as He,be as Ee,_ as Ne,P as Ve,u as We,cl as qe,J as Xe,cm as Ye,cn as Ke,co as Ge,bM as Ze,k as Qe,h as Je,bd as et,H as tt,cp as nt,R as ot,cq as rt,bm as at,s as lt,O as st,bl as it,cr as ct,cs as ut,bH as dt,ct as ht,cu as pt,cv as vt,K as mt,bp as gt,$ as ft,cw as bt,cx as wt,cy as xt,cz as yt,Z as kt,f as Ct,cA as St,L as _t,cB as zt,bn as $t,cC as Mt,cD as Bt,cE as Tt,aj as Pt,cF as jt,cG as Ut,cH as Rt,cI as Dt}from"./index-BT0ZcDkn.js";import{u as Lt}from"./use-merged-state-D7wGS6Km.js";import{_ as Ot}from"./ToolTipper.vuevuetypescriptsetuptruelang-BQIt4vT0.js";import{a as At,_ as Ft}from"./AppLogo.vuevuetypescriptsetuptruelang-DzR987t-.js";import{C as It}from"./ChevronForwardCircleOutline-BjHSf1QY.js";import{_ as Ht}from"./Dropdown-BMB08iEg.js";import{u as Et,r as Nt}from"./utils-PlAvPplV.js";import{u as Vt}from"./use-message-CulIy1l8.js";import{_ as Wt}from"./Avatar-BpYqF4bS.js";import{u as qt,B as Xt,V as Yt,a as Kt,_ as Gt}from"./Popover-3mPJ01hC.js";import{N as Zt}from"./Divider-DXNdPNfR.js";import{_ as Qt,a as Jt}from"./Switch-obDBD39a.js";import{_ as en}from"./Space-_SFqgYmP.js";import{_ as tn}from"./Select-D_I2Mr2d.js";import{a as nn,_ as on}from"./Grid-qb506I7V.js";import{N as rn}from"./Input-D2qMgPO1.js";import{_ as an}from"./InputGroup-Bg5yCPNp.js";import{u as ln}from"./use-locale-CbMPSc0o.js";import{u as sn}from"./use-compitable-CHcH6xDN.js";import{_ as cn}from"./plugin-vueexport-helper-BCo6x5W8.js";import{T as un}from"./Tag-D4OMG_5z.js";import{i as dn,a as hn}from"./useScreen-jjQj1L0Z.js";import"./Tooltip-BFoQMn72.js";import"./create-Bylz8BGN.js";import"./isNil-aV-w2MPu.js";import"./next-frame-once-DiJwGkuW.js";import"./index-LLZlmyqL.js";import"./get-slot-BjAOOWF7.js";import"./FocusDetector-C7V71fRC.js";import"./Checkmark-DuWLWy-v.js";import"./Empty-C_CzYco1.js";function pn(e){if(null===e)return null;const t=function(e){return 9===e.nodeType?null:e.parentNode}(e);if(null===t)return null;if(9===t.nodeType)return document.documentElement;if(1===t.nodeType){const{overflow:e,overflowX:n,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+o+n))return t}return pn(t)}function vn(e,t,n){n/=100;const o=(t/=100)*Math.min(n,1-n)+n;return[e,o?100*(2-2*n/o):0,100*o]}function mn(e,t,n){const o=(n/=100)-n*(t/=100)/2,r=Math.min(o,1-o);return[e,r?(n-o)/r*100:0,100*o]}function gn(e,t,n){t/=100,n/=100;let o=(o,r=(o+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[255*o(5),255*o(3),255*o(1)]}function fn(e,t,n){e/=255,t/=255,n/=255;let o=Math.max(e,t,n),r=o-Math.min(e,t,n),a=r&&(o==e?(t-n)/r:o==t?2+(n-e)/r:4+(e-t)/r);return[60*(a<0?a+6:a),o&&r/o*100,100*o]}function bn(e,t,n){e/=255,t/=255,n/=255;let o=Math.max(e,t,n),r=o-Math.min(e,t,n),a=1-Math.abs(o+o-r-1),l=r&&(o==e?(t-n)/r:o==t?2+(n-e)/r:4+(e-t)/r);return[60*(l<0?l+6:l),a?r/a*100:0,50*(o+o-r)]}function wn(e,t,n){n/=100;let o=(t/=100)*Math.min(n,1-n),r=(t,r=(t+e/30)%12)=>n-o*Math.max(Math.min(r-3,9-r,1),-1);return[255*r(0),255*r(8),255*r(4)]}function xn(e){return"#document"===e.nodeName}const yn=c("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},c("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},c("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},c("g",{transform:"translate(120.000000, 4285.000000)"},c("g",{transform:"translate(7.000000, 126.000000)"},c("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},c("g",{transform:"translate(4.000000, 2.000000)"},c("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),c("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),kn=u("back-top","\n position: fixed;\n right: 40px;\n bottom: 40px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--n-text-color);\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n border-radius: var(--n-border-radius);\n height: var(--n-height);\n min-width: var(--n-width);\n box-shadow: var(--n-box-shadow);\n background-color: var(--n-color);\n",[d(),h("transition-disabled",{transition:"none !important"}),u("base-icon","\n font-size: var(--n-icon-size);\n color: var(--n-icon-color);\n transition: color .3s var(--n-bezier);\n "),p("svg",{pointerEvents:"none"}),p("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[u("base-icon",{color:"var(--n-icon-color-hover)"})]),p("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[u("base-icon",{color:"var(--n-icon-color-pressed)"})])]),Cn=v({name:"BackTop",inheritAttrs:!1,props:Object.assign(Object.assign({},C.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=m(e),o=g(null),r=g(!1);f((()=>{const{value:t}=o;r.value=null!==t&&t>=e.visibilityHeight}));const a=g(!1);b(r,(t=>{var n;a.value&&(null===(n=e["onUpdate:show"])||void 0===n||n.call(e,t))}));const l=w(e,"show"),s=Lt(l,r),i=g(!0),c=g(null),u=x((()=>({right:`calc(${y(e.right)} + ${k.value})`,bottom:y(e.bottom)})));let d,h;b(s,(t=>{var n,o;a.value&&(t&&(null===(n=e.onShow)||void 0===n||n.call(e)),null===(o=e.onHide)||void 0===o||o.call(e))}));const p=C("BackTop","-back-top",kn,S,e,t);function v(){var t;if(h)return;h=!0;const n=(null===(t=e.target)||void 0===t?void 0:t.call(e))||("string"==typeof(o=e.listenTo)?document.querySelector(o):"function"==typeof o?o():o)||pn(c.value);var o;if(!n)return;d=n===document.documentElement?document:n;const{to:r}=e;"string"==typeof r&&document.querySelector(r),d.addEventListener("scroll",B),B()}function B(){o.value=(xn(d)?document.documentElement:d).scrollTop,a.value||U((()=>{a.value=!0}))}_((()=>{v(),i.value=s.value})),z((()=>{d&&d.removeEventListener("scroll",B)}));const T=x((()=>{const{self:{color:e,boxShadow:t,boxShadowHover:n,boxShadowPressed:o,iconColor:r,iconColorHover:a,iconColorPressed:l,width:s,height:i,iconSize:c,borderRadius:u,textColor:d},common:{cubicBezierEaseInOut:h}}=p.value;return{"--n-bezier":h,"--n-border-radius":u,"--n-height":i,"--n-width":s,"--n-box-shadow":t,"--n-box-shadow-hover":n,"--n-box-shadow-pressed":o,"--n-color":e,"--n-icon-size":c,"--n-icon-color":r,"--n-icon-color-hover":a,"--n-icon-color-pressed":l,"--n-text-color":d}})),P=n?$("back-top",void 0,T,e):void 0;return{placeholderRef:c,style:u,mergedShow:s,isMounted:M(),scrollElement:g(null),scrollTop:o,DomInfoReady:a,transitionDisabled:i,mergedClsPrefix:t,handleAfterEnter:function(){i.value=!1},handleScroll:B,handleClick:function(){(xn(d)?document.documentElement:d).scrollTo({top:0,behavior:"smooth"})},cssVars:n?void 0:T,themeClass:null==P?void 0:P.themeClass,onRender:null==P?void 0:P.onRender}},render(){const{mergedClsPrefix:e}=this;return c("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},c(B,{to:this.to,show:this.mergedShow},{default:()=>c(T,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return null===(t=this.onRender)||void 0===t||t.call(this),this.mergedShow?c("div",P(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),j(this.$slots.default,(()=>[c(R,{clsPrefix:e},{default:()=>yn})]))):null}})}))}}),Sn=u("breadcrumb","\n white-space: nowrap;\n cursor: default;\n line-height: var(--n-item-line-height);\n",[p("ul","\n list-style: none;\n padding: 0;\n margin: 0;\n "),p("a","\n color: inherit;\n text-decoration: inherit;\n "),u("breadcrumb-item","\n font-size: var(--n-font-size);\n transition: color .3s var(--n-bezier);\n display: inline-flex;\n align-items: center;\n ",[u("icon","\n font-size: 18px;\n vertical-align: -.2em;\n transition: color .3s var(--n-bezier);\n color: var(--n-item-text-color);\n "),p("&:not(:last-child)",[h("clickable",[D("link","\n cursor: pointer;\n ",[p("&:hover","\n background-color: var(--n-item-color-hover);\n "),p("&:active","\n background-color: var(--n-item-color-pressed); \n ")])])]),D("link","\n padding: 4px;\n border-radius: var(--n-item-border-radius);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n color: var(--n-item-text-color);\n position: relative;\n ",[p("&:hover","\n color: var(--n-item-text-color-hover);\n ",[u("icon","\n color: var(--n-item-text-color-hover);\n ")]),p("&:active","\n color: var(--n-item-text-color-pressed);\n ",[u("icon","\n color: var(--n-item-text-color-pressed);\n ")])]),D("separator","\n margin: 0 8px;\n color: var(--n-separator-color);\n transition: color .3s var(--n-bezier);\n user-select: none;\n -webkit-user-select: none;\n "),p("&:last-child",[D("link","\n font-weight: var(--n-font-weight-active);\n cursor: unset;\n color: var(--n-item-text-color-active);\n ",[u("icon","\n color: var(--n-item-text-color-active);\n ")]),D("separator","\n display: none;\n ")])])]),_n=A("n-breadcrumb"),zn=v({name:"Breadcrumb",props:Object.assign(Object.assign({},C.props),{separator:{type:String,default:"/"}}),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=m(e),o=C("Breadcrumb","-breadcrumb",Sn,L,e,t);O(_n,{separatorRef:w(e,"separator"),mergedClsPrefixRef:t});const r=x((()=>{const{common:{cubicBezierEaseInOut:e},self:{separatorColor:t,itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:a,itemTextColorActive:l,fontSize:s,fontWeightActive:i,itemBorderRadius:c,itemColorHover:u,itemColorPressed:d,itemLineHeight:h}}=o.value;return{"--n-font-size":s,"--n-bezier":e,"--n-item-text-color":n,"--n-item-text-color-hover":r,"--n-item-text-color-pressed":a,"--n-item-text-color-active":l,"--n-separator-color":t,"--n-item-color-hover":u,"--n-item-color-pressed":d,"--n-item-border-radius":c,"--n-font-weight-active":i,"--n-item-line-height":h}})),a=n?$("breadcrumb",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:null==a?void 0:a.themeClass,onRender:null==a?void 0:a.onRender}},render(){var e;return null===(e=this.onRender)||void 0===e||e.call(this),c("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},c("ul",null,this.$slots))}});const $n=v({name:"BreadcrumbItem",props:{separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},setup(e,{slots:t}){const n=H(_n,null);if(!n)return()=>null;const{separatorRef:o,mergedClsPrefixRef:r}=n,a=function(e=(I?window:null)){const t=()=>{const{hash:t,host:n,hostname:o,href:r,origin:a,pathname:l,port:s,protocol:i,search:c}=(null==e?void 0:e.location)||{};return{hash:t,host:n,hostname:o,href:r,origin:a,pathname:l,port:s,protocol:i,search:c}},n=g(t()),o=()=>{n.value=t()};return _((()=>{e&&(e.addEventListener("popstate",o),e.addEventListener("hashchange",o))})),F((()=>{e&&(e.removeEventListener("popstate",o),e.removeEventListener("hashchange",o))})),n}(),l=x((()=>e.href?"a":"span")),s=x((()=>a.value.href===e.href?"location":null));return()=>{const{value:n}=r;return c("li",{class:[`${n}-breadcrumb-item`,e.clickable&&`${n}-breadcrumb-item--clickable`]},c(l.value,{class:`${n}-breadcrumb-item__link`,"aria-current":s.value,href:e.href,onClick:e.onClick},t),c("span",{class:`${n}-breadcrumb-item__separator`,"aria-hidden":"true"},j(t.separator,(()=>{var t;return[null!==(t=e.separator)&&void 0!==t?t:o.value]}))))}}});function Mn(e){return null===e?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}const Bn={rgb:{hex:e=>E(N(e)),hsl(e){const[t,n,o,r]=N(e);return V([...bn(t,n,o),r])},hsv(e){const[t,n,o,r]=N(e);return W([...fn(t,n,o),r])}},hex:{rgb:e=>q(N(e)),hsl(e){const[t,n,o,r]=N(e);return V([...bn(t,n,o),r])},hsv(e){const[t,n,o,r]=N(e);return W([...fn(t,n,o),r])}},hsl:{hex(e){const[t,n,o,r]=X(e);return E([...wn(t,n,o),r])},rgb(e){const[t,n,o,r]=X(e);return q([...wn(t,n,o),r])},hsv(e){const[t,n,o,r]=X(e);return W([...vn(t,n,o),r])}},hsv:{hex(e){const[t,n,o,r]=Y(e);return E([...gn(t,n,o),r])},rgb(e){const[t,n,o,r]=Y(e);return q([...gn(t,n,o),r])},hsl(e){const[t,n,o,r]=Y(e);return V([...mn(t,n,o),r])}}};function Tn(e,t,n){if(!(n=n||Mn(e)))return null;if(n===t)return e;return Bn[n][t](e)}const Pn="12px",jn="6px",Un=v({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=g(null);function n(n){const{value:o}=t;if(!o)return;const{width:r,left:a}=o.getBoundingClientRect(),l=(s=(n.clientX-a-6)/(r-12)*360,(s=Math.round(s))>=360?359:s<0?0:s);var s;e.onUpdateHue(l)}function o(){var t;G("mousemove",document,n),G("mouseup",document,o),null===(t=e.onComplete)||void 0===t||t.call(e)}return{railRef:t,handleMouseDown:function(e){t.value&&(K("mousemove",document,n),K("mouseup",document,o),n(e))}}},render(){const{clsPrefix:e}=this;return c("div",{class:`${e}-color-picker-slider`,style:{height:Pn,borderRadius:jn}},c("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:"linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",height:Pn,borderRadius:jn,position:"relative"},onMousedown:this.handleMouseDown},c("div",{style:{position:"absolute",left:jn,right:jn,top:0,bottom:0}},c("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${jn})`,borderRadius:jn,width:Pn,height:Pn}},c("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:jn,width:Pn,height:Pn}})))))}}),Rn="12px",Dn="6px",Ln=v({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=g(null);function n(n){const{value:o}=t;if(!o)return;const{width:r,left:a}=o.getBoundingClientRect(),l=(n.clientX-a)/(r-12);var s;e.onUpdateAlpha((s=l,(s=Math.round(100*s)/100)>1?1:s<0?0:s))}function o(){var t;G("mousemove",document,n),G("mouseup",document,o),null===(t=e.onComplete)||void 0===t||t.call(e)}return{railRef:t,railBackgroundImage:x((()=>{const{rgba:t}=e;return t?`linear-gradient(to right, rgba(${t[0]}, ${t[1]}, ${t[2]}, 0) 0%, rgba(${t[0]}, ${t[1]}, ${t[2]}, 1) 100%)`:""})),handleMouseDown:function(r){t.value&&e.rgba&&(K("mousemove",document,n),K("mouseup",document,o),n(r))}}},render(){const{clsPrefix:e}=this;return c("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:Rn,borderRadius:Dn},onMousedown:this.handleMouseDown},c("div",{style:{borderRadius:Dn,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},c("div",{class:`${e}-color-picker-checkboard`}),c("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&c("div",{style:{position:"absolute",left:Dn,right:Dn,top:0,bottom:0}},c("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${100*this.alpha}% - ${Dn})`,borderRadius:Dn,width:Rn,height:Rn}},c("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:q(this.rgba),borderRadius:Dn,width:Rn,height:Rn}}))))}}),On="12px",An="6px",Fn=v({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=g(null);function n(n){const{value:o}=t;if(!o)return;const{width:r,height:a,left:l,bottom:s}=o.getBoundingClientRect(),i=(s-n.clientY)/a,c=(n.clientX-l)/r,u=100*(c>1?1:c<0?0:c),d=100*(i>1?1:i<0?0:i);e.onUpdateSV(u,d)}function o(){var t;G("mousemove",document,n),G("mouseup",document,o),null===(t=e.onComplete)||void 0===t||t.call(e)}return{palleteRef:t,handleColor:x((()=>{const{rgba:t}=e;return t?`rgb(${t[0]}, ${t[1]}, ${t[2]})`:""})),handleMouseDown:function(e){t.value&&(K("mousemove",document,n),K("mouseup",document,o),n(e))}}},render(){const{clsPrefix:e}=this;return c("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},c("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),c("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&c("div",{class:`${e}-color-picker-handle`,style:{width:On,height:On,borderRadius:An,left:`calc(${this.displayedSv[0]}% - ${An})`,bottom:`calc(${this.displayedSv[1]}% - ${An})`}},c("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:An,width:On,height:On}})))}}),In=A("n-color-picker");const Hn={paddingSmall:"0 4px"},En=v({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=g(""),{themeRef:n}=H(In,null);function o(){const{value:t}=e;if(null===t)return"";const{label:n}=e;return"HEX"===n?t:"A"===n?`${Math.floor(100*t)}%`:String(Math.floor(t))}return f((()=>{t.value=o()})),{mergedTheme:n,inputValue:t,handleInputChange:function(n){let r,a;switch(e.label){case"HEX":a=function(e){const t=e.trim();return!!/^#[0-9a-fA-F]+$/.test(t)&&[4,5,7,9].includes(t.length)}(n),a&&e.onUpdateValue(n),t.value=o();break;case"H":r=function(e){return!!/^\d{1,3}\.?\d*$/.test(e.trim())&&Math.max(0,Math.min(Number.parseInt(e),360))}(n),!1===r?t.value=o():e.onUpdateValue(r);break;case"S":case"L":case"V":r=function(e){return!!/^\d{1,3}\.?\d*$/.test(e.trim())&&Math.max(0,Math.min(Number.parseInt(e),100))}(n),!1===r?t.value=o():e.onUpdateValue(r);break;case"A":r=function(e){return!!/^\d{1,3}\.?\d*%$/.test(e.trim())&&Math.max(0,Math.min(Number.parseInt(e)/100,100))}(n),!1===r?t.value=o():e.onUpdateValue(r);break;case"R":case"G":case"B":r=function(e){return!!/^\d{1,3}\.?\d*$/.test(e.trim())&&Math.max(0,Math.min(Number.parseInt(e),255))}(n),!1===r?t.value=o():e.onUpdateValue(r)}},handleInputUpdateValue:function(e){t.value=e}}},render(){const{mergedTheme:e}=this;return c(rn,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:Hn,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:"A"===this.label?"flex-grow: 1.25;":""})}}),Nn=v({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup:e=>({handleUnitUpdateValue(t,n){const{showAlpha:o}=e;if("hex"===e.mode)return void e.onUpdateValue((o?E:Z)(n));let r;switch(r=null===e.valueArr?[0,0,0,0]:Array.from(e.valueArr),e.mode){case"hsv":r[t]=n,e.onUpdateValue((o?W:ee)(r));break;case"rgb":r[t]=n,e.onUpdateValue((o?q:J)(r));break;case"hsl":r[t]=n,e.onUpdateValue((o?V:Q)(r))}}}),render(){const{clsPrefix:e,modes:t}=this;return c("div",{class:`${e}-color-picker-input`},c("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:1===t.length?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),c(an,null,{default:()=>{const{mode:e,valueArr:t,showAlpha:n}=this;if("hex"===e){let e=null;try{e=null===t?null:(n?E:Z)(t)}catch(o){}return c(En,{label:"HEX",showAlpha:n,value:e,onUpdateValue:e=>{this.handleUnitUpdateValue(0,e)}})}return(e+(n?"a":"")).split("").map(((e,n)=>c(En,{label:e.toUpperCase(),value:null===t?null:t[n],onUpdateValue:e=>{this.handleUnitUpdateValue(n,e)}})))}}))}}),Vn=v({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:n}=H(In,null);return()=>{const{hsla:o,value:r,clsPrefix:a,onClick:l,disabled:s}=e,i=t.label||n.value;return c("div",{class:[`${a}-color-picker-trigger`,s&&`${a}-color-picker-trigger--disabled`],onClick:s?void 0:l},c("div",{class:`${a}-color-picker-trigger__fill`},c("div",{class:`${a}-color-picker-checkboard`}),c("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:o?V(o):""}}),r&&o?c("div",{class:`${a}-color-picker-trigger__value`,style:{color:o[2]>50||o[3]<.5?"black":"white"}},i?i(r):r):null))}}});function Wn(e,t){if("hsv"===t){const[t,n,o,r]=Y(e);return q([...gn(t,n,o),r])}return e}const qn=v({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){function t(t){const{mode:n}=e;let{value:o,mode:r}=t;return r||(r="hex",/^[a-zA-Z]+$/.test(o)?o=function(e){const t=document.createElement("canvas").getContext("2d");return t?(t.fillStyle=e,t.fillStyle):"#000000"}(o):(te("color-picker",`color ${o} in swatches is invalid.`),o="#000000")),r===n?o:Tn(o,n,r)}function n(n){e.onUpdateColor(t(n))}return{parsedSwatchesRef:x((()=>e.swatches.map((e=>{const t=Mn(e);return{value:e,mode:t,legalValue:Wn(e,t)}})))),handleSwatchSelect:n,handleSwatchKeyDown:function(e,t){"Enter"===e.key&&n(t)}}},render(){const{clsPrefix:e}=this;return c("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map((t=>c("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>{this.handleSwatchSelect(t)},onKeydown:e=>{this.handleSwatchKeyDown(e,t)}},c("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}})))))}}),Xn=v({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=Mn(e);return Boolean(!e||t&&"hsv"!==t)}},onUpdateColor:{type:Function,required:!0}},setup:e=>({handleChange:function(t){var n;const o=t.target.value;null===(n=e.onUpdateColor)||void 0===n||n.call(e,Tn(o.toUpperCase(),e.mode,"hex")),t.stopPropagation()}}),render(){const{clsPrefix:e}=this;return c("div",{class:`${e}-color-picker-preview__preview`},c("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),c("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),Yn=p([u("color-picker","\n display: inline-block;\n box-sizing: border-box;\n height: var(--n-height);\n font-size: var(--n-font-size);\n width: 100%;\n position: relative;\n "),u("color-picker-panel","\n margin: 4px 0;\n width: 240px;\n font-size: var(--n-panel-font-size);\n color: var(--n-text-color);\n background-color: var(--n-color);\n transition:\n box-shadow .3s var(--n-bezier),\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n border-radius: var(--n-border-radius);\n box-shadow: var(--n-box-shadow);\n ",[d(),u("input","\n text-align: center;\n ")]),u("color-picker-checkboard","\n background: white; \n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ",[p("&::after",'\n background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%);\n background-size: 12px 12px;\n background-position: 0 0, 0 6px, 6px -6px, -6px 0px;\n background-repeat: repeat;\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ')]),u("color-picker-slider","\n margin-bottom: 8px;\n position: relative;\n box-sizing: border-box;\n ",[D("image","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n "),p("&::after",'\n content: "";\n position: absolute;\n border-radius: inherit;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24);\n pointer-events: none;\n ')]),u("color-picker-handle","\n z-index: 1;\n box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45);\n position: absolute;\n background-color: white;\n overflow: hidden;\n ",[D("fill","\n box-sizing: border-box;\n border: 2px solid white;\n ")]),u("color-picker-pallete","\n height: 180px;\n position: relative;\n margin-bottom: 8px;\n cursor: crosshair;\n ",[D("layer","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ",[h("shadowed","\n box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24);\n ")])]),u("color-picker-preview","\n display: flex;\n ",[D("sliders","\n flex: 1 0 auto;\n "),D("preview","\n position: relative;\n height: 30px;\n width: 30px;\n margin: 0 0 8px 6px;\n border-radius: 50%;\n box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset;\n overflow: hidden;\n "),D("fill","\n display: block;\n width: 30px;\n height: 30px;\n "),D("input","\n position: absolute;\n top: 0;\n left: 0;\n width: 30px;\n height: 30px;\n opacity: 0;\n z-index: 1;\n ")]),u("color-picker-input","\n display: flex;\n align-items: center;\n ",[u("input","\n flex-grow: 1;\n flex-basis: 0;\n "),D("mode","\n width: 72px;\n text-align: center;\n ")]),u("color-picker-control","\n padding: 12px;\n "),u("color-picker-action","\n display: flex;\n margin-top: -4px;\n border-top: 1px solid var(--n-divider-color);\n padding: 8px 12px;\n justify-content: flex-end;\n ",[u("button","margin-left: 8px;")]),u("color-picker-trigger","\n border: var(--n-border);\n height: 100%;\n box-sizing: border-box;\n border-radius: var(--n-border-radius);\n transition: border-color .3s var(--n-bezier);\n cursor: pointer;\n ",[D("value","\n white-space: nowrap;\n position: relative;\n "),D("fill","\n border-radius: var(--n-border-radius);\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n left: 4px;\n right: 4px;\n top: 4px;\n bottom: 4px;\n "),h("disabled","cursor: not-allowed"),u("color-picker-checkboard","\n border-radius: var(--n-border-radius);\n ",[p("&::after","\n --n-block-size: calc((var(--n-height) - 8px) / 3);\n background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2);\n background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; \n ")])]),u("color-picker-swatches","\n display: grid;\n grid-gap: 8px;\n flex-wrap: wrap;\n position: relative;\n grid-template-columns: repeat(auto-fill, 18px);\n margin-top: 10px;\n ",[u("color-picker-swatch","\n width: 18px;\n height: 18px;\n background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%);\n background-size: 8px 8px;\n background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px;\n background-repeat: repeat;\n ",[D("fill","\n position: relative;\n width: 100%;\n height: 100%;\n border-radius: 3px;\n box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset;\n cursor: pointer;\n "),p("&:focus","\n outline: none;\n ",[D("fill",[p("&::after",'\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: inherit;\n filter: blur(2px);\n content: "";\n ')])])])])]),Kn=v({name:"ColorPicker",props:Object.assign(Object.assign({},C.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:qt.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,onClear:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),setup(e,{slots:t}){const n=g(null);let o=null;const r=ne(e),{mergedSizeRef:a,mergedDisabledRef:l}=r,{localeRef:s}=ln("global"),{mergedClsPrefixRef:i,namespaceRef:u,inlineThemeDisabled:d}=m(e),h=C("ColorPicker","-color-picker",Yn,oe,e,i);O(In,{themeRef:h,renderLabelRef:w(e,"renderLabel"),colorPickerSlots:t});const p=g(e.defaultShow),v=Lt(w(e,"show"),p);function y(t){const{onUpdateShow:n,"onUpdate:show":o}=e;n&&ie(n,t),o&&ie(o,t),p.value=t}const{defaultValue:k}=e,S=g(void 0===k?function(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}(e.modes,e.showAlpha):k),_=Lt(w(e,"value"),S),z=g([_.value]),B=g(0),T=x((()=>Mn(_.value))),{modes:P}=e,j=g(Mn(_.value)||P[0]||"rgb");function R(){const{modes:t}=e,{value:n}=j,o=t.findIndex((e=>e===n));j.value=~o?t[(o+1)%t.length]:"rgb"}let D,L,A,F,I,H,K,G;const te=x((()=>{const{value:e}=_;if(!e)return null;switch(T.value){case"hsv":return Y(e);case"hsl":return[D,L,A,G]=X(e),[...vn(D,L,A),G];case"rgb":case"hex":return[I,H,K,G]=N(e),[...fn(I,H,K),G]}})),le=x((()=>{const{value:e}=_;if(!e)return null;switch(T.value){case"rgb":case"hex":return N(e);case"hsv":return[D,L,F,G]=Y(e),[...gn(D,L,F),G];case"hsl":return[D,L,A,G]=X(e),[...wn(D,L,A),G]}})),se=x((()=>{const{value:e}=_;if(!e)return null;switch(T.value){case"hsl":return X(e);case"hsv":return[D,L,F,G]=Y(e),[...mn(D,L,F),G];case"rgb":case"hex":return[I,H,K,G]=N(e),[...bn(I,H,K),G]}})),ue=x((()=>{switch(j.value){case"rgb":case"hex":return le.value;case"hsv":return te.value;case"hsl":return se.value}})),de=g(0),he=g(1),pe=g([0,0]);function ve(t,n){const{value:o}=te,r=de.value,a=o?o[3]:1;pe.value=[t,n];const{showAlpha:l}=e;switch(j.value){case"hsv":fe((l?W:ee)([r,t,n,a]),"cursor");break;case"hsl":fe((l?V:Q)([...mn(r,t,n),a]),"cursor");break;case"rgb":fe((l?q:J)([...gn(r,t,n),a]),"cursor");break;case"hex":fe((l?E:Z)([...gn(r,t,n),a]),"cursor")}}function me(t){de.value=t;const{value:n}=te;if(!n)return;const[,o,r,a]=n,{showAlpha:l}=e;switch(j.value){case"hsv":fe((l?W:ee)([t,o,r,a]),"cursor");break;case"rgb":fe((l?q:J)([...gn(t,o,r),a]),"cursor");break;case"hex":fe((l?E:Z)([...gn(t,o,r),a]),"cursor");break;case"hsl":fe((l?V:Q)([...mn(t,o,r),a]),"cursor")}}function ge(e){switch(j.value){case"hsv":[D,L,F]=te.value,fe(W([D,L,F,e]),"cursor");break;case"rgb":[I,H,K]=le.value,fe(q([I,H,K,e]),"cursor");break;case"hex":[I,H,K]=le.value,fe(E([I,H,K,e]),"cursor");break;case"hsl":[D,L,A]=se.value,fe(V([D,L,A,e]),"cursor")}he.value=e}function fe(t,n){o="cursor"===n?t:null;const{nTriggerFormChange:a,nTriggerFormInput:l}=r,{onUpdateValue:s,"onUpdate:value":i}=e;s&&ie(s,t),i&&ie(i,t),a(),l(),S.value=t}function be(e){fe(e,"input"),U(we)}function we(t=!0){const{value:n}=_;if(n){const{nTriggerFormChange:o,nTriggerFormInput:a}=r,{onComplete:l}=e;l&&l(n);const{value:s}=z,{value:i}=B;t&&(s.splice(i+1,s.length,n),B.value=i+1),o(),a()}}function xe(){const{value:e}=B;e-1<0||(fe(z.value[e-1],"input"),we(!1),B.value=e-1)}function ye(){const{value:e}=B;e<0||e+1>=z.value.length||(fe(z.value[e+1],"input"),we(!1),B.value=e+1)}function ke(){fe(null,"input");const{onClear:t}=e;t&&t(),y(!1)}function Ce(){const{value:t}=_,{onConfirm:n}=e;n&&n(t),y(!1)}const Se=x((()=>B.value>=1)),_e=x((()=>{const{value:e}=z;return e.length>1&&B.value{e||(z.value=[_.value],B.value=0)})),f((()=>{if(o&&o===_.value);else{const{value:e}=te;e&&(de.value=e[0],he.value=e[3],pe.value=[e[1],e[2]])}o=null}));const ze=x((()=>{const{value:e}=a,{common:{cubicBezierEaseInOut:t},self:{textColor:n,color:o,panelFontSize:r,boxShadow:l,border:s,borderRadius:i,dividerColor:c,[re("height",e)]:u,[re("fontSize",e)]:d}}=h.value;return{"--n-bezier":t,"--n-text-color":n,"--n-color":o,"--n-panel-font-size":r,"--n-font-size":d,"--n-box-shadow":l,"--n-border":s,"--n-border-radius":i,"--n-height":u,"--n-divider-color":c}})),$e=d?$("color-picker",x((()=>a.value[0])),ze,e):void 0;return{mergedClsPrefix:i,namespace:u,selfRef:n,hsla:se,rgba:le,mergedShow:v,mergedDisabled:l,isMounted:M(),adjustedTo:qt(e),mergedValue:_,handleTriggerClick(){y(!0)},handleClickOutside(e){var t;(null===(t=n.value)||void 0===t?void 0:t.contains(ae(e)))||y(!1)},renderPanel:function(){var n;const{value:o}=le,{value:r}=de,{internalActions:a,modes:l,actions:u}=e,{value:p}=h,{value:v}=i;return c("div",{class:[`${v}-color-picker-panel`,null==$e?void 0:$e.themeClass.value],onDragstart:e=>{e.preventDefault()},style:d?void 0:ze.value},c("div",{class:`${v}-color-picker-control`},c(Fn,{clsPrefix:v,rgba:o,displayedHue:r,displayedSv:pe.value,onUpdateSV:ve,onComplete:we}),c("div",{class:`${v}-color-picker-preview`},c("div",{class:`${v}-color-picker-preview__sliders`},c(Un,{clsPrefix:v,hue:r,onUpdateHue:me,onComplete:we}),e.showAlpha?c(Ln,{clsPrefix:v,rgba:o,alpha:he.value,onUpdateAlpha:ge,onComplete:we}):null),e.showPreview?c(Xn,{clsPrefix:v,mode:j.value,color:le.value&&Z(le.value),onUpdateColor:e=>{fe(e,"input")}}):null),c(Nn,{clsPrefix:v,showAlpha:e.showAlpha,mode:j.value,modes:l,onUpdateMode:R,value:_.value,valueArr:ue.value,onUpdateValue:be}),(null===(n=e.swatches)||void 0===n?void 0:n.length)&&c(qn,{clsPrefix:v,mode:j.value,swatches:e.swatches,onUpdateColor:e=>{fe(e,"input")}})),(null==u?void 0:u.length)?c("div",{class:`${v}-color-picker-action`},u.includes("confirm")&&c(ce,{size:"small",onClick:Ce,theme:p.peers.Button,themeOverrides:p.peerOverrides.Button},{default:()=>s.value.confirm}),u.includes("clear")&&c(ce,{size:"small",onClick:ke,disabled:!_.value,theme:p.peers.Button,themeOverrides:p.peerOverrides.Button},{default:()=>s.value.clear})):null,t.action?c("div",{class:`${v}-color-picker-action`},{default:t.action}):a?c("div",{class:`${v}-color-picker-action`},a.includes("undo")&&c(ce,{size:"small",onClick:xe,disabled:!Se.value,theme:p.peers.Button,themeOverrides:p.peerOverrides.Button},{default:()=>s.value.undo}),a.includes("redo")&&c(ce,{size:"small",onClick:ye,disabled:!_e.value,theme:p.peers.Button,themeOverrides:p.peerOverrides.Button},{default:()=>s.value.redo})):null)},cssVars:d?void 0:ze,themeClass:null==$e?void 0:$e.themeClass,onRender:null==$e?void 0:$e.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return null==n||n(),c("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},c(Xt,null,{default:()=>[c(Yt,null,{default:()=>c(Vn,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),c(Kt,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===qt.tdkey,to:this.adjustedTo},{default:()=>c(T,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?le(this.renderPanel(),[[se,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),Gn=v({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=g(!!e.show),n=g(null),o=H(ue);let r=0,a="",l=null;const s=g(!1),i=g(!1),c=x((()=>"top"===e.placement||"bottom"===e.placement)),{mergedClsPrefixRef:u,mergedRtlRef:d}=m(e),h=de("Drawer",d,u),p=k,{doUpdateHeight:v,doUpdateWidth:w}=o;function y(t){var o,a;if(i.value)if(c.value){let a=(null===(o=n.value)||void 0===o?void 0:o.offsetHeight)||0;const l=r-t.clientY;a+="bottom"===e.placement?l:-l,a=(t=>{const{maxHeight:n}=e;if(n&&t>n)return n;const{minHeight:o}=e;return o&&t{const{maxWidth:n}=e;if(n&&t>n)return n;const{minWidth:o}=e;return o&&t{e.show&&(t.value=!0)})),b((()=>e.show),(e=>{e||k()})),z((()=>{k()}));const C=x((()=>{const{show:t}=e,n=[[ge,t]];return e.showMask||n.push([se,e.onClickoutside,void 0,{capture:!0}]),n}));return he(x((()=>e.blockScroll&&t.value))),O(pe,n),O(ve,null),O(me,null),{bodyRef:n,rtlEnabled:h,mergedClsPrefix:o.mergedClsPrefixRef,isMounted:o.isMountedRef,mergedTheme:o.mergedThemeRef,displayed:t,transitionName:x((()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"}[e.placement]))),handleAfterLeave:function(){var n;t.value=!1,null===(n=e.onAfterLeave)||void 0===n||n.call(e)},bodyDirectives:C,handleMousedownResizeTrigger:e=>{i.value=!0,r=c.value?e.clientY:e.clientX,a=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",y),document.body.addEventListener("mouseleave",p),document.body.addEventListener("mouseup",k)},handleMouseenterResizeTrigger:()=>{null!==l&&(window.clearTimeout(l),l=null),i.value?s.value=!0:l=window.setTimeout((()=>{s.value=!0}),300)},handleMouseleaveResizeTrigger:()=>{null!==l&&(window.clearTimeout(l),l=null),s.value=!1},isDragging:i,isHoverOnResizeTrigger:s}},render(){const{$slots:e,mergedClsPrefix:t}=this;return"show"===this.displayDirective||this.displayed||this.show?le(c("div",{role:"none"},c(fe,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>c(T,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>le(c("div",P(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?c("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?c("div",{class:[`${t}-drawer-content-wrapper`,this.contentClass],style:this.contentStyle,role:"none"},e):c(be,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[ge,"if"===this.displayDirective||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:Zn,cubicBezierEaseOut:Qn}=we;const{cubicBezierEaseIn:Jn,cubicBezierEaseOut:eo}=we;const{cubicBezierEaseIn:to,cubicBezierEaseOut:no}=we;const{cubicBezierEaseIn:oo,cubicBezierEaseOut:ro}=we;const ao=p([u("drawer","\n word-break: break-word;\n line-height: var(--n-line-height);\n position: absolute;\n pointer-events: all;\n box-shadow: var(--n-box-shadow);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n background-color: var(--n-color);\n color: var(--n-text-color);\n box-sizing: border-box;\n ",[function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[p(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Zn}`}),p(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Qn}`}),p(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),p(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),p(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),p(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}(),function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[p(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Jn}`}),p(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${eo}`}),p(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),p(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),p(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),p(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}(),function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[p(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${to}`}),p(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${no}`}),p(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),p(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),p(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),p(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}(),function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[p(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${oo}`}),p(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${ro}`}),p(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),p(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),p(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),p(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}(),h("unselectable","\n user-select: none; \n -webkit-user-select: none;\n "),h("native-scrollbar",[u("drawer-content-wrapper","\n overflow: auto;\n height: 100%;\n ")]),D("resize-trigger","\n position: absolute;\n background-color: #0000;\n transition: background-color .3s var(--n-bezier);\n ",[h("hover","\n background-color: var(--n-resize-trigger-color-hover);\n ")]),u("drawer-content-wrapper","\n box-sizing: border-box;\n "),u("drawer-content","\n height: 100%;\n display: flex;\n flex-direction: column;\n ",[h("native-scrollbar",[u("drawer-body-content-wrapper","\n height: 100%;\n overflow: auto;\n ")]),u("drawer-body","\n flex: 1 0 0;\n overflow: hidden;\n "),u("drawer-body-content-wrapper","\n box-sizing: border-box;\n padding: var(--n-body-padding);\n "),u("drawer-header","\n font-weight: var(--n-title-font-weight);\n line-height: 1;\n font-size: var(--n-title-font-size);\n color: var(--n-title-text-color);\n padding: var(--n-header-padding);\n transition: border .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-divider-color);\n border-bottom: var(--n-header-border-bottom);\n display: flex;\n justify-content: space-between;\n align-items: center;\n ",[D("main","\n flex: 1;\n "),D("close","\n margin-left: 6px;\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ")]),u("drawer-footer","\n display: flex;\n justify-content: flex-end;\n border-top: var(--n-footer-border-top);\n transition: border .3s var(--n-bezier);\n padding: var(--n-footer-padding);\n ")]),h("right-placement","\n top: 0;\n bottom: 0;\n right: 0;\n border-top-left-radius: var(--n-border-radius);\n border-bottom-left-radius: var(--n-border-radius);\n ",[D("resize-trigger","\n width: 3px;\n height: 100%;\n top: 0;\n left: 0;\n transform: translateX(-1.5px);\n cursor: ew-resize;\n ")]),h("left-placement","\n top: 0;\n bottom: 0;\n left: 0;\n border-top-right-radius: var(--n-border-radius);\n border-bottom-right-radius: var(--n-border-radius);\n ",[D("resize-trigger","\n width: 3px;\n height: 100%;\n top: 0;\n right: 0;\n transform: translateX(1.5px);\n cursor: ew-resize;\n ")]),h("top-placement","\n top: 0;\n left: 0;\n right: 0;\n border-bottom-left-radius: var(--n-border-radius);\n border-bottom-right-radius: var(--n-border-radius);\n ",[D("resize-trigger","\n width: 100%;\n height: 3px;\n bottom: 0;\n left: 0;\n transform: translateY(1.5px);\n cursor: ns-resize;\n ")]),h("bottom-placement","\n left: 0;\n bottom: 0;\n right: 0;\n border-top-left-radius: var(--n-border-radius);\n border-top-right-radius: var(--n-border-radius);\n ",[D("resize-trigger","\n width: 100%;\n height: 3px;\n top: 0;\n left: 0;\n transform: translateY(-1.5px);\n cursor: ns-resize;\n ")])]),p("body",[p(">",[u("drawer-container","\n position: fixed;\n ")])]),u("drawer-container","\n position: relative;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n ",[p("> *","\n pointer-events: all;\n ")]),u("drawer-mask","\n background-color: rgba(0, 0, 0, .3);\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ",[h("invisible","\n background-color: rgba(0, 0, 0, 0)\n "),xe({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),lo=v({name:"Drawer",inheritAttrs:!1,props:Object.assign(Object.assign({},C.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:o}=m(e),r=M(),a=C("Drawer","-drawer",ao,ye,e,t),l=g(e.defaultWidth),s=g(e.defaultHeight),i=Lt(w(e,"width"),l),c=Lt(w(e,"height"),s),u=x((()=>{const{placement:t}=e;return"top"===t||"bottom"===t?"":y(i.value)})),d=x((()=>{const{placement:t}=e;return"left"===t||"right"===t?"":y(c.value)})),h=x((()=>[{width:u.value,height:d.value},e.drawerStyle||""]));function p(t){const{onMaskClick:n,maskClosable:o}=e;o&&f(!1),n&&n(t)}const v=ke();function f(t){const{onHide:n,onUpdateShow:o,"onUpdate:show":r}=e;o&&ie(o,t),r&&ie(r,t),n&&!t&&ie(n,t)}O(ue,{isMountedRef:r,mergedThemeRef:a,mergedClsPrefixRef:t,doUpdateShow:f,doUpdateHeight:t=>{const{onUpdateHeight:n,"onUpdate:width":o}=e;n&&ie(n,t),o&&ie(o,t),s.value=t},doUpdateWidth:t=>{const{onUpdateWidth:n,"onUpdate:width":o}=e;n&&ie(n,t),o&&ie(o,t),l.value=t}});const b=x((()=>{const{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:n},self:{color:o,textColor:r,boxShadow:l,lineHeight:s,headerPadding:i,footerPadding:c,borderRadius:u,bodyPadding:d,titleFontSize:h,titleTextColor:p,titleFontWeight:v,headerBorderBottom:m,footerBorderTop:g,closeIconColor:f,closeIconColorHover:b,closeIconColorPressed:w,closeColorHover:x,closeColorPressed:y,closeIconSize:k,closeSize:C,closeBorderRadius:S,resizableTriggerColorHover:_}}=a.value;return{"--n-line-height":s,"--n-color":o,"--n-border-radius":u,"--n-text-color":r,"--n-box-shadow":l,"--n-bezier":e,"--n-bezier-out":n,"--n-bezier-in":t,"--n-header-padding":i,"--n-body-padding":d,"--n-footer-padding":c,"--n-title-text-color":p,"--n-title-font-size":h,"--n-title-font-weight":v,"--n-header-border-bottom":m,"--n-footer-border-top":g,"--n-close-icon-color":f,"--n-close-icon-color-hover":b,"--n-close-icon-color-pressed":w,"--n-close-size":C,"--n-close-color-hover":x,"--n-close-color-pressed":y,"--n-close-icon-size":k,"--n-close-border-radius":S,"--n-resize-trigger-color-hover":_}})),k=o?$("drawer",void 0,b,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:h,handleOutsideClick:function(e){p(e)},handleMaskClick:p,handleEsc:function(t){var n;null===(n=e.onEsc)||void 0===n||n.call(e),e.show&&e.closeOnEsc&&Se(t)&&(v.value||f(!1))},mergedTheme:a,cssVars:o?void 0:b,themeClass:null==k?void 0:k.themeClass,onRender:null==k?void 0:k.onRender,isMounted:r}},render(){const{mergedClsPrefix:e}=this;return c(B,{to:this.to,show:this.show},{default:()=>{var t;return null===(t=this.onRender)||void 0===t||t.call(this),le(c("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?c(T,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?c("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,"transparent"===this.showMask&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,c(Gn,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),this.$slots)),[[Ce,{zIndex:this.zIndex,enabled:this.show}]])}})}}),so=v({name:"DrawerContent",props:{title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},setup(){const e=H(ue,null);e||_e("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;return{handleCloseClick:function(){t(!1)},mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:o,bodyClass:r,bodyStyle:a,bodyContentClass:l,bodyContentStyle:s,headerClass:i,headerStyle:u,footerClass:d,footerStyle:h,scrollbarProps:p,closable:v,$slots:m}=this;return c("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},m.header||e||v?c("div",{class:[`${t}-drawer-header`,i],style:u,role:"none"},c("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},void 0!==m.header?m.header():e),v&&c(ze,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?c("div",{class:[`${t}-drawer-body`,r],style:a,role:"none"},c("div",{class:[`${t}-drawer-body-content-wrapper`,l],style:s,role:"none"},m)):c(be,Object.assign({themeOverrides:o.peerOverrides.Scrollbar,theme:o.peers.Scrollbar},p,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,l],contentStyle:s}),m),m.footer?c("div",{class:[`${t}-drawer-footer`,d],style:h,role:"none"},m.footer()):null)}}),io=v({name:"Scrollbar",props:Object.assign(Object.assign({},C.props),{trigger:String,xScrollable:Boolean,onScroll:Function,contentClass:String,contentStyle:[Object,String],size:Number,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),setup(){const e=g(null),t={scrollTo:(...t)=>{var n;null===(n=e.value)||void 0===n||n.scrollTo(t[0],t[1])},scrollBy:(...t)=>{var n;null===(n=e.value)||void 0===n||n.scrollBy(t[0],t[1])}};return Object.assign(Object.assign({},t),{scrollbarInstRef:e})},render(){return c(be,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),co=u("text","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n",[h("strong","\n font-weight: var(--n-font-weight-strong);\n "),h("italic",{fontStyle:"italic"}),h("underline",{textDecoration:"underline"}),h("code","\n line-height: 1.4;\n display: inline-block;\n font-family: var(--n-font-famliy-mono);\n transition: \n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n box-sizing: border-box;\n padding: .05em .35em 0 .35em;\n border-radius: var(--n-code-border-radius);\n font-size: .9em;\n color: var(--n-code-text-color);\n background-color: var(--n-code-color);\n border: var(--n-code-border);\n ")]),uo=v({name:"Text",props:Object.assign(Object.assign({},C.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=m(e),o=C("Typography","-text",co,$e,e,t),r=x((()=>{const{depth:t,type:n}=e,r="default"===n?void 0===t?"textColor":`textColor${t}Depth`:re("textColor",n),{common:{fontWeightStrong:a,fontFamilyMono:l,cubicBezierEaseInOut:s},self:{codeTextColor:i,codeBorderRadius:c,codeColor:u,codeBorder:d,[r]:h}}=o.value;return{"--n-bezier":s,"--n-text-color":h,"--n-font-weight-strong":a,"--n-font-famliy-mono":l,"--n-code-border-radius":c,"--n-code-text-color":i,"--n-code-color":u,"--n-code-border":d}})),a=n?$("text",x((()=>`${e.type[0]}${e.depth||""}`)),r,e):void 0;return{mergedClsPrefix:t,compitableTag:sn(e,["as","tag"]),cssVars:n?void 0:r,themeClass:null==a?void 0:a.themeClass,onRender:null==a?void 0:a.onRender}},render(){var e,t,n;const{mergedClsPrefix:o}=this;null===(e=this.onRender)||void 0===e||e.call(this);const r=[`${o}-text`,this.themeClass,{[`${o}-text--code`]:this.code,[`${o}-text--delete`]:this.delete,[`${o}-text--strong`]:this.strong,[`${o}-text--italic`]:this.italic,[`${o}-text--underline`]:this.underline}],a=null===(n=(t=this.$slots).default)||void 0===n?void 0:n.call(t);return this.code?c("code",{class:r,style:this.cssVars},this.delete?c("del",null,a):a):this.delete?c("del",{class:r,style:this.cssVars},a):c(this.compitableTag||"span",{class:r,style:this.cssVars},a)}});var ho=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.UNIX="UNIX",e.Linux="Linux",e.Unknown="Unknown",e))(ho||{});function po(){return function(){const{userAgent:e}=navigator;return e.includes("Win")?ho.Windows:e.includes("Mac")?ho.MacOS:e.includes("X11")?ho.UNIX:e.includes("Linux")?ho.Linux:ho.Unknown}()===ho.Windows}const vo={idKey:"id",childrenKey:"children",parentKey:"parentId"},mo=e=>s(s({},vo),e);function go(e,t,n={}){return e.map((e=>fo(e,t,mo(n))))}function fo(e,t,n={}){const{childrenKey:o}=mo(n),r=Me(e[o])&&e[o].length>0,a=t(e)||{};return r?i(s({},a),{[o]:e[o].map((e=>fo(e,t,n)))}):s({},a)}const bo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},wo=[Pe("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M416 128L192 384l-96-96"},null,-1)],xo=v({name:"Checkmark",render:function(e,t){return Be(),Te("svg",bo,wo)}}),yo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ko=[Pe("path",{d:"M256 64C150 64 64 150 64 256s86 192 192 192s192-86 192-192S362 64 256 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),Pe("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M296 352l-96-96l96-96"},null,-1)],Co=v({name:"ChevronBackCircleOutline",render:function(e,t){return Be(),Te("svg",yo,ko)}}),So={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},_o=[Pe("path",{d:"M289.94 256l95-95A24 24 0 0 0 351 127l-95 95l-95-95a24 24 0 0 0-34 34l95 95l-95 95a24 24 0 1 0 34 34l95-95l95 95a24 24 0 0 0 34-34z",fill:"currentColor"},null,-1)],zo=v({name:"Close",render:function(e,t){return Be(),Te("svg",So,_o)}}),$o={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Mo=[Pe("path",{d:"M160 136v104h153.37l-52.68-52.69a16 16 0 0 1 22.62-22.62l80 80a16 16 0 0 1 0 22.62l-80 80a16 16 0 0 1-22.62-22.62L313.37 272H160v104a56.06 56.06 0 0 0 56 56h208a56.06 56.06 0 0 0 56-56V136a56.06 56.06 0 0 0-56-56H216a56.06 56.06 0 0 0-56 56z",fill:"currentColor"},null,-1),Pe("path",{d:"M48 240a16 16 0 0 0 0 32h112v-32z",fill:"currentColor"},null,-1)],Bo=v({name:"Enter",render:function(e,t){return Be(),Te("svg",$o,Mo)}}),To={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Po=[Pe("path",{d:"M80 212v236a16 16 0 0 0 16 16h96V328a24 24 0 0 1 24-24h80a24 24 0 0 1 24 24v136h96a16 16 0 0 0 16-16V212",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Pe("path",{d:"M480 256L266.89 52c-5-5.28-16.69-5.34-21.78 0L32 256",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Pe("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M400 179V64h-48v69"},null,-1)],jo=v({name:"HomeOutline",render:function(e,t){return Be(),Te("svg",To,Po)}}),Uo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ro=[Pe("path",{d:"M478.33 433.6l-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362L368 281.65L401.17 362z",fill:"currentColor"},null,-1),Pe("path",{d:"M267.84 342.92a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73c39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36c-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93c.92 1.19 1.83 2.35 2.74 3.51c-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59c22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z",fill:"currentColor"},null,-1)],Do=v({name:"Language",render:function(e,t){return Be(),Te("svg",Uo,Ro)}}),Lo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Oo=[Pe("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 160h352"},null,-1),Pe("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 256h352"},null,-1),Pe("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 352h352"},null,-1)],Ao=v({name:"MenuOutline",render:function(e,t){return Be(),Te("svg",Lo,Oo)}}),Fo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Io=[Pe("path",{d:"M264 480A232 232 0 0 1 32 248c0-94 54-178.28 137.61-214.67a16 16 0 0 1 21.06 21.06C181.07 76.43 176 104.66 176 136c0 110.28 89.72 200 200 200c31.34 0 59.57-5.07 81.61-14.67a16 16 0 0 1 21.06 21.06C442.28 426 358 480 264 480z",fill:"currentColor"},null,-1)],Ho=v({name:"Moon",render:function(e,t){return Be(),Te("svg",Fo,Io)}}),Eo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},No=[Pe("path",{d:"M456.69 421.39L362.6 327.3a173.81 173.81 0 0 0 34.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 0 0 327.3 362.6l94.09 94.09a25 25 0 0 0 35.3-35.3zM97.92 222.72a124.8 124.8 0 1 1 124.8 124.8a124.95 124.95 0 0 1-124.8-124.8z",fill:"currentColor"},null,-1)],Vo=v({name:"Search",render:function(e,t){return Be(),Te("svg",Eo,No)}}),Wo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},qo=[Pe("circle",{cx:"256",cy:"256",r:"48",fill:"currentColor"},null,-1),Pe("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)],Xo=v({name:"Settings",render:function(e,t){return Be(),Te("svg",Wo,qo)}}),Yo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ko=[je('',9)],Go=v({name:"Sunny",render:function(e,t){return Be(),Te("svg",Yo,Ko)}}),Zo={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Qo=[Pe("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[Pe("path",{d:"M3 9l4-4l4 4M7 5v14"}),Pe("path",{d:"M21 15l-4 4l-4-4m4 4V5"})],-1)],Jo=v({name:"ArrowsSort",render:function(e,t){return Be(),Te("svg",Zo,Qo)}});function er(){const e=Ue(),t=x((()=>e.getHeaderSetting.shouldShow)),n=x((()=>e.getHeaderSetting.shouldShowFullScreen)),o=x((()=>e.getHeaderSetting.shouldShowSearch)),r=x((()=>e.getHeaderSetting.shouldShowNotice)),a=x((()=>e.getHeaderSetting.shouldShowSettingDrawer)),l=t=>{e.setHeaderSetting({shouldShowSettingDrawer:t})};return{getHeaderSetting:function(){return e.getHeaderSetting},setHeaderSetting:function(t){e.setHeaderSetting(t)},getShouldShowHeader:t,getShouldShowFullScreen:n,getShouldShowSearch:o,getShouldShowNotice:r,getShouldShowSettingDrawer:a,setShouldShowSettingDrawer:l,toggleShouldShowSettingDrawer:()=>{l(!a.value)}}}function tr(){const e=Ue(),t=x((()=>e.getMenuSetting.collapsed));function n(t){e.setProjectSetting({menuSetting:t})}return{getMenuSetting:function(){return e.getMenuSetting},setMenuSetting:n,getCollapsed:t,toggleCollapsed:function(){n({collapsed:!Re(t)})}}}const nr=v({__name:"PageWrapper",props:{useScrollbar:{type:Boolean,default:!0}},setup(e){const{getShouldUseOpenBackTop:t}=De();return(e,n)=>{const o=io;return Be(),Le(o,null,{default:Oe((()=>[Ae(e.$slots,"default"),Re(t)?(Be(),Le(Re(Cn),{key:0,bottom:160,right:0})):Fe("",!0),n[0]||(n[0]=Pe("div",{class:"m-5"},null,-1))])),_:3})}}}),or={class:"sr-only"},rr=Ve(v({__name:"ActionIcon",props:{tooltipText:{default:void 0},transparent:{type:Boolean,default:!1},size:{default:16},component:{default:void 0}},setup:e=>(e,t)=>{const n=Ne,o=At;return Be(),Le(Ot,{"tooltip-text":e.tooltipText},{default:Oe((()=>[Ie(o,{tag:"button",type:"button",class:Ee(["text-[var(--text-color-base)] w-8 h-8 text-base flex items-center justify-center rounded-lg p-2 hover:bg-[var(--hover-color)] border-0",{"bg-[var(--action-color)]":!e.transparent,"bg-transparent":e.transparent}])},{default:Oe((()=>[Pe("span",or,He(e.tooltipText),1),Ie(n,{size:e.size,component:e.component},null,8,["size","component"])])),_:1},8,["class"])])),_:1},8,["tooltip-text"])}})),ar=Ve(Ot),lr=v({__name:"CollapseButton",setup(e){const{t:t}=We(),{toggleCollapsed:n,getCollapsed:o}=tr();return(e,r)=>(Be(),Le(Re(rr),{"tooltip-text":Re(t)("layouts.header.toggleCollapsed"),component:Re(o)?Re(It):Re(Co),onClick:r[0]||(r[0]=e=>Re(n)())},null,8,["tooltip-text","component"]))}}),sr=v({__name:"FullScreenButton",setup(e){const{toggle:t}=qe(),{t:n}=We();return(e,o)=>(Be(),Le(Re(rr),{"tooltip-text":Re(n)("layouts.header.toggleFullScreen"),component:Re(Xe),onClick:Re(t)},null,8,["tooltip-text","component","onClick"]))}}),ir=v({__name:"LocaleSwitcher",setup(e){const{setProjectSetting:t}=De();function n(e){t({locale:e}),Ge(e)}return(e,t)=>{const o=Ht;return Be(),Le(o,{options:Re(Ke),trigger:"click",onSelect:n},{default:Oe((()=>[Ie(Re(rr),{"tooltip-text":Re(Ye)("layouts.header.switchLocale"),component:Re(Do)},null,8,["tooltip-text","component"])])),_:1},8,["options"])}}}),cr={class:"flex flex-row"},ur={class:"flex-1 flex items-center justify-center"},dr={class:"mb-1"},hr={class:"font-bold"},pr={class:""},vr=v({__name:"UserInfoButton",setup(e){const{t:t}=We(),n=Ze(),o=Qe(),r=w(o.getUserInfo),a=Et(),l=Vt();function s(){a.warning({title:t("layouts.logoutConfirmation.title"),content:t("layouts.logoutConfirmation.content"),positiveText:t("layouts.logoutConfirmation.positiveText"),negativeText:t("layouts.logoutConfirmation.negativeText"),onPositiveClick:()=>{o.logout(),l.success(t("layouts.logoutConfirmation.onPositiveClickMessage"))},onNegativeClick:()=>{l.info(t("layouts.logoutConfirmation.onNegativeClickMessage"))}})}return(e,o)=>{const a=Wt,l=At,i=ce,c=Gt;return Be(),Le(c,{trigger:"click","show-arrow":!1},{trigger:Oe((()=>[Ie(Re(ar),{"tooltip-text":Re(t)("layouts.userInfo.userInformation")},{default:Oe((()=>[Ie(l,{tag:"div",class:"btn-icon rounded-3xl p-1 pr-2 justify-between w-24 bg-[var(--action-color)] hover:bg-[var(--hover-color)]"},{default:Oe((()=>{var e;return[Pe("div",cr,[Pe("div",ur,[Ie(a,{round:"",src:null==(e=Re(r))?void 0:e.avatarUrl},null,8,["src"])]),o[1]||(o[1]=Pe("div",{class:"flex-1 flex items-center justify-center"},"user",-1))])]})),_:1})])),_:1},8,["tooltip-text"])])),header:Oe((()=>{var e,n;return[Pe("h4",dr,[Pe("span",hr,He(Re(t)("layouts.userInfo.greeting"))+", ",1),o[2]||(o[2]=Je()),Pe("span",pr,He(null==(e=Re(r))?void 0:e.fullName),1)]),Pe("p",null,He(Re(t)("layouts.userInfo.rolesList",{roles:null==(n=Re(r))?void 0:n.roles})),1)]})),footer:Oe((()=>[Ie(i,{block:"",quaternary:"",onClick:s},{default:Oe((()=>[Je(He(Re(t)("layouts.userInfo.logoutButton")),1)])),_:1})])),default:Oe((()=>[Ie(i,{block:"",quaternary:"",onClick:o[0]||(o[0]=e=>Re(n).push("/profile"))},{default:Oe((()=>[Je(He(Re(t)("routes.profile.profile")),1)])),_:1})])),_:1})}}}),mr=v({__name:"SettingButton",setup(e){const{toggleShouldShowSettingDrawer:t}=er(),{t:n}=We();return(e,o)=>(Be(),Le(Re(rr),{"tooltip-text":Re(n)("layouts.header.openSettingDrawer"),component:Re(Xo),onClick:Re(t)},null,8,["tooltip-text","component","onClick"]))}}),gr=v(i(s({},{name:"DarkMode"}),{__name:"index",setup(e){const{getDarkMode:t,setDarkMode:n,getFollowSystemTheme:o,setFollowSystemTheme:r}=et(),{t:a}=We();return(e,l)=>{const s=Zt,i=Ne,c=Qt,u=en;return Be(),Te(tt,null,[Ie(s,{"title-placement":"center"},{default:Oe((()=>[Je(He(Re(a)("layouts.header.themeMode")),1)])),_:1}),Ie(u,{vertical:"",size:"large"},{default:Oe((()=>[Ie(Re(br),{label:Re(a)("layouts.header.darkMode")},{default:Oe((()=>[Ie(c,{value:Re(t),"onUpdate:value":Re(n)},{"checked-icon":Oe((()=>[Ie(i,{component:Re(Ho)},null,8,["component"])])),"unchecked-icon":Oe((()=>[Ie(i,{component:Re(Go)},null,8,["component"])])),_:1},8,["value","onUpdate:value"])])),_:1},8,["label"]),Ie(Re(br),{label:Re(a)("layouts.header.followSystem")},{default:Oe((()=>[Ie(c,{value:Re(o),"onUpdate:value":Re(r)},{"checked-icon":Oe((()=>[Ie(i,{component:Re(xo)},null,8,["component"])])),_:1},8,["value","onUpdate:value"])])),_:1},8,["label"])])),_:1})],64)}}})),fr={class:"flex items-center justify-between"},br=v(i(s({},{name:"SettingMenu"}),{__name:"index",props:{label:{}},setup:e=>(e,t)=>(Be(),Te("div",fr,[Pe("span",null,He(e.label),1),Ae(e.$slots,"default")]))})),wr=v({__name:"index",setup(e){const{t:t}=We(),{getShouldEnableTransition:n,setShouldEnableTransition:o,getShouldOpenNProgress:r,setShouldOpenNProgress:a,getShouldOpenPageLoading:l,setShouldOpenPageLoading:s,getRouterBasicTransition:i,setRouterBasicTransition:c}=nt();function u(e){const t=[];for(const n in e)Number.isNaN(Number(n))&&t.push({label:n,value:e[n]});return t}return(e,d)=>{const h=Zt,p=Qt,v=tn,m=en;return Be(),Te(tt,null,[Ie(h,{"title-placement":"center"},{default:Oe((()=>[Je(He(Re(t)("layouts.header.transitionSetting.title")),1)])),_:1}),Ie(m,{vertical:"",size:"large"},{default:Oe((()=>[Ie(Re(br),{label:Re(t)("layouts.header.transitionSetting.enableTransition")},{default:Oe((()=>[Ie(p,{value:Re(n),"onUpdate:value":Re(o)},null,8,["value","onUpdate:value"])])),_:1},8,["label"]),Ie(Re(br),{label:Re(t)("layouts.header.transitionSetting.enableProgressBar")},{default:Oe((()=>[Ie(p,{disabled:!Re(n),value:Re(r),"onUpdate:value":Re(a)},null,8,["disabled","value","onUpdate:value"])])),_:1},8,["label"]),Ie(Re(br),{label:Re(t)("layouts.header.transitionSetting.enablePageLoadingTransition")},{default:Oe((()=>[Ie(p,{disabled:!Re(n),value:Re(l),"onUpdate:value":Re(s)},null,8,["disabled","value","onUpdate:value"])])),_:1},8,["label"]),Ie(Re(br),{label:Re(t)("layouts.header.transitionSetting.routeTransition")},{default:Oe((()=>[Ie(v,{class:"w-1/2",size:"small",disabled:!Re(n),value:Re(i),options:u(Re(ot)),"onUpdate:value":Re(c)},null,8,["disabled","value","options","onUpdate:value"])])),_:1},8,["label"])])),_:1})],64)}}}),xr=v(i(s({},{name:"ThemeBackup"}),{__name:"index",setup(e){const{t:t}=We(),n=Vt(),o=rt(),r=g(JSON.stringify(o.$state));function a(){o.resetDesignState(),n.success(t("layouts.header.themeConfig.message.resetConfigSuccess"))}function l(){n.success(t("layouts.header.themeConfig.message.copyConfigSuccess"))}function s(){localStorage.clear()}return(e,n)=>{const o=Zt,i=ce,c=en,u=at("copy");return Be(),Te(tt,null,[Ie(o,{"title-placement":"center"},{default:Oe((()=>[Je(He(Re(t)("layouts.header.themeConfig.title")),1)])),_:1}),Ie(c,{vertical:""},{default:Oe((()=>[le((Be(),Te("div",null,[Ie(i,{type:"primary",block:!0,onClick:l},{default:Oe((()=>[Je(He(Re(t)("layouts.header.themeConfig.copyConfigButton")),1)])),_:1})])),[[u,Re(r)]]),Ie(i,{type:"warning",block:!0,onClick:a},{default:Oe((()=>[Je(He(Re(t)("layouts.header.themeConfig.resetConfigButton")),1)])),_:1}),Ie(i,{type:"default",block:!0,onClick:s},{default:Oe((()=>[Je(He(Re(t)("layouts.header.themeConfig.clearStore")),1)])),_:1})])),_:1})],64)}}})),yr=v(i(s({},{name:"ColorCheckbox"}),{__name:"ColorCheckbox",props:{color:{},checked:{type:Boolean}},setup:e=>(e,t)=>{const n=Ne;return Be(),Te("div",{class:"flex justify-center items-center p-0 w-5 h-5 rounded shadow cursor-pointer hover:border",style:lt({backgroundColor:e.color})},[e.checked?(Be(),Le(n,{key:0,component:Re(xo),color:"white"},null,8,["component"])):Fe("",!0)],4)}})),kr=v({__name:"index",setup(e){const{getThemeColor:t,setThemeColor:n}=et(),{t:o}=We();return(e,r)=>{const a=Zt,l=on,s=nn,i=Kn,c=en;return Be(),Te(tt,null,[Ie(a,{"title-placement":"center"},{default:Oe((()=>[Je(He(Re(o)("layouts.header.systemTheme")),1)])),_:1}),Ie(s,{cols:8,"x-gap":8,"y-gap":12},{default:Oe((()=>[(Be(!0),Te(tt,null,st(Re(it),(e=>(Be(),Le(l,{key:e,class:"flex-x-center"},{default:Oe((()=>[Ie(Re(yr),{color:e,checked:e===Re(t),onClick:t=>Re(n)(e)},null,8,["color","checked","onClick"])])),_:2},1024)))),128))])),_:1}),Ie(c,{vertical:!0,class:"pt-12px"},{default:Oe((()=>[Ie(i,{value:Re(t),"show-alpha":!1,onUpdateValue:Re(n)},null,8,["value","onUpdateValue"])])),_:1})],64)}}}),Cr=v(i(s({},{name:"SetLayout"}),{__name:"index",setup(e){const{setProjectSetting:t,getShouldShowFooter:n,getShouldUseOpenBackTop:o}=De(),{t:r}=We(),a=(e,n)=>{t({[n]:e})};return(e,t)=>{const l=Zt,s=Qt,i=en;return Be(),Te(tt,null,[Ie(l,{"title-placement":"center"},{default:Oe((()=>[Je(He(Re(r)("layouts.header.layout")),1)])),_:1}),Ie(i,{vertical:"",size:"large"},{default:Oe((()=>[Ie(Re(br),{label:Re(r)("layouts.header.footer")},{default:Oe((()=>[Ie(s,{value:Re(n),"onUpdate:value":t[0]||(t[0]=e=>a(e,"shouldShowFooter"))},null,8,["value"])])),_:1},8,["label"]),Ie(Re(br),{label:Re(r)("layouts.header.backtop")},{default:Oe((()=>[Ie(s,{value:Re(o),"onUpdate:value":t[1]||(t[1]=e=>a(e,"shouldUseOpenBackTop"))},null,8,["value"])])),_:1},8,["label"])])),_:1})],64)}}})),Sr=v(i(s({},{name:"SettingDrawer"}),{__name:"index",setup(e){const{getShouldShowSettingDrawer:t,setShouldShowSettingDrawer:n}=er(),{t:o}=We();return(e,r)=>{const a=so,l=lo;return Be(),Le(l,{show:Re(t),"display-directive":"show",width:"25%",onMaskClick:r[0]||(r[0]=e=>Re(n)(!1))},{default:Oe((()=>[Ie(a,{title:Re(o)("layouts.header.projectSetting"),"native-scrollbar":!1},{default:Oe((()=>[Ie(Re(Cr)),Ie(Re(gr)),Ie(Re(kr)),Ie(Re(xr)),Ie(Re(wr))])),_:1},8,["title"])])),_:1},8,["show"])}}})),_r=v(i(s({},{name:"Setting"}),{__name:"index",setup:e=>(e,t)=>(Be(),Te(tt,null,[Ie(mr),Ie(Sr)],64))})),zr=g();function $r(){return{commandIcon:g(po()?"CTRL":"⌘"),trigger:e=>{zr.value=e},open:()=>{zr.value&&zr.value()}}}const Mr=cn(v({__name:"SearchAnyWhere",setup(e){const{commandIcon:t,open:n}=$r(),{t:o}=We();return(e,r)=>{const a=Ne,l=At;return Be(),Le(l,{class:"flex items-center rounded-2xl outline-none border-none rounded-lg h-full search-btn",onClick:Re(n)},{default:Oe((()=>[Ie(a,{component:Re(Vo),size:16},null,8,["component"]),Pe("span",null,He(Re(o)("searchDialog.searchPlaceholder")),1),Ie(Re(uo),{code:"",class:"search-command"},{default:Oe((()=>[Pe("span",{class:Ee({win:"CTRL"===Re(t)})},He(Re(t)),3),r[0]||(r[0]=Je(" K "))])),_:1})])),_:1},8,["onClick"])}}}),[["__scopeId","data-v-52ca7e2e"]]),Br=cn(v(i(s({},{name:"LayoutTabs"}),{__name:"index",setup(e){const t=Ze(),n=ct();const{currentRoute:o}=t,{addTab:r}=n,a=x((()=>n.getTabsList)),l=e=>{var t;return(null==(t=function(){const e=Re(o);return n.getTabsList.find((t=>t.fullPath===e.fullPath))}())?void 0:t.fullPath)===e.fullPath},{t:s,te:i}=We();return ut((e=>r(e))),(e,o)=>(Be(),Le(dt,{name:Re(ot).FADE,tag:"div",class:"flex layout-tags items-center gap-2"},{default:Oe((()=>[(Be(!0),Te(tt,null,st(Re(a),(e=>(Be(),Le(Re(un),{key:e.fullPath,round:"",bordered:!1,closable:!l(e),onClose:t=>(e=>{n.closeTab(e)})(e),onClick:n=>{return o=e.fullPath,void t.push({path:o});var o}},{default:Oe((()=>{return[Pe("span",{class:Ee(["router-name",{"current-tab":l(e)}])},He((t=e.title,i(t)?s(t):t)),3)];var t})),_:2},1032,["closable","onClose","onClick"])))),128))])),_:1},8,["name"]))}})),[["__scopeId","data-v-a64dffae"]]),Tr=cn(v({__name:"Breadcrumb",setup(e){const{t:t,te:n}=We(),o=Ze(),r=ht(),{currentRoute:a}=Ze(),l=g([]);function c(e){const{path:t}=e;t&&t!==r.path&&o.push({path:t})}return f((()=>{const e=a.value.matched[0].children.filter((e=>a.value.path.includes(e.path))).map((e=>e.path.includes("/")?e:i(s({},e),{path:e.redirect})));l.value=e})),(e,o)=>{const r=Ne,a=$n,s=zn;return Be(),Le(s,{class:"breadcrumb"},{default:Oe((()=>[Ie(a,{onClick:o[0]||(o[0]=e=>c({path:"/"}))},{default:Oe((()=>[Ie(r,{component:Re(jo),size:16},null,8,["component"])])),_:1}),Ie(dt,{name:"breadcrumbAnimation"},{default:Oe((()=>[(Be(!0),Te(tt,null,st(Re(l),(e=>(Be(),Le(a,{key:e.name,onClick:t=>c({path:e.path})},{default:Oe((()=>{return[Je(He((o=e.meta.title,n(o)?t(o):o)),1)];var o})),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})}}}),[["__scopeId","data-v-ace93b25"]]),Pr={class:"flex h-16 items-center justify-between"},jr={class:"flex"},Ur={class:"md:block px-4"},Rr={class:"flex-1 {const o=en;return Be(),Te("div",Pr,[Pe("div",jr,[Pe("div",Ur,[Ie(lr)]),Pe("div",Rr,[Ie(Tr)])]),Pe("div",Dr,[Ie(Br)]),Pe("div",Lr,[!Re(dn)||Re(dn)&&Re(t)?(Be(),Te("div",Or,[Ie(o,null,{default:Oe((()=>[Ie(Mr,{class:"[Ie(sr),Ie(ir),Ie(_r)])),_:1})])])),_:1})])):Fe("",!0),Pe("div",Fr,[Ie(vr)])])])}}}));function Hr({route:e},{enableTransition:t}){const{getRouterBasicTransition:n,getShouldEnableTransition:o}=nt();if(t&&pt(o))return e.meta.transitionName||pt(n)}const Er=v(i(s({},{name:"ContentLayout"}),{__name:"index",setup(e){const{getShouldEnableTransition:t}=nt();return(e,n)=>{const o=vt("RouterView");return Be(),Le(o,null,{default:Oe((({Component:e,route:n})=>[Ie(T,{appear:"",mode:"out-in",name:Re(Hr)({route:n},{enableTransition:Re(t)})},{default:Oe((()=>[(Be(),Le(mt(e),{key:n.path}))])),_:2},1032,["name"])])),_:1})}}})),Nr={class:"text-center text-sm text-gray-500"},Vr=v(i(s({},{name:"FooterLayout"}),{__name:"index",setup:e=>(e,t)=>(Be(),Te("p",Nr,"2023 ©Celeris Web Admin By Kirk Lin."))}));var Wr={exports:{}},qr=Wr.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return o.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return o.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return o.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return o.findChunks}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,a=e.caseSensitive,l=void 0!==a&&a,s=e.findChunks,i=void 0===s?o:s,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return r({chunksToHighlight:n({chunks:i({autoEscape:t,caseSensitive:l,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.starti&&e.push({highlight:!1,start:i,end:c}),l.index===a.lastIndex&&a.lastIndex++}return e}),[])};t.findChunks=o;var r=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,o=[],r=function(e,t,n){t-e>0&&o.push({start:e,end:t,highlight:n})};if(0===t.length)r(0,n,!1);else{var a=0;t.forEach((function(e){r(a,e.start,!1),r(e.start,e.end,!0),a=e.end})),r(a,n,!1)}return o};function a(e){return e}}]);function Xr(e,t){const n=qr.findAll({autoEscape:e.autoEscape,caseSensitive:e.caseSensitive,findChunks:e.findChunks,sanitize:e.sanitize,searchWords:e.searchWords,textToHighlight:e.textToHighlight}),o=function(e,t){let n=-1;const{textToHighlight:o,highlightClassName:r,highlightStyle:a=Yr,activeIndex:l,activeClassName:i,activeStyle:c=Yr}=e;return t.map(((e,t)=>{const u=o.slice(e.start,e.end);if(!e.highlight)return{chunk:e,text:u};n++;const d=n===+(l||-1);return{chunk:e,text:u,attrs:{class:`${r} ${d?i:""}`,key:t,style:d&&null!=c?s(s({},a),c):a,highlightIndex:n}}}))}(e,n),r=t.slots;return r.default?r.default&&r.default(o):c("span",s({},t.attrs),o.map((({chunk:t,text:n,attrs:o})=>{if(!t.highlight)return n;const r={};return e.onWordClick&&(r.onClick=()=>{var r;return null==(r=e.onWordClick)?void 0:r.call(e,{chunk:t,text:n,attrs:o})}),e.onWordHover&&(r.onMouseover=()=>{var r;return null==(r=e.onWordHover)?void 0:r.call(e,{chunk:t,text:n,attrs:o})}),c("mark",s(s({},o),r),[n])})))}const Yr={};Xr.props={activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,caseSensitive:{type:Boolean,default:!1},findChunks:Function,custom:{type:Boolean,default:!1},highlightClassName:String,highlightStyle:Object,onWordClick:Function,onWordHover:Function,sanitize:Function,searchWords:{type:Array,validator:e=>e.every((e=>"string"==typeof e)),required:!0},textToHighlight:{type:String,required:!0}};const Kr=Xr,Gr={class:"search-input flex items-center gap-5 px-5 h-12"},Zr=["placeholder"],Qr={class:"content-wrap"},Jr={class:"group-title"},ea=["id","onClick"],ta={class:"title grow"},na={class:"label"},oa={key:0,class:"group-empty"},ra={class:"flex items-center space-x-1"},aa={class:"opacity-70"},la={class:"flex items-center space-x-1"},sa={class:"opacity-70"},ia=cn(v({__name:"SearchDialog",setup(e){const{toggle:t}=qe(),n=Ze(),{t:o,te:r}=We(),a=g(!1),l=g(""),c=g(null),u=g(null);function d(e){return{iconName:Ao,iconImage:null,key:e.path,title:`${o("searchDialog.go")}${t=e.title,r(t)?o(t):t}`,label:o("searchDialog.shortcut"),action(){n.push({path:e.path})}};var t}const h=gt().getBackendMenuList,p=(e,t=[])=>{for(const n of e)t.push(d(n)),St(n.children)&&n.children.length&&p(n.children,t);return t},v={name:o("searchDialog.applications"),items:p(h)},m=ft([v,{name:o("searchDialog.actions"),items:[{iconName:Xe,iconImage:null,key:7,title:"Toggle fullscreen",label:o("searchDialog.action"),action(){t()}}]}]),f=x((()=>l.value.length>1?l.value.split(" ").filter((e=>e)):[])),b=x((()=>{if(0===f.value.length)return m.value;return m.value.map((e=>{const t=e.items.filter((e=>{const t=f.value.some((t=>e.title.toLowerCase().includes(t.toLowerCase()))),n=e.tags&&f.value.some((t=>{var n;return null==(n=e.tags)?void 0:n.toLowerCase().includes(t.toLowerCase())}));return t||n}));return t.length?i(s({},e),{items:t}):null})).filter(Boolean)})),w=x((()=>b.value.flatMap((e=>e.items))));function y(){l.value="",c.value=null}function k(e){return a.value||(a.value=!0,setTimeout(y,100)),e}function C(){a.value=!1,y()}function S(e){e(),C()}function z(e){const t=w.value.findIndex((e=>e.key===c.value)),n=w.value.length-1;null===c.value?c.value=w.value[0].key:c.value=0===t&&-1===e?w.value[n].key:t===n&&1===e?w.value[0].key:w.value[t+e].key,function(){var e;const t=document.getElementById((null==(e=c.value)?void 0:e.toString())||"");t&&u.value&&t.scrollIntoView({block:"nearest"})}()}return _((()=>{const e=bt(),t=po()?e["ctrl+k"]:e["cmd+k"],n=e.enter;$r().trigger(k),wt(t,(()=>{k()})),wt(n,(()=>{a.value&&function(){const e=w.value.find((e=>e.key===c.value));e&&S(e.action)}()}))})),(e,t)=>{const n=uo,r=Zt,s=Wt,i=At,d=io,h=_t,p=zt;return Be(),Le(p,{show:Re(a),"onUpdate:show":t[4]||(t[4]=e=>kt(a)?a.value=e:null),class:"search-dialog"},{default:Oe((()=>[Ie(h,{class:"w-[650px]","content-style":"padding: 0;",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{default:Oe((()=>[Pe("div",{class:"search-dialog-action-bar rounded-2xl",onKeydown:[t[2]||(t[2]=Ct((e=>{z(-1)}),["up"])),t[3]||(t[3]=Ct((e=>{z(1)}),["down"]))]},[Pe("div",Gr,[Ie(Re(xt),{component:Re(Vo),size:16},null,8,["component"]),le(Pe("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>kt(l)?l.value=e:null),placeholder:Re(o)("searchDialog.searchPlaceholder"),class:"grow bg-transparent outline-none border-none"},null,8,Zr),[[yt,Re(l)]]),Ie(n,{code:""},{default:Oe((()=>t[5]||(t[5]=[Je(" ESC ")]))),_:1}),Ie(Re(xt),{component:Re(zo),size:20,class:"cursor-pointer",onClick:t[1]||(t[1]=e=>C())},null,8,["component"])]),Ie(r),Ie(d,{ref_key:"scrollContent",ref:u,style:{height:"400px"}},{default:Oe((()=>[Pe("div",Qr,[(Be(!0),Te(tt,null,st(Re(b),(e=>(Be(),Te("div",{key:e.name,class:"group"},[Pe("div",Jr,He(e.name),1),Ie(i,{class:"group-list"},{default:Oe((()=>[(Be(!0),Te(tt,null,st(e.items,((e,t)=>(Be(),Te("div",{id:e.key.toString(),key:e.key+String(t),class:Ee(["item flex items-center my-2",{active:e.key===Re(c)}]),onClick:t=>S(e.action)},[Ie(i,{class:"icon"},{default:Oe((()=>[e.iconImage?(Be(),Le(s,{key:0,round:"",size:28,src:e.iconImage},null,8,["src"])):(Be(),Le(Re(xt),{key:1,component:e.iconName,size:18},null,8,["component"]))])),_:2},1024),Pe("div",ta,[Ie(Re(Kr),{"highlight-class-name":"highlight","search-words":Re(f),"auto-escape":!0,"text-to-highlight":e.title},null,8,["search-words","text-to-highlight"])]),Pe("div",na,He(e.label),1)],10,ea)))),128))])),_:2},1024)])))),128)),Re(b).length?Fe("",!0):(Be(),Te("div",oa,He(Re(o)("searchDialog.noResultsFound",{search:Re(l)})),1))])])),_:1},512),Ie(r),Ie(i,{class:"flex items-center justify-center space-x-4 py-2 text-xs"},{default:Oe((()=>[Pe("div",ra,[Ie(i,{class:"w-4 h-4 bg-[var(--code-color)] rounded flex-center"},{default:Oe((()=>[Ie(Re(xt),{component:Re(Bo),size:12},null,8,["component"])])),_:1}),Pe("span",aa,He(Re(o)("searchDialog.toSelectTooltip")),1)]),Pe("div",la,[Ie(i,{class:"w-4 h-4 bg-[var(--code-color)] rounded flex-center"},{default:Oe((()=>[Ie(Re(xt),{component:Re(Jo),size:12},null,8,["component"])])),_:1}),Pe("span",sa,He(Re(o)("searchDialog.toNavigateTooltip")),1)])])),_:1})],32)])),_:1})])),_:1},8,["show"])}}}),[["__scopeId","data-v-5783183c"]]),{isRolePermissionMode:ca}=$t();function ua(){const e=function(){const e=gt(),t=e=>{var n;const o=!(null==(n=e.meta)?void 0:n.shouldHideInMenu)&&!e.shouldHideMenu;return o&&e.children&&(e.children=e.children.filter(t)),o};return e.getBackendMenuList.filter(t)}();if(pt(ca)){return function(e,t,n={}){const{childrenKey:o}=mo(n);return function e(n){return n.map((e=>s({},e))).filter((n=>(n[o]=n[o]&&e(n[o]),t(n)||n[o]&&n[o].length)))}(e)}(e,function(e){return t=>{const n=e.find((e=>{var n,o;return!!Bt(t.path)||((null==(n=e.meta)?void 0:n.shouldCarryQueryParams)?Tt(e.path).test(t.path):!!(null==(o=e.meta)?void 0:o.shouldIgnoreAuth)||(e.path===t.path||Tt(e.path).test(t.path)))}));return!!n&&(t.icon=t.icon||n.meta.icon,t.meta=n.meta,!0)}}(Mt.getRoutes()))}return e}const da=v(i(s({},{name:"MenuLayout"}),{__name:"Menu",props:{mode:{default:"vertical"},collapsed:{type:Boolean,default:!1}},setup(e){const t=e,{mode:n,collapsed:o}=Pt(t),{te:r,t:a}=We(),l=g(),s=gt(),{currentRoute:i}=Ze(),u=g([]),d=g(null);function h(e){return r(e)?a(e):e}function p(){const e=ua();u.value=go(e,(e=>function(e){const{path:t,children:n,title:o}=e;let r=Dt;return Ut.get(o)&&(r=Ut.get(o).icon),{label:()=>n?h(o):c(Rt,{to:{path:t}},{default:()=>h(o)}),key:t,icon:Nt(r),collapseTitle:h(o)}}(e))),U((()=>{var e;null==(e=d.value)||e.showOption()}))}ut((e=>{var t;if(e.name===jt)return;const n=null==(t=e.meta)?void 0:t.currentActiveMenu;!function(e){return t=this,n=null,o=function*(){const t=e||Re(i);l.value=t.path},new Promise(((e,r)=>{var a=e=>{try{s(o.next(e))}catch(t){r(t)}},l=e=>{try{s(o.throw(e))}catch(t){r(t)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(a,l);s((o=o.apply(t,n)).next())}));var t,n,o}(e),n&&(l.value=n)})),b([()=>s.getLastMenuBuildTime,()=>s.getBackendMenuList],(()=>{p()}),{immediate:!0});const v=x((()=>o.value?64:300));return(e,t)=>{const r=Jt,a=io;return Be(),Te("div",{class:Ee([Re(o)?"w-16":"w-60","transition-width h-full shrink-0 flex-col overflow-hidden duration-75"])},[Ie(a,{class:"max-h-[calc(100vh_-_4rem)]"},{default:Oe((()=>[Ie(r,{ref_key:"menuInstRef",ref:d,accordion:"",value:Re(l),"onUpdate:value":t[0]||(t[0]=e=>kt(l)?l.value=e:null),collapsed:Re(o),"collapsed-width":Re(v),mode:Re(n),options:Re(u)},null,8,["value","collapsed","collapsed-width","mode","options"])])),_:1})],2)}}})),ha=v(i(s({},{name:"SidebarFooter"}),{__name:"SidebarFooter",props:{collapsed:{type:Boolean,default:!1}},setup:e=>(e,t)=>(Be(),Te("div",{class:Ee(["sidebar-footer",{collapsed:e.collapsed}])},null,2))})),pa={class:"my-auto flex"},va=v(i(s({},{name:"SidebarHeader"}),{__name:"SidebarHeader",props:{collapsed:{type:Boolean}},setup(e){const t=e,{collapsed:n}=Pt(t);return(e,t)=>{const o=Ft;return Be(),Te("div",pa,[Ie(o,{"display-title":!Re(n)},null,8,["display-title"])])}}})),ma=v(i(s({},{name:"SidebarLayout"}),{__name:"index",setup(e){const t=tr().getCollapsed,n=g(null);return b((()=>hn.value),(e=>{tr().setMenuSetting({collapsed:!e})})),(e,o)=>{const r=io;return Be(),Te("aside",{id:"sidebar",class:Ee(["sidebar flex flex-col h-full",{collapsed:Re(t),opened:!Re(t)}])},[Pe("div",{ref_key:"sidebar",ref:n,class:"sidebar-wrap grow flex flex-col"},[Ie(va,{collapsed:Re(t)},null,8,["collapsed"]),Ie(r,null,{default:Oe((()=>[Ie(da,{collapsed:Re(t)},null,8,["collapsed"])])),_:1}),Ie(ha,{collapsed:Re(t)},null,8,["collapsed"])],512)],2)}}})),ga={class:"flex flex-col flex-1 h-full w-full overflow-auto"},fa={class:""},ba={class:"h-full w-full common-bg radis-box"},wa=cn(v(i(s({},{name:"Layout"}),{__name:"index",setup(e){const{getShouldShowFooter:t}=De();return(e,n)=>{const o=nr,r=At;return Be(),Le(r,{tag:"div",class:"flex flex-row flex-1 h-full w-full"},{default:Oe((()=>[Pe("div",null,[Ie(ma)]),Pe("div",ga,[Pe("header",fa,[Ie(Ir)]),Pe("div",ba,[Ie(o,{"use-scrollbar":""},{default:Oe((()=>[Ie(Er)])),_:1})]),Pe("footer",null,[Re(t)?(Be(),Le(Vr,{key:0})):Fe("",!0)])]),Ie(ia)])),_:1})}}})),[["__scopeId","data-v-4bad55be"]]);export{wa as default}; diff --git a/docs/assets/index-Bk2Jy4Jp.js b/docs/assets/index-Bk2Jy4Jp.js new file mode 100644 index 0000000..a3ca2f7 --- /dev/null +++ b/docs/assets/index-Bk2Jy4Jp.js @@ -0,0 +1 @@ +var l=Object.defineProperty,n=Object.defineProperties,e=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable,a=(n,e,u)=>e in n?l(n,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):n[e]=u;import{d as i,bm as c,o as r,c as p,w as h,g as d,h as o,aB as m,p as b,b as y,L as g}from"./index-BT0ZcDkn.js";import{_ as v}from"./plugin-vueexport-helper-BCo6x5W8.js";const x={class:"article font-song chinese chinese-truegray"},f={class:"article__nav no-chinese"},w={open:""},L={class:"chinese-list-latin"},z={id:"intro"},_={class:"anchor"},k={id:"usage"},S={class:"anchor"},q={id:"examples"},C={class:"anchor"},O={id:"example-ancient"},j={class:"anchor"},P={id:"example-verse"},T={class:"anchor"},E={id:"example-annotation"},I={class:"anchor"},R={id:"example-columns"},U={class:"anchor"},B={open:""},D={id:"example-vertical"},A={class:"anchor"},F={open:""},G={id:"guidelines"},H={class:"anchor"},J={id:"ref-01"},K={id:"appendix"},M={class:"anchor"},N={id:"tags"},Q={class:"anchor"},V=i((W=((l,n)=>{for(var e in n||(n={}))s.call(n,e)&&a(l,e,n[e]);if(u)for(var e of u(n))t.call(n,e)&&a(l,e,n[e]);return l})({},{name:"TypographyPage"}),n(W,e({__name:"index",setup:l=>(l,n)=>{const e=g,u=c("anchor");return r(),p(e,null,{default:h((()=>[d("article",x,[n[43]||(n[43]=d("h1",{class:"article__title"},"中文网页字体排列方案",-1)),n[44]||(n[44]=d("blockquote",null,[o(" 这是一个旨在优化"),d("u",null,"中文网站"),o("或应用程序字体显示的项目。通过使用这个项目,您可以获得一个默认的字体排列方案,以确保在没有指定字体的情况下,页面中选择的字体尽可能符合"),d("u",null,"中文阅读"),o("的要求。这个项目的字体排列方案是基于"),d("u",null,"中文阅读体验"),o("的考虑,它优先选择在中文环境中广泛使用和受欢迎的字体,并根据字体支持的字形、符号以及跨平台支持来确定字体的优先级顺序。 ")],-1)),d("nav",f,[d("details",w,[n[11]||(n[11]=d("summary",null,"目录",-1)),d("ol",null,[d("li",null,[m((r(),b("a",null,n[0]||(n[0]=[o("介绍")]))),[[u,"#intro"]])]),d("li",null,[m((r(),b("a",null,n[1]||(n[1]=[o("使用方法")]))),[[u,"#usage"]])]),d("li",null,[m((r(),b("a",null,n[2]||(n[2]=[o("效果演示")]))),[[u,"#examples"]]),d("ul",null,[d("li",null,[m((r(),b("a",null,n[3]||(n[3]=[o("古文")]))),[[u,"#example-ancient"]])]),d("li",null,[m((r(),b("a",null,n[4]||(n[4]=[o("诗词")]))),[[u,"#example-verse"]])]),d("li",null,[m((r(),b("a",null,n[5]||(n[5]=[o("行间注")]))),[[u,"#example-annotation"]])]),d("li",null,[m((r(),b("a",null,n[6]||(n[6]=[o("多栏排版")]))),[[u,"#example-columns"]])]),d("li",null,[m((r(),b("a",null,n[7]||(n[7]=[o("竖排排版")]))),[[u,"#example-vertical"]])])])]),d("li",null,[m((r(),b("a",null,n[8]||(n[8]=[o("设计原则")]))),[[u,"#guidelines"]])]),d("li",null,[m((r(),b("a",null,n[9]||(n[9]=[o("附录")]))),[[u,"#appendix"]]),d("ol",L,[d("li",null,[m((r(),b("a",null,n[10]||(n[10]=[o("标签示例表")]))),[[u,"#tags"]])])])])])])]),d("h2",z,[n[13]||(n[13]=o("介绍")),m((r(),b("a",_,n[12]||(n[12]=[o("#")]))),[[u,"#intro"]])]),n[45]||(n[45]=d("p",null,[d("ruby",{class:"chinese-ruby--inline"},"unocss-preset-chinese"),d("ruby",{class:"chinese-ruby--inline"},[o("-typography"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"排版"),d("rp",null,")")]),o("是专为中文网页内容设计的排版样式增强。它基于通行的中文排版规范,可为网站的读者带来更好的内容阅读体验。它的主要特性有: ")],-1)),n[46]||(n[46]=d("ul",null,[d("li",null,"贴合网格的排版;"),d("li",null,"全标签样式美化;"),d("li",null,"预置古文、诗词样式;"),d("li",null,"预置多种排版样式(行间注、多栏、竖排等);"),d("li",null,"多种预设字体族"),d("li",null,"简/繁体中文支持;"),d("li",null,"移动端支持;"),d("li",null,"……")],-1)),n[47]||(n[47]=d("p",null,"总之,用上就会变好看。",-1)),n[48]||(n[48]=d("hr",null,null,-1)),d("h2",k,[n[15]||(n[15]=o("使用方法")),m((r(),b("a",S,n[14]||(n[14]=[o("#")]))),[[u,"#usage"]])]),n[49]||(n[49]=d("p",null,[o("项目地址:"),d("a",{href:"https://github.com/kirklin/unocss-preset-chinese"},"https://github.com/kirklin/unocss-preset-chinese"),o(",使用方法如下:")],-1)),n[50]||(n[50]=d("ol",null,[d("li",null,[o(" 在您的 UnoCss 配置文件中引入 unocss-preset-chinese 并将其添加到 presets 部分: "),d("pre",null,[d("code",null,'import presetChinese, { chineseTypography } from "unocss-preset-chinese";\n export default defineConfig({\n presets: [\n presetUno(),\n chineseTypography(),\n presetChinese(),\n // ...custom presets\n ],\n });\n ')])]),d("li",null,[o(" 在要作用的容器元素上增加"),d("code",null,'class="chinese"'),o("的类名即可: "),d("pre",null,[d("code",null,[o('
\n

读者的角色与经典同样重要

\n

一切诸经,皆不过是敲门砖,是要敲开门,唤出其中的人来,此人即是你自己。

\n ……\n
')])])])],-1)),n[51]||(n[51]=d("small",null,[o("注:unocss-preset-chinese-typography是正文区域的样式增强,不是"),d("i",null,"CSS Reset"),o("的替代。因此"),d("b",null,"不建议"),o("将它作用在根标签(如"),d("code",null,""),o("或"),d("code",null,'
'),o(")上。")],-1)),n[52]||(n[52]=d("hr",null,null,-1)),d("h2",q,[n[17]||(n[17]=o("效果示例")),m((r(),b("a",C,n[16]||(n[16]=[o("#")]))),[[u,"#examples"]])]),n[53]||(n[53]=d("p",null,[o("本页面"),d("em",null,"全页"),o("应用了unocss-preset-chinese-typography样式,所见即所得。下面是内置的多种排版效果演示。")],-1)),d("h3",O,[n[19]||(n[19]=o("古文")),m((r(),b("a",j,n[18]||(n[18]=[o("#")]))),[[u,"#example-ancient"]])]),n[54]||(n[54]=d("details",null,[d("summary",null,"如何使用?"),d("p",null,[o("为容器元素"),d("code",null,'
'),o("添加名为"),d("code",null,"chinese--ancient"),o("的class即可实现古文版式:")]),d("pre",null,[d("code",null,'
...
')])],-1)),n[55]||(n[55]=d("details",{open:""},[d("summary",null,"示例"),d("section",{class:"demo"},[d("div",{class:"chinese chinese--ancient"},[d("h1",null,"出师表"),d("p",{class:"chinese-meta chinese-small"},[o("作者:"),d("abbr",{title:"字孔明"},"諸葛亮"),o("(181年~234年10月8日)")]),d("p",null," 先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。诚宜开张圣听,以光先帝遗德,恢弘志士之气,不宜妄自菲薄,引喻失义,以塞忠谏之路也。 "),d("p",null,"宫中府中,俱为一体;陟罚臧否,不宜异同。若有作奸犯科及为忠善者,宜付有司论其刑赏,以昭陛下平明之理;不宜偏私,使内外异法也。"),d("p",null,"侍中、侍郎郭攸之、费祎、董允等,此皆良实,志虑忠纯,是以先帝简拔以遗陛下:愚以为宫中之事,事无大小,悉以咨之,然后施行,必能裨补阙漏,有所广益。"),d("p",null,"将军向宠,性行淑均,晓畅军事,试用于昔日,先帝称之曰能,是以众议举宠为督。愚以为营中之事,悉以咨之,必能使行阵和睦,优劣得所。"),d("p",null," 亲贤臣,远小人,此先汉所以兴隆也;亲小人,远贤臣,此后汉所以倾颓也。先帝在时,每与臣论此事,未尝不叹息痛恨于桓、灵也。侍中、尚书、长史、参军,此悉贞良死节之臣,愿陛下亲之信之,则汉室之隆,可计日而待也。 "),d("p",null," 臣本布衣,躬耕于南阳,苟全性命于乱世,不求闻达于诸侯。先帝不以臣卑鄙,猥自枉屈,三顾臣于草庐之中,咨臣以当世之事,由是感激,遂许先帝以驱驰。后值倾覆,受任于败军之际,奉命于危难之间,尔来二十有一年矣。 "),d("p",null," 先帝知臣谨慎,故临崩寄臣以大事也。受命以来,夙夜忧叹,恐托付不效,以伤先帝之明;故五月渡泸,深入不毛。今南方已定,兵甲已足,当奖率三军,北定中原,庶竭驽钝,攘除奸凶,兴复汉室,还于旧都。此臣所以报先帝而忠陛下之职分也。至于斟酌损益,进尽忠言,则攸之、祎、允之任也。 "),d("p",null," 愿陛下托臣以讨贼兴复之效,不效,则治臣之罪,以告先帝之灵。若无兴德之言,则责攸之、祎、允等之慢,以彰其咎;陛下亦宜自谋,以咨诹善道,察纳雅言,深追先帝遗诏。臣不胜受恩感激。 "),d("p",null,"今当远离,临表涕零,不知所言。")])])],-1)),d("h3",P,[n[21]||(n[21]=o("诗词")),m((r(),b("a",T,n[20]||(n[20]=[o("#")]))),[[u,"#example-verse"]])]),n[56]||(n[56]=d("details",null,[d("summary",null,"如何使用?"),d("ul",null,[d("li",null,[o(" 诗词:为容器元素"),d("code",null,'
'),o("添加名为"),d("code",null,"chinese--poetry"),o("的class实现诗词版式: "),d("pre",null,[d("code",null,'
\n

九月九日忆山东兄弟[唐]王维

\n

\n 独在异乡为异客
\n 每逢佳节倍思亲
\n 遥知兄弟登高处
\n 遍插茱萸少一人\n

\n
')])]),d("li",null,[o(" 诗节:在古文版式"),d("code",null,'
'),o("中,为诗句添加名为"),d("code",null,"chinese-verse"),o("的class可以将其居中显示: "),d("pre",null,[d("code",null,'
\n

一剪梅·红藕香残玉簟秋[宋]李清照

\n

\n 红藕香残玉簟秋。轻解罗裳,独上兰舟
\n 云中谁寄锦书来,雁字回时,月满西楼
\n 花自飘零水自流。一种相思,两处闲愁
\n 此情无计可消除,才下眉头,却上心头\n

\n
')])]),d("li",null,[o(" 搭配使用标点悬挂"),d("code",null,''),o("、元信息"),d("code",null,''),o("来丰富展示效果。 ")])])],-1)),n[57]||(n[57]=d("details",{open:""},[d("summary",null,"示例"),d("section",{class:"demo"},[d("div",{class:"chinese chinese--ancient"},[d("h2",null,[o(" 一剪梅·红藕香残玉簟秋"),d("span",{class:"chinese-meta chinese-small"},[o("[宋]"),d("abbr",{title:"号易安居士"},"李清照")])]),d("p",{class:"chinese-verse chinese-x-large"},[o(" 红藕香残玉簟秋。轻解罗裳,独上兰舟"),d("span",{class:"chinese-hang"},"。"),d("br"),o(" 云中谁寄锦书来,雁字回时,月满西楼"),d("span",{class:"chinese-hang"},"。"),d("br"),o(" 花自飘零水自流。一种相思,两处闲愁"),d("span",{class:"chinese-hang"},"。"),d("br"),o(" 此情无计可消除,才下眉头,却上心头"),d("span",{class:"chinese-hang"},"。")])]),d("hr"),d("div",{class:"chinese chinese--poetry"},[d("h2",null,[o(" 好了歌"),d("span",{class:"chinese-meta chinese-small"},[o("[清]"),d("abbr",{title:"著曹雪芹"},"曹雪芹")])]),d("p",{class:"chinese-x-large"},[o(" 世人都晓神仙好,惟有功名忘不了;"),d("br"),o(" 古今将相在何方?荒冢一堆草没了。"),d("br"),o(" 世人都晓神仙好,只有金银忘不了;"),d("br"),o(" 终朝只恨聚无多,及到多时眼闭了。"),d("br"),o(" 世人都晓神仙好,只有姣妻忘不了;"),d("br"),o(" 君生日日说恩情,君死又随人去了。"),d("br"),o(" 世人都晓神仙好,只有儿孙忘不了;"),d("br"),o(" 痴心父母古来多,孝顺儿孙谁见了!"),d("br")])])])],-1)),d("h3",E,[n[23]||(n[23]=o("行间注")),m((r(),b("a",I,n[22]||(n[22]=[o("#")]))),[[u,"#example-annotation"]])]),n[58]||(n[58]=d("details",null,[d("summary",null,"如何使用?"),d("p",null,[o(" 为容器元素"),d("code",null,'
'),o("添加名为"),d("code",null,"chinese--annotation"),o("的class后,搭配"),d("code",null,""),o("元素即可实现整齐的行间注效果: ")]),d("pre",null,[d("code",null,'
...
')])],-1)),n[59]||(n[59]=d("details",{open:""},[d("summary",null,"示例"),d("section",{class:"demo"},[d("div",{class:"chinese chinese--ancient chinese--annotation"},[d("h2",null,"庖丁解牛"),d("p",{class:"chinese-meta chinese-small"},[o("作者:"),d("abbr",{title:"庄子"},"庄周"),o("(公元前369~公元前286年)")]),d("p",null,"吾生也有涯,而知也无涯。以有涯随无涯,殆已!已而为知者,殆而已矣!为善无近名,为恶无近刑。缘督以为经,可以保身,可以全生,可以养亲,可以尽年。"),d("p",null,[d("u",{title:"名丁的厨工。先秦古书往往以职业放在人名前"},[d("ruby",null,[o("庖"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"páo"),d("rp",null,")")]),o("丁")]),o("为文惠君解牛,手之所触,肩之所倚,足之所履,膝之所"),d("u",{title:"支撑,接触"},[d("ruby",null,[o("踦"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"yǐ"),d("rp",null,")")])]),o(","),d("u",{title:"砉然:砉,又读xū,象声词。砉然,皮骨相离的声音"},[d("ruby",null,[o("砉"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"huā"),d("rp",null,")")]),o("然")]),d("ruby",null,[o("向"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"xiǎng"),d("rp",null,")")]),o("然,奏刀"),d("u",{title:"騞然:象声词,形容比砉然更大的进刀解牛声"},[d("ruby",null,[o("騞"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"huō"),d("rp",null,")")]),o("然")]),o(",莫不中音。合于《桑林》之舞,乃中《经首》之会。 ")]),d("p",null,[o(" 文惠君曰:「嘻,善哉!技"),d("u",{title:"通「盍」,何,怎样"},[d("ruby",null,[o("盖"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"hé"),d("rp",null,")")])]),o("至此乎?」 ")]),d("p",null,[o(" 庖丁释刀对曰:「臣之所好者,道也,进乎技矣。始臣之解牛之时,所见无非牛者。三年之后,未尝见全牛也。方今之时,臣以神遇而不以目视,官知止而"),d("u",{title:"指精神活动"},"神欲"),o("行。依乎"),d("u",{title:"指牛的生理上的天然结构"},"天理"),o(","),d("u",{title:"击入大的缝隙"},[o("批大"),d("ruby",null,[o("郤"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"xì"),d("rp",null,")")])]),o(","),d("u",{title:"顺着(骨节间的)空处进刀"},[o("导大"),d("ruby",null,[o("窾"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"kuǎn"),d("rp",null,")")])]),o(","),d("u",{title:"依"},"因"),o("其"),d("u",{title:"指牛体本来的结构"},"固然"),o(",技经肯"),d("ruby",null,[o("綮"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"qìng"),d("rp",null,")")]),o("之未尝,而况大"),d("ruby",null,[o("軱"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"gū"),d("rp",null,")")]),o("乎!良庖岁更刀,割也;族庖月更刀,折也。今臣之刀十九年矣,所解数千牛矣,而刀刃若新发于"),d("ruby",null,[o("硎"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"xíng"),d("rp",null,")")]),o("。彼节者有间,而刀刃者无厚;以无厚入有间,恢恢乎其于"),d("em",null,"游刃必有余地"),o("矣,是以十九年而刀刃若新发于硎。虽然,每至于族,吾见其难为,"),d("ruby",null,[o("怵"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"chù"),d("rp",null,")")]),o("然为戒,视为止,行为迟。动刀甚微,"),d("ruby",null,[o("謋"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"huò"),d("rp",null,")")]),o("然已解,如土委地。提刀而立,为之四顾,为之"),d("ruby",null,[o("踌"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"chóu"),d("rp",null,")"),o("躇"),d("rp",null,"("),d("rt",{lang:"zh-Latn"},"chú"),d("rp",null,")")]),o("满志,善刀而藏之。」 ")]),d("p",null,"文惠君曰:「善哉!吾闻庖丁之言,得养生焉。」")])])],-1)),d("h3",R,[n[25]||(n[25]=o("多栏排版")),m((r(),b("a",U,n[24]||(n[24]=[o("#")]))),[[u,"#example-columns"]])]),n[60]||(n[60]=d("p",null,"预置多种多栏布局类,可以按栏数或每栏行宽进行设置。",-1)),n[61]||(n[61]=d("details",null,[d("summary",null,"如何使用?"),d("p",null,[o("为容器元素"),d("code",null,'
'),o("添加名为"),d("code",null,"chinese--columns-2"),o("的class即可实现双栏排版:")]),d("pre",null,[d("code",null,'
...
')]),d("table",null,[d("thead",null,[d("tr",null,[d("th",{style:{width:"100px"}},"方式"),d("th",{style:{width:"200px"}},"对应类名"),d("th",{style:{width:"300px"}},"可选数值")])]),d("tbody",null,[d("tr",null,[d("td",null,"按栏目数量"),d("td",null,[d("code",null,"chinese--columns-3")]),d("td",null,"不限,但是建议不超过5")]),d("tr",null,[d("td",null,"按每栏行宽"),d("td",null,[d("code",null,"chinese--columns-width-16")]),d("td",null,"建议为4的倍数")])])])],-1)),d("details",B,[n[27]||(n[27]=d("summary",null,"示例",-1)),y(e,null,{default:h((()=>n[26]||(n[26]=[d("figure",{class:"card card--multi-column"},[d("section",{class:"chinese--columns-2"},[d("p",null," 先帝创业未半而中道崩殂,今天下三分,益州疲弊,此诚危急存亡之秋也。然侍卫之臣不懈于内,忠志之士忘身于外者,盖追先帝之殊遇,欲报之于陛下也。诚宜开张圣听,以光先帝遗德,恢弘志士之气,不宜妄自菲薄,引喻失义,以塞忠谏之路也。 "),d("p",null,"宫中府中,俱为一体;陟罚臧否,不宜异同。若有作奸犯科及为忠善者,宜付有司论其刑赏,以昭陛下平明之理;不宜偏私,使内外异法也。"),d("p",null,"侍中、侍郎郭攸之、费祎、董允等,此皆良实,志虑忠纯,是以先帝简拔以遗陛下:愚以为宫中之事,事无大小,悉以咨之,然后施行,必能裨补阙漏,有所广益。"),d("p",null,"将军向宠,性行淑均,晓畅军事,试用于昔日,先帝称之曰能,是以众议举宠为督。愚以为营中之事,悉以咨之,必能使行阵和睦,优劣得所。"),d("p",null," 亲贤臣,远小人,此先汉所以兴隆也;亲小人,远贤臣,此后汉所以倾颓也。先帝在时,每与臣论此事,未尝不叹息痛恨于桓、灵也。侍中、尚书、长史、参军,此悉贞良死节之臣,愿陛下亲之信之,则汉室之隆,可计日而待也。 "),d("p",null," 臣本布衣,躬耕于南阳,苟全性命于乱世,不求闻达于诸侯。先帝不以臣卑鄙,猥自枉屈,三顾臣于草庐之中,咨臣以当世之事,由是感激,遂许先帝以驱驰。后值倾覆,受任于败军之际,奉命于危难之间,尔来二十有一年矣。 "),d("p",null," 先帝知臣谨慎,故临崩寄臣以大事也。受命以来,夙夜忧叹,恐托付不效,以伤先帝之明;故五月渡泸,深入不毛。今南方已定,兵甲已足,当奖率三军,北定中原,庶竭驽钝,攘除奸凶,兴复汉室,还于旧都。此臣所以报先帝而忠陛下之职分也。至于斟酌损益,进尽忠言,则攸之、祎、允之任也。 "),d("p",null," 愿陛下托臣以讨贼兴复之效,不效,则治臣之罪,以告先帝之灵。若无兴德之言,则责攸之、祎、允等之慢,以彰其咎;陛下亦宜自谋,以咨诹善道,察纳雅言,深追先帝遗诏。臣不胜受恩感激。 "),d("p",null,"今当远离,临表涕零,不知所言。")]),d("figcaption",null,"多栏排版演示")],-1)]))),_:1})]),d("h3",D,[n[29]||(n[29]=o("竖排排版")),m((r(),b("a",A,n[28]||(n[28]=[o("#")]))),[[u,"#example-vertical"]])]),n[62]||(n[62]=d("p",null,"预置传统的竖排(直排)方向排版,同样贴合栅格。",-1)),n[63]||(n[63]=d("details",null,[d("summary",null,"如何使用?"),d("p",null,[o("为容器元素"),d("code",null,'
'),o("添加名为"),d("code",null,"chinese--vertical"),o("的class即可实现竖排布局:")]),d("pre",null,[d("code",null,'
...
')])],-1)),d("details",F,[n[31]||(n[31]=d("summary",null,"示例",-1)),y(e,null,{default:h((()=>n[30]||(n[30]=[d("figure",{class:"card card--vertical"},[d("div",{class:"card__vertical-container"},[d("section",{class:"chinese--vertical chinese--ancient"},[d("h1",null,"出師表"),d("p",{class:"chinese-small"},[o("作者:"),d("abbr",{title:"字孔明"},"諸葛亮"),o("(181年-234年10月8日)")]),d("p",null,"先帝創業未半,而中道崩殂;今天下三分,益州疲弊,此誠危急存亡之秋也﹗然侍衞之臣,不懈於內;忠志之士,忘身於外者,蓋追先帝之殊遇,欲報之於陛下也。"),d("p",null,"誠宜開張聖聽,以光先帝遺德,恢弘志士之氣﹔不宜妄自菲薄,引喻失義,以塞忠諫之路也。"),d("p",null,"宮中、府中,俱為一體;陟罰臧否,不宜異同。若有作姦、犯科,及為忠善者,宜付有司,論其刑賞,以昭陛下平明之治;不宜偏私,使內外異法也。"),d("p",null," 侍中、侍郎郭攸之、費禕、董允等,此皆良實,志慮忠純,是以先帝簡拔以遺陛下。愚以為宮中之事,事無大小,悉以咨之,然後施行,必能裨補闕漏,有所廣益。將軍向寵,性行淑均,曉暢軍事,試用於昔日,先帝稱之曰「能」,是以眾議舉寵為督。愚以為營中之事,悉以咨之,必能使行陣和睦,優劣得所。 "),d("p",null," 親賢臣,遠小人,此先漢所以興隆也﹔親小人,遠賢臣,此後漢所以傾頹也。先帝在時,每與臣論此事,未嘗不歎息痛恨於桓、靈也!侍中、尚書、長史、參軍,此悉貞良死節之臣,願陛下親之、信之,則漢室之隆,可計日而待也。 "),d("p",null," 臣本布衣,躬耕於南陽,苟全性命於亂世,不求聞達於諸侯。先帝不以臣卑鄙,猥自枉屈,三顧臣於草廬之中,諮臣以當世之事;由是感激,遂許先帝以驅馳。後值傾覆,受任於敗軍之際,奉命於危難之間,爾來二十有一年矣。先帝知臣謹慎,故臨崩寄臣以大事也。受命以來,夙夜憂歎,恐託付不效,以傷先帝之明。故五月渡瀘,深入不毛。今南方已定,兵甲已足,當獎率三軍,北定中原,庶竭駑鈍,攘除姦凶,興復漢室,還於舊都。此臣所以報先帝而忠陛下之職分也。至於斟酌損益,進盡忠言,則攸之、禕、允之任也。 "),d("p",null," 願陛下託臣以討賊興復之效;不效,則治臣之罪,以告先帝之靈。若無興德之言,則責攸之、禕、允等之慢,以彰其咎。陛下亦宜自謀,以諮諏善道,察納雅言,深追先帝遺詔。臣不勝受恩感激。今當遠離,臨表涕零,不知所言! ")])]),d("figcaption",null,"竖排排版演示")],-1)]))),_:1})]),n[64]||(n[64]=d("hr",null,null,-1)),d("h2",G,[n[33]||(n[33]=o("设计原则")),m((r(),b("a",H,n[32]||(n[32]=[o("#")]))),[[u,"#guidelines"]])]),n[65]||(n[65]=d("p",null,"它不作为一个CSS Reset出现,而是根据通行的中文排版规范,对网页正文区域进行排版样式增强。",-1)),n[66]||(n[66]=d("h3",null,"文字",-1)),d("p",null,[n[35]||(n[35]=o(" 参考《中文排版需求")),d("sup",null,[m((r(),b("a",J,n[34]||(n[34]=[o("[1]")]))),[[u,"#fn-01"]])]),n[36]||(n[36]=o("》中描述的常用书籍排版字体,提供了黑体、宋体和")),n[37]||(n[37]=d("u",{title:"以正文宋体、标题楷体构成的搭配"},"传统",-1)),n[38]||(n[38]=o("三种字体风格,前两者分别对应无衬线、衬线字体族。文字默认采用16px作为标准字号。在标题等文字较大的情况下,会适当地增加字间距以便获得更好地可读性。 "))]),n[67]||(n[67]=d("details",null,[d("summary",null,"查看字体风格详细对照表"),d("section",{class:"section"},[d("table",null,[d("caption",null," 各字体族下不同标签对应的字体 "),d("thead",null,[d("tr",null,[d("td",{style:{width:"60px"}}),d("th",{style:{width:"60px"}},"黑体"),d("th",{style:{width:"60px"}},"宋体"),d("th",{style:{width:"60px"}},"传统"),d("th",{style:{width:"380px"}},"备注")])]),d("tbody",null,[d("tr",null,[d("th",null,"标题"),d("td",{rowspan:"7"},"黑体"),d("td",{rowspan:"7"},"宋体"),d("td",null,"楷体"),d("td",null,[d("section",null,[d("h1",null,"记忆中的站台")])])]),d("tr",null,[d("th",null,"正文"),d("td",null,"宋体"),d("td",null,[d("section",null,[d("p",null,"那是一个风雨交加的夜晚。")])])]),d("tr",null,[d("th",null,"引用"),d("td",null,"楷体"),d("td",null,[d("section",null,[d("blockquote",null,"锣鼓喧天,鞭炮齐鸣,红旗招展,人山人海。")])])]),d("tr",null,[d("th",null,"强调"),d("td",null,"宋体"),d("td",null,[d("section",null,[d("p",null,[o("父亲"),d("em",null,"特意"),o("嘱咐了我两句。")])])])]),d("tr",null,[d("th",null,"对话"),d("td",null,"楷体"),d("td",null,[d("section",null,[d("p",null,[o("他说:"),d("q",null,"我买几个橘子去。你就在此地,不要走动。")])])])]),d("tr",null,[d("th",null,"图例"),d("td",null,"黑体"),d("td",null,[d("section",null,[d("figure",null,[d("figcaption",null,"橘子")])])])]),d("tr",null,[d("th",null,"表头"),d("td",null,"黑体"),d("td",null,[d("section",null,[d("table",null,[d("caption",null," 当时的情形 "),d("tr",null,[d("th",null,"角色"),d("th",null,"物品")]),d("tr",null,[d("td",null,"父亲"),d("td",null,"橘子")]),d("tr",null,[d("td",null,"我"),d("td",null,"车票")])])])])]),d("tr",null,[d("th",null,"角标"),d("td",null,"黑体"),d("td",null,"黑体"),d("td",null,"黑体"),d("td",null,[o("鲁迅"),d("sup",null,"[1]"),o("曾经没有说过")])])])])])],-1)),n[68]||(n[68]=d("h3",null,"标点",-1)),n[69]||(n[69]=d("p",null,"参考《中文排版需求》制定符号样式。唯一的差异在于简体中文一律采用直角引号(「」)替代弯引号(“”),这样可以保持字符等宽。",-1)),n[70]||(n[70]=d("h3",null,"间距",-1)),n[71]||(n[71]=d("p",null,"为保持页面元素总是贴合垂直栅格,块级元素(段落、列表、表格等)采用一行行高作为底边距,半行行高作为顶边距。标题根据亲密性原则采用相反的边距设计。",-1)),n[72]||(n[72]=d("hr",null,null,-1)),d("h2",K,[n[40]||(n[40]=o("附录")),m((r(),b("a",M,n[39]||(n[39]=[o("#")]))),[[u,"#appendix"]])]),d("h3",N,[n[42]||(n[42]=o("标签示例表")),m((r(),b("a",Q,n[41]||(n[41]=[o("#")]))),[[u,"#tags"]])]),n[73]||(n[73]=d("details",{open:""},[d("summary",null,"查看标签示例表"),d("section",{class:"section"},[d("table",null,[d("caption",null," 常用标签样式示例表 "),d("tr",null,[d("th",{style:{width:"72px"}},"类型"),d("th",{style:{width:"320px"}},"标签"),d("th",{style:{width:"240px"}},"效果")]),d("tr",null,[d("td",null,"链接"),d("td",null,[d("code",null,'
unocss-preset-chinese')]),d("td",null,[d("a",{href:"https://github.com/kirklin/unocss-preset-chinese",title:"unocss-preset-chinese"},"unocss-preset-chinese")])]),d("tr",null,[d("td",null,"缩写"),d("td",null,[d("code",null,'CSS')]),d("td",null,[d("abbr",{title:"Cascading Style Sheets"},"CSS")])]),d("tr",null,[d("td",null,"代码"),d("td",null,[d("code",null,".chinese { star: 5; }")]),d("td",null,[d("code",null,".chinese { star: 5; }")])]),d("tr",null,[d("td",null,"专名号"),d("td",null,[d("code",null,'此时来自景阳冈武松大喝一声:纳命来!')]),d("td",null,[o("此时来自"),d("u",{title:"位于山东省聊城市阳谷县城东"},"景阳冈"),o("的"),d("u",null,"武松"),o("大喝一声:"),d("q",null,"纳命来!")])]),d("tr",null,[d("td",null,"文本变动"),d("td",null,[d("code",null,'我写错!')]),d("td",null,[o("我写错"),d("del",{datetime:"17:00:00"},"拉"),d("ins",{datetime:"18:15:00"},"啦"),o("!")])]),d("tr",null,[d("td",null,"文本更新"),d("td",null,[d("code",null,"在陌生的城市里迷路,所以最后我们决定跟着导航地图。")]),d("td",null,[o("在陌生的城市里迷路,所以最后我们决定跟着"),d("s",null,"导航"),o("地图。")])]),d("tr",null,[d("td",null,"引号"),d("td",null,[d("code",null,"她说:嘿,你好。")]),d("td",null,[o("她说:"),d("q",null,"嘿,你好。")])]),d("tr",null,[d("td",null,"术语"),d("td",null,[d("code",null,"在固定版面内,排版(英语:Typesetting) 摆置各种不同类型的资料。")]),d("td",null,[o("在固定版面内,"),d("dfn",null,"排版"),o("(英语:Typesetting) 摆置各种不同类型的资料。")])]),d("tr",null,[d("td",null,"标记"),d("td",null,[d("code",null,[o("这个公式"),d("mark",null,"很重要"),o(",请记住。")])]),d("td",null,[o("这个公式"),d("mark",null,"很重要"),o(",请记住。")])]),d("tr",null,[d("td",null,"强调"),d("td",null,[d("code",null,[o("相信自己,"),d("em",null,"你可以做到"),o("!")])]),d("td",null,[o("相信自己,"),d("em",null,"你可以做到"),o("!")])]),d("tr",null,[d("td",null,"着重号"),d("td",null,[d("code",null,[o("我们"),d("span",{class:"chinese-em"},"绝不会"),o("放弃。")])]),d("td",null,[o("我们"),d("span",{class:"chinese-em"},"绝不会"),o("放弃。")])])])])],-1))])])),_:1})}}))));var W;const X=v(V,[["__scopeId","data-v-891d6715"]]);export{X as default}; diff --git a/docs/assets/index-BkjyKYn-.js b/docs/assets/index-BkjyKYn-.js new file mode 100644 index 0000000..82c8dae --- /dev/null +++ b/docs/assets/index-BkjyKYn-.js @@ -0,0 +1 @@ +var e=Object.defineProperty,a=Object.defineProperties,r=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,t=(a,r,o)=>r in a?e(a,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[r]=o,n=(e,a)=>{for(var r in a||(a={}))l.call(a,r)&&t(e,r,a[r]);if(o)for(var r of o(a))s.call(a,r)&&t(e,r,a[r]);return e},i=(e,o)=>a(e,r(o)),d=(e,a,r)=>new Promise(((o,l)=>{var s=e=>{try{n(r.next(e))}catch(a){l(a)}},t=e=>{try{n(r.throw(e))}catch(a){l(a)}},n=e=>e.done?o(e.value):Promise.resolve(e.value).then(s,t);n((r=r.apply(e,a)).next())}));import{i as p,n as g,t as u,d as c,u as m,r as f,a as v,o as h,c as w,w as b,b as k,e as y,f as x,g as _,h as C,j as L,k as M,B as P,l as j,m as I,p as U,q as z,R as B,T as N,_ as O,s as q}from"./index-BT0ZcDkn.js";import{_ as S,a as D}from"./AppLogo.vuevuetypescriptsetuptruelang-DzR987t-.js";import{u as T}from"./use-message-CulIy1l8.js";import{N as F}from"./Input-D2qMgPO1.js";import{N as K,a as R}from"./FormItem-CZeE-Hc9.js";import{_ as E}from"./Checkbox-Kaq6uefv.js";import{u as $}from"./useLoading-8gX1N9xN.js";import"./useScreen-jjQj1L0Z.js";import{N as A}from"./Divider-DXNdPNfR.js";import{_ as W}from"./plugin-vueexport-helper-BCo6x5W8.js";import"./use-locale-CbMPSc0o.js";import"./use-merged-state-D7wGS6Km.js";function H(){const e=p(g,null);return null===e&&u("use-notification","No outer `n-notification-provider` found."),e}const Q=""+new URL("total-income-indicator-B0DjNU3h.svg",import.meta.url).href,V=""+new URL("earnings-indicator-npUcTKLg.svg",import.meta.url).href,G={class:"flex flex-col items-end gap-6"},Z={class:"flex justify-between w-full"},J={class:"w-full"},X=c({__name:"SignIn",emits:["forgot-password"],setup(e,{emit:a}){const r=a,{t:o}=m(),l=T(),s=H(),t=f({username:"admin",password:"123456"}),p=f({username:[{required:!0,message:o("page.login.form.username.error"),trigger:"blur"}],password:[{required:!0,message:o("page.login.form.password.error"),trigger:"blur"}]}),g=v(!1),u=v();function c(e){return d(this,null,(function*(){var a;e.preventDefault();try{yield null==(a=u.value)?void 0:a.validate(),g.value=!0;try{const e=yield M().login(i(n({},y(t)),{remember:!0,errorMessageMode:"none"}));e&&s.success({duration:3e3,title:o("page.login.notification.loginSuccessMessage"),content:o("page.login.notification.welcomeBackMessage",{username:e.fullName})})}catch(r){l.error(String(r))}}finally{g.value=!1}}))}return(e,a)=>{const l=F,s=K,n=E,i=P,d=R;return h(),w(d,{ref_key:"loginFormRef",ref:u,model:y(t),rules:y(p)},{default:b((()=>[k(s,{path:"username",label:y(o)("page.login.form.username.label")},{default:b((()=>[k(l,{value:y(t).username,"onUpdate:value":a[0]||(a[0]=e=>y(t).username=e),placeholder:y(o)("page.login.form.username.placeholder"),size:"large",autocomplete:"on",onKeydown:x(c,["enter"])},null,8,["value","placeholder"])])),_:1},8,["label"]),k(s,{path:"password",label:y(o)("page.login.form.password.label")},{default:b((()=>[k(l,{value:y(t).password,"onUpdate:value":a[1]||(a[1]=e=>y(t).password=e),type:"password",placeholder:y(o)("page.login.form.password.placeholder"),"show-password-on":"click",autocomplete:"on",size:"large",onKeydown:x(c,["enter"])},null,8,["value","placeholder"])])),_:1},8,["label"]),_("div",G,[_("div",Z,[k(n,{size:"large"},{default:b((()=>[C(L(y(o)("page.login.form.remember")),1)])),_:1}),k(i,{text:"",type:"primary",onClick:a[2]||(a[2]=e=>r("forgot-password"))},{default:b((()=>[C(L(y(o)("page.login.form.forgetPassword")),1)])),_:1})]),_("div",J,[k(i,{type:"primary",loading:y(g),class:"w-full!",size:"large",onClick:c},{default:b((()=>[C(L(y(o)("page.login.form.loginButton")),1)])),_:1},8,["loading"])])])])),_:1},8,["model","rules"])}}}),Y={class:"flex flex-col items-end"},ee={class:"w-full"},ae=c({__name:"SignUp",setup(e){const{t:a}=m(),r=v(null),o=v({username:"kirklin",password:"123456",confirmPassword:"123456"}),l=T(),s=v(!1),t=H(),p={username:[{required:!0,trigger:["blur"],message:a("page.login.form.username.error")}],password:[{required:!0,trigger:["blur"],message:a("page.login.form.password.error")}],confirmPassword:[{required:!0,trigger:["blur"],message:a("page.login.form.confirmPassword.error")},{validator:(e,a)=>a===o.value.password,message:a("page.login.form.confirmPassword.validator"),trigger:["blur","password-input"]}]};function g(e){var o;e.preventDefault(),s.value=!0,null==(o=r.value)||o.validate((e=>d(this,null,(function*(){if(e)s.value=!1,l.error("Invalid credentials");else{const e=yield M().login(i(n({},{username:"kirklin",password:"123456"}),{remember:!0,errorMessageMode:"none"}));e&&(s.value=!1,t.success({title:a("page.login.notification.loginSuccessMessage"),content:a("page.login.notification.welcomeBackMessage",{username:e.fullName})}))}}))))}return(e,l)=>(h(),w(y(R),{ref_key:"formRef",ref:r,model:o.value,rules:p},{default:b((()=>[k(y(K),{path:"username",label:y(a)("page.login.form.username.label")},{default:b((()=>[k(y(F),{value:o.value.username,"onUpdate:value":l[0]||(l[0]=e=>o.value.username=e),size:"large",placeholder:y(a)("page.login.form.username.placeholder"),onKeydown:x(g,["enter"])},null,8,["value","placeholder"])])),_:1},8,["label"]),k(y(K),{path:"password",label:y(a)("page.login.form.password.label")},{default:b((()=>[k(y(F),{value:o.value.password,"onUpdate:value":l[1]||(l[1]=e=>o.value.password=e),type:"password",size:"large","show-password-on":"click",placeholder:y(a)("page.login.form.password.placeholder"),onKeydown:x(g,["enter"])},null,8,["value","placeholder"])])),_:1},8,["label"]),k(y(K),{path:"confirmPassword",label:y(a)("page.login.form.confirmPassword.label"),first:""},{default:b((()=>[k(y(F),{value:o.value.confirmPassword,"onUpdate:value":l[2]||(l[2]=e=>o.value.confirmPassword=e),type:"password",disabled:!o.value.password,size:"large","show-password-on":"click",placeholder:y(a)("page.login.form.confirmPassword.placeholder"),onKeydown:x(g,["enter"])},null,8,["value","disabled","placeholder"])])),_:1},8,["label"]),_("div",Y,[_("div",ee,[k(y(P),{type:"primary",loading:s.value,class:"!w-full",size:"large",onClick:g},{default:b((()=>[C(L(y(a)("page.login.form.registerButton")),1)])),_:1},8,["loading"])])])])),_:1},8,["model"]))}}),re={class:"flex flex-col items-end gap-6"},oe={class:"w-full"},le=c({__name:"ForgotPassword",setup(e){const{t:a}=m(),r=v(null),o=T(),{loading:l,setLoading:s}=$(!1),t=v({phoneNumber:""}),n={phoneNumber:[{required:!0,trigger:["blur"],message:a("page.login.form.forgotPassword.requiredError")},{pattern:/^1[3456789]\d{9}$/,message:a("page.login.form.forgotPassword.invalidFormatError")}]};function i(e){var l;e.preventDefault(),s(!0),null==(l=r.value)||l.validate((e=>{s(!1),e||o.success(a("page.login.form.resetLinkSentMessage"))}))}return(e,o)=>(h(),w(y(R),{ref_key:"formRef",ref:r,model:t.value,rules:n},{default:b((()=>[k(y(K),{path:"phoneNumber",label:y(a)("page.login.form.forgotPassword.label")},{default:b((()=>[k(y(F),{value:t.value.phoneNumber,"onUpdate:value":o[0]||(o[0]=e=>t.value.phoneNumber=e),placeholder:y(a)("page.login.form.forgotPassword.placeholder"),size:"large",onKeydown:x(i,["enter"])},null,8,["value","placeholder"])])),_:1},8,["label"]),_("div",re,[_("div",oe,[k(y(P),{type:"primary",loading:y(l),class:"!w-full",size:"large",onClick:i},{default:b((()=>[C(L(y(a)("page.login.form.sendResetLinkButton")),1)])),_:1},8,["loading"])])])])),_:1},8,["model"]))}}),se={class:"auth-form-wrap w-full"},te={class:"title mb-4 text-3xl font-bold"},ne={class:"text mb-12 text-xl"},ie={class:"form"},de={class:"social-button-group flex flex-col gap-4 mb-12"},pe={class:"sign-text text-center"},ge={key:0,class:"sign-text"},ue={key:1,class:"sign-text"},ce={key:2,class:"sign-text"},me=W(c({__name:"index",props:{type:{}},setup(e){const a=e,{t:r}=m(),o=v("signIn"),l=j((()=>"signIn"===o.value?r("page.login.form.welcomeBackTitle"):"signUp"===o.value?r("page.login.form.helloTitle"):r("page.login.form.forgotPasswordTitle")));function s(){o.value="signIn"}return I((()=>{a.type&&(o.value=a.type)})),(e,a)=>{const t=S,n=O;return h(),U("div",se,[k(t,{class:"mb-4","display-title":""}),_("div",te,L(l.value),1),_("div",ne,L(y(r)("page.login.form.greetingText")),1),_("div",ie,[k(N,{appear:"",name:y(B).FADE_SLIDE,mode:"out-in"},{default:b((()=>["signIn"===o.value?(h(),w(X,{key:"signin",onForgotPassword:a[0]||(a[0]=e=>{o.value="forgotPassword"})})):"forgotPassword"===o.value?(h(),w(le,{key:"forgotpassword"})):"signUp"===o.value?(h(),w(ae,{key:"signup"})):z("",!0)])),_:1},8,["name"])]),k(y(A),{"title-placement":"center"},{default:b((()=>a[4]||(a[4]=[C(" Or ")]))),_:1}),_("div",de,[k(y(P),{strong:"",secondary:"",size:"large"},{default:b((()=>[k(n,{icon:"tabler:brand-qq",class:"mr-4"}),C(" "+L(y(r)("page.login.form.socialButtons.signInWithQQ")),1)])),_:1}),k(y(P),{strong:"",secondary:""},{default:b((()=>[k(n,{icon:"tabler:brand-wechat",class:"mr-4"}),C(" "+L(y(r)("page.login.form.socialButtons.signInWithWeChat")),1)])),_:1})]),_("div",pe,["signIn"===o.value?(h(),U("div",ge,[C(L(y(r)("page.login.form.signText.signIn"))+" ",1),k(y(P),{text:"",type:"primary",size:"large",onClick:a[1]||(a[1]=e=>{o.value="signUp"})},{default:b((()=>[C(L(y(r)("page.login.form.signUp")),1)])),_:1})])):z("",!0),"forgotPassword"===o.value?(h(),U("div",ue,[k(y(P),{text:"",type:"primary",size:"large",onClick:a[2]||(a[2]=e=>s())},{default:b((()=>[C(L(y(r)("page.login.form.signText.forgotPassword")),1)])),_:1})])):z("",!0),"signUp"===o.value?(h(),U("div",ce,[C(L(y(r)("page.login.form.signText.signUp"))+" ",1),k(y(P),{text:"",type:"primary",size:"large",onClick:a[3]||(a[3]=e=>s())},{default:b((()=>[C(L(y(r)("page.login.form.signIn")),1)])),_:1})])):z("",!0)])])}}}),[["__scopeId","data-v-b6551151"]]),fe={class:"flex-[2.5] flex justify-center"},ve={class:"w-[600px] px-[32px] py-[30px] mt-[-5%] rounded-2xl (e,a)=>{const r=D;return h(),w(r,{tag:"main",class:"bg-gray-100 dark:bg-[--base-color] flex justify-center items-center overflow-x-hidden"},{default:b((()=>[k(r,{class:"flex-[2.5] bg-[--body-color] h-[100vh] rounded-l rounded-[3rem] relative [_("div",{class:"total-income-indicator-img w-[243px] h-[210px] bg-center absolute top-[23%] left-[37%] bg-[length:380]",style:q({backgroundImage:`url(${y(Q)})`})},null,4),_("div",{class:"earnings-indicator-img w-[313px] h-[280px] bg-center absolute top-[32%] left-[40%] bg-[length:380]",style:q({backgroundImage:`url(${y(V)})`})},null,4)])),_:1},8,["style"]),_("div",fe,[_("div",ve,[k(me)])])])),_:1})}})),[["__scopeId","data-v-dd156109"]]);export{he as default}; diff --git a/docs/assets/index-C280tQWg.js b/docs/assets/index-C280tQWg.js new file mode 100644 index 0000000..21b5fdd --- /dev/null +++ b/docs/assets/index-C280tQWg.js @@ -0,0 +1 @@ +import{d as e,k as t,bn as s,u as a,l as i,c as n,w as l,e as o,L as r,o as d,b as u,bo as c,h as p,j as m,B as f}from"./index-BT0ZcDkn.js";import{_ as y,a as b}from"./CurrentPermissionMode.vuevuetypescriptsetuptruelang-DP-DEThw.js";import{_ as g}from"./Space-_SFqgYmP.js";import"./get-slot-BjAOOWF7.js";const h=e({__name:"index",setup(e){const h=t(),{isBackendPermissionMode:k,refreshMenu:_}=s(),{t:v}=a();function M(e){return t=this,s=null,a=function*(){const t=`${e}FakeToken`;h.setToken(t),yield h.getUserInfoAction(),yield _()},new Promise(((e,i)=>{var n=e=>{try{o(a.next(e))}catch(t){i(t)}},l=e=>{try{o(a.throw(e))}catch(t){i(t)}},o=t=>t.done?e(t.value):Promise.resolve(t.value).then(n,l);o((a=a.apply(t,s)).next())}));var t,s,a}const S=i((()=>h.getRoleList.includes(c.ADMIN))),j=i((()=>h.getRoleList.includes(c.USER)));return(e,t)=>{const s=b,a=f,i=g,h=r;return d(),n(h,{title:o(v)("page.permission.pageTitles.backend")},{default:l((()=>[u(y),u(s,{class:"my-4",type:"info",title:o(v)("page.permission.clickToSeeLeftMenuChange"),"show-icon":""},null,8,["title"]),u(h,{class:"mt-4",title:o(v)("page.permission.backendPermissionSwitchTitle"),embedded:"",bordered:!1},{default:l((()=>[u(i,null,{default:l((()=>[u(a,{type:o(S)?"primary":"default",disabled:!o(k),onClick:t[0]||(t[0]=e=>M(o(c).ADMIN))},{default:l((()=>[p(m(o(c).ADMIN),1)])),_:1},8,["type","disabled"]),u(a,{type:o(j)?"primary":"default",disabled:!o(k),onClick:t[1]||(t[1]=e=>M(o(c).USER))},{default:l((()=>[p(m(o(c).USER),1)])),_:1},8,["type","disabled"])])),_:1})])),_:1},8,["title"])])),_:1},8,["title"])}}});export{h as default}; diff --git a/docs/assets/index-CBXzYHRV.js b/docs/assets/index-CBXzYHRV.js new file mode 100644 index 0000000..c8e3839 --- /dev/null +++ b/docs/assets/index-CBXzYHRV.js @@ -0,0 +1 @@ +var e=Object.defineProperty,r=Object.defineProperties,t=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,n=(r,t,a)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;import{d as s,bM as c,e as i,bP as l,o as y,p as b}from"./index-BT0ZcDkn.js";const u=s((d=((e,r)=>{for(var t in r||(r={}))o.call(r,t)&&n(e,t,r[t]);if(a)for(var t of a(r))p.call(r,t)&&n(e,t,r[t]);return e})({},{name:"Redirect"}),r(d,t({__name:"index",setup(e){const{currentRoute:r,replace:t}=c(),{params:a,query:o}=i(r),{path:p,_redirect_type:n="path"}=a;Reflect.deleteProperty(a,"_redirect_type"),Reflect.deleteProperty(a,"path");const s=l(p)?p.join("/"):p;return t("name"===n?{name:s,query:o,params:a}:{path:s.startsWith("/")?s:`/${s}`,query:o}),(e,r)=>(y(),b("div"))}}))));var d;export{u as default}; diff --git a/docs/assets/index-CCyqW-xK.js b/docs/assets/index-CCyqW-xK.js new file mode 100644 index 0000000..f314683 --- /dev/null +++ b/docs/assets/index-CCyqW-xK.js @@ -0,0 +1 @@ +import{P as e,D as t,r as a,a as n,d as i,S as r,b as l,l as o,n as s,c as g,g as c,i as u,p as h,m as d,e as p,f,s as y,_ as m,Z as v,h as x,j as b,k as A,u as w,o as S,q as M,t as L,v as T,w as D,x as I,y as N,z as C,C as P,L as k,A as _,B as E,E as G,F as B,G as z,H as O,I as W,J as R,K as V,M as U,N as Y,O as q,Q as X,R as H,T as F,U as j,V as Z,W as J,X as $,Y as K,$ as Q}from"./index-R-_qEdOR.js";import{d as ee,a4 as te,a as ae,o as ne,c as ie,e as re,w as le,b as oe,L as se}from"./index-BT0ZcDkn.js";function ge(e,t,a,n,i,r,l,o){var s=i-e,g=r-t,c=a-e,u=n-t,h=Math.sqrt(c*c+u*u),d=(s*(c/=h)+g*(u/=h))/h;d*=h;var p=l[0]=e+d*c,f=l[1]=t+d*u;return Math.sqrt((p-i)*(p-i)+(f-r)*(f-r))}var ce=new e,ue=new e,he=new e,de=new e,pe=new e,fe=[],ye=new e;function me(t,a){if(a<=180&&a>0){a=a/180*Math.PI,ce.fromArray(t[0]),ue.fromArray(t[1]),he.fromArray(t[2]),e.sub(de,ce,ue),e.sub(pe,he,ue);var n=de.len(),i=pe.len();if(!(n<.001||i<.001)){de.scale(1/n),pe.scale(1/i);var r=de.dot(pe);if(Math.cos(a)1&&e.copy(ye,he),ye.toArray(t[1])}}}}function ve(t,a,n){if(n<=180&&n>0){n=n/180*Math.PI,ce.fromArray(t[0]),ue.fromArray(t[1]),he.fromArray(t[2]),e.sub(de,ue,ce),e.sub(pe,he,ue);var i=de.len(),r=pe.len();if(!(i<.001||r<.001))if(de.scale(1/i),pe.scale(1/r),de.dot(a)=o)e.copy(ye,he);else{ye.scaleAndAdd(pe,l/Math.tan(Math.PI/2-s));var g=he.x!==ue.x?(ye.x-ue.x)/(he.x-ue.x):(ye.y-ue.y)/(he.y-ue.y);if(isNaN(g))return;g<0?e.copy(ye,ue):g>1&&e.copy(ye,he)}ye.toArray(t[1])}}}function xe(e,t,a,n){var i="normal"===a,r=i?e:e.ensureState(a);r.ignore=t;var l=n.get("smooth");l&&!0===l&&(l=.3),r.shape=r.shape||{},l>0&&(r.shape.smooth=l);var o=n.getModel("lineStyle").getLineStyle();i?e.useStyle(o):r.style=o}function be(e,t){var a=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),a>0&&n.length>=3){var i=l(n[0],n[1]),r=l(n[1],n[2]);if(!i||!r)return e.lineTo(n[1][0],n[1][1]),void e.lineTo(n[2][0],n[2][1]);var s=Math.min(i,r)*a,g=o([],n[1],n[0],s/i),c=o([],n[1],n[2],s/r),u=o([],g,c,.5);e.bezierCurveTo(g[0],g[1],g[0],g[1],u[0],u[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],n[2][0],n[2][1])}else for(var h=1;hn?s=r=C+S*n/2:(r=C+L,s=i-L),t.setItemLayout(a,{angle:n,startAngle:r,endAngle:s,clockwise:x,cx:l,cy:o,r0:u,r:b?g(e,w,[u,c]):c}),C=i}})),Ia?l:r,c=Math.abs(s.label.y-a);if(c>=g.maxY){var u=s.label.x-t-s.len2*i,h=n+s.len,p=Math.abs(u)e.unconstrainedWidth?null:d:null;n.setStyle("width",p)}var f=n.getBoundingRect();r.width=f.width;var y=(n.style.margin||0)+2.1;r.height=f.height+y,r.y-=(r.height-u)/2}}}function Ce(e){return"center"===e.position}function Pe(t){var a,n,i=t.getData(),r=[],l=!1,o=(t.get("minShowLabelAngle")||0)*De,s=i.getLayout("viewRect"),g=i.getLayout("r"),c=s.width,u=s.x,d=s.y,y=s.height;function m(e){e.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),d=s.shape,y=s.getTextContent(),v=s.getTextGuideLine(),x=i.getItemModel(t),b=x.getModel("label"),A=b.get("position")||x.get(["emphasis","label","position"]),w=b.get("distanceToLabelLine"),S=b.get("alignTo"),M=h(b.get("edgeDistance"),c),L=b.get("bleedMargin"),T=x.getModel("labelLine"),D=T.get("length");D=h(D,c);var I=T.get("length2");if(I=h(I,c),Math.abs(d.endAngle-d.startAngle)0?"right":"left":E>0?"left":"right"}var U=Math.PI,Y=0,q=b.get("rotate");if(f(q))Y=q*(U/180);else if("center"===A)Y=0;else if("radial"===q||!0===q){Y=E<0?-_+U:-_}else if("tangential"===q&&"outside"!==A&&"outer"!==A){var X=Math.atan2(E,G);X<0&&(X=2*U+X),G>0&&(X=U+X),Y=X-U}if(l=!!Y,y.x=N,y.y=C,y.rotation=Y,y.setStyle({verticalAlign:"middle"}),B){y.setStyle({align:k});var H=y.states.select;H&&(H.x+=y.x,H.y+=y.y)}else{var F=y.getBoundingRect().clone();F.applyTransform(y.getComputedTransform());var j=(y.style.margin||0)+2.1;F.y-=j/2,F.height+=j,r.push({label:y,labelLine:v,position:A,len:D,len2:I,minTurnAngle:T.get("minTurnAngle"),maxSurfaceAngle:T.get("maxSurfaceAngle"),surfaceNormal:new e(E,G),linePoints:P,textAlign:k,labelDistance:w,labelAlignTo:S,edgeDistance:M,bleedMargin:L,rect:F,unconstrainedWidth:F.width,labelStyleWidth:y.style.width})}s.setTextConfig({inside:B})}})),!l&&t.get("avoidLabelOverlap")&&function(e,t,a,n,i,r,l,o){for(var s=[],g=[],c=Number.MAX_VALUE,u=-Number.MAX_VALUE,h=0;h0){for(var s=r.getItemLayout(0),g=1;isNaN(s&&s.startAngle)&&g=a.r0}},t.type="pie",t}(P),Ee=d(),Ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new k(_(this.getData,this),_(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return E(this,{coordDimensions:["value"],encodeDefaulter:G(B,this)})},t.prototype.getDataParams=function(t){var a=this.getData(),n=Ee(a),i=n.seats;if(!i){var r=[];a.each(a.mapDimension("value"),(function(e){r.push(e)})),i=n.seats=z(r,a.hostModel.get("percentPrecision"))}var l=e.prototype.getDataParams.call(this,t);return l.percent=i[t]||0,l.$vars.push("percent"),l},t.prototype._defaultLabelLine=function(e){O(e,"labelLine",["show"]);var t=e.labelLine,a=e.emphasis.labelLine;t.show=t.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(W);function Be(e){e.registerChartView(_e),e.registerSeriesModel(Ge),R("pie",e.registerAction),e.registerLayout(G(Le,"pie")),e.registerProcessor(V("pie")),e.registerProcessor({seriesType:"pie",reset:function(e,t){var a=e.getData();a.filterSelf((function(e){var t=a.mapDimension("value"),n=a.get(t,e);return!(f(n)&&!isNaN(n)&&n<0)}))}})}var ze=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.layoutMode={type:"box",ignoreSize:!0},a}return m(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(U),Oe=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return m(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,r=e.getModel("textStyle"),l=e.getModel("subtextStyle"),o=e.get("textAlign"),s=a(e.get("textBaseline"),e.get("textVerticalAlign")),g=new v({style:Y(r,{text:e.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=g.getBoundingRect(),h=e.get("subtext"),d=new v({style:Y(l,{text:h,fill:l.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),f=e.get("sublink"),y=e.get("triggerEvent",!0);g.silent=!p&&!y,d.silent=!f&&!y,p&&g.on("click",(function(){q(p,"_"+e.get("target"))})),f&&d.on("click",(function(){q(f,"_"+e.get("subtarget"))})),X(g).eventData=X(d).eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(g),h&&i.add(d);var m=i.getBoundingRect(),x=e.getBoxLayoutParams();x.width=m.width,x.height=m.height;var b=c(x,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));o||("middle"===(o=e.get("left")||e.get("right"))&&(o="center"),"right"===o?b.x+=b.width:"center"===o&&(b.x+=b.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?b.y+=b.height:"middle"===s&&(b.y+=b.height/2),s=s||"top"),i.x=b.x,i.y=b.y,i.markRedraw();var A={align:o,verticalAlign:s};g.setStyle(A),d.setStyle(A),m=i.getBoundingRect();var w=b.margin,S=e.getItemStyle(["color","opacity"]);S.fill=e.get("backgroundColor");var M=new H({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:e.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(M)}},t.type="title",t}(F);function We(e){e.registerComponentModel(ze),e.registerComponentView(Oe)}const Re=ee({__name:"scatter3D",setup(e){j([$,Be,We,K,Q]),te(Z,"light");const t=ae({title:{text:"Traffic Sources",left:"center"},tooltip:{trigger:"item",formatter:"{a}
{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:["Direct","Email","Ad Networks","Video Ads","Search Engines"]},series:[{name:"Traffic Sources",type:"pie",radius:"55%",center:["50%","60%"],data:[{value:335,name:"Direct"},{value:310,name:"Email"},{value:234,name:"Ad Networks"},{value:135,name:"Video Ads"},{value:1548,name:"Search Engines"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]});return(e,a)=>(ne(),ie(re(J),{style:{height:"500px"},option:t.value,autoresize:""},null,8,["option"]))}}),Ve=ee({__name:"index",setup:e=>(e,t)=>{const a=se;return ne(),ie(a,null,{default:le((()=>[oe(Re)])),_:1})}});export{Ve as default}; diff --git a/docs/assets/index-CojYk2g6.js b/docs/assets/index-CojYk2g6.js new file mode 100644 index 0000000..0ca2ed9 --- /dev/null +++ b/docs/assets/index-CojYk2g6.js @@ -0,0 +1 @@ +import{t as e,h as a,d as l,g as t,C as o,_ as s,c as r,S as n,e as u,A as i,f as p,T as d}from"./numberUtils-C2LWAuD7.js";import{d as f,a as m,o as c,c as h,w as b,b as v,e as y,f as _,h as k,B as j,v as g,L as w}from"./index-BT0ZcDkn.js";import{u as U}from"./use-message-CulIy1l8.js";import{r as x}from"./utils-PlAvPplV.js";import{N as z}from"./Input-D2qMgPO1.js";import{N as C,a as R}from"./FormItem-CZeE-Hc9.js";import{_ as V,a as P}from"./Grid-qb506I7V.js";import{_ as S}from"./DatePicker-xH6BAkRV.js";import{_ as T}from"./Select-D_I2Mr2d.js";import{_ as D}from"./Dropdown-BMB08iEg.js";import{_ as F}from"./Space-_SFqgYmP.js";import"./get-slot-BjAOOWF7.js";import"./DataTable-CDcTRuJS.js";import"./Checkbox-Kaq6uefv.js";import"./use-merged-state-D7wGS6Km.js";import"./RadioGroup-BozaTzAB.js";import"./Popover-3mPJ01hC.js";import"./use-compitable-CHcH6xDN.js";import"./next-frame-once-DiJwGkuW.js";import"./FocusDetector-C7V71fRC.js";import"./create-Bylz8BGN.js";import"./Tooltip-BFoQMn72.js";import"./Empty-C_CzYco1.js";import"./use-locale-CbMPSc0o.js";import"./Pagination-YSg8zdta.js";import"./Forward-xWz6l688.js";import"./Tag-D4OMG_5z.js";import"./isNil-aV-w2MPu.js";import"./index-LLZlmyqL.js";import"./Checkmark-DuWLWy-v.js";const N=a=>{const l=[];for(let e=0;e<50;e++)l.push({title:"单据日期"+e,key:"billdate"+e,width:100});return[{type:"selection",fixed:"left"},{title:"单据日期",key:"billdate",width:100},{title:"姓名",key:"name",width:100},{title:"联系电话",key:"phone",width:100},{title:"销售金额",key:"sales",width:100,align:"right",render:e("sales")},{title:"收款金额",width:100,key:"payment",align:"right",render:e("payment")},{title:"地址",key:"address",width:100},{title:"单据状态",key:"state",width:100},...l,{title:"操作",key:"action",fixed:"right",align:"center",width:100,render:a}]},A=f({__name:"index",setup(e){const f=U(),A=m(null),{tableRef:G,reload:I}=a(),$={fuzzy:"",filter:{name:"",state:null,saleValue:null,where:"",phone:"",select:"",stateValue:"",dateRange:null}},q=()=>g(j,{size:"small",onClick:()=>{f.info("action")}},(()=>"操作")),E=[{label:"批量发起",key:"submit",icon:x(n)},{label:"批量审核",key:"audit",icon:x(u)},{label:"批量驳回",key:"reject",icon:x(i)},{label:"批量反审",key:"reAudit",icon:x(p)},{label:"批量删除",key:"delete",icon:x(d)}],K=[["0","全部收款"],["1","部分收款"],["9","未收款"]].map((e=>({label:e[1],value:e[0]}))),L=["","起草","待审","通过"].map((e=>({label:e||"全部",value:e})));return(e,a)=>{const n=z,u=s,i=C,p=V,d=S,f=T,m=P,g=R,U=r,x=D,Q=F,B=w;return c(),h(B,null,{default:b((()=>[v(y(l),{ref_key:"tableRef",ref:G,columns:y(N)(q),api:y(t),rowkey:"key",params:$},{form:b((({collapsed:a,reload:l,qParams:t})=>[v(g,{ref_key:"formRef",ref:A,"label-placement":"left","label-width":"auto",model:t},{default:b((()=>[v(m,{"x-gap":8,"y-gap":15,cols:"2 s:3 m:4 l:5 xl:6",collapsed:a,"collapsed-rows":1,responsive:"screen"},{default:b((()=>[v(u,{label:e.$t("common.likeQuery"),path:"fuzzy","show-feedback":!1},{default:b((()=>[v(n,{value:t.fuzzy,"onUpdate:value":e=>t.fuzzy=e,placeholder:e.$t("common.input"),clearable:"",onKeyup:_(l,["enter"]),onClear:l},null,8,["value","onUpdate:value","placeholder","onKeyup","onClear"])])),_:2},1032,["label"]),v(p,null,{default:b((()=>[v(i,{label:"姓名",path:"user.name","show-feedback":!1,rule:[{required:!0,message:"姓名必填"}]},{default:b((()=>[v(n,{value:t.filter.name,"onUpdate:value":e=>t.filter.name=e,placeholder:"输入姓名"},null,8,["value","onUpdate:value"])])),_:2},1024)])),_:2},1024),v(p,{span:2},{default:b((()=>[v(i,{label:"单据日期","show-feedback":!1,path:"phone"},{default:b((()=>[v(d,{value:t.filter.dateRange,"onUpdate:value":e=>t.filter.dateRange=e,type:"daterange",clearable:""},null,8,["value","onUpdate:value"])])),_:2},1024)])),_:2},1024),v(p,null,{default:b((()=>[v(i,{label:"收款状态","show-feedback":!1,path:"phone"},{default:b((()=>[v(f,{value:t.filter.saleValue,"onUpdate:value":e=>t.filter.saleValue=e,clearable:"",options:y(K)},null,8,["value","onUpdate:value","options"])])),_:2},1024)])),_:2},1024),v(p,null,{default:b((()=>[v(i,{label:"单据状态","show-feedback":!1,path:"user.name"},{default:b((()=>[v(f,{value:t.filter.stateValue,"onUpdate:value":e=>t.filter.stateValue=e,placeholder:"Select",options:y(L)},null,8,["value","onUpdate:value","options"])])),_:2},1024)])),_:2},1024),v(p,null,{default:b((()=>[v(i,{label:"电话号码",path:"phone","show-feedback":!1},{default:b((()=>[v(n,{value:t.filter.phone,"onUpdate:value":e=>t.filter.phone=e,placeholder:"电话号码"},null,8,["value","onUpdate:value"])])),_:2},1024)])),_:2},1024),v(p,null,{default:b((()=>[v(i,{label:"电话号码",path:"phone","show-feedback":!1},{default:b((()=>[v(n,{value:t.filter.phone,"onUpdate:value":e=>t.filter.phone=e,placeholder:"电话号码"},null,8,["value","onUpdate:value"])])),_:2},1024)])),_:2},1024),v(p,null,{default:b((()=>[v(i,{label:"电话号码",path:"phone","show-feedback":!1},{default:b((()=>[v(n,{value:t.filter.phone,"onUpdate:value":e=>t.filter.phone=e,placeholder:"电话号码"},null,8,["value","onUpdate:value"])])),_:2},1024)])),_:2},1024)])),_:2},1032,["collapsed"])])),_:2},1032,["model"])])),"bar-left":b((()=>[v(Q,null,{default:b((()=>[v(U,{type:"primary",icon:y(o),onClick:y(I)},{default:b((()=>a[0]||(a[0]=[k("新增")]))),_:1},8,["icon","onClick"]),v(y(j),{strong:"",secondary:""},{default:b((()=>a[1]||(a[1]=[k("下载模板")]))),_:1}),v(y(j),{strong:"",secondary:""},{default:b((()=>a[2]||(a[2]=[k("批量导入")]))),_:1}),v(y(j),{strong:"",secondary:""},{default:b((()=>a[3]||(a[3]=[k("导出Excel")]))),_:1}),v(y(j),{strong:"",secondary:""},{default:b((()=>a[4]||(a[4]=[k("打印")]))),_:1}),v(x,{trigger:"hover",options:E},{default:b((()=>[v(y(j),null,{default:b((()=>a[5]||(a[5]=[k("更多...")]))),_:1})])),_:1})])),_:1})])),_:1},8,["columns","api"])])),_:1})}}});export{A as default}; diff --git a/docs/assets/index-CtdGT7EU.js b/docs/assets/index-CtdGT7EU.js new file mode 100644 index 0000000..e1e0a16 --- /dev/null +++ b/docs/assets/index-CtdGT7EU.js @@ -0,0 +1 @@ +var e=Object.defineProperty,o=Object.defineProperties,r=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,s=(o,r,a)=>r in o?e(o,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[r]=a,n=(e,o)=>{for(var r in o||(o={}))t.call(o,r)&&s(e,r,o[r]);if(a)for(var r of a(o))l.call(o,r)&&s(e,r,o[r]);return e},i=(e,a)=>o(e,r(a));import{d as p,bh as c,a as u,o as d,p as m,g as v,j as y,s as f,H as _,O as b,e as g,bi as h,bj as C,bk as j,c as w,w as O,bl as k,b as x,L as P}from"./index-BT0ZcDkn.js";import{_ as F}from"./plugin-vueexport-helper-BCo6x5W8.js";import{_ as A,a as M}from"./Grid-qb506I7V.js";import"./next-frame-once-DiJwGkuW.js";import"./get-slot-BjAOOWF7.js";var N=function(e){var o=e/255;return o<.04045?o/12.92:Math.pow((o+.055)/1.055,2.4)},S=function(e){return.2126*N(e.r)+.7152*N(e.g)+.0722*N(e.b)};function R(e){e.prototype.luminance=function(){return e=S(this.rgba),void 0===(o=2)&&(o=0),void 0===r&&(r=Math.pow(10,o)),Math.round(r*e)/r+0;var e,o,r},e.prototype.contrast=function(o){void 0===o&&(o="#FFF");var r,a,t,l,s,n,i,p=o instanceof e?o:new e(o);return l=this.rgba,s=p.toRgb(),r=(n=S(l))>(i=S(s))?(n+.05)/(i+.05):(i+.05)/(n+.05),void 0===(a=2)&&(a=0),void 0===t&&(t=Math.pow(10,a)),Math.floor(t*r)/t+0},e.prototype.isReadable=function(e,o){return void 0===e&&(e="#FFF"),void 0===o&&(o={}),this.contrast(e)>=(s=void 0===(l=(r=o).size)?"normal":l,"AAA"===(t=void 0===(a=r.level)?"AA":a)&&"normal"===s?7:"AA"===t&&"large"===s?3:4.5);var r,a,t,l,s}}const E={class:"color-palette"},H={class:"color-palette__header-title"},I={class:"color-palette__header-value"},z={class:"color-palette__header-value-name"},D=["onClick"],G={class:"color-palette__item-label"},L=F(p(i(n({},{name:"ColorPalette"}),{__name:"ColorPalette",props:{primaryColor:{type:String,default:"#66CCFF"},colorName:{type:String,default:"primary"},colorType:{type:String,default:"hex"}},setup(e){function o(e){return h(e).luminance()>.4?"black":"white"}function r(e){return{backgroundColor:e,color:o(e)}}c([R]);const a=u(!1);return(t,l)=>(d(),m("div",E,[v("div",{class:"color-palette__header",style:f({backgroundColor:e.primaryColor,color:o(e.primaryColor)})},[v("div",H,y(e.colorName),1),v("div",I,[v("span",z,y(e.colorName)+"-6",1),v("span",{class:"color-palette__header-value-color",style:f(r(e.primaryColor))},y(e.primaryColor),5)])],4),(d(!0),m(_,null,b(g(C)(e.primaryColor),((o,t)=>(d(),m("div",{key:t},[v("div",{style:f(r(o)),class:"color-palette__item",onMouseover:l[0]||(l[0]=e=>a.value=!0),onMouseleave:l[1]||(l[1]=e=>a.value=!1),onClick:e=>{j(o)}},[v("span",G,y(e.colorName)+"-"+y(t+1),1),v("span",{class:"color-palette__item-value",style:f({opacity:g(a)?1:0})},y(g(h)(o).toHex().toString().toUpperCase()),5)],44,D)])))),128))]))}})),[["__scopeId","data-v-2ad029e3"]]),T=p(i(n({},{name:"PalettePage"}),{__name:"index",setup:e=>(e,o)=>{const r=P,a=A,t=M;return d(),w(t,{cols:"4","x-gap":16,"y-gap":16,responsive:"screen","item-responsive":""},{default:O((()=>[(d(!0),m(_,null,b(g(k),((e,o)=>(d(),w(a,{key:e},{default:O((()=>[x(r,{class:"overflow-hidden"},{default:O((()=>[(d(),w(L,{key:o,"color-name":o,"color-type":"hex","primary-color":e},null,8,["color-name","primary-color"]))])),_:2},1024)])),_:2},1024)))),128))])),_:1})}}));export{T as default}; diff --git a/docs/assets/index-D4YjQK5G.js b/docs/assets/index-D4YjQK5G.js new file mode 100644 index 0000000..e0e25d9 --- /dev/null +++ b/docs/assets/index-D4YjQK5G.js @@ -0,0 +1 @@ +var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,n=(t,r,a)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[r]=a;import{d as s,u as o,bm as l,o as c,p as d,aB as u,c as b,w as x,g as m,j as f,e as v,L as y}from"./index-BT0ZcDkn.js";const g=""+new URL("hero-DKuPmvoD.gif",import.meta.url).href,h={class:"space-y-3xl text-white text-chinese"},j={class:"text-7xl"},w={class:"text-xl"},O={class:"text-xl"},D=["src"],P=s((_=((e,t)=>{for(var r in t||(t={}))p.call(t,r)&&n(e,r,t[r]);if(a)for(var r of a(t))i.call(t,r)&&n(e,r,t[r]);return e})({},{name:"Ripple"}),t(_,r({__name:"index",setup(e){const{t:t}=o();return(e,r)=>{const a=y,p=l("ripple");return c(),d("div",null,[u((c(),b(a,{"content-class":"bg-primary rounded-2xl"},{default:x((()=>[m("div",h,[m("h1",j,f(v(t)("page.rippleDirective.ripple")),1),m("p",w,f(v(t)("page.rippleDirective.description1")),1),m("p",O,f(v(t)("page.rippleDirective.description2")),1)])])),_:1})),[[p]]),m("img",{src:v(g),class:"rounded-2xl object-cover min-h-[56px] max-h-[400px] w-1/2",alt:"Two containers that display a bounded and unbounded ripple on interaction.",title:"A bounded and unbounded ripple."},null,8,D)])}}}))));var _;export{P as default}; diff --git a/docs/assets/index-DJtKRHrO.js b/docs/assets/index-DJtKRHrO.js new file mode 100644 index 0000000..5e6f9f0 --- /dev/null +++ b/docs/assets/index-DJtKRHrO.js @@ -0,0 +1 @@ +import{d as e,a as o,o as a,c as t,w as s,b as l,h as n,B as c,L as r}from"./index-BT0ZcDkn.js";import{_ as i}from"./plugin-vueexport-helper-BCo6x5W8.js";import{_ as d,a as p}from"./Switch-obDBD39a.js";import{_ as u}from"./Space-_SFqgYmP.js";import"./Dropdown-BMB08iEg.js";import"./Popover-3mPJ01hC.js";import"./use-merged-state-D7wGS6Km.js";import"./use-compitable-CHcH6xDN.js";import"./next-frame-once-DiJwGkuW.js";import"./create-Bylz8BGN.js";import"./Tooltip-BFoQMn72.js";import"./index-LLZlmyqL.js";import"./get-slot-BjAOOWF7.js";const m=i(e({setup(){const e=o(!1),a=o("难吃"),t=o(null);return{menuInstRef:t,selectAndExpand:e=>{var o;a.value=e,null==(o=t.value)||o.showOption(e)},accordion:e,selectedKey:a,options:[{label:"学五",key:"学五",children:[{label:"难吃",key:"难吃"}]},{label:"学一",key:"/components",children:[{label:"也难吃",key:"/components/headlessTable/basic"}]},{label:"燕南",key:"燕南",children:[{label:"依然难吃",key:"依然难吃"}]}]}}}),[["render",function(e,o,i,m,f,j){const b=d,v=c,h=p,k=u,x=r;return a(),t(x,{title:"menu"},{default:s((()=>[l(k,{vertical:""},{default:s((()=>[l(b,{value:e.accordion,"onUpdate:value":o[0]||(o[0]=o=>e.accordion=o)},{checked:s((()=>o[5]||(o[5]=[n(" 手风琴 ")]))),unchecked:s((()=>o[6]||(o[6]=[n(" 普通 ")]))),_:1},8,["value"]),l(v,{onClick:o[1]||(o[1]=o=>e.selectAndExpand("难吃"))},{default:s((()=>o[7]||(o[7]=[n(" 选中第一项 ")]))),_:1}),l(v,{onClick:o[2]||(o[2]=o=>e.selectAndExpand("/components/headlessTable/basic"))},{default:s((()=>o[8]||(o[8]=[n(" 选中第二项 ")]))),_:1}),l(v,{onClick:o[3]||(o[3]=o=>e.selectAndExpand("依然难吃"))},{default:s((()=>o[9]||(o[9]=[n(" 选中第三项 ")]))),_:1}),l(h,{ref:"menuInstRef",value:e.selectedKey,"onUpdate:value":o[4]||(o[4]=o=>e.selectedKey=o),options:e.options,accordion:e.accordion},null,8,["value","options","accordion"])])),_:1})])),_:1})}]]);export{m as default}; diff --git a/docs/assets/index-DTlshqIS.js b/docs/assets/index-DTlshqIS.js new file mode 100644 index 0000000..43c5765 --- /dev/null +++ b/docs/assets/index-DTlshqIS.js @@ -0,0 +1 @@ +import{d as e,bn as t,u as s,k as a,l as i,c as l,w as o,e as r,L as n,o as d,b as p,h as u,j as m,bo as c,B as f}from"./index-BT0ZcDkn.js";import{_ as g,a as y}from"./CurrentPermissionMode.vuevuetypescriptsetuptruelang-DP-DEThw.js";import{_}from"./Space-_SFqgYmP.js";import"./get-slot-BjAOOWF7.js";const R=e({__name:"index",setup(e){const{changeRole:R}=t(),{t:b}=s(),S=a(),h=i((()=>S.getRoleList.includes(c.ADMIN))),j=i((()=>S.getRoleList.includes(c.USER)));return(e,t)=>{const s=n,a=y,i=f,L=_;return d(),l(s,{title:r(b)("page.permission.pageTitles.frontend")},{default:o((()=>[p(g),p(s,{class:"my-4",title:r(b)("page.permission.currentRole"),embedded:"",bordered:!1},{default:o((()=>[u(m(r(S).getRoleList),1)])),_:1},8,["title"]),p(a,{class:"my-4",type:"info",title:r(b)("page.permission.clickToSeeLeftMenuChange"),"show-icon":""},null,8,["title"]),p(s,{class:"mt-4",title:r(b)("page.permission.frontendPermissionSwitchTitle"),embedded:"",bordered:!1},{default:o((()=>[p(L,null,{default:o((()=>[p(i,{type:r(h)?"primary":"default",onClick:t[0]||(t[0]=e=>r(R)(r(c).ADMIN))},{default:o((()=>[u(m(r(c).ADMIN),1)])),_:1},8,["type"]),p(i,{type:r(j)?"primary":"default",onClick:t[1]||(t[1]=e=>r(R)(r(c).USER))},{default:o((()=>[u(m(r(c).USER),1)])),_:1},8,["type"])])),_:1})])),_:1},8,["title"])])),_:1},8,["title"])}}});export{R as default}; diff --git a/docs/assets/index-GzWcCMOW.js b/docs/assets/index-GzWcCMOW.js new file mode 100644 index 0000000..be1f52b --- /dev/null +++ b/docs/assets/index-GzWcCMOW.js @@ -0,0 +1 @@ +var e=Object.defineProperty,t=Object.defineProperties,o=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,l=(t,o,s)=>o in t?e(t,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[o]=s;import{u as n,F as p,c as i,g as d,a as c,_ as u}from"./index-B014LJnX.js";import{_ as g}from"./Pagination-YSg8zdta.js";import{d as m,m as f,o as j,c as b,w as y,b as P,e as h,g as w,p as x,H as O,O as k,q as v,L as R}from"./index-BT0ZcDkn.js";import{_}from"./Empty-C_CzYco1.js";import"./use-locale-CbMPSc0o.js";import"./use-merged-state-D7wGS6Km.js";import"./Input-D2qMgPO1.js";import"./Select-D_I2Mr2d.js";import"./use-compitable-CHcH6xDN.js";import"./create-Bylz8BGN.js";import"./Popover-3mPJ01hC.js";import"./next-frame-once-DiJwGkuW.js";import"./Tag-D4OMG_5z.js";import"./index-LLZlmyqL.js";import"./FocusDetector-C7V71fRC.js";import"./Checkmark-DuWLWy-v.js";import"./Forward-xWz6l688.js";const C=["colspan"],I={key:0},S=["colspan"],T=m((V=((e,t)=>{for(var o in t||(t={}))r.call(t,o)&&l(e,o,t[o]);if(s)for(var o of s(t))a.call(t,o)&&l(e,o,t[o]);return e})({},{name:"HeadlessTablePagination"}),t(V,o({__name:"index",setup(e){const t=i(),o=[t.accessor((e=>e.userInput),{id:"userInput",cell:e=>e.getValue(),header:()=>" 用户输入",footer:e=>e.column.id}),t.accessor((e=>e.expectedReply),{id:"expectedReply",cell:e=>e.getValue(),header:()=>"预期回复",footer:e=>e.column.id}),t.accessor((e=>e.isTestPassed),{id:"isTestPassed",cell:e=>!0===e.getValue()?"✅":"❌",header:()=>"是否通过测试",footer:e=>e.column.id})],s=[];f((()=>{for(let e=0;e<100;e++)s.push({id:e,userInput:`用户输入${e}`,expectedReply:`预期回复${e}`,isTestPassed:e%2==0})}));const r=n({get data(){return s},debugAll:!1,columns:o,getCoreRowModel:d(),getPaginationRowModel:c()});function a(e){r.setPageIndex(e-1)}function l(e){r.setPageSize(e)}return(e,t)=>{const o=_,s=u,n=g,i=R;return j(),b(i,{title:"分页表单"},{action:y((()=>[P(n,{page:h(r).getState().pagination.pageIndex+1,"page-count":h(r).getPageCount(),"show-size-picker":"","page-sizes":[10,20,30,40,50],"onUpdate:page":a,"onUpdate:pageSize":l},null,8,["page","page-count"])])),default:y((()=>[P(s,{bordered:!0,"single-line":!1,striped:""},{default:y((()=>[w("thead",null,[(j(!0),x(O,null,k(h(r).getHeaderGroups(),(e=>(j(),x("tr",{key:e.id},[(j(!0),x(O,null,k(e.headers,(e=>(j(),x("th",{key:e.id,colspan:e.colSpan,class:"font-bold!",scope:"col"},[P(h(p),{render:e.column.columnDef.header,props:e.getContext()},null,8,["render","props"])],8,C)))),128))])))),128))]),w("tbody",null,[(j(!0),x(O,null,k(h(r).getRowModel().rows,(e=>(j(),x("tr",{key:e.id},[(j(!0),x(O,null,k(e.getVisibleCells(),(e=>(j(),x("td",{key:e.id},[w("div",null,[w("div",null,[P(h(p),{render:e.column.columnDef.cell,props:e.getContext()},null,8,["render","props"])])])])))),128))])))),128)),0===h(r).getRowModel().rows.length?(j(),x("tr",I,[w("td",{colspan:h(r).getAllColumns().length},[P(o)],8,S)])):v("",!0)])])),_:1})])),_:1})}}}))));var V;export{T as default}; diff --git a/docs/assets/index-J67kjxMB.js b/docs/assets/index-J67kjxMB.js new file mode 100644 index 0000000..5e6f9f0 --- /dev/null +++ b/docs/assets/index-J67kjxMB.js @@ -0,0 +1 @@ +import{d as e,a as o,o as a,c as t,w as s,b as l,h as n,B as c,L as r}from"./index-BT0ZcDkn.js";import{_ as i}from"./plugin-vueexport-helper-BCo6x5W8.js";import{_ as d,a as p}from"./Switch-obDBD39a.js";import{_ as u}from"./Space-_SFqgYmP.js";import"./Dropdown-BMB08iEg.js";import"./Popover-3mPJ01hC.js";import"./use-merged-state-D7wGS6Km.js";import"./use-compitable-CHcH6xDN.js";import"./next-frame-once-DiJwGkuW.js";import"./create-Bylz8BGN.js";import"./Tooltip-BFoQMn72.js";import"./index-LLZlmyqL.js";import"./get-slot-BjAOOWF7.js";const m=i(e({setup(){const e=o(!1),a=o("难吃"),t=o(null);return{menuInstRef:t,selectAndExpand:e=>{var o;a.value=e,null==(o=t.value)||o.showOption(e)},accordion:e,selectedKey:a,options:[{label:"学五",key:"学五",children:[{label:"难吃",key:"难吃"}]},{label:"学一",key:"/components",children:[{label:"也难吃",key:"/components/headlessTable/basic"}]},{label:"燕南",key:"燕南",children:[{label:"依然难吃",key:"依然难吃"}]}]}}}),[["render",function(e,o,i,m,f,j){const b=d,v=c,h=p,k=u,x=r;return a(),t(x,{title:"menu"},{default:s((()=>[l(k,{vertical:""},{default:s((()=>[l(b,{value:e.accordion,"onUpdate:value":o[0]||(o[0]=o=>e.accordion=o)},{checked:s((()=>o[5]||(o[5]=[n(" 手风琴 ")]))),unchecked:s((()=>o[6]||(o[6]=[n(" 普通 ")]))),_:1},8,["value"]),l(v,{onClick:o[1]||(o[1]=o=>e.selectAndExpand("难吃"))},{default:s((()=>o[7]||(o[7]=[n(" 选中第一项 ")]))),_:1}),l(v,{onClick:o[2]||(o[2]=o=>e.selectAndExpand("/components/headlessTable/basic"))},{default:s((()=>o[8]||(o[8]=[n(" 选中第二项 ")]))),_:1}),l(v,{onClick:o[3]||(o[3]=o=>e.selectAndExpand("依然难吃"))},{default:s((()=>o[9]||(o[9]=[n(" 选中第三项 ")]))),_:1}),l(h,{ref:"menuInstRef",value:e.selectedKey,"onUpdate:value":o[4]||(o[4]=o=>e.selectedKey=o),options:e.options,accordion:e.accordion},null,8,["value","options","accordion"])])),_:1})])),_:1})}]]);export{m as default}; diff --git a/docs/assets/index-LLZlmyqL.js b/docs/assets/index-LLZlmyqL.js new file mode 100644 index 0000000..0581e74 --- /dev/null +++ b/docs/assets/index-LLZlmyqL.js @@ -0,0 +1 @@ +import{d as t,a as e,bA as o,a2 as n,an as s,v as i,ae as l}from"./index-BT0ZcDkn.js";import{c as r,b as a}from"./Popover-3mPJ01hC.js";const u="v-hidden",c=a("[v-hidden]",{display:"none!important"}),f=t({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(t,{slots:s}){const i=e(null),l=e(null);function a(e){const{value:o}=i,{getCounter:n,getTail:r}=t;let a;if(a=void 0!==n?n():l.value,!o||!a)return;a.hasAttribute(u)&&a.removeAttribute(u);const{children:c}=o;if(e.showAllItemsBeforeCalculate)for(const t of c)t.hasAttribute(u)&&t.removeAttribute(u);const f=o.offsetWidth,d=[],h=s.tail?null==r?void 0:r():null;let v=h?h.offsetWidth:0,p=!1;const b=o.children.length-(s.tail?1:0);for(let s=0;sf){const{updateCounter:e}=t;for(let o=s;o>=0;--o){const n=b-1-o;void 0!==e?e(n):a.textContent=`${n}`;const i=a.offsetWidth;if(v-=d[o],v+i<=f||0===o){p=!0,s=o-1,h&&(-1===s?(h.style.maxWidth=f-i+"px",h.style.boxSizing="border-box"):h.style.maxWidth="");const{onUpdateCount:e}=t;e&&e(n);break}}}}const{onUpdateOverflow:m}=t;p?void 0!==m&&m(!0):(void 0!==m&&m(!1),a.setAttribute(u,""))}const f=o();return c.mount({id:"vueuc/overflow",head:!0,anchorMetaName:r,ssr:f}),n((()=>a({showAllItemsBeforeCalculate:!1}))),{selfRef:i,counterRef:l,sync:a}},render(){const{$slots:t}=this;return s((()=>this.sync({showAllItemsBeforeCalculate:!1}))),i("div",{class:"v-overflow",ref:"selfRef"},[l(t,"default"),t.counter?t.counter():i("span",{style:{display:"inline-block"},ref:"counterRef"}),t.tail?t.tail():null])}});export{f as V}; diff --git a/docs/assets/index-R-_qEdOR.js b/docs/assets/index-R-_qEdOR.js new file mode 100644 index 0000000..d192f44 --- /dev/null +++ b/docs/assets/index-R-_qEdOR.js @@ -0,0 +1,25 @@ +var t=Object.defineProperty,e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,r=(e,n,i)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,o=(t,o)=>{for(var a in o||(o={}))n.call(o,a)&&r(t,a,o[a]);if(e)for(var a of e(o))i.call(o,a)&&r(t,a,o[a]);return t};import{d as a,$ as s,i as l,aj as u,l as h,ak as c,a0 as p,a1 as f,a2 as d,aL as g,v,Z as y,e as m,an as _}from"./index-BT0ZcDkn.js"; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var x=function(t,e){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function w(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var b=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),S=new(function(){return function(){this.browser=new b,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(S.wxa=!0,S.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?S.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(S.node=!0,S.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,S);var T="12px sans-serif";var M=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)s=a*n.length;else for(var l=0;l>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),s=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,f=h.top;a.push(p,f),l=l&&o&&p===o[c]&&f===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?Kt(s,a):Kt(a,s))}(a,o,r);if(s)return s(t,n,i),!0}return!1}function te(t){return"CANVAS"===t.nodeName.toUpperCase()}var ee=/([&<>"'])/g,ne={"&":"&","<":"<",">":">",'"':""","'":"'"};function ie(t){return null==t?"":(t+"").replace(ee,(function(t,e){return ne[e]}))}var re=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oe=[],ae=S.browser.firefox&&+S.browser.version.split(".")[0]<39;function se(t,e,n,i){return n=n||{},i?le(t,e,n):ae&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):le(t,e,n),n}function le(t,e,n){if(S.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(te(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(Jt(oe,t,i,r))return n.zrX=oe[0],void(n.zrY=oe[1])}n.zrX=n.zrY=0}function ue(t){return t||window.event}function he(t,e,n){if(null!=(e=ue(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&se(t,r,e,n)}else{se(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&re.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}var ce=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},pe=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=fe(r)/fe(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function ge(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ve(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function ye(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function me(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function _e(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}var xe=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),we=Math.min,be=Math.max,Se=new xe,Te=new xe,Me=new xe,Ce=new xe,Ie=new xe,ke=new xe,De=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=we(t.x,this.x),n=we(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=be(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=be(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return ye(r,r,[-e.x,-e.y]),function(t,e,n){var i=n[0],r=n[1];t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r}(r,r,[n,i]),ye(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(od&&(d=_,gd&&(d=x,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Se.x=Me.x=n.x,Se.y=Ce.y=n.y,Te.x=Ce.x=n.x+n.width,Te.y=Me.y=n.y+n.height,Se.transform(i),Ce.transform(i),Te.transform(i),Me.transform(i),e.x=we(Se.x,Te.x,Me.x,Ce.x),e.y=we(Se.y,Te.y,Me.y,Ce.y);var l=be(Se.x,Te.x,Me.x,Ce.x),u=be(Se.y,Te.y,Me.y,Ce.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Pe="silent";function Ae(){ce(this.event)}var Oe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return w(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(qt),Le=function(){return function(t,e){this.x=t,this.y=e}}(),Re=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Be=new De(0,0,0,0),ze=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new Le(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new Oe,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new Yt(a),a}return w(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(j(Re,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Fe(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new Le(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Le(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ae}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new Le(t,e);if(Ee(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new De(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Be.copy(h.getBoundingRect()),h.transform&&Be.applyTransform(h.transform),Be.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,p=2*Math.PI,f=0;f=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Ne(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Pe)){e.target=a;break}}}function Fe(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}j(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){ze.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Fe(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Ft(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));function He(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function Ve(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function We(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function Ge(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Ue(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=Ge(t[h],t,l,u,0,e);l+=p,0!==(u-=p)&&0!==(c=We(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l=7||f>=7);if(d)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[f+l]=t[p+l];return void(t[c]=a[h])}var d=r;for(;;){var g=0,v=0,y=!1;do{if(e(a[h],t[u])<0){if(t[c--]=t[u--],g++,v=0,0==--i){y=!0;break}}else if(t[c--]=a[h--],v++,g=0,1==--s){y=!0;break}}while((g|v)=0;l--)t[f+l]=t[p+l];if(0===i){y=!0;break}}if(t[c--]=a[h--],1==--s){y=!0;break}if(0!==(v=s-We(t[u],a,0,s,s-1,e))){for(s-=v,f=(c-=v)+1,p=(h-=v)+1,l=0;l=7||v>=7);if(y)break;d<0&&(d=0),d+=2}(r=d)<1&&(r=1);if(1===s){for(f=(c-=i)+1,p=(u-=i)+1,l=i-1;l>=0;l--)t[f+l]=t[p+l];t[c]=a[h]}else{if(0===s)throw new Error;for(p=c-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=He(t,n,i,e))s&&(l=s),Ve(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var Ye=!1;function qe(){Ye||(Ye=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function je(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Ze,Ke=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=je}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(qe(),u.z=0),isNaN(u.z2)&&(qe(),u.z2=0),isNaN(u.zlevel)&&(qe(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();Ze=S.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var $e={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-$e.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*$e.bounceIn(2*t):.5*$e.bounceOut(2*t-1)+.5}},Qe=Math.pow,Je=Math.sqrt,tn=1e-8,en=1e-4,nn=Je(3),rn=1/3,on=Ot(),an=Ot(),sn=Ot();function ln(t){return t>-1e-8&&ttn||t<-1e-8}function hn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function cn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function pn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,f=0;if(ln(h)&&ln(c)){if(ln(s))o[0]=0;else(T=-l/s)>=0&&T<=1&&(o[f++]=T)}else{var d=c*c-4*h*p;if(ln(d)){var g=c/h,v=-g/2;(T=-s/a+g)>=0&&T<=1&&(o[f++]=T),v>=0&&v<=1&&(o[f++]=v)}else if(d>0){var y=Je(d),m=h*s+1.5*a*(-c+y),_=h*s+1.5*a*(-c-y);(T=(-s-((m=m<0?-Qe(-m,rn):Qe(m,rn))+(_=_<0?-Qe(-_,rn):Qe(_,rn))))/(3*a))>=0&&T<=1&&(o[f++]=T)}else{var x=(2*h*s-3*a*c)/(2*Je(h*h*h)),w=Math.acos(x)/3,b=Je(h),S=Math.cos(w),T=(-s-2*b*S)/(3*a),M=(v=(-s+b*(S+nn*Math.sin(w)))/(3*a),(-s+b*(S-nn*Math.sin(w)))/(3*a));T>=0&&T<=1&&(o[f++]=T),v>=0&&v<=1&&(o[f++]=v),M>=0&&M<=1&&(o[f++]=M)}}return f}function fn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(ln(a)){if(un(o))(h=-s/o)>=0&&h<=1&&(r[l++]=h)}else{var u=o*o-4*a*s;if(ln(u))r[0]=-o/(2*a);else if(u>0){var h,c=Je(u),p=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}function dn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function gn(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,f=1;f<=l;f++){var d=f*p,g=hn(t,n,r,a,d),v=hn(e,i,o,s,d),y=g-u,m=v-h;c+=Math.sqrt(y*y+m*m),u=g,h=v}return c}function vn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function yn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function mn(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function _n(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function xn(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,f=vn(t,n,r,p),d=vn(e,i,o,p),g=f-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=f,l=d}return u}var wn=/cubic-bezier\(([0-9,\.e ]+)\)/;function bn(t){var e=t&&wn.exec(t);if(e){var n=e[1].split(","),i=+_t(n[0]),r=+_t(n[1]),o=+_t(n[2]),a=+_t(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:pn(0,i,o,1,t,s)&&hn(0,r,a,1,s[0])}}}var Sn=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Pt,this.ondestroy=t.ondestroy||Pt,this.onrestart=t.onrestart||Pt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=it(t)?t:$e[t]||bn(t)},t}(),Tn=function(){return function(t){this.value=t}}(),Mn=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Tn(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Cn=function(){function t(t){this._list=new Mn,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Tn(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),In={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function kn(t){return(t=Math.round(t))<0?0:t>255?255:t}function Dn(t){return t<0?0:t>1?1:t}function Pn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?kn(parseFloat(e)/100*255):kn(parseInt(e,10))}function An(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Dn(parseFloat(e)/100):Dn(parseFloat(e))}function On(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Ln(t,e,n){return t+(e-t)*n}function Rn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Bn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var zn=new Cn(20),Nn=null;function En(t,e){Nn&&Bn(Nn,e),Nn=zn.put(t,Nn||e.slice())}function Fn(t,e){if(t){e=e||[];var n=zn.get(t);if(n)return Bn(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in In)return Bn(e,In[i]),En(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(Rn(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),En(t,e),e):void Rn(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(Rn(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),En(t,e),e):void Rn(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Rn(e,+u[0],+u[1],+u[2],1):Rn(e,0,0,0,1);h=An(u.pop());case"rgb":return u.length>=3?(Rn(e,Pn(u[0]),Pn(u[1]),Pn(u[2]),3===u.length?h:An(u[3])),En(t,e),e):void Rn(e,0,0,0,1);case"hsla":return 4!==u.length?void Rn(e,0,0,0,1):(u[3]=An(u[3]),Hn(u,e),En(t,e),e);case"hsl":return 3!==u.length?void Rn(e,0,0,0,1):(Hn(u,e),En(t,e),e);default:return}}Rn(e,0,0,0,1)}}function Hn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=An(t[1]),r=An(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Rn(e=e||[],kn(255*On(a,o,n+1/3)),kn(255*On(a,o,n)),kn(255*On(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Vn(t,e){var n=Fn(t);if(n){for(var i=0;i<3;i++)n[i]=n[i]*(1-e)|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return Gn(n,4===n.length?"rgba":"rgb")}}function Wn(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Fn(e[r]),s=Fn(e[o]),l=i-r,u=Gn([kn(Ln(a[0],s[0],l)),kn(Ln(a[1],s[1],l)),kn(Ln(a[2],s[2],l)),Dn(Ln(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function Gn(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function Un(t,e){var n=Fn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var Xn=new Cn(100);function Yn(t){if(rt(t)){var e=Xn.get(t);return e||(e=Vn(t,-.1),Xn.put(t,e)),e}if(ct(t)){var n=G({},t);return n.colorStops=Z(t.colorStops,(function(t){return{offset:t.offset,color:Vn(t.color,-.1)}})),n}return t}S.hasGlobalWindow&&it(window.btoa);var qn=Array.prototype.slice;function jn(t,e,n){return(e-t)*n+t}function Zn(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(q(e)){var l=function(t){return q(t&&t[0])?2:1}(e);a=l,(1===l&&!at(e[0])||2===l&&!at(e[0][0]))&&(o=!0)}else if(at(e)&&!pt(e))a=0;else if(rt(e))if(isNaN(+e)){var u=Fn(e);u&&(s=u,a=3)}else a=0;else if(ct(e)){var h=G({},s);h.colorStops=Z(e.colorStops,(function(t){return{offset:t.offset,color:Fn(t.color)}})),"linear"===e.type?a=4:function(t){return"radial"===t.type}(e)&&(a=5),s=h}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=it(n)?n:$e[n]||bn(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=ii(i),l=ni(i),u=0;u=0&&!(l[n].percent<=e);n--);n=f(n,u-2)}else{for(n=p;ne);n++);n=f(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var d=r.percent-i.percent,g=0===d?1:f((e-i.percent)/d,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:c?ri:t[h];if(!ii(s)&&!c||v||(v=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(ii(s))1===s?Zn(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,ti(l),i),this._trackKeys.push(a)}s.addKeyframe(t,ti(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function si(){return(new Date).getTime()}var li,ui,hi=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return w(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=si()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Ze((function e(){t._running&&(Ze(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=si(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=si(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=si()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new ai(t,e.loop);return this.addAnimator(n),n},e}(qt),ci=S.domSupported,pi=(ui={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:li=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:Z(li,(function(t){var e=t.replace("mouse","pointer");return ui.hasOwnProperty(e)?e:t}))}),fi=["mousemove","mouseup"],di=["pointermove","pointerup"],gi=!1;function vi(t){var e=t.pointerType;return"pen"===e||"touch"===e}function yi(t){t&&(t.zrByTouch=!0)}function mi(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var _i=function(){return function(t,e){this.stopPropagation=Pt,this.stopImmediatePropagation=Pt,this.preventDefault=Pt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}}(),xi={mousedown:function(t){t=he(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=he(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=he(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){mi(this,(t=he(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){gi=!0,t=he(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){gi||(t=he(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){yi(t=he(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),xi.mousemove.call(this,t),xi.mousedown.call(this,t)},touchmove:function(t){yi(t=he(this.dom,t)),this.handler.processGesture(t,"change"),xi.mousemove.call(this,t)},touchend:function(t){yi(t=he(this.dom,t)),this.handler.processGesture(t,"end"),xi.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&xi.click.call(this,t)},pointerdown:function(t){xi.mousedown.call(this,t)},pointermove:function(t){vi(t)||xi.mousemove.call(this,t)},pointerup:function(t){xi.mouseup.call(this,t)},pointerout:function(t){vi(t)||xi.mouseout.call(this,t)}};j(["click","dblclick","contextmenu"],(function(t){xi[t]=function(e){e=he(this.dom,e),this.trigger(t,e)}}));var wi={pointermove:function(t){vi(t)||wi.mousemove.call(this,t)},pointerup:function(t){wi.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function bi(t,e){var n=e.domHandlers;S.pointerEventsSupported?j(pi.pointer,(function(i){Ti(e,i,(function(e){n[i].call(t,e)}))})):(S.touchEventsSupported&&j(pi.touch,(function(i){Ti(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),j(pi.mouse,(function(i){Ti(e,i,(function(r){r=ue(r),e.touching||n[i].call(t,r)}))})))}function Si(t,e){function n(n){Ti(e,n,(function(i){i=ue(i),mi(t,i.target)||(i=function(t,e){return he(t.dom,new _i(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}S.pointerEventsSupported?j(di,n):S.touchEventsSupported||j(fi,n)}function Ti(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,function(t,e,n,i){t.addEventListener(e,n,i)}(t.domTarget,e,n,i)}function Mi(t){var e,n,i,r,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,i=o[a],r=t.listenerOpts[a],e.removeEventListener(n,i,r));t.mounted={}}var Ci=function(){return function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}}(),Ii=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Ci(e,xi),ci&&(i._globalHandlerScope=new Ci(document,wi)),bi(i,i._localHandlerScope),i}return w(e,t),e.prototype.dispose=function(){Mi(this._localHandlerScope),ci&&Mi(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,ci&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Si(this,e):Mi(e)}},e}(qt),ki=1;S.hasGlobalWindow&&(ki=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Di=ki,Pi="#333",Ai="#ccc",Oi=ge,Li=5e-5;function Ri(t){return t>Li||t<-5e-5}var Bi=[],zi=[],Ni=[1,0,0,1,0,0],Ei=Math.abs,Fi=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Ri(this.rotation)||Ri(this.x)||Ri(this.y)||Ri(this.scaleX-1)||Ri(this.scaleY-1)||Ri(this.skewX)||Ri(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Oi(n),t&&(e?ve(n,t,n):function(t,e){t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]}(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Oi(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Bi);var n=Bi[0]<0?-1:1,i=Bi[1]<0?-1:1,r=((Bi[0]-n)*e+n)/Bi[0]||0,o=((Bi[1]-i)*e+i)/Bi[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],_e(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],ve(zi,t.invTransform,e),e=zi);var n=this.originX,i=this.originY;(n||i)&&(Ni[4]=n,Ni[5]=i,ve(zi,e,Ni),zi[4]-=n,zi[5]-=i,e=zi),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Wt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Wt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Ei(t[0]-1)>1e-10&&Ei(t[3]-1)>1e-10?Math.sqrt(Ei(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){!function(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function Zi(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=ji(i[0],n.width),u+=ji(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var Ki="__zr_normal__",$i=Hi.concat(["ignore"]),Qi=K(Hi,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Ji={},tr=new De(0,0,0,0),er=function(){function t(t){this.id=F(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=tr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ji,n,u):Zi(Ji,n,u),r.x=Ji.x,r.y=Ji.y,o=Ji.align,a=Ji.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=ji(h[0],u.width),p=ji(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var f=n.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var d=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),(v=v||"#000")===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ai:Pi},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Fn(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Gn(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},G(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(st(t))for(var n=J(t),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Ki,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Ki;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(X(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}H("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,f);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=X(i,t),o=X(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var p=0;p0||r.force&&!a.length){var b,S=void 0,T=void 0,M=void 0;if(s){T={},p&&(S={});for(x=0;x<_;x++){T[y=g[x]]=n[y],p?S[y]=i[y]:n[y]=i[y]}}else if(p){M={};for(x=0;x<_;x++){M[y=g[x]]=ti(n[y]),rr(n,i,y)}}(b=new ai(n,!1,!1,c?$(d,(function(t){return t.targetName===e})):null)).targetName=e,r.scope&&(b.scope=r.scope),p&&S&&b.whenWithKeys(0,S,g),M&&b.whenWithKeys(0,M,g),b.whenWithKeys(null==u?500:u,s?T:i,g).delay(h||0),t.addAnimator(b,e),a.push(b)}}Y(er,qt),Y(er,Fi);var ar=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return w(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=X(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=X(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function fr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return rt(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function dr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function gr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return function(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}(t)}function vr(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function yr(t,e){var n=K(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var i=Math.pow(10,e),r=Z(t,(function(t){return(isNaN(t)?0:t)/n*i*100})),o=100*i,a=Z(r,(function(t){return Math.floor(t)})),s=K(a,(function(t,e){return t+e}),0),l=Z(r,(function(t,e){return t-a[e]}));su&&(u=l[c],h=c);++a[h],l[h]=0,++s}return Z(a,(function(t){return t/i}))}function mr(t,e){var n=Math.max(gr(t),gr(e)),i=t+e;return n>20?i:dr(i,n)}function _r(t){var e=2*Math.PI;return(t%e+e)%e}function xr(t){return t>-1e-4&&t=10&&e++,e}function Tr(t,e){var n=Sr(t),i=Math.pow(10,n),r=t/i;return t=(r<1.5?1:r<2.5?2:r<4?3:r<7?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function Mr(t){var e=parseFloat(t);return e==t&&(0!==e||!rt(t)||t.indexOf("x")<=0)?e:NaN}function Cr(){return Math.round(9*Math.random())}function Ir(t,e){return 0===e?t:Ir(e,t%e)}function kr(t,e){return null==t?e:null==e?t:t*e/Ir(t,e)}function Dr(t){throw new Error(t)}function Pr(t,e,n){return(e-t)*n+t}var Ar="series\0";function Or(t){return t instanceof Array?t:null==t?[]:[t]}function Lr(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i=0||r&&X(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var lo=so([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),uo=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return lo(this,t,e)},t}(),ho=new Cn(50);function co(t){if("string"==typeof t){var e=ho.get(t);return e&&e.image}return t}function po(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=ho.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!go(e=o.image)&&o.pending.push(a):((e=C.loadImage(t,fo,fo)).__zrImageSrc=t,ho.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function fo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=Wi(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function _o(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Wi(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?xo(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=Wi(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function xo(t,e,n,i){for(var r=0,o=0,a=t.length;o0&&d+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=d}else{var g=Io(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Mo[t]}function Io(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;cn:r+h+f>n)?h?(s||l)&&(d?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=p,s="",h=u+=f):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=f)):d?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(h+=f,d?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}var ko="__zr_style_"+Math.round(10*Math.random()),Do={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Po={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Do[ko]=!0;var Ao=["z","z2","invisible"],Oo=["invisible"],Lo=function(t){function e(e){return t.call(this,e)||this}var n;return w(e,t),e.prototype._init=function(e){for(var n=J(e),i=0;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Vo[0]=Fo(r)*n+t,Vo[1]=Eo(r)*i+e,Wo[0]=Fo(o)*n+t,Wo[1]=Eo(o)*i+e,u(s,Vo,Wo),h(l,Vo,Wo),(r%=Ho)<0&&(r+=Ho),(o%=Ho)<0&&(o+=Ho),r>o&&!a?o+=Ho:rr&&(Go[0]=Fo(f)*n+t,Go[1]=Eo(f)*i+e,u(s,Go,s),h(l,Go,l))}var Ko={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$o=[],Qo=[],Jo=[],ta=[],ea=[],na=[],ia=Math.min,ra=Math.max,oa=Math.cos,aa=Math.sin,sa=Math.abs,la=Math.PI,ua=2*la,ha="undefined"!=typeof Float32Array,ca=[];function pa(t){return Math.round(t/la*1e8)/1e8%2*la}function fa(t,e){var n=pa(t[0]);n<0&&(n+=ua);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=ua?r=n+ua:e&&n-r>=ua?r=n-ua:!e&&n>r?r=n+(ua-pa(n-r)):e&&n0&&(this._ux=sa(n/Di/t)||0,this._uy=sa(n/Di/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ko.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=sa(t-this._xi),i=sa(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Ko.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Ko.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Ko.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),ca[0]=i,ca[1]=r,fa(ca,o),i=ca[0];var a=(r=ca[1])-i;return this.addData(Ko.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=oa(r)*n+t,this._yi=aa(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ko.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ko.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!ha||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Jo[0]=Jo[1]=ea[0]=ea[1]=Number.MAX_VALUE,ta[0]=ta[1]=na[0]=na[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tn||sa(v)>i||c===e-1)&&(d=Math.sqrt(D*D+v*v),r=g,o=_);break;case Ko.C:var y=t[c++],m=t[c++],_=(g=t[c++],t[c++]),x=t[c++],w=t[c++];d=gn(r,o,y,m,g,_,x,w,10),r=x,o=w;break;case Ko.Q:d=xn(r,o,y=t[c++],m=t[c++],g=t[c++],_=t[c++],10),r=g,o=_;break;case Ko.A:var b=t[c++],S=t[c++],T=t[c++],M=t[c++],C=t[c++],I=t[c++],k=I+C;c+=1,f&&(a=oa(C)*T+b,s=aa(C)*M+S),d=ra(T,M)*ia(ua,Math.abs(I)),r=oa(k)*T+b,o=aa(k)*M+S;break;case Ko.R:a=r=t[c++],s=o=t[c++],d=2*t[c++]+2*t[c++];break;case Ko.Z:var D=a-r;v=s-o;d=Math.sqrt(D*D+v*v),r=a,o=s}d>=0&&(l[h++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p=this.data,f=this._ux,d=this._uy,g=this._len,v=e<1,y=0,m=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x0&&(t.lineTo(h,c),_=0),w){case Ko.M:n=r=p[x++],i=o=p[x++],t.moveTo(r,o);break;case Ko.L:a=p[x++],s=p[x++];var S=sa(a-r),T=sa(s-o);if(S>f||T>d){if(v){if(y+(j=l[m++])>u){var M=(u-y)/j;t.lineTo(r*(1-M)+a*M,o*(1-M)+s*M);break t}y+=j}t.lineTo(a,s),r=a,o=s,_=0}else{var C=S*S+T*T;C>_&&(h=a,c=s,_=C)}break;case Ko.C:var I=p[x++],k=p[x++],D=p[x++],P=p[x++],A=p[x++],O=p[x++];if(v){if(y+(j=l[m++])>u){dn(r,I,D,A,M=(u-y)/j,$o),dn(o,k,P,O,M,Qo),t.bezierCurveTo($o[1],Qo[1],$o[2],Qo[2],$o[3],Qo[3]);break t}y+=j}t.bezierCurveTo(I,k,D,P,A,O),r=A,o=O;break;case Ko.Q:I=p[x++],k=p[x++],D=p[x++],P=p[x++];if(v){if(y+(j=l[m++])>u){_n(r,I,D,M=(u-y)/j,$o),_n(o,k,P,M,Qo),t.quadraticCurveTo($o[1],Qo[1],$o[2],Qo[2]);break t}y+=j}t.quadraticCurveTo(I,k,D,P),r=D,o=P;break;case Ko.A:var L=p[x++],R=p[x++],B=p[x++],z=p[x++],N=p[x++],E=p[x++],F=p[x++],H=!p[x++],V=B>z?B:z,W=sa(B-z)>.001,G=N+E,U=!1;if(v)y+(j=l[m++])>u&&(G=N+E*(u-y)/j,U=!0),y+=j;if(W&&t.ellipse?t.ellipse(L,R,B,z,F,N,G,H):t.arc(L,R,V,N,G,H),U)break t;b&&(n=oa(N)*B+L,i=aa(N)*z+R),r=oa(G)*B+L,o=aa(G)*z+R;break;case Ko.R:n=r=p[x],i=o=p[x+1],a=p[x++],s=p[x++];var X=p[x++],Y=p[x++];if(v){if(y+(j=l[m++])>u){var q=u-y;t.moveTo(a,s),t.lineTo(a+ia(q,X),s),(q-=X)>0&&t.lineTo(a+X,s+ia(q,Y)),(q-=Y)>0&&t.lineTo(a+ra(X-q,0),s+Y),(q-=X)>0&&t.lineTo(a,s+ra(Y-q,0));break t}y+=j}t.rect(a,s,X,Y);break;case Ko.Z:if(v){var j;if(y+(j=l[m++])>u){M=(u-y)/j;t.lineTo(r*(1-M)+n*M,o*(1-M)+i*M);break t}y+=j}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=Ko,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();function ga(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oe+c&&h>i+c&&h>o+c&&h>s+c||ht+c&&u>n+c&&u>r+c&&u>a+c||u=0&&fe+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||s=0&&gn||h+ur&&(r+=xa);var p=Math.atan2(l,s);return p<0&&(p+=xa),p>=i&&p<=r||p+xa>=i&&p+xa<=r}function ba(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}var Sa=da.CMD,Ta=2*Math.PI;var Ma=[-1,-1,-1],Ca=[-1,-1];function Ia(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u1&&(h=void 0,h=Ca[0],Ca[0]=Ca[1],Ca[1]=h),d=hn(e,i,o,s,Ca[0]),f>1&&(g=hn(e,i,o,s,Ca[1]))),2===f?ye&&s>i&&s>o||s=0&&h<=1&&(r[l++]=h);else{var u=a*a-4*o*s;if(ln(u))(h=-a/(2*o))>=0&&h<=1&&(r[l++]=h);else if(u>0){var h,c=Je(u),p=(-a-c)/(2*o);(h=(-a+c)/(2*o))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,Ma);if(0===l)return 0;var u=mn(e,i,o);if(u>=0&&u<=1){for(var h=0,c=vn(e,i,o,u),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ma[0]=-l,Ma[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Ta-1e-4){i=0,r=Ta;var h=o?1:-1;return a>=Ma[0]+t&&a<=Ma[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=Ta,r+=Ta);for(var p=0,f=0;f<2;f++){var d=Ma[f];if(d+t>a){var g=Math.atan2(s,d);h=o?1:-1;g<0&&(g=Ta+g),(g>=i&&g<=r||g+Ta>=i&&g+Ta<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function Pa(t,e,n,i,r){for(var o,a,s,l,u=t.data,h=t.len(),c=0,p=0,f=0,d=0,g=0,v=0;v1&&(n||(c+=ba(p,f,d,g,i,r))),m&&(d=p=u[v],g=f=u[v+1]),y){case Sa.M:p=d=u[v++],f=g=u[v++];break;case Sa.L:if(n){if(ga(p,f,u[v],u[v+1],e,i,r))return!0}else c+=ba(p,f,u[v],u[v+1],i,r)||0;p=u[v++],f=u[v++];break;case Sa.C:if(n){if(va(p,f,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else c+=Ia(p,f,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],i,r)||0;p=u[v++],f=u[v++];break;case Sa.Q:if(n){if(ya(p,f,u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else c+=ka(p,f,u[v++],u[v++],u[v],u[v+1],i,r)||0;p=u[v++],f=u[v++];break;case Sa.A:var _=u[v++],x=u[v++],w=u[v++],b=u[v++],S=u[v++],T=u[v++];v+=1;var M=!!(1-u[v++]);o=Math.cos(S)*w+_,a=Math.sin(S)*b+x,m?(d=o,g=a):c+=ba(p,f,o,a,i,r);var C=(i-_)*b/w+_;if(n){if(wa(_,x,b,S,S+T,M,e,C,r))return!0}else c+=Da(_,x,b,S,S+T,M,C,r);p=Math.cos(S+T)*w+_,f=Math.sin(S+T)*b+x;break;case Sa.R:if(d=p=u[v++],g=f=u[v++],o=d+u[v++],a=g+u[v++],n){if(ga(d,g,o,g,e,i,r)||ga(o,g,o,a,e,i,r)||ga(o,a,d,a,e,i,r)||ga(d,a,d,g,e,i,r))return!0}else c+=ba(o,g,o,a,i,r),c+=ba(d,a,d,g,i,r);break;case Sa.Z:if(n){if(ga(p,f,d,g,e,i,r))return!0}else c+=ba(p,f,d,g,i,r);p=d,f=g}}return n||(s=f,l=g,Math.abs(s-l)<1e-4)||(c+=ba(p,f,d,g,i,r)||0),0!==c}var Aa=U({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Do),Oa={style:U({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Po.style)},La=Hi.concat(["invisible","culling","z","z2","zlevel","parent"]),Ra=function(t){function e(e){return t.call(this,e)||this}var n;return w(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Pi:e>.2?"#eee":Ai}if(t)return Ai}return Pi},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(rt(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Un(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new da(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return Pa(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return Pa(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:G(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return It(Aa,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=G({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=G({},i.shape),G(s,n.shape)):(s=G({},r?this.shape:i.shape),G(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=G({},this.shape);for(var u={},h=J(s),c=0;c0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return It(Ba,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Ui(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Lo);za.prototype.type="tspan";var Na=U({x:0,y:0},Do),Ea={style:U({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Po.style)};var Fa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.createStyle=function(t){return It(Na,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Ea},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new De(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Lo);Fa.prototype.type="image";var Ha=Math.round;function Va(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(Ha(2*i)===Ha(2*r)&&(t.x1=t.x2=Ga(i,s,!0)),Ha(2*o)===Ha(2*a)&&(t.y1=t.y2=Ga(o,s,!0)),t):t}}function Wa(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Ga(i,s,!0),t.y=Ga(r,s,!0),t.width=Math.max(Ga(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Ga(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Ga(t,e,n){if(!e)return t;var i=Ha(2*t);return(i+Ha(e))%2==0?i/2:(i+(n?1:-1))/2}var Ua=function(){return function(){this.x=0,this.y=0,this.width=0,this.height=0}}(),Xa={},Ya=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.getDefaultShape=function(){return new Ua},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Wa(Xa,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ra);Ya.prototype.type="rect";var qa={fill:"#000"},ja={style:U({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Po.style)},Za=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=qa,n.attr(e),n}return w(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;ef&&h){var d=Math.floor(f/l);n=n.slice(0,d)}if(t&&a&&null!=c)for(var g=mo(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),I=i.calculatedLineHeight,k=0;kl&&To(n,t.substring(l,u),e,s),To(n,i[2],e,s,i[1]),l=vo.lastIndex}lo){w>0?(m.tokens=m.tokens.slice(0,w),v(m,x,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var I=b.width,k=null==I||"auto"===I;if("string"==typeof I&&"%"===I.charAt(I.length-1))O.percentWidth=I,h.push(O),O.contentWidth=Wi(O.text,M);else{if(k){var D=b.backgroundColor,P=D&&D.image;P&&go(P=co(P))&&(O.width=Math.max(O.width,P.width*C/P.height))}var A=d&&null!=r?r-x:null;null!=A&&A=0&&"right"===(I=_[C]).align;)this._placeToken(I,t,w,d,M,"right",v),b-=I.width,M-=I.width,C--;for(T+=(n-(T-f)-(g-M)-b)/2;S<=C;)I=_[S],this._placeToken(I,t,w,d,T+I.width/2,"center",v),T+=I.width,S++;d+=w}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&as(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,c=t.textPadding;c&&(r=rs(r,o,c),u-=t.height/2-c[0]-t.innerHeight/2);var p=this._getOrCreateChild(za),f=p.createStyle();p.useStyle(f);var d=this._defaultStyle,g=!1,v=0,y=is("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,d.fill)),m=ns("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||d.autoStroke&&!g?null:(v=2,d.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,_&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||T,f.opacity=gt(s.opacity,e.opacity,1),ts(f,s),m&&(f.lineWidth=gt(s.lineWidth,e.lineWidth,v),f.lineDash=dt(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=m),y&&(f.fill=y);var x=t.contentWidth,w=t.contentHeight;p.setBoundingRect(new De(Xi(f.x,x,f.textAlign),Yi(f.y,w,f.textBaseline),x,w))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,h=t.borderWidth,c=t.borderColor,p=u&&u.image,f=u&&!p,d=t.borderRadius,g=this;if(f||t.lineHeight||h&&c){(a=this._getOrCreateChild(Ya)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=i,v.width=r,v.height=o,v.r=d,a.dirtyShape()}if(f)(l=a.style).fill=u||null,l.fillOpacity=dt(t.fillOpacity,1);else if(p){(s=this._getOrCreateChild(Fa)).onload=function(){g.dirtyStyle()};var y=s.style;y.image=u.image,y.x=n,y.y=i,y.width=r,y.height=o}h&&c&&((l=a.style).lineWidth=h,l.stroke=c,l.strokeOpacity=dt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=gt(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return function(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(t)&&(e=[t.fontStyle,t.fontWeight,Ja(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&_t(e)||t.textFont||t.font},e}(Lo),Ka={left:!0,right:1,center:1},$a={top:1,bottom:1,middle:1},Qa=["fontStyle","fontWeight","fontSize","fontFamily"];function Ja(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function ts(t,e){for(var n=0;n=0,o=!1;if(t instanceof Ra){var a=hs(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(_s(s)||_s(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=G({},i),(u=G({},u)).fill=s):!_s(u.fill)&&_s(s)?(o=!0,i=G({},i),(u=G({},u)).fill=Yn(s)):!_s(u.stroke)&&_s(l)&&(o||(i=G({},i),u=G({},u)),u.stroke=Yn(l)),i.style=u}}if(i&&null==i.z2){o||(i=G({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:10)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=X(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function Ys(t,e,n){$s(t,!0),ks(t,As),function(t,e,n){var i=ss(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}(t,e,n)}function qs(t,e,n,i){i?function(t){$s(t,!1)}(t):Ys(t,e,n)}var js=["emphasis","blur","select"],Zs={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ks(t,e,n,i){n=n||"itemStyle";for(var r=0;r1&&(a*=ol(d),s*=ol(d));var g=(r===o?-1:1)*ol((a*a*(s*s)-a*a*(f*f)-s*s*(p*p))/(a*a*(f*f)+s*s*(p*p)))||0,v=g*a*f/s,y=g*-s*p/a,m=(t+n)/2+sl(c)*v-al(c)*y,_=(e+i)/2+al(c)*v+sl(c)*y,x=cl([1,0],[(p-v)/a,(f-y)/s]),w=[(p-v)/a,(f-y)/s],b=[(-1*p-v)/a,(-1*f-y)/s],S=cl(w,b);if(hl(w,b)<=-1&&(S=ll),hl(w,b)>=1&&(S=0),S<0){var T=Math.round(S/ll*1e6)/1e6;S=2*ll+T%2*ll}h.addData(u,m,_,a,s,x,S,c,o)}var fl=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,dl=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var gl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.applyTransform=function(t){},e}(Ra);function vl(t){return null!=t.setData}function yl(t,e){var n=function(t){var e=new da;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=da.CMD,l=t.match(fl);if(!l)return e;for(var u=0;uP*P+A*A&&(T=C,M=I),{cx:T,cy:M,x0:-h,y0:-c,x1:T*(r/w-1),y1:M*(r/w-1)}}function Rl(t,e){var n,i=Pl(e.r,0),r=Pl(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,h=e.cy,c=!!e.clockwise,p=kl(l-s),f=p>Sl&&p%Sl;if(f>Ol&&(p=f),i>Ol)if(p>Sl-Ol)t.moveTo(u+i*Ml(s),h+i*Tl(s)),t.arc(u,h,i,s,l,!c),r>Ol&&(t.moveTo(u+r*Ml(l),h+r*Tl(l)),t.arc(u,h,r,l,s,c));else{var d=void 0,g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,T=void 0,M=void 0,C=void 0,I=void 0,k=void 0,D=void 0,P=i*Ml(s),A=i*Tl(s),O=r*Ml(l),L=r*Tl(l),R=p>Ol;if(R){var B=e.cornerRadius;B&&(d=(n=function(t){var e;if(nt(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(B))[0],g=n[1],v=n[2],y=n[3]);var z=kl(i-r)/2;if(m=Al(z,v),_=Al(z,y),x=Al(z,d),w=Al(z,g),T=b=Pl(m,_),M=S=Pl(x,w),(b>Ol||S>Ol)&&(C=i*Ml(l),I=i*Tl(l),k=r*Ml(s),D=r*Tl(s),pOl){var U=Al(v,T),X=Al(y,T),Y=Ll(k,D,P,A,i,U,c),q=Ll(C,I,O,L,i,X,c);t.moveTo(u+Y.cx+Y.x0,h+Y.cy+Y.y0),T0&&t.arc(u+Y.cx,h+Y.cy,U,Il(Y.y0,Y.x0),Il(Y.y1,Y.x1),!c),t.arc(u,h,i,Il(Y.cy+Y.y1,Y.cx+Y.x1),Il(q.cy+q.y1,q.cx+q.x1),!c),X>0&&t.arc(u+q.cx,h+q.cy,X,Il(q.y1,q.x1),Il(q.y0,q.x0),!c))}else t.moveTo(u+P,h+A),t.arc(u,h,i,s,l,!c);else t.moveTo(u+P,h+A);if(r>Ol&&R)if(M>Ol){U=Al(d,M),Y=Ll(O,L,C,I,r,-(X=Al(g,M)),c),q=Ll(P,A,k,D,r,-U,c);t.lineTo(u+Y.cx+Y.x0,h+Y.cy+Y.y0),M0&&t.arc(u+Y.cx,h+Y.cy,X,Il(Y.y0,Y.x0),Il(Y.y1,Y.x1),!c),t.arc(u,h,r,Il(Y.cy+Y.y1,Y.cx+Y.x1),Il(q.cy+q.y1,q.cx+q.x1),c),U>0&&t.arc(u+q.cx,h+q.cy,U,Il(q.y1,q.x1),Il(q.y0,q.x0),!c))}else t.lineTo(u+O,h+L),t.arc(u,h,r,l,s,c);else t.lineTo(u+O,h+L)}else t.moveTo(u,h);t.closePath()}}}var Bl=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}}(),zl=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.getDefaultShape=function(){return new Bl},e.prototype.buildPath=function(t,e){Rl(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ra);zl.prototype.type="sector";var Nl=function(){return function(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),El=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.getDefaultShape=function(){return new Nl},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(Ra);function Fl(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,f=t.length;pru[1]){if(a=!1,r)return a;var u=Math.abs(ru[0]-iu[1]),h=Math.abs(iu[0]-ru[1]);Math.min(u,h)>i.len()&&(u0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,c):e.animateTo(n,c)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function fu(t,e,n,i,r,o){pu("update",t,e,n,i,r,o)}function du(t,e,n,i,r,o){pu("enter",t,e,n,i,r,o)}function gu(t){if(!t.__zr)return!0;for(var e=0;e=-1e-6)return!1;var d=t-r,g=e-o,v=Eu(d,g,u,h)/f;if(v<0||v>1)return!1;var y=Eu(d,g,c,p)/f;return!(y<0||y>1)}function Eu(t,e,n,i){return t*i-n*e}function Fu(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=rt(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&j(J(l),(function(t){Dt(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=ss(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:U({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function Hu(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Vu(t,e){if(t)if(nt(t))for(var n=0;n=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}},createIcon:zu,extendPath:function(t,e){return Su(t,e)},extendShape:function(t){return Ra.extend(t)},getShapeClass:Mu,getTransform:function(t,e){for(var n=ge([]);t&&t!==e;)ve(n,t.getLocalTransform(),n),t=t.parent;return n},groupTransition:Bu,initProps:du,isElementRemoved:gu,lineLineIntersect:Nu,linePolygonIntersect:function(t,e,n,i,r){for(var o=0,a=r[r.length-1];oMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},traverseElements:Vu,updateProps:fu},Symbol.toStringTag,{value:"Module"}));var Gu={};function Uu(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=it(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u-1?yh:_h;function Sh(t,e){t=t.toUpperCase(),wh[t]=new fh(e),xh[t]=e}Sh(mh,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),Sh(yh,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var Th=1e3,Mh=6e4,Ch=36e5,Ih=864e5,kh=31536e6,Dh={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Ph="{yyyy}-{MM}-{dd}",Ah={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ph,hour:Ph+" "+Dh.hour,minute:Ph+" "+Dh.minute,second:Ph+" "+Dh.second,millisecond:Dh.none},Oh=["year","month","day","hour","minute","second","millisecond"],Lh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Rh(t,e){return"0000".substr(0,e-(t+="").length)+t}function Bh(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function zh(t){return t===Bh(t)}function Nh(t,e,n,i){var r=br(t),o=r[Hh(n)](),a=r[Vh(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[Wh(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[Gh(n)](),c=(h-1)%12+1,p=r[Uh(n)](),f=r[Xh(n)](),d=r[Yh(n)](),g=h>=12?"pm":"am",v=g.toUpperCase(),y=i instanceof fh?i:function(t){return wh[t]}(i||bh)||wh[_h],m=y.getModel("time"),_=m.get("month"),x=m.get("monthAbbr"),w=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Rh(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,Rh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Rh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Rh(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Rh(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Rh(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Rh(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Rh(d,3)).replace(/{S}/g,d+"")}function Eh(t,e){var n=br(t),i=n[Vh(e)]()+1,r=n[Wh(e)](),o=n[Gh(e)](),a=n[Uh(e)](),s=n[Xh(e)](),l=0===n[Yh(e)](),u=l&&0===s,h=u&&0===a,c=h&&0===o,p=c&&1===r;return p&&1===i?"year":p?"month":c?"day":h?"hour":u?"minute":l?"second":"millisecond"}function Fh(t,e,n){var i=at(t)?br(t):t;switch(e=e||Eh(t,n)){case"year":return i[Hh(n)]();case"half-year":return i[Vh(n)]()>=6?1:0;case"quarter":return Math.floor((i[Vh(n)]()+1)/4);case"month":return i[Vh(n)]();case"day":return i[Wh(n)]();case"half-day":return i[Gh(n)]()/24;case"hour":return i[Gh(n)]();case"minute":return i[Uh(n)]();case"second":return i[Xh(n)]();case"millisecond":return i[Yh(n)]()}}function Hh(t){return t?"getUTCFullYear":"getFullYear"}function Vh(t){return t?"getUTCMonth":"getMonth"}function Wh(t){return t?"getUTCDate":"getDate"}function Gh(t){return t?"getUTCHours":"getHours"}function Uh(t){return t?"getUTCMinutes":"getMinutes"}function Xh(t){return t?"getUTCSeconds":"getSeconds"}function Yh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function qh(t){return t?"setUTCFullYear":"setFullYear"}function jh(t){return t?"setUTCMonth":"setMonth"}function Zh(t){return t?"setUTCDate":"setDate"}function Kh(t){return t?"setUTCHours":"setHours"}function $h(t){return t?"setUTCMinutes":"setMinutes"}function Qh(t){return t?"setUTCSeconds":"setSeconds"}function Jh(t){return t?"setUTCMilliseconds":"setMilliseconds"}function tc(t){if(isNaN(Mr(t)))return rt(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function ec(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var nc=yt;function ic(t,e,n){function i(t){return t&&_t(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?br(t):t;if(!isNaN(+s))return Nh(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return ot(t)?i(t):at(t)&&r(t)?t+"":"-";var l=Mr(t);return r(l)?tc(l):ot(t)?i(t):"boolean"==typeof t?t+"":"-"}var rc=["a","b","c","d","e","f","g"],oc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function ac(t,e,n){nt(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;oi||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(d?-d.y+p.y:0);(c=a+v)>r||l.newline?(o+=s+n,a=0,c=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)}))}var fc=pc;function dc(t,e,n){n=nc(n||0);var i=e.width,r=e.height,o=fr(t.left,i),a=fr(t.top,r),s=fr(t.right,i),l=fr(t.bottom,r),u=fr(t.width,i),h=fr(t.height,r),c=n[2]+n[0],p=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=f&&(isNaN(u)&&isNaN(h)&&(f>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var d=new De(o+n[3],a+n[0],u,h);return d.margin=n,d}function gc(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new De(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(a=a.clone()).applyTransform(h)}var c=dc(U({width:a.width,height:a.height},e),n,i),p=s?c.x-a.x:0,f=l?c.y-a.y:0;return"raw"===u?(o.x=p,o.y=f):(o.x+=p,o.y+=f),o===t&&t.markRedraw(),!0}function vc(t){var e=t.layoutMode||t.constructor.layoutMode;return st(e)?e:e?{type:e}:null}function yc(t,e,n){var i=n&&n.ignoreSize;!nt(i)&&(i=[i,i]);var r=a(cc[0],0),o=a(cc[1],1);function a(n,r){var o={},a=0,u={},h=0;if(uc(n,(function(e){u[e]=t[e]})),uc(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&h++})),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==h&&a){if(a>=2)return o;for(var c=0;c=0;a--)o=W(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Zr(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(fh);no(wc,fh),ao(wc),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=to(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=to(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(wc),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return j(t,(function(o){var a=n(i,o),s=function(t,e){var n=[];return j(t,(function(t){X(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),j(s,(function(t){X(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);X(e.successor,t)<0&&e.successor.push(o)}))})),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(j(t,(function(t){u[t]=!0}));l.length;){var h=l.pop(),c=s[h],p=!!u[h];p&&(r.call(o,h,c.originalDeps.slice()),delete u[h]),j(c.successor,p?d:f)}j(u,(function(){throw new Error("")}))}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function d(t){u[t]=!0,f(t)}}}(wc,(function(t){var e=[];j(wc.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=Z(e,(function(t){return to(t).main})),"dataset"!==t&&X(e,"dataset")<=0&&e.unshift("dataset");return e}));var bc="";"undefined"!=typeof navigator&&(bc=navigator.platform||"");var Sc="rgba(0, 0, 0, 0.2)";const Tc={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Sc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Sc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Sc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Sc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Sc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Sc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:bc.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Mc=Ct(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Cc="original",Ic="arrayRows",kc="objectRows",Dc="keyedColumns",Pc="typedArray",Ac="unknown",Oc="column",Lc="row",Rc=1,Bc=2,zc=3,Nc=Ur();function Ec(t,e,n){var i={},r=Hc(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,h=Nc(u).datasetMap,c=r.uid+"_"+n.seriesLayoutBy;j(t=t.slice(),(function(e,n){var r=st(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=d(r)),i[r.name]=[]}));var p=h.get(c)||h.set(c,{categoryWayDim:a,valueWayDim:0});function f(t,e,n){for(var i=0;ie)return t[i];return t[n-1]}(i,a):n;if(h=h||n,!h||!h.length)return;var c=h[l];r&&(u[r]=c);return s.paletteIdx=(l+1)%h.length,c}(this,Uc,i,r,t,e,n)},t.prototype.clearColorPalette=function(){var t,e;(e=Uc)(t=this).paletteIdx=0,e(t).paletteNameMap={}},t}();var Zc="\0_ec_inner",Kc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new fh(i),this._locale=new fh(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=Jc(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Jc(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):qc(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&j(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Ct(),s=e&&e.replaceMergeMainTypeMap;Nc(this).datasetMap=Ct(),j(t,(function(t,e){null!=t&&(wc.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?V(t):W(n[e],t,!0))})),s&&s.each((function(t,e){wc.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),wc.topologicalTravel(o,wc.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var i=Gc.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,Or(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Nr(a,o,l);(function(t,e,n){j(t,(function(t){var i=t.newOption;st(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))}))})(u,e,wc),n[e]=null,i.set(e,null),r.set(e,0);var h,c=[],p=[],f=0;j(u,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=wc.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return;h=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=G({componentIndex:n},t.keyInfo);G(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),p.push(i),f++):(c.push(void 0),p.push(void 0))}),this),n[e]=c,i.set(e,p),r.set(e,f),"series"===e&&Xc(this)}),this),this._seriesIndices||Xc(this)},e.prototype.getOption=function(){var t=V(this.option);return j(t,(function(e,n){if(wc.hasClass(n)){for(var i=Or(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Wr(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[Zc],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}})),r}var sp=j,lp=st,up=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hp(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=up.length;n=0;g--){var v=t[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,c)),p>=0){var y=v.data.getByRawIndex(v.stackResultDimension,p);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&f>=0&&y>0||"samesign"===l&&f<=0&&y<0){f=mr(f,y),d=y;break}}}return i[0]=f,i[1]=d,i}))}))}var kp,Dp,Pp,Ap,Op,Lp=function(){return function(t){this.data=t.data||(t.sourceFormat===Dc?{}:[]),this.sourceFormat=t.sourceFormat||Ac,this.seriesLayoutBy=t.seriesLayoutBy||Oc,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nu&&(u=f)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return Qp(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function ef(t){var e,n;return st(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function nf(t){return new rf(t)}var rf=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=h(this._modBy),s=this._modDataCount||0,l=h(t&&t.modBy),u=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(o||p1&&i>0?s:a}};return o;function a(){return e=t?null:oi?-this._resultLT:0},t}(),lf=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return af(t,e)},t}();function uf(t){if(!gf(t.sourceFormat)){Dr("")}return t.data}function hf(t){var e=t.sourceFormat,n=t.data;if(!gf(e)){Dr("")}if(e===Ic){for(var i=[],r=0,o=n.length;r65535?mf:_f}function Tf(t,e,n,i,r){var o=bf[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;ug[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Z(o,(function(t){return t.property})),u=0;uv[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l=0&&a<0)&&(o=c,a=h,s=0),h===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r=u&&_<=h||isNaN(_))&&(a[s++]=f),f++}p=!0}else if(2===r){d=c[i[0]];var v=c[i[1]],y=t[i[1]][0],m=t[i[1]][1];for(g=0;g=u&&_<=h||isNaN(_))&&(x>=y&&x<=m||isNaN(x))&&(a[s++]=f),f++}p=!0}}if(!p)if(1===r)for(g=0;g=u&&_<=h||isNaN(_))&&(a[s++]=w)}else for(g=0;gt[T][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(g))}return sv[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),h=this.getRawIndex(0),c=new(Sf(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));c[l++]=h;for(var p=1;pn&&(n=i,r=M)}T>0&&Tu-f&&(s=u-f,a.length=s);for(var d=0;dh[1]&&(h[1]=v),c[p++]=y}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();ra&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return af(t[i],this._dimensions[i])}vf={arrayRows:t,objectRows:function(t,e,n,i){return af(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return af(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),Cf=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(If(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=ut(a=o.get("data",!0))?Pc:Cc,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},p=dt(h.seriesLayoutBy,c.seriesLayoutBy)||null,f=dt(h.sourceHeader,c.sourceHeader),d=dt(h.dimensions,c.dimensions);t=p!==c.seriesLayoutBy||!!f!=!!c.sourceHeader||d?[Bp(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:d},s)]:[]}else{var g=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else{t=[Bp(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){1!==t.length&&kf("")}var o,a=[],s=[];return j(t,(function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||kf(""),a.push(e),s.push(t._getVersionSign())})),i?e=function(t,e){var n=Or(t),i=n.length;i||Dr("");for(var r=0,o=i;r1||n>0&&!t.noHeader;return j(t.blocks,(function(t){var n=zf(t);n>=e&&(e=n+ +(i&&(!n||Rf(t)&&!t.noHeader)))})),e}return 0}function Nf(t,e,n,i){var r,o=e.noHeader,a=(r=zf(e),{html:Af[r],richText:Of[r]}),s=[],l=e.blocks||[];mt(!l||nt(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(Dt(h,u)){var c=new sf(h[u],null);l.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}j(l,(function(n,r){var o=e.valueFormatter,l=Bf(n)(o?G(G({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)}));var p="richText"===t.renderMode?s.join(a.richText):Hf(s.join(""),o?n:a.html);if(o)return p;var f=ic(e.header,"ordinal",t.useUTC),d=Pf(i,t.renderMode).nameStyle;return"richText"===t.renderMode?Vf(t,f,d)+a.richText+p:Hf('
'+ie(f)+"
"+p,n)}function Ef(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return Z(t=nt(t)?t:[t],(function(t,e){return ic(t,nt(f)?f[e]:f,u)}))};if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":ic(l,"ordinal",u),f=e.valueType,d=a?[]:h(e.value,e.dataIndex),g=!s||!o,v=!s&&o,y=Pf(i,r),m=y.nameStyle,_=y.valueStyle;return"richText"===r?(s?"":c)+(o?"":Vf(t,p,m))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(nt(e)?e.join(" "):e,o)}(t,d,g,v,_)):Hf((s?"":c)+(o?"":function(t,e,n){return''+ie(t)+""}(p,!s,m))+(a?"":function(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=nt(t)?t:[t],''+Z(t,(function(t){return ie(t)})).join("  ")+""}(d,g,v,_)),n)}}function Ff(t,e,n,i,r,o){if(t)return Bf(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Hf(t,e){return'
'+t+'
'}function Vf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Wf(t,e){return sc(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Gf(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Uf=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Cr()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=function(t,e){var n=rt(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'':'':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}({color:e,type:t,renderMode:n,markerId:i});return rt(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};nt(e)?j(e,(function(t){return G(n,t)})):G(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function Xf(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=nt(c),f=Wf(o,a);if(h>1||p&&!h){var d=function(t,e,n,i,r){var o=e.getData(),a=K(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Lf("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?j(i,(function(t){h(Qp(o,n,t),t)})):j(t,h),{inlineValues:s,inlineValueTypes:l,blocks:u}}(c,o,a,u,f);e=d.inlineValues,n=d.inlineValueTypes,i=d.blocks,r=d.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=Qp(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var v=Vr(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return Lf("section",{header:y,noHeader:s||!v,sortParam:r,blocks:[Lf("nameValue",{markerType:"item",markerColor:f,name:_,noName:!_t(_),value:e,valueType:n,dataIndex:a})].concat(i||[])})}var Yf=Ur();function qf(t,e){return t.getName(e)||t.getId(e)}var jf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return w(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=nf({count:Kf,reset:$f}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Yf(this).sourceManager=new Cf(this)).prepareSource();var i=this.getInitialData(t,n);Jf(i,this),this.dataTask.context.data=i,Yf(this).dataBeforeProcessed=i,Zf(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=vc(this),i=n?mc(t):{},r=this.subType;wc.hasClass(r)&&(r+="Series"),W(t,e.getTheme().get(this.subType)),W(t,this.getDefaultOption()),Lr(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&yc(t,i,n)},e.prototype.mergeOption=function(t,e){t=W(this.option,t,!0),this.fillDataTextStyle(t.data);var n=vc(this);n&&yc(this.option,t,n);var i=Yf(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Jf(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Yf(this).dataBeforeProcessed=r,Zf(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!ut(t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=jc.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[qf(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){st(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return wc.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(wc);function Zf(t){var e=t.name;Vr(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return j(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function Kf(t){return t.model.getRawData().count()}function $f(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Qf}function Qf(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Jf(t,e){j(function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i=0?c():h=setTimeout(c,-r),l=i};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(t){s=t},p}function vd(t,e,n,i){var r=t[e];if(r){var o=r[pd]||r,a=r[dd];if(r[fd]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=gd(o,n,"debounce"===i))[pd]=o,r[dd]=i,r[fd]=n}return r}}function yd(t,e){var n=t[e];n&&n[pd]&&(n.clear&&n.clear(),t[e]=n[pd])}var md=Ur(),_d={itemStyle:so(hh,!0),lineStyle:so(sh,!0)},xd={lineStyle:"stroke",itemStyle:"fill"};function wd(t,e){var n=t.visualStyleMapper||_d[e];return n||(console.warn("Unknown style type '"+e+"'."),_d.itemStyle)}function bd(t,e){var n=t.visualDrawType||xd[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var Sd={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=wd(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=bd(t,i),l=o[s],u=it(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||it(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||it(o.stroke)?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=G({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},Td=new fh,Md={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=wd(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){Td.option=n[i];var a=r(Td);G(t.ensureUniqueItemVisual(e,"style"),a),Td.option.decal&&(t.setItemVisual(e,"decal",Td.option.decal),Td.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Cd={performRawSeries:!0,overallReset:function(t){var e=Ct();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),md(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=md(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=bd(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();l[s]=e.getColorFromPalette(u,o,h)}}))}}))}},Id=Math.PI;var kd=function(){function t(t,e,n,i){this._stageTaskMap=Ct(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Ct();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;j(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{});mt(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}j(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,p=h.agentStubMap;p.each((function(t){a(i,t)&&(t.dirty(),c=!0)})),c&&h.dirty(),o.updatePayload(h,n);var f=o.getPerformArgs(h,i.block);p.each((function(t){t.perform(f)})),h.perform(f)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Ct(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||nf({plan:Ld,reset:Rd,count:Nd}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||nf({reset:Dd});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=Ct(),l=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(c=!0,nf({reset:Pd,onDirty:Od})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}mt(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(h=!1,j(n.getSeries(),p)),c&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return it(t)&&(t={overallReset:t,seriesType:Ed(t)}),t.uid=gh("stageHandler"),e&&(t.visualType=e),t},t}();function Dd(t){t.overallReset(t.ecModel,t.api,t.payload)}function Pd(t){return t.overallProgress&&Ad}function Ad(){this.agent.dirty(),this.getDownstream().dirty()}function Od(){this.agent&&this.agent.dirty()}function Ld(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Rd(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Or(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Z(e,(function(t,e){return zd(e)})):Bd}var Bd=zd(0);function zd(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),$d=["symbol","symbolSize","symbolRotate","symbolOffset"],Qd=$d.concat(["symbolKeepAspect"]),Jd={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<$d.length;a++){var s=$d[a],l=t.get(s);it(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(G({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=J(r);return{dataEach:o?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a=0&&mg(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=mg(i)?i:0,r=mg(r)?r:1,o=mg(o)?o:0,a=mg(a)?a:0,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:at(e)?[e]:nt(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=Z(r,(function(t){return t/a})),o/=a)}return[r,o]}var Sg=new da(!0);function Tg(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Mg(t){return"string"==typeof t&&"none"!==t}function Cg(t){var e=t.fill;return null!=e&&"none"!==e}function Ig(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function kg(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Dg(t,e,n){var i=po(e.image,e.__image,n);if(go(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*At),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var Pg=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ag=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Og(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){Bg(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Do.opacity:a}(i||e.blend!==n.blend)&&(o||(Bg(t,r),o=!0),t.globalCompositeOperation=e.blend||Do.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[$g])if(this._disposed)this.id;else{var i,r,o;if(st(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[$g]=!0,!this._model||e){var a=new op(this._api),s=this._theme,l=this._model=new Kc;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},Av);var u={seriesTransition:o,optionChanged:!0};if(n)this[Qg]={silent:i,updateParams:u},this[$g]=!1,this.getZr().wakeUp();else{try{ov(this),lv.update.call(this,null,u)}catch(h){throw this[Qg]=null,this[$g]=!1,h}this._ssr||this._zr.flush(),this[Qg]=null,this[$g]=!1,pv.call(this,i),fv.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||S.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(S.svgSupported){var t=this._zr;return j(t.storage.getDisplayList(),(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;j(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return j(i,(function(t){t.group.ignore=!1})),o}this.id},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(zv[n]){var a=o,s=o,l=-1/0,u=-1/0,h=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();j(Bv,(function(o,c){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(V(t)),f=o.getDom().getBoundingClientRect();a=i(f.left,a),s=i(f.top,s),l=r(f.right,l),u=r(f.bottom,u),h.push({dom:p,left:f.left,top:f.top})}}));var p=(l*=c)-(a*=c),f=(u*=c)-(s*=c),d=C.createCanvas(),g=hr(d,{renderer:e?"svg":"canvas"});if(g.resize({width:p,height:f}),e){var v="";return j(h,(function(t){var e=t.left-a,n=t.top-s;v+=''+t.dom+""})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new Ya({shape:{x:0,y:0,width:p,height:f},style:{fill:t.connectedBackgroundColor}})),j(h,(function(t){var e=new Fa({style:{x:t.left*c-a,y:t.top*c-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}this.id},e.prototype.convertToPixel=function(t,e){return uv(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return uv(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return j(Yr(this._model,t),(function(t,i){i.indexOf("Models")>=0&&j(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}}),this)}),this),!!n;this.id},e.prototype.getVisual=function(t,e){var n=Yr(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?function(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}(i,r,e):function(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n,i=this;j(Iv,(function(t){var e=function(e){var n,r=i.getModel(),o=e.target;if("globalout"===t?n={}:o&&ig(o,(function(t){var e=ss(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=G({},e.eventData),!0}),!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&i["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)})),j(Dv,(function(t,e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),j(["selectchanged"],(function(t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(ng("map","selectchanged",e,i,t),ng("pie","selectchanged",e,i,t)):"select"===t.fromAction?(ng("map","selected",e,i,t),ng("pie","selected",e,i,t)):"unselect"===t.fromAction&&(ng("map","unselected",e,i,t),ng("pie","unselected",e,i,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&Kr(this.getDom(),Ev,"");var t=this,e=t._api,n=t._model;j(t._componentsViews,(function(t){t.dispose(n,e)})),j(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Bv[t.id]}},e.prototype.resize=function(t){if(!this[$g])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Qg]&&(null==i&&(i=this[Qg].silent),n=!0,this[Qg]=null),this[$g]=!0;try{n&&ov(this),lv.update.call(this,{type:"resize",animation:G({duration:0},t&&t.animation)})}catch(r){throw this[$g]=!1,r}this[$g]=!1,pv.call(this,i),fv.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)this.id;else if(st(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Rv[t]){var n=Rv[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=G({},t);return e.type=Dv[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)this.id;else if(st(e)||(e={silent:!!e}),kv[t.type]&&this._model)if(this[$g])this._pendingActions.push(t);else{var n=e.silent;cv.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&S.browser.weChat&&this._throttledZrFlush(),pv.call(this,n),fv.call(this,n)}},e.prototype.updateLabelLayout=function(){Yg.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,i=0;i0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(gu(t))return;if(t instanceof Ra&&function(t){var e=hs(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}ov=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),av(t,!0),av(t,!1),e.plan()},av=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;le.get("hoverLayerThreshold")&&!S.node&&!S.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),Yg.trigger("series:afterupdate",e,i,s)},wv=function(t){t[Jg]=!0,t.getZr().wakeUp()},bv=function(t){t[Jg]&&(t.getZr().storage.traverse((function(t){gu(t)||e(t)})),t[Jg]=!1)},_v=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return w(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Rs(e,n),wv(t)},n.prototype.leaveEmphasis=function(e,n){Bs(e,n),wv(t)},n.prototype.enterBlur=function(e){!function(t){ks(t,Ss)}(e),wv(t)},n.prototype.leaveBlur=function(e){zs(e),wv(t)},n.prototype.enterSelect=function(e){Ns(e),wv(t)},n.prototype.leaveSelect=function(e){Es(e),wv(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(ep))(t)},xv=function(t){function e(t,e){for(var n=0;n=0)){Yv.push(n);var o=kd.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function jv(t,e){Rv[t]=e}var Zv=function(t){var e=(t=V(t)).type;e||Dr("");var n=e.split(":");2!==n.length&&Dr("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,ff.set(e,t)};function Kv(t){return null==t?0:t.length||1}function $v(t){return t}Xv(jg,Sd),Xv(Zg,Md),Xv(Zg,Cd),Xv(jg,Jd),Xv(Zg,tg),Xv(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=Wg(n,e))}));var r=i.getVisual("decal");if(r)i.getVisual("style").decal=Wg(r,e)}}))})),Vv(Cp),Wv(900,(function(t){var e=Ct();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(Ip)})),jv("default",(function(t,e){U(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new ar,i=new Ya({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new Za({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ya({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new Ql({shape:{startAngle:-Id/2,endAngle:-Id/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Id/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Id/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),Uv({type:ds,event:ds,update:ds},Pt),Uv({type:gs,event:gs,update:gs},Pt),Uv({type:vs,event:vs,update:vs},Pt),Uv({type:ys,event:ys,update:ys},Pt),Uv({type:ms,event:ms,update:ms},Pt),Hv("light",Ud),Hv("dark",Zd);var Qv=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||$v,this._newKeyGetter=i||$v,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var p=0;p1)for(var a=0;a30}var hy,cy,py,fy,dy,gy,vy,yy=st,my=Z,_y="undefined"==typeof Int32Array?Array:Int32Array,xy=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],wy=["_approximateExtent"],by=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;ay(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===Cc&&!n.pure)for(var o=[],a=t;a0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(nt(r=this.getVisual(e))?r=r.slice():yy(r)&&(r=G({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,yy(e)?G(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){yy(t)?G(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?G(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){!function(t,e,n,i){if(i){var r=ss(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===i.type&&i.traverse((function(i){var r=ss(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"}))}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){j(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:my(this.dimensions,this._getDimInfo,this),this.hostModel)),dy(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];it(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(vt(arguments)))})},t.internalField=(hy=function(t){var e=t._invertedIndicesMap;j(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new _y(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[e]=s}})),t}();function Sy(t,e){Rp(t)||(t=zp(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=Ct(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return j(e,(function(t){var e;st(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&uy(a),l=i===t.dimensionsDefine,u=l?ly(t):sy(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var c=Ct(h),p=new xf(a),f=0;f0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new oy({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Ty(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}function My(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!ay(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,h,c,p=!(!t||!t.get("stack"));if(j(i,(function(t,e){rt(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,d=u.type,g=0;j(i,(function(t){t.coordDim===f&&g++}));var v={name:h,coordDim:f,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(c,d),y.storeDimIndex=o.ensureCalculationDimension(h,d)),r.appendCalculationDimension(v),r.appendCalculationDimension(y)):(i.push(v),i.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Cy(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}var Iy=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();ao(Iy);var ky=0,Dy=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++ky}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&Z(i,Py);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!rt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Ct(this.categories))},t}();function Py(t){return st(t)&&null!=t.value?t.value:t+""}function Ay(t){return"interval"===t.type||"log"===t.type}function Oy(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=Tr(o/e);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=Ry(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),By(t,0,e),By(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[dr(Math.ceil(t[0]/a)*a,s),dr(Math.floor(t[1]/a)*a,s)],t),r}function Ly(t){var e=Math.pow(10,Sr(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,dr(n*e)}function Ry(t){return gr(t)+2}function By(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function zy(t,e){return t>=e[0]&&t<=e[1]}function Ny(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Ey(t,e){return t*(e[1]-e[0])+e[0]}var Fy=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Dy({})),nt(i)&&(i=new Dy({categories:Z(i,(function(t){return st(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return w(e,t),e.prototype.parse=function(t){return null==t?NaN:rt(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return zy(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return Ny(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(Ey(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Iy);Iy.registerClass(Fy);var Hy=dr,Vy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return w(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return zy(t,this._extent)},e.prototype.normalize=function(t){return Ny(t,this._extent)},e.prototype.scale=function(t){return Ey(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Ry(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:Hy(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&h0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return j(t,(function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),h=Math.abs(u[1]-u[0]);i=s?l/h*s:l}else{var c=t.getData();i=Math.abs(o[1]-o[0])/c.count()}var p=fr(t.get("barWidth"),i),f=fr(t.get("barMaxWidth"),i),d=fr(t.get("barMinWidth")||(Qy(t)?.5:1),i),g=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:d,barGap:g,barCategoryGap:v,axisKey:Yy(r),stackId:Xy(t)})})),function(t){var e={};j(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barMinWidth;h&&(a[s].minWidth=h);var c=t.barGap;null!=c&&(o.gap=c);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)}));var n={};return j(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=J(i).length;o=Math.max(35-4*a,15)+"%"}var s=fr(o,r),l=fr(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),j(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&ei&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}})),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var p,f=0;j(i,(function(t,e){t.width||(t.width=c),p=t,f+=t.width*(1+l)})),p&&(f-=p.width*l);var d=-f/2;j(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:d,width:t.width},d+=t.width*(1+l)}))})),n}(n)}function Zy(t,e){var n=qy(t,e),i=jy(n);j(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=Xy(t),o=i[Yy(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function Ky(t){return{seriesType:t,plan:id(),reset:function(t){if($y(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),h=Cy(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=r.isHorizontal(),p=function(t,e){var n=e.model.get("startValue");n||(n=0);return e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))}(0,r),f=Qy(t),d=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=f&&Uy(3*r),u=f&&s&&Uy(3*r),m=f&&Uy(r),_=n.master.getRect(),x=c?_.width:_.height,w=e.getStore(),b=0;null!=(i=t.next());){var S=w.get(h?g:o,i),T=w.get(a,i),M=p,C=void 0;h&&(C=+S-w.get(o,i));var I=void 0,k=void 0,D=void 0,P=void 0;if(c){var A=n.dataToPoint([S,T]);if(h)M=n.dataToPoint([C,T])[0];I=M,k=A[1]+y,D=A[0]-M,P=v,Math.abs(D)0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(nt(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[h=Math.min(h,o.length-1)]}}return Nh(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r=1e4,o=Lh,a=0;function s(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();u1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u=i[0]&&y<=i[1]&&c++)}var m=(i[1]-i[0])/e;if(c>1.5*m&&p>m/1.5)break;if(u.push(g),c>m||t===o[f])break}h=[]}}var _=$(Z(u,(function(t){return $(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),x=[],w=_.length-1;for(f=0;f<_.length;++f)for(var b=_[f],S=0;Sn&&(this._approxInterval=n);var o=tm.length,a=Math.min(function(t,e,n,i){for(;n>>1;t[r][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function nm(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function im(t){return(t/=Ch)>12?12:t>6?6:t>3.5?4:t>2?2:1}function rm(t,e){return(t/=e?Mh:Th)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function om(t){return Tr(t)}function am(t,e,n){var i=new Date(t);switch(Bh(e)){case"year":case"month":i[jh(n)](0);case"day":i[Zh(n)](1);case"hour":i[Kh(n)](0);case"minute":i[$h(n)](0);case"second":i[Qh(n)](0),i[Jh(n)](0)}return i.getTime()}Iy.registerClass(Jy);var sm=Iy.prototype,lm=Vy.prototype,um=dr,hm=Math.floor,cm=Math.ceil,pm=Math.pow,fm=Math.log,dm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Vy,e._interval=0,e}return w(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return Z(lm.getTicks.call(this,t),(function(t){var e=t.value,r=dr(pm(this.base,e));return r=e===n[0]&&this._fixMin?vm(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?vm(r,i[1]):r}}),this)},e.prototype.setExtent=function(t,e){var n=fm(this.base);t=fm(Math.max(0,t))/n,e=fm(Math.max(0,e))/n,lm.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=sm.getExtent.call(this);e[0]=pm(t,e[0]),e[1]=pm(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=vm(e[0],n[0])),this._fixMax&&(e[1]=vm(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=fm(t[0])/fm(e),t[1]=fm(t[1])/fm(e),sm.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i,r=(i=n,Math.pow(10,Sr(i)));for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[dr(cm(e[0]/r)*r),dr(hm(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){lm.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return zy(t=fm(t)/fm(this.base),this._extent)},e.prototype.normalize=function(t){return Ny(t=fm(t)/fm(this.base),this._extent)},e.prototype.scale=function(t){return t=Ey(t,this._extent),pm(this.base,t)},e.type="log",e}(Iy),gm=dm.prototype;function vm(t,e){return um(t,gr(e))}gm.getMinorTicks=lm.getMinorTicks,gm.getLabel=lm.getLabel,Iy.registerClass(dm);var ym=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var c=this._determinedMin,p=this._determinedMax;return null!=c&&(a=c,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[_m[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[mm[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),mm={min:"_determinedMin",max:"_determinedMax"},_m={min:"_dataMin",max:"_dataMax"};function xm(t,e){return null==e?null:pt(e)?NaN:t.parse(e)}function wm(t,e){var n=t.type,i=function(t,e,n){var i=t.rawExtentInfo;return i||(i=new ym(t,e,n),t.rawExtentInfo=i,i)}(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=qy("bar",a),l=!1;if(j(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=jy(s),h=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=function(t,e,n){if(t&&e){var i=t[Yy(e)];return null!=i&&null!=n?i[Xy(n)]:i}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;j(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;j(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=h/(1-(s+l)/o)-h;return e+=c*(l/u),t-=c*(s/u),{min:t,max:e}}(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function bm(t,e){var n=e,i=wm(t,n),r=i.extent,o=n.get("splitNumber");t instanceof dm&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function Sm(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Fy({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Jy({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Iy.getClass(e)||Vy)}}function Tm(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function Mm(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):rt(e)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(e):it(e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(Cm(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function Cm(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Im(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();r=n instanceof Fy?n.count():(i=n.getTicks()).length;var a,s,l,u,h,c,p,f,d=t.getLabelModel(),g=Mm(t),v=1;r>40&&(v=Math.ceil(r/40));for(var y=0;y=0||(Am.push(t),it(t)&&(t={install:t}),t.install(Om))}function Rm(t,e,n,i){return function(t,e,n,i,r,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,h=0,c=0;c0&&o&&x(-h/a,0,a);var d,g,v=t[0],y=t[a-1];return m(),d<0&&w(-d,.8),g<0&&w(g,.8),m(),_(d,g,1),_(g,d,-1),m(),d<0&&b(-d),g<0&&b(g),u}function m(){d=v.rect[e]-i,g=r-y.rect[e]-y.rect[n]}function _(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){x(i*n,0,a);var r=i+t;r<0&&w(-r*n,1)}else w(-t*n,1)}}function x(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--)x(-o[l-1]*c,l,a)}}function b(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i0?x(n,0,i+1):x(-n,a-i-1,a),(t-=n)<=0)return}}(t,"y","height",e,n,i)}function Bm(t,e,n){var i=C.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var zm=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Di,"string"==typeof e?r=Bm(e,n,i):st(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(kt(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return w(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Bm("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new De(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new De(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,i=1/0,r=0,u=0;u=a)}}for(var h=this.__startIndex;h15)break}n.prevElClipPaths&&c.restore()};if(f)if(0===f.length)s=l.__endIndex;else for(var x=p.dpr,w=0;w0&&t>i[0]){for(s=0;st);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?Fm:0),this._needsManuallyCompositing),u.__builtin__||H("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,j(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?W(n[t],e,!0):n[t]=e;for(var i=0;i=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}();function Ym(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,d="x"===u?[c[2]-f,c[3]+f]:[c[0]-f,c[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));d[p.onZero]=Math.max(Math.min(g,d[1]),d[0])}o.position=["y"===u?d[p[l]]:c[0],"x"===u?d[p[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?d[p[s]]-d[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),ft(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function qm(t){return"cartesian2d"===t.get("coordinateSystem")}function jm(t){var e={xAxisModel:null,yAxisModel:null};return j(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,jr).models[0];e[i]=o})),e}var Zm=Math.PI,Km=function(){function t(t,e){this.group=new ar,this.opt=e,this.axisModel=t,U(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new ar({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!$m[t]},t.prototype.add=function(t){$m[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=_r(e-t);return xr(o)?(r=n>0?"top":"bottom",i="center"):xr(o-Zm)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),$m={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Wt(s,s,a),Wt(l,l,a));var h=G({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Yl({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Au(c.shape,c.style.lineWidth),c.anid="line",n.add(c);var p=e.get(["axisLine","symbol"]);if(null!=p){var f=e.get(["axisLine","symbolSize"]);rt(p)&&(p=[p,p]),(rt(f)||at(f))&&(f=[f,f]);var d=yg(e.get(["axisLine","symbolOffset"])||0,f),g=f[0],v=f[1];j([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==p[i]&&null!=p[i]){var r=gg(p[i],-g/2,-v/2,g,v,h.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||r.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=e_(r.getTicksCoords(),e.transform,l,U(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;hc[1]?-1:1,f=["start"===s?c[0]-p*h:"end"===s?c[1]+p*h:(c[0]+c[1])/2,t_(s)?t.labelOffset+l*h:0],d=e.get("nameRotate");null!=d&&(d=d*Zm/180),t_(s)?o=Km.innerTextLayout(t.rotation,null!=d?d:t.rotation,l):(o=function(t,e,n,i){var r,o,a=_r(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;xr(a-Zm/2)?(o=l?"bottom":"top",r="center"):xr(a-1.5*Zm)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*Zm&&a>Zm/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,d||0,c),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=ft(t.nameTruncateMaxWidth,v.maxWidth,a),_=new Za({x:f[0],y:f[1],rotation:o.rotation,silent:Km.isLabelSilent(e),style:qu(u,{text:r,font:g,overflow:"truncate",width:m,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Fu({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var x=Km.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,ss(_).eventData=x}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function Qm(t){t&&(t.ignore=!0)}function Jm(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=ge([]);return me(r,r,-t.rotation),n.applyTransform(ve([],r,t.getLocalTransform())),i.applyTransform(ve([],r,e.getLocalTransform())),n.intersect(i)}}function t_(t){return"middle"===t||"center"===t}function e_(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function r_(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[a_(t)]}function o_(t){return!!t.get(["handle","show"])}function a_(t){return t.type+"||"+t.id}var s_={},l_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=r_(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=o_(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),aa)return!0;if(o){var s=r_(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=u_(t).pointerEl=new Wu[r.type](h_(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=u_(t).labelEl=new Za(h_(e.label));t.add(r),d_(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=u_(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=u_(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),d_(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=zu(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ce(t.event)},onmousedown:c_(this._onHandleDragMove,this,0,0),drift:c_(this._onHandleDragMove,this),ondragend:c_(this._onHandleDragEnd,this)}),i.add(r)),v_(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");nt(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,vd(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){p_(this._axisPointerModel,!e&&this._moveAnimation,this._handle,g_(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(g_(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(g_(i)),u_(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),yd(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}());function w_(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var b_={line:function(t,e,n){var i,r,o;return{type:"Line",subPixelOptimize:!0,shape:(i=[e,n[0]],r=[e,n[1]],o=S_(t),{x1:i[o=o||0],y1:i[1-o],x2:r[o],y2:r[1-o]})}},shadow:function(t,e,n){var i,r,o,a=Math.max(1,t.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(i=[e-a/2,n[0]],r=[a,s],o=S_(t),{x:i[o=o||0],y:i[1-o],width:r[o],height:r[1-o]})}}};function S_(t){return"x"===t.dim?0:1}var T_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(wc),M_=Ur(),C_=j;function I_(t,e,n){if(!S.node){var i=e.getZr();M_(i).records||(M_(i).records={}),function(t,e){if(M_(t).initialized)return;function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);C_(M_(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}M_(t).initialized=!0,n("click",et(D_,"click")),n("mousemove",et(D_,"mousemove")),n("globalout",k_)}(i,e),(M_(i).records[t]||(M_(i).records[t]={})).handler=n}}function k_(t,e,n){t.handler("leave",null,n)}function D_(t,e,n,i){e.handler(t,n,i)}function P_(t,e){if(!S.node){var n=e.getZr();(M_(n).records||{})[t]&&(M_(n).records[t]=null)}}var A_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";I_("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){P_("axisPointer",e)},e.prototype.dispose=function(t,e){P_("axisPointer",e)},e.type="axisPointer",e}(nd);function O_(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Gr(o,t);if(null==a||a<0||nt(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,p="x"===h||"radius"===h?1:0,f=o.mapDimension(c),d=[];d[p]=o.get(f,a),d[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(d)||[]}else i=l.dataToPoint(o.getValues(Z(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var L_=Ur();function R_(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||tt(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){F_(r)&&(r=O_({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=F_(r),u=o.axesInfo,h=s.axesInfo,c="leave"===i||F_(r),p={},f={},d={list:[],map:{}},g={showPointer:et(z_,f),showTooltip:et(N_,d)};j(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);j(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!c&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&B_(t,a,g,!1,p)}}))}));var v={};return j(h,(function(t,e){var n=t.linkGroup;n&&!f[e]&&j(n.axesInfo,(function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,E_(e),E_(t)))),v[t.key]=o}}))})),j(v,(function(t,e){B_(h[e],t,g,!0,p)})),function(t,e,n){var i=n.axesInfo=[];j(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(f,h,p),function(t,e,n,i){if(F_(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(d,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=L_(i)[r]||{},a=L_(i)[r]={};j(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&j(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];j(o,(function(t,e){!a[e]&&l.push(t)})),j(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(h,0,n),p}}function B_(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return j(e.seriesModels,(function(e,l){var u,h,c=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(c,t,n);h=p.dataIndices,u=p.nestestValue}else{if(!(h=e.getData().indicesOfNearest(c[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(c[0],h[0])}if(null!=u&&isFinite(u)){var f=t-u,d=Math.abs(f);d<=a&&((d=0&&s<0)&&(a=d,s=f,r=u,o.length=0),j(h,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&G(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function z_(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function N_(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=a_(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function E_(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function F_(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function H_(t){l_.registerAxisPointerClass("CartesianAxisPointer",x_),t.registerComponentModel(T_),t.registerComponentView(A_),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!nt(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=n_(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},R_)}var V_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return w(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(wc);function W_(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function G_(t){if(S.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n-1?(u+="top:50%",h+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",h+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var c=a*Math.PI/180,p=l+r,f=p*Math.abs(Math.cos(c))+p*Math.abs(Math.sin(c)),d=e+" solid "+r+"px;";return'
'}(n,i,r)),rt(t))o.innerHTML=t+a;else if(t){o.innerHTML="",nt(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!S.node&&n.getDom()){var r=ax(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=qr(t).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o=Zr(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse((function(e){var n=ss(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s)return{componentMainType:r,componentIndex:a.componentIndex,el:s}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=ix;l.x=i.x,l.y=i.y,l.update(),ss(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=O_(i,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(ax(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s)if("axis"===ox([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;if("legend"===ss(n).ssrType)return;this._lastDataByCoordSys=null,ig(n,(function(t){return null!=ss(t).dataIndex?(r=t,!0):null!=ss(t).tooltipConfig?(o=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=tt(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=ox([e.tooltipOption],i),a=this._renderMode,s=[],l=Lf("section",{blocks:[],noHeader:!0}),u=[],h=new Uf;j(t,(function(t){j(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=m_(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),c=Lf("section",{header:o,noHeader:!_t(o),sortBlocks:!0,blocks:[]});l.blocks.push(c),j(t.seriesDataIndices,(function(l){var p=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,d=p.getDataParams(f);if(!(d.dataIndex<0)){d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=Cm(e.axis,{value:r}),d.axisValueLabel=o,d.marker=h.makeTooltipMarker("item",sc(d.color),a);var g=ef(p.formatTooltip(f,!0,null)),v=g.frag;if(v){var y=ox([p],i).get("valueFormatter");c.blocks.push(y?G({valueFormatter:y},v):v)}g.text&&u.push(g.text),s.push(d)}}))}}))})),l.blocks.reverse(),u.reverse();var c=e.position,p=o.get("order"),f=Ff(l,h,a,p,n.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var d="richText"===a?"\n\n":"
",g=u.join(d);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,c,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],c,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=ss(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,h=s.getData(u),c=this._renderMode,p=t.positionDefault,f=ox([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),d=f.get("trigger");if(null==d||"item"===d){var g=s.getDataParams(l,u),v=new Uf;g.marker=v.makeTooltipMarker("item",sc(g.color),c);var y=ef(s.formatTooltip(l,!1,u)),m=f.get("order"),_=f.get("valueFormatter"),x=y.frag,w=x?Ff(_?G({valueFormatter:_},x):x,v,c,m,i.get("useUTC"),f.get("textStyle")):y.text,b="item_"+s.name+"_"+l;this._showOrMove(f,(function(){this._showTooltipContent(f,w,g,b,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=ss(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if(rt(o)){o={content:o,formatter:o},a=!0}a&&i&&o.content&&((o=V(o)).content=ie(o.content));var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,h=ox(s,this._tooltipModel,u?{position:u}:null),c=h.get("content"),p=Math.random()+"",f=new Uf;this._showOrMove(h,(function(){var n=V(h.get("formatterParams")||{});this._showTooltipContent(h,c,n,p,t.offsetX,t.offsetY,t.position,e,f)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(h)if(rt(h)){var f=t.ecModel.get("useUTC"),d=nt(n)?n[0]:n;c=h,d&&d.axisType&&d.axisType.indexOf("time")>=0&&(c=Nh(d.axisValue,c,f)),c=ac(c,n,!0)}else if(it(h)){var g=tt((function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,c=h(n,i,g)}else c=h;u.setContent(c,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||nt(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:nt(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),it(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),nt(e))n=fr(e[0],s),i=fr(e[1],l);else if(st(e)){var f=e;f.width=u[0],f.height=u[1];var d=dc(f,{width:s,height:l});n=d.x,i=d.y,h=null,c=null}else if(rt(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,p,u,t.get("borderWidth"));n=g[0],i=g[1]}else{g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>i?t-=l+o:t+=o);null!=a&&(e+u+a>r?e-=u+a:e+=a);return[t,e]}(n,i,r,s,l,h?null:20,c?null:20);n=g[0],i=g[1]}if(h&&(n-=sx(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=sx(c)?u[1]/2:"bottom"===c?u[1]:0),W_(t)){g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&j(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&j(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&j(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&j(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!S.node&&e.getDom()&&(yd(this,"_updatePosition"),this._tooltipContent.dispose(),P_("itemTooltip",e))},e.type="tooltip",e}(nd);function ox(t,e,n){var i,r=e.ecModel;n?(i=new fh(n,r,r),i=new fh(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof fh&&(a=a.get("tooltip",!0)),rt(a)&&(a={formatter:a}),a&&(i=new fh(a,i,r)))}return i}function ax(t,e){return t.dispatchAction||tt(e.dispatchAction,e)}function sx(t){return"center"===t||"middle"===t}function lx(t){Lm(H_),t.registerComponentModel(V_),t.registerComponentView(rx),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Pt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Pt)}var ux=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return w(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),nt(e)&&j(e,(function(t,i){rt(t)&&(t={type:t}),e[i]=W(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(wc),hx=et,cx=j,px=ar,fx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return w(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new px),this.group.add(this._selectorGroup=new px),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),c=dc(l,u,h),p=this.layoutInner(t,r,c,i,a,s),f=dc(U({width:p.width,height:p.height},l),u,h);this.group.x=f.x-p.x,this.group.y=f.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function(t,e){var n=nc(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new Ya({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=Ct(),u=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),cx(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var c=new px;return c.newline=!0,void s.add(c)}var p=n.getSeriesByName(a)[0];if(!l.get(a))if(p){var f=p.getData(),d=f.getVisual("legendLineStyle")||{},g=f.getVisual("legendIcon"),v=f.getVisual("style"),y=this._createItem(p,a,o,r,e,t,d,v,g,u,i);y.on("click",hx(dx,a,null,i,h)).on("mouseover",hx(vx,p.name,null,i,h)).on("mouseout",hx(yx,p.name,null,i,h)),n.ssr&&y.eachChild((function(t){var e=ss(t);e.seriesIndex=p.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var c=s.legendVisualProvider;if(!c.containName(a))return;var p=c.indexOfName(a),f=c.getItemVisual(p,"style"),d=c.getItemVisual(p,"legendIcon"),g=Fn(f.fill);g&&0===g[3]&&(g[3]=.2,f=G(G({},f),{fill:Gn(g,"rgba")}));var v=this._createItem(s,a,o,r,e,t,{},f,d,u,i);v.on("click",hx(dx,null,a,i,h)).on("mouseover",hx(vx,null,a,i,h)).on("mouseout",hx(yx,null,a,i,h)),n.ssr&&v.eachChild((function(t){var e=ss(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}}),this)}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();cx(t,(function(t){var i=t.type,r=new Za({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r),Xu(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Ys(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualDrawType,p=r.get("itemWidth"),f=r.get("itemHeight"),d=r.isSelected(e),g=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),y=i.get("icon"),m=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),cx(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?Wg(c,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]);"inherit"===u.stroke&&(u.stroke=i[h]);"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity);s(u,i);var p=e.getModel("lineStyle"),f=p.getLineStyle();if(s(f,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===f.stroke&&(f.stroke=i.fill),!o){var d=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===d?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),f.stroke=p.get("inactiveColor"),f.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}(l=y||l||"roundRect",i,a,s,c,d,h),_=new px,x=i.getModel("textStyle");if(!it(t.getLegendIcon)||y&&"inherit"!==y){var w="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(function(t){var e=t.icon||"roundRect",n=gg(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:p,itemHeight:f,icon:l,iconRotate:w,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}))}else _.add(t.getLegendIcon({itemWidth:p,itemHeight:f,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}));var b="left"===o?p+5:-5,S=o,T=r.get("formatter"),M=e;rt(T)&&T?M=T.replace("{name}",null!=e?e:""):it(T)&&(M=T(e));var C=d?x.getTextColor():i.get("inactiveColor");_.add(new Za({style:qu(x,{text:M,x:b,y:f/2,fill:C,align:S,verticalAlign:"middle"},{inheritColor:C})}));var I=new Ya({shape:_.getBoundingRect(),style:{fill:"transparent"}}),k=i.getModel("tooltip");return k.get("show")&&Fu({el:I,componentModel:r,itemName:e,itemTooltipOption:k.option}),_.add(I),_.eachChild((function(t){t.silent=!0})),I.silent=!u,this.getContentGroup().add(_),Ys(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();fc(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){fc("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),f=t.getOrient().index,d=0===f?"width":"height",g=0===f?"height":"width",v=0===f?"y":"x";"end"===o?c[f]+=l[d]+p:u[f]+=h[d]+p,c[1-f]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[d]=l[d]+p+h[d],y[g]=Math.max(l[g],h[g]),y[v]=Math.min(0,h[v]+c[1-f]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(nd);function dx(t,e,n,i){yx(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),vx(t,e,n,i)}function gx(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;in[r],d=[-c.x,-c.y];e||(d[i]=l[s]);var g=[0,0],v=[-p.x,-p.y],y=dt(t.get("pageButtonGap",!0),t.get("itemGap",!0));f&&("end"===t.get("pageButtonPosition",!0)?v[i]+=n[r]-p[r]:g[i]+=p[r]+y);v[1-i]+=c[o]/2-p[o]/2,l.setPosition(d),u.setPosition(g),h.setPosition(v);var m={x:0,y:0};if(m[r]=f?n[r]:c[r],m[o]=Math.max(c[o],p[o]),m[a]=Math.min(0,p[a]+v[1-i]),u.__rectSize=n[r],f){var _={x:0,y:0};_[r]=Math.max(n[r]-p[r]-y,0),_[o]=m[o],u.setClipPath(new Ya({shape:_})),u.__rectSize=_[r]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&fu(l,{x:x.contentPosition[0],y:x.contentPosition[1]},f?t:null),this._updatePageInfoView(t,x),m},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;j(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",rt(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=Mx[r],a=Cx[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=h?1:0,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var f=m(u);p.contentPosition[r]=-f.s;for(var d=s+1,g=f,v=f,y=null;d<=h;++d)(!(y=m(l[d]))&&v.e>g.s+i||y&&!_(y,g.s))&&(g=v.i>g.i?v:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),v=y;for(d=s-1,g=f,v=f,y=null;d>=-1;--d)(y=m(l[d]))&&_(v,y.s)||!(g.i=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(fx);function kx(t){Lm(xx),t.registerComponentModel(bx),t.registerComponentView(Ix),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}function Dx(t){Lm(xx),Lm(kx)}const Px=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Ax(t){return function(){const e=Object.create(null);return Px.forEach((n=>{e[n]=function(e){return(...n)=>{if(!t.value)throw new Error("ECharts is not initialized yet.");return t.value[e].apply(t.value,n)}}(n)})),e}()}const Ox={autoresize:[Boolean,Object]},Lx=/^on[^a-z]/,Rx=t=>Lx.test(t);function Bx(t,e){const n=y(t)?m(t):t;return n&&"object"==typeof n&&"value"in n?n.value||e:n||e}const zx={loading:Boolean,loadingOptions:Object};let Nx=null;const Ex="x-vue-echarts";document.head.appendChild(document.createElement("style")).textContent="x-vue-echarts{display:block;width:100%;height:100%;min-width:0}\n";const Fx=function(){if(null!=Nx)return Nx;if("undefined"==typeof HTMLElement||"undefined"==typeof customElements)return Nx=!1;try{new Function("tag","class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);")(Ex)}catch(t){return Nx=!1}return Nx=!0}(),Hx="ecTheme",Vx=/(^&?~?!?)native:/;var Wx=a({name:"echarts",props:o(o({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},Ox),zx),emits:{},inheritAttrs:!1,setup(t,{attrs:e}){const n=s(),i=s(),r=s(),a=l(Hx,null),v=l("ecInitOptions",null),y=l("ecUpdateOptions",null),{autoresize:m,manualUpdate:x,loading:w,loadingOptions:b}=u(t),S=h((()=>r.value||t.option||null)),T=h((()=>t.theme||Bx(a,{}))),M=h((()=>t.initOptions||Bx(v,{}))),C=h((()=>t.updateOptions||Bx(y,{}))),I=h((()=>function(t){const e={};for(const n in t)Rx(n)||(e[n]=t[n]);return e}(e))),k={},D=c().proxy.$listeners,P={};function A(e){if(!n.value)return;const r=i.value=Fv(n.value,T.value,M.value);function o(){const t=e||S.value;t&&r.setOption(t,C.value)}t.group&&(r.group=t.group),Object.keys(P).forEach((t=>{let e=P[t];if(!e)return;let n=t.toLowerCase();"~"===n.charAt(0)&&(n=n.substring(1),e.__once__=!0);let i=r;if(0===n.indexOf("zr:")&&(i=r.getZr(),n=n.substring(3)),e.__once__){delete e.__once__;const t=e;e=(...r)=>{t(...r),i.off(n,e)}}i.on(n,e)})),m.value?_((()=>{r&&!r.isDisposed()&&r.resize(),o()})):o()}function O(){i.value&&(i.value.dispose(),i.value=void 0)}D?Object.keys(D).forEach((t=>{Vx.test(t)?k[t.replace(Vx,"$1")]=D[t]:P[t]=D[t]})):Object.keys(e).filter((t=>Rx(t))).forEach((t=>{let n=t.charAt(2).toLowerCase()+t.slice(3);if(0!==n.indexOf("native:"))"Once"===n.substring(n.length-4)&&(n=`~${n.substring(0,n.length-4)}`),P[n]=e[t];else{const i=`on${n.charAt(7).toUpperCase()}${n.slice(8)}`;k[i]=e[t]}}));let L=null;p(x,(e=>{"function"==typeof L&&(L(),L=null),e||(L=p((()=>t.option),((t,e)=>{t&&(i.value?i.value.setOption(t,o({notMerge:t!==e},C.value)):A())}),{deep:!0}))}),{immediate:!0}),p([T,M],(()=>{O(),A()}),{deep:!0}),f((()=>{t.group&&i.value&&(i.value.group=t.group)}));const R=Ax(i);return function(t,e,n){const i=l("ecLoadingOptions",{}),r=h((()=>o(o({},Bx(i,{})),null==n?void 0:n.value)));f((()=>{const n=t.value;n&&(e.value?n.showLoading(r.value):n.hideLoading())}))}(i,w,b),function(t,e,n){p([n,t,e],(([t,e,n],i,r)=>{let o=null;if(t&&e&&n){const{offsetWidth:i,offsetHeight:r}=t,a=!0===n?{}:n,{throttle:s=100,onResize:l}=a;let u=!1;const h=()=>{e.resize(),null==l||l()},c=s?gd(h,s):h;o=new ResizeObserver((()=>{(u||(u=!0,t.offsetWidth!==i||t.offsetHeight!==r))&&c()})),o.observe(t)}r((()=>{o&&(o.disconnect(),o=null)}))}))}(i,m,n),d((()=>{A()})),g((()=>{Fx&&n.value?n.value.__dispose=O:O()})),o({chart:i,root:n,setOption:function(e,n){t.manualUpdate&&(r.value=e),i.value?i.value.setOption(e,n||{}):A(e)},nonEventAttrs:I,nativeListeners:k},R)},render(){const t=o(o({},this.nonEventAttrs),this.nativeListeners);return t.ref="root",t.class=t.class?["echarts"].concat(t.class):"echarts",v(Ex,t)}});export{Dx as $,tt as A,Um as B,ad as C,fs as D,et as E,Fc as F,yr as G,Lr as H,jf as I,eg as J,Gm as K,Xm as L,wc as M,qu as N,lc as O,xe as P,ss as Q,Ya as R,ps as S,nd as T,Lm as U,Hx as V,Wx as W,Vm as X,lx as Y,Za as Z,w as _,Gl as a,Im as a$,jr as a0,Ct as a1,Cc as a2,it as a3,Ec as a4,Sy as a5,My as a6,by as a7,Br as a8,ip as a9,Gr as aA,Ds as aB,$r as aC,Ju as aD,eu as aE,Wn as aF,id as aG,rt as aH,vh as aI,Zi as aJ,th as aK,gd as aL,Ky as aM,Zy as aN,Y as aO,W as aP,vc as aQ,mc as aR,yc as aS,Dy as aT,$ as aU,_e as aV,De as aW,Wt as aX,Vy as aY,wm as aZ,Ly as a_,Z as aa,ey as ab,Mm as ac,km as ad,Ui as ae,Dm as af,vr as ag,dr as ah,ar as ai,gg as aj,Qp as ak,Rs as al,Bs as am,yg as an,Fa as ao,vu as ap,vg as aq,Vu as ar,st as as,Cy as at,Uy as au,pn as av,Ra as aw,da as ax,hn as ay,sc as az,Ft as b,X as b0,Sm as b1,qm as b2,jm as b3,Pm as b4,Tm as b5,J as b6,Ay as b7,bm as b8,Ym as b9,Hr as bA,Fu as bB,gc as bC,Mu as bD,hc as bE,Km as ba,Bu as bb,l_ as bc,Yl as bd,Au as be,Q as bf,Vl as bg,V as bh,Wu as bi,Wf as bj,Lf as bk,fh as bl,_l as bm,El as bn,Du as bo,Dt as bp,K as bq,Hi as br,Lo as bs,ti as bt,q as bu,cu as bv,Or as bw,H_ as bx,Nr as by,_c as bz,pr as c,U as d,j as e,at as f,dc as g,G as h,nt as i,Wm as j,du as k,Vt as l,Ur as m,fa as n,_u as o,fr as p,Ks as q,dt as r,Rm as s,qs as t,fu as u,Xu as v,Yu as w,gt as x,zl as y,mu as z}; diff --git a/docs/assets/index-To49Aw5y.js b/docs/assets/index-To49Aw5y.js new file mode 100644 index 0000000..71a44cd --- /dev/null +++ b/docs/assets/index-To49Aw5y.js @@ -0,0 +1 @@ +import{_ as r}from"./plugin-vueexport-helper-BCo6x5W8.js";import{o as e,p as o,b as s,L as n}from"./index-BT0ZcDkn.js";const t=r({},[["render",function(r,t){const a=n;return e(),o("div",null,[s(a)])}]]);export{t as default}; diff --git a/docs/assets/index-iaKve87E.js b/docs/assets/index-iaKve87E.js new file mode 100644 index 0000000..55d2903 --- /dev/null +++ b/docs/assets/index-iaKve87E.js @@ -0,0 +1 @@ +var e=Object.defineProperty,a=Object.defineProperties,r=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,p=(a,r,t)=>r in a?e(a,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[r]=t;import{d as c,u as l,a as i,bm as u,o as n,c as y,w as m,aB as f,p as d,h as v,b,e as j,Z as g,j as O,B as D,L as P}from"./index-BT0ZcDkn.js";import{_}from"./InputGroup-Bg5yCPNp.js";import{u as h}from"./use-message-CulIy1l8.js";import{N as w}from"./Input-D2qMgPO1.js";import"./use-locale-CbMPSc0o.js";import"./use-merged-state-D7wGS6Km.js";const x=c((I=((e,a)=>{for(var r in a||(a={}))o.call(a,r)&&p(e,r,a[r]);if(t)for(var r of t(a))s.call(a,r)&&p(e,r,a[r]);return e})({},{name:"Copy"}),a(I,r({__name:"index",setup(e){const{t:a}=l(),r=h(),t=i("");function o(){r.success(a("page.copyDirective.copySuccess"))}return(e,r)=>{const s=w,p=D,c=_,l=P,i=u("copy");return n(),y(l,{title:j(a)("page.copyDirective.copyDirective")},{default:m((()=>[f((n(),d("div",null,r[1]||(r[1]=[v("copyMe")]))),[[i,123]]),b(c,null,{default:m((()=>[b(s,{value:j(t),"onUpdate:value":r[0]||(r[0]=e=>g(t)?t.value=e:null),placeholder:j(a)("page.copyDirective.copyPlaceholder")},null,8,["value","placeholder"]),f((n(),y(p,{type:"primary",onClick:o},{default:m((()=>[v(O(j(a)("page.copyDirective.copy")),1)])),_:1})),[[i,j(t)]])])),_:1})])),_:1},8,["title"])}}}))));var I;export{x as default}; diff --git a/docs/assets/index-zHZrWMB7.js b/docs/assets/index-zHZrWMB7.js new file mode 100644 index 0000000..a8f95a6 --- /dev/null +++ b/docs/assets/index-zHZrWMB7.js @@ -0,0 +1 @@ +var t=Object.defineProperty,e=Object.defineProperties,n=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,o=(e,n,i)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i,s=(t,e)=>{for(var n in e||(e={}))a.call(e,n)&&o(t,n,e[n]);if(i)for(var n of i(e))r.call(e,n)&&o(t,n,e[n]);return t},l=(t,e,n)=>new Promise(((i,a)=>{var r=t=>{try{s(n.next(t))}catch(e){a(e)}},o=t=>{try{s(n.throw(t))}catch(e){a(e)}},s=t=>t.done?i(t.value):Promise.resolve(t.value).then(r,o);s((n=n.apply(t,e)).next())}));import{y as u,z as c,A as h,b4 as d,Q as p,d as g,D as f,a3 as m,F as v,b1 as y,a4 as x,az as b,aO as w,v as S,au as _,i as A,t as M,l as C,C as I,bb as k,G as D,x as L,b0 as T,bc as P,o as N,p as E,g as O,al as z,bd as R,aj as F,c as B,w as V,be as G,e as $,ae as W,j as H,L as j,bf as Y,q as U,b as X,_ as Z,a as q,H as K,O as J,s as Q,P as tt}from"./index-BT0ZcDkn.js";import{_ as et}from"./plugin-vueexport-helper-BCo6x5W8.js";import{_ as nt,a as it}from"./Grid-qb506I7V.js";import{a0 as at,e as rt,a1 as ot,a2 as st,a3 as lt,E as ut,a4 as ct,a5 as ht,a6 as dt,a7 as pt,i as gt,a8 as ft,a9 as mt,aa as vt,ab as yt,m as xt,ac as bt,ad as wt,ae as St,af as _t,ag as At,c as Mt,ah as Ct,_ as It,ai as kt,aj as Dt,I as Lt,ak as Tt,al as Pt,am as Nt,u as Et,o as Ot,k as zt,w as Rt,an as Ft,ao as Bt,h as Vt,v as Gt,t as $t,Q as Wt,ap as Ht,aq as jt,ar as Yt,as as Ut,at as Xt,f as Zt,au as qt,av as Kt,aw as Jt,ax as Qt,ay as te,R as ee,y as ne,az as ie,d as ae,q as re,aA as oe,C as se,aB as le,Z as ue,aC as ce,aD as he,aE as de,S as pe,aF as ge,aG as fe,aH as me,aI as ve,aJ as ye,z as xe,j as be,aK as we,aL as Se,aM as _e,aN as Ae,M as Me,aO as Ce,aP as Ie,aQ as ke,aR as De,aS as Le,aT as Te,aU as Pe,aV as Ne,aW as Ee,aX as Oe,aY as ze,aZ as Re,a_ as Fe,g as Be,a$ as Ve,b0 as Ge,b1 as $e,b2 as We,b3 as He,b4 as je,b5 as Ye,b6 as Ue,b7 as Xe,b8 as Ze,b9 as qe,ba as Ke,bb as Je,bc as Qe,bd as tn,be as en,T as nn,bf as an,bg as rn,a as on,bh as sn,bi as ln,L as un,A as cn,B as hn,bj as dn,bk as pn,bl as gn,bm as fn,bn as mn,bo as vn,p as yn,U as xn,K as bn,bp as wn,bq as Sn,br as _n,bs as An,bt as Mn,bu as Cn,bv as In,bw as kn,bx as Dn,by as Ln,bz as Tn,bA as Pn,bB as Nn,bC as En,bD as On,r as zn,bE as Rn,W as Fn,X as Bn,Y as Vn,$ as Gn}from"./index-R-_qEdOR.js";import{u as $n}from"./useLoading-8gX1N9xN.js";import"./useScreen-jjQj1L0Z.js";import{_ as Wn}from"./Spin-WJzlISCz.js";import{i as Hn}from"./isNil-aV-w2MPu.js";import{_ as jn}from"./Space-_SFqgYmP.js";import"./next-frame-once-DiJwGkuW.js";import"./get-slot-BjAOOWF7.js";import"./use-compitable-CHcH6xDN.js";const Yn=d(24,null).map(((t,e)=>{const n=e+1,i=`calc(100% / 24 * ${n})`;return[p(`${n}-span`,{width:i}),p(`${n}-offset`,{marginLeft:i}),p(`${n}-push`,{left:i}),p(`${n}-pull`,{right:i})]})),Un=u([c("row",{width:"100%",display:"flex",flexWrap:"wrap"}),c("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[h("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),Yn])]),Xn=_("n-row"),Zn=g({name:"Row",props:{gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String},setup(t){const{mergedClsPrefixRef:e,mergedRtlRef:n}=f(t);m("-legacy-grid",Un,e);const i=v("Row",n,e),a=y((()=>{const{gutter:e}=t;return Array.isArray(e)&&e[1]||0})),r=y((()=>{const{gutter:e}=t;return Array.isArray(e)?e[0]:Number(e)}));return x(Xn,{mergedClsPrefixRef:e,gutterRef:b(t,"gutter"),verticalGutterRef:a,horizontalGutterRef:r}),{mergedClsPrefix:e,rtlEnabled:i,styleMargin:y((()=>`-${w(a.value,{c:.5})} -${w(r.value,{c:.5})}`)),styleWidth:y((()=>`calc(100% + ${w(r.value)})`))}},render(){return S("div",{class:[`${this.mergedClsPrefix}-row`,this.rtlEnabled&&`${this.mergedClsPrefix}-row--rtl`],style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}}),qn=g({name:"Col",props:{span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}},setup(t){const e=A(Xn,null);return e||M("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:e.mergedClsPrefixRef,gutter:e.gutterRef,stylePadding:C((()=>`${w(e.verticalGutterRef.value,{c:.5})} ${w(e.horizontalGutterRef.value,{c:.5})}`)),mergedPush:C((()=>Number(t.push)-Number(t.pull)))}},render(){const{$slots:t,span:e,mergedPush:n,offset:i,stylePadding:a,gutter:r,mergedClsPrefix:o}=this;return S("div",{class:[`${o}-col`,{[`${o}-col--${e}-span`]:!0,[`${o}-col--${n}-push`]:n>0,[`${o}-col--${-n}-pull`]:n<0,[`${o}-col--${i}-offset`]:i}],style:{padding:a}},r?S("div",null,t):t)}}),Kn=c("statistic",[h("label","\n font-weight: var(--n-label-font-weight);\n transition: .3s color var(--n-bezier);\n font-size: var(--n-label-font-size);\n color: var(--n-label-text-color);\n "),c("statistic-value","\n margin-top: 4px;\n font-weight: var(--n-value-font-weight);\n ",[h("prefix","\n margin: 0 4px 0 0;\n font-size: var(--n-value-font-size);\n transition: .3s color var(--n-bezier);\n color: var(--n-value-prefix-text-color);\n ",[c("icon",{verticalAlign:"-0.125em"})]),h("content","\n font-size: var(--n-value-font-size);\n transition: .3s color var(--n-bezier);\n color: var(--n-value-text-color);\n "),h("suffix","\n margin: 0 0 0 4px;\n font-size: var(--n-value-font-size);\n transition: .3s color var(--n-bezier);\n color: var(--n-value-suffix-text-color);\n ",[c("icon",{verticalAlign:"-0.125em"})])])]),Jn=g({name:"Statistic",props:Object.assign(Object.assign({},I.props),{tabularNums:Boolean,label:String,value:[String,Number]}),setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:n,mergedRtlRef:i}=f(t),a=I("Statistic","-statistic",Kn,k,t,e),r=v("Statistic",i,e),o=C((()=>{const{self:{labelFontWeight:t,valueFontSize:e,valueFontWeight:n,valuePrefixTextColor:i,labelTextColor:r,valueSuffixTextColor:o,valueTextColor:s,labelFontSize:l},common:{cubicBezierEaseInOut:u}}=a.value;return{"--n-bezier":u,"--n-label-font-size":l,"--n-label-font-weight":t,"--n-label-text-color":r,"--n-value-font-weight":n,"--n-value-font-size":e,"--n-value-prefix-text-color":i,"--n-value-suffix-text-color":o,"--n-value-text-color":s}})),s=n?D("statistic",void 0,o,t):void 0;return{rtlEnabled:r,mergedClsPrefix:e,cssVars:n?void 0:o,themeClass:null==s?void 0:s.themeClass,onRender:null==s?void 0:s.onRender}},render(){var t;const{mergedClsPrefix:e,$slots:{default:n,label:i,prefix:a,suffix:r}}=this;return null===(t=this.onRender)||void 0===t||t.call(this),S("div",{class:[`${e}-statistic`,this.themeClass,this.rtlEnabled&&`${e}-statistic--rtl`],style:this.cssVars},L(i,(t=>S("div",{class:`${e}-statistic__label`},this.label||t))),S("div",{class:`${e}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},L(a,(t=>t&&S("span",{class:`${e}-statistic-value__prefix`},t))),void 0!==this.value?S("span",{class:`${e}-statistic-value__content`},this.value):L(n,(t=>t&&S("span",{class:`${e}-statistic-value__content`},t))),L(r,(t=>t&&S("span",{class:`${e}-statistic-value__suffix`},t)))))}});function Qn(){const t=A(T,null);return C((()=>{if(null===t)return P;const{mergedThemeRef:{value:e},mergedThemeOverridesRef:{value:n}}=t,i=(null==e?void 0:e.common)||P;return(null==n?void 0:n.common)?Object.assign({},i,n.common):i}))}const ti={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ei=[O("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[O("path",{d:"M12 9v2m0 4v.01"}),O("path",{d:"M5 19h14a2 2 0 0 0 1.84-2.75L13.74 4a2 2 0 0 0-3.5 0l-7.1 12.25A2 2 0 0 0 4.89 19"})],-1)],ni=g({name:"AlertTriangle",render:function(t,e){return N(),E("svg",ti,ei)}}),ii={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ai=[O("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[O("path",{d:"M3 20l1.3-3.9A9 8 0 1 1 7.7 19L3 20"}),O("path",{d:"M8 13l3-2l2 2l3-2"})],-1)],ri=g({name:"BrandMessenger",render:function(t,e){return N(),E("svg",ii,ai)}}),oi={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},si=[O("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[O("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),O("path",{d:"M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"})],-1)],li=g({name:"Copy",render:function(t,e){return N(),E("svg",oi,si)}}),ui={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ci=[O("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[O("path",{d:"M5 19h6a3 3 0 0 0 3-3V9"}),O("path",{d:"M10 13l4-4l4 4m-8-5l4-4l4 4"})],-1)],hi=g({name:"CornerRightUpDouble",render:function(t,e){return N(),E("svg",ui,ci)}}),di={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},pi=[O("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[O("path",{d:"M16.7 8A3 3 0 0 0 14 6h-4a3 3 0 0 0 0 6h4a3 3 0 0 1 0 6h-4a3 3 0 0 1-2.7-2"}),O("path",{d:"M12 3v3m0 12v3"})],-1)],gi=g({name:"CurrencyDollar",render:function(t,e){return N(),E("svg",di,pi)}}),fi={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},mi=[O("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[O("path",{d:"M19.5 13.572L12 21l-2.896-2.868m-6.117-8.104A5 5 0 0 1 12 7.006a5 5 0 1 1 7.5 6.572"}),O("path",{d:"M3 13h2l2 3l2-6l1 3h3"})],-1)],vi=g({name:"Heartbeat",render:function(t,e){return N(),E("svg",fi,mi)}}),yi={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},xi=[z('',1)],bi=g({name:"Share",render:function(t,e){return N(),E("svg",yi,xi)}}),wi={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Si=[O("path",{d:"M7 11v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h3a4 4 0 0 0 4-4V6a2 2 0 0 1 4 0v5h3a2 2 0 0 1 2 2l-1 5a2 3 0 0 1-2 2h-7a3 3 0 0 1-3-3",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)],_i=g({name:"ThumbUp",render:function(t,e){return N(),E("svg",wi,Si)}}),Ai={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Mi=[O("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[O("circle",{cx:"12",cy:"12",r:"9"}),O("circle",{cx:"12",cy:"10",r:"3"}),O("path",{d:"M6.168 18.849A4 4 0 0 1 10 16h4a4 4 0 0 1 3.834 2.855"})],-1)],Ci=g({name:"UserCircle",render:function(t,e){return N(),E("svg",Ai,Mi)}}),Ii={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ki=[O("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[O("path",{d:"M17 8V5a1 1 0 0 0-1-1H6a2 2 0 0 0 0 4h12a1 1 0 0 1 1 1v3m0 4v3a1 1 0 0 1-1 1H6a2 2 0 0 1-2-2V6"}),O("path",{d:"M20 12v4h-4a2 2 0 0 1 0-4h4"})],-1)],Di=g({name:"Wallet",render:function(t,e){return N(),E("svg",Ii,ki)}});function Li(t){const{getDarkMode:e}=R();return{chartOption:C((()=>t(e.value)))}}var Ti=function(){return function(t){this.coordSysDims=[],this.axisMap=ot(),this.categoryAxisMap=ot(),this.coordSysName=t}}();var Pi={cartesian2d:function(t,e,n,i){var a=t.getReferringComponents("xAxis",at).models[0],r=t.getReferringComponents("yAxis",at).models[0];e.coordSysDims=["x","y"],n.set("x",a),n.set("y",r),Ni(a)&&(i.set("x",a),e.firstCategoryDimIndex=0),Ni(r)&&(i.set("y",r),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var a=t.getReferringComponents("singleAxis",at).models[0];e.coordSysDims=["single"],n.set("single",a),Ni(a)&&(i.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var a=t.getReferringComponents("polar",at).models[0],r=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",o),Ni(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),Ni(o)&&(i.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var a=t.ecModel,r=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=r.dimensions.slice();rt(r.parallelAxisIndex,(function(t,r){var s=a.getComponent("parallelAxis",t),l=o[r];n.set(l,s),Ni(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=r))}))}};function Ni(t){return"category"===t.get("type")}function Ei(t,e,n){n=n||{};var i,a,r=e.getSourceManager();a=(i=r.getSource()).sourceFormat===st;var o=function(t){var e=t.get("coordinateSystem"),n=new Ti(e),i=Pi[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),a=mt.get(i);return e&&e.coordSysDims&&(n=vt(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var a=i.get("type");n.type=yt(a)}return n}))),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}(e,o),l=n.useEncodeDefaulter,u=lt(l)?l:l?ut(ct,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=ht(i,c),d=function(t,e,n){var i,a;return n&&rt(t,(function(t,r){var o=t.coordDim,s=n.categoryAxisMap.get(o);s&&(null==i&&(i=r),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(a=!0)})),a||null==i||(t[i].otherDims.itemName=0),i}(h.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(h),g=dt(e,{schema:h,store:p}),f=new pt(h,e);f.setCalculationInfo(g);var m=null!=d&&function(t){if(t.sourceFormat===st){var e=function(t){var e=0;for(;e0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Fi(t){var e=t.getLabelModel().get("customValues");if(e){var n=bt(t);return{labels:Ri(t,e).map((function(e){var i={value:e};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:e}}))}}return"category"===t.type?function(t){var e=t.getLabelModel(),n=Vi(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=bt(t);return{labels:vt(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function Bi(t,e){var n=t.getTickModel().get("customValues");return n?{ticks:Ri(t,n)}:"category"===t.type?function(t,e){var n,i,a=Gi(t,"ticks"),r=wt(e),o=$i(a,r);if(o)return o;e.get("show")&&!t.scale.isBlank()||(n=[]);if(lt(r))n=ji(t,r,!0);else if("auto"===r){var s=Vi(t,t.getLabelModel());i=s.labelCategoryInterval,n=vt(s.labels,(function(t){return t.tickValue}))}else n=Hi(t,i=r,!0);return Wi(a,r,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:vt(t.scale.getTicks(),(function(t){return t.value}))}}function Vi(t,e){var n,i,a=Gi(t,"labels"),r=wt(e),o=$i(a,r);return o||(lt(r)?n=ji(t,r):(i="auto"===r?function(t){var e=zi(t).autoInterval;return null!=e?e:zi(t).autoInterval=t.calculateCategoryInterval()}(t):r,n=Hi(t,i)),Wi(a,r,{labels:n,labelCategoryInterval:i}))}function Gi(t,e){return zi(t)[e]||(zi(t)[e]=[])}function $i(t,e){for(var n=0;n1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=_t(t),d=o.get("showMinLabel")||h,p=o.get("showMaxLabel")||h;d&&u!==r[0]&&f(r[0]);for(var g=u;g<=r[1];g+=l)f(g);function f(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:a.getLabel(e),tickValue:t})}return p&&g-l!==r[1]&&f(r[1]),s}function ji(t,e,n){var i=t.scale,a=bt(t),r=[];return rt(i.getTicks(),(function(t){var o=i.getLabel(t),s=t.value;e(t.value,o)&&r.push(n?s:{formattedLabel:a(t),rawLabel:o,tickValue:s})})),r}var Yi=[0,1],Ui=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return At(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&Xi(n=n.slice(),i.count()),Mt(t,Yi,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&Xi(n=n.slice(),i.count());var a=Mt(t,n,Yi,e);return this.scale.scale(a)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=Bi(this,e).ticks,i=vt(n,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,i){var a=e.length;if(!t.onBand||n||!a)return;var r,o,s=t.getExtent();if(1===a)e[0].coord=s[0],r=e[1]={coord:s[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;rt(e,(function(t){t.coord-=u/2})),o=1+t.scale.getExtent()[1]-e[a-1].tickValue,r={coord:e[a-1].coord+u*o},e.push(r)}var c=s[0]>s[1];h(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift());i&&h(s[0],e[0].coord)&&e.unshift({coord:s[0]});h(s[1],r.coord)&&(i?r.coord=s[1]:e.pop());i&&h(r.coord,s[1])&&e.push({coord:s[1]});function h(t,e){return t=Ct(t),e=Ct(e),c?t>e:t0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return vt(e,(function(t){return vt(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return Fi(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=bt(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,r=a.getExtent(),o=a.count();if(r[1]-r[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=r[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),d=0,p=0;l<=r[1];l+=s){var g,f,m=St(n({value:l}),e.font,"center","top");g=1.3*m.width,f=1.3*m.height,d=Math.max(d,g,7),p=Math.max(p,f,7)}var v=d/c,y=p/h;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),b=zi(t.model),w=t.getExtent(),S=b.lastAutoInterval,_=b.lastTickCount;return null!=S&&null!=_&&Math.abs(S-x)<=1&&Math.abs(_-o)<=1&&S>x&&b.axisExtent0===w[0]&&b.axisExtent1===w[1]?x=S:(b.lastTickCount=o,b.lastAutoInterval=x,b.axisExtent0=w[0],b.axisExtent1=w[1]),x}(this)},t}();function Xi(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var Zi=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return It(e,t),e.prototype.getInitialData=function(t){return Ei(0,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new kt,n=Dt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),r="none"===i?"circle":i,o=.8*t.itemHeight,s=Dt(r,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?a:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),r.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Lt);function qi(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var a=Tt(t,e,n[0]);return null!=a?a+"":null}if(i){for(var r=[],o=0;o=0&&i.push(e[r])}return i.join(" ")}var Ji=function(t){function e(e,n,i,a){var r=t.call(this)||this;return r.updateData(e,n,i,a),r}return It(e,t),e.prototype._createSymbol=function(t,e,n,i,a){this.removeAll();var r=Dt(t,-1,-1,2,2,null,a);r.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),r.drift=Qi,this._symbolType=t,this.add(r)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Pt(this.childAt(0))},e.prototype.downplay=function(){Nt(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,a){this.silent=!1;var r=t.getItemVisual(n,"symbol")||"circle",o=t.hostModel,s=e.getSymbolSize(t,n),l=r!==this._symbolType,u=a&&a.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(r,t,n,s,c)}else{(d=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(h):Et(d,h,o,n),Ot(d)}if(this._updateCommon(t,n,s,i,a),l){var d=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,zt(d,h,o,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,a){var r,o,s,l,u,c,h,d,p,g=this.childAt(0),f=t.hostModel;if(i&&(r=i.emphasisItemStyle,o=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,d=i.hoverScale,p=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(e),v=m.getModel("emphasis");r=v.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),o=m.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=v.get("disabled"),h=Rt(m),d=v.getShallow("scale"),p=m.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");g.attr("rotation",(y||0)*Math.PI/180||0);var x=Ft(t.getItemVisual(e,"symbolOffset"),n);x&&(g.x=x[0],g.y=x[1]),p&&g.attr("cursor",p);var b=t.getItemVisual(e,"style"),w=b.fill;if(g instanceof Bt){var S=g.style;g.useStyle(Vt({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else g.__isEmptyBrush?g.useStyle(Vt({},b)):g.useStyle(b),g.style.decal=null,g.setColor(w,a&&a.symbolInnerColor),g.style.strokeNoScale=!0;var _=t.getItemVisual(e,"liftZ"),A=this._z2;null!=_?null==A&&(this._z2=g.z2,g.z2+=_):null!=A&&(g.z2=A,this._z2=null);var M=a&&a.useNameLabel;Gt(g,h,{labelFetcher:f,labelDataIndex:e,defaultText:function(e){return M?t.getName(e):qi(t,e)},inheritColor:w,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=g.ensureState("emphasis");C.style=r,g.ensureState("select").style=s,g.ensureState("blur").style=o;var I=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;C.scaleX=this._sizeX*I,C.scaleY=this._sizeY*I,this.setSymbolScale(1),$t(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),a=Wt(this).dataIndex,r=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var o=i.getTextContent();o&&Ht(o,{style:{opacity:0}},e,{dataIndex:a,removeOpt:r,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ht(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:a,cb:t,removeOpt:r})},e.getSymbolSize=function(t,e){return jt(t.getItemVisual(e,"symbolSize"))},e}(kt);function Qi(t,e){this.parent.drift(t,e)}function ta(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function ea(t){return null==t||Ut(t)||(t={isIgnore:t}),t||{}}function na(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Rt(e),cursorStyle:e.get("cursor")}}var ia=function(){function t(t){this.group=new kt,this._SymbolCtor=t||Ji}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=ea(e);var n=this.group,i=t.hostModel,a=this._data,r=this._SymbolCtor,o=e.disableAnimation,s=na(t),l={disableAnimation:o},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};a||n.removeAll(),t.diff(a).add((function(i){var a=u(i);if(ta(t,a,i,e)){var o=new r(t,i,s,l);o.setPosition(a),t.setItemGraphicEl(i,o),n.add(o)}})).update((function(c,h){var d=a.getItemGraphicEl(h),p=u(c);if(ta(t,p,c,e)){var g=t.getItemVisual(c,"symbol")||"circle",f=d&&d.getSymbolType&&d.getSymbolType();if(!d||f&&f!==g)n.remove(d),(d=new r(t,c,s,l)).setPosition(p);else{d.updateData(t,c,s,l);var m={x:p[0],y:p[1]};o?d.attr(m):Et(d,m,i)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=na(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=ea(n);for(var a=t.start;a0?n=i[0]:i[1]<0&&(n=i[1]);return n}(a,n),o=i.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),c="x"===s||"radius"===s?1:0,h=vt(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return Xt(e,h[0])&&(d=!0,h[0]=p),Xt(e,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:r,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function ra(t,e,n,i){var a=NaN;t.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=t.valueStart);var r=t.baseDataOffset,o=[];return o[r]=n.get(t.baseDim,i),o[1-r]=a,e.dataToPoint(o)}var oa=Math.min,sa=Math.max;function la(t,e){return isNaN(t)||isNaN(e)}function ua(t,e,n,i,a,r,o,s,l){for(var u,c,h,d,p,g,f=n,m=0;m=a||f<0)break;if(la(v,y)){if(l){f+=r;continue}break}if(f===n)t[r>0?"moveTo":"lineTo"](v,y),h=v,d=y;else{var x=v-u,b=y-c;if(x*x+b*b<.5){f+=r;continue}if(o>0){for(var w=f+r,S=e[2*w],_=e[2*w+1];S===v&&_===y&&m=i||la(S,_))p=v,g=y;else{C=S-u,I=_-c;var L=v-u,T=S-v,P=y-c,N=_-y,E=void 0,O=void 0;if("x"===s){var z=C>0?1:-1;p=v-z*(E=Math.abs(L))*o,g=y,k=v+z*(O=Math.abs(T))*o,D=y}else if("y"===s){var R=I>0?1:-1;p=v,g=y-R*(E=Math.abs(P))*o,k=v,D=y+R*(O=Math.abs(N))*o}else E=Math.sqrt(L*L+P*P),p=v-C*o*(1-(M=(O=Math.sqrt(T*T+N*N))/(O+E))),g=y-I*o*(1-M),D=y+I*o*M,k=oa(k=v+C*o*M,sa(S,v)),D=oa(D,sa(_,y)),k=sa(k,oa(S,v)),g=y-(I=(D=sa(D,oa(_,y)))-y)*E/O,p=oa(p=v-(C=k-v)*E/O,sa(u,v)),g=oa(g,sa(c,y)),k=v+(C=v-(p=sa(p,oa(u,v))))*O/E,D=y+(I=y-(g=sa(g,oa(c,y))))*O/E}t.bezierCurveTo(h,d,p,g,v,y),h=k,d=D}else t.lineTo(v,y)}u=v,c=y,f+=r}return m}var ca=function(){return function(){this.smooth=0,this.smoothConstraint=!0}}(),ha=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return It(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ca},e.prototype.buildPath=function(t,e){var n=e.points,i=0,a=n.length/2;if(e.connectNulls){for(;a>0&&la(n[2*a-2],n[2*a-1]);a--);for(;i=0){var m=o?(c-i)*f+i:(u-n)*f+n;return o?[t,m]:[m,t]}n=u,i=c;break;case r.C:u=a[l++],c=a[l++],h=a[l++],d=a[l++],p=a[l++],g=a[l++];var v=o?Kt(n,u,h,p,t,s):Kt(i,c,d,g,t,s);if(v>0)for(var y=0;y=0){m=o?te(i,c,d,g,x):te(n,u,h,p,x);return o?[t,m]:[m,t]}}n=p,i=g}}},e}(Jt),da=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return It(e,t),e}(ca),pa=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return It(e,t),e.prototype.getDefaultShape=function(){return new da},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,a=0,r=n.length/2,o=e.smoothMonotone;if(e.connectNulls){for(;r>0&&la(n[2*r-2],n[2*r-1]);r--);for(;a=0;o--){var s=t.getDimensionInfo(i[o].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){r=i[o];break}}if(r){var l=e.getAxis(a),u=vt(r.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=r.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=function(t,e){var n,i,a=[],r=t.length;function o(t,e,n){var i=t.coord,a=(n-i)/(e.coord-i);return{coord:n,color:ge(a,[t.color,e.color])}}for(var s=0;se){i?a.push(o(i,l,e)):n&&a.push(o(n,l,0),o(n,l,e));break}n&&(a.push(o(n,l,0)),n=null),a.push(l),i=l}}return a}(u,"x"===a?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var g=d[0].coord-10,f=d[p-1].coord+10,m=f-g;if(m<.001)return"transparent";rt(d,(function(t){t.offset=(t.coord-g)/m})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var v=new de(0,0,0,0,d,!0);return v[a]=g,v[a+"2"]=f,v}}}function _a(t,e,n){var i=t.get("showAllSymbol"),a="auto"===i;if(!i||a){var r=n.getAxesByScale("ordinal")[0];if(r&&(!a||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var a=e.count(),r=Math.max(1,Math.round(a/5)),o=0;oi)return!1;return!0}(r,e))){var o=e.mapDimension(r.dim),s={};return rt(r.getViewLabels(),(function(t){var e=r.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(o,t))}}}}function Aa(t,e){return[t[2*e],t[2*e+1]]}function Ma(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1);Wt(p).seriesIndex=t.seriesIndex,$t(p,T,P,N);var E=ba(t.get("smooth")),O=t.get("smoothMonotone");if(p.setShape({smooth:E,smoothMonotone:O,connectNulls:S}),g){var z=o.getCalculationInfo("stackedOnSeries"),R=0;g.useStyle(ae(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),z&&(R=ba(z.get("smooth"))),g.setShape({smooth:E,stackedOnSmooth:R,smoothMonotone:O,connectNulls:S}),re(g,t,"areaStyle"),Wt(g).seriesIndex=t.seriesIndex,$t(g,T,P,N)}var F=function(t){i._changePolyState(t)};o.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=F)})),this._polyline.onHoverStateChange=F,this._data=o,this._coordSys=a,this._stackedOnPoints=b,this._points=u,this._step=C,this._valueOrigin=y,t.get("triggerLineEvent")&&(this.packEventData(t,p),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,e){Wt(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var a=t.getData(),r=oe(a,i);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&r>=0){var o=a.getLayout("points"),s=a.getItemGraphicEl(r);if(!s){var l=o[2*r],u=o[2*r+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new Ji(a,r)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,a.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else se.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var a=t.getData(),r=oe(a,i);if(this._changePolyState("normal"),null!=r&&r>=0){var o=a.getItemGraphicEl(r);o&&(o.__temp?(a.setItemGraphicEl(r,null),this.group.remove(o)):o.downplay())}else se.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;le(this._polyline,t),e&&le(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new ha({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new pa({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,a,r=e.getBaseAxis(),o=r.inverse;"cartesian2d"===e.type?(i=r.isHorizontal(),a=!1):"polar"===e.type&&(i="angle"===r.dim,a=!0);var s=t.hostModel,l=s.get("animationDuration");lt(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=lt(u)?u(null):u;t.eachItemGraphicEl((function(t,r){var s=t;if(s){var h=[t.x,t.y],d=void 0,p=void 0,g=void 0;if(n)if(a){var f=n,m=e.pointToCoord(h);i?(d=f.startAngle,p=f.endAngle,g=-m[1]/180*Math.PI):(d=f.r0,p=f.r,g=m[0])}else{var v=n;i?(d=v.x,p=v.x+v.width,g=t.x):(d=v.y+v.height,p=v.y,g=t.y)}var y=p===d?0:(g-d)/(p-d);o&&(y=1-y);var x=lt(u)?u(r):l*y+c,b=s.getSymbolPath(),w=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:x}),b.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(Ma(t)){var a=t.getData(),r=this._polyline,o=a.getLayout("points");if(!o)return r.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new ue({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(o);l>=0&&(Gt(r,Rt(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?Ki(a,n):qi(a,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),a=n.inverse,r=i?a?"right":"left":"center",o=i?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||r,verticalAlign:t.get("verticalAlign")||o}}}(i,e)),r.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,a,r,o){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=r.get("precision"),p=r.get("distance")||0,g=o.getBaseAxis(),f=g.isHorizontal(),m=g.inverse,v=e.shape,y=m?f?v.x:v.y+v.height:f?v.x+v.width:v.y,x=(f?p:0)*(m?-1:1),b=(f?0:-p)*(m?-1:1),w=f?"x":"y",S=function(t,e,n){for(var i,a,r=t.length/2,o="x"===n?0:1,s=0,l=-1,u=0;u=e||i>=e&&a<=e){l=u;break}s=u,i=a}else i=a;return{range:[s,l],t:(e-i)/(a-i)}}(u,y,w),_=S.range,A=_[1]-_[0],M=void 0;if(A>=1){if(A>1&&!h){var C=Aa(u,_[0]);s.attr({x:C[0]+x,y:C[1]+b}),a&&(M=c.getRawValue(_[0]))}else{(C=l.getPointOn(y,w))&&s.attr({x:C[0]+x,y:C[1]+b});var I=c.getRawValue(_[0]),k=c.getRawValue(_[1]);a&&(M=ce(n,d,I,k,S.t))}i.lastFrameIndex=_[0]}else{var D=1===t||i.lastFrameIndex>0?_[0]:0;C=Aa(u,D);a&&(M=c.getRawValue(D)),s.attr({x:C[0]+x,y:C[1]+b})}if(a){var L=he(s);"function"==typeof L.setLabelText&&L.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,a,r,o){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,i,a,r,o){for(var s=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),l=[],u=[],c=[],h=[],d=[],p=[],g=[],f=aa(a,e,o),m=t.getLayout("points")||[],v=e.getLayout("points")||[],y=0;y3e3||l&&xa(d,g)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:g})));s.shape.__points=c.current,s.shape.points=h;var f={shape:{points:p}};c.current!==h&&(f.shape.__points=c.next),s.stopAnimation(),Et(s,f,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Et(l,{shape:{stackedOnPoints:g}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=c.status,y=0;ye&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;ne&&(e=r,n=a)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},Da=function(t){return Math.round(t.length/2)};function La(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),a=t.get("sampling"),r=t.coordinateSystem,o=i.count();if(o>10&&"cartesian2d"===r.type&&a){var s=r.getBaseAxis(),l=r.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(o/h);if(isFinite(d)&&d>1){"lttb"===a&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var p=void 0;me(a)?p=ka[a]:lt(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,p,Da))}}}}}function Ta(t){t.registerChartView(Ia),t.registerSeriesModel(Zi),t.registerLayout({seriesType:"line",plan:fe(),reset:function(t){var e=t.getData(),n=t.coordinateSystem;if(t.pipelineContext,n){var i=vt(n.dimensions,(function(t){return e.mapDimension(t)})).slice(0,2),a=i.length,r=e.getCalculationInfo("stackResultDimension");Xt(e,i[0])&&(i[0]=r),Xt(e,i[1])&&(i[1]=r);var o=e.getStore(),s=e.getDimensionIndex(i[0]),l=e.getDimensionIndex(i[1]);return a&&{progress:function(t,e){for(var i=t.end-t.start,r=qt(i*a),u=[],c=[],h=t.start,d=0;hs){c=(p+u)/2;break}1===d&&(h=g-i[0].tickValue)}null==c&&(u?u&&(c=i[i.length-1].coord):c=i[0].coord),r[n]=t.toGlobalCoord(c)}}));else{var o=this.getData(),s=o.getLayout("offset"),l=o.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;r[u]+=s+l/2}return r}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Lt);Lt.registerClass(Pa);var Na=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return It(e,t),e.prototype.getInitialData=function(){return Ei(0,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ve(Pa.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Pa),Ea=function(){return function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),Oa=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return It(e,t),e.prototype.getDefaultShape=function(){return new Ea},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,a=Math.max(e.r0||0,0),r=Math.max(e.r,0),o=.5*(r-a),s=a+o,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-lr)return!0;r=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),a=Math.max(0,i[0]),r=Math.min(i[1],n.getOrdinalMeta().categories.length-1);a<=r;++a)if(t.ordinalNumbers[a]!==n.getRawOrdinalNumber(a))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var a=this._dataSort(t,n,e);this._isOrderDifferentInView(a,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:a}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,a=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:a})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){xe(e,t,Wt(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(se),Ga={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,r=t.y+t.height,o=Fa(e.x,t.x),s=Ba(e.x+e.width,a),l=Fa(e.y,t.y),u=Ba(e.y+e.height,r),c=sa?s:o,e.y=h&&l>r?u:l,e.width=c?0:s-o,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var a=Ba(e.r,t.r),r=Fa(e.r0,t.r0);e.r=a,e.r0=r;var o=a-r<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return o}},$a={cartesian2d:function(t,e,n,i,a,r,o,s,l){var u=new ee({shape:Vt({},i),z2:1});(u.__dataIndex=n,u.name="item",r)&&(u.shape[a?"height":"width"]=0);return u},polar:function(t,e,n,i,a,r,o,s,l){var u=!a&&l?Oa:ne,c=new u({shape:i,z2:1});c.name="item";var h,d,p=Za(a);if(c.calculateTextPosition=(h=p,d=({isRoundCap:u===Oa}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return ye(t,e,n);var a=h(i),r=null!=e.distance?e.distance:5,o=this.shape,s=o.cx,l=o.cy,u=o.r,c=o.r0,p=(u+c)/2,g=o.startAngle,f=o.endAngle,m=(g+f)/2,v=d?Math.abs(u-c)/2:0,y=Math.cos,x=Math.sin,b=s+u*y(g),w=l+u*x(g),S="left",_="top";switch(a){case"startArc":b=s+(c-r)*y(m),w=l+(c-r)*x(m),S="center",_="top";break;case"insideStartArc":b=s+(c+r)*y(m),w=l+(c+r)*x(m),S="center",_="bottom";break;case"startAngle":b=s+p*y(g)+za(g,r+v,!1),w=l+p*x(g)+Ra(g,r+v,!1),S="right",_="middle";break;case"insideStartAngle":b=s+p*y(g)+za(g,-r+v,!1),w=l+p*x(g)+Ra(g,-r+v,!1),S="left",_="middle";break;case"middle":b=s+p*y(m),w=l+p*x(m),S="center",_="middle";break;case"endArc":b=s+(u+r)*y(m),w=l+(u+r)*x(m),S="center",_="bottom";break;case"insideEndArc":b=s+(u-r)*y(m),w=l+(u-r)*x(m),S="center",_="top";break;case"endAngle":b=s+p*y(f)+za(f,r+v,!0),w=l+p*x(f)+Ra(f,r+v,!0),S="left",_="middle";break;case"insideEndAngle":b=s+p*y(f)+za(f,-r+v,!0),w=l+p*x(f)+Ra(f,-r+v,!0),S="right",_="middle";break;default:return ye(t,e,n)}return(t=t||{}).x=b,t.y=w,t.align=S,t.verticalAlign=_,t}),r){var g=a?"r":"endAngle",f={};c.shape[g]=a?i.r0:i.startAngle,f[g]=i[g],(s?Et:zt)(c,{shape:f},r)}return c}};function Wa(t,e,n,i,a,r,o,s){var l,u;r?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?Et:zt)(n,{shape:l},e,a,null);var c=e?t.baseAxis.model:null;(o?Et:zt)(n,{shape:u},c,a)}function Ha(t,e){for(var n=0;n0?1:-1,o=i.height>0?1:-1;return{x:i.x+r*a/2,y:i.y+o*a/2,width:i.width-r*a,height:i.height-o*a}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function Za(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function qa(t,e,n,i,a,r,o,s){var l=e.getItemVisual(n,"style");if(s){if(!r.get("roundCap")){var u=t.shape,c=be(i.getModel("itemStyle"),u,!0);Vt(u,c),t.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var d=i.getShallow("cursor");d&&t.attr("cursor",d);var p=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",g=Rt(i);Gt(t,g,{labelFetcher:r,labelDataIndex:n,defaultText:qi(r.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var f=t.getTextContent();if(s&&f){var m=i.get(["label","position"]);t.textConfig.inside="middle"===m||null,function(t,e,n,i){if(Zt(i))t.setTextConfig({rotation:i});else if(gt(e))t.setTextConfig({rotation:0});else{var a,r=t.shape,o=r.clockwise?r.startAngle:r.endAngle,s=r.clockwise?r.endAngle:r.startAngle,l=(o+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":a=l;break;case"startAngle":case"insideStartAngle":a=o;break;case"endAngle":case"insideEndAngle":a=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-a;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===m?p:m,Za(o),i.get(["label","rotate"]))}we(f,g,r.getRawValue(n),(function(t){return Ki(e,t)}));var v=i.getModel(["emphasis"]);$t(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),re(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(a)&&(t.style.fill="none",t.style.stroke="none",rt(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var Ka=function(){return function(){}}(),Ja=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return It(e,t),e.prototype.getDefaultShape=function(){return new Ka},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,a=1-this.baseDimIdx,r=[],o=[],s=this.barWidth,l=0;l=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}(this,t.offsetX,t.offsetY);Wt(this).dataIndex=e>=0?e:null}),30,!1);function er(t,e,n){if(ma(n,"cartesian2d")){var i=e,a=n.getArea();return{x:t?i.x:a.x,y:t?a.y:i.y,width:t?i.width:a.width,height:t?a.height:i.height}}var r=e;return{cx:(a=n.getArea()).cx,cy:a.cy,r0:t?a.r0:r.r0,r:t?a.r:r.r,startAngle:t?r.startAngle:0,endAngle:t?r.endAngle:2*Math.PI}}function nr(t){t.registerChartView(Va),t.registerSeriesModel(Na),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,ut(Ae,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,_e("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,La("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var ir=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return It(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Me),ar=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return It(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",at).models[0]},e.type="cartesian2dAxis",e}(Me);Ce(ar,Oi);var rr={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},or=Ie({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},rr),sr=Ie({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},rr);const lr={category:or,value:sr,time:Ie({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},sr),log:ae({logBase:10},sr)};var ur={value:1,category:1,time:1,log:1};function cr(t,e,n,i){rt(ur,(function(a,r){var o=Ie(Ie({},lr[r],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+r,n}return It(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=ke(this),i=n?De(t):{},a=e.getTheme();Ie(t,a.get(r+"Axis")),Ie(t,this.getDefaultOption()),t.type=hr(t),n&&Le(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Te.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+r,n.defaultOption=o,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",hr)}function hr(t){return t.type||(t.data?"category":"value")}var dr=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return vt(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Pe(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),pr=["x","y"];function gr(t){return"interval"===t.type||"time"===t.type}var fr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=pr,e}return It(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(gr(t)&&gr(e)){var n=t.getExtent(),i=e.getExtent(),a=this.dataToPoint([n[0],i[0]]),r=this.dataToPoint([n[1],i[1]]),o=n[1]-n[0],s=i[1]-i[0];if(o&&s){var l=(r[0]-a[0])/o,u=(r[1]-a[1])/s,c=a[0]-n[0]*l,h=a[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=Ne([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),a=this.getArea(),r=new Ee(n[0],n[1],i[0]-n[0],i[1]-n[1]);return a.intersect(r)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],a=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=a&&isFinite(a))return Oe(n,t,this._transform);var r=this.getAxis("x"),o=this.getAxis("y");return n[0]=r.toGlobalCoord(r.dataToCoord(i,e)),n[1]=o.toGlobalCoord(o.dataToCoord(a,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,a=n.getExtent(),r=i.getExtent(),o=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(a[0],a[1]),o),Math.max(a[0],a[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Oe(n,t,this._invTransform);var i=this.getAxis("x"),a=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=a.coordToData(a.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,a=Math.min(n[0],n[1])-t,r=Math.max(e[0],e[1])-i+t,o=Math.max(n[0],n[1])-a+t;return new Ee(i,a,r,o)},e}(dr),mr=function(t){function e(e,n,i,a,r){var o=t.call(this,e,n,i)||this;return o.index=0,o.type=a||"value",o.position=r||"bottom",o}return It(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Ui),vr=Math.log;function yr(t,e,n){var i=ze.prototype,a=i.getTicks.call(n),r=i.getTicks.call(n,!0),o=a.length-1,s=i.getInterval.call(n),l=Re(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var d=vr(t.base);u=[vr(u[0])/d,vr(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:h});var p=i.getExtent.call(t);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var g=i.getInterval.call(t),f=u[0],m=u[1];if(c&&h)g=(m-f)/o;else if(c)for(m=u[0]+g*o;mu[0]&&isFinite(f)&&isFinite(u[0]);)g=Fe(g),f=u[1]-g*o;else{t.getTicks().length-1>o&&(g=Fe(g));var v=g*o;m=Math.ceil(u[1]/g)*g,(f=Ct(m-v))<0&&u[0]>=0?(f=0,m=Ct(v)):m>0&&u[1]<=0&&(m=0,f=-Ct(v))}var y=(a[0].value-r[0].value)/s,x=(a[o].value-r[o].value)/s;i.setExtent.call(t,f+g*y,m+g*x),i.setInterval.call(t,g),(y||x)&&i.setNiceExtent.call(t,f+g,m-g)}var xr=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pr,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Ue(t),i=n.length;if(i){for(var a=[],r=i-1;r>=0;r--){var o=t[+n[r]],s=o.model,l=o.scale;Xe(l)&&s.get("alignTicks")&&null==s.get("interval")?a.push(o):(Ze(l,s),Xe(l)&&(e=o))}a.length&&(e||(e=a.pop(),Ze(e.scale,e.model)),rt(a,(function(t){yr(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var a={};rt(n.x,(function(t){wr(n,"y",t,a)})),rt(n.y,(function(t){wr(n,"x",t,a)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),r=Be(i,{width:e.getWidth(),height:e.getHeight()});this._rect=r;var o=this._axesList;function s(){rt(o,(function(t){var e=t.isHorizontal(),n=e?[0,r.width]:[0,r.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?r.x:r.y)}))}s(),a&&(rt(o,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=Ve(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);r[n]-=e[n]+i,"top"===t.position?r.y+=e.height+i:"left"===t.position&&(r.x+=e.width+i)}}})),s()),rt(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Ut(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=o;null!=h.color&&(d=ae({color:h.color},o));var p=Ie(sn(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:a,axisLabel:r,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(me(l)){var g=p.name;p.name=l.replace("{value}",null!=g?g:"")}else lt(l)&&(p.name=l(p.name,p));var f=new gn(p,null,this.ecModel);return Ce(f,Oi.prototype),f.mainType="radar",f.componentIndex=this.componentIndex,f}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ie({lineStyle:{color:"#bbb"}},Br.axisLine),axisLabel:Vr(Br.axisLabel,!1),axisTick:Vr(Br.axisTick,!1),splitLine:Vr(Br.splitLine,!0),splitArea:Vr(Br.splitArea,!0),indicator:[]},e}(Me),$r=["axisLine","axisTickLabel","axisName"],Wr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return It(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=vt(n,(function(t){var n=t.model.get("showName")?t.name:"";return new Ke(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));rt(i,(function(t){rt($r,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),a=t.getModel("splitLine"),r=t.getModel("splitArea"),o=a.getModel("lineStyle"),s=r.getModel("areaStyle"),l=a.get("show"),u=r.get("show"),c=o.get("color"),h=s.get("color"),d=gt(c)?c:[c],p=gt(h)?h:[h],g=[],f=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=e.cx,y=e.cy,x=0;x0&&(o.during=s?cn(ro,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),Vt(o,n[r]),o}function to(t,e,n,i){var a=(i=i||{}).dataIndex,r=i.isInit,o=i.clearStyle,s=n.isAnimationEnabled(),l=Jr(t),u=e.style;l.userDuring=e.during;var c={},h={};if(function(t,e,n){for(var i=0;i=0)){var h=t.getAnimationStyleProps(),d=h?h.style:null;if(d){!a&&(a=i.style={});var p=Ue(n);for(u=0;u0&&t.animateFrom(d,p)}else!function(t,e,n,i,a){if(a){var r=Qr("update",t,e,i,n);r.duration>0&&t.animateFrom(a,r)}}(t,e,a||0,n,c);eo(t,e),u?t.dirty():t.markRedraw()}function eo(t,e){for(var n=Jr(t).leaveToProps,i=0;i=0){!r&&(r=i[t]={});var d=Ue(o);for(c=0;c=0;l--){var p,g;u=n[l];if(g=null!=(p=Pn(u.id,null))?a.get(p):null){var f=g.parent,m=(d=bo(f),f===i?{width:r,height:o}:{width:d.width,height:d.height}),v={},y=En(g,u,m,null,{hv:u.hv,boundingMode:u.bounding},v);if(!bo(g).isNew&&y){for(var x=u.transition,b={},w=0;w=0)?b[S]=_:g[S]=_}Et(g,b,t,0)}else g.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){Ao(n,bo(n).option,e,t._lastGraphicModel)})),this._elMap=ot()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(nn);function So(t){var e=new(wn(xo,t)?xo[t]:On(t))({});return bo(e).type=t,e}function _o(t,e,n,i){var a=So(n);return e.add(a),i.set(t,a),bo(a).id=t,bo(a).isNew=!0,a}function Ao(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse((function(t){Ao(t,e,n,i)})),function(t,e,n){if(t){var i=t.parent,a=Jr(t).leaveToProps;if(a){var r=Qr("update",t,e,n,0);r.done=function(){i.remove(t)},t.animateTo(a,r)}else i.remove(t)}}(t,e,i),n.removeKey(bo(t).id))}function Mo(t,e,n,i){t.isGroup||rt([["cursor",An.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];wn(e,i)?t[i]=zn(e[i],n[1]):null==t[i]&&(t[i]=n[1])})),rt(Ue(e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=lt(i)?i:null}})),wn(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function Co(t){t.registerComponentModel(yo),t.registerComponentView(wo),t.registerPreprocessor((function(t){var e=t.graphic;gt(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}const Io={class:"flex items-center h-full"},ko={class:"icon"},Do={class:"info flex flex-col"},Lo={class:"value text-xl font-bold mb-2"},To={class:"title break-inside-initial"},Po=g({__name:"DataCard",props:{title:{},val:{},currency:{},centered:{type:Boolean},horizontal:{type:Boolean}},setup(t){const e=t,{title:n,val:i,currency:a,centered:r,horizontal:o}=F(e),s=C((()=>{const t=(null==i?void 0:i.value)||0;return t?(null==a?void 0:a.value)?new Intl.NumberFormat("zh-CN",{style:"currency",currency:"CNY"}).format(t):new Intl.NumberFormat("zh-CN").format(t):""}));return(t,e)=>{const i=j;return N(),B(i,null,{default:V((()=>[O("div",Io,[O("div",{class:G(["card-wrap flex gap-4 w-full",{"items-center":$(r),"text-center":$(r),"flex-col":!$(o)}])},[O("div",ko,[W(t.$slots,"icon")]),O("div",Do,[O("div",Lo,H($(s)),1),O("div",To,H($(n)),1)])],2)])])),_:3})}}}),No={key:0,class:"card-inner-icon--bg top-0 left-0 w-full h-full"},Eo=et(g({__name:"CardInnerIcon",props:{containerSize:{default:40},iconSize:{default:28},iconName:{},container:{type:Boolean,default:!1},color:{}},setup(t){Y((t=>({"27751f4d":$(u),ba303df4:$(l)})));const e=t,{container:n,containerSize:i,iconSize:a,color:r,iconName:o}=F(e),s=Qn(),l=C((()=>`${i.value}px`)),u=C((()=>(null==r?void 0:r.value)||s.value.primaryColor)),c=C((()=>i.value/100*45)),h=C((()=>(null==n?void 0:n.value)?c.value:a.value));return(t,e)=>{const i=Z;return N(),E("div",{class:G(["card-inner-icon flex-center relative",{boxed:$(n)}])},[$(n)?(N(),E("div",No)):U("",!0),X(i,{size:$(h),component:$(o)},null,8,["size","component"])],2)}}}),[["__scopeId","data-v-1390447e"]]),Oo=g({__name:"APIHealthMetrics",setup:t=>(t,e)=>{const n=nt,i=it;return N(),B(i,{cols:"2","item-responsive":"",responsive:"screen","x-gap":16,"y-gap":16},{default:V((()=>[X(n,null,{default:V((()=>[X(Po,{title:"API余额",centered:"",currency:"CNY",val:64},{icon:V((()=>[X(Eo,{"icon-name":$(Di),container:""},null,8,["icon-name"])])),_:1})])),_:1}),X(n,null,{default:V((()=>[X(Po,{title:"API错误数",centered:"",val:32},{icon:V((()=>[X(Eo,{"icon-name":$(ni),container:""},null,8,["icon-name"])])),_:1})])),_:1})])),_:1})}});const zo=t=>Promise.resolve(function(t,{message:e="ok"}={}){return{code:0,result:t,data:t,message:e,type:"success"}}(t)),Ro=zo({count:2619,growth:39.57,chartData:{xAxis:["1日","2日","3日","4日","5日","6日","7日","8日","9日","10日","11日","12日"],data:{name:"user-heart",value:[1390,2599,2882,2059,1086,2689,1367,1310,2926,1194,2590,1153]}}}),Fo=zo({xAxis:["12.10","12.11","12.12","12.13","12.14","12.15","12.16","12.17"],data:[{name:"用户数",count:1945,value:[1724,3842,2771,3416,2763,3843,826,817]},{name:"总对话数",count:1824,value:[3223,2820,3412,3035,2483,3115,1241,3130]},{name:"被复制对话数",count:1968,value:[3204,2856,2822,3423,3438,1344,2929,2429]},{name:"点赞数",count:1707,value:[1015,1111,2557,2357,2866,2771,2191,3133]}]}),Bo=g({__name:"DataOverview",setup(t){function e(t,e,n,i){return{name:t,data:i,stack:"Total",type:"line",smooth:!0,symbol:"circle",symbolSize:10,itemStyle:{color:e},emphasis:{focus:"series",itemStyle:{color:e,borderWidth:2,borderColor:n}},lineStyle:{width:2,color:e},showSymbol:!1,areaStyle:{opacity:.1,color:e}}}xn([Bn,Vn,po,Co,Ta]);const{loading:n,setLoading:i}=$n(!0),{getDarkMode:a}=R(),r=C((()=>[{title:"用户数",value:1902,prefix:{icon:Ci,background:a.value?"#593E2F":"#FFE4BA",iconColor:a.value?"#F29A43":"#F77234"}},{title:"总对话数",value:2445,prefix:{icon:ri,background:a.value?"#3D5A62":"#E8FFFB",iconColor:a.value?"#6ED1CE":"#33D1C9"}},{title:"被复制对话数",value:3034,prefix:{icon:li,background:a.value?"#354276":"#E8F3FF",iconColor:a.value?"#4A7FF7":"#165DFF"}},{title:"点赞数",value:1275,prefix:{icon:_i,background:a.value?"#3F385E":"#F5E8FF",iconColor:a.value?"#8558D3":"#722ED1"}}])),o=q([]),s=q([]),u=q([]),c=q([]),h=q([]),{chartOption:d}=Li((t=>({grid:{left:"2.6%",right:"4",top:"40",bottom:"40"},xAxis:{type:"category",offset:2,data:o.value,boundaryGap:!1,axisLabel:{color:"#4E5969",formatter:(t,e)=>0===e||e===o.value.length-1?"":`${t}`},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},axisPointer:{show:!0,lineStyle:{color:"#23ADFF",width:2}}},yAxis:{type:"value",axisLine:{show:!1},axisLabel:{formatter:(t,e)=>0===e?String(t):t/1e3+"k"},splitLine:{lineStyle:{color:t?"#2E2E30":"#F2F3F5"}}},tooltip:{trigger:"axis",formatter(t){const[e]=t;return`
\n

${e.axisValueLabel}

\n ${n=t,n.map((t=>{var e;return`
\n

\n ${t.seriesName}\n

\n ${null==(e=t.value)?void 0:e.toLocaleString()}\n
`})).reverse().join("")}\n
`;var n},className:"echarts-tooltip-custom"},graphic:{elements:[{type:"text",left:"2.6%",bottom:"18",style:{text:"12.10",textAlign:"center",fill:"#4E5969",fontSize:12}},{type:"text",right:"0",bottom:"18",style:{text:"12.17",textAlign:"center",fill:"#4E5969",fontSize:12}}]},series:[e("用户数","#722ED1","#F5E8FF",s.value),e("总对话数","#F77234","#FFE4BA",u.value),e("被复制对话数","#33D1C9","#E8FFFB",c.value),e("点赞数","#3469FF","#E8F3FF",h.value)]})));return function(){l(this,null,(function*(){i(!0);try{const{data:t}=yield Fo;o.value=t.xAxis,t.data.forEach((t=>{"用户数"===t.name?s.value=t.value:"总对话数"===t.name?u.value=t.value:"被复制对话数"===t.name&&(c.value=t.value),h.value=t.value}))}catch(t){i(!1)}finally{i(!1)}}))}(),(t,e)=>{const i=Z,a=Jn,o=qn,s=Zn,l=j,u=Wn;return N(),B(u,{show:$(n),style:{width:"100%"}},{default:V((()=>[X(l,{title:"数据总览"},{default:V((()=>[X(s,{justify:"space-between"},{default:V((()=>[(N(!0),E(K,null,J($(r),((t,e)=>(N(),B(o,{key:e,span:6},{default:V((()=>[X(a,{label:t.title,"tabular-nums":""},{default:V((()=>[O("span",{class:"inline-block w-8 h-8 text-center align-baseline flex-center rounded mr-2",style:Q({background:t.prefix.background})},[X(i,{size:20,component:t.prefix.icon,color:t.prefix.iconColor},null,8,["component","color"])],4),O("span",null,H(t.value),1)])),_:2},1032,["label"])])),_:2},1024)))),128))])),_:1}),X($(Fn),{style:{height:"320px","margin-top":"10px"},option:$(d),autoresize:""},null,8,["option"])])),_:1})])),_:1},8,["show"])}}}),Vo=g({__name:"PerformanceMetrics",setup(t){xn([Bn,Gn,Ur,nr]);const e=Qn(),{chartOption:n}=Li((t=>({grid:{left:0,right:0,top:0,bottom:20},legend:{show:!0,top:"center",right:"0",orient:"vertical",icon:"circle",itemWidth:10,itemHeight:10,itemGap:20,textStyle:{color:t?"#ffffff":"#4E5969"}},radar:{center:["35%","50%"],radius:80,indicator:[{name:"API调用次数"},{name:"响应时间"},{name:"错误率"},{name:"服务器负载"},{name:"用户满意度"},{name:"消息处理速度"}],axisName:{color:t?"#ffffff":"#1D2129"},axisLine:{lineStyle:{color:t?"#484849":"#E5E6EB"}},splitLine:{lineStyle:{color:t?"#484849":"#E5E6EB"}},splitArea:{areaStyle:{color:[]}}},series:[{type:"radar",areaStyle:{opacity:.2},data:[{value:[4850,19e3,19e3,29500,35200,2e4],name:"gpt-3.5-turbo",symbol:"none",itemStyle:{color:e.value.primaryColor}},{value:[2250,17e3,21e3,23500,42950,22e3],name:"gpt-4",symbol:"none",itemStyle:{color:t?"#A079DC":"#313CA9"}},{value:[5850,11e3,26e3,27500,46950,18e3],name:"gpt-4-vision",symbol:"none",itemStyle:{color:t?"#3D72F6":"#21CCFF"}}]}]})));return console.log("chartOption log==>",n),(t,e)=>{const i=j;return N(),B(i,{title:"技术指标综述"},{default:V((()=>[X($(Fn),{style:{height:"222px"},option:$(n),autoresize:""},null,8,["option"])])),_:1})}}}),Go={class:"card-wrap flex flex-col justify-between h-full"},$o={class:"header flex w-full py-$n-padding-top px-$n-padding-left"},Wo={class:"icon"},Ho={class:"info ml-4"},jo={key:0,class:"value"},Yo={key:1},Uo={class:"ml-auto"},Xo=tt(g({__name:"DataInsightCard",props:{title:{},chartType:{},chartHeight:{default:80},currency:{},hoverable:{type:Boolean,default:!0},dataCount:{}},setup(t){const e=t,{title:n,chartHeight:i,currency:a,dataCount:r}=F(e),o=q(),s=C((()=>{const t=null==r?void 0:r.value;return t?(null==a?void 0:a.value)?new Intl.NumberFormat("zh-CN",{style:"currency",currency:"CNY"}).format(t):new Intl.NumberFormat("zh-CN").format(t):""}));return(t,e)=>{const a=Jn,r=j;return N(),B(r,{"content-style":"padding:0",hoverable:t.hoverable,class:"container-type inline-size"},{default:V((()=>[O("div",Go,[O("div",$o,[O("div",Wo,[W(t.$slots,"icon")]),O("div",Ho,[X(a,{label:$(n),"tabular-nums":""},{default:V((()=>[t.$slots.default?(N(),E("div",jo,[W(t.$slots,"default")])):(N(),E("div",Yo,H($(s)),1))])),_:3},8,["label"])]),O("div",Uo,[W(t.$slots,"meta")])]),O("div",{ref_key:"chart",ref:o,class:"chart-wrapper overflow-hidden",style:Q({height:`${$(i)}px`})},[W(t.$slots,"chart")],4)])])),_:3},8,["hoverable"])}}}));tt(Po);const Zo=g({__name:"UserAnalysisItem",props:{title:{type:String,default:""},quota:{type:String,default:""},chartType:{type:String,default:""},icon:{type:Object,default:""}},setup(t){const e=t,{loading:n,setLoading:i}=$n(!0),a=q(),r=q(100),o=q([]),u=Qn(),{chartOption:c}=Li((()=>({grid:{left:5,right:5,top:0,bottom:15},xAxis:{type:"category",show:!1},yAxis:{show:!1},tooltip:{show:!0,trigger:"axis",formatter(t){const[e]=t,n=()=>{var t;return"line"===e.componentSubType?e.data:null==(t=e.data)?void 0:t.value};return Hn(e)||(a.value=n()),`
\n

${n()}

\n
`}},series:[s({data:o.value},"bar"===e.chartType?{type:"bar",barWidth:10,barGap:"0"}:{type:"line",showSymbol:!1,smooth:!0,lineStyle:{color:u.value.primaryColor}})]})));return function(){l(this,null,(function*(){try{const{data:t}=yield Ro,{chartData:n}=t;a.value=t.count,r.value=t.growth,n.data.value.forEach(((t,n)=>{"bar"===e.chartType?o.value.push({value:t,itemStyle:{color:n%2?u.value.primaryColor:u.value.warningColor}}):o.value.push(t)}))}catch(t){}finally{i(!1)}}))}(),(e,i)=>{const r=Wn;return N(),B(r,{show:$(n),class:"w-full overflow-hidden"},{default:V((()=>[X($(Xo),{title:t.title,"data-count":$(a),"chart-height":140},{icon:V((()=>[X(Eo,{"icon-name":t.icon,container:""},null,8,["icon-name"])])),chart:V((()=>[X($(Fn),{option:$(c),autoresize:""},null,8,["option"])])),_:1},8,["title","data-count"])])),_:1},8,["show"])}}}),qo=g({__name:"UserAnalysis",setup:t=>(t,e)=>{const n=nt,i=it;return N(),B(i,{"x-gap":"12",cols:"4 m:4"},{default:V((()=>[X(n,null,{default:V((()=>[X(Zo,{title:"对话满意度趋势","chart-type":"line",quota:"user-heart",icon:$(vi)},null,8,["icon"])])),_:1}),X(n,null,{default:V((()=>[X(Zo,{title:"用户消费趋势","chart-type":"line",quota:"user-dollar",icon:$(gi)},null,8,["icon"])])),_:1}),X(n,null,{default:V((()=>[X(Zo,{title:"用户分享趋势","chart-type":"line",quota:"user-share",icon:$(bi)},null,8,["icon"])])),_:1}),X(n,null,{default:V((()=>[X(Zo,{title:"用户增长量","chart-type":"bar",quota:"user-up",icon:$(hi)},null,8,["icon"])])),_:1})])),_:1})}}),Ko=g((Jo=s({},{name:"Dashboard"}),e(Jo,n({__name:"index",setup:t=>(t,e)=>{const n=nt,i=jn,a=it;return N(),B(i,{vertical:!0,size:16},{default:V((()=>[X(a,{cols:"24","x-gap":16,"y-gap":16,responsive:"screen","item-responsive":""},{default:V((()=>[X(n,{span:"24 l:18"},{default:V((()=>[X(Bo)])),_:1}),X(n,{span:"24 l:6"},{default:V((()=>[X(i,{vertical:!0,size:16},{default:V((()=>[X(Vo),X(Oo)])),_:1})])),_:1})])),_:1}),X(qo)])),_:1})}}))));var Jo;export{Ko as default}; diff --git a/docs/assets/numberUtils-C2LWAuD7.js b/docs/assets/numberUtils-C2LWAuD7.js new file mode 100644 index 0000000..e12833f --- /dev/null +++ b/docs/assets/numberUtils-C2LWAuD7.js @@ -0,0 +1,7 @@ +var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,a=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,s=(e,t)=>{for(var r in t||(t={}))o.call(t,r)&&a(e,r,t[r]);if(n)for(var r of n(t))i.call(t,r)&&a(e,r,t[r]);return e};import{g as l,_ as c,b as u}from"./Grid-qb506I7V.js";import{f,N as h,b as p}from"./FormItem-CZeE-Hc9.js";import{z as d,U as g,y as v,Q as m,A as b,d as y,D as w,a3 as _,a4 as x,a5 as S,F as C,v as k,C as E,a6 as A,l as O,Y as B,a7 as D,a8 as j,a9 as P,a as N,aa as M,o as T,p as R,g as $,ab as I,c as z,w as H,b as F,ac as U,ad as L,ae as W,_ as X,B as G,af as V,ag as q,ah as Y,a2 as K,a0 as Q,e as Z,K as J,q as ee,H as te,r as re,i as ne,m as oe,M as ie,h as ae,s as se,O as le,ai as ce,aj as ue,$ as fe,a1 as he,ak as pe,al as de,am as ge,an as ve,Z as me}from"./index-BT0ZcDkn.js";import{g as be}from"./get-slot-BjAOOWF7.js";import{_ as ye}from"./DataTable-CDcTRuJS.js";import{_ as we}from"./Checkbox-Kaq6uefv.js";import{u as _e}from"./utils-PlAvPplV.js";import{T as xe}from"./Tag-D4OMG_5z.js";import{_ as Se}from"./Popover-3mPJ01hC.js";const Ce="0!important",ke="-1px!important";function Ee(e){return m(`${e}-type`,[v("& +",[d("button",{},[m(`${e}-type`,[b("border",{borderLeftWidth:Ce}),b("state-border",{left:ke})])])])])}function Ae(e){return m(`${e}-type`,[v("& +",[d("button",[m(`${e}-type`,[b("border",{borderTopWidth:Ce}),b("state-border",{top:ke})])])])])}const Oe=d("button-group","\n flex-wrap: nowrap;\n display: inline-flex;\n position: relative;\n",[g("vertical",{flexDirection:"row"},[g("rtl",[d("button",[v("&:first-child:not(:last-child)",`\n margin-right: ${Ce};\n border-top-right-radius: ${Ce};\n border-bottom-right-radius: ${Ce};\n `),v("&:last-child:not(:first-child)",`\n margin-left: ${Ce};\n border-top-left-radius: ${Ce};\n border-bottom-left-radius: ${Ce};\n `),v("&:not(:first-child):not(:last-child)",`\n margin-left: ${Ce};\n margin-right: ${Ce};\n border-radius: ${Ce};\n `),Ee("default"),m("ghost",[Ee("primary"),Ee("info"),Ee("success"),Ee("warning"),Ee("error")])])])]),m("vertical",{flexDirection:"column"},[d("button",[v("&:first-child:not(:last-child)",`\n margin-bottom: ${Ce};\n margin-left: ${Ce};\n margin-right: ${Ce};\n border-bottom-left-radius: ${Ce};\n border-bottom-right-radius: ${Ce};\n `),v("&:last-child:not(:first-child)",`\n margin-top: ${Ce};\n margin-left: ${Ce};\n margin-right: ${Ce};\n border-top-left-radius: ${Ce};\n border-top-right-radius: ${Ce};\n `),v("&:not(:first-child):not(:last-child)",`\n margin: ${Ce};\n border-radius: ${Ce};\n `),Ae("default"),m("ghost",[Ae("primary"),Ae("info"),Ae("success"),Ae("warning"),Ae("error")])])])]),Be=y({name:"ButtonGroup",props:{size:{type:String,default:void 0},vertical:Boolean},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=w(e);_("-button-group",Oe,t),x(S,e);return{rtlEnabled:C("ButtonGroup",r,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return k("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),De=y({name:"Flex",props:Object.assign(Object.assign({},E.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrap:{type:Boolean,default:!0}}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=w(e),n=E("Flex","-flex",void 0,A,e,t);return{rtlEnabled:C("Flex",r,t),mergedClsPrefix:t,margin:O((()=>{const{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if("number"==typeof t)return{horizontal:t,vertical:t};const{self:{[B("gap",t)]:r}}=n.value,{row:o,col:i}=D(r);return{horizontal:j(i),vertical:j(o)}}))}},render(){const{vertical:e,reverse:t,align:r,inline:n,justify:o,margin:i,wrap:a,mergedClsPrefix:s,rtlEnabled:l}=this,c=P(be(this),!1);return c.length?k("div",{role:"none",class:[`${s}-flex`,l&&`${s}-flex--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:o,flexWrap:!a||e?"nowrap":"wrap",alignItems:r,gap:`${i.vertical}px ${i.horizontal}px`}},c):null}}),je=y({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:Object.assign(Object.assign({},u),p),setup(){const e=N(null);return{formItemInstRef:e,validate:(...t)=>{const{value:r}=e;if(r)return r.validate(...t)},restoreValidation:()=>{const{value:t}=e;t&&t.restoreValidation()}}},render(){return k(c,M(this.$.vnode.props||{},l),{default:()=>{const e=M(this.$props,f);return k(h,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),Pe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ne=[$("path",{d:"M240 424v-96c116.4 0 159.39 33.76 208 96c0-119.23-39.57-240-208-240V88L64 256z",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1)],Me=y({name:"ArrowUndoOutline",render:function(e,t){return T(),R("svg",Pe,Ne)}}),Te={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Re=[$("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),$("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1)],$e=y({name:"CloseOutline",render:function(e,t){return T(),R("svg",Te,Re)}}),Ie={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ze=[$("path",{d:"M320 146s24.36-12-64-12a160 160 0 1 0 160 160",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32"},null,-1),$("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 58l80 80l-80 80"},null,-1)],He=y({name:"Refresh",render:function(e,t){return T(),R("svg",Ie,ze)}}),Fe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ue=[$("path",{d:"M296 64h-80a7.91 7.91 0 0 0-8 8v24h96V72a7.91 7.91 0 0 0-8-8z",fill:"none"},null,-1),$("path",{d:"M432 96h-96V72a40 40 0 0 0-40-40h-80a40 40 0 0 0-40 40v24H80a16 16 0 0 0 0 32h17l19 304.92c1.42 26.85 22 47.08 48 47.08h184c26.13 0 46.3-19.78 48-47l19-305h17a16 16 0 0 0 0-32zM192.57 416H192a16 16 0 0 1-16-15.43l-8-224a16 16 0 1 1 32-1.14l8 224A16 16 0 0 1 192.57 416zM272 400a16 16 0 0 1-32 0V176a16 16 0 0 1 32 0zm32-304h-96V72a7.91 7.91 0 0 1 8-8h80a7.91 7.91 0 0 1 8 8zm32 304.57A16 16 0 0 1 320 416h-.58A16 16 0 0 1 304 399.43l8-224a16 16 0 1 1 32 1.14z",fill:"currentColor"},null,-1)],Le=y({name:"Trash",render:function(e,t){return T(),R("svg",Fe,Ue)}}),We={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Xe=[$("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[$("path",{d:"M7 12l5 5L22 7"}),$("path",{d:"M2 12l5 5m5-5l5-5"})],-1)],Ge=y({name:"Checks",render:function(e,t){return T(),R("svg",We,Xe)}}),Ve={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},qe=[$("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[$("circle",{cx:"12",cy:"12",r:"9"}),$("path",{d:"M9 12h6"}),$("path",{d:"M12 9v6"})],-1)],Ye=y({name:"CirclePlus",render:function(e,t){return T(),R("svg",Ve,qe)}}),Ke={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Qe=[$("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[$("path",{d:"M10 14L21 3"}),$("path",{d:"M21 3l-6.5 18a.55.55 0 0 1-1 0L10 14l-7-3.5a.55.55 0 0 1 0-1L21 3"})],-1)],Ze=y({name:"Send",render:function(e,t){return T(),R("svg",Ke,Qe)}});function Je(e){return I("/table/r01",{params:e})}const et=y({__name:"IButton",props:["icon","isize","idepth","icolor"],setup(e){const t={component:e.icon,size:e.isize,depth:e.idepth,color:e.icolor};return(e,r)=>{const n=X,o=G;return T(),z(o,U(L(e.$attrs)),{icon:H((()=>[F(n,U(L(t)),null,16)])),default:H((()=>[W(e.$slots,"default")])),_:3},16)}}}),tt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},rt=[$("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[$("path",{d:"M7 7l5 5l5-5"}),$("path",{d:"M7 13l5 5l5-5"})],-1)],nt=y({name:"ChevronsDown",render:function(e,t){return T(),R("svg",tt,rt)}}),ot={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},it=[$("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[$("path",{d:"M7 11l5-5l5 5"}),$("path",{d:"M7 17l5-5l5 5"})],-1)],at=y({name:"ChevronsUp",render:function(e,t){return T(),R("svg",ot,it)}}),st={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},lt=[$("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[$("path",{d:"M9 4v6l-2 4v2h10v-2l-2-4V4"}),$("path",{d:"M12 16v5"}),$("path",{d:"M8 4h8"})],-1)],ct=y({name:"Pinned",render:function(e,t){return T(),R("svg",st,lt)}}),ut={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ft=[de('',1)],ht=y({name:"PinnedOff",render:function(e,t){return T(),R("svg",ut,ft)}}),pt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},dt=[$("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[$("circle",{cx:"10",cy:"10",r:"7"}),$("path",{d:"M21 21l-6-6"})],-1)],gt=y({name:"Search",render:function(e,t){return T(),R("svg",pt,dt)}}),vt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},mt=[$("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[$("path",{d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37c1 .608 2.296.07 2.572-1.065z"}),$("circle",{cx:"12",cy:"12",r:"3"})],-1)],bt=y({name:"Settings",render:function(e,t){return T(),R("svg",vt,mt)}});var yt="object"==typeof global&&global&&global.Object===Object&&global,wt="object"==typeof self&&self&&self.Object===Object&&self,_t=yt||wt||Function("return this")(),xt=_t.Symbol,St=Object.prototype,Ct=St.hasOwnProperty,kt=St.toString,Et=xt?xt.toStringTag:void 0;var At=Object.prototype.toString;var Ot=xt?xt.toStringTag:void 0;function Bt(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ot&&Ot in Object(e)?function(e){var t=Ct.call(e,Et),r=e[Et];try{e[Et]=void 0;var n=!0}catch(i){}var o=kt.call(e);return n&&(t?e[Et]=r:delete e[Et]),o}(e):function(e){return At.call(e)}(e)}function Dt(e){return null!=e&&"object"==typeof e}var jt=Array.isArray;function Pt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Nt(e){return e}function Mt(e){if(!Pt(e))return!1;var t=Bt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var Tt,Rt=_t["__core-js_shared__"],$t=(Tt=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||""))?"Symbol(src)_1."+Tt:"";var It=Function.prototype.toString;function zt(e){if(null!=e){try{return It.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Ht=/^\[object .+?Constructor\]$/,Ft=Function.prototype,Ut=Object.prototype,Lt=Ft.toString,Wt=Ut.hasOwnProperty,Xt=RegExp("^"+Lt.call(Wt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gt(e){return!(!Pt(e)||function(e){return!!$t&&$t in e}(e))&&(Mt(e)?Xt:Ht).test(zt(e))}function Vt(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Gt(r)?r:void 0}var qt=Vt(_t,"WeakMap"),Yt=Object.create,Kt=function(){function e(){}return function(t){if(!Pt(t))return{};if(Yt)return Yt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var Qt=Date.now;function Zt(e){return function(){return e}}var Jt=function(){try{var e=Vt(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),er=Jt?function(e,t){return Jt(e,"toString",{configurable:!0,enumerable:!1,value:Zt(t),writable:!0})}:Nt,tr=function(e){var t=0,r=0;return function(){var n=Qt(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(er);var rr=/^(?:0|[1-9]\d*)$/;function nr(e,t){var r=typeof e;return!!(t=null!=t?t:9007199254740991)&&("number"==r||"symbol"!=r&&rr.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function hr(e){return null!=e&&fr(e.length)&&!Mt(e)}function pr(e){return ur((function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&function(e,t,r){if(!Pt(r))return!1;var n=typeof t;return!!("number"==n?hr(r)&&nr(t,r.length):"string"==n&&t in r)&&ir(r[t],e)}(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++n-1},Yr.prototype.set=function(e,t){var r=this.__data__,n=Vr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var Kr=Vt(_t,"Map");function Qr(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function Zr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t1?1:e<0?0:e}(n)})`}(yo(e[0],r,t[0],n,o),yo(e[1],r,t[1],n,o),yo(e[2],r,t[2],n,o),o)}function _o(e,t){const[r,n,o,i=1]=Array.isArray(e)?e:bo(e),{lightness:a=1,alpha:s=1}=t;return function(e){const[t,r,n]=e;return 3 in e?`rgba(${So(t)}, ${So(r)}, ${So(n)}, ${xo(e[3])})`:`rgba(${So(t)}, ${So(r)}, ${So(n)}, 1)`}([r*a,n*a,o*a,i*s])}function xo(e){const t=Math.round(100*Number(e))/100;return t>1?1:t<0?0:t}function So(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}const Co=/\s*,(?![^(]*\))\s*/g,ko=/\s+/g;function Eo(e){let t=[""];return e.forEach((e=>{(e=e&&e.trim())&&(t=e.includes("&")?function(e,t){const r=[];return t.split(Co).forEach((t=>{let n=function(e){let t=0;for(let r=0;r{r.push((e&&e+" ")+t)}));if(1===n)return void e.forEach((e=>{r.push(t.replace("&",e))}));let o=[t];for(;n--;){const t=[];o.forEach((r=>{e.forEach((e=>{t.push(r.replace("&",e))}))})),o=t}o.forEach((e=>r.push(e)))})),r}(t,e):function(e,t){const r=[];return t.split(Co).forEach((t=>{e.forEach((e=>{r.push((e&&e+" ")+t)}))})),r}(t,e))})),t.join(", ").replace(ko," ")}function Ao(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Oo(e,t){return(null!=t?t:document.head).querySelector(`style[cssr-id="${e}"]`)}function Bo(e){return!!e&&/^\s*@(s|m)/.test(e)}const Do=/[A-Z]/g;function jo(e){return e.replace(Do,(e=>"-"+e.toLowerCase()))}function Po(e,t,r,n){if(!t)return"";const o=function(e,t,r){return"function"==typeof e?e({context:t.context,props:r}):e}(t,r,n);if(!o)return"";if("string"==typeof o)return`${e} {\n${o}\n}`;const i=Object.keys(o);if(0===i.length)return r.config.keepEmptyBlock?e+" {\n}":"";const a=e?[e+" {"]:[];return i.forEach((e=>{const t=o[e];"raw"!==e?(e=jo(e),null!=t&&a.push(` ${e}${function(e,t=" "){return"object"==typeof e&&null!==e?" {\n"+Object.entries(e).map((e=>t+` ${jo(e[0])}: ${e[1]};`)).join("\n")+"\n"+t+"}":`: ${e};`}(t)}`)):a.push("\n"+t+"\n")})),e&&a.push("}"),a.join("\n")}function No(e,t,r){e&&e.forEach((e=>{if(Array.isArray(e))No(e,t,r);else if("function"==typeof e){const n=e(t);Array.isArray(n)?No(n,t,r):n&&r(n)}else e&&r(e)}))}function Mo(e,t,r,n,o){const i=e.$;let a="";if(i&&"string"!=typeof i)if("function"==typeof i){const e=i({context:n.context,props:o});Bo(e)?a=e:t.push(e)}else if(i.before&&i.before(n.context),i.$&&"string"!=typeof i.$){if(i.$){const e=i.$({context:n.context,props:o});Bo(e)?a=e:t.push(e)}}else Bo(i.$)?a=i.$:t.push(i.$);else Bo(i)?a=i:t.push(i);const s=Eo(t),l=Po(s,e.props,n,o);a?r.push(`${a} {`):l.length&&r.push(l),e.children&&No(e.children,{context:n.context,props:o},(e=>{if("string"==typeof e){const t=Po(s,{raw:e},n,o);r.push(t)}else Mo(e,t,r,n,o)})),t.pop(),a&&r.push("}"),i&&i.after&&i.after(n.context)}function To(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}function Ro(e,t){e.push(t)}function $o(e,t,r,n,o,i,a,s,l){let c;if(void 0===r&&(c=t.render(n),r=To(c)),l)return void l.adapter(r,null!=c?c:t.render(n));void 0===s&&(s=document.head);const u=Oo(r,s);if(null!==u&&!i)return u;const f=null!=u?u:function(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}(r);if(void 0===c&&(c=t.render(n)),f.textContent=c,null!==u)return u;if(a){const e=s.querySelector(`meta[name="${a}"]`);if(e)return s.insertBefore(f,e),Ro(t.els,f),f}return o?s.insertBefore(f,s.querySelector("style, link")):s.appendChild(f),Ro(t.els,f),f}function Io(e){return function(e,t,r){const n=[];return Mo(e,[],n,t,r),n.join("\n\n")}(this,this.instance,e)}function zo(e={}){const{id:t,ssr:r,props:n,head:o=!1,force:i=!1,anchorMetaName:a,parent:s}=e;return $o(this.instance,this,t,n,o,i,a,s,r)}function Ho(e={}){const{id:t,parent:r}=e;!function(e,t,r,n){const{els:o}=t;if(void 0===r)o.forEach(Ao),t.els=[];else{const e=Oo(r,n);e&&o.includes(e)&&(Ao(e),t.els=o.filter((t=>t!==e)))}}(this.instance,this,t,r)}typeof window<"u"&&(window.__cssrContext={});const Fo=function(e,t,r,n){return{instance:e,$:t,props:r,children:n,els:[],render:Io,mount:zo,unmount:Ho}};const Uo=function(e={}){const t={c:(...e)=>function(e,t,r,n){return Array.isArray(t)?Fo(e,{$:null},null,t):Array.isArray(r)?Fo(e,t,null,r):Array.isArray(n)?Fo(e,t,r,n):Fo(e,t,r,null)}(t,...e),use:(e,...r)=>e.install(t,...r),find:Oo,context:{},config:e};return t}(),Lo=function(e){let t,r=".",n="__",o="--";if(e){let t=e.blockPrefix;t&&(r=t),t=e.elementPrefix,t&&(n=t),t=e.modifierPrefix,t&&(o=t)}const i={install(e){t=e.c;const r=e.context;r.bem={},r.bem.b=null,r.bem.els=null}};return Object.assign(i,{cB:(...e)=>t(function(e){let t,n;return{before(e){t=e.bem.b,n=e.bem.els,e.bem.els=null},after(e){e.bem.b=t,e.bem.els=n},$:({context:t,props:n})=>(e="string"==typeof e?e:e({context:t,props:n}),t.bem.b=e,`${(null==n?void 0:n.bPrefix)||r}${t.bem.b}`)}}(e[0]),e[1],e[2]),cE:(...e)=>t(function(e){let t;return{before(e){t=e.bem.els},after(e){e.bem.els=t},$:({context:t,props:o})=>(e="string"==typeof e?e:e({context:t,props:o}),t.bem.els=e.split(",").map((e=>e.trim())),t.bem.els.map((e=>`${(null==o?void 0:o.bPrefix)||r}${t.bem.b}${n}${e}`)).join(", "))}}(e[0]),e[1],e[2]),cM:(...e)=>t(function(e){return{$({context:t,props:i}){const a=(e="string"==typeof e?e:e({context:t,props:i})).split(",").map((e=>e.trim()));function s(e){return a.map((a=>`&${(null==i?void 0:i.bPrefix)||r}${t.bem.b}${void 0!==e?`${n}${e}`:""}${o}${a}`)).join(", ")}const l=t.bem.els;return null!==l?s(l[0]):s()}}}(e[0]),e[1],e[2]),cNotM:(...e)=>t(function(e){return{$({context:t,props:i}){e="string"==typeof e?e:e({context:t,props:i});const a=t.bem.els;return`&:not(${(null==i?void 0:i.bPrefix)||r}${t.bem.b}${null!==a&&a.length>0?`${n}${a[0]}`:""}${o}${e})`}}}(e[0]),e[1],e[2])}),i}({blockPrefix:".n-",elementPrefix:"__",modifierPrefix:"--"});Uo.use(Lo);const{c:Wo,find:Xo}=Uo,{cB:Go,cE:Vo,cM:qo,cNotM:Yo}=Lo;const Ko=typeof document<"u";function Qo(){if(Ko)return;const e=ne("@css-render/vue3-ssr",null);return null!==e?{adapter:(t,r)=>function(e,t,r){const{styles:n,ids:o}=r;o.has(e)||null!==n&&(o.add(e),n.push(function(e,t){return``}(e,t)))}(t,r,e),context:e}:void 0}const Zo={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:Jo,fontFamily:ei,lineHeight:ti}=Zo,ri=Wo("body",`\n margin: 0;\n font-size: ${Jo};\n font-family: ${ei};\n line-height: ${ti};\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: transparent;\n`,[Wo("input","\n font-family: inherit;\n font-size: inherit;\n ")]),ni="n-config-provider",oi="naive-ui-style";function ii(e,t,r,n,o,i){const a=Qo(),s=ne(ni,null);if(r){const e=()=>{const e=null==i?void 0:i.value;r.mount({id:void 0===e?t:e+t,head:!0,props:{bPrefix:e?`.${e}-`:void 0},anchorMetaName:oi,ssr:a,parent:null==s?void 0:s.styleMountTarget}),null!=s&&s.preflightStyleDisabled||ri.mount({id:"n-global",head:!0,anchorMetaName:oi,ssr:a,parent:null==s?void 0:s.styleMountTarget})};a?e():oe(e)}return O((()=>{var t;const{theme:{common:r,self:i,peers:a={}}={},themeOverrides:l={},builtinThemeOverrides:c={}}=o,{common:u,peers:f}=l,{common:h,[e]:{common:p,self:d,peers:g={}}={}}=(null==s?void 0:s.mergedThemeRef.value)||{},{common:v,[e]:m={}}=(null==s?void 0:s.mergedThemeOverridesRef.value)||{},{common:b,peers:y={}}=m,w=eo({},r||p||h||n.common,v,b,u);return{common:w,self:eo(null===(t=i||d||n.self)||void 0===t?void 0:t(w),c,m,l),peers:eo({},n.peers,g,a),peerOverrides:eo({},c.peers,y,f)}}))}ii.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};function ai(e,t,r,n){r||function(e,t){throw new Error(`[naive/${e}]: ${t}`)}("useThemeClass","cssVarsRef is not passed");const o=ne(ni,null),i=null==o?void 0:o.mergedThemeHashRef,a=null==o?void 0:o.styleMountTarget,s=N(""),l=Qo();let c;const u=`__${e}`;return he((()=>{(()=>{let e=u;const o=t?t.value:void 0,f=null==i?void 0:i.value;f&&(e+=`-${f}`),o&&(e+=`-${o}`);const{themeOverrides:h,builtinThemeOverrides:p}=n;h&&(e+=`-${To(JSON.stringify(h))}`),p&&(e+=`-${To(JSON.stringify(p))}`),s.value=e,c=()=>{const t=r.value;let n="";for(const e in t)n+=`${e}: ${t[e]};`;Wo(`.${e}`,n).mount({id:e,ssr:l,parent:a}),c=void 0}})()})),{themeClass:s,onRender:()=>{null==c||c()}}}const si="#FFF",li="#000",ci="#000",ui="#fff",fi="#fff",hi="#fff",pi="#fff",di="0.82",gi="0.72",vi="0.38",mi="0.24",bi="0.18",yi="0.6",wi="0.5",_i="0.2",xi=".08",Si="0",Ci="0.25",ki="0.4",Ei="#36ad6a",Ai="#18a058",Oi="#0c7a43",Bi="#36ad6a",Di="#4098fc",ji="#2080f0",Pi="#1060c9",Ni="#4098fc",Mi="#de576d",Ti="#d03050",Ri="#ab1f3f",$i="#de576d",Ii="#fcb040",zi="#f0a020",Hi="#c97c10",Fi="#fcb040",Ui="#36ad6a",Li="#18a058",Wi="#0c7a43",Xi="#36ad6a",Gi=bo(si),Vi=bo(li),qi=`rgba(${Vi.slice(0,3).join(", ")}, `;function Yi(e){return`${qi+String(e)})`}function Ki(e){const t=Array.from(Vi);return t[3]=Number(e),wo(Gi,t)}const Qi={name:"Icon",common:Object.assign(Object.assign({name:"common"},Zo),{baseColor:si,primaryColor:Ai,primaryColorHover:Ei,primaryColorPressed:Oi,primaryColorSuppl:Bi,infoColor:ji,infoColorHover:Di,infoColorPressed:Pi,infoColorSuppl:Ni,successColor:Li,successColorHover:Ui,successColorPressed:Wi,successColorSuppl:Xi,warningColor:zi,warningColorHover:Ii,warningColorPressed:Hi,warningColorSuppl:Fi,errorColor:Ti,errorColorHover:Mi,errorColorPressed:Ri,errorColorSuppl:$i,textColorBase:ci,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Ki(mi),placeholderColor:Ki(mi),placeholderColorDisabled:Ki(bi),iconColor:Ki(mi),iconColorHover:_o(Ki(mi),{lightness:.75}),iconColorPressed:_o(Ki(mi),{lightness:.9}),iconColorDisabled:Ki(bi),opacity1:di,opacity2:gi,opacity3:vi,opacity4:mi,opacity5:bi,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Ki(Number(yi)),closeIconColorHover:Ki(Number(yi)),closeIconColorPressed:Ki(Number(yi)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Ki(mi),clearColorHover:_o(Ki(mi),{lightness:.75}),clearColorPressed:_o(Ki(mi),{lightness:.9}),scrollbarColor:Yi(Ci),scrollbarColorHover:Yi(ki),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Ki(xi),railColor:"rgb(219, 219, 223)",popoverColor:ui,tableColor:fi,cardColor:fi,modalColor:hi,bodyColor:pi,tagColor:"#eee",avatarColor:Ki(_i),invertedColor:"rgb(0, 20, 40)",inputColor:Ki(Si),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:wi,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),self:function(e){const{textColorBase:t,opacity1:r,opacity2:n,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:r,opacity2Depth:n,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}}},Zi=Go("icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[qo("color-transition",{transition:"color .3s var(--n-bezier)"}),qo("depth",{color:"var(--n-color)"},[Wo("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),Wo("svg",{height:"1em",width:"1em"})]),Ji=y({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:Object.assign(Object.assign({},ii.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=function(e={},t={defaultBordered:!0}){const r=ne(ni,null);return{inlineThemeDisabled:null==r?void 0:r.inlineThemeDisabled,mergedRtlRef:null==r?void 0:r.mergedRtlRef,mergedComponentPropsRef:null==r?void 0:r.mergedComponentPropsRef,mergedBreakpointsRef:null==r?void 0:r.mergedBreakpointsRef,mergedBorderedRef:O((()=>{var n,o;const{bordered:i}=e;return void 0!==i?i:null===(o=null!==(n=null==r?void 0:r.mergedBorderedRef.value)&&void 0!==n?n:t.defaultBordered)||void 0===o||o})),mergedClsPrefixRef:r?r.mergedClsPrefixRef:fe("n"),namespaceRef:O((()=>null==r?void 0:r.mergedNamespaceRef.value))}}(e),n=ii("Icon","-icon",Zi,Qi,e,t),o=O((()=>{const{depth:t}=e,{common:{cubicBezierEaseInOut:r},self:o}=n.value;if(void 0!==t){const{color:e,[`opacity${t}Depth`]:n}=o;return{"--n-bezier":r,"--n-color":e,"--n-opacity":n}}return{"--n-bezier":r,"--n-color":"","--n-opacity":""}})),i=r?ai("icon",O((()=>`${e.depth||"d"}`)),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:O((()=>{const{size:t,color:r}=e;return{fontSize:no(t),color:r}})),cssVars:r?void 0:o,themeClass:null==i?void 0:i.themeClass,onRender:null==i?void 0:i.onRender}},render(){var e;const{$parent:t,depth:r,mergedClsPrefix:n,component:o,onRender:i,themeClass:a}=this;return!(null===(e=null==t?void 0:t.$options)||void 0===e)&&e._n_icon__&&function(e,t){console.error(`[naive/${e}]: ${t}`)}("icon","don't wrap `n-icon` inside `n-icon`"),null==i||i(),k("i",ce(this.$attrs,{role:"img",class:[`${n}-icon`,a,{[`${n}-icon--depth`]:r,[`${n}-icon--color-transition`]:void 0!==r}],style:[this.cssVars,this.mergedStyle]}),o?k(o):this.$slots)}}),ea=y({__name:"Iconx",props:{component:{},size:{},depth:{},color:{}},setup(e){const n=e,o=e=>function(e){return"string"==typeof e||!jt(e)&&Dt(e)&&"[object String]"==Bt(e)}(e)?F("i",{innerHTML:e||"svg??"}):e;return(e,i)=>{return T(),z(Z(Ji),U(L((a=s({},n),l={component:o(e.component)},t(a,r(l))))),null,16);var a,l}}}),ta=y({__name:"IconButton",props:{icon:{},isize:{},idepth:{},icolor:{}},setup:e=>(e,t)=>(T(),z(Z(G),U(L(e.$attrs)),{icon:H((()=>[F(Z(ea),U(L({component:e.icon,size:e.isize,depth:e.idepth,color:e.icolor})),null,16)])),default:H((()=>[W(e.$slots,"default")])),_:3},16))}),ra={name:"zh-CN",global:{choose:"请选择",required:"必填",selectAll:"全选",selectNone:"全不选"},Table:{total:"条记录",len:"条"},UpdatePassword:{currPassword:"当前密码",newPassword:"新密码",reenteredPassword:"重复新密码"},Msg:{delete:"删除后不可恢复",pleaseConfirm:"请确认",pleaseInput:"请输入",confirm:"确认",confirmDelete:"确认删除",confirmUpdate:"确认修改",cancel:"取消",tip:"温馨提示",removeConfirmSuccess:"移除成功",addSuccess:"添加成功",updateSuccess:"修改成功",inputPasswordNotEqual:"两次密码输入不一致",pleaseInputPasswordAgain:"请再次输入密码"}},na={name:"en-US",global:{choose:"choose",required:"required",selectAll:"selectAll",selectNone:"selectNone"},Table:{total:"total",len:"length"},UpdatePassword:{currPassword:"currPassword",newPassword:"newPassword",reenteredPassword:"reenteredPassword"},Msg:{delete:"delete",pleaseConfirm:"pleaseConfirm",pleaseInput:"pleaseInput",confirm:"confirm",confirmDelete:"confirmDelete",confirmUpdate:"confirmUpdate",cancel:"cancel",tip:"tip",removeConfirmSuccess:"removeConfirmSuccess",addSuccess:"addSuccess",updateSuccess:"updateSuccess",inputPasswordNotEqual:"inputPasswordNotEqual",pleaseInputPasswordAgain:"pleaseInputPasswordAgain"}};function oa(e){const{mergedLocaleRef:t}=ne("n-config-provider",null)||{},r=O((()=>{var e;return null==(e=t.value)?void 0:e.name}));return{localeRef:O((()=>"zh-CN"==r.value?ra[e]:na[e]))}}var ia=Object.defineProperty,aa=Object.getOwnPropertySymbols,sa=Object.prototype.hasOwnProperty,la=Object.prototype.propertyIsEnumerable,ca=(e,t,r)=>t in e?ia(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ua=(e,t)=>{for(var r in t||(t={}))sa.call(t,r)&&ca(e,r,t[r]);if(aa)for(var r of aa(t))la.call(t,r)&&ca(e,r,t[r]);return e},fa=(e,t)=>{var r={};for(var n in e)sa.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&aa)for(var n of aa(e))t.indexOf(n)<0&&la.call(e,n)&&(r[n]=e[n]);return r};const ha="[vue-draggable-plus]: ";function pa(e,t,r){return r>=0&&r{t(r,e[r])}))}const wa=Object.assign; +/**! + * Sortable 1.15.2 + * @author RubaXa + * @author owenm + * @license MIT + */function _a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xa(e){for(var t=1;t=0)&&(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Aa(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Oa=Aa(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ba=Aa(/Edge/i),Da=Aa(/firefox/i),ja=Aa(/safari/i)&&!Aa(/chrome/i)&&!Aa(/android/i),Pa=Aa(/iP(ad|od|hone)/i),Na=Aa(/chrome/i)&&Aa(/android/i),Ma={capture:!1,passive:!1};function Ta(e,t,r){e.addEventListener(t,r,!Oa&&Ma)}function Ra(e,t,r){e.removeEventListener(t,r,!Oa&&Ma)}function $a(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(r){return!1}return!1}}function Ia(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function za(e,t,r,n){if(e){r=r||document;do{if(null!=t&&(">"===t[0]?e.parentNode===r&&$a(e,t):$a(e,t))||n&&e===r)return e;if(e===r)break}while(e=Ia(e))}return null}var Ha,Fa=/\s+/g;function Ua(e,t,r){if(e&&t)if(e.classList)e.classList[r?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(Fa," ").replace(" "+t+" "," ");e.className=(n+(r?" "+t:"")).replace(Fa," ")}}function La(e,t,r){var n=e&&e.style;if(n){if(void 0===r)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),void 0===t?r:r[t];!(t in n)&&-1===t.indexOf("webkit")&&(t="-webkit-"+t),n[t]=r+("string"==typeof r?"":"px")}}function Wa(e,t){var r="";if("string"==typeof e)r=e;else do{var n=La(e,"transform");n&&"none"!==n&&(r=n+" "+r)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(r)}function Xa(e,t,r){if(e){var n=e.getElementsByTagName(t),o=0,i=n.length;if(r)for(;o=Va(n)[r]))return n;if(n===Ga())break;n=Ja(n,!1)}return!1}function Ya(e,t,r,n){for(var o=0,i=0,a=e.children;i2&&void 0!==arguments[2]?arguments[2]:{},n=r.evt,o=Ea(r,us);cs.pluginEvent.bind(nl)(e,t,xa({dragEl:ps,parentEl:ds,ghostEl:gs,rootEl:vs,nextEl:ms,lastDownEl:bs,cloneEl:ys,cloneHidden:ws,dragStarted:Ns,putSortable:Es,activeSortable:nl.active,originalEvent:n,oldIndex:_s,oldDraggableIndex:Ss,newIndex:xs,newDraggableIndex:Cs,hideGhostForTarget:Js,unhideGhostForTarget:el,cloneNowHidden:function(){ws=!0},cloneNowShown:function(){ws=!1},dispatchSortableEvent:function(e){hs({sortable:t,name:e,originalEvent:n})}},o))};function hs(e){!function(e){var t=e.sortable,r=e.rootEl,n=e.name,o=e.targetEl,i=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,f=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,d=e.extraEventProperties;if(t=t||r&&r[is]){var g,v=t.options,m="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||Oa||Ba?(g=document.createEvent("Event")).initEvent(n,!0,!0):g=new CustomEvent(n,{bubbles:!0,cancelable:!0}),g.to=a||r,g.from=s||r,g.item=o||r,g.clone=i,g.oldIndex=l,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=f,g.originalEvent=h,g.pullMode=p?p.lastPutMode:void 0;var b=xa(xa({},d),cs.getEventProperties(n,t));for(var y in b)g[y]=b[y];r&&r.dispatchEvent(g),v[m]&&v[m].call(t,g)}}(xa({putSortable:Es,cloneEl:ys,targetEl:ps,rootEl:vs,oldIndex:_s,oldDraggableIndex:Ss,newIndex:xs,newDraggableIndex:Cs},e))}var ps,ds,gs,vs,ms,bs,ys,ws,_s,xs,Ss,Cs,ks,Es,As,Os,Bs,Ds,js,Ps,Ns,Ms,Ts,Rs,$s,Is=!1,zs=!1,Hs=[],Fs=!1,Us=!1,Ls=[],Ws=!1,Xs=[],Gs=typeof document<"u",Vs=Pa,qs=Ba||Oa?"cssFloat":"float",Ys=Gs&&!Na&&!Pa&&"draggable"in document.createElement("div"),Ks=function(){if(Gs){if(Oa)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Qs=function(e,t){var r=La(e),n=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=Ya(e,0,t),i=Ya(e,1,t),a=o&&La(o),s=i&&La(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Va(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Va(i).width;if("flex"===r.display)return"column"===r.flexDirection||"column-reverse"===r.flexDirection?"vertical":"horizontal";if("grid"===r.display)return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=n&&"none"===r[qs]||i&&"none"===r[qs]&&l+c>n)?"vertical":"horizontal"},Zs=function(e){function t(e,r){return function(n,o,i,a){var s=n.options.group.name&&o.options.group.name&&n.options.group.name===o.options.group.name;if(null==e&&(r||s))return!0;if(null==e||!1===e)return!1;if(r&&"clone"===e)return e;if("function"==typeof e)return t(e(n,o,i,a),r)(n,o,i,a);var l=(r?n:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var r={},n=e.group;(!n||"object"!=Sa(n))&&(n={name:n}),r.name=n.name,r.checkPull=t(n.pull,!0),r.checkPut=t(n.put),r.revertClone=n.revertClone,e.group=r},Js=function(){!Ks&&gs&&La(gs,"display","none")},el=function(){!Ks&&gs&&La(gs,"display","")};Gs&&!Na&&document.addEventListener("click",(function(e){if(zs)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),zs=!1,!1}),!0);var tl=function(e){if(ps){var t=function(e,t){var r;return Hs.some((function(n){var o=n[is].options.emptyInsertThreshold;if(o&&!Ka(n)){var i=Va(n),a=e>=i.left-o&&e<=i.right+o,s=t>=i.top-o&&t<=i.bottom+o;if(a&&s)return r=n}})),r}((e=e.touches?e.touches[0]:e).clientX,e.clientY);if(t){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[is]._onDragOver(r)}}},rl=function(e){ps&&ps.parentNode[is]._isOutsideThisEl(e.target)};function nl(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=ka({},t),e[is]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Qs(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==nl.supportPointer&&"PointerEvent"in window&&!ja,emptyInsertThreshold:5};for(var n in cs.initializePlugins(this,e,r),r)!(n in t)&&(t[n]=r[n]);for(var o in Zs(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Ys,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Ta(e,"pointerdown",this._onTapStart):(Ta(e,"mousedown",this._onTapStart),Ta(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ta(e,"dragover",this),Ta(e,"dragenter",this)),Hs.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ka(this,as())}function ol(e,t,r,n,o,i,a,s){var l,c,u=e[is],f=u.options.onMove;return!window.CustomEvent||Oa||Ba?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=r,l.draggedRect=n,l.related=o||t,l.relatedRect=i||Va(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),f&&(c=f.call(u,l,a)),c}function il(e){e.draggable=!1}function al(){Ws=!1}function sl(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,r=t.length,n=0;r--;)n+=t.charCodeAt(r);return n.toString(36)}function ll(e){return setTimeout(e,0)}function cl(e){return clearTimeout(e)}nl.prototype={constructor:nl,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Ms=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ps):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,r=this.el,n=this.options,o=n.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=n.filter;if(function(e){Xs.length=0;for(var t=e.getElementsByTagName("input"),r=t.length;r--;){var n=t[r];n.checked&&Xs.push(n)}}(r),!ps&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||n.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!ja||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=za(s,n.draggable,r,!1))&&s.animated||bs===s)){if(_s=Qa(s),Ss=Qa(s,n.draggable),"function"==typeof c){if(c.call(this,e,s,this))return hs({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:r,fromEl:r}),fs("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=za(l,n.trim(),r,!1))return hs({sortable:t,rootEl:n,name:"filter",targetEl:s,fromEl:r,toEl:r}),fs("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());n.handle&&!za(l,n.handle,r,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,r){var n,o=this,i=o.el,a=o.options,s=i.ownerDocument;if(r&&!ps&&r.parentNode===i){var l=Va(r);if(vs=i,ds=(ps=r).parentNode,ms=ps.nextSibling,bs=r,ks=a.group,nl.dragged=ps,As={target:ps,clientX:(t||e).clientX,clientY:(t||e).clientY},js=As.clientX-l.left,Ps=As.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ps.style["will-change"]="all",n=function(){fs("delayEnded",o,{evt:e}),nl.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!Da&&o.nativeDraggable&&(ps.draggable=!0),o._triggerDragStart(e,t),hs({sortable:o,name:"choose",originalEvent:e}),Ua(ps,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Xa(ps,e.trim(),il)})),Ta(s,"dragover",tl),Ta(s,"mousemove",tl),Ta(s,"touchmove",tl),Ta(s,"mouseup",o._onDrop),Ta(s,"touchend",o._onDrop),Ta(s,"touchcancel",o._onDrop),Da&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ps.draggable=!0),fs("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Ba||Oa))n();else{if(nl.eventCanceled)return void this._onDrop();Ta(s,"mouseup",o._disableDelayedDrag),Ta(s,"touchend",o._disableDelayedDrag),Ta(s,"touchcancel",o._disableDelayedDrag),Ta(s,"mousemove",o._delayedDragTouchMoveHandler),Ta(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&Ta(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(n,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ps&&il(ps),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ra(e,"mouseup",this._disableDelayedDrag),Ra(e,"touchend",this._disableDelayedDrag),Ra(e,"touchcancel",this._disableDelayedDrag),Ra(e,"mousemove",this._delayedDragTouchMoveHandler),Ra(e,"touchmove",this._delayedDragTouchMoveHandler),Ra(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Ta(document,"pointermove",this._onTouchMove):Ta(document,t?"touchmove":"mousemove",this._onTouchMove):(Ta(ps,"dragend",this),Ta(vs,"dragstart",this._onDragStart));try{document.selection?ll((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(r){}},_dragStarted:function(e,t){if(Is=!1,vs&&ps){fs("dragStarted",this,{evt:t}),this.nativeDraggable&&Ta(document,"dragover",rl);var r=this.options;!e&&Ua(ps,r.dragClass,!1),Ua(ps,r.ghostClass,!0),nl.active=this,e&&this._appendGhost(),hs({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Os){this._lastX=Os.clientX,this._lastY=Os.clientY,Js();for(var e=document.elementFromPoint(Os.clientX,Os.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Os.clientX,Os.clientY))!==t;)t=e;if(ps.parentNode[is]._isOutsideThisEl(e),t)do{if(t[is]){if(t[is]._onDragOver({clientX:Os.clientX,clientY:Os.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);el()}},_onTouchMove:function(e){if(As){var t=this.options,r=t.fallbackTolerance,n=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=gs&&Wa(gs,!0),a=gs&&i&&i.a,s=gs&&i&&i.d,l=Vs&&$s&&Za($s),c=(o.clientX-As.clientX+n.x)/(a||1)+(l?l[0]-Ls[0]:0)/(a||1),u=(o.clientY-As.clientY+n.y)/(s||1)+(l?l[1]-Ls[1]:0)/(s||1);if(!nl.active&&!Is){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))o.right+i||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>o.bottom+i||e.clientX>n.right&&e.clientY>n.top}(e,o,this)&&!g.animated){if(g===ps)return j(!1);if(g&&i===e.target&&(a=g),a&&(r=Va(a)),!1!==ol(vs,i,ps,t,a,r,e,!!a))return D(),g&&g.nextSibling?i.insertBefore(ps,g.nextSibling):i.appendChild(ps),ds=i,P(),j(!0)}else if(g&&function(e,t,r){var n=Va(Ya(r.el,0,r.options,!0)),o=os(r.el,r.options,gs),i=10;return t?e.clientXu+c*i/2:lf-Rs)return-Ts}else if(l>u+c*(1-o)/2&&lf-c*i/2)?l>u+c/2?1:-1:0}(e,a,r,o,_?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Us,Ms===a),0!==m){var k=Qa(ps);do{k-=m,y=ds.children[k]}while(y&&("none"===La(y,"display")||y===gs))}if(0===m||y===a)return j(!1);Ms=a,Ts=m;var E=a.nextElementSibling,A=!1,O=ol(vs,i,ps,t,a,r,e,A=1===m);if(!1!==O)return(1===O||-1===O)&&(A=1===O),Ws=!0,setTimeout(al,30),D(),A&&!E?i.appendChild(ps):a.parentNode.insertBefore(ps,A?E:a),S&&rs(S,0,C-S.scrollTop),ds=ps.parentNode,void 0!==b&&!Us&&(Rs=Math.abs(b-Va(a)[x])),P(),j(!0)}if(i.contains(ps))return j(!1)}return!1}function B(s,l){fs(s,p,xa({evt:e,isOwner:u,axis:o?"vertical":"horizontal",revert:n,dragRect:t,targetRect:r,canSort:f,fromSortable:h,target:a,completed:j,onMove:function(r,n){return ol(vs,i,ps,t,r,Va(r),e,n)},changed:P},l))}function D(){B("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function j(t){return B("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(p),p!==h&&(Ua(ps,Es?Es.options.ghostClass:c.options.ghostClass,!1),Ua(ps,s.ghostClass,!0)),Es!==p&&p!==nl.active?Es=p:p===nl.active&&Es&&(Es=null),h===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){B("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(a===ps&&!ps.animated||a===i&&!a.animated)&&(Ms=null),!s.dragoverBubble&&!e.rootEl&&a!==document&&(ps.parentNode[is]._isOutsideThisEl(e.target),!t&&tl(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),d=!0}function P(){xs=Qa(ps),Cs=Qa(ps,s.draggable),hs({sortable:p,name:"change",toEl:i,newIndex:xs,newDraggableIndex:Cs,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ra(document,"mousemove",this._onTouchMove),Ra(document,"touchmove",this._onTouchMove),Ra(document,"pointermove",this._onTouchMove),Ra(document,"dragover",tl),Ra(document,"mousemove",tl),Ra(document,"touchmove",tl)},_offUpEvents:function(){var e=this.el.ownerDocument;Ra(e,"mouseup",this._onDrop),Ra(e,"touchend",this._onDrop),Ra(e,"pointerup",this._onDrop),Ra(e,"touchcancel",this._onDrop),Ra(document,"selectstart",this)},_onDrop:function(e){var t=this.el,r=this.options;xs=Qa(ps),Cs=Qa(ps,r.draggable),fs("drop",this,{evt:e}),ds=ps&&ps.parentNode,xs=Qa(ps),Cs=Qa(ps,r.draggable),nl.eventCanceled||(Is=!1,Us=!1,Fs=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),cl(this.cloneId),cl(this._dragStartId),this.nativeDraggable&&(Ra(document,"drop",this),Ra(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ja&&La(document.body,"user-select",""),La(ps,"transform",""),e&&(Ns&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),gs&&gs.parentNode&&gs.parentNode.removeChild(gs),(vs===ds||Es&&"clone"!==Es.lastPutMode)&&ys&&ys.parentNode&&ys.parentNode.removeChild(ys),ps&&(this.nativeDraggable&&Ra(ps,"dragend",this),il(ps),ps.style["will-change"]="",Ns&&!Is&&Ua(ps,Es?Es.options.ghostClass:this.options.ghostClass,!1),Ua(ps,this.options.chosenClass,!1),hs({sortable:this,name:"unchoose",toEl:ds,newIndex:null,newDraggableIndex:null,originalEvent:e}),vs!==ds?(xs>=0&&(hs({rootEl:ds,name:"add",toEl:ds,fromEl:vs,originalEvent:e}),hs({sortable:this,name:"remove",toEl:ds,originalEvent:e}),hs({rootEl:ds,name:"sort",toEl:ds,fromEl:vs,originalEvent:e}),hs({sortable:this,name:"sort",toEl:ds,originalEvent:e})),Es&&Es.save()):xs!==_s&&xs>=0&&(hs({sortable:this,name:"update",toEl:ds,originalEvent:e}),hs({sortable:this,name:"sort",toEl:ds,originalEvent:e})),nl.active&&((null==xs||-1===xs)&&(xs=_s,Cs=Ss),hs({sortable:this,name:"end",toEl:ds,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){fs("nulling",this),vs=ps=ds=gs=ms=ys=bs=ws=As=Os=Ns=xs=Cs=_s=Ss=Ms=Ts=Es=ks=nl.dragged=nl.ghost=nl.clone=nl.active=null,Xs.forEach((function(e){e.checked=!0})),Xs.length=Bs=Ds=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ps&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],r=this.el.children,n=0,o=r.length,i=this.options;n"u"}(t)){if(ma(e.item),me(a)){const r=[...Z(a)];return void(a.value=ga(r,e.newDraggableIndex,t))}ga(Z(a),e.newDraggableIndex,t)}},onRemove:function(e){const{from:t,item:r,oldIndex:n,oldDraggableIndex:o,pullMode:i,clone:s}=e;if(va(t,r,n),"clone"!==i)if(me(a)){const e=[...Z(a)];a.value=da(e,o)}else da(Z(a),o);else ma(s)},onEnd:function(e){const{newIndex:t,oldIndex:r,from:n,to:i}=e;let a=null;const s=t===r&&n===i;try{if(s){let e=null;null==o||o.some(((t,r)=>{if(e&&(null==o?void 0:o.length)!==i.childNodes.length)return n.insertBefore(e,t.nextSibling),!0;const a=i.childNodes[r];e=null==i?void 0:i.replaceChild(t,a)}))}}catch(l){a=l}finally{o=null}ve((()=>{if(Al(),a)throw a}))}};function p(e){const t=Z(i);return e||(e=function(e){return"string"==typeof e}(t)?ba(t,null==n?void 0:n.$el):t),e&&!function(e){return e instanceof HTMLElement}(e)&&(e=e.$el),e||function(e){console.error(ha+e)}("Root element not found"),e}function d(){var e;const t=null!=(e=Z(s))?e:{},r=fa(t,["immediate","clone"]);return ya(r,((e,t)=>{(function(e){return 111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)})(e)&&(r[e]=(e,...r)=>(wa(e,{data:kl,clonedData:El}),t(e,...r)))})),function(e,t){const r=ua({},e);return Object.keys(t).forEach((n=>{r[n]?r[n]=function(e,t,r=null){return function(...n){return e.apply(r,n),t.apply(r,n)}}(e[n],t[n]):r[n]=t[n]})),r}(null===a?{}:h,r)}const g=e=>{e=p(e),l&&v.destroy(),l=new nl(e,d())};Q((()=>s),(()=>{l&&ya(d(),((e,t)=>{null==l||l.option(e,t)}))}),{deep:!0});const v={option:(e,t)=>null==l?void 0:l.option(e,t),destroy:()=>{null==l||l.destroy(),l=null},save:()=>null==l?void 0:l.save(),toArray:()=>null==l?void 0:l.toArray(),closest:(...e)=>null==l?void 0:l.closest(...e)};return function(e){pe()?K(e):ve(e)}((()=>{c&&g()})),function(e){pe()&&ge(e)}(v.destroy),ua({start:g,pause:()=>null==v?void 0:v.option("disabled",!0),resume:()=>null==v?void 0:v.option("disabled",!1)},v)}const Dl=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],jl=["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...Dl.map((e=>`on${e.replace(/^\S/,(e=>e.toUpperCase()))}`))],Pl=y({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:jl,emits:["update:modelValue",...Dl],setup(e,{slots:t,emit:r,expose:n,attrs:o}){const i=Dl.reduce(((e,t)=>(e[`on${t.replace(/^\S/,(e=>e.toUpperCase()))}`]=(...e)=>r(t,...e),e)),{}),a=O((()=>{const t=ue(e),r=fa(t,["modelValue"]),n=Object.entries(r).reduce(((e,[t,r])=>{const n=Z(r);return void 0!==n&&(e[t]=n),e}),{});return ua(ua({},i),function(e){return Object.keys(e).reduce(((t,r)=>(typeof e[r]<"u"&&(t[function(e){return e.replace(/-(\w)/g,((e,t)=>t?t.toUpperCase():""))}(r)]=e[r]),t)),{})}(ua(ua({},o),n)))})),s=O({get:()=>e.modelValue,set:e=>r("update:modelValue",e)}),l=N(),c=re(Bl(e.target||l,s,a));return n(c),()=>{var r;return k(e.tag||"div",{ref:l},null==(r=null==t?void 0:t.default)?void 0:r.call(t,c))}}});var Nl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ml(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Tl={exports:{}};var Rl={exports:{}};const $l=Ml(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Il;function zl(){return Il||(Il=1,Rl.exports=(e=e||function(e,t){var r;if(typeof window<"u"&&window.crypto&&(r=window.crypto),typeof self<"u"&&self.crypto&&(r=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window<"u"&&window.msCrypto&&(r=window.msCrypto),!r&&typeof Nl<"u"&&Nl.crypto&&(r=Nl.crypto),!r)try{r=$l}catch(g){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},a=i.lib={},s=a.Base=function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),(!t.hasOwnProperty("init")||this.init===t.init)&&(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=a.WordArray=s.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[n+i>>>2]|=a<<24-(n+i)%4*8}else for(var s=0;s>>2]=r[s>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(r,t/2)}},f=c.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(r,t)}},h=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(g){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,a=this.blockSize,s=i/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,i);if(c){for(var f=0;f>>2]|=e[o]<<24-o%4*8;r.call(this,n,t)}else r.apply(this,arguments)};n.prototype=t}}(),e.lib.WordArray)),Wl.exports;var e}var Gl,Vl={exports:{}};function ql(){return Gl||(Gl=1,Vl.exports=(e=zl(),function(){var t=e,r=t.lib.WordArray,n=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>1]|=e.charCodeAt(o)<<16-o%2*16;return r.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return r.create(n,2*t)}}}(),e.enc.Utf16)),Vl.exports;var e}var Yl,Kl={exports:{}};function Ql(){return Yl||(Yl=1,Kl.exports=(e=zl(),function(){var t=e,r=t.lib.WordArray;function n(e,t,n){for(var o=[],i=0,a=0;a>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return r.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return r.create(o,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l>>6*(3-l)&63));var c=o.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],d=e[t+3],g=e[t+4],v=e[t+5],m=e[t+6],b=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],x=e[t+11],S=e[t+12],C=e[t+13],k=e[t+14],E=e[t+15],A=i[0],O=i[1],B=i[2],D=i[3];A=c(A,O,B,D,a,7,s[0]),D=c(D,A,O,B,l,12,s[1]),B=c(B,D,A,O,p,17,s[2]),O=c(O,B,D,A,d,22,s[3]),A=c(A,O,B,D,g,7,s[4]),D=c(D,A,O,B,v,12,s[5]),B=c(B,D,A,O,m,17,s[6]),O=c(O,B,D,A,b,22,s[7]),A=c(A,O,B,D,y,7,s[8]),D=c(D,A,O,B,w,12,s[9]),B=c(B,D,A,O,_,17,s[10]),O=c(O,B,D,A,x,22,s[11]),A=c(A,O,B,D,S,7,s[12]),D=c(D,A,O,B,C,12,s[13]),B=c(B,D,A,O,k,17,s[14]),A=u(A,O=c(O,B,D,A,E,22,s[15]),B,D,l,5,s[16]),D=u(D,A,O,B,m,9,s[17]),B=u(B,D,A,O,x,14,s[18]),O=u(O,B,D,A,a,20,s[19]),A=u(A,O,B,D,v,5,s[20]),D=u(D,A,O,B,_,9,s[21]),B=u(B,D,A,O,E,14,s[22]),O=u(O,B,D,A,g,20,s[23]),A=u(A,O,B,D,w,5,s[24]),D=u(D,A,O,B,k,9,s[25]),B=u(B,D,A,O,d,14,s[26]),O=u(O,B,D,A,y,20,s[27]),A=u(A,O,B,D,C,5,s[28]),D=u(D,A,O,B,p,9,s[29]),B=u(B,D,A,O,b,14,s[30]),A=f(A,O=u(O,B,D,A,S,20,s[31]),B,D,v,4,s[32]),D=f(D,A,O,B,y,11,s[33]),B=f(B,D,A,O,x,16,s[34]),O=f(O,B,D,A,k,23,s[35]),A=f(A,O,B,D,l,4,s[36]),D=f(D,A,O,B,g,11,s[37]),B=f(B,D,A,O,b,16,s[38]),O=f(O,B,D,A,_,23,s[39]),A=f(A,O,B,D,C,4,s[40]),D=f(D,A,O,B,a,11,s[41]),B=f(B,D,A,O,d,16,s[42]),O=f(O,B,D,A,m,23,s[43]),A=f(A,O,B,D,w,4,s[44]),D=f(D,A,O,B,S,11,s[45]),B=f(B,D,A,O,E,16,s[46]),A=h(A,O=f(O,B,D,A,p,23,s[47]),B,D,a,6,s[48]),D=h(D,A,O,B,b,10,s[49]),B=h(B,D,A,O,k,15,s[50]),O=h(O,B,D,A,v,21,s[51]),A=h(A,O,B,D,S,6,s[52]),D=h(D,A,O,B,d,10,s[53]),B=h(B,D,A,O,_,15,s[54]),O=h(O,B,D,A,l,21,s[55]),A=h(A,O,B,D,y,6,s[56]),D=h(D,A,O,B,E,10,s[57]),B=h(B,D,A,O,m,15,s[58]),O=h(O,B,D,A,C,21,s[59]),A=h(A,O,B,D,g,6,s[60]),D=h(D,A,O,B,x,10,s[61]),B=h(B,D,A,O,p,15,s[62]),O=h(O,B,D,A,w,21,s[63]),i[0]=i[0]+A|0,i[1]=i[1]+O|0,i[2]=i[2]+B|0,i[3]=i[3]+D|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;r[o>>>5]|=128<<24-o%32;var i=t.floor(n/4294967296),a=n;r[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,o,i,a){var s=e+(t&r|~t&n)+o+a;return(s<>>32-i)+t}function u(e,t,r,n,o,i,a){var s=e+(t&n|r&~n)+o+a;return(s<>>32-i)+t}function f(e,t,r,n,o,i,a){var s=e+(t^r^n)+o+a;return(s<>>32-i)+t}function h(e,t,r,n,o,i,a){var s=e+(r^(t|~n))+o+a;return(s<>>32-i)+t}r.MD5=i._createHelper(l),r.HmacMD5=i._createHmacHelper(l)}(Math),e.MD5)),rc.exports;var e}var oc,ic={exports:{}};function ac(){return oc||(oc=1,ic.exports=(s=zl(),t=(e=s).lib,r=t.WordArray,n=t.Hasher,o=e.algo,i=[],a=o.SHA1=n.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=0;c<80;c++){if(c<16)i[c]=0|e[t+c];else{var u=i[c-3]^i[c-8]^i[c-14]^i[c-16];i[c]=u<<1|u>>>31}var f=(n<<5|n>>>27)+l+i[c];f+=c<20?1518500249+(o&a|~o&s):c<40?1859775393+(o^a^s):c<60?(o&a|o&s|a&s)-1894007588:(o^a^s)-899497514,l=s,s=a,a=o<<30|o>>>2,o=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=n._createHelper(a),e.HmacSHA1=n._createHmacHelper(a),s.SHA1)),ic.exports;var e,t,r,n,o,i,a,s}var sc,lc={exports:{}};function cc(){return sc||(sc=1,lc.exports=(e=zl(),function(t){var r=e,n=r.lib,o=n.WordArray,i=n.Hasher,a=r.algo,s=[],l=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)e(n)&&(o<8&&(s[o]=r(t.pow(n,.5))),l[o]=r(t.pow(n,1/3)),o++),n++}();var c=[],u=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],u=r[5],f=r[6],h=r[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var d=c[p-15],g=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,v=c[p-2],m=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;c[p]=g+c[p-7]+m+c[p-16]}var b=n&o^n&i^o&i,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&f)+l[p]+c[p];h=f,f=u,u=s,s=a+w|0,a=i,i=o,o=n,n=w+(y+b)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+u|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=t.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=i._createHelper(u),r.HmacSHA256=i._createHmacHelper(u)}(Math),e.SHA256)),lc.exports;var e}var uc,fc={exports:{}};var hc,pc={exports:{}};function dc(){return hc||(hc=1,pc.exports=(e=zl(),Ul(),function(){var t=e,r=t.lib.Hasher,n=t.x64,o=n.Word,i=n.WordArray,a=t.algo;function s(){return o.create.apply(o,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=r.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],u=r[5],f=r[6],h=r[7],p=n.high,d=n.low,g=o.high,v=o.low,m=i.high,b=i.low,y=a.high,w=a.low,_=s.high,x=s.low,S=u.high,C=u.low,k=f.high,E=f.low,A=h.high,O=h.low,B=p,D=d,j=g,P=v,N=m,M=b,T=y,R=w,$=_,I=x,z=S,H=C,F=k,U=E,L=A,W=O,X=0;X<80;X++){var G,V,q=c[X];if(X<16)V=q.high=0|e[t+2*X],G=q.low=0|e[t+2*X+1];else{var Y=c[X-15],K=Y.high,Q=Y.low,Z=(K>>>1|Q<<31)^(K>>>8|Q<<24)^K>>>7,J=(Q>>>1|K<<31)^(Q>>>8|K<<24)^(Q>>>7|K<<25),ee=c[X-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,oe=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ie=c[X-7],ae=ie.high,se=ie.low,le=c[X-16],ce=le.high,ue=le.low;V=(V=(V=Z+ae+((G=J+se)>>>0>>0?1:0))+ne+((G+=oe)>>>0>>0?1:0))+ce+((G+=ue)>>>0>>0?1:0),q.high=V,q.low=G}var fe,he=$&z^~$&F,pe=I&H^~I&U,de=B&j^B&N^j&N,ge=D&P^D&M^P&M,ve=(B>>>28|D<<4)^(B<<30|D>>>2)^(B<<25|D>>>7),me=(D>>>28|B<<4)^(D<<30|B>>>2)^(D<<25|B>>>7),be=($>>>14|I<<18)^($>>>18|I<<14)^($<<23|I>>>9),ye=(I>>>14|$<<18)^(I>>>18|$<<14)^(I<<23|$>>>9),we=l[X],_e=we.high,xe=we.low,Se=L+be+((fe=W+ye)>>>0>>0?1:0),Ce=me+ge;L=F,W=U,F=z,U=H,z=$,H=I,$=T+(Se=(Se=(Se=Se+he+((fe+=pe)>>>0>>0?1:0))+_e+((fe+=xe)>>>0>>0?1:0))+V+((fe+=G)>>>0>>0?1:0))+((I=R+fe|0)>>>0>>0?1:0)|0,T=N,R=M,N=j,M=P,j=B,P=D,B=Se+(ve+de+(Ce>>>0>>0?1:0))+((D=fe+Ce|0)>>>0>>0?1:0)|0}d=n.low=d+D,n.high=p+B+(d>>>0>>0?1:0),v=o.low=v+P,o.high=g+j+(v>>>0

>>0?1:0),b=i.low=b+M,i.high=m+N+(b>>>0>>0?1:0),w=a.low=w+R,a.high=y+T+(w>>>0>>0?1:0),x=s.low=x+I,s.high=_+$+(x>>>0>>0?1:0),C=u.low=C+H,u.high=S+z+(C>>>0>>0?1:0),E=f.low=E+U,f.high=k+F+(E>>>0>>0?1:0),O=h.low=O+W,h.high=A+L+(O>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(u),t.HmacSHA512=r._createHmacHelper(u)}(),e.SHA512)),pc.exports;var e}var gc,vc={exports:{}};var mc,bc={exports:{}};function yc(){return mc||(mc=1,bc.exports=(e=zl(),Ul(),function(t){var r=e,n=r.lib,o=n.WordArray,i=n.Hasher,a=r.x64.Word,s=r.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,r=0;r<24;r++){l[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,f=0,h=0;h<7;h++){if(1&o){var p=(1<>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(O=r[o]).high^=a,O.low^=i}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var p=0,d=0,g=0;g<5;g++)p^=(O=r[h+5*g]).high,d^=O.low;var v=f[h];v.high=p,v.low=d}for(h=0;h<5;h++){var m=f[(h+4)%5],b=f[(h+1)%5],y=b.high,w=b.low;for(p=m.high^(y<<1|w>>>31),d=m.low^(w<<1|y>>>31),g=0;g<5;g++)(O=r[h+5*g]).high^=p,O.low^=d}for(var _=1;_<25;_++){var x=(O=r[_]).high,S=O.low,C=l[_];C<32?(p=x<>>32-C,d=S<>>32-C):(p=S<>>64-C,d=x<>>64-C);var k=f[c[_]];k.high=p,k.low=d}var E=f[0],A=r[0];for(E.high=A.high,E.low=A.low,h=0;h<5;h++)for(g=0;g<5;g++){var O=r[_=h+5*g],B=f[_],D=f[(h+1)%5+5*g],j=f[(h+2)%5+5*g];O.high=B.high^~D.high&j.high,O.low=B.low^~D.low&j.low}O=r[0];var P=u[s];O.high^=P.high,O.low^=P.low}},_doFinalize:function(){var e=this._data,r=e.words;this._nDataBytes;var n=8*e.sigBytes,i=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new o.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=i._createHelper(h),r.HmacSHA3=i._createHmacHelper(h)}(Math),e.SHA3)),bc.exports;var e}var wc,_c={exports:{}};var xc,Sc={exports:{}};function Cc(){return xc||(xc=1,Sc.exports=(n=zl(),t=(e=n).lib.Base,r=e.enc.Utf8,void(e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,l=a.words,c=0;c>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:d}),reset:function(){var e;u.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var g=n.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),v=(r.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?i.create([1398893684,1701076831]).concat(r).concat(t):t).toString(l)},parse:function(e){var t,r=l.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),g.create({ciphertext:r,salt:t})}},m=n.SerializableCipher=o.extend({cfg:o.extend({format:v}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),i=o.finalize(t),a=o.cfg;return g.create({ciphertext:i,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(r.kdf={}).OpenSSL={execute:function(e,t,r,n,o){if(n||(n=i.random(8)),o)var a=c.create({keySize:t+r,hasher:o}).compute(e,n);else a=c.create({keySize:t+r}).compute(e,n);var s=i.create(a.words.slice(t),4*r);return a.sigBytes=4*t,g.create({key:a,iv:s,salt:n})}},y=n.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:b}),encrypt:function(e,t,r,n){var o=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=o.iv;var i=m.encrypt.call(this,e,t,o.key,n);return i.mixIn(o),i},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=o.iv,m.decrypt.call(this,e,t,o.key,n)}})}()))),jc.exports;var e}var Nc,Mc={exports:{}};var Tc,Rc={exports:{}};var $c,Ic={exports:{}};function zc(){return $c||($c=1,Ic.exports=(e=zl(),Pc(),e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}return e}function n(e){return 0===(e[0]=r(e[0]))&&(e[1]=r(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),n(a);var s=a.slice(0);r.encryptBlock(s,0);for(var l=0;l>>5]>>>31-n%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var c=o[i]=[],u=l[i];for(r=0;r<24;r++)c[r/6|0]|=t[(s[r]-1+u)%28]<<31-r%6,c[4+(r/6|0)]|=t[28+(s[r+24]-1+u)%28]<<31-r%6;for(c[0]=c[0]<<1|c[0]>>>31,r=1;r<7;r++)c[r]=c[r]>>>4*(r-1)+3;c[7]=c[7]<<5|c[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=o[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=r[n],i=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^o[l])&u[l])>>>0];this._lBlock=a,this._rBlock=i^s}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(n.create(t)),this._des2=f.createEncryptor(n.create(r)),this._des3=f.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o._createHelper(d)}(),e.TripleDES)),iu.exports;var e}var su,lu={exports:{}};var cu,uu={exports:{}};var fu,hu={exports:{}};var pu,du,gu,vu,mu,bu,yu,wu={exports:{}};function _u(){return pu||(pu=1,wu.exports=(e=zl(),Ql(),nc(),Bc(),Pc(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(e,t){let r=t>>24&255,n=t>>16&255,o=t>>8&255,i=255&t,a=e.sbox[0][r]+e.sbox[1][n];return a^=e.sbox[2][o],a+=e.sbox[3][i],a}function c(e,t,r){let n,i=t,a=r;for(let s=0;s1;--s)i^=e.pbox[s],a=l(e,i)^a,n=i,i=a,a=n;return n=i,i=a,a=n,a^=e.pbox[1],i^=e.pbox[0],{left:i,right:a}}function f(e,t,r){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=a[o][t]}let n=0;for(let a=0;a=r&&(n=0);let s=0,l=0,u=0;for(let i=0;i>>24)|4278255360&(o<<24|o>>>8)}var i,h,y,w,_,x,S,C,k,E,A,O=this._hash.words,B=u.words,D=f.words,j=a.words,P=s.words,N=l.words,M=c.words;for(x=i=O[0],S=h=O[1],C=y=O[2],k=w=O[3],E=_=O[4],r=0;r<80;r+=1)A=i+e[t+j[r]]|0,A+=r<16?p(h,y,w)+B[0]:r<32?d(h,y,w)+B[1]:r<48?g(h,y,w)+B[2]:r<64?v(h,y,w)+B[3]:m(h,y,w)+B[4],A=(A=b(A|=0,N[r]))+_|0,i=_,_=w,w=b(y,10),y=h,h=A,A=x+e[t+P[r]]|0,A+=r<16?m(S,C,k)+D[0]:r<32?v(S,C,k)+D[1]:r<48?g(S,C,k)+D[2]:r<64?d(S,C,k)+D[3]:p(S,C,k)+D[4],A=(A=b(A|=0,M[r]))+E|0,x=E,E=k,k=b(C,10),C=S,S=A;A=O[1]+y+k|0,O[1]=O[2]+w+E|0,O[2]=O[3]+_+x|0,O[3]=O[4]+i+S|0,O[4]=O[0]+h+C|0,O[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function d(e,t,r){return e&t|~e&r}function g(e,t,r){return(e|~t)^r}function v(e,t,r){return e&r|t&~r}function m(e,t,r){return e^(t|~r)}function b(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(h),t.HmacRIPEMD160=o._createHmacHelper(h)}(),e.RIPEMD160)),_c.exports;var e}(),Cc(),function(){return kc||(kc=1,Ec.exports=(l=zl(),cc(),Cc(),t=(e=l).lib,r=t.Base,n=t.WordArray,o=e.algo,i=o.SHA256,a=o.HMAC,s=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,o=a.create(r.hasher,e),i=n.create(),s=n.create([1]),l=i.words,c=s.words,u=r.keySize,f=r.iterations;l.length>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923)),Xc.exports;var e}(),function(){return Gc||(Gc=1,Vc.exports=(e=zl(),Pc(),e.pad.Iso10126={pad:function(t,r){var n=4*r,o=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126)),Vc.exports;var e}(),function(){return qc||(qc=1,Yc.exports=(e=zl(),Pc(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971)),Yc.exports;var e}(),function(){return Kc||(Kc=1,Qc.exports=(e=zl(),Pc(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),Qc.exports;var e}(),function(){return Zc||(Zc=1,Jc.exports=(e=zl(),Pc(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding)),Jc.exports;var e}(),function(){return eu||(eu=1,tu.exports=(n=zl(),Pc(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex)),tu.exports;var e,t,r,n}(),function(){return ru||(ru=1,nu.exports=(e=zl(),Ql(),nc(),Bc(),Pc(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,o=[],i=[],a=[],s=[],l=[],c=[],u=[],f=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,o[r]=d,i[d]=r;var g=e[r],v=e[g],m=e[v],b=257*e[d]^16843008*d;a[r]=b<<24|b>>>8,s[r]=b<<16|b>>>16,l[r]=b<<8|b>>>24,c[r]=b,b=16843009*m^65537*v^257*g^16843008*r,u[d]=b<<24|b>>>8,f[d]=b<<16|b>>>16,h[d]=b<<8|b>>>24,p[d]=b,r?(r=g^e[e[e[m^g]]],n^=e[e[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],g=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],a=0;a6&&a%r==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=d[a/r|0]<<24),i[a]=i[a-r]^c);for(var s=this._invKeySchedule=[],l=0;l>>24]]^f[o[c>>>16&255]]^h[o[c>>>8&255]]^p[o[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,f,h,p,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,s){for(var l=this._nRounds,c=e[t]^r[0],u=e[t+1]^r[1],f=e[t+2]^r[2],h=e[t+3]^r[3],p=4,d=1;d>>24]^o[u>>>16&255]^i[f>>>8&255]^a[255&h]^r[p++],v=n[u>>>24]^o[f>>>16&255]^i[h>>>8&255]^a[255&c]^r[p++],m=n[f>>>24]^o[h>>>16&255]^i[c>>>8&255]^a[255&u]^r[p++],b=n[h>>>24]^o[c>>>16&255]^i[u>>>8&255]^a[255&f]^r[p++];c=g,u=v,f=m,h=b}g=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[p++],v=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^r[p++],m=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^r[p++],b=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[p++],e[t]=g,e[t+1]=v,e[t+2]=m,e[t+3]=b},keySize:8});t.AES=r._createHelper(g)}(),e.AES)),nu.exports;var e}(),au(),function(){return su||(su=1,lu.exports=(e=zl(),Ql(),nc(),Bc(),Pc(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var a=o%r,s=t[a>>>2]>>>24-a%4*8&255;i=(i+n[o]+s)%256;var l=n[o];n[o]=n[i],n[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*o}return this._i=t,this._j=r,n}t.RC4=r._createHelper(o);var a=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),lu.exports;var e}(),function(){return cu||(cu=1,uu.exports=(e=zl(),Ql(),nc(),Bc(),Pc(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=[],i=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)l.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(t){var i=t.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=c>>>16|4294901760&u,h=u<<16|65535&c;for(o[0]^=c,o[1]^=f,o[2]^=u,o[3]^=h,o[4]^=c,o[5]^=f,o[6]^=u,o[7]^=h,r=0;r<4;r++)l.call(this)}},_doProcessBlock:function(e,t){var r=this._X;l.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),uu.exports;var e}(),function(){return fu||(fu=1,hu.exports=(e=zl(),Ql(),nc(),Bc(),Pc(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,o=[],i=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(t){var i=t.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=c>>>16|4294901760&u,h=u<<16|65535&c;for(n[0]^=c,n[1]^=f,n[2]^=u,n[3]^=h,n[4]^=c,n[5]^=f,n[6]^=u,n[7]^=h,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var r=this._X;l.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),hu.exports;var e}(),_u());const Su=(e,t)=>{const r=e=>{if(!t.length)return!0;const r=t.find((t=>t.key==e));return!r||r.show},n=[];for(let o=0;oe,initTableCols(e,t){const{state:r,setColsConfig:n}=ku;!Object.keys(r.tables).length&&localStorage.getItem(Cu)&&(ku.state=JSON.parse(localStorage.getItem(Cu)));const o=ku.getID(e),i=ku.state.tables[o];r.fn[o]||(r.fn[o]={});const a=r.fn[o],s=(e=>xu.MD5(JSON.stringify(e)).toString())(t);for(const l of t){const e={};l.render&&(e.render=l.render),l.sorter&&(e.sorter=l.sorter),Object.keys(e).length&&(a[l.key]=e)}if(i){i.field!=s&&n(e,Su(t,i.config),s);for(const e of i.config)if(a[e.key]){const t=a[e.key];t.render&&(e.column.render=t.render),t.sorter&&(e.column.sorter=t.sorter)}return i.config}return r.tables[o]={config:Su(t,[]),field:s},r.tables[o].config},setColsConfig(e,t,r){const{state:n,getID:o}=ku,i=o(e);n.tables[i].config=t,r&&(n.tables[i].field=r);const a=JSON.stringify(n);localStorage.setItem(Cu,a)},resetTableCols(e){delete ku.state.tables[e]},cleanTableCols(){ku.state.tables={}}},Eu=y({__name:"ColsConfig",props:{columns:{}},emits:["change"],setup(e,{emit:t}){const r=t,n=xu.MD5(location.href).toString(),o=qn(e.columns),{initTableCols:i,setColsConfig:a,resetTableCols:s}=ku,l=N(i(n,e.columns)),c=()=>{const e=l.value.filter((e=>e.show)).map((e=>e.column));a(n,l.value),r("change",e)},u=()=>{s(n),l.value=i(n,qn(o)),c()},f=e=>{"left"==e.fixed?delete e.fixed:e.fixed="left",c()};c();const h={"margin-top":"10px","max-height":"50vh",overflow:"auto"},p={cursor:"pointer"};return(e,t)=>(T(),z(Z(Se),{trigger:"click",placement:"bottom"},{trigger:H((()=>[F(Z(G),{type:"default"},{default:H((()=>[F(Z(ie),{component:Z(bt)},null,8,["component"])])),_:1})])),default:H((()=>[F(Z(De),{justify:"space-between",class:"m-t-1 text-gray"},{default:H((()=>[t[2]||(t[2]=ae(" 长按拖动排序 ")),F(Z(G),{size:"tiny",type:"info",onClick:u},{default:H((()=>t[1]||(t[1]=[ae("重置")]))),_:1})])),_:1}),F(Z(Pl),{ref:"el",modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=e=>l.value=e),onUpdate:c,style:se(h)},{default:H((()=>[(T(!0),R(te,null,le(l.value,(e=>(T(),R("div",{key:e.key},[e.title?(T(),z(Z(De),{key:0,class:"m-t-2",align:"center"},{default:H((()=>[e.column.fixed?(T(),z(Z(ie),{key:0,component:Z(ht),onClick:t=>f(e.column),style:se(p)},null,8,["component","onClick","style"])):(T(),z(Z(ie),{key:1,component:Z(ct),onClick:t=>f(e.column),class:"pointer"},null,8,["component","onClick"])),F(Z(we),{checked:e.show,"onUpdate:checked":[t=>e.show=t,c],label:e.title},null,8,["checked","onUpdate:checked","label"])])),_:2},1024)):ee("",!0)])))),128))])),_:1},8,["modelValue","style"])])),_:1}))}}),Au=y({__name:"TableBtnGroup",props:{collapsed:{type:Boolean},columns:{},colsConfig:{type:Boolean},onReload:{type:Function},onReset:{type:Function},setCols:{},justify:{default:"end"}},emits:["update:collapsed"],setup(e,{emit:t}){const r=t,n=()=>{r("update:collapsed",!e.collapsed)};return(e,t)=>(T(),z(Z(De),{justify:e.justify},{default:H((()=>[F(Z(Be),null,{default:H((()=>[F(Z(ta),{"attr-type":"button",title:"查询",type:"info",icon:Z(gt),onClick:e.onReload},null,8,["icon","onClick"]),F(Z(ta),{"attr-type":"reset",title:"重置",icon:Z(He),onClick:e.onReset},null,8,["icon","onClick"]),e.colsConfig?(T(),z(Eu,{key:0,columns:e.columns,onChange:e.setCols},null,8,["columns","onChange"])):ee("",!0),F(Z(G),{"attr-type":"button",onClick:n},{icon:H((()=>[F(Z(ea),{component:e.collapsed?Z(nt):Z(at),size:16},null,8,["component"])])),_:1})])),_:1})])),_:1},8,["justify"]))}}),Ou=y({__name:"Table",props:V({api:{},config:{},summary:{},query:{type:Boolean,default:!0},maxHeight:{}},{columns:{default:[]},columnsModifiers:{}}),emits:["update:columns"],setup(e,{expose:t}){const r=q(e,"columns"),n=e.config.rowKey,o=N(!1),i=Ju(),a=r.value.reduce(((e,t)=>e+Number(t.width)||0),0),{pagination:l,setPageProps:c,reload:u,setQuery:f}=Zu(),{cKeys:h,cRows:p,handleCheck:d,cleanCheck:g}=Ku(n),v=N([]),m=N(!1);let b=[];const y=N(qn(e.config.params)),w=()=>{y.value=qn(e.config.params),u()},_=f((()=>{return t=this,r=null,n=function*(){const{pageSize:t=10,page:r=1}=l;try{m.value=!0;let n={limit:t,offset:(r-1)*t};e.config.paramsHandler&&(n=s(s({},n),e.config.paramsHandler(Y(y.value))));const{data:o,status:a,message:l}=yield e.api(n);if("success"!=a)return void i.error(l);b=qn(o.list),v.value=o.list,c({itemCount:o.count})}finally{m.value=!1}},new Promise(((o,i)=>{var a=t=>{try{l(n.next(t))}catch(e){i(e)}},s=t=>{try{l(n.throw(t))}catch(e){i(e)}},l=e=>e.done?o(e.value):Promise.resolve(e.value).then(a,s);l((n=n.apply(t,r)).next())}));var t,r,n})),x=e=>{if(!m.value){if(m.value=!0,jt(e)&&console.error("sorter 暂不支持 multiple 排序"),Mt(e.sorter)){const t=e.sorter,r=qn(b);"ascend"==e.order&&r.sort(t),"descend"==e.order&&r.sort(t).reverse(),v.value=r}m.value=!1}},S=()=>{const{colsConfig:t=!0}=e.config;return k(Au,{collapsed:o.value,"onUpdate:collapsed":e=>o.value=e,setCols:e=>r.value=e,columns:r.value,onReload:u,colsConfig:t,onReset:w})};return e.query&&_(),K((()=>{const{watchFilter:t}=e.config;t&&Q((()=>y.value.filter),u,{deep:1})})),t({cKeys:h,cRows:p,setKeys:e=>{h.value=e,p.value=e.map((e=>({[n]:e})))},setRows:e=>{p.value=e,h.value=e.map((e=>e[n]))},cleanCheck:g,reload:u,getSource:()=>Y(v.value),refresh:_,getParams:()=>Y(y.value)}),(e,t)=>(T(),R(te,null,[W(e.$slots,"form",U(L({collapsed:o.value,reload:Z(u),qParams:y.value,TableCtrl:S}))),t[0]||(t[0]=$("br",null,null,-1)),F(Z(De),{justify:"space-between"},{default:H((()=>[$("span",null,[W(e.$slots,"bar-left")]),"top"!=e.config.tableCtrl?(T(),z(J(S()),{key:0})):ee("",!0)])),_:3}),t[1]||(t[1]=$("br",null,null,-1)),F(Z(ye),{remote:"",size:"small",columns:r.value,data:v.value,pagination:Z(l),loading:m.value,"row-key":e=>e[Z(n)],"scroll-x":Z(a),"max-height":e.maxHeight||500,summary:e.summary,"checked-row-keys":Z(h),"onUpdate:sorter":x,"onUpdate:checkedRowKeys":Z(d)},null,8,["columns","data","pagination","loading","row-key","scroll-x","max-height","summary","checked-row-keys","onUpdate:checkedRowKeys"])],64))}}),Bu=()=>{const e=N(),t=()=>{if(e.value)return e.value;console.error("table Instance is not found, are you bind ref, 数需要在 onMounted后调用")};return{tableRef:e,reload:()=>t().reload(),getKeys:()=>Y(t().cKeys),getRows:()=>Y(t().cRows),setKeys:e=>{var r;return null==(r=t())?void 0:r.setKeys(e)},setRows:e=>t().setRows(e),cleanCheck:()=>t().cleanCheck(),getSource:()=>t().getSource(),refresh:()=>t().refresh(),getParams:()=>t().getParams()}};var Du=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,ju=Math.ceil,Pu=Math.floor,Nu="[BigNumber Error] ",Mu=Nu+"Number primitive has more than 15 significant digits: ",Tu=1e14,Ru=14,$u=9007199254740991,Iu=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],zu=1e7,Hu=1e9;function Fu(e){var t=0|e;return e>0||e===t?t:t-1}function Uu(e){for(var t,r,n=1,o=e.length,i=e[0]+"";nc^r?1:-1;for(s=(l=o.length)<(c=i.length)?l:c,a=0;ai[a]^r?1:-1;return l==c?0:l>c^r?1:-1}function Wu(e,t,r,n){if(er||e!==Pu(e))throw Error(Nu+(n||"Argument")+("number"==typeof e?er?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function Xu(e){var t=e.c.length-1;return Fu(e.e/Ru)==t&&e.c[t]%2!=0}function Gu(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function Vu(e,t,r){var n,o;if(t<0){for(o=r+".";++t;o+=r);e=o+e}else if(++t>(n=e.length)){for(o=r,t-=n;--t;o+=r);e+=o}else td?v.c=v.e=null:e.e=10;l/=10,s++);return void(s>d?v.c=v.e=null:(v.e=s,v.c=[e]))}g=String(e)}else{if(!Du.test(g=String(e)))return o(v,g,f);v.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(s=g.indexOf("."))>-1&&(g=g.replace(".","")),(l=g.search(/e/i))>0?(s<0&&(s=l),s+=+g.slice(l+1),g=g.substring(0,l)):s<0&&(s=g.length)}else{if(Wu(t,2,y.length,"Base"),10==t&&w)return k(v=new _(e),c+v.e+1,u);if(g=String(e),f="number"==typeof e){if(0*e!=0)return o(v,g,f,t);if(v.s=1/e<0?(g=g.slice(1),-1):1,_.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(Mu+e)}else v.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(r=y.slice(0,t),s=l=0,h=g.length;ls){s=h;continue}}else if(!a&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){a=!0,l=-1,s=0;continue}return o(v,String(e),f,t)}f=!1,(s=(g=n(g,t,10,v.s)).indexOf("."))>-1?g=g.replace(".",""):s=g.length}for(l=0;48===g.charCodeAt(l);l++);for(h=g.length;48===g.charCodeAt(--h););if(g=g.slice(l,++h)){if(h-=l,f&&_.DEBUG&&h>15&&(e>$u||e!==Pu(e)))throw Error(Mu+v.s*e);if((s=s-l-1)>d)v.c=v.e=null;else if(s=h)?Gu(l,a):Vu(l,a,"0");else if(i=(e=k(new _(e),t,r)).e,s=(l=Uu(e.c)).length,1==n||2==n&&(t<=i||i<=f)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=i-s)>0)for(i+1==s&&(l+=".");t--;l+="0");return e.s<0&&o?"-"+l:l}function S(e,t){for(var r,n,o=1,i=new _(e[0]);o=10;o/=10,n++);return(r=n+r*Ru-1)>d?e.c=e.e=null:r=10;s/=10,o++);if((i=t-o)<0)i+=Ru,a=t,l=f[c=0],u=Pu(l/h[o-a-1]%10);else if((c=ju((i+1)/Ru))>=f.length){if(!n)break e;for(;f.length<=c;f.push(0));l=u=0,o=1,a=(i%=Ru)-Ru+1}else{for(l=s=f[c],o=1;s>=10;s/=10,o++);u=(a=(i%=Ru)-Ru+o)<0?0:Pu(l/h[o-a-1]%10)}if(n=n||t<0||null!=f[c+1]||(a<0?l:l%h[o-a-1]),n=r<4?(u||n)&&(0==r||r==(e.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(i>0?a>0?l/h[o-a]:0:f[c-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,n?(t-=e.e+1,f[0]=h[(Ru-t%Ru)%Ru],e.e=-t||0):f[0]=e.e=0,e;if(0==i?(f.length=c,s=1,c--):(f.length=c+1,s=h[Ru-i],f[c]=a>0?Pu(l/h[o-a]%h[a])*s:0),n)for(;;){if(0==c){for(i=1,a=f[0];a>=10;a/=10,i++);for(a=f[0]+=s,s=1;a>=10;a/=10,s++);i!=s&&(e.e++,f[0]==Tu&&(f[0]=1));break}if(f[c]+=s,f[c]!=Tu)break;f[c--]=0,s=1}for(i=f.length;0===f[--i];f.pop());}e.e>d?e.c=e.e=null:e.e=h?Gu(t,r):Vu(t,r,"0"),e.s<0?"-"+t:t)}return _.clone=e,_.ROUND_UP=0,_.ROUND_DOWN=1,_.ROUND_CEIL=2,_.ROUND_FLOOR=3,_.ROUND_HALF_UP=4,_.ROUND_HALF_DOWN=5,_.ROUND_HALF_EVEN=6,_.ROUND_HALF_CEIL=7,_.ROUND_HALF_FLOOR=8,_.EUCLID=9,_.config=_.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(Nu+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(Wu(r=e[t],0,Hu,t),c=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(Wu(r=e[t],0,8,t),u=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(Wu(r[0],-Hu,0,t),Wu(r[1],0,Hu,t),f=r[0],h=r[1]):(Wu(r,-Hu,Hu,t),f=-(h=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)Wu(r[0],-Hu,-1,t),Wu(r[1],1,Hu,t),p=r[0],d=r[1];else{if(Wu(r,-Hu,Hu,t),!r)throw Error(Nu+t+" cannot be zero: "+r);p=-(d=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(Nu+t+" not true or false: "+r);if(r){if(!(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes)))throw g=!r,Error(Nu+"crypto unavailable");g=r}else g=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(Wu(r=e[t],0,9,t),v=r),e.hasOwnProperty(t="POW_PRECISION")&&(Wu(r=e[t],0,Hu,t),m=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(Nu+t+" not an object: "+r);b=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(Nu+t+" invalid: "+r);w="0123456789"==r.slice(0,10),y=r}}return{DECIMAL_PLACES:c,ROUNDING_MODE:u,EXPONENTIAL_AT:[f,h],RANGE:[p,d],CRYPTO:g,MODULO_MODE:v,POW_PRECISION:m,FORMAT:b,ALPHABET:y}},_.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!_.DEBUG)return!0;var t,r,n=e.c,o=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===i||-1===i)&&o>=-Hu&&o<=Hu&&o===Pu(o)){if(0===n[0]){if(0===o&&1===n.length)return!0;break e}if((t=(o+1)%Ru)<1&&(t+=Ru),String(n[0]).length==t){for(t=0;t=Tu||r!==Pu(r))break e;if(0!==r)return!0}}}else if(null===n&&null===o&&(null===i||1===i||-1===i))return!0;throw Error(Nu+"Invalid BigNumber: "+e)},_.maximum=_.max=function(){return S(arguments,-1)},_.minimum=_.min=function(){return S(arguments,1)},_.random=(i=9007199254740992,a=Math.random()*i&2097151?function(){return Pu(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,o,i,s=0,u=[],f=new _(l);if(null==e?e=c:Wu(e,0,Hu),o=ju(e/Ru),g)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));s>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[s]=r[0],t[s+1]=r[1]):(u.push(i%1e14),s+=2);s=o/2}else{if(!crypto.randomBytes)throw g=!1,Error(Nu+"crypto unavailable");for(t=crypto.randomBytes(o*=7);s=9e15?crypto.randomBytes(7).copy(t,s):(u.push(i%1e14),s+=7);s=o/7}if(!g)for(;s=10;i/=10,s++);sr-1&&(null==a[o+1]&&(a[o+1]=0),a[o+1]+=a[o]/r|0,a[o]%=r)}return a.reverse()}return function(n,o,i,a,s){var l,f,h,p,d,g,v,b,w=n.indexOf("."),x=c,S=u;for(w>=0&&(p=m,m=0,n=n.replace(".",""),g=(b=new _(o)).pow(n.length-w),m=p,b.c=t(Vu(Uu(g.c),g.e,"0"),10,i,e),b.e=b.c.length),h=p=(v=t(n,o,i,s?(l=y,e):(l=e,y))).length;0==v[--p];v.pop());if(!v[0])return l.charAt(0);if(w<0?--h:(g.c=v,g.e=h,g.s=a,v=(g=r(g,b,x,S,i)).c,d=g.r,h=g.e),w=v[f=h+x+1],p=i/2,d=d||f<0||null!=v[f+1],d=S<4?(null!=w||d)&&(0==S||S==(g.s<0?3:2)):w>p||w==p&&(4==S||d||6==S&&1&v[f-1]||S==(g.s<0?8:7)),f<1||!v[0])n=d?Vu(l.charAt(1),-x,l.charAt(0)):l.charAt(0);else{if(v.length=f,d)for(--i;++v[--f]>i;)v[f]=0,f||(++h,v=[1].concat(v));for(p=v.length;!v[--p];);for(w=0,n="";w<=p;n+=l.charAt(v[w++]));n=Vu(n,h,l.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,o,i,a,s=0,l=e.length,c=t%zu,u=t/zu|0;for(e=e.slice();l--;)s=((o=c*(i=e[l]%zu)+(n=u*i+(a=e[l]/zu|0)*c)%zu*zu+s)/r|0)+(n/zu|0)+u*a,e[l]=o%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function r(e,t,r,n){for(var o=0;r--;)e[r]-=o,o=e[r]1;e.splice(0,1));}return function(n,o,i,a,s){var l,c,u,f,h,p,d,g,v,m,b,y,w,x,S,C,E,A=n.s==o.s?1:-1,O=n.c,B=o.c;if(!(O&&O[0]&&B&&B[0]))return new _(n.s&&o.s&&(O?!B||O[0]!=B[0]:B)?O&&0==O[0]||!B?0*A:A/0:NaN);for(v=(g=new _(A)).c=[],A=i+(c=n.e-o.e)+1,s||(s=Tu,c=Fu(n.e/Ru)-Fu(o.e/Ru),A=A/Ru|0),u=0;B[u]==(O[u]||0);u++);if(B[u]>(O[u]||0)&&c--,A<0)v.push(1),f=!0;else{for(x=O.length,C=B.length,u=0,A+=2,(h=Pu(s/(B[0]+1)))>1&&(B=e(B,h,s),O=e(O,h,s),C=B.length,x=O.length),w=C,b=(m=O.slice(0,C)).length;b=s/2&&S++;do{if(h=0,(l=t(B,m,C,b))<0){if(y=m[0],C!=b&&(y=y*s+(m[1]||0)),(h=Pu(y/S))>1)for(h>=s&&(h=s-1),d=(p=e(B,h,s)).length,b=m.length;1==t(p,m,d,b);)h--,r(p,C=10;A/=10,u++);k(g,i+(g.e=u+c*Ru-1)+1,a,f)}else g.e=c,g.r=+f;return g}}(),o=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,r=/^\.([^.]+)$/,n=/^-?(Infinity|NaN)$/,o=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(i,a,s,l){var c,u=s?a:a.replace(o,"");if(n.test(u))i.s=isNaN(u)?null:u<0?-1:1;else{if(!s&&(u=u.replace(e,(function(e,t,r){return c="x"==(r=r.toLowerCase())?16:"b"==r?2:8,l&&l!=c?e:t})),l&&(c=l,u=u.replace(t,"$1").replace(r,"0.$1")),a!=u))return new _(u,c);if(_.DEBUG)throw Error(Nu+"Not a"+(l?" base "+l:"")+" number: "+a);i.s=null}i.c=i.e=null}}(),s.absoluteValue=s.abs=function(){var e=new _(this);return e.s<0&&(e.s=1),e},s.comparedTo=function(e,t){return Lu(this,new _(e,t))},s.decimalPlaces=s.dp=function(e,t){var r,n,o,i=this;if(null!=e)return Wu(e,0,Hu),null==t?t=u:Wu(t,0,8),k(new _(i),e+i.e+1,t);if(!(r=i.c))return null;if(n=((o=r.length-1)-Fu(this.e/Ru))*Ru,o=r[o])for(;o%10==0;o/=10,n--);return n<0&&(n=0),n},s.dividedBy=s.div=function(e,t){return r(this,new _(e,t),c,u)},s.dividedToIntegerBy=s.idiv=function(e,t){return r(this,new _(e,t),0,1)},s.exponentiatedBy=s.pow=function(e,t){var r,n,o,i,a,s,c,f,h=this;if((e=new _(e)).c&&!e.isInteger())throw Error(Nu+"Exponent not an integer: "+E(e));if(null!=t&&(t=new _(t)),a=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return f=new _(Math.pow(+E(h),a?e.s*(2-Xu(e)):+E(e))),t?f.mod(t):f;if(s=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new _(NaN);(n=!s&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||a&&h.c[1]>=24e7:h.c[0]<8e13||a&&h.c[0]<=9999975e7)))return i=h.s<0&&Xu(e)?-0:0,h.e>-1&&(i=1/i),new _(s?1/i:i);m&&(i=ju(m/Ru+2))}for(a?(r=new _(.5),s&&(e.s=1),c=Xu(e)):c=(o=Math.abs(+E(e)))%2,f=new _(l);;){if(c){if(!(f=f.times(h)).c)break;i?f.c.length>i&&(f.c.length=i):n&&(f=f.mod(t))}if(o){if(0===(o=Pu(o/2)))break;c=o%2}else if(k(e=e.times(r),e.e+1,1),e.e>14)c=Xu(e);else{if(0===(o=+E(e)))break;c=o%2}h=h.times(h),i?h.c&&h.c.length>i&&(h.c.length=i):n&&(h=h.mod(t))}return n?f:(s&&(f=l.div(f)),t?f.mod(t):i?k(f,m,u,undefined):f)},s.integerValue=function(e){var t=new _(this);return null==e?e=u:Wu(e,0,8),k(t,t.e+1,e)},s.isEqualTo=s.eq=function(e,t){return 0===Lu(this,new _(e,t))},s.isFinite=function(){return!!this.c},s.isGreaterThan=s.gt=function(e,t){return Lu(this,new _(e,t))>0},s.isGreaterThanOrEqualTo=s.gte=function(e,t){return 1===(t=Lu(this,new _(e,t)))||0===t},s.isInteger=function(){return!!this.c&&Fu(this.e/Ru)>this.c.length-2},s.isLessThan=s.lt=function(e,t){return Lu(this,new _(e,t))<0},s.isLessThanOrEqualTo=s.lte=function(e,t){return-1===(t=Lu(this,new _(e,t)))||0===t},s.isNaN=function(){return!this.s},s.isNegative=function(){return this.s<0},s.isPositive=function(){return this.s>0},s.isZero=function(){return!!this.c&&0==this.c[0]},s.minus=function(e,t){var r,n,o,i,a=this,s=a.s;if(t=(e=new _(e,t)).s,!s||!t)return new _(NaN);if(s!=t)return e.s=-t,a.plus(e);var l=a.e/Ru,c=e.e/Ru,f=a.c,h=e.c;if(!l||!c){if(!f||!h)return f?(e.s=-t,e):new _(h?a:NaN);if(!f[0]||!h[0])return h[0]?(e.s=-t,e):new _(f[0]?a:3==u?-0:0)}if(l=Fu(l),c=Fu(c),f=f.slice(),s=l-c){for((i=s<0)?(s=-s,o=f):(c=l,o=h),o.reverse(),t=s;t--;o.push(0));o.reverse()}else for(n=(i=(s=f.length)<(t=h.length))?s:t,s=t=0;t0)for(;t--;f[r++]=0);for(t=Tu-1;n>s;){if(f[--n]=0;){for(r=0,h=y[o]%v,p=y[o]/v|0,i=o+(a=l);i>o;)r=((c=h*(c=b[--a]%v)+(s=p*c+(u=b[a]/v|0)*h)%v*v+d[i]+r)/g|0)+(s/v|0)+p*u,d[i--]=c%g;d[i]=r}return r?++n:d.splice(0,1),C(e,d,n)},s.negated=function(){var e=new _(this);return e.s=-e.s||null,e},s.plus=function(e,t){var r,n=this,o=n.s;if(t=(e=new _(e,t)).s,!o||!t)return new _(NaN);if(o!=t)return e.s=-t,n.minus(e);var i=n.e/Ru,a=e.e/Ru,s=n.c,l=e.c;if(!i||!a){if(!s||!l)return new _(o/0);if(!s[0]||!l[0])return l[0]?e:new _(s[0]?n:0*o)}if(i=Fu(i),a=Fu(a),s=s.slice(),o=i-a){for(o>0?(a=i,r=l):(o=-o,r=s),r.reverse();o--;r.push(0));r.reverse()}for((o=s.length)-(t=l.length)<0&&(r=l,l=s,s=r,t=o),o=0;t;)o=(s[--t]=s[t]+l[t]+o)/Tu|0,s[t]=Tu===s[t]?0:s[t]%Tu;return o&&(s=[o].concat(s),++a),C(e,s,a)},s.precision=s.sd=function(e,t){var r,n,o,i=this;if(null!=e&&e!==!!e)return Wu(e,1,Hu),null==t?t=u:Wu(t,0,8),k(new _(i),e,t);if(!(r=i.c))return null;if(n=(o=r.length-1)*Ru+1,o=r[o]){for(;o%10==0;o/=10,n--);for(o=r[0];o>=10;o/=10,n++);}return e&&i.e+1>n&&(n=i.e+1),n},s.shiftedBy=function(e){return Wu(e,-$u,$u),this.times("1e"+e)},s.squareRoot=s.sqrt=function(){var e,t,n,o,i,a=this,s=a.c,l=a.s,f=a.e,h=c+4,p=new _("0.5");if(1!==l||!s||!s[0])return new _(!l||l<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(l=Math.sqrt(+E(a)))||l==1/0?(((t=Uu(s)).length+f)%2==0&&(t+="0"),l=Math.sqrt(+t),f=Fu((f+1)/2)-(f<0||f%2),l==1/0?t="5e"+f:t=(t=l.toExponential()).slice(0,t.indexOf("e")+1)+f,n=new _(t)):n=new _(l+""),n.c[0])for((l=(f=n.e)+h)<3&&(l=0);;)if(i=n,n=p.times(i.plus(r(a,i,h,1))),Uu(i.c).slice(0,l)===(t=Uu(n.c)).slice(0,l)){if(n.e0&&d>0){for(i=d%s||s,u=p.substr(0,i);i0&&(u+=c+p.slice(i)),h&&(u="-"+u)}n=f?u+(r.decimalSeparator||"")+((l=+r.fractionGroupSize)?f.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):u}return(r.prefix||"")+n+(r.suffix||"")},s.toFraction=function(e){var t,n,o,i,a,s,c,f,h,p,g,v,m=this,b=m.c;if(null!=e&&(!(c=new _(e)).isInteger()&&(c.c||1!==c.s)||c.lt(l)))throw Error(Nu+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+E(c));if(!b)return new _(m);for(t=new _(l),h=n=new _(l),o=f=new _(l),v=Uu(b),a=t.e=v.length-m.e-1,t.c[0]=Iu[(s=a%Ru)<0?Ru+s:s],e=!e||c.comparedTo(t)>0?a>0?t:h:c,s=d,d=1/0,c=new _(v),f.c[0]=0;p=r(c,t,0,1),1!=(i=n.plus(p.times(o))).comparedTo(e);)n=o,o=i,h=f.plus(p.times(i=h)),f=i,t=c.minus(p.times(i=t)),c=i;return i=r(e.minus(n),o,0,1),f=f.plus(i.times(h)),n=n.plus(i.times(o)),f.s=h.s=m.s,g=r(h,o,a*=2,u).minus(m).abs().comparedTo(r(f,n,a,u).minus(m).abs())<1?[h,o]:[f,n],d=s,g},s.toNumber=function(){return+E(this)},s.toPrecision=function(e,t){return null!=e&&Wu(e,1,Hu),x(this,e,t,2)},s.toString=function(e){var t,r=this,o=r.s,i=r.e;return null===i?o?(t="Infinity",o<0&&(t="-"+t)):t="NaN":(null==e?t=i<=f||i>=h?Gu(Uu(r.c),i):Vu(Uu(r.c),i,"0"):10===e&&w?t=Vu(Uu((r=k(new _(r),c+i+1,u)).c),r.e,"0"):(Wu(e,2,y.length,"Base"),t=n(Vu(Uu(r.c),i,"0"),10,e,o,!0)),o<0&&r.c[0]&&(t="-"+t)),t},s.valueOf=s.toJSON=function(){return E(this)},s._isBigNumber=!0,s[Symbol.toStringTag]="BigNumber",s[Symbol.for("nodejs.util.inspect.custom")]=s.valueOf,null!=t&&_.set(t),_}();function Yu(e,t=2){const r=new qu(e);return r.isNaN()?"0.00":r.toFormat(t)}const Ku=e=>{const t=N([]),r=N([]);let n=[];return{handleCheck:(o,i)=>{t.value=o;const a=i.filter((e=>Pt(e)));n=function(e=[],t){const r=new Map;return e.filter((e=>!r.has(e[t])&&r.set(e[t],0)))}(a.concat(n),e),r.value=n.filter((t=>o.includes(t[e])))},cKeys:t,cRows:r,cleanCheck:()=>{r.value=[],t.value=[]}}},Qu=[5,10,20,100],Zu=()=>{const e={onQuery:()=>{},itemCount:""},{localeRef:t}=oa("Table"),r=re({page:1,showSizePicker:!0,pageSizes:Qu,itemCount:0,pageSize:10,prefix:({itemCount:e})=>`${e}${t.value.total}`});return{pagination:r,setPageProps:t=>{r.itemCount=Number(t.itemCount),r.onUpdatePage=t=>{r.page=t,e.onQuery&&e.onQuery()},r.onUpdatePageSize=t=>{r.pageSize=t,r.page=1,e.onQuery&&e.onQuery()},t.props&&Ur(r,t.props),Ur(e,t)},reload:()=>{r.page=1,setTimeout((()=>{e.onQuery&&e.onQuery()}),0)},setQuery:t=>(e.onQuery=t,t)}},Ju=()=>{const e=_e(),{localeRef:t}=oa("Msg");return e.delConfirm=r=>{e.warning(s({title:t.value.pleaseConfirm,content:t.value.delete,positiveText:t.value.confirmDelete,negativeText:t.value.cancel},r))},e.errorApi=({code:r,info:n})=>{e.error({title:t.value.tip,content:()=>k("div",null,[k(xe,{round:!0,type:"error",size:"small"},(()=>[r])),k("span",{class:"ml-2"},n)])})},e};var ef=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,tf=Math.ceil,rf=Math.floor,nf="[BigNumber Error] ",of=nf+"Number primitive has more than 15 significant digits: ",af=1e14,sf=14,lf=9007199254740991,cf=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],uf=1e7,ff=1e9;function hf(e){var t=0|e;return e>0||e===t?t:t-1}function pf(e){for(var t,r,n=1,o=e.length,i=e[0]+"";nc^r?1:-1;for(s=(l=o.length)<(c=i.length)?l:c,a=0;ai[a]^r?1:-1;return l==c?0:l>c^r?1:-1}function gf(e,t,r,n){if(er||e!==rf(e))throw Error(nf+(n||"Argument")+("number"==typeof e?er?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function vf(e){var t=e.c.length-1;return hf(e.e/sf)==t&&e.c[t]%2!=0}function mf(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function bf(e,t,r){var n,o;if(t<0){for(o=r+".";++t;o+=r);e=o+e}else if(++t>(n=e.length)){for(o=r,t-=n;--t;o+=r);e+=o}else td?v.c=v.e=null:e.e=10;l/=10,s++);return void(s>d?v.c=v.e=null:(v.e=s,v.c=[e]))}g=String(e)}else{if(!ef.test(g=String(e)))return o(v,g,f);v.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(s=g.indexOf("."))>-1&&(g=g.replace(".","")),(l=g.search(/e/i))>0?(s<0&&(s=l),s+=+g.slice(l+1),g=g.substring(0,l)):s<0&&(s=g.length)}else{if(gf(t,2,y.length,"Base"),10==t&&w)return k(v=new _(e),c+v.e+1,u);if(g=String(e),f="number"==typeof e){if(0*e!=0)return o(v,g,f,t);if(v.s=1/e<0?(g=g.slice(1),-1):1,_.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(of+e)}else v.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(r=y.slice(0,t),s=l=0,h=g.length;ls){s=h;continue}}else if(!a&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){a=!0,l=-1,s=0;continue}return o(v,String(e),f,t)}f=!1,(s=(g=n(g,t,10,v.s)).indexOf("."))>-1?g=g.replace(".",""):s=g.length}for(l=0;48===g.charCodeAt(l);l++);for(h=g.length;48===g.charCodeAt(--h););if(g=g.slice(l,++h)){if(h-=l,f&&_.DEBUG&&h>15&&(e>lf||e!==rf(e)))throw Error(of+v.s*e);if((s=s-l-1)>d)v.c=v.e=null;else if(s=h)?mf(l,a):bf(l,a,"0");else if(i=(e=k(new _(e),t,r)).e,s=(l=pf(e.c)).length,1==n||2==n&&(t<=i||i<=f)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=i-s)>0)for(i+1==s&&(l+=".");t--;l+="0");return e.s<0&&o?"-"+l:l}function S(e,t){for(var r,n,o=1,i=new _(e[0]);o=10;o/=10,n++);return(r=n+r*sf-1)>d?e.c=e.e=null:r=10;s/=10,o++);if((i=t-o)<0)i+=sf,a=t,l=f[c=0],u=rf(l/h[o-a-1]%10);else if((c=tf((i+1)/sf))>=f.length){if(!n)break e;for(;f.length<=c;f.push(0));l=u=0,o=1,a=(i%=sf)-sf+1}else{for(l=s=f[c],o=1;s>=10;s/=10,o++);u=(a=(i%=sf)-sf+o)<0?0:rf(l/h[o-a-1]%10)}if(n=n||t<0||null!=f[c+1]||(a<0?l:l%h[o-a-1]),n=r<4?(u||n)&&(0==r||r==(e.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(i>0?a>0?l/h[o-a]:0:f[c-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,n?(t-=e.e+1,f[0]=h[(sf-t%sf)%sf],e.e=-t||0):f[0]=e.e=0,e;if(0==i?(f.length=c,s=1,c--):(f.length=c+1,s=h[sf-i],f[c]=a>0?rf(l/h[o-a]%h[a])*s:0),n)for(;;){if(0==c){for(i=1,a=f[0];a>=10;a/=10,i++);for(a=f[0]+=s,s=1;a>=10;a/=10,s++);i!=s&&(e.e++,f[0]==af&&(f[0]=1));break}if(f[c]+=s,f[c]!=af)break;f[c--]=0,s=1}for(i=f.length;0===f[--i];f.pop());}e.e>d?e.c=e.e=null:e.e=h?mf(t,r):bf(t,r,"0"),e.s<0?"-"+t:t)}return _.clone=e,_.ROUND_UP=0,_.ROUND_DOWN=1,_.ROUND_CEIL=2,_.ROUND_FLOOR=3,_.ROUND_HALF_UP=4,_.ROUND_HALF_DOWN=5,_.ROUND_HALF_EVEN=6,_.ROUND_HALF_CEIL=7,_.ROUND_HALF_FLOOR=8,_.EUCLID=9,_.config=_.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(nf+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(gf(r=e[t],0,ff,t),c=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(gf(r=e[t],0,8,t),u=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(gf(r[0],-ff,0,t),gf(r[1],0,ff,t),f=r[0],h=r[1]):(gf(r,-ff,ff,t),f=-(h=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)gf(r[0],-ff,-1,t),gf(r[1],1,ff,t),p=r[0],d=r[1];else{if(gf(r,-ff,ff,t),!r)throw Error(nf+t+" cannot be zero: "+r);p=-(d=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(nf+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw g=!r,Error(nf+"crypto unavailable");g=r}else g=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(gf(r=e[t],0,9,t),v=r),e.hasOwnProperty(t="POW_PRECISION")&&(gf(r=e[t],0,ff,t),m=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(nf+t+" not an object: "+r);b=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(nf+t+" invalid: "+r);w="0123456789"==r.slice(0,10),y=r}}return{DECIMAL_PLACES:c,ROUNDING_MODE:u,EXPONENTIAL_AT:[f,h],RANGE:[p,d],CRYPTO:g,MODULO_MODE:v,POW_PRECISION:m,FORMAT:b,ALPHABET:y}},_.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!_.DEBUG)return!0;var t,r,n=e.c,o=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===i||-1===i)&&o>=-ff&&o<=ff&&o===rf(o)){if(0===n[0]){if(0===o&&1===n.length)return!0;break e}if((t=(o+1)%sf)<1&&(t+=sf),String(n[0]).length==t){for(t=0;t=af||r!==rf(r))break e;if(0!==r)return!0}}}else if(null===n&&null===o&&(null===i||1===i||-1===i))return!0;throw Error(nf+"Invalid BigNumber: "+e)},_.maximum=_.max=function(){return S(arguments,-1)},_.minimum=_.min=function(){return S(arguments,1)},_.random=(i=9007199254740992,a=Math.random()*i&2097151?function(){return rf(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,o,i,s=0,u=[],f=new _(l);if(null==e?e=c:gf(e,0,ff),o=tf(e/sf),g)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));s>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[s]=r[0],t[s+1]=r[1]):(u.push(i%1e14),s+=2);s=o/2}else{if(!crypto.randomBytes)throw g=!1,Error(nf+"crypto unavailable");for(t=crypto.randomBytes(o*=7);s=9e15?crypto.randomBytes(7).copy(t,s):(u.push(i%1e14),s+=7);s=o/7}if(!g)for(;s=10;i/=10,s++);sr-1&&(null==a[o+1]&&(a[o+1]=0),a[o+1]+=a[o]/r|0,a[o]%=r)}return a.reverse()}return function(n,o,i,a,s){var l,f,h,p,d,g,v,b,w=n.indexOf("."),x=c,S=u;for(w>=0&&(p=m,m=0,n=n.replace(".",""),g=(b=new _(o)).pow(n.length-w),m=p,b.c=t(bf(pf(g.c),g.e,"0"),10,i,e),b.e=b.c.length),h=p=(v=t(n,o,i,s?(l=y,e):(l=e,y))).length;0==v[--p];v.pop());if(!v[0])return l.charAt(0);if(w<0?--h:(g.c=v,g.e=h,g.s=a,v=(g=r(g,b,x,S,i)).c,d=g.r,h=g.e),w=v[f=h+x+1],p=i/2,d=d||f<0||null!=v[f+1],d=S<4?(null!=w||d)&&(0==S||S==(g.s<0?3:2)):w>p||w==p&&(4==S||d||6==S&&1&v[f-1]||S==(g.s<0?8:7)),f<1||!v[0])n=d?bf(l.charAt(1),-x,l.charAt(0)):l.charAt(0);else{if(v.length=f,d)for(--i;++v[--f]>i;)v[f]=0,f||(++h,v=[1].concat(v));for(p=v.length;!v[--p];);for(w=0,n="";w<=p;n+=l.charAt(v[w++]));n=bf(n,h,l.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,o,i,a,s=0,l=e.length,c=t%uf,u=t/uf|0;for(e=e.slice();l--;)s=((o=c*(i=e[l]%uf)+(n=u*i+(a=e[l]/uf|0)*c)%uf*uf+s)/r|0)+(n/uf|0)+u*a,e[l]=o%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function r(e,t,r,n){for(var o=0;r--;)e[r]-=o,o=e[r]1;e.splice(0,1));}return function(n,o,i,a,s){var l,c,u,f,h,p,d,g,v,m,b,y,w,x,S,C,E,A=n.s==o.s?1:-1,O=n.c,B=o.c;if(!(O&&O[0]&&B&&B[0]))return new _(n.s&&o.s&&(O?!B||O[0]!=B[0]:B)?O&&0==O[0]||!B?0*A:A/0:NaN);for(v=(g=new _(A)).c=[],A=i+(c=n.e-o.e)+1,s||(s=af,c=hf(n.e/sf)-hf(o.e/sf),A=A/sf|0),u=0;B[u]==(O[u]||0);u++);if(B[u]>(O[u]||0)&&c--,A<0)v.push(1),f=!0;else{for(x=O.length,C=B.length,u=0,A+=2,(h=rf(s/(B[0]+1)))>1&&(B=e(B,h,s),O=e(O,h,s),C=B.length,x=O.length),w=C,b=(m=O.slice(0,C)).length;b=s/2&&S++;do{if(h=0,(l=t(B,m,C,b))<0){if(y=m[0],C!=b&&(y=y*s+(m[1]||0)),(h=rf(y/S))>1)for(h>=s&&(h=s-1),d=(p=e(B,h,s)).length,b=m.length;1==t(p,m,d,b);)h--,r(p,C=10;A/=10,u++);k(g,i+(g.e=u+c*sf-1)+1,a,f)}else g.e=c,g.r=+f;return g}}(),o=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,r=/^\.([^.]+)$/,n=/^-?(Infinity|NaN)$/,o=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(i,a,s,l){var c,u=s?a:a.replace(o,"");if(n.test(u))i.s=isNaN(u)?null:u<0?-1:1;else{if(!s&&(u=u.replace(e,(function(e,t,r){return c="x"==(r=r.toLowerCase())?16:"b"==r?2:8,l&&l!=c?e:t})),l&&(c=l,u=u.replace(t,"$1").replace(r,"0.$1")),a!=u))return new _(u,c);if(_.DEBUG)throw Error(nf+"Not a"+(l?" base "+l:"")+" number: "+a);i.s=null}i.c=i.e=null}}(),s.absoluteValue=s.abs=function(){var e=new _(this);return e.s<0&&(e.s=1),e},s.comparedTo=function(e,t){return df(this,new _(e,t))},s.decimalPlaces=s.dp=function(e,t){var r,n,o,i=this;if(null!=e)return gf(e,0,ff),null==t?t=u:gf(t,0,8),k(new _(i),e+i.e+1,t);if(!(r=i.c))return null;if(n=((o=r.length-1)-hf(this.e/sf))*sf,o=r[o])for(;o%10==0;o/=10,n--);return n<0&&(n=0),n},s.dividedBy=s.div=function(e,t){return r(this,new _(e,t),c,u)},s.dividedToIntegerBy=s.idiv=function(e,t){return r(this,new _(e,t),0,1)},s.exponentiatedBy=s.pow=function(e,t){var r,n,o,i,a,s,c,f,h=this;if((e=new _(e)).c&&!e.isInteger())throw Error(nf+"Exponent not an integer: "+E(e));if(null!=t&&(t=new _(t)),a=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return f=new _(Math.pow(+E(h),a?e.s*(2-vf(e)):+E(e))),t?f.mod(t):f;if(s=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new _(NaN);(n=!s&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||a&&h.c[1]>=24e7:h.c[0]<8e13||a&&h.c[0]<=9999975e7)))return i=h.s<0&&vf(e)?-0:0,h.e>-1&&(i=1/i),new _(s?1/i:i);m&&(i=tf(m/sf+2))}for(a?(r=new _(.5),s&&(e.s=1),c=vf(e)):c=(o=Math.abs(+E(e)))%2,f=new _(l);;){if(c){if(!(f=f.times(h)).c)break;i?f.c.length>i&&(f.c.length=i):n&&(f=f.mod(t))}if(o){if(0===(o=rf(o/2)))break;c=o%2}else if(k(e=e.times(r),e.e+1,1),e.e>14)c=vf(e);else{if(0===(o=+E(e)))break;c=o%2}h=h.times(h),i?h.c&&h.c.length>i&&(h.c.length=i):n&&(h=h.mod(t))}return n?f:(s&&(f=l.div(f)),t?f.mod(t):i?k(f,m,u,undefined):f)},s.integerValue=function(e){var t=new _(this);return null==e?e=u:gf(e,0,8),k(t,t.e+1,e)},s.isEqualTo=s.eq=function(e,t){return 0===df(this,new _(e,t))},s.isFinite=function(){return!!this.c},s.isGreaterThan=s.gt=function(e,t){return df(this,new _(e,t))>0},s.isGreaterThanOrEqualTo=s.gte=function(e,t){return 1===(t=df(this,new _(e,t)))||0===t},s.isInteger=function(){return!!this.c&&hf(this.e/sf)>this.c.length-2},s.isLessThan=s.lt=function(e,t){return df(this,new _(e,t))<0},s.isLessThanOrEqualTo=s.lte=function(e,t){return-1===(t=df(this,new _(e,t)))||0===t},s.isNaN=function(){return!this.s},s.isNegative=function(){return this.s<0},s.isPositive=function(){return this.s>0},s.isZero=function(){return!!this.c&&0==this.c[0]},s.minus=function(e,t){var r,n,o,i,a=this,s=a.s;if(t=(e=new _(e,t)).s,!s||!t)return new _(NaN);if(s!=t)return e.s=-t,a.plus(e);var l=a.e/sf,c=e.e/sf,f=a.c,h=e.c;if(!l||!c){if(!f||!h)return f?(e.s=-t,e):new _(h?a:NaN);if(!f[0]||!h[0])return h[0]?(e.s=-t,e):new _(f[0]?a:3==u?-0:0)}if(l=hf(l),c=hf(c),f=f.slice(),s=l-c){for((i=s<0)?(s=-s,o=f):(c=l,o=h),o.reverse(),t=s;t--;o.push(0));o.reverse()}else for(n=(i=(s=f.length)<(t=h.length))?s:t,s=t=0;t0)for(;t--;f[r++]=0);for(t=af-1;n>s;){if(f[--n]=0;){for(r=0,h=y[o]%v,p=y[o]/v|0,i=o+(a=l);i>o;)r=((c=h*(c=b[--a]%v)+(s=p*c+(u=b[a]/v|0)*h)%v*v+d[i]+r)/g|0)+(s/v|0)+p*u,d[i--]=c%g;d[i]=r}return r?++n:d.splice(0,1),C(e,d,n)},s.negated=function(){var e=new _(this);return e.s=-e.s||null,e},s.plus=function(e,t){var r,n=this,o=n.s;if(t=(e=new _(e,t)).s,!o||!t)return new _(NaN);if(o!=t)return e.s=-t,n.minus(e);var i=n.e/sf,a=e.e/sf,s=n.c,l=e.c;if(!i||!a){if(!s||!l)return new _(o/0);if(!s[0]||!l[0])return l[0]?e:new _(s[0]?n:0*o)}if(i=hf(i),a=hf(a),s=s.slice(),o=i-a){for(o>0?(a=i,r=l):(o=-o,r=s),r.reverse();o--;r.push(0));r.reverse()}for((o=s.length)-(t=l.length)<0&&(r=l,l=s,s=r,t=o),o=0;t;)o=(s[--t]=s[t]+l[t]+o)/af|0,s[t]=af===s[t]?0:s[t]%af;return o&&(s=[o].concat(s),++a),C(e,s,a)},s.precision=s.sd=function(e,t){var r,n,o,i=this;if(null!=e&&e!==!!e)return gf(e,1,ff),null==t?t=u:gf(t,0,8),k(new _(i),e,t);if(!(r=i.c))return null;if(n=(o=r.length-1)*sf+1,o=r[o]){for(;o%10==0;o/=10,n--);for(o=r[0];o>=10;o/=10,n++);}return e&&i.e+1>n&&(n=i.e+1),n},s.shiftedBy=function(e){return gf(e,-9007199254740991,lf),this.times("1e"+e)},s.squareRoot=s.sqrt=function(){var e,t,n,o,i,a=this,s=a.c,l=a.s,f=a.e,h=c+4,p=new _("0.5");if(1!==l||!s||!s[0])return new _(!l||l<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(l=Math.sqrt(+E(a)))||l==1/0?(((t=pf(s)).length+f)%2==0&&(t+="0"),l=Math.sqrt(+t),f=hf((f+1)/2)-(f<0||f%2),n=new _(t=l==1/0?"5e"+f:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+f)):n=new _(l+""),n.c[0])for((l=(f=n.e)+h)<3&&(l=0);;)if(i=n,n=p.times(i.plus(r(a,i,h,1))),pf(i.c).slice(0,l)===(t=pf(n.c)).slice(0,l)){if(n.e0&&d>0){for(i=d%s||s,u=p.substr(0,i);i0&&(u+=c+p.slice(i)),h&&(u="-"+u)}n=f?u+(r.decimalSeparator||"")+((l=+r.fractionGroupSize)?f.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):u}return(r.prefix||"")+n+(r.suffix||"")},s.toFraction=function(e){var t,n,o,i,a,s,c,f,h,p,g,v,m=this,b=m.c;if(null!=e&&(!(c=new _(e)).isInteger()&&(c.c||1!==c.s)||c.lt(l)))throw Error(nf+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+E(c));if(!b)return new _(m);for(t=new _(l),h=n=new _(l),o=f=new _(l),v=pf(b),a=t.e=v.length-m.e-1,t.c[0]=cf[(s=a%sf)<0?sf+s:s],e=!e||c.comparedTo(t)>0?a>0?t:h:c,s=d,d=1/0,c=new _(v),f.c[0]=0;p=r(c,t,0,1),1!=(i=n.plus(p.times(o))).comparedTo(e);)n=o,o=i,h=f.plus(p.times(i=h)),f=i,t=c.minus(p.times(i=t)),c=i;return i=r(e.minus(n),o,0,1),f=f.plus(i.times(h)),n=n.plus(i.times(o)),f.s=h.s=m.s,g=r(h,o,a*=2,u).minus(m).abs().comparedTo(r(f,n,a,u).minus(m).abs())<1?[h,o]:[f,n],d=s,g},s.toNumber=function(){return+E(this)},s.toPrecision=function(e,t){return null!=e&&gf(e,1,ff),x(this,e,t,2)},s.toString=function(e){var t,r=this,o=r.s,i=r.e;return null===i?o?(t="Infinity",o<0&&(t="-"+t)):t="NaN":(null==e?t=i<=f||i>=h?mf(pf(r.c),i):bf(pf(r.c),i,"0"):10===e&&w?t=bf(pf((r=k(new _(r),c+i+1,u)).c),r.e,"0"):(gf(e,2,y.length,"Base"),t=n(bf(pf(r.c),i,"0"),10,e,o,!0)),o<0&&r.c[0]&&(t="-"+t)),t},s.valueOf=s.toJSON=function(){return E(this)},s._isBigNumber=!0,s[Symbol.toStringTag]="BigNumber",s[Symbol.for("nodejs.util.inspect.custom")]=s.valueOf,null!=t&&_.set(t),_}();function wf(e){return t=>function(e,t=2){const r=new yf(e);return r.isNaN()?"0.00":r.toFormat(t)}(t[e])}function _f(e,t){return"number"==e?(e,r)=>Number(e[t])-Number(r[t]):"date"==e?(e,r)=>new Date(e[t]).getTime()-new Date(r[t]).getTime():"string"==e?(e,r)=>String(e[t]).charCodeAt(0)-String(r[t]).charCodeAt(0):()=>0}const xf=e=>_f("number",e),Sf=e=>_f("date",e),Cf=e=>_f("string",e);export{Me as A,Ye as C,Ze as S,Le as T,Yu as W,je as _,Cf as a,xf as b,et as c,Ou as d,Ge as e,$e as f,Je as g,Bu as h,Sf as s,wf as t}; diff --git a/docs/assets/success-DHNpXM1V.js b/docs/assets/success-DHNpXM1V.js new file mode 100644 index 0000000..e911407 --- /dev/null +++ b/docs/assets/success-DHNpXM1V.js @@ -0,0 +1 @@ +import{d as e,z as t,Q as n,y as s,A as r,b5 as i,U as a,D as o,F as l,C as c,bJ as d,a4 as p,v as u,a9 as g,au as f,i as h,t as b,l as m,Y as v,G as x,aD as z,x as S,aI as C,a_ as _,N as y,bK as P,bL as $,bM as w,u as k,r as j,o as I,c as R,w as T,b as D,e as F,bN as A,h as B,j as H,g as N,B as O,L as E}from"./index-BT0ZcDkn.js";import{D as L,_ as U}from"./Descriptions-BD5yoHoK.js";import{g as Y}from"./get-slot-BjAOOWF7.js";import{F as M}from"./Checkmark-DuWLWy-v.js";import{_ as G}from"./Space-_SFqgYmP.js";import{_ as J}from"./Result-Du_g0nDe.js";import"./use-compitable-CHcH6xDN.js";const Q={label:String,span:{type:Number,default:1},labelClass:String,labelStyle:[Object,String],contentClass:String,contentStyle:[Object,String]},V=e({name:"DescriptionsItem",[L]:!0,props:Q,render:()=>null}),K=t("steps","\n width: 100%;\n display: flex;\n",[t("step","\n position: relative;\n display: flex;\n flex: 1;\n ",[n("disabled","cursor: not-allowed"),n("clickable","\n cursor: pointer;\n "),s("&:last-child",[t("step-splitor","display: none;")])]),t("step-splitor","\n background-color: var(--n-splitor-color);\n margin-top: calc(var(--n-step-header-font-size) / 2);\n height: 1px;\n flex: 1;\n align-self: flex-start;\n margin-left: 12px;\n margin-right: 12px;\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n "),t("step-content","flex: 1;",[t("step-content-header","\n color: var(--n-header-text-color);\n margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2);\n line-height: var(--n-step-header-font-size);\n font-size: var(--n-step-header-font-size);\n position: relative;\n display: flex;\n font-weight: var(--n-step-header-font-weight);\n margin-left: 9px;\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n ",[r("title","\n white-space: nowrap;\n flex: 0;\n ")]),r("description","\n color: var(--n-description-text-color);\n margin-top: 12px;\n margin-left: 9px;\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n ")]),t("step-indicator","\n background-color: var(--n-indicator-color);\n box-shadow: 0 0 0 1px var(--n-indicator-border-color);\n height: var(--n-indicator-size);\n width: var(--n-indicator-size);\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n ",[t("step-indicator-slot","\n position: relative;\n width: var(--n-indicator-icon-size);\n height: var(--n-indicator-icon-size);\n font-size: var(--n-indicator-icon-size);\n line-height: var(--n-indicator-icon-size);\n ",[r("index","\n display: inline-block;\n text-align: center;\n position: absolute;\n left: 0;\n top: 0;\n white-space: nowrap;\n font-size: var(--n-indicator-index-font-size);\n width: var(--n-indicator-icon-size);\n height: var(--n-indicator-icon-size);\n line-height: var(--n-indicator-icon-size);\n color: var(--n-indicator-text-color);\n transition: color .3s var(--n-bezier);\n ",[i()]),t("icon","\n color: var(--n-indicator-text-color);\n transition: color .3s var(--n-bezier);\n ",[i()]),t("base-icon","\n color: var(--n-indicator-text-color);\n transition: color .3s var(--n-bezier);\n ",[i()])])]),n("vertical","flex-direction: column;",[a("show-description",[s(">",[t("step","padding-bottom: 8px;")])]),s(">",[t("step","margin-bottom: 16px;",[s("&:last-child","margin-bottom: 0;"),s(">",[t("step-indicator",[s(">",[t("step-splitor","\n position: absolute;\n bottom: -8px;\n width: 1px;\n margin: 0 !important;\n left: calc(var(--n-indicator-size) / 2);\n height: calc(100% - var(--n-indicator-size));\n ")])]),t("step-content",[r("description","margin-top: 8px;")])])])])])]);function W(e){return e.map(((e,t)=>function(e,t){return"object"!=typeof e||null===e||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}(e,t)))}const q=Object.assign(Object.assign({},c.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),X=f("n-steps"),Z=e({name:"Steps",props:q,setup(e,{slots:t}){const{mergedClsPrefixRef:n,mergedRtlRef:s}=o(e),r=l("Steps",s,n),i=c("Steps","-steps",K,d,e,n);return p(X,{props:e,mergedThemeRef:i,mergedClsPrefixRef:n,stepsSlots:t}),{mergedClsPrefix:n,rtlEnabled:r}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`]},W(g(Y(this))))}}),ee=e({name:"Step",props:{status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}},setup(e){const t=h(X,null);t||b("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:n}=o(),{props:s,mergedThemeRef:r,mergedClsPrefixRef:i,stepsSlots:a}=t,l=m((()=>s.vertical)),c=m((()=>{const{status:t}=e;if(t)return t;{const{internalIndex:t}=e,{current:n}=s;if(void 0===n)return"process";if(tn)return"wait"}return"process"})),d=m((()=>{const{value:e}=c,{size:t}=s,{common:{cubicBezierEaseInOut:n},self:{stepHeaderFontWeight:i,[v("stepHeaderFontSize",t)]:a,[v("indicatorIndexFontSize",t)]:o,[v("indicatorSize",t)]:l,[v("indicatorIconSize",t)]:d,[v("indicatorTextColor",e)]:p,[v("indicatorBorderColor",e)]:u,[v("headerTextColor",e)]:g,[v("splitorColor",e)]:f,[v("indicatorColor",e)]:h,[v("descriptionTextColor",e)]:b}}=r.value;return{"--n-bezier":n,"--n-description-text-color":b,"--n-header-text-color":g,"--n-indicator-border-color":u,"--n-indicator-color":h,"--n-indicator-icon-size":d,"--n-indicator-index-font-size":o,"--n-indicator-size":l,"--n-indicator-text-color":p,"--n-splitor-color":f,"--n-step-header-font-size":a,"--n-step-header-font-weight":i}})),p=n?x("step",m((()=>{const{value:e}=c,{size:t}=s;return`${e[0]}${t[0]}`})),d,s):void 0,u=m((()=>{if(e.disabled)return;const{onUpdateCurrent:t,"onUpdate:current":n}=s;return t||n?()=>{t&&z(t,e.internalIndex),n&&z(n,e.internalIndex)}:void 0}));return{stepsSlots:a,mergedClsPrefix:i,vertical:l,mergedStatus:c,handleStepClick:u,cssVars:n?void 0:d,themeClass:null==p?void 0:p.themeClass,onRender:null==p?void 0:p.onRender}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:n,disabled:s}=this,r=S(this.$slots.default,(t=>{const n=t||this.description;return n?u("div",{class:`${e}-step-content__description`},n):null}));return null==t||t(),u("div",{class:[`${e}-step`,s&&`${e}-step--disabled`,!s&&n&&`${e}-step--clickable`,this.themeClass,r&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:n},u("div",{class:`${e}-step-indicator`},u("div",{class:`${e}-step-indicator-slot`},u(_,null,{default:()=>S(this.$slots.icon,(t=>{const{mergedStatus:n,stepsSlots:s}=this;return"finish"!==n&&"error"!==n?t||u("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex):"finish"===n?u(y,{clsPrefix:e,key:"finish"},{default:()=>C(s["finish-icon"],(()=>[u(M,null)]))}):"error"===n?u(y,{clsPrefix:e,key:"error"},{default:()=>C(s["error-icon"],(()=>[u(P,null)]))}):null}))})),this.vertical?u("div",{class:`${e}-step-splitor`}):null),u("div",{class:`${e}-step-content`},u("div",{class:`${e}-step-content-header`},u("div",{class:`${e}-step-content-header__title`},C(this.$slots.title,(()=>[this.title]))),this.vertical?null:u("div",{class:`${e}-step-splitor`})),r))}});function te(e,t="YYYY-MM-DD HH:mm:ss"){return $(e).format(t)}const ne={class:"font-black"},se=e({__name:"success",setup(e){const t=w(),{t:n}=k(),s=j({generatedTime:te(new Date),generator:"ChatGPT"});return(e,r)=>{const i=O,a=G,o=J,l=V,c=U,d=ee,p=Z,u=E;return I(),R(u,null,{default:T((()=>[D(a,{vertical:"",size:"large"},{default:T((()=>[D(o,{status:"success",title:F(n)("page.result.successPage.title"),"sub-title":F(n)("page.result.successPage.subTitle")},{footer:T((()=>[D(a,{justify:"center"},{default:T((()=>[D(i,{type:"primary",onClick:r[0]||(r[0]=e=>F(t).push(F(A).BASE_HOME))},{default:T((()=>[B(H(F(n)("page.result.successPage.buttons.home")),1)])),_:1})])),_:1})])),_:1},8,["title","sub-title"]),D(u,{embedded:"",bordered:!1},{default:T((()=>[D(a,{vertical:"",size:"large"},{default:T((()=>[D(c,{"label-placement":"left"},{header:T((()=>[N("div",ne,H(F(n)("page.result.successPage.contentHeader")),1)])),default:T((()=>[D(l,{label:F(n)("page.result.successPage.generatedTimeLabel")},{default:T((()=>[B(H(F(s).generatedTime),1)])),_:1},8,["label"]),D(l,{label:F(n)("page.result.successPage.generatorLabel")},{default:T((()=>[B(H(F(s).generator),1)])),_:1},8,["label"]),D(l,{label:F(n)("page.result.successPage.contentLabel")},{default:T((()=>[B(H(F(n)("page.result.successPage.generatedContent")),1)])),_:1},8,["label"])])),_:1}),D(p,{current:3,"progress-dot":"",size:"small"},{default:T((()=>[D(d,{title:F(n)("page.result.successPage.step1")},null,8,["title"]),D(d,{title:F(n)("page.result.successPage.step2")},{default:T((()=>[N("p",null,H(F(n)("page.result.successPage.step2Content")),1)])),_:1},8,["title"]),D(d,{title:F(n)("page.result.successPage.step3")},{default:T((()=>[N("p",null,H(F(n)("page.result.successPage.step3Content")),1)])),_:1},8,["title"]),D(d,{title:F(n)("page.result.successPage.step4")},null,8,["title"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})}}});export{se as default}; diff --git a/docs/assets/use-compitable-CHcH6xDN.js b/docs/assets/use-compitable-CHcH6xDN.js new file mode 100644 index 0000000..a2d0260 --- /dev/null +++ b/docs/assets/use-compitable-CHcH6xDN.js @@ -0,0 +1 @@ +import{l as r}from"./index-BT0ZcDkn.js";function n(n,o){return r((()=>{for(const r of o)if(void 0!==n[r])return n[r];return n[o[o.length-1]]}))}export{n as u}; diff --git a/docs/assets/use-locale-CbMPSc0o.js b/docs/assets/use-locale-CbMPSc0o.js new file mode 100644 index 0000000..9f3c589 --- /dev/null +++ b/docs/assets/use-locale-CbMPSc0o.js @@ -0,0 +1 @@ +import{i as e,b0 as l,l as a,cZ as o,c_ as n}from"./index-BT0ZcDkn.js";function r(r){const{mergedLocaleRef:u,mergedDateLocaleRef:d}=e(l,null)||{},i=a((()=>{var e,l;return null!==(l=null===(e=null==u?void 0:u.value)||void 0===e?void 0:e[r])&&void 0!==l?l:o[r]}));return{dateLocaleRef:a((()=>{var e;return null!==(e=null==d?void 0:d.value)&&void 0!==e?e:n})),localeRef:i}}export{r as u}; diff --git a/docs/assets/use-merged-state-D7wGS6Km.js b/docs/assets/use-merged-state-D7wGS6Km.js new file mode 100644 index 0000000..8eef772 --- /dev/null +++ b/docs/assets/use-merged-state-D7wGS6Km.js @@ -0,0 +1 @@ +import{a0 as a,l as e}from"./index-BT0ZcDkn.js";function u(u,o){return a(u,(a=>{void 0!==a&&(o.value=a)})),e((()=>void 0===u.value?o.value:u.value))}export{u}; diff --git a/docs/assets/use-message-CulIy1l8.js b/docs/assets/use-message-CulIy1l8.js new file mode 100644 index 0000000..a3b0599 --- /dev/null +++ b/docs/assets/use-message-CulIy1l8.js @@ -0,0 +1 @@ +import{i as e,cW as s,t as o}from"./index-BT0ZcDkn.js";function t(){const t=e(s,null);return null===t&&o("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),t}export{t as u}; diff --git a/docs/assets/useLoading-8gX1N9xN.js b/docs/assets/useLoading-8gX1N9xN.js new file mode 100644 index 0000000..ac0d383 --- /dev/null +++ b/docs/assets/useLoading-8gX1N9xN.js @@ -0,0 +1 @@ +import{bg as o}from"./index-BT0ZcDkn.js";function n(n=!1){const[t,e]=o(n);return{loading:t,setLoading:o=>{t.value=o},toggle:e}}export{n as u}; diff --git a/docs/assets/useScreen-jjQj1L0Z.js b/docs/assets/useScreen-jjQj1L0Z.js new file mode 100644 index 0000000..f94117f --- /dev/null +++ b/docs/assets/useScreen-jjQj1L0Z.js @@ -0,0 +1 @@ +import{cT as l,cU as r}from"./index-BT0ZcDkn.js";const a=l(r);a.between("sm","xl"),a.smallerOrEqual("xl");const e=a.smallerOrEqual("sm");a.smallerOrEqual("md"),a.smallerOrEqual("lg"),a.smallerOrEqual("xl"),a.smallerOrEqual("2xl");const s=a.greaterOrEqual("sm");a.greaterOrEqual("md"),a.greaterOrEqual("lg"),a.greaterOrEqual("xl"),a.greaterOrEqual("2xl");export{s as a,e as i}; diff --git a/docs/assets/utils-PlAvPplV.js b/docs/assets/utils-PlAvPplV.js new file mode 100644 index 0000000..e6f01f0 --- /dev/null +++ b/docs/assets/utils-PlAvPplV.js @@ -0,0 +1 @@ +import{i as o,cL as n,t as i,v as r,cy as s}from"./index-BT0ZcDkn.js";import{i as t}from"./isNil-aV-w2MPu.js";function a(){const r=o(n,null);return null===r&&i("use-dialog","No outer founded."),r}function u(o){if(!t(o))return()=>r(s,{component:o})}export{u as r,a as u}; diff --git a/docs/index.html b/docs/index.html index 56a311e..f2c9985 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,7 +5,7 @@ Naiveui Web - +