hcui-package 1.4.9 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -349,7 +349,7 @@ const Wv = "n", Ia = `.${Wv}-`, Uv = "__", Kv = "--", uu = cu(), fu = Pv({
349
349
  uu.use(fu);
350
350
  const {
351
351
  c: A,
352
- find: eT
352
+ find: tT
353
353
  } = uu, {
354
354
  cB: _,
355
355
  cE: G,
@@ -34114,7 +34114,7 @@ const qh = /* @__PURE__ */ DP(WP), UP = {
34114
34114
  function KP(e) {
34115
34115
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !au(e);
34116
34116
  }
34117
- const tT = /* @__PURE__ */ ge({
34117
+ const nT = /* @__PURE__ */ ge({
34118
34118
  __name: "BaseTable",
34119
34119
  props: {
34120
34120
  ...bc.props,
@@ -34260,7 +34260,11 @@ const tT = /* @__PURE__ */ ge({
34260
34260
  class: "label-has-tips"
34261
34261
  }, qP = ["innerHTML"], GP = {
34262
34262
  class: "btns-box"
34263
- }, nT = /* @__PURE__ */ ge({
34263
+ }, XP = {
34264
+ style: {
34265
+ "font-size": "12px"
34266
+ }
34267
+ }, rT = /* @__PURE__ */ ge({
34264
34268
  __name: "BaseForm",
34265
34269
  props: {
34266
34270
  ...zc.props,
@@ -34428,7 +34432,7 @@ const tT = /* @__PURE__ */ ge({
34428
34432
  key: 0,
34429
34433
  class: "btn-expand",
34430
34434
  onClick: p
34431
- }, [ht("span", null, cl(m.value ? "收起" : "展开"), 1), m.value ? (Kt(), Gn(S, {
34435
+ }, [ht("span", XP, cl(m.value ? "收起" : "展开"), 1), m.value ? (Kt(), Gn(S, {
34432
34436
  key: 1,
34433
34437
  size: 20
34434
34438
  }, {
@@ -34448,7 +34452,7 @@ const tT = /* @__PURE__ */ ge({
34448
34452
  };
34449
34453
  }
34450
34454
  });
34451
- class XP {
34455
+ class QP {
34452
34456
  constructor() {
34453
34457
  Be(this, "pageNo", "current");
34454
34458
  Be(this, "pageSize", "size");
@@ -34457,8 +34461,8 @@ class XP {
34457
34461
  Be(this, "total", "total");
34458
34462
  }
34459
34463
  }
34460
- function rT(e = {}, t, n, r) {
34461
- const o = r || new XP(), { pageNo: a, pageSize: i, records: l, pages: s, total: d } = o, u = M({
34464
+ function oT(e = {}, t, n, r) {
34465
+ const o = r || new QP(), { pageNo: a, pageSize: i, records: l, pages: s, total: d } = o, u = M({
34462
34466
  [a]: 1,
34463
34467
  [i]: 20
34464
34468
  }), f = M({
@@ -34524,9 +34528,9 @@ function rT(e = {}, t, n, r) {
34524
34528
  };
34525
34529
  }
34526
34530
  export {
34527
- nT as BaseForm,
34528
- tT as BaseTable,
34531
+ rT as BaseForm,
34532
+ nT as BaseTable,
34529
34533
  OP as ColumnsDrawSetting,
34530
34534
  rP as InputTree,
34531
- rT as usePagination
34535
+ oT as usePagination
34532
34536
  };
@@ -1,4 +1,4 @@
1
- (function(vt,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable"],o):(vt=typeof globalThis<"u"?globalThis:vt||self,o(vt["hcui-package"]={},vt.Vue,vt.vuedraggable))})(this,function(vt,o,Dr){"use strict";var G2=Object.defineProperty;var X2=(vt,o,Dr)=>o in vt?G2(vt,o,{enumerable:!0,configurable:!0,writable:!0,value:Dr}):vt[o]=Dr;var Me=(vt,o,Dr)=>X2(vt,typeof o!="symbol"?o+"":o,Dr);var ls=document.createElement("style");ls.textContent=`.input-tree-pop{display:flex;flex-direction:column;gap:10px;height:300px;width:365px;overflow:hidden}.input-tree-pop .dealLabelDIV{white-space:nowrap;width:250px;overflow:hidden;text-overflow:ellipsis}.input-tree-pop .content{flex:1;overflow:auto}.input-tree-pop .footer{display:flex;gap:10px;justify-content:center}.hcPackage-baseTable{position:relative}.hcPackage-baseTable .cell-tooltip-dom{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hcPackage-baseTable .cell-title-hasTooltip{display:flex;align-items:center;gap:10px}.hcPackage-baseTable .cell-title-hasTooltip .n-icon{color:#00000080!important}.hcPackage-baseTable .settingsBtn{position:absolute;right:8px;top:8px;z-index:999}.hcPackage-baseTable .settingsBtn>span{padding:4px;background-color:#fff;border-radius:99px;display:flex;border:1px solid #ccc}.hcPackage-baseTable .selected td{background-color:#e8f9ff!important}.hcui-column-setting .drawer-content{height:100%;display:flex;flex-direction:column}.hcui-column-setting .drawer-content .title{padding:10px 15px;font-size:18px;border-bottom:1px solid #ececec}.hcui-column-setting .drawer-content .main{flex:1;overflow:hidden;display:flex;flex-direction:column}.hcui-column-setting .drawer-content .main .body{flex:1;overflow:auto}.hcui-column-setting .drawer-content .main .body .grid-row-draggable{display:grid;grid-template-columns:50px 2fr 1fr 1fr 1fr 1fr;padding:5px 0}.hcui-column-setting .drawer-content .main .body .grid-row-draggable>div{display:flex;align-items:center;justify-content:center}.hcui-column-setting .drawer-content .main .body .grid-row-draggable>.tal{justify-content:flex-start}.hcui-column-setting .drawer-content .main .header{display:grid;grid-template-columns:50px 2fr 1fr 1fr 1fr 1fr;padding:5px 0;background-color:#f5f5f5}.hcui-column-setting .drawer-content .main .header>div{text-align:center}.hcui-column-setting .drawer-content .main .header .tal{text-align:left}.hcui-column-setting .drawer-content .footer{padding:15px;border-top:1px solid #ececec;display:flex;justify-content:space-between}.hcui-column-setting .drawer-content .footer .btns-box{display:flex;gap:10px}.hcPackage-baseForm,.hcPackage-baseForm .form-layout{width:100%}.hcPackage-baseForm .btns-box{width:100%;display:flex;justify-content:flex-end;align-items:center;gap:10px}.hcPackage-baseForm .btns-box .btn-expand{display:flex;align-items:center;cursor:pointer}.hcPackage-baseForm .btns-box .btn-expand n-icon{width:20px;height:20px;display:flex;justify-content:center}.hcPackage-baseForm .n-form-item{margin:0!important}.hcPackage-baseForm .label-has-tips{display:flex;align-items:center;gap:5px}.hcPackage-baseForm .label-has-tips n-icon{width:18px;height:18px;display:flex;justify-content:center;color:#00000080!important}.hcPackage-baseForm .n-input--error-status .n-input__placeholder,.hcPackage-baseForm .n-base-selection--error-status .n-base-selection-placeholder__inner{color:var(--n-feedback-text-color-error)}
1
+ (function(vt,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable"],o):(vt=typeof globalThis<"u"?globalThis:vt||self,o(vt["hcui-package"]={},vt.Vue,vt.vuedraggable))})(this,function(vt,o,Dr){"use strict";var X2=Object.defineProperty;var Q2=(vt,o,Dr)=>o in vt?X2(vt,o,{enumerable:!0,configurable:!0,writable:!0,value:Dr}):vt[o]=Dr;var Me=(vt,o,Dr)=>Q2(vt,typeof o!="symbol"?o+"":o,Dr);var ls=document.createElement("style");ls.textContent=`.input-tree-pop{display:flex;flex-direction:column;gap:10px;height:300px;width:365px;overflow:hidden}.input-tree-pop .dealLabelDIV{white-space:nowrap;width:250px;overflow:hidden;text-overflow:ellipsis}.input-tree-pop .content{flex:1;overflow:auto}.input-tree-pop .footer{display:flex;gap:10px;justify-content:center}.hcPackage-baseTable{position:relative}.hcPackage-baseTable .cell-tooltip-dom{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hcPackage-baseTable .cell-title-hasTooltip{display:flex;align-items:center;gap:10px}.hcPackage-baseTable .cell-title-hasTooltip .n-icon{color:#00000080!important}.hcPackage-baseTable .settingsBtn{position:absolute;right:8px;top:8px;z-index:999}.hcPackage-baseTable .settingsBtn>span{padding:4px;background-color:#fff;border-radius:99px;display:flex;border:1px solid #ccc}.hcPackage-baseTable .selected td{background-color:#e8f9ff!important}.hcui-column-setting .drawer-content{height:100%;display:flex;flex-direction:column}.hcui-column-setting .drawer-content .title{padding:10px 15px;font-size:18px;border-bottom:1px solid #ececec}.hcui-column-setting .drawer-content .main{flex:1;overflow:hidden;display:flex;flex-direction:column}.hcui-column-setting .drawer-content .main .body{flex:1;overflow:auto}.hcui-column-setting .drawer-content .main .body .grid-row-draggable{display:grid;grid-template-columns:50px 2fr 1fr 1fr 1fr 1fr;padding:5px 0}.hcui-column-setting .drawer-content .main .body .grid-row-draggable>div{display:flex;align-items:center;justify-content:center}.hcui-column-setting .drawer-content .main .body .grid-row-draggable>.tal{justify-content:flex-start}.hcui-column-setting .drawer-content .main .header{display:grid;grid-template-columns:50px 2fr 1fr 1fr 1fr 1fr;padding:5px 0;background-color:#f5f5f5}.hcui-column-setting .drawer-content .main .header>div{text-align:center}.hcui-column-setting .drawer-content .main .header .tal{text-align:left}.hcui-column-setting .drawer-content .footer{padding:15px;border-top:1px solid #ececec;display:flex;justify-content:space-between}.hcui-column-setting .drawer-content .footer .btns-box{display:flex;gap:10px}.hcPackage-baseForm,.hcPackage-baseForm .form-layout{width:100%}.hcPackage-baseForm .btns-box{width:100%;display:flex;justify-content:flex-end;align-items:center;gap:10px}.hcPackage-baseForm .btns-box .btn-expand{display:flex;align-items:center;cursor:pointer}.hcPackage-baseForm .btns-box .btn-expand n-icon{width:20px;height:20px;display:flex;justify-content:center}.hcPackage-baseForm .n-form-item{margin:0!important}.hcPackage-baseForm .label-has-tips{display:flex;align-items:center;gap:5px}.hcPackage-baseForm .label-has-tips n-icon{width:18px;height:18px;display:flex;justify-content:center;color:#00000080!important}.hcPackage-baseForm .n-input--error-status .n-input__placeholder,.hcPackage-baseForm .n-base-selection--error-status .n-base-selection-placeholder__inner{color:var(--n-feedback-text-color-error)}
2
2
  /*$vite$:1*/`,document.head.appendChild(ls);function mh(e){let t=".",n="__",r="--",a;if(e){let h=e.blockPrefix;h&&(t=h),h=e.elementPrefix,h&&(n=h),h=e.modifierPrefix,h&&(r=h)}const i={install(h){a=h.c;const v=h.context;v.bem={},v.bem.b=null,v.bem.els=null}};function l(h){let v,b;return{before(m){v=m.bem.b,b=m.bem.els,m.bem.els=null},after(m){m.bem.b=v,m.bem.els=b},$({context:m,props:w}){return h=typeof h=="string"?h:h({context:m,props:w}),m.bem.b=h,`${(w==null?void 0:w.bPrefix)||t}${m.bem.b}`}}}function s(h){let v;return{before(b){v=b.bem.els},after(b){b.bem.els=v},$({context:b,props:m}){return h=typeof h=="string"?h:h({context:b,props:m}),b.bem.els=h.split(",").map(w=>w.trim()),b.bem.els.map(w=>`${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${n}${w}`).join(", ")}}}function d(h){return{$({context:v,props:b}){h=typeof h=="string"?h:h({context:v,props:b});const m=h.split(",").map(S=>S.trim());function w(S){return m.map(C=>`&${(b==null?void 0:b.bPrefix)||t}${v.bem.b}${S!==void 0?`${n}${S}`:""}${r}${C}`).join(", ")}const k=v.bem.els;if(k!==null){if(process.env.NODE_ENV!=="production"&&k.length>=2)throw Error(`[css-render/plugin-bem]: m(${h}) is invalid, using modifier inside multiple elements is not allowed`);return w(k[0])}else return w()}}}function c(h){return{$({context:v,props:b}){h=typeof h=="string"?h:h({context:v,props:b});const m=v.bem.els;if(process.env.NODE_ENV!=="production"&&m!==null&&m.length>=2)throw Error(`[css-render/plugin-bem]: notM(${h}) is invalid, using modifier inside multiple elements is not allowed`);return`&:not(${(b==null?void 0:b.bPrefix)||t}${v.bem.b}${m!==null&&m.length>0?`${n}${m[0]}`:""}${r}${h})`}}}return Object.assign(i,{cB:(...h)=>a(l(h[0]),h[1],h[2]),cE:(...h)=>a(s(h[0]),h[1],h[2]),cM:(...h)=>a(d(h[0]),h[1],h[2]),cNotM:(...h)=>a(c(h[0]),h[1],h[2])}),i}function gh(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const ss=/\s*,(?![^(]*\))\s*/g,bh=/\s+/g;function vh(e,t){const n=[];return t.split(ss).forEach(r=>{let a=gh(r);if(a){if(a===1){e.forEach(l=>{n.push(r.replace("&",l))});return}}else{e.forEach(l=>{n.push((l&&l+" ")+r)});return}let i=[r];for(;a--;){const l=[];i.forEach(s=>{e.forEach(d=>{l.push(s.replace("&",d))})}),i=l}i.forEach(l=>n.push(l))}),n}function yh(e,t){const n=[];return t.split(ss).forEach(r=>{e.forEach(a=>{n.push((a&&a+" ")+r)})}),n}function xh(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=vh(t,n):t=yh(t,n))}),t.join(", ").replace(bh," ")}function ds(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Ko(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function wh(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Yo(e){return e?/^\s*@(s|m)/.test(e):!1}const Ch=/[A-Z]/g;function cs(e){return e.replace(Ch,t=>"-"+t.toLowerCase())}function kh(e,t=" "){return typeof e=="object"&&e!==null?` {
3
3
  `+Object.entries(e).map(n=>t+` ${cs(n[0])}: ${n[1]};`).join(`
4
4
  `)+`
@@ -10,7 +10,7 @@ ${a}
10
10
  `);return}s=cs(s),d!=null&&l.push(` ${s}${kh(d)}`)}),e&&l.push("}"),l.join(`
11
11
  `)}function Wa(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))Wa(r,t,n);else if(typeof r=="function"){const a=r(t);Array.isArray(a)?Wa(a,t,n):a&&n(a)}else r&&n(r)})}function fs(e,t,n,r,a){const i=e.$;let l="";if(!i||typeof i=="string")Yo(i)?l=i:t.push(i);else if(typeof i=="function"){const c=i({context:r.context,props:a});Yo(c)?l=c:t.push(c)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")Yo(i.$)?l=i.$:t.push(i.$);else if(i.$){const c=i.$({context:r.context,props:a});Yo(c)?l=c:t.push(c)}const s=xh(t),d=us(s,e.props,r,a);l?n.push(`${l} {`):d.length&&n.push(d),e.children&&Wa(e.children,{context:r.context,props:a},c=>{if(typeof c=="string"){const u=us(s,{raw:c},r,a);n.push(u)}else fs(c,t,n,r,a)}),t.pop(),l&&n.push("}"),i&&i.after&&i.after(r.context)}function Rh(e,t,n){const r=[];return fs(e,[],r,t,n),r.join(`
12
12
 
13
- `)}function Ua(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function Ph(e,t,n,r){const{els:a}=t;if(n===void 0)a.forEach(ds),t.els=[];else{const i=Ko(n,r);i&&a.includes(i)&&(ds(i),t.els=a.filter(l=>l!==i))}}function hs(e,t){e.push(t)}function Th(e,t,n,r,a,i,l,s,d){let c;if(n===void 0&&(c=t.render(r),n=Ua(c)),d){d.adapter(n,c??t.render(r));return}s===void 0&&(s=document.head);const u=Ko(n,s);if(u!==null&&!i)return u;const f=u??wh(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,u!==null)return u;if(l){const p=s.querySelector(`meta[name="${l}"]`);if(p)return s.insertBefore(f,p),hs(t.els,f),f}return a?s.insertBefore(f,s.querySelector("style, link")):s.appendChild(f),hs(t.els,f),f}function Fh(e){return Rh(this,this.instance,e)}function $h(e={}){const{id:t,ssr:n,props:r,head:a=!1,force:i=!1,anchorMetaName:l,parent:s}=e;return Th(this.instance,this,t,r,a,i,l,s,n)}function Dh(e={}){const{id:t,parent:n}=e;Ph(this.instance,this,t,n)}const qo=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Fh,mount:$h,unmount:Dh}},zh=function(e,t,n,r){return Array.isArray(t)?qo(e,{$:null},null,t):Array.isArray(n)?qo(e,t,null,n):Array.isArray(r)?qo(e,t,n,r):qo(e,t,n,null)};function ps(e={}){const t={c:(...n)=>zh(t,...n),use:(n,...r)=>n.install(t,...r),find:Ko,context:{},config:e};return t}function Oh(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Ko(e)!==null}const Go=".n-",Mh="__",Eh="--",ms=ps(),gs=mh({blockPrefix:Go,elementPrefix:Mh,modifierPrefix:Eh});ms.use(gs);const{c:E,find:Z2}=ms,{cB:O,cE:K,cM:L,cNotM:it}=gs;function bs(e){return E(({props:{bPrefix:t}})=>`${t||Go}modal, ${t||Go}drawer`,[e])}function vs(e){return E(({props:{bPrefix:t}})=>`${t||Go}popover`,[e])}const _h=(...e)=>E(">",[O(...e)]);function me(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}let Xo=[];const ys=new WeakMap;function Ah(){Xo.forEach(e=>e(...ys.get(e))),Xo=[]}function Qo(e,...t){ys.set(e,t),!Xo.includes(e)&&Xo.push(e)===1&&requestAnimationFrame(Ah)}function Wt(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function jn(e){return e.composedPath()[0]||null}function dn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Lt(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function en(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}const xs={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function Bh(e,t,n){t/=100,n/=100;let r=(a,i=(a+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function Ih(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),a=(i,l=(i+e/30)%12)=>n-r*Math.max(Math.min(l-3,9-l,1),-1);return[a(0)*255,a(8)*255,a(4)*255]}const Pn="^\\s*",Tn="\\s*$",Wn="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",cn="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",dr="([0-9A-Fa-f])",cr="([0-9A-Fa-f]{2})",ws=new RegExp(`${Pn}hsl\\s*\\(${cn},${Wn},${Wn}\\)${Tn}`),Cs=new RegExp(`${Pn}hsv\\s*\\(${cn},${Wn},${Wn}\\)${Tn}`),ks=new RegExp(`${Pn}hsla\\s*\\(${cn},${Wn},${Wn},${cn}\\)${Tn}`),Ss=new RegExp(`${Pn}hsva\\s*\\(${cn},${Wn},${Wn},${cn}\\)${Tn}`),Nh=new RegExp(`${Pn}rgb\\s*\\(${cn},${cn},${cn}\\)${Tn}`),Hh=new RegExp(`${Pn}rgba\\s*\\(${cn},${cn},${cn},${cn}\\)${Tn}`),Lh=new RegExp(`${Pn}#${dr}${dr}${dr}${Tn}`),Vh=new RegExp(`${Pn}#${cr}${cr}${cr}${Tn}`),jh=new RegExp(`${Pn}#${dr}${dr}${dr}${dr}${Tn}`),Wh=new RegExp(`${Pn}#${cr}${cr}${cr}${cr}${Tn}`);function an(e){return parseInt(e,16)}function Uh(e){try{let t;if(t=ks.exec(e))return[Jo(t[1]),Un(t[5]),Un(t[9]),fr(t[13])];if(t=ws.exec(e))return[Jo(t[1]),Un(t[5]),Un(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function Kh(e){try{let t;if(t=Ss.exec(e))return[Jo(t[1]),Un(t[5]),Un(t[9]),fr(t[13])];if(t=Cs.exec(e))return[Jo(t[1]),Un(t[5]),Un(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function ur(e){try{let t;if(t=Vh.exec(e))return[an(t[1]),an(t[2]),an(t[3]),1];if(t=Nh.exec(e))return[Gt(t[1]),Gt(t[5]),Gt(t[9]),1];if(t=Hh.exec(e))return[Gt(t[1]),Gt(t[5]),Gt(t[9]),fr(t[13])];if(t=Lh.exec(e))return[an(t[1]+t[1]),an(t[2]+t[2]),an(t[3]+t[3]),1];if(t=Wh.exec(e))return[an(t[1]),an(t[2]),an(t[3]),fr(an(t[4])/255)];if(t=jh.exec(e))return[an(t[1]+t[1]),an(t[2]+t[2]),an(t[3]+t[3]),fr(an(t[4]+t[4])/255)];if(e in xs)return ur(xs[e]);if(ws.test(e)||ks.test(e)){const[n,r,a,i]=Uh(e);return[...Ih(n,r,a),i]}else if(Cs.test(e)||Ss.test(e)){const[n,r,a,i]=Kh(e);return[...Bh(n,r,a),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Yh(e){return e>1?1:e<0?0:e}function Ka(e,t,n,r){return`rgba(${Gt(e)}, ${Gt(t)}, ${Gt(n)}, ${Yh(r)})`}function Ya(e,t,n,r,a){return Gt((e*t*(1-r)+n*r)/a)}function mt(e,t){Array.isArray(e)||(e=ur(e)),Array.isArray(t)||(t=ur(t));const n=e[3],r=t[3],a=fr(n+r-n*r);return Ka(Ya(e[0],n,t[0],r,a),Ya(e[1],n,t[1],r,a),Ya(e[2],n,t[2],r,a),a)}function tt(e,t){const[n,r,a,i=1]=Array.isArray(e)?e:ur(e);return typeof t.alpha=="number"?Ka(n,r,a,t.alpha):Ka(n,r,a,i)}function Zo(e,t){const[n,r,a,i=1]=Array.isArray(e)?e:ur(e),{lightness:l=1,alpha:s=1}=t;return qh([n*l,r*l,a*l,i*s])}function fr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Jo(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function Gt(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Un(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function qh(e){const[t,n,r]=e;return 3 in e?`rgba(${Gt(t)}, ${Gt(n)}, ${Gt(r)}, ${fr(e[3])})`:`rgba(${Gt(t)}, ${Gt(n)}, ${Gt(r)}, 1)`}function so(e=8){return Math.random().toString(16).slice(2,2+e)}function Rs(e,t){const n=[];for(let r=0;r<e;++r)n.push(t);return n}function ea(e){return e.composedPath()[0]}const Gh={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function Xh(e,t,n){if(e==="mousemoveoutside"){const r=a=>{t.contains(ea(a))||n(a)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const a=l=>{r=!t.contains(ea(l))},i=l=>{r&&(t.contains(ea(l))||n(l))};return{mousedown:a,mouseup:i,touchstart:a,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Ps(e,t,n){const r=Gh[e];let a=r.get(t);a===void 0&&r.set(t,a=new WeakMap);let i=a.get(n);return i===void 0&&a.set(n,i=Xh(e,t,n)),i}function Qh(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const a=Ps(e,t,n);return Object.keys(a).forEach(i=>{Ft(i,document,a[i],r)}),!0}return!1}function Zh(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const a=Ps(e,t,n);return Object.keys(a).forEach(i=>{yt(i,document,a[i],r)}),!0}return!1}function Jh(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function a(y,R,P){const $=y[R];return y[R]=function(){return P.apply(y,arguments),$.apply(y,arguments)},y}function i(y,R){y[R]=Event.prototype[R]}const l=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function d(){var y;return(y=l.get(this))!==null&&y!==void 0?y:null}function c(y,R){s!==void 0&&Object.defineProperty(y,"currentTarget",{configurable:!0,enumerable:!0,get:R??s.get})}const u={bubble:{},capture:{}},f={};function p(){const y=function(R){const{type:P,eventPhase:$,bubbles:N}=R,D=ea(R);if($===2)return;const T=$===1?"capture":"bubble";let M=D;const z=[];for(;M===null&&(M=window),z.push(M),M!==window;)M=M.parentNode||null;const A=u.capture[P],_=u.bubble[P];if(a(R,"stopPropagation",n),a(R,"stopImmediatePropagation",r),c(R,d),T==="capture"){if(A===void 0)return;for(let U=z.length-1;U>=0&&!e.has(R);--U){const te=z[U],ee=A.get(te);if(ee!==void 0){l.set(R,te);for(const Q of ee){if(t.has(R))break;Q(R)}}if(U===0&&!N&&_!==void 0){const Q=_.get(te);if(Q!==void 0)for(const H of Q){if(t.has(R))break;H(R)}}}}else if(T==="bubble"){if(_===void 0)return;for(let U=0;U<z.length&&!e.has(R);++U){const te=z[U],ee=_.get(te);if(ee!==void 0){l.set(R,te);for(const Q of ee){if(t.has(R))break;Q(R)}}}}i(R,"stopPropagation"),i(R,"stopImmediatePropagation"),c(R)};return y.displayName="evtdUnifiedHandler",y}function g(){const y=function(R){const{type:P,eventPhase:$}=R;if($!==2)return;const N=f[P];N!==void 0&&N.forEach(D=>D(R))};return y.displayName="evtdUnifiedWindowEventHandler",y}const h=p(),v=g();function b(y,R){const P=u[y];return P[R]===void 0&&(P[R]=new Map,window.addEventListener(R,h,y==="capture")),P[R]}function m(y){return f[y]===void 0&&(f[y]=new Set,window.addEventListener(y,v)),f[y]}function w(y,R){let P=y.get(R);return P===void 0&&y.set(R,P=new Set),P}function k(y,R,P,$){const N=u[R][P];if(N!==void 0){const D=N.get(y);if(D!==void 0&&D.has($))return!0}return!1}function S(y,R){const P=f[y];return!!(P!==void 0&&P.has(R))}function C(y,R,P,$){let N;if(typeof $=="object"&&$.once===!0?N=A=>{x(y,R,N,$),P(A)}:N=P,Qh(y,R,N,$))return;const T=$===!0||typeof $=="object"&&$.capture===!0?"capture":"bubble",M=b(T,y),z=w(M,R);if(z.has(N)||z.add(N),R===window){const A=m(y);A.has(N)||A.add(N)}}function x(y,R,P,$){if(Zh(y,R,P,$))return;const D=$===!0||typeof $=="object"&&$.capture===!0,T=D?"capture":"bubble",M=b(T,y),z=w(M,R);if(R===window&&!k(R,D?"bubble":"capture",y,P)&&S(y,P)){const _=f[y];_.delete(P),_.size===0&&(window.removeEventListener(y,v),f[y]=void 0)}z.has(P)&&z.delete(P),z.size===0&&M.delete(R),M.size===0&&(window.removeEventListener(y,h,T==="capture"),u[T][y]=void 0)}return{on:C,off:x}}const{on:Ft,off:yt}=Jh();function ep(e){const t=o.ref(!!e.value);if(t.value)return o.readonly(t);const n=o.watch(e,r=>{r&&(t.value=!0,n())});return o.readonly(t)}function nt(e){const t=o.computed(e),n=o.ref(t.value);return o.watch(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function tp(){return o.getCurrentInstance()!==null}const np=typeof window<"u";let zr,co;(()=>{var e,t;zr=np?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,co=!1,zr!==void 0?zr.then(()=>{co=!0}):co=!0})();function rp(e){if(co)return;let t=!1;o.onMounted(()=>{co||zr==null||zr.then(()=>{t||e()})}),o.onBeforeUnmount(()=>{t=!0})}function zt(e,t){return o.watch(e,n=>{n!==void 0&&(t.value=n)}),o.computed(()=>e.value===void 0?t.value:e.value)}function hr(){const e=o.ref(!1);return o.onMounted(()=>{e.value=!0}),o.readonly(e)}function Ts(e,t){return o.computed(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const op=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function ap(){return op}function qa(e={},t){const n=o.reactive({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:a}=e,i=d=>{switch(d.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==d.key)return;const u=r[c];if(typeof u=="function")u(d);else{const{stop:f=!1,prevent:p=!1}=u;f&&d.stopPropagation(),p&&d.preventDefault(),u.handler(d)}})},l=d=>{switch(d.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}a!==void 0&&Object.keys(a).forEach(c=>{if(c!==d.key)return;const u=a[c];if(typeof u=="function")u(d);else{const{stop:f=!1,prevent:p=!1}=u;f&&d.stopPropagation(),p&&d.preventDefault(),u.handler(d)}})},s=()=>{(t===void 0||t.value)&&(Ft("keydown",document,i),Ft("keyup",document,l)),t!==void 0&&o.watch(t,d=>{d?(Ft("keydown",document,i),Ft("keyup",document,l)):(yt("keydown",document,i),yt("keyup",document,l))})};return tp()?(o.onBeforeMount(s),o.onBeforeUnmount(()=>{(t===void 0||t.value)&&(yt("keydown",document,i),yt("keyup",document,l))})):s(),o.readonly(n)}function eP(e){return e}const Ga="n-internal-select-menu",Fs="n-internal-select-menu-body",ta="n-drawer-body",$s="n-drawer",na="n-modal-body",uo="n-popover-body",Ds="__disabled__";function Xt(e){const t=o.inject(na,null),n=o.inject(ta,null),r=o.inject(uo,null),a=o.inject(Fs,null),i=o.ref();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};o.onMounted(()=>{Ft("fullscreenchange",document,l)}),o.onBeforeUnmount(()=>{yt("fullscreenchange",document,l)})}return nt(()=>{var l;const{to:s}=e;return s!==void 0?s===!1?Ds:s===!0?i.value||"body":s:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:a!=null&&a.value?a.value:s??(i.value||"body")})}Xt.tdkey=Ds,Xt.propTo={type:[String,Object,Boolean],default:void 0};function ip(e,t,n){var r;const a=o.inject(e,null);if(a===null)return;const i=(r=o.getCurrentInstance())===null||r===void 0?void 0:r.proxy;o.watch(n,l),l(n.value),o.onBeforeUnmount(()=>{l(void 0,n.value)});function l(c,u){if(!a)return;const f=a[t];u!==void 0&&s(f,u),c!==void 0&&d(f,c)}function s(c,u){c[u]||(c[u]=[]),c[u].splice(c[u].findIndex(f=>f===i),1)}function d(c,u){c[u]||(c[u]=[]),~c[u].findIndex(f=>f===i)||c[u].push(i)}}function lp(e,t,n){const r=o.ref(e.value);let a=null;return o.watch(e,i=>{a!==null&&window.clearTimeout(a),i===!0?n&&!n.value?r.value=!0:a=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}const Or=typeof document<"u"&&typeof window<"u",Xa=o.ref(!1);function zs(){Xa.value=!0}function Os(){Xa.value=!1}let fo=0;function sp(){return Or&&(o.onBeforeMount(()=>{fo||(window.addEventListener("compositionstart",zs),window.addEventListener("compositionend",Os)),fo++}),o.onBeforeUnmount(()=>{fo<=1?(window.removeEventListener("compositionstart",zs),window.removeEventListener("compositionend",Os),fo=0):fo--})),Xa}let Mr=0,Ms="",Es="",_s="",As="";const Bs=o.ref("0px");function dp(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const a=()=>{t.style.marginRight=Ms,t.style.overflow=Es,t.style.overflowX=_s,t.style.overflowY=As,Bs.value="0px"};o.onMounted(()=>{n=o.watch(e,i=>{if(i){if(!Mr){const l=window.innerWidth-t.offsetWidth;l>0&&(Ms=t.style.marginRight,t.style.marginRight=`${l}px`,Bs.value=`${l}px`),Es=t.style.overflow,_s=t.style.overflowX,As=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Mr++}else Mr--,Mr||a(),r=!1},{immediate:!0})}),o.onBeforeUnmount(()=>{n==null||n(),r&&(Mr--,Mr||a(),r=!1)})}function cp(e){const t={isDeactivated:!1};let n=!1;return o.onActivated(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),o.onDeactivated(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function Qa(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function Za(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(o.createTextVNode(String(r)));return}if(Array.isArray(r)){Za(r,t,n);return}if(r.type===o.Fragment){if(r.children===null)return;Array.isArray(r.children)&&Za(r.children,t,n)}else r.type!==o.Comment&&n.push(r)}}),n}function Is(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const a=Za(r());if(a.length===1)return a[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let Kn=null;function Ns(){if(Kn===null&&(Kn=document.getElementById("v-binder-view-measurer"),Kn===null)){Kn=document.createElement("div"),Kn.id="v-binder-view-measurer";const{style:e}=Kn;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Kn)}return Kn.getBoundingClientRect()}function up(e,t){const n=Ns();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Ja(e){const t=e.getBoundingClientRect(),n=Ns();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function fp(e){return e.nodeType===9?null:e.parentNode}function Hs(e){if(e===null)return null;const t=fp(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:a}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+a+r))return t}return Hs(t)}const Er=o.defineComponent({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;o.provide("VBinder",(t=o.getCurrentInstance())===null||t===void 0?void 0:t.proxy);const n=o.inject("VBinder",null),r=o.ref(null),a=m=>{r.value=m,n&&e.syncTargetWithParent&&n.setTargetRef(m)};let i=[];const l=()=>{let m=r.value;for(;m=Hs(m),m!==null;)i.push(m);for(const w of i)Ft("scroll",w,f,!0)},s=()=>{for(const m of i)yt("scroll",m,f,!0);i=[]},d=new Set,c=m=>{d.size===0&&l(),d.has(m)||d.add(m)},u=m=>{d.has(m)&&d.delete(m),d.size===0&&s()},f=()=>{Qo(p)},p=()=>{d.forEach(m=>m())},g=new Set,h=m=>{g.size===0&&Ft("resize",window,b),g.has(m)||g.add(m)},v=m=>{g.has(m)&&g.delete(m),g.size===0&&yt("resize",window,b)},b=()=>{g.forEach(m=>m())};return o.onBeforeUnmount(()=>{yt("resize",window,b),s()}),{targetRef:r,setTargetRef:a,addScrollListener:c,removeScrollListener:u,addResizeListener:h,removeResizeListener:v}},render(){return Qa("binder",this.$slots)}}),_r=o.defineComponent({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=o.inject("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?o.withDirectives(Is("follower",this.$slots),[[t]]):Is("follower",this.$slots)}}),Ar="@@mmoContext",hp={mounted(e,{value:t}){e[Ar]={handler:void 0},typeof t=="function"&&(e[Ar].handler=t,Ft("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Ar];typeof t=="function"?n.handler?n.handler!==t&&(yt("mousemoveoutside",e,n.handler),n.handler=t,Ft("mousemoveoutside",e,t)):(e[Ar].handler=t,Ft("mousemoveoutside",e,t)):n.handler&&(yt("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Ar];t&&yt("mousemoveoutside",e,t),e[Ar].handler=void 0}},Br="@@coContext",Yn={mounted(e,{value:t,modifiers:n}){e[Br]={handler:void 0},typeof t=="function"&&(e[Br].handler=t,Ft("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[Br];typeof t=="function"?r.handler?r.handler!==t&&(yt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,Ft("clickoutside",e,t,{capture:n.capture})):(e[Br].handler=t,Ft("clickoutside",e,t,{capture:n.capture})):r.handler&&(yt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[Br];n&&yt("clickoutside",e,n,{capture:t.capture}),e[Br].handler=void 0}};function pp(e,t){console.error(`[vdirs/${e}]: ${t}`)}class mp{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:a}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${a}`,r.set(t,a),this.nextZIndex=a+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&pp("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],a=this.nextZIndex++;`${a}`!==r.style.zIndex&&(r.style.zIndex=`${a}`)})}}const ei=new mp,Ir="@@ziContext",ti={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:a}=n;e[Ir]={enabled:!!a,initialized:!1},a&&(ei.ensureZIndex(e,r),e[Ir].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:a}=n,i=e[Ir].enabled;a&&!i&&(ei.ensureZIndex(e,r),e[Ir].initialized=!0),e[Ir].enabled=!!a},unmounted(e,t){if(!e[Ir].initialized)return;const{value:n={}}=t,{zIndex:r}=n;ei.unregister(e,r)}},gp="@css-render/vue3-ssr";function bp(e,t){return`<style cssr-id="${e}">
13
+ `)}function Ua(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function Ph(e,t,n,r){const{els:a}=t;if(n===void 0)a.forEach(ds),t.els=[];else{const i=Ko(n,r);i&&a.includes(i)&&(ds(i),t.els=a.filter(l=>l!==i))}}function hs(e,t){e.push(t)}function Th(e,t,n,r,a,i,l,s,d){let c;if(n===void 0&&(c=t.render(r),n=Ua(c)),d){d.adapter(n,c??t.render(r));return}s===void 0&&(s=document.head);const u=Ko(n,s);if(u!==null&&!i)return u;const f=u??wh(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,u!==null)return u;if(l){const p=s.querySelector(`meta[name="${l}"]`);if(p)return s.insertBefore(f,p),hs(t.els,f),f}return a?s.insertBefore(f,s.querySelector("style, link")):s.appendChild(f),hs(t.els,f),f}function Fh(e){return Rh(this,this.instance,e)}function $h(e={}){const{id:t,ssr:n,props:r,head:a=!1,force:i=!1,anchorMetaName:l,parent:s}=e;return Th(this.instance,this,t,r,a,i,l,s,n)}function Dh(e={}){const{id:t,parent:n}=e;Ph(this.instance,this,t,n)}const qo=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Fh,mount:$h,unmount:Dh}},zh=function(e,t,n,r){return Array.isArray(t)?qo(e,{$:null},null,t):Array.isArray(n)?qo(e,t,null,n):Array.isArray(r)?qo(e,t,n,r):qo(e,t,n,null)};function ps(e={}){const t={c:(...n)=>zh(t,...n),use:(n,...r)=>n.install(t,...r),find:Ko,context:{},config:e};return t}function Oh(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Ko(e)!==null}const Go=".n-",Mh="__",Eh="--",ms=ps(),gs=mh({blockPrefix:Go,elementPrefix:Mh,modifierPrefix:Eh});ms.use(gs);const{c:E,find:J2}=ms,{cB:O,cE:K,cM:L,cNotM:it}=gs;function bs(e){return E(({props:{bPrefix:t}})=>`${t||Go}modal, ${t||Go}drawer`,[e])}function vs(e){return E(({props:{bPrefix:t}})=>`${t||Go}popover`,[e])}const _h=(...e)=>E(">",[O(...e)]);function me(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}let Xo=[];const ys=new WeakMap;function Ah(){Xo.forEach(e=>e(...ys.get(e))),Xo=[]}function Qo(e,...t){ys.set(e,t),!Xo.includes(e)&&Xo.push(e)===1&&requestAnimationFrame(Ah)}function Wt(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function jn(e){return e.composedPath()[0]||null}function dn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Lt(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function en(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}const xs={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function Bh(e,t,n){t/=100,n/=100;let r=(a,i=(a+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function Ih(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),a=(i,l=(i+e/30)%12)=>n-r*Math.max(Math.min(l-3,9-l,1),-1);return[a(0)*255,a(8)*255,a(4)*255]}const Pn="^\\s*",Tn="\\s*$",Wn="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",cn="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",dr="([0-9A-Fa-f])",cr="([0-9A-Fa-f]{2})",ws=new RegExp(`${Pn}hsl\\s*\\(${cn},${Wn},${Wn}\\)${Tn}`),Cs=new RegExp(`${Pn}hsv\\s*\\(${cn},${Wn},${Wn}\\)${Tn}`),ks=new RegExp(`${Pn}hsla\\s*\\(${cn},${Wn},${Wn},${cn}\\)${Tn}`),Ss=new RegExp(`${Pn}hsva\\s*\\(${cn},${Wn},${Wn},${cn}\\)${Tn}`),Nh=new RegExp(`${Pn}rgb\\s*\\(${cn},${cn},${cn}\\)${Tn}`),Hh=new RegExp(`${Pn}rgba\\s*\\(${cn},${cn},${cn},${cn}\\)${Tn}`),Lh=new RegExp(`${Pn}#${dr}${dr}${dr}${Tn}`),Vh=new RegExp(`${Pn}#${cr}${cr}${cr}${Tn}`),jh=new RegExp(`${Pn}#${dr}${dr}${dr}${dr}${Tn}`),Wh=new RegExp(`${Pn}#${cr}${cr}${cr}${cr}${Tn}`);function an(e){return parseInt(e,16)}function Uh(e){try{let t;if(t=ks.exec(e))return[Jo(t[1]),Un(t[5]),Un(t[9]),fr(t[13])];if(t=ws.exec(e))return[Jo(t[1]),Un(t[5]),Un(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function Kh(e){try{let t;if(t=Ss.exec(e))return[Jo(t[1]),Un(t[5]),Un(t[9]),fr(t[13])];if(t=Cs.exec(e))return[Jo(t[1]),Un(t[5]),Un(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function ur(e){try{let t;if(t=Vh.exec(e))return[an(t[1]),an(t[2]),an(t[3]),1];if(t=Nh.exec(e))return[Gt(t[1]),Gt(t[5]),Gt(t[9]),1];if(t=Hh.exec(e))return[Gt(t[1]),Gt(t[5]),Gt(t[9]),fr(t[13])];if(t=Lh.exec(e))return[an(t[1]+t[1]),an(t[2]+t[2]),an(t[3]+t[3]),1];if(t=Wh.exec(e))return[an(t[1]),an(t[2]),an(t[3]),fr(an(t[4])/255)];if(t=jh.exec(e))return[an(t[1]+t[1]),an(t[2]+t[2]),an(t[3]+t[3]),fr(an(t[4]+t[4])/255)];if(e in xs)return ur(xs[e]);if(ws.test(e)||ks.test(e)){const[n,r,a,i]=Uh(e);return[...Ih(n,r,a),i]}else if(Cs.test(e)||Ss.test(e)){const[n,r,a,i]=Kh(e);return[...Bh(n,r,a),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Yh(e){return e>1?1:e<0?0:e}function Ka(e,t,n,r){return`rgba(${Gt(e)}, ${Gt(t)}, ${Gt(n)}, ${Yh(r)})`}function Ya(e,t,n,r,a){return Gt((e*t*(1-r)+n*r)/a)}function mt(e,t){Array.isArray(e)||(e=ur(e)),Array.isArray(t)||(t=ur(t));const n=e[3],r=t[3],a=fr(n+r-n*r);return Ka(Ya(e[0],n,t[0],r,a),Ya(e[1],n,t[1],r,a),Ya(e[2],n,t[2],r,a),a)}function tt(e,t){const[n,r,a,i=1]=Array.isArray(e)?e:ur(e);return typeof t.alpha=="number"?Ka(n,r,a,t.alpha):Ka(n,r,a,i)}function Zo(e,t){const[n,r,a,i=1]=Array.isArray(e)?e:ur(e),{lightness:l=1,alpha:s=1}=t;return qh([n*l,r*l,a*l,i*s])}function fr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Jo(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function Gt(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Un(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function qh(e){const[t,n,r]=e;return 3 in e?`rgba(${Gt(t)}, ${Gt(n)}, ${Gt(r)}, ${fr(e[3])})`:`rgba(${Gt(t)}, ${Gt(n)}, ${Gt(r)}, 1)`}function so(e=8){return Math.random().toString(16).slice(2,2+e)}function Rs(e,t){const n=[];for(let r=0;r<e;++r)n.push(t);return n}function ea(e){return e.composedPath()[0]}const Gh={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function Xh(e,t,n){if(e==="mousemoveoutside"){const r=a=>{t.contains(ea(a))||n(a)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const a=l=>{r=!t.contains(ea(l))},i=l=>{r&&(t.contains(ea(l))||n(l))};return{mousedown:a,mouseup:i,touchstart:a,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Ps(e,t,n){const r=Gh[e];let a=r.get(t);a===void 0&&r.set(t,a=new WeakMap);let i=a.get(n);return i===void 0&&a.set(n,i=Xh(e,t,n)),i}function Qh(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const a=Ps(e,t,n);return Object.keys(a).forEach(i=>{Ft(i,document,a[i],r)}),!0}return!1}function Zh(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const a=Ps(e,t,n);return Object.keys(a).forEach(i=>{yt(i,document,a[i],r)}),!0}return!1}function Jh(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function a(y,R,P){const $=y[R];return y[R]=function(){return P.apply(y,arguments),$.apply(y,arguments)},y}function i(y,R){y[R]=Event.prototype[R]}const l=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function d(){var y;return(y=l.get(this))!==null&&y!==void 0?y:null}function c(y,R){s!==void 0&&Object.defineProperty(y,"currentTarget",{configurable:!0,enumerable:!0,get:R??s.get})}const u={bubble:{},capture:{}},f={};function p(){const y=function(R){const{type:P,eventPhase:$,bubbles:N}=R,D=ea(R);if($===2)return;const T=$===1?"capture":"bubble";let M=D;const z=[];for(;M===null&&(M=window),z.push(M),M!==window;)M=M.parentNode||null;const A=u.capture[P],_=u.bubble[P];if(a(R,"stopPropagation",n),a(R,"stopImmediatePropagation",r),c(R,d),T==="capture"){if(A===void 0)return;for(let U=z.length-1;U>=0&&!e.has(R);--U){const te=z[U],ee=A.get(te);if(ee!==void 0){l.set(R,te);for(const Q of ee){if(t.has(R))break;Q(R)}}if(U===0&&!N&&_!==void 0){const Q=_.get(te);if(Q!==void 0)for(const H of Q){if(t.has(R))break;H(R)}}}}else if(T==="bubble"){if(_===void 0)return;for(let U=0;U<z.length&&!e.has(R);++U){const te=z[U],ee=_.get(te);if(ee!==void 0){l.set(R,te);for(const Q of ee){if(t.has(R))break;Q(R)}}}}i(R,"stopPropagation"),i(R,"stopImmediatePropagation"),c(R)};return y.displayName="evtdUnifiedHandler",y}function g(){const y=function(R){const{type:P,eventPhase:$}=R;if($!==2)return;const N=f[P];N!==void 0&&N.forEach(D=>D(R))};return y.displayName="evtdUnifiedWindowEventHandler",y}const h=p(),v=g();function b(y,R){const P=u[y];return P[R]===void 0&&(P[R]=new Map,window.addEventListener(R,h,y==="capture")),P[R]}function m(y){return f[y]===void 0&&(f[y]=new Set,window.addEventListener(y,v)),f[y]}function w(y,R){let P=y.get(R);return P===void 0&&y.set(R,P=new Set),P}function k(y,R,P,$){const N=u[R][P];if(N!==void 0){const D=N.get(y);if(D!==void 0&&D.has($))return!0}return!1}function S(y,R){const P=f[y];return!!(P!==void 0&&P.has(R))}function C(y,R,P,$){let N;if(typeof $=="object"&&$.once===!0?N=A=>{x(y,R,N,$),P(A)}:N=P,Qh(y,R,N,$))return;const T=$===!0||typeof $=="object"&&$.capture===!0?"capture":"bubble",M=b(T,y),z=w(M,R);if(z.has(N)||z.add(N),R===window){const A=m(y);A.has(N)||A.add(N)}}function x(y,R,P,$){if(Zh(y,R,P,$))return;const D=$===!0||typeof $=="object"&&$.capture===!0,T=D?"capture":"bubble",M=b(T,y),z=w(M,R);if(R===window&&!k(R,D?"bubble":"capture",y,P)&&S(y,P)){const _=f[y];_.delete(P),_.size===0&&(window.removeEventListener(y,v),f[y]=void 0)}z.has(P)&&z.delete(P),z.size===0&&M.delete(R),M.size===0&&(window.removeEventListener(y,h,T==="capture"),u[T][y]=void 0)}return{on:C,off:x}}const{on:Ft,off:yt}=Jh();function ep(e){const t=o.ref(!!e.value);if(t.value)return o.readonly(t);const n=o.watch(e,r=>{r&&(t.value=!0,n())});return o.readonly(t)}function nt(e){const t=o.computed(e),n=o.ref(t.value);return o.watch(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function tp(){return o.getCurrentInstance()!==null}const np=typeof window<"u";let zr,co;(()=>{var e,t;zr=np?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,co=!1,zr!==void 0?zr.then(()=>{co=!0}):co=!0})();function rp(e){if(co)return;let t=!1;o.onMounted(()=>{co||zr==null||zr.then(()=>{t||e()})}),o.onBeforeUnmount(()=>{t=!0})}function zt(e,t){return o.watch(e,n=>{n!==void 0&&(t.value=n)}),o.computed(()=>e.value===void 0?t.value:e.value)}function hr(){const e=o.ref(!1);return o.onMounted(()=>{e.value=!0}),o.readonly(e)}function Ts(e,t){return o.computed(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const op=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function ap(){return op}function qa(e={},t){const n=o.reactive({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:a}=e,i=d=>{switch(d.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==d.key)return;const u=r[c];if(typeof u=="function")u(d);else{const{stop:f=!1,prevent:p=!1}=u;f&&d.stopPropagation(),p&&d.preventDefault(),u.handler(d)}})},l=d=>{switch(d.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}a!==void 0&&Object.keys(a).forEach(c=>{if(c!==d.key)return;const u=a[c];if(typeof u=="function")u(d);else{const{stop:f=!1,prevent:p=!1}=u;f&&d.stopPropagation(),p&&d.preventDefault(),u.handler(d)}})},s=()=>{(t===void 0||t.value)&&(Ft("keydown",document,i),Ft("keyup",document,l)),t!==void 0&&o.watch(t,d=>{d?(Ft("keydown",document,i),Ft("keyup",document,l)):(yt("keydown",document,i),yt("keyup",document,l))})};return tp()?(o.onBeforeMount(s),o.onBeforeUnmount(()=>{(t===void 0||t.value)&&(yt("keydown",document,i),yt("keyup",document,l))})):s(),o.readonly(n)}function tP(e){return e}const Ga="n-internal-select-menu",Fs="n-internal-select-menu-body",ta="n-drawer-body",$s="n-drawer",na="n-modal-body",uo="n-popover-body",Ds="__disabled__";function Xt(e){const t=o.inject(na,null),n=o.inject(ta,null),r=o.inject(uo,null),a=o.inject(Fs,null),i=o.ref();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};o.onMounted(()=>{Ft("fullscreenchange",document,l)}),o.onBeforeUnmount(()=>{yt("fullscreenchange",document,l)})}return nt(()=>{var l;const{to:s}=e;return s!==void 0?s===!1?Ds:s===!0?i.value||"body":s:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:a!=null&&a.value?a.value:s??(i.value||"body")})}Xt.tdkey=Ds,Xt.propTo={type:[String,Object,Boolean],default:void 0};function ip(e,t,n){var r;const a=o.inject(e,null);if(a===null)return;const i=(r=o.getCurrentInstance())===null||r===void 0?void 0:r.proxy;o.watch(n,l),l(n.value),o.onBeforeUnmount(()=>{l(void 0,n.value)});function l(c,u){if(!a)return;const f=a[t];u!==void 0&&s(f,u),c!==void 0&&d(f,c)}function s(c,u){c[u]||(c[u]=[]),c[u].splice(c[u].findIndex(f=>f===i),1)}function d(c,u){c[u]||(c[u]=[]),~c[u].findIndex(f=>f===i)||c[u].push(i)}}function lp(e,t,n){const r=o.ref(e.value);let a=null;return o.watch(e,i=>{a!==null&&window.clearTimeout(a),i===!0?n&&!n.value?r.value=!0:a=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}const Or=typeof document<"u"&&typeof window<"u",Xa=o.ref(!1);function zs(){Xa.value=!0}function Os(){Xa.value=!1}let fo=0;function sp(){return Or&&(o.onBeforeMount(()=>{fo||(window.addEventListener("compositionstart",zs),window.addEventListener("compositionend",Os)),fo++}),o.onBeforeUnmount(()=>{fo<=1?(window.removeEventListener("compositionstart",zs),window.removeEventListener("compositionend",Os),fo=0):fo--})),Xa}let Mr=0,Ms="",Es="",_s="",As="";const Bs=o.ref("0px");function dp(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const a=()=>{t.style.marginRight=Ms,t.style.overflow=Es,t.style.overflowX=_s,t.style.overflowY=As,Bs.value="0px"};o.onMounted(()=>{n=o.watch(e,i=>{if(i){if(!Mr){const l=window.innerWidth-t.offsetWidth;l>0&&(Ms=t.style.marginRight,t.style.marginRight=`${l}px`,Bs.value=`${l}px`),Es=t.style.overflow,_s=t.style.overflowX,As=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Mr++}else Mr--,Mr||a(),r=!1},{immediate:!0})}),o.onBeforeUnmount(()=>{n==null||n(),r&&(Mr--,Mr||a(),r=!1)})}function cp(e){const t={isDeactivated:!1};let n=!1;return o.onActivated(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),o.onDeactivated(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function Qa(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function Za(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(o.createTextVNode(String(r)));return}if(Array.isArray(r)){Za(r,t,n);return}if(r.type===o.Fragment){if(r.children===null)return;Array.isArray(r.children)&&Za(r.children,t,n)}else r.type!==o.Comment&&n.push(r)}}),n}function Is(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const a=Za(r());if(a.length===1)return a[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let Kn=null;function Ns(){if(Kn===null&&(Kn=document.getElementById("v-binder-view-measurer"),Kn===null)){Kn=document.createElement("div"),Kn.id="v-binder-view-measurer";const{style:e}=Kn;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Kn)}return Kn.getBoundingClientRect()}function up(e,t){const n=Ns();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Ja(e){const t=e.getBoundingClientRect(),n=Ns();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function fp(e){return e.nodeType===9?null:e.parentNode}function Hs(e){if(e===null)return null;const t=fp(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:a}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+a+r))return t}return Hs(t)}const Er=o.defineComponent({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;o.provide("VBinder",(t=o.getCurrentInstance())===null||t===void 0?void 0:t.proxy);const n=o.inject("VBinder",null),r=o.ref(null),a=m=>{r.value=m,n&&e.syncTargetWithParent&&n.setTargetRef(m)};let i=[];const l=()=>{let m=r.value;for(;m=Hs(m),m!==null;)i.push(m);for(const w of i)Ft("scroll",w,f,!0)},s=()=>{for(const m of i)yt("scroll",m,f,!0);i=[]},d=new Set,c=m=>{d.size===0&&l(),d.has(m)||d.add(m)},u=m=>{d.has(m)&&d.delete(m),d.size===0&&s()},f=()=>{Qo(p)},p=()=>{d.forEach(m=>m())},g=new Set,h=m=>{g.size===0&&Ft("resize",window,b),g.has(m)||g.add(m)},v=m=>{g.has(m)&&g.delete(m),g.size===0&&yt("resize",window,b)},b=()=>{g.forEach(m=>m())};return o.onBeforeUnmount(()=>{yt("resize",window,b),s()}),{targetRef:r,setTargetRef:a,addScrollListener:c,removeScrollListener:u,addResizeListener:h,removeResizeListener:v}},render(){return Qa("binder",this.$slots)}}),_r=o.defineComponent({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=o.inject("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?o.withDirectives(Is("follower",this.$slots),[[t]]):Is("follower",this.$slots)}}),Ar="@@mmoContext",hp={mounted(e,{value:t}){e[Ar]={handler:void 0},typeof t=="function"&&(e[Ar].handler=t,Ft("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Ar];typeof t=="function"?n.handler?n.handler!==t&&(yt("mousemoveoutside",e,n.handler),n.handler=t,Ft("mousemoveoutside",e,t)):(e[Ar].handler=t,Ft("mousemoveoutside",e,t)):n.handler&&(yt("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Ar];t&&yt("mousemoveoutside",e,t),e[Ar].handler=void 0}},Br="@@coContext",Yn={mounted(e,{value:t,modifiers:n}){e[Br]={handler:void 0},typeof t=="function"&&(e[Br].handler=t,Ft("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[Br];typeof t=="function"?r.handler?r.handler!==t&&(yt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,Ft("clickoutside",e,t,{capture:n.capture})):(e[Br].handler=t,Ft("clickoutside",e,t,{capture:n.capture})):r.handler&&(yt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[Br];n&&yt("clickoutside",e,n,{capture:t.capture}),e[Br].handler=void 0}};function pp(e,t){console.error(`[vdirs/${e}]: ${t}`)}class mp{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:a}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${a}`,r.set(t,a),this.nextZIndex=a+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&pp("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],a=this.nextZIndex++;`${a}`!==r.style.zIndex&&(r.style.zIndex=`${a}`)})}}const ei=new mp,Ir="@@ziContext",ti={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:a}=n;e[Ir]={enabled:!!a,initialized:!1},a&&(ei.ensureZIndex(e,r),e[Ir].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:a}=n,i=e[Ir].enabled;a&&!i&&(ei.ensureZIndex(e,r),e[Ir].initialized=!0),e[Ir].enabled=!!a},unmounted(e,t){if(!e[Ir].initialized)return;const{value:n={}}=t,{zIndex:r}=n;ei.unregister(e,r)}},gp="@css-render/vue3-ssr";function bp(e,t){return`<style cssr-id="${e}">
14
14
  ${t}
15
15
  </style>`}function vp(e,t,n){const{styles:r,ids:a}=n;a.has(e)||r!==null&&(a.add(e),r.push(bp(e,t)))}const yp=typeof document<"u";function pr(){if(yp)return;const e=o.inject(gp,null);if(e!==null)return{adapter:(t,n)=>vp(t,n,e),context:e}}function Ls(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:qn}=ps(),ni="vueuc-style";function Vs(e){return e&-e}class js{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let a=0;a<t+1;++a)r[a]=0;this.ft=r}add(t,n){if(n===0)return;const{l:r,ft:a}=this;for(t+=1;t<=r;)a[t]+=n,t+=Vs(t)}get(t){return this.sum(t+1)-this.sum(t)}sum(t){if(t===void 0&&(t=this.l),t<=0)return 0;const{ft:n,min:r,l:a}=this;if(t>a)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=n[t],t-=Vs(t);return i}getBound(t){let n=0,r=this.l;for(;r>n;){const a=Math.floor((n+r)/2),i=this.sum(a);if(i>t){r=a;continue}else if(i<t){if(n===a)return this.sum(n+1)<=t?n+1:a;n=a}else return a}return n}}function Ws(e){return typeof e=="string"?document.querySelector(e):e()}const Us=o.defineComponent({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:ep(o.toRef(e,"show")),mergedTo:o.computed(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Qa("lazy-teleport",this.$slots):o.h(o.Teleport,{disabled:this.disabled,to:this.mergedTo},Qa("lazy-teleport",this.$slots)):null}}),ra={top:"bottom",bottom:"top",left:"right",right:"left"},Ks={start:"end",center:"center",end:"start"},ri={top:"height",bottom:"height",left:"width",right:"width"},xp={"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"},wp={"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"},Cp={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Ys={top:!0,bottom:!1,left:!0,right:!1},qs={top:"end",bottom:"start",left:"end",right:"start"};function kp(e,t,n,r,a,i){if(!a||i)return{placement:e,top:0,left:0};const[l,s]=e.split("-");let d=s??"center",c={top:0,left:0};const u=(g,h,v)=>{let b=0,m=0;const w=n[g]-t[h]-t[g];return w>0&&r&&(v?m=Ys[h]?w:-w:b=Ys[h]?w:-w),{left:b,top:m}},f=l==="left"||l==="right";if(d!=="center"){const g=Cp[e],h=ra[g],v=ri[g];if(n[v]>t[v]){if(t[g]+t[v]<n[v]){const b=(n[v]-t[v])/2;t[g]<b||t[h]<b?t[g]<t[h]?(d=Ks[s],c=u(v,h,f)):c=u(v,g,f):d="center"}}else n[v]<t[v]&&t[h]<0&&t[g]>t[h]&&(d=Ks[s])}else{const g=l==="bottom"||l==="top"?"left":"top",h=ra[g],v=ri[g],b=(n[v]-t[v])/2;(t[g]<b||t[h]<b)&&(t[g]>t[h]?(d=qs[g],c=u(v,g,f)):(d=qs[h],c=u(v,h,f)))}let p=l;return t[l]<n[ri[l]]&&t[l]<t[ra[l]]&&(p=ra[l]),{placement:d!=="center"?`${p}-${d}`:p,left:c.left,top:c.top}}function Sp(e,t){return t?wp[e]:xp[e]}function Rp(e,t,n,r,a,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+a)}px`,transform:""};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+a)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+a)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+a)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+a)}px`,transform:""};case"right-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+a)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+a)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+a)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+a)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+a)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+a)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+a)}px`,transform:"translateX(-50%)"}}}const Pp=qn([qn(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),qn(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[qn("> *",{pointerEvents:"all"})])]),Nr=o.defineComponent({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=o.inject("VBinder"),n=nt(()=>e.enabled!==void 0?e.enabled:e.show),r=o.ref(null),a=o.ref(null),i=()=>{const{syncTrigger:p}=e;p.includes("scroll")&&t.addScrollListener(d),p.includes("resize")&&t.addResizeListener(d)},l=()=>{t.removeScrollListener(d),t.removeResizeListener(d)};o.onMounted(()=>{n.value&&(d(),i())});const s=pr();Pp.mount({id:"vueuc/binder",head:!0,anchorMetaName:ni,ssr:s}),o.onBeforeUnmount(()=>{l()}),rp(()=>{n.value&&d()});const d=()=>{if(!n.value)return;const p=r.value;if(p===null)return;const g=t.targetRef,{x:h,y:v,overlap:b}=e,m=h!==void 0&&v!==void 0?up(h,v):Ja(g);p.style.setProperty("--v-target-width",`${Math.round(m.width)}px`),p.style.setProperty("--v-target-height",`${Math.round(m.height)}px`);const{width:w,minWidth:k,placement:S,internalShift:C,flip:x}=e;p.setAttribute("v-placement",S),b?p.setAttribute("v-overlap",""):p.removeAttribute("v-overlap");const{style:y}=p;w==="target"?y.width=`${m.width}px`:w!==void 0?y.width=w:y.width="",k==="target"?y.minWidth=`${m.width}px`:k!==void 0?y.minWidth=k:y.minWidth="";const R=Ja(p),P=Ja(a.value),{left:$,top:N,placement:D}=kp(S,m,R,C,x,b),T=Sp(D,b),{left:M,top:z,transform:A}=Rp(D,P,m,N,$,b);p.setAttribute("v-placement",D),p.style.setProperty("--v-offset-left",`${Math.round($)}px`),p.style.setProperty("--v-offset-top",`${Math.round(N)}px`),p.style.transform=`translateX(${M}) translateY(${z}) ${A}`,p.style.setProperty("--v-transform-origin",T),p.style.transformOrigin=T};o.watch(n,p=>{p?(i(),c()):l()});const c=()=>{o.nextTick().then(d).catch(p=>console.error(p))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(p=>{o.watch(o.toRef(e,p),d)}),["teleportDisabled"].forEach(p=>{o.watch(o.toRef(e,p),c)}),o.watch(o.toRef(e,"syncTrigger"),p=>{p.includes("resize")?t.addResizeListener(d):t.removeResizeListener(d),p.includes("scroll")?t.addScrollListener(d):t.removeScrollListener(d)});const u=hr(),f=nt(()=>{const{to:p}=e;if(p!==void 0)return p;u.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:a,followerRef:r,mergedTo:f,syncPosition:d}},render(){return o.h(Us,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=o.h("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[o.h("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?o.withDirectives(n,[[ti,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var mr=[],Tp=function(){return mr.some(function(e){return e.activeTargets.length>0})},Fp=function(){return mr.some(function(e){return e.skippedTargets.length>0})},Gs="ResizeObserver loop completed with undelivered notifications.",$p=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Gs}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Gs),window.dispatchEvent(e)},ho;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ho||(ho={}));var gr=function(e){return Object.freeze(e)},Dp=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,gr(this)}return e}(),Xs=function(){function e(t,n,r,a){return this.x=t,this.y=n,this.width=r,this.height=a,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,gr(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,a=t.top,i=t.right,l=t.bottom,s=t.left,d=t.width,c=t.height;return{x:n,y:r,top:a,right:i,bottom:l,left:s,width:d,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),oi=function(e){return e instanceof SVGElement&&"getBBox"in e},Qs=function(e){if(oi(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var a=e,i=a.offsetWidth,l=a.offsetHeight;return!(i||l||e.getClientRects().length)},Zs=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},zp=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},po=typeof window<"u"?window:{},oa=new WeakMap,Js=/auto|scroll/,Op=/^tb|vertical/,Mp=/msie|trident/i.test(po.navigator&&po.navigator.userAgent),Fn=function(e){return parseFloat(e||"0")},Hr=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Dp((n?t:e)||0,(n?e:t)||0)},ed=gr({devicePixelContentBoxSize:Hr(),borderBoxSize:Hr(),contentBoxSize:Hr(),contentRect:new Xs(0,0,0,0)}),td=function(e,t){if(t===void 0&&(t=!1),oa.has(e)&&!t)return oa.get(e);if(Qs(e))return oa.set(e,ed),ed;var n=getComputedStyle(e),r=oi(e)&&e.ownerSVGElement&&e.getBBox(),a=!Mp&&n.boxSizing==="border-box",i=Op.test(n.writingMode||""),l=!r&&Js.test(n.overflowY||""),s=!r&&Js.test(n.overflowX||""),d=r?0:Fn(n.paddingTop),c=r?0:Fn(n.paddingRight),u=r?0:Fn(n.paddingBottom),f=r?0:Fn(n.paddingLeft),p=r?0:Fn(n.borderTopWidth),g=r?0:Fn(n.borderRightWidth),h=r?0:Fn(n.borderBottomWidth),v=r?0:Fn(n.borderLeftWidth),b=f+c,m=d+u,w=v+g,k=p+h,S=s?e.offsetHeight-k-e.clientHeight:0,C=l?e.offsetWidth-w-e.clientWidth:0,x=a?b+w:0,y=a?m+k:0,R=r?r.width:Fn(n.width)-x-C,P=r?r.height:Fn(n.height)-y-S,$=R+b+C+w,N=P+m+S+k,D=gr({devicePixelContentBoxSize:Hr(Math.round(R*devicePixelRatio),Math.round(P*devicePixelRatio),i),borderBoxSize:Hr($,N,i),contentBoxSize:Hr(R,P,i),contentRect:new Xs(f,d,R,P)});return oa.set(e,D),D},nd=function(e,t,n){var r=td(e,n),a=r.borderBoxSize,i=r.contentBoxSize,l=r.devicePixelContentBoxSize;switch(t){case ho.DEVICE_PIXEL_CONTENT_BOX:return l;case ho.BORDER_BOX:return a;default:return i}},Ep=function(){function e(t){var n=td(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=gr([n.borderBoxSize]),this.contentBoxSize=gr([n.contentBoxSize]),this.devicePixelContentBoxSize=gr([n.devicePixelContentBoxSize])}return e}(),rd=function(e){if(Qs(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},_p=function(){var e=1/0,t=[];mr.forEach(function(l){if(l.activeTargets.length!==0){var s=[];l.activeTargets.forEach(function(c){var u=new Ep(c.target),f=rd(c.target);s.push(u),c.lastReportedSize=nd(c.target,c.observedBox),f<e&&(e=f)}),t.push(function(){l.callback.call(l.observer,s,l.observer)}),l.activeTargets.splice(0,l.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var a=r[n];a()}return e},od=function(e){mr.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(a){a.isActive()&&(rd(a.target)>e?n.activeTargets.push(a):n.skippedTargets.push(a))})})},Ap=function(){var e=0;for(od(e);Tp();)e=_p(),od(e);return Fp()&&$p(),e>0},ai,ad=[],Bp=function(){return ad.splice(0).forEach(function(e){return e()})},Ip=function(e){if(!ai){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Bp()}).observe(n,r),ai=function(){n.textContent="".concat(t?t--:t++)}}ad.push(e),ai()},Np=function(e){Ip(function(){requestAnimationFrame(e)})},aa=0,Hp=function(){return!!aa},Lp=250,Vp={attributes:!0,characterData:!0,childList:!0,subtree:!0},id=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],ld=function(e){return e===void 0&&(e=0),Date.now()+e},ii=!1,jp=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=Lp),!ii){ii=!0;var r=ld(t);Np(function(){var a=!1;try{a=Ap()}finally{if(ii=!1,t=r-ld(),!Hp())return;a?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,Vp)};document.body?n():po.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),id.forEach(function(n){return po.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),id.forEach(function(n){return po.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),li=new jp,sd=function(e){!aa&&e>0&&li.start(),aa+=e,!aa&&li.stop()},Wp=function(e){return!oi(e)&&!zp(e)&&getComputedStyle(e).display==="inline"},Up=function(){function e(t,n){this.target=t,this.observedBox=n||ho.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=nd(this.target,this.observedBox,!0);return Wp(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Kp=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),ia=new WeakMap,dd=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},la=function(){function e(){}return e.connect=function(t,n){var r=new Kp(t,n);ia.set(t,r)},e.observe=function(t,n,r){var a=ia.get(t),i=a.observationTargets.length===0;dd(a.observationTargets,n)<0&&(i&&mr.push(a),a.observationTargets.push(new Up(n,r&&r.box)),sd(1),li.schedule())},e.unobserve=function(t,n){var r=ia.get(t),a=dd(r.observationTargets,n),i=r.observationTargets.length===1;a>=0&&(i&&mr.splice(mr.indexOf(r),1),r.observationTargets.splice(a,1),sd(-1))},e.disconnect=function(t){var n=this,r=ia.get(t);r.observationTargets.slice().forEach(function(a){return n.unobserve(t,a.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Yp=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");la.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Zs(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");la.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Zs(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");la.unobserve(this,t)},e.prototype.disconnect=function(){la.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class qp{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Yp)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const mo=new qp,Lr=o.defineComponent({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=o.getCurrentInstance().proxy;function r(a){const{onResize:i}=e;i!==void 0&&i(a)}o.onMounted(()=>{const a=n.$el;if(a===void 0){Ls("resize-observer","$el does not exist.");return}if(a.nextElementSibling!==a.nextSibling&&a.nodeType===3&&a.nodeValue!==""){Ls("resize-observer","$el can not be observed (it may be a text node).");return}a.nextElementSibling!==null&&(mo.registerHandler(a.nextElementSibling,r),t=!0)}),o.onBeforeUnmount(()=>{t&&mo.unregisterHandler(n.$el.nextElementSibling)})},render(){return o.renderSlot(this.$slots,"default")}});let sa;function Gp(){return typeof document>"u"?!1:(sa===void 0&&("matchMedia"in window?sa=window.matchMedia("(pointer:coarse)").matches:sa=!1),sa)}let si;function cd(){return typeof document>"u"?1:(si===void 0&&(si="chrome"in window?window.devicePixelRatio:1),si)}const ud="VVirtualListXScroll";function Xp({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){const r=o.ref(0),a=o.ref(0),i=o.computed(()=>{const c=e.value;if(c.length===0)return null;const u=new js(c.length,0);return c.forEach((f,p)=>{u.add(p,f.width)}),u}),l=nt(()=>{const c=i.value;return c!==null?Math.max(c.getBound(a.value)-1,0):0}),s=c=>{const u=i.value;return u!==null?u.sum(c):0},d=nt(()=>{const c=i.value;return c!==null?Math.min(c.getBound(a.value+r.value)+1,e.value.length-1):0});return o.provide(ud,{startIndexRef:l,endIndexRef:d,columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:s}),{listWidthRef:r,scrollLeftRef:a}}const fd=o.defineComponent({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:n,getLeft:r,renderColRef:a,renderItemWithColsRef:i}=o.inject(ud);return{startIndex:e,endIndex:t,columns:n,renderCol:a,renderItemWithCols:i,getLeft:r}},render(){const{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:a,getLeft:i,item:l}=this;if(a!=null)return a({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:l,getLeft:i});if(r!=null){const s=[];for(let d=e;d<=t;++d){const c=n[d];s.push(r({column:c,left:i(d),item:l}))}return s}return null}}),Qp=qn(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[qn("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[qn("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),br=o.defineComponent({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=pr();Qp.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:ni,ssr:t}),o.onMounted(()=>{const{defaultScrollIndex:T,defaultScrollKey:M}=e;T!=null?b({index:T}):M!=null&&b({key:M})});let n=!1,r=!1;o.onActivated(()=>{if(n=!1,!r){r=!0;return}b({top:g.value,left:l.value})}),o.onDeactivated(()=>{n=!0,r||(r=!0)});const a=nt(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let T=0;return e.columns.forEach(M=>{T+=M.width}),T}),i=o.computed(()=>{const T=new Map,{keyField:M}=e;return e.items.forEach((z,A)=>{T.set(z[M],A)}),T}),{scrollLeftRef:l,listWidthRef:s}=Xp({columnsRef:o.toRef(e,"columns"),renderColRef:o.toRef(e,"renderCol"),renderItemWithColsRef:o.toRef(e,"renderItemWithCols")}),d=o.ref(null),c=o.ref(void 0),u=new Map,f=o.computed(()=>{const{items:T,itemSize:M,keyField:z}=e,A=new js(T.length,M);return T.forEach((_,U)=>{const te=_[z],ee=u.get(te);ee!==void 0&&A.add(U,ee)}),A}),p=o.ref(0),g=o.ref(0),h=nt(()=>Math.max(f.value.getBound(g.value-dn(e.paddingTop))-1,0)),v=o.computed(()=>{const{value:T}=c;if(T===void 0)return[];const{items:M,itemSize:z}=e,A=h.value,_=Math.min(A+Math.ceil(T/z+1),M.length-1),U=[];for(let te=A;te<=_;++te)U.push(M[te]);return U}),b=(T,M)=>{if(typeof T=="number"){S(T,M,"auto");return}const{left:z,top:A,index:_,key:U,position:te,behavior:ee,debounce:Q=!0}=T;if(z!==void 0||A!==void 0)S(z,A,ee);else if(_!==void 0)k(_,ee,Q);else if(U!==void 0){const H=i.value.get(U);H!==void 0&&k(H,ee,Q)}else te==="bottom"?S(0,Number.MAX_SAFE_INTEGER,ee):te==="top"&&S(0,0,ee)};let m,w=null;function k(T,M,z){const{value:A}=f,_=A.sum(T)+dn(e.paddingTop);if(!z)d.value.scrollTo({left:0,top:_,behavior:M});else{m=T,w!==null&&window.clearTimeout(w),w=window.setTimeout(()=>{m=void 0,w=null},16);const{scrollTop:U,offsetHeight:te}=d.value;if(_>U){const ee=A.get(T);_+ee<=U+te||d.value.scrollTo({left:0,top:_+ee-te,behavior:M})}else d.value.scrollTo({left:0,top:_,behavior:M})}}function S(T,M,z){d.value.scrollTo({left:T,top:M,behavior:z})}function C(T,M){var z,A,_;if(n||e.ignoreItemResize||D(M.target))return;const{value:U}=f,te=i.value.get(T),ee=U.get(te),Q=(_=(A=(z=M.borderBoxSize)===null||z===void 0?void 0:z[0])===null||A===void 0?void 0:A.blockSize)!==null&&_!==void 0?_:M.contentRect.height;if(Q===ee)return;Q-e.itemSize===0?u.delete(T):u.set(T,Q-e.itemSize);const B=Q-ee;if(B===0)return;U.add(te,B);const q=d.value;if(q!=null){if(m===void 0){const ne=U.sum(te);q.scrollTop>ne&&q.scrollBy(0,B)}else if(te<m)q.scrollBy(0,B);else if(te===m){const ne=U.sum(te);Q+ne>q.scrollTop+q.offsetHeight&&q.scrollBy(0,B)}N()}p.value++}const x=!Gp();let y=!1;function R(T){var M;(M=e.onScroll)===null||M===void 0||M.call(e,T),(!x||!y)&&N()}function P(T){var M;if((M=e.onWheel)===null||M===void 0||M.call(e,T),x){const z=d.value;if(z!=null){if(T.deltaX===0&&(z.scrollTop===0&&T.deltaY<=0||z.scrollTop+z.offsetHeight>=z.scrollHeight&&T.deltaY>=0))return;T.preventDefault(),z.scrollTop+=T.deltaY/cd(),z.scrollLeft+=T.deltaX/cd(),N(),y=!0,Qo(()=>{y=!1})}}}function $(T){if(n||D(T.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(T.contentRect.height===c.value)return}else if(T.contentRect.height===c.value&&T.contentRect.width===s.value)return;c.value=T.contentRect.height,s.value=T.contentRect.width;const{onResize:M}=e;M!==void 0&&M(T)}function N(){const{value:T}=d;T!=null&&(g.value=T.scrollTop,l.value=T.scrollLeft)}function D(T){let M=T;for(;M!==null;){if(M.style.display==="none")return!0;M=M.parentElement}return!1}return{listHeight:c,listStyle:{overflow:"auto"},keyToIndex:i,itemsStyle:o.computed(()=>{const{itemResizable:T}=e,M=Lt(f.value.sum());return p.value,[e.itemsStyle,{boxSizing:"content-box",width:Lt(a.value),height:T?"":M,minHeight:T?M:"",paddingTop:Lt(e.paddingTop),paddingBottom:Lt(e.paddingBottom)}]}),visibleItemsStyle:o.computed(()=>(p.value,{transform:`translateY(${Lt(f.value.sum(h.value))})`})),viewportItems:v,listElRef:d,itemsElRef:o.ref(null),scrollTo:b,handleListResize:$,handleListScroll:R,handleListWheel:P,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return o.h(Lr,{onResize:this.handleListResize},{default:()=>{var a,i;return o.h("div",o.mergeProps(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?o.h("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[o.h(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:l,renderItemWithCols:s}=this;return this.viewportItems.map(d=>{const c=d[t],u=n.get(c),f=l!=null?o.h(fd,{index:u,item:d}):void 0,p=s!=null?o.h(fd,{index:u,item:d}):void 0,g=this.$slots.default({item:d,renderedCols:f,renderedItemWithCols:p,index:u})[0];return e?o.h(Lr,{key:c,onResize:h=>this.handleItemResize(c,h)},{default:()=>g}):(g.key=c,g)})}})]):(i=(a=this.$slots).empty)===null||i===void 0?void 0:i.call(a)])}})}}),_n="v-hidden",Zp=qn("[v-hidden]",{display:"none!important"}),hd=o.defineComponent({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const n=o.ref(null),r=o.ref(null);function a(l){const{value:s}=n,{getCounter:d,getTail:c}=e;let u;if(d!==void 0?u=d():u=r.value,!s||!u)return;u.hasAttribute(_n)&&u.removeAttribute(_n);const{children:f}=s;if(l.showAllItemsBeforeCalculate)for(const k of f)k.hasAttribute(_n)&&k.removeAttribute(_n);const p=s.offsetWidth,g=[],h=t.tail?c==null?void 0:c():null;let v=h?h.offsetWidth:0,b=!1;const m=s.children.length-(t.tail?1:0);for(let k=0;k<m-1;++k){if(k<0)continue;const S=f[k];if(b){S.hasAttribute(_n)||S.setAttribute(_n,"");continue}else S.hasAttribute(_n)&&S.removeAttribute(_n);const C=S.offsetWidth;if(v+=C,g[k]=C,v>p){const{updateCounter:x}=e;for(let y=k;y>=0;--y){const R=m-1-y;x!==void 0?x(R):u.textContent=`${R}`;const P=u.offsetWidth;if(v-=g[y],v+P<=p||y===0){b=!0,k=y-1,h&&(k===-1?(h.style.maxWidth=`${p-P}px`,h.style.boxSizing="border-box"):h.style.maxWidth="");const{onUpdateCount:$}=e;$&&$(R);break}}}}const{onUpdateOverflow:w}=e;b?w!==void 0&&w(!0):(w!==void 0&&w(!1),u.setAttribute(_n,""))}const i=pr();return Zp.mount({id:"vueuc/overflow",head:!0,anchorMetaName:ni,ssr:i}),o.onMounted(()=>a({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:a}},render(){const{$slots:e}=this;return o.nextTick(()=>this.sync({showAllItemsBeforeCalculate:!1})),o.h("div",{class:"v-overflow",ref:"selfRef"},[o.renderSlot(e,"default"),e.counter?e.counter():o.h("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function pd(e){return e instanceof HTMLElement}function md(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(pd(n)&&(bd(n)||md(n)))return!0}return!1}function gd(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(pd(n)&&(bd(n)||gd(n)))return!0}return!1}function bd(e){if(!Jp(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Jp(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let go=[];const vd=o.defineComponent({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=so(),n=o.ref(null),r=o.ref(null);let a=!1,i=!1;const l=typeof document>"u"?null:document.activeElement;function s(){return go[go.length-1]===t}function d(b){var m;b.code==="Escape"&&s()&&((m=e.onEsc)===null||m===void 0||m.call(e,b))}o.onMounted(()=>{o.watch(()=>e.active,b=>{b?(f(),Ft("keydown",document,d)):(yt("keydown",document,d),a&&p())},{immediate:!0})}),o.onBeforeUnmount(()=>{yt("keydown",document,d),a&&p()});function c(b){if(!i&&s()){const m=u();if(m===null||m.contains(jn(b)))return;g("first")}}function u(){const b=n.value;if(b===null)return null;let m=b;for(;m=m.nextSibling,!(m===null||m instanceof Element&&m.tagName==="DIV"););return m}function f(){var b;if(!e.disabled){if(go.push(t),e.autoFocus){const{initialFocusTo:m}=e;m===void 0?g("first"):(b=Ws(m))===null||b===void 0||b.focus({preventScroll:!0})}a=!0,document.addEventListener("focus",c,!0)}}function p(){var b;if(e.disabled||(document.removeEventListener("focus",c,!0),go=go.filter(w=>w!==t),s()))return;const{finalFocusTo:m}=e;m!==void 0?(b=Ws(m))===null||b===void 0||b.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&l instanceof HTMLElement&&(i=!0,l.focus({preventScroll:!0}),i=!1)}function g(b){if(s()&&e.active){const m=n.value,w=r.value;if(m!==null&&w!==null){const k=u();if(k==null||k===w){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const S=b==="first"?md(k):gd(k);i=!1,S||(i=!0,m.focus({preventScroll:!0}),i=!1)}}}function h(b){if(i)return;const m=u();m!==null&&(b.relatedTarget!==null&&m.contains(b.relatedTarget)?g("last"):g("first"))}function v(b){i||(b.relatedTarget!==null&&b.relatedTarget===n.value?g("last"):g("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:h,handleEndFocus:v}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return o.h(o.Fragment,null,[o.h("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),o.h("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function yd(e,t){t&&(o.onMounted(()=>{const{value:n}=e;n&&mo.registerHandler(n,t)}),o.watch(e,(n,r)=>{r&&mo.unregisterHandler(r)},{deep:!1}),o.onBeforeUnmount(()=>{const{value:n}=e;n&&mo.unregisterHandler(n)}))}function da(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}const em=/^(\d|\.)+$/,xd=/(\d|\.)+/;function Bt(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const a=(e+n)*t;return a===0?"0":`${a}px`}else if(typeof e=="string")if(em.test(e)){const a=(Number(e)+n)*t;return r?a===0?"0":`${a}px`:`${a}`}else{const a=xd.exec(e);return a?e.replace(xd,String((Number(a[0])+n)*t)):e}return e}function wd(e){const{left:t,right:n,top:r,bottom:a}=en(e);return`${r} ${t} ${a} ${n}`}function tm(e,t){if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}let di;function nm(){return di===void 0&&(di=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),di}const Cd=new WeakSet;function bo(e){Cd.add(e)}function rm(e){return!Cd.has(e)}function kd(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Sd(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 Rd=new Set;function ht(e,t){const n=`[naive/${e}]: ${t}`;Rd.has(n)||(Rd.add(n),console.error(n))}function tn(e,t){console.error(`[naive/${e}]: ${t}`)}function ci(e,t){throw new Error(`[naive/${e}]: ${t}`)}function ie(e,...t){if(Array.isArray(e))e.forEach(n=>ie(n,...t));else return e(...t)}function Pd(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function Td(e){return t=>{t?e.value=t.$el:e.value=null}}function ca(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(o.createTextVNode(String(r)));return}if(Array.isArray(r)){ca(r,t,n);return}if(r.type===o.Fragment){if(r.children===null)return;Array.isArray(r.children)&&ca(r.children,t,n)}else{if(r.type===o.Comment&&t)return;n.push(r)}}}),n}function om(e,t="default",n=void 0){const r=e[t];if(!r)return tn("getFirstSlotVNode",`slot[${t}] is empty`),null;const a=ca(r(n));return a.length===1?a[0]:(tn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function am(e,t="default",n=[]){const a=e.$slots[t];return a===void 0?n:a()}function ui(e,t=[],n){const r={};return t.forEach(a=>{r[a]=e[a]}),Object.assign(r,n)}function fi(e){return Object.keys(e)}function vo(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}function Fd(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function un(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?o.createTextVNode(e):typeof e=="number"?o.createTextVNode(String(e)):null}function yo(e){return e.some(t=>o.isVNode(t)?!(t.type===o.Comment||t.type===o.Fragment&&!yo(t.children)):!0)?e:null}function st(e,t){return e&&yo(e())||t()}function nn(e,t,n){return e&&yo(e(t))||n(t)}function Ut(e,t){const n=e&&yo(e());return t(n||null)}function hi(e){return!(e&&yo(e()))}const pi=o.defineComponent({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),An="n-config-provider",$d="n";function gt(e={},t={defaultBordered:!0}){const n=o.inject(An,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:o.computed(()=>{var r,a;const{bordered:i}=e;return i!==void 0?i:(a=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&a!==void 0?a:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:o.shallowRef($d),namespaceRef:o.computed(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function Dd(){const e=o.inject(An,null);return e?e.mergedClsPrefixRef:o.shallowRef($d)}function $t(e,t,n,r){n||ci("useThemeClass","cssVarsRef is not passed");const a=o.inject(An,null),i=a==null?void 0:a.mergedThemeHashRef,l=a==null?void 0:a.styleMountTarget,s=o.ref(""),d=pr();let c;const u=`__${e}`,f=()=>{let p=u;const g=t?t.value:void 0,h=i==null?void 0:i.value;h&&(p+=`-${h}`),g&&(p+=`-${g}`);const{themeOverrides:v,builtinThemeOverrides:b}=r;v&&(p+=`-${Ua(JSON.stringify(v))}`),b&&(p+=`-${Ua(JSON.stringify(b))}`),s.value=p,c=()=>{const m=n.value;let w="";for(const k in m)w+=`${k}: ${m[k]};`;E(`.${p}`,w).mount({id:p,ssr:d,parent:l}),c=void 0}};return o.watchEffect(()=>{f()}),{themeClass:s,onRender:()=>{c==null||c()}}}const mi="n-form-item";function Bn(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const a=o.inject(mi,null);o.provide(mi,null);const i=o.computed(n?()=>n(a):()=>{const{size:d}=e;if(d)return d;if(a){const{mergedSize:c}=a;if(c.value!==void 0)return c.value}return t}),l=o.computed(r?()=>r(a):()=>{const{disabled:d}=e;return d!==void 0?d:a?a.disabled.value:!1}),s=o.computed(()=>{const{status:d}=e;return d||(a==null?void 0:a.mergedValidationStatus.value)});return o.onBeforeUnmount(()=>{a&&a.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:l,mergedStatusRef:s,nTriggerFormBlur(){a&&a.handleContentBlur()},nTriggerFormChange(){a&&a.handleContentChange()},nTriggerFormFocus(){a&&a.handleContentFocus()},nTriggerFormInput(){a&&a.handleContentInput()}}}const im={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 gi(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function xo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):l;a=e.formattingValues[s]||e.formattingValues[l]}else{const l=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[s]||e.values[l]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}function wo(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const l=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(s)?sm(s,f=>f.test(l)):lm(s,f=>f.test(l));let c;c=e.valueCallback?e.valueCallback(d):d,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(l.length);return{value:c,rest:u}}}function lm(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function sm(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function dm(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],i=t.match(e.parsePattern);if(!i)return null;let l=e.valueCallback?e.valueCallback(i[0]):i[0];l=n.valueCallback?n.valueCallback(l):l;const s=t.slice(a.length);return{value:l,rest:s}}}function Xe(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}let cm={};function Vr(){return cm}function wn(e,t){var s,d,c,u;const n=Vr(),r=(t==null?void 0:t.weekStartsOn)??((d=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:d.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,a=Xe(e),i=a.getDay(),l=(i<r?7:0)+i-r;return a.setDate(a.getDate()-l),a.setHours(0,0,0,0),a}function um(e,t,n){const r=wn(e,n),a=wn(t,n);return+r==+a}const fm={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},hm=(e,t,n)=>{let r;const a=fm[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},pm={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mm=(e,t,n,r)=>pm[e],gm={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},bm={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vm={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"]},ym={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"]},xm={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"}},wm={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"}},Cm={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:xo({values:gm,defaultWidth:"wide"}),quarter:xo({values:bm,defaultWidth:"wide",argumentCallback:e=>e-1}),month:xo({values:vm,defaultWidth:"wide"}),day:xo({values:ym,defaultWidth:"wide"}),dayPeriod:xo({values:xm,defaultWidth:"wide",formattingValues:wm,defaultFormattingWidth:"wide"})},km=/^(\d+)(th|st|nd|rd)?/i,Sm=/\d+/i,Rm={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},Pm={any:[/^b/i,/^(a|c)/i]},Tm={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Fm={any:[/1/i,/2/i,/3/i,/4/i]},$m={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},Dm={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]},zm={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},Om={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]},Mm={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},Em={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}},_m={ordinalNumber:dm({matchPattern:km,parsePattern:Sm,valueCallback:e=>parseInt(e,10)}),era:wo({matchPatterns:Rm,defaultMatchWidth:"wide",parsePatterns:Pm,defaultParseWidth:"any"}),quarter:wo({matchPatterns:Tm,defaultMatchWidth:"wide",parsePatterns:Fm,defaultParseWidth:"any",valueCallback:e=>e+1}),month:wo({matchPatterns:$m,defaultMatchWidth:"wide",parsePatterns:Dm,defaultParseWidth:"any"}),day:wo({matchPatterns:zm,defaultMatchWidth:"wide",parsePatterns:Om,defaultParseWidth:"any"}),dayPeriod:wo({matchPatterns:Mm,defaultMatchWidth:"any",parsePatterns:Em,defaultParseWidth:"any"})},Am={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Bm={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Im={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nm={date:gi({formats:Am,defaultWidth:"full"}),time:gi({formats:Bm,defaultWidth:"full"}),dateTime:gi({formats:Im,defaultWidth:"full"})},bi={code:"en-US",formatDistance:hm,formatLong:Nm,formatRelative:mm,localize:Cm,match:_m,options:{weekStartsOn:0,firstWeekContainsDate:1}},Hm={name:"en-US",locale:bi};var zd=typeof global=="object"&&global&&global.Object===Object&&global,Lm=typeof self=="object"&&self&&self.Object===Object&&self,$n=zd||Lm||Function("return this")(),Gn=$n.Symbol,Od=Object.prototype,Vm=Od.hasOwnProperty,jm=Od.toString,Co=Gn?Gn.toStringTag:void 0;function Wm(e){var t=Vm.call(e,Co),n=e[Co];try{e[Co]=void 0;var r=!0}catch{}var a=jm.call(e);return r&&(t?e[Co]=n:delete e[Co]),a}var Um=Object.prototype,Km=Um.toString;function Ym(e){return Km.call(e)}var qm="[object Null]",Gm="[object Undefined]",Md=Gn?Gn.toStringTag:void 0;function vr(e){return e==null?e===void 0?Gm:qm:Md&&Md in Object(e)?Wm(e):Ym(e)}function Xn(e){return e!=null&&typeof e=="object"}var Xm="[object Symbol]";function vi(e){return typeof e=="symbol"||Xn(e)&&vr(e)==Xm}function Ed(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var pn=Array.isArray,_d=Gn?Gn.prototype:void 0,Ad=_d?_d.toString:void 0;function Bd(e){if(typeof e=="string")return e;if(pn(e))return Ed(e,Bd)+"";if(vi(e))return Ad?Ad.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Qn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function yi(e){return e}var Qm="[object AsyncFunction]",Zm="[object Function]",Jm="[object GeneratorFunction]",eg="[object Proxy]";function xi(e){if(!Qn(e))return!1;var t=vr(e);return t==Zm||t==Jm||t==Qm||t==eg}var wi=$n["__core-js_shared__"],Id=function(){var e=/[^.]+$/.exec(wi&&wi.keys&&wi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tg(e){return!!Id&&Id in e}var ng=Function.prototype,rg=ng.toString;function yr(e){if(e!=null){try{return rg.call(e)}catch{}try{return e+""}catch{}}return""}var og=/[\\^$.*+?()[\]{}|]/g,ag=/^\[object .+?Constructor\]$/,ig=Function.prototype,lg=Object.prototype,sg=ig.toString,dg=lg.hasOwnProperty,cg=RegExp("^"+sg.call(dg).replace(og,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ug(e){if(!Qn(e)||tg(e))return!1;var t=xi(e)?cg:ag;return t.test(yr(e))}function fg(e,t){return e==null?void 0:e[t]}function xr(e,t){var n=fg(e,t);return ug(n)?n:void 0}var Ci=xr($n,"WeakMap"),Nd=Object.create,hg=function(){function e(){}return function(t){if(!Qn(t))return{};if(Nd)return Nd(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function pg(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function mg(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var gg=800,bg=16,vg=Date.now;function yg(e){var t=0,n=0;return function(){var r=vg(),a=bg-(r-n);if(n=r,a>0){if(++t>=gg)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function xg(e){return function(){return e}}var ua=function(){try{var e=xr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),wg=ua?function(e,t){return ua(e,"toString",{configurable:!0,enumerable:!1,value:xg(t),writable:!0})}:yi,Cg=yg(wg),kg=9007199254740991,Sg=/^(?:0|[1-9]\d*)$/;function ki(e,t){var n=typeof e;return t=t??kg,!!t&&(n=="number"||n!="symbol"&&Sg.test(e))&&e>-1&&e%1==0&&e<t}function Si(e,t,n){t=="__proto__"&&ua?ua(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ko(e,t){return e===t||e!==e&&t!==t}var Rg=Object.prototype,Pg=Rg.hasOwnProperty;function Tg(e,t,n){var r=e[t];(!(Pg.call(e,t)&&ko(r,n))||n===void 0&&!(t in e))&&Si(e,t,n)}function Fg(e,t,n,r){var a=!n;n||(n={});for(var i=-1,l=t.length;++i<l;){var s=t[i],d=void 0;d===void 0&&(d=e[s]),a?Si(n,s,d):Tg(n,s,d)}return n}var Hd=Math.max;function $g(e,t,n){return t=Hd(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=Hd(r.length-t,0),l=Array(i);++a<i;)l[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(l),pg(e,this,s)}}function Dg(e,t){return Cg($g(e,t,yi),e+"")}var zg=9007199254740991;function Ri(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zg}function jr(e){return e!=null&&Ri(e.length)&&!xi(e)}function Og(e,t,n){if(!Qn(n))return!1;var r=typeof t;return(r=="number"?jr(n)&&ki(t,n.length):r=="string"&&t in n)?ko(n[t],e):!1}function Mg(e){return Dg(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,l=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,l&&Og(n[0],n[1],l)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}var Eg=Object.prototype;function Pi(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Eg;return e===n}function _g(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Ag="[object Arguments]";function Ld(e){return Xn(e)&&vr(e)==Ag}var Vd=Object.prototype,Bg=Vd.hasOwnProperty,Ig=Vd.propertyIsEnumerable,fa=Ld(function(){return arguments}())?Ld:function(e){return Xn(e)&&Bg.call(e,"callee")&&!Ig.call(e,"callee")};function Ng(){return!1}var jd=typeof vt=="object"&&vt&&!vt.nodeType&&vt,Wd=jd&&typeof module=="object"&&module&&!module.nodeType&&module,Hg=Wd&&Wd.exports===jd,Ud=Hg?$n.Buffer:void 0,Lg=Ud?Ud.isBuffer:void 0,ha=Lg||Ng,Vg="[object Arguments]",jg="[object Array]",Wg="[object Boolean]",Ug="[object Date]",Kg="[object Error]",Yg="[object Function]",qg="[object Map]",Gg="[object Number]",Xg="[object Object]",Qg="[object RegExp]",Zg="[object Set]",Jg="[object String]",eb="[object WeakMap]",tb="[object ArrayBuffer]",nb="[object DataView]",rb="[object Float32Array]",ob="[object Float64Array]",ab="[object Int8Array]",ib="[object Int16Array]",lb="[object Int32Array]",sb="[object Uint8Array]",db="[object Uint8ClampedArray]",cb="[object Uint16Array]",ub="[object Uint32Array]",Tt={};Tt[rb]=Tt[ob]=Tt[ab]=Tt[ib]=Tt[lb]=Tt[sb]=Tt[db]=Tt[cb]=Tt[ub]=!0,Tt[Vg]=Tt[jg]=Tt[tb]=Tt[Wg]=Tt[nb]=Tt[Ug]=Tt[Kg]=Tt[Yg]=Tt[qg]=Tt[Gg]=Tt[Xg]=Tt[Qg]=Tt[Zg]=Tt[Jg]=Tt[eb]=!1;function fb(e){return Xn(e)&&Ri(e.length)&&!!Tt[vr(e)]}function hb(e){return function(t){return e(t)}}var Kd=typeof vt=="object"&&vt&&!vt.nodeType&&vt,So=Kd&&typeof module=="object"&&module&&!module.nodeType&&module,pb=So&&So.exports===Kd,Ti=pb&&zd.process,Yd=function(){try{var e=So&&So.require&&So.require("util").types;return e||Ti&&Ti.binding&&Ti.binding("util")}catch{}}(),qd=Yd&&Yd.isTypedArray,Fi=qd?hb(qd):fb,mb=Object.prototype,gb=mb.hasOwnProperty;function Gd(e,t){var n=pn(e),r=!n&&fa(e),a=!n&&!r&&ha(e),i=!n&&!r&&!a&&Fi(e),l=n||r||a||i,s=l?_g(e.length,String):[],d=s.length;for(var c in e)(t||gb.call(e,c))&&!(l&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ki(c,d)))&&s.push(c);return s}function Xd(e,t){return function(n){return e(t(n))}}var bb=Xd(Object.keys,Object),vb=Object.prototype,yb=vb.hasOwnProperty;function xb(e){if(!Pi(e))return bb(e);var t=[];for(var n in Object(e))yb.call(e,n)&&n!="constructor"&&t.push(n);return t}function $i(e){return jr(e)?Gd(e):xb(e)}function wb(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Cb=Object.prototype,kb=Cb.hasOwnProperty;function Sb(e){if(!Qn(e))return wb(e);var t=Pi(e),n=[];for(var r in e)r=="constructor"&&(t||!kb.call(e,r))||n.push(r);return n}function Qd(e){return jr(e)?Gd(e,!0):Sb(e)}var Rb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pb=/^\w*$/;function Di(e,t){if(pn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||vi(e)?!0:Pb.test(e)||!Rb.test(e)||t!=null&&e in Object(t)}var Ro=xr(Object,"create");function Tb(){this.__data__=Ro?Ro(null):{},this.size=0}function Fb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $b="__lodash_hash_undefined__",Db=Object.prototype,zb=Db.hasOwnProperty;function Ob(e){var t=this.__data__;if(Ro){var n=t[e];return n===$b?void 0:n}return zb.call(t,e)?t[e]:void 0}var Mb=Object.prototype,Eb=Mb.hasOwnProperty;function _b(e){var t=this.__data__;return Ro?t[e]!==void 0:Eb.call(t,e)}var Ab="__lodash_hash_undefined__";function Bb(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ro&&t===void 0?Ab:t,this}function wr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wr.prototype.clear=Tb,wr.prototype.delete=Fb,wr.prototype.get=Ob,wr.prototype.has=_b,wr.prototype.set=Bb;function Ib(){this.__data__=[],this.size=0}function pa(e,t){for(var n=e.length;n--;)if(ko(e[n][0],t))return n;return-1}var Nb=Array.prototype,Hb=Nb.splice;function Lb(e){var t=this.__data__,n=pa(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Hb.call(t,n,1),--this.size,!0}function Vb(e){var t=this.__data__,n=pa(t,e);return n<0?void 0:t[n][1]}function jb(e){return pa(this.__data__,e)>-1}function Wb(e,t){var n=this.__data__,r=pa(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function In(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}In.prototype.clear=Ib,In.prototype.delete=Lb,In.prototype.get=Vb,In.prototype.has=jb,In.prototype.set=Wb;var Po=xr($n,"Map");function Ub(){this.size=0,this.__data__={hash:new wr,map:new(Po||In),string:new wr}}function Kb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ma(e,t){var n=e.__data__;return Kb(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Yb(e){var t=ma(this,e).delete(e);return this.size-=t?1:0,t}function qb(e){return ma(this,e).get(e)}function Gb(e){return ma(this,e).has(e)}function Xb(e,t){var n=ma(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Nn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Nn.prototype.clear=Ub,Nn.prototype.delete=Yb,Nn.prototype.get=qb,Nn.prototype.has=Gb,Nn.prototype.set=Xb;var Qb="Expected a function";function zi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Qb);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var l=e.apply(this,r);return n.cache=i.set(a,l)||i,l};return n.cache=new(zi.Cache||Nn),n}zi.Cache=Nn;var Zb=500;function Jb(e){var t=zi(e,function(r){return n.size===Zb&&n.clear(),r}),n=t.cache;return t}var ev=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tv=/\\(\\)?/g,nv=Jb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ev,function(n,r,a,i){t.push(a?i.replace(tv,"$1"):r||n)}),t});function Zd(e){return e==null?"":Bd(e)}function Jd(e,t){return pn(e)?e:Di(e,t)?[e]:nv(Zd(e))}function ga(e){if(typeof e=="string"||vi(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ec(e,t){t=Jd(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ga(t[n++])];return n&&n==r?e:void 0}function To(e,t,n){var r=e==null?void 0:ec(e,t);return r===void 0?n:r}function rv(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var tc=Xd(Object.getPrototypeOf,Object),ov="[object Object]",av=Function.prototype,iv=Object.prototype,nc=av.toString,lv=iv.hasOwnProperty,sv=nc.call(Object);function dv(e){if(!Xn(e)||vr(e)!=ov)return!1;var t=tc(e);if(t===null)return!0;var n=lv.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&nc.call(n)==sv}function cv(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}function uv(e,t,n){var r=e.length;return n=n===void 0?r:n,cv(e,t,n)}var fv="\\ud800-\\udfff",hv="\\u0300-\\u036f",pv="\\ufe20-\\ufe2f",mv="\\u20d0-\\u20ff",gv=hv+pv+mv,bv="\\ufe0e\\ufe0f",vv="\\u200d",yv=RegExp("["+vv+fv+gv+bv+"]");function rc(e){return yv.test(e)}function xv(e){return e.split("")}var oc="\\ud800-\\udfff",wv="\\u0300-\\u036f",Cv="\\ufe20-\\ufe2f",kv="\\u20d0-\\u20ff",Sv=wv+Cv+kv,Rv="\\ufe0e\\ufe0f",Pv="["+oc+"]",Oi="["+Sv+"]",Mi="\\ud83c[\\udffb-\\udfff]",Tv="(?:"+Oi+"|"+Mi+")",ac="[^"+oc+"]",ic="(?:\\ud83c[\\udde6-\\uddff]){2}",lc="[\\ud800-\\udbff][\\udc00-\\udfff]",Fv="\\u200d",sc=Tv+"?",dc="["+Rv+"]?",$v="(?:"+Fv+"(?:"+[ac,ic,lc].join("|")+")"+dc+sc+")*",Dv=dc+sc+$v,zv="(?:"+[ac+Oi+"?",Oi,ic,lc,Pv].join("|")+")",Ov=RegExp(Mi+"(?="+Mi+")|"+zv+Dv,"g");function Mv(e){return e.match(Ov)||[]}function Ev(e){return rc(e)?Mv(e):xv(e)}function _v(e){return function(t){t=Zd(t);var n=rc(t)?Ev(t):void 0,r=n?n[0]:t.charAt(0),a=n?uv(n,1).join(""):t.slice(1);return r[e]()+a}}var Av=_v("toUpperCase");function Bv(){this.__data__=new In,this.size=0}function Iv(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Nv(e){return this.__data__.get(e)}function Hv(e){return this.__data__.has(e)}var Lv=200;function Vv(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!Po||r.length<Lv-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this}function Dn(e){var t=this.__data__=new In(e);this.size=t.size}Dn.prototype.clear=Bv,Dn.prototype.delete=Iv,Dn.prototype.get=Nv,Dn.prototype.has=Hv,Dn.prototype.set=Vv;var cc=typeof vt=="object"&&vt&&!vt.nodeType&&vt,uc=cc&&typeof module=="object"&&module&&!module.nodeType&&module,jv=uc&&uc.exports===cc,fc=jv?$n.Buffer:void 0;fc&&fc.allocUnsafe;function Wv(e,t){return e.slice()}function Uv(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var l=e[n];t(l,n,e)&&(i[a++]=l)}return i}function Kv(){return[]}var Yv=Object.prototype,qv=Yv.propertyIsEnumerable,hc=Object.getOwnPropertySymbols,Gv=hc?function(e){return e==null?[]:(e=Object(e),Uv(hc(e),function(t){return qv.call(e,t)}))}:Kv;function Xv(e,t,n){var r=t(e);return pn(e)?r:rv(r,n(e))}function pc(e){return Xv(e,$i,Gv)}var Ei=xr($n,"DataView"),_i=xr($n,"Promise"),Ai=xr($n,"Set"),mc="[object Map]",Qv="[object Object]",gc="[object Promise]",bc="[object Set]",vc="[object WeakMap]",yc="[object DataView]",Zv=yr(Ei),Jv=yr(Po),e0=yr(_i),t0=yr(Ai),n0=yr(Ci),Zn=vr;(Ei&&Zn(new Ei(new ArrayBuffer(1)))!=yc||Po&&Zn(new Po)!=mc||_i&&Zn(_i.resolve())!=gc||Ai&&Zn(new Ai)!=bc||Ci&&Zn(new Ci)!=vc)&&(Zn=function(e){var t=vr(e),n=t==Qv?e.constructor:void 0,r=n?yr(n):"";if(r)switch(r){case Zv:return yc;case Jv:return mc;case e0:return gc;case t0:return bc;case n0:return vc}return t});var ba=$n.Uint8Array;function r0(e){var t=new e.constructor(e.byteLength);return new ba(t).set(new ba(e)),t}function o0(e,t){var n=r0(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function a0(e){return typeof e.constructor=="function"&&!Pi(e)?hg(tc(e)):{}}var i0="__lodash_hash_undefined__";function l0(e){return this.__data__.set(e,i0),this}function s0(e){return this.__data__.has(e)}function va(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Nn;++t<n;)this.add(e[t])}va.prototype.add=va.prototype.push=l0,va.prototype.has=s0;function d0(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function c0(e,t){return e.has(t)}var u0=1,f0=2;function xc(e,t,n,r,a,i){var l=n&u0,s=e.length,d=t.length;if(s!=d&&!(l&&d>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,g=n&f0?new va:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var h=e[f],v=t[f];if(r)var b=l?r(v,h,f,t,e,i):r(h,v,f,e,t,i);if(b!==void 0){if(b)continue;p=!1;break}if(g){if(!d0(t,function(m,w){if(!c0(g,w)&&(h===m||a(h,m,n,r,i)))return g.push(w)})){p=!1;break}}else if(!(h===v||a(h,v,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}function h0(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function p0(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var m0=1,g0=2,b0="[object Boolean]",v0="[object Date]",y0="[object Error]",x0="[object Map]",w0="[object Number]",C0="[object RegExp]",k0="[object Set]",S0="[object String]",R0="[object Symbol]",P0="[object ArrayBuffer]",T0="[object DataView]",wc=Gn?Gn.prototype:void 0,Bi=wc?wc.valueOf:void 0;function F0(e,t,n,r,a,i,l){switch(n){case T0:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P0:return!(e.byteLength!=t.byteLength||!i(new ba(e),new ba(t)));case b0:case v0:case w0:return ko(+e,+t);case y0:return e.name==t.name&&e.message==t.message;case C0:case S0:return e==t+"";case x0:var s=h0;case k0:var d=r&m0;if(s||(s=p0),e.size!=t.size&&!d)return!1;var c=l.get(e);if(c)return c==t;r|=g0,l.set(e,t);var u=xc(s(e),s(t),r,a,i,l);return l.delete(e),u;case R0:if(Bi)return Bi.call(e)==Bi.call(t)}return!1}var $0=1,D0=Object.prototype,z0=D0.hasOwnProperty;function O0(e,t,n,r,a,i){var l=n&$0,s=pc(e),d=s.length,c=pc(t),u=c.length;if(d!=u&&!l)return!1;for(var f=d;f--;){var p=s[f];if(!(l?p in t:z0.call(t,p)))return!1}var g=i.get(e),h=i.get(t);if(g&&h)return g==t&&h==e;var v=!0;i.set(e,t),i.set(t,e);for(var b=l;++f<d;){p=s[f];var m=e[p],w=t[p];if(r)var k=l?r(w,m,p,t,e,i):r(m,w,p,e,t,i);if(!(k===void 0?m===w||a(m,w,n,r,i):k)){v=!1;break}b||(b=p=="constructor")}if(v&&!b){var S=e.constructor,C=t.constructor;S!=C&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof C=="function"&&C instanceof C)&&(v=!1)}return i.delete(e),i.delete(t),v}var M0=1,Cc="[object Arguments]",kc="[object Array]",ya="[object Object]",E0=Object.prototype,Sc=E0.hasOwnProperty;function _0(e,t,n,r,a,i){var l=pn(e),s=pn(t),d=l?kc:Zn(e),c=s?kc:Zn(t);d=d==Cc?ya:d,c=c==Cc?ya:c;var u=d==ya,f=c==ya,p=d==c;if(p&&ha(e)){if(!ha(t))return!1;l=!0,u=!1}if(p&&!u)return i||(i=new Dn),l||Fi(e)?xc(e,t,n,r,a,i):F0(e,t,d,n,r,a,i);if(!(n&M0)){var g=u&&Sc.call(e,"__wrapped__"),h=f&&Sc.call(t,"__wrapped__");if(g||h){var v=g?e.value():e,b=h?t.value():t;return i||(i=new Dn),a(v,b,n,r,i)}}return p?(i||(i=new Dn),O0(e,t,n,r,a,i)):!1}function Ii(e,t,n,r,a){return e===t?!0:e==null||t==null||!Xn(e)&&!Xn(t)?e!==e&&t!==t:_0(e,t,n,r,Ii,a)}var A0=1,B0=2;function I0(e,t,n,r){var a=n.length,i=a;if(e==null)return!i;for(e=Object(e);a--;){var l=n[a];if(l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){l=n[a];var s=l[0],d=e[s],c=l[1];if(l[2]){if(d===void 0&&!(s in e))return!1}else{var u=new Dn,f;if(!(f===void 0?Ii(c,d,A0|B0,r,u):f))return!1}}return!0}function Rc(e){return e===e&&!Qn(e)}function N0(e){for(var t=$i(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,Rc(a)]}return t}function Pc(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function H0(e){var t=N0(e);return t.length==1&&t[0][2]?Pc(t[0][0],t[0][1]):function(n){return n===e||I0(n,e,t)}}function L0(e,t){return e!=null&&t in Object(e)}function V0(e,t,n){t=Jd(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var l=ga(t[r]);if(!(i=e!=null&&n(e,l)))break;e=e[l]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&Ri(a)&&ki(l,a)&&(pn(e)||fa(e)))}function j0(e,t){return e!=null&&V0(e,t,L0)}var W0=1,U0=2;function K0(e,t){return Di(e)&&Rc(t)?Pc(ga(e),t):function(n){var r=To(n,e);return r===void 0&&r===t?j0(n,e):Ii(t,r,W0|U0)}}function Y0(e){return function(t){return t==null?void 0:t[e]}}function q0(e){return function(t){return ec(t,e)}}function G0(e){return Di(e)?Y0(ga(e)):q0(e)}function X0(e){return typeof e=="function"?e:e==null?yi:typeof e=="object"?pn(e)?K0(e[0],e[1]):H0(e):G0(e)}function Q0(e){return function(t,n,r){for(var a=-1,i=Object(t),l=r(t),s=l.length;s--;){var d=l[++a];if(n(i[d],d,i)===!1)break}return t}}var Tc=Q0();function Z0(e,t){return e&&Tc(e,t,$i)}function J0(e,t){return function(n,r){if(n==null)return n;if(!jr(n))return e(n,r);for(var a=n.length,i=-1,l=Object(n);++i<a&&r(l[i],i,l)!==!1;);return n}}var ey=J0(Z0);function Ni(e,t,n){(n!==void 0&&!ko(e[t],n)||n===void 0&&!(t in e))&&Si(e,t,n)}function ty(e){return Xn(e)&&jr(e)}function Hi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ny(e){return Fg(e,Qd(e))}function ry(e,t,n,r,a,i,l){var s=Hi(e,n),d=Hi(t,n),c=l.get(d);if(c){Ni(e,n,c);return}var u=i?i(s,d,n+"",e,t,l):void 0,f=u===void 0;if(f){var p=pn(d),g=!p&&ha(d),h=!p&&!g&&Fi(d);u=d,p||g||h?pn(s)?u=s:ty(s)?u=mg(s):g?(f=!1,u=Wv(d)):h?(f=!1,u=o0(d)):u=[]:dv(d)||fa(d)?(u=s,fa(s)?u=ny(s):(!Qn(s)||xi(s))&&(u=a0(d))):f=!1}f&&(l.set(d,u),a(u,d,r,i,l),l.delete(d)),Ni(e,n,u)}function Fc(e,t,n,r,a){e!==t&&Tc(t,function(i,l){if(a||(a=new Dn),Qn(i))ry(e,t,l,n,Fc,r,a);else{var s=r?r(Hi(e,l),i,l+"",e,t,a):void 0;s===void 0&&(s=i),Ni(e,l,s)}},Qd)}function oy(e,t){var n=-1,r=jr(e)?Array(e.length):[];return ey(e,function(a,i,l){r[++n]=t(a,i,l)}),r}function ay(e,t){var n=pn(e)?Ed:oy;return n(e,X0(t))}var xa=Mg(function(e,t,n){Fc(e,t,n)});function Hn(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=o.inject(An,null)||{},r=o.computed(()=>{var i,l;return(l=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&l!==void 0?l:im[e]});return{dateLocaleRef:o.computed(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:Hm}),localeRef:r}}const Wr="naive-ui-style";function ln(e,t,n){if(!t)return;const r=pr(),a=o.computed(()=>{const{value:s}=t;if(!s)return;const d=s[e];if(d)return d}),i=o.inject(An,null),l=()=>{o.watchEffect(()=>{const{value:s}=n,d=`${s}${e}Rtl`;if(Oh(d,r))return;const{value:c}=a;c&&c.style.mount({id:d,head:!0,anchorMetaName:Wr,props:{bPrefix:s?`.${s}-`:void 0},ssr:r,parent:i==null?void 0:i.styleMountTarget})})};return r?l():o.onBeforeMount(l),a}const mn={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:iy,fontFamily:ly,lineHeight:sy}=mn,$c=E("body",`
16
16
  margin: 0;
@@ -22,7 +22,7 @@ ${t}
22
22
  `,[E("input",`
23
23
  font-family: inherit;
24
24
  font-size: inherit;
25
- `)]);function Cr(e,t,n){if(!t){process.env.NODE_ENV!=="production"&&ci("use-style","No style is specified.");return}const r=pr(),a=o.inject(An,null),i=()=>{const l=n.value;t.mount({id:l===void 0?e:l+e,head:!0,anchorMetaName:Wr,props:{bPrefix:l?`.${l}-`:void 0},ssr:r,parent:a==null?void 0:a.styleMountTarget}),a!=null&&a.preflightStyleDisabled||$c.mount({id:"n-global",head:!0,anchorMetaName:Wr,ssr:r,parent:a==null?void 0:a.styleMountTarget})};r?i():o.onBeforeMount(i)}function nP(e){return e}function We(e,t,n,r,a,i){const l=pr(),s=o.inject(An,null);if(n){const c=()=>{const u=i==null?void 0:i.value;n.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:Wr,ssr:l,parent:s==null?void 0:s.styleMountTarget}),s!=null&&s.preflightStyleDisabled||$c.mount({id:"n-global",head:!0,anchorMetaName:Wr,ssr:l,parent:s==null?void 0:s.styleMountTarget})};l?c():o.onBeforeMount(c)}return o.computed(()=>{var c;const{theme:{common:u,self:f,peers:p={}}={},themeOverrides:g={},builtinThemeOverrides:h={}}=a,{common:v,peers:b}=g,{common:m=void 0,[e]:{common:w=void 0,self:k=void 0,peers:S={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:C=void 0,[e]:x={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:y,peers:R={}}=x,P=xa({},u||w||m||r.common,C,y,v),$=xa((c=f||k||r.self)===null||c===void 0?void 0:c(P),h,x,g);return{common:P,self:$,peers:xa({},r.peers,S,p),peerOverrides:xa({},h.peers,R,b)}})}We.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const dy=O("base-icon",`
25
+ `)]);function Cr(e,t,n){if(!t){process.env.NODE_ENV!=="production"&&ci("use-style","No style is specified.");return}const r=pr(),a=o.inject(An,null),i=()=>{const l=n.value;t.mount({id:l===void 0?e:l+e,head:!0,anchorMetaName:Wr,props:{bPrefix:l?`.${l}-`:void 0},ssr:r,parent:a==null?void 0:a.styleMountTarget}),a!=null&&a.preflightStyleDisabled||$c.mount({id:"n-global",head:!0,anchorMetaName:Wr,ssr:r,parent:a==null?void 0:a.styleMountTarget})};r?i():o.onBeforeMount(i)}function rP(e){return e}function We(e,t,n,r,a,i){const l=pr(),s=o.inject(An,null);if(n){const c=()=>{const u=i==null?void 0:i.value;n.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:Wr,ssr:l,parent:s==null?void 0:s.styleMountTarget}),s!=null&&s.preflightStyleDisabled||$c.mount({id:"n-global",head:!0,anchorMetaName:Wr,ssr:l,parent:s==null?void 0:s.styleMountTarget})};l?c():o.onBeforeMount(c)}return o.computed(()=>{var c;const{theme:{common:u,self:f,peers:p={}}={},themeOverrides:g={},builtinThemeOverrides:h={}}=a,{common:v,peers:b}=g,{common:m=void 0,[e]:{common:w=void 0,self:k=void 0,peers:S={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:C=void 0,[e]:x={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:y,peers:R={}}=x,P=xa({},u||w||m||r.common,C,y,v),$=xa((c=f||k||r.self)===null||c===void 0?void 0:c(P),h,x,g);return{common:P,self:$,peers:xa({},r.peers,S,p),peerOverrides:xa({},h.peers,R,b)}})}We.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const dy=O("base-icon",`
26
26
  height: 1em;
27
27
  width: 1em;
28
28
  line-height: 1em;
@@ -1002,7 +1002,7 @@ ${t}
1002
1002
  `)])])]))]),Ix=O("input",[L("disabled",[K("input-el, textarea-el",`
1003
1003
  -webkit-text-fill-color: var(--n-text-color-disabled);
1004
1004
  `)])]);function Nx(e){let t=0;for(const n of e)t++;return t}function Pa(e){return e===""||e==null}function Hx(e){const t=o.ref(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){a();return}const{selectionStart:l,selectionEnd:s,value:d}=i;if(l==null||s==null){a();return}t.value={start:l,end:s,beforeText:d.slice(0,l),afterText:d.slice(s)}}function r(){var i;const{value:l}=t,{value:s}=e;if(!l||!s)return;const{value:d}=s,{start:c,beforeText:u,afterText:f}=l;let p=d.length;if(d.endsWith(f))p=d.length-f.length;else if(d.startsWith(u))p=u.length;else{const g=u[c-1],h=d.indexOf(g,c-1);h!==-1&&(p=h+1)}(i=s.setSelectionRange)===null||i===void 0||i.call(s,p,p)}function a(){t.value=null}return o.watch(e,a),{recordCursor:n,restoreCursor:r}}const nu=o.defineComponent({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:a,countGraphemesRef:i}=o.inject(tu),l=o.computed(()=>{const{value:s}=n;return s===null||Array.isArray(s)?0:(i.value||Nx)(s)});return()=>{const{value:s}=r,{value:d}=n;return o.h("span",{class:`${a.value}-input-word-count`},nn(t.default,{value:d===null||Array.isArray(d)?"":d},()=>[s===void 0?l.value:`${l.value} / ${s}`]))}}}),Lx=Object.assign(Object.assign({},We.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}),bn=o.defineComponent({name:"Input",props:Lx,slots:Object,setup(e){process.env.NODE_ENV!=="production"&&o.watchEffect(()=>{e.showPasswordToggle&&ht("input",'`show-password-toggle` is deprecated, please use `showPasswordOn="click"` instead')});const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=gt(e),i=We("Input","-input",Bx,Ra,e,t);eu&&Cr("-input-safari",Ix,t);const l=o.ref(null),s=o.ref(null),d=o.ref(null),c=o.ref(null),u=o.ref(null),f=o.ref(null),p=o.ref(null),g=Hx(p),h=o.ref(null),{localeRef:v}=Hn("Input"),b=o.ref(e.defaultValue),m=o.toRef(e,"value"),w=zt(m,b),k=Bn(e),{mergedSizeRef:S,mergedDisabledRef:C,mergedStatusRef:x}=k,y=o.ref(!1),R=o.ref(!1),P=o.ref(!1),$=o.ref(!1);let N=null;const D=o.computed(()=>{const{placeholder:W,pair:de}=e;return de?Array.isArray(W)?W:W===void 0?["",""]:[W,W]:W===void 0?[v.value.placeholder]:[W]}),T=o.computed(()=>{const{value:W}=P,{value:de}=w,{value:ze}=D;return!W&&(Pa(de)||Array.isArray(de)&&Pa(de[0]))&&ze[0]}),M=o.computed(()=>{const{value:W}=P,{value:de}=w,{value:ze}=D;return!W&&ze[1]&&(Pa(de)||Array.isArray(de)&&Pa(de[1]))}),z=nt(()=>e.internalForceFocus||y.value),A=nt(()=>{if(C.value||e.readonly||!e.clearable||!z.value&&!R.value)return!1;const{value:W}=w,{value:de}=z;return e.pair?!!(Array.isArray(W)&&(W[0]||W[1]))&&(R.value||de):!!W&&(R.value||de)}),_=o.computed(()=>{const{showPasswordOn:W}=e;if(W)return W;if(e.showPasswordToggle)return"click"}),U=o.ref(!1),te=o.computed(()=>{const{textDecoration:W}=e;return W?Array.isArray(W)?W.map(de=>({textDecoration:de})):[{textDecoration:W}]:["",""]}),ee=o.ref(void 0),Q=()=>{var W,de;if(e.type==="textarea"){const{autosize:ze}=e;if(ze&&(ee.value=(de=(W=h.value)===null||W===void 0?void 0:W.$el)===null||de===void 0?void 0:de.offsetWidth),!s.value||typeof ze=="boolean")return;const{paddingTop:V,paddingBottom:re,lineHeight:fe}=window.getComputedStyle(s.value),Se=Number(V.slice(0,-2)),Pe=Number(re.slice(0,-2)),Ge=Number(fe.slice(0,-2)),{value:St}=d;if(!St)return;if(ze.minRows){const Rt=Math.max(ze.minRows,1),Kt=`${Se+Pe+Ge*Rt}px`;St.style.minHeight=Kt}if(ze.maxRows){const Rt=`${Se+Pe+Ge*ze.maxRows}px`;St.style.maxHeight=Rt}}},H=o.computed(()=>{const{maxlength:W}=e;return W===void 0?void 0:Number(W)});o.onMounted(()=>{const{value:W}=w;Array.isArray(W)||Oe(W)});const B=o.getCurrentInstance().proxy;function q(W,de){const{onUpdateValue:ze,"onUpdate:value":V,onInput:re}=e,{nTriggerFormInput:fe}=k;ze&&ie(ze,W,de),V&&ie(V,W,de),re&&ie(re,W,de),b.value=W,fe()}function ne(W,de){const{onChange:ze}=e,{nTriggerFormChange:V}=k;ze&&ie(ze,W,de),b.value=W,V()}function ae(W){const{onBlur:de}=e,{nTriggerFormBlur:ze}=k;de&&ie(de,W),ze()}function le(W){const{onFocus:de}=e,{nTriggerFormFocus:ze}=k;de&&ie(de,W),ze()}function ve(W){const{onClear:de}=e;de&&ie(de,W)}function G(W){const{onInputBlur:de}=e;de&&ie(de,W)}function Z(W){const{onInputFocus:de}=e;de&&ie(de,W)}function ce(){const{onDeactivate:W}=e;W&&ie(W)}function he(){const{onActivate:W}=e;W&&ie(W)}function De(W){const{onClick:de}=e;de&&ie(de,W)}function Ee(W){const{onWrapperFocus:de}=e;de&&ie(de,W)}function Qe(W){const{onWrapperBlur:de}=e;de&&ie(de,W)}function Ze(){P.value=!0}function Ke(W){P.value=!1,W.target===f.value?_e(W,1):_e(W,0)}function _e(W,de=0,ze="input"){const V=W.target.value;if(Oe(V),W instanceof InputEvent&&!W.isComposing&&(P.value=!1),e.type==="textarea"){const{value:fe}=h;fe&&fe.syncUnifiedContainer()}if(N=V,P.value)return;g.recordCursor();const re=Re(V);if(re)if(!e.pair)ze==="input"?q(V,{source:de}):ne(V,{source:de});else{let{value:fe}=w;Array.isArray(fe)?fe=[fe[0],fe[1]]:fe=["",""],fe[de]=V,ze==="input"?q(fe,{source:de}):ne(fe,{source:de})}B.$forceUpdate(),re||o.nextTick(g.restoreCursor)}function Re(W){const{countGraphemes:de,maxlength:ze,minlength:V}=e;if(de){let fe;if(ze!==void 0&&(fe===void 0&&(fe=de(W)),fe>Number(ze))||V!==void 0&&(fe===void 0&&(fe=de(W)),fe<Number(ze)))return!1}const{allowInput:re}=e;return typeof re=="function"?re(W):!0}function $e(W){G(W),W.relatedTarget===l.value&&ce(),W.relatedTarget!==null&&(W.relatedTarget===u.value||W.relatedTarget===f.value||W.relatedTarget===s.value)||($.value=!1),ue(W,"blur"),p.value=null}function Be(W,de){Z(W),y.value=!0,$.value=!0,he(),ue(W,"focus"),de===0?p.value=u.value:de===1?p.value=f.value:de===2&&(p.value=s.value)}function Le(W){e.passivelyActivated&&(Qe(W),ue(W,"blur"))}function Ve(W){e.passivelyActivated&&(y.value=!0,Ee(W),ue(W,"focus"))}function ue(W,de){W.relatedTarget!==null&&(W.relatedTarget===u.value||W.relatedTarget===f.value||W.relatedTarget===s.value||W.relatedTarget===l.value)||(de==="focus"?(le(W),y.value=!0):de==="blur"&&(ae(W),y.value=!1))}function ye(W,de){_e(W,de,"change")}function He(W){De(W)}function J(W){ve(W),Ae()}function Ae(){e.pair?(q(["",""],{source:"clear"}),ne(["",""],{source:"clear"})):(q("",{source:"clear"}),ne("",{source:"clear"}))}function Ne(W){const{onMousedown:de}=e;de&&de(W);const{tagName:ze}=W.target;if(ze!=="INPUT"&&ze!=="TEXTAREA"){if(e.resizable){const{value:V}=l;if(V){const{left:re,top:fe,width:Se,height:Pe}=V.getBoundingClientRect(),Ge=14;if(re+Se-Ge<W.clientX&&W.clientX<re+Se&&fe+Pe-Ge<W.clientY&&W.clientY<fe+Pe)return}}W.preventDefault(),y.value||oe()}}function at(){var W;R.value=!0,e.type==="textarea"&&((W=h.value)===null||W===void 0||W.handleMouseEnterWrapper())}function rt(){var W;R.value=!1,e.type==="textarea"&&((W=h.value)===null||W===void 0||W.handleMouseLeaveWrapper())}function qe(){C.value||_.value==="click"&&(U.value=!U.value)}function Je(W){if(C.value)return;W.preventDefault();const de=V=>{V.preventDefault(),yt("mouseup",document,de)};if(Ft("mouseup",document,de),_.value!=="mousedown")return;U.value=!0;const ze=()=>{U.value=!1,yt("mouseup",document,ze)};Ft("mouseup",document,ze)}function xe(W){e.onKeyup&&ie(e.onKeyup,W)}function Ie(W){switch(e.onKeydown&&ie(e.onKeydown,W),W.key){case"Escape":j();break;case"Enter":F(W);break}}function F(W){var de,ze;if(e.passivelyActivated){const{value:V}=$;if(V){e.internalDeactivateOnEnter&&j();return}W.preventDefault(),e.type==="textarea"?(de=s.value)===null||de===void 0||de.focus():(ze=u.value)===null||ze===void 0||ze.focus()}}function j(){e.passivelyActivated&&($.value=!1,o.nextTick(()=>{var W;(W=l.value)===null||W===void 0||W.focus()}))}function oe(){var W,de,ze;C.value||(e.passivelyActivated?(W=l.value)===null||W===void 0||W.focus():((de=s.value)===null||de===void 0||de.focus(),(ze=u.value)===null||ze===void 0||ze.focus()))}function we(){var W;!((W=l.value)===null||W===void 0)&&W.contains(document.activeElement)&&document.activeElement.blur()}function Ce(){var W,de;(W=s.value)===null||W===void 0||W.select(),(de=u.value)===null||de===void 0||de.select()}function I(){C.value||(s.value?s.value.focus():u.value&&u.value.focus())}function se(){const{value:W}=l;W!=null&&W.contains(document.activeElement)&&W!==document.activeElement&&j()}function ge(W){if(e.type==="textarea"){const{value:de}=s;de==null||de.scrollTo(W)}else{const{value:de}=u;de==null||de.scrollTo(W)}}function Oe(W){const{type:de,pair:ze,autosize:V}=e;if(!ze&&V)if(de==="textarea"){const{value:re}=d;re&&(re.textContent=`${W??""}\r
1005
- `)}else{const{value:re}=c;re&&(W?re.textContent=W:re.innerHTML="&nbsp;")}}function ot(){Q()}const Ye=o.ref({top:"0"});function X(W){var de;const{scrollTop:ze}=W.target;Ye.value.top=`${-ze}px`,(de=h.value)===null||de===void 0||de.syncUnifiedContainer()}let pe=null;o.watchEffect(()=>{const{autosize:W,type:de}=e;W&&de==="textarea"?pe=o.watch(w,ze=>{!Array.isArray(ze)&&ze!==N&&Oe(ze)}):pe==null||pe()});let Fe=null;o.watchEffect(()=>{e.type==="textarea"?Fe=o.watch(w,W=>{var de;!Array.isArray(W)&&W!==N&&((de=h.value)===null||de===void 0||de.syncUnifiedContainer())}):Fe==null||Fe()}),o.provide(tu,{mergedValueRef:w,maxlengthRef:H,mergedClsPrefixRef:t,countGraphemesRef:o.toRef(e,"countGraphemes")});const je={wrapperElRef:l,inputElRef:u,textareaElRef:s,isCompositing:P,clear:Ae,focus:oe,blur:we,select:Ce,deactivate:se,activate:I,scrollTo:ge},ft=ln("Input",a,t),dt=o.computed(()=>{const{value:W}=S,{common:{cubicBezierEaseInOut:de},self:{color:ze,borderRadius:V,textColor:re,caretColor:fe,caretColorError:Se,caretColorWarning:Pe,textDecorationColor:Ge,border:St,borderDisabled:Rt,borderHover:Kt,borderFocus:Jt,placeholderColor:At,placeholderColorDisabled:ct,lineHeightTextarea:Y,colorDisabled:be,colorFocus:ke,textColorDisabled:et,boxShadowFocus:Ht,iconSize:pt,colorFocusWarning:xn,boxShadowFocusWarning:Rn,borderWarning:hn,borderFocusWarning:Ho,borderHoverWarning:Lo,colorFocusError:Vo,boxShadowFocusError:jo,borderError:Wo,borderFocusError:Uo,borderHoverError:is,clearSize:$2,clearColor:D2,clearColorHover:z2,clearColorPressed:O2,iconColor:M2,iconColorDisabled:E2,suffixTextColor:_2,countTextColor:A2,countTextColorDisabled:B2,iconColorHover:I2,iconColorPressed:N2,loadingColor:H2,loadingColorError:L2,loadingColorWarning:V2,fontWeight:j2,[me("padding",W)]:W2,[me("fontSize",W)]:U2,[me("height",W)]:K2}}=i.value,{left:Y2,right:q2}=en(W2);return{"--n-bezier":de,"--n-count-text-color":A2,"--n-count-text-color-disabled":B2,"--n-color":ze,"--n-font-size":U2,"--n-font-weight":j2,"--n-border-radius":V,"--n-height":K2,"--n-padding-left":Y2,"--n-padding-right":q2,"--n-text-color":re,"--n-caret-color":fe,"--n-text-decoration-color":Ge,"--n-border":St,"--n-border-disabled":Rt,"--n-border-hover":Kt,"--n-border-focus":Jt,"--n-placeholder-color":At,"--n-placeholder-color-disabled":ct,"--n-icon-size":pt,"--n-line-height-textarea":Y,"--n-color-disabled":be,"--n-color-focus":ke,"--n-text-color-disabled":et,"--n-box-shadow-focus":Ht,"--n-loading-color":H2,"--n-caret-color-warning":Pe,"--n-color-focus-warning":xn,"--n-box-shadow-focus-warning":Rn,"--n-border-warning":hn,"--n-border-focus-warning":Ho,"--n-border-hover-warning":Lo,"--n-loading-color-warning":V2,"--n-caret-color-error":Se,"--n-color-focus-error":Vo,"--n-box-shadow-focus-error":jo,"--n-border-error":Wo,"--n-border-focus-error":Uo,"--n-border-hover-error":is,"--n-loading-color-error":L2,"--n-clear-color":D2,"--n-clear-size":$2,"--n-clear-color-hover":z2,"--n-clear-color-pressed":O2,"--n-icon-color":M2,"--n-icon-color-hover":I2,"--n-icon-color-pressed":N2,"--n-icon-color-disabled":E2,"--n-suffix-text-color":_2}}),lt=r?$t("input",o.computed(()=>{const{value:W}=S;return W[0]}),dt,e):void 0;return Object.assign(Object.assign({},je),{wrapperElRef:l,inputElRef:u,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:s,textareaMirrorElRef:d,textareaScrollbarInstRef:h,rtlEnabled:ft,uncontrolledValue:b,mergedValue:w,passwordVisible:U,mergedPlaceholder:D,showPlaceholder1:T,showPlaceholder2:M,mergedFocus:z,isComposing:P,activated:$,showClearButton:A,mergedSize:S,mergedDisabled:C,textDecorationStyle:te,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:_,placeholderStyle:Ye,mergedStatus:x,textAreaScrollContainerWidth:ee,handleTextAreaScroll:X,handleCompositionStart:Ze,handleCompositionEnd:Ke,handleInput:_e,handleInputBlur:$e,handleInputFocus:Be,handleWrapperBlur:Le,handleWrapperFocus:Ve,handleMouseEnter:at,handleMouseLeave:rt,handleMouseDown:Ne,handleChange:ye,handleClick:He,handleClear:J,handlePasswordToggleClick:qe,handlePasswordToggleMousedown:Je,handleWrapperKeydown:Ie,handleWrapperKeyup:xe,handleTextAreaMirrorResize:ot,getTextareaScrollContainer:()=>s.value,mergedTheme:i,cssVars:r?void 0:dt,themeClass:lt==null?void 0:lt.themeClass,onRender:lt==null?void 0:lt.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:r,themeClass:a,type:i,countGraphemes:l,onRender:s}=this,d=this.$slots;return s==null||s(),o.h("div",{ref:"wrapperElRef",class:[`${n}-input`,a,r&&`${n}-input--${r}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},o.h("div",{class:`${n}-input-wrapper`},Ut(d.prefix,c=>c&&o.h("div",{class:`${n}-input__prefix`},c)),i==="textarea"?o.h(Zt,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,u;const{textAreaScrollContainerWidth:f}=this,p={width:this.autosize&&f&&`${f}px`};return o.h(o.Fragment,null,o.h("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(u=this.inputProps)===null||u===void 0?void 0:u.style,p],onBlur:this.handleInputBlur,onFocus:g=>{this.handleInputFocus(g,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?o.h("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,p],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?o.h(Lr,{onResize:this.handleTextAreaMirrorResize},{default:()=>o.h("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):o.h("div",{class:`${n}-input__input`},o.h("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?o.h("div",{class:`${n}-input__placeholder`},o.h("span",null,this.mergedPlaceholder[0])):null,this.autosize?o.h("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Ut(d.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?o.h("div",{class:`${n}-input__suffix`},[Ut(d["clear-icon-placeholder"],u=>(this.clearable||u)&&o.h(Li,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>u,icon:()=>{var f,p;return(p=(f=this.$slots)["clear-icon"])===null||p===void 0?void 0:p.call(f)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?o.h(Qc,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?o.h(nu,null,{default:u=>{var f;const{renderCount:p}=this;return p?p(u):(f=d.count)===null||f===void 0?void 0:f.call(d,u)}}):null,this.mergedShowPasswordOn&&this.type==="password"?o.h("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?st(d["password-visible-icon"],()=>[o.h(Et,{clsPrefix:n},{default:()=>o.h(my,null)})]):st(d["password-invisible-icon"],()=>[o.h(Et,{clsPrefix:n},{default:()=>o.h(gy,null)})])):null]):null)),this.pair?o.h("span",{class:`${n}-input__separator`},st(d.separator,()=>[this.separator])):null,this.pair?o.h("div",{class:`${n}-input-wrapper`},o.h("div",{class:`${n}-input__input`},o.h("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?o.h("div",{class:`${n}-input__placeholder`},o.h("span",null,this.mergedPlaceholder[1])):null),Ut(d.suffix,c=>(this.clearable||c)&&o.h("div",{class:`${n}-input__suffix`},[this.clearable&&o.h(Li,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var u;return(u=d["clear-icon"])===null||u===void 0?void 0:u.call(d)},placeholder:()=>{var u;return(u=d["clear-icon-placeholder"])===null||u===void 0?void 0:u.call(d)}}),c]))):null,this.mergedBordered?o.h("div",{class:`${n}-input__border`}):null,this.mergedBordered?o.h("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?o.h(nu,null,{default:c=>{var u;const{renderCount:f}=this;return f?f(c):(u=d.count)===null||u===void 0?void 0:u.call(d,c)}}):null)}});function Ta(e){return e.type==="group"}function ru(e){return e.type==="ignored"}function Zi(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function ou(e,t){return{getIsGroup:Ta,getIgnored:ru,getKey(r){return Ta(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function Vx(e,t,n,r){if(!t)return e;function a(i){if(!Array.isArray(i))return[];const l=[];for(const s of i)if(Ta(s)){const d=a(s[r]);d.length&&l.push(Object.assign({},s,{[r]:d}))}else{if(ru(s))continue;t(n,s)&&l.push(s)}return l}return a(e)}function jx(e,t,n){const r=new Map;return e.forEach(a=>{Ta(a)?a[n].forEach(i=>{r.set(i[t],i)}):r.set(a[t],a)}),r}function Sr(e){return mt(e,[255,255,255,.16])}function Fa(e){return mt(e,[0,0,0,.12])}const Wx="n-button-group",Ux={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 Kx(e){const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:a,borderRadius:i,fontSizeTiny:l,fontSizeSmall:s,fontSizeMedium:d,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:p,primaryColorHover:g,primaryColorPressed:h,borderColor:v,primaryColor:b,baseColor:m,infoColor:w,infoColorHover:k,infoColorPressed:S,successColor:C,successColorHover:x,successColorPressed:y,warningColor:R,warningColorHover:P,warningColorPressed:$,errorColor:N,errorColorHover:D,errorColorPressed:T,fontWeight:M,buttonColor2:z,buttonColor2Hover:A,buttonColor2Pressed:_,fontWeightStrong:U}=e;return Object.assign(Object.assign({},Ux),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:a,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:l,fontSizeSmall:s,fontSizeMedium:d,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:z,colorSecondaryHover:A,colorSecondaryPressed:_,colorTertiary:z,colorTertiaryHover:A,colorTertiaryPressed:_,colorQuaternary:"#0000",colorQuaternaryHover:A,colorQuaternaryPressed:_,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:p,textColorHover:g,textColorPressed:h,textColorFocus:g,textColorDisabled:f,textColorText:f,textColorTextHover:g,textColorTextPressed:h,textColorTextFocus:g,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:g,textColorGhostPressed:h,textColorGhostFocus:g,textColorGhostDisabled:f,border:`1px solid ${v}`,borderHover:`1px solid ${g}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${g}`,borderDisabled:`1px solid ${v}`,rippleColor:b,colorPrimary:b,colorHoverPrimary:g,colorPressedPrimary:h,colorFocusPrimary:g,colorDisabledPrimary:b,textColorPrimary:m,textColorHoverPrimary:m,textColorPressedPrimary:m,textColorFocusPrimary:m,textColorDisabledPrimary:m,textColorTextPrimary:b,textColorTextHoverPrimary:g,textColorTextPressedPrimary:h,textColorTextFocusPrimary:g,textColorTextDisabledPrimary:f,textColorGhostPrimary:b,textColorGhostHoverPrimary:g,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:g,textColorGhostDisabledPrimary:b,borderPrimary:`1px solid ${b}`,borderHoverPrimary:`1px solid ${g}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${g}`,borderDisabledPrimary:`1px solid ${b}`,rippleColorPrimary:b,colorInfo:w,colorHoverInfo:k,colorPressedInfo:S,colorFocusInfo:k,colorDisabledInfo:w,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:w,textColorTextHoverInfo:k,textColorTextPressedInfo:S,textColorTextFocusInfo:k,textColorTextDisabledInfo:f,textColorGhostInfo:w,textColorGhostHoverInfo:k,textColorGhostPressedInfo:S,textColorGhostFocusInfo:k,textColorGhostDisabledInfo:w,borderInfo:`1px solid ${w}`,borderHoverInfo:`1px solid ${k}`,borderPressedInfo:`1px solid ${S}`,borderFocusInfo:`1px solid ${k}`,borderDisabledInfo:`1px solid ${w}`,rippleColorInfo:w,colorSuccess:C,colorHoverSuccess:x,colorPressedSuccess:y,colorFocusSuccess:x,colorDisabledSuccess:C,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:C,textColorTextHoverSuccess:x,textColorTextPressedSuccess:y,textColorTextFocusSuccess:x,textColorTextDisabledSuccess:f,textColorGhostSuccess:C,textColorGhostHoverSuccess:x,textColorGhostPressedSuccess:y,textColorGhostFocusSuccess:x,textColorGhostDisabledSuccess:C,borderSuccess:`1px solid ${C}`,borderHoverSuccess:`1px solid ${x}`,borderPressedSuccess:`1px solid ${y}`,borderFocusSuccess:`1px solid ${x}`,borderDisabledSuccess:`1px solid ${C}`,rippleColorSuccess:C,colorWarning:R,colorHoverWarning:P,colorPressedWarning:$,colorFocusWarning:P,colorDisabledWarning:R,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:R,textColorTextHoverWarning:P,textColorTextPressedWarning:$,textColorTextFocusWarning:P,textColorTextDisabledWarning:f,textColorGhostWarning:R,textColorGhostHoverWarning:P,textColorGhostPressedWarning:$,textColorGhostFocusWarning:P,textColorGhostDisabledWarning:R,borderWarning:`1px solid ${R}`,borderHoverWarning:`1px solid ${P}`,borderPressedWarning:`1px solid ${$}`,borderFocusWarning:`1px solid ${P}`,borderDisabledWarning:`1px solid ${R}`,rippleColorWarning:R,colorError:N,colorHoverError:D,colorPressedError:T,colorFocusError:D,colorDisabledError:N,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:N,textColorTextHoverError:D,textColorTextPressedError:T,textColorTextFocusError:D,textColorTextDisabledError:f,textColorGhostError:N,textColorGhostHoverError:D,textColorGhostPressedError:T,textColorGhostFocusError:D,textColorGhostDisabledError:N,borderError:`1px solid ${N}`,borderHoverError:`1px solid ${D}`,borderPressedError:`1px solid ${T}`,borderFocusError:`1px solid ${D}`,borderDisabledError:`1px solid ${N}`,rippleColorError:N,waveOpacity:"0.6",fontWeight:M,fontWeightStrong:U})}const $a={name:"Button",common:Ot,self:Kx},Yx=E([O("button",`
1005
+ `)}else{const{value:re}=c;re&&(W?re.textContent=W:re.innerHTML="&nbsp;")}}function ot(){Q()}const Ye=o.ref({top:"0"});function X(W){var de;const{scrollTop:ze}=W.target;Ye.value.top=`${-ze}px`,(de=h.value)===null||de===void 0||de.syncUnifiedContainer()}let pe=null;o.watchEffect(()=>{const{autosize:W,type:de}=e;W&&de==="textarea"?pe=o.watch(w,ze=>{!Array.isArray(ze)&&ze!==N&&Oe(ze)}):pe==null||pe()});let Fe=null;o.watchEffect(()=>{e.type==="textarea"?Fe=o.watch(w,W=>{var de;!Array.isArray(W)&&W!==N&&((de=h.value)===null||de===void 0||de.syncUnifiedContainer())}):Fe==null||Fe()}),o.provide(tu,{mergedValueRef:w,maxlengthRef:H,mergedClsPrefixRef:t,countGraphemesRef:o.toRef(e,"countGraphemes")});const je={wrapperElRef:l,inputElRef:u,textareaElRef:s,isCompositing:P,clear:Ae,focus:oe,blur:we,select:Ce,deactivate:se,activate:I,scrollTo:ge},ft=ln("Input",a,t),dt=o.computed(()=>{const{value:W}=S,{common:{cubicBezierEaseInOut:de},self:{color:ze,borderRadius:V,textColor:re,caretColor:fe,caretColorError:Se,caretColorWarning:Pe,textDecorationColor:Ge,border:St,borderDisabled:Rt,borderHover:Kt,borderFocus:Jt,placeholderColor:At,placeholderColorDisabled:ct,lineHeightTextarea:Y,colorDisabled:be,colorFocus:ke,textColorDisabled:et,boxShadowFocus:Ht,iconSize:pt,colorFocusWarning:xn,boxShadowFocusWarning:Rn,borderWarning:hn,borderFocusWarning:Ho,borderHoverWarning:Lo,colorFocusError:Vo,boxShadowFocusError:jo,borderError:Wo,borderFocusError:Uo,borderHoverError:is,clearSize:D2,clearColor:z2,clearColorHover:O2,clearColorPressed:M2,iconColor:E2,iconColorDisabled:_2,suffixTextColor:A2,countTextColor:B2,countTextColorDisabled:I2,iconColorHover:N2,iconColorPressed:H2,loadingColor:L2,loadingColorError:V2,loadingColorWarning:j2,fontWeight:W2,[me("padding",W)]:U2,[me("fontSize",W)]:K2,[me("height",W)]:Y2}}=i.value,{left:q2,right:G2}=en(U2);return{"--n-bezier":de,"--n-count-text-color":B2,"--n-count-text-color-disabled":I2,"--n-color":ze,"--n-font-size":K2,"--n-font-weight":W2,"--n-border-radius":V,"--n-height":Y2,"--n-padding-left":q2,"--n-padding-right":G2,"--n-text-color":re,"--n-caret-color":fe,"--n-text-decoration-color":Ge,"--n-border":St,"--n-border-disabled":Rt,"--n-border-hover":Kt,"--n-border-focus":Jt,"--n-placeholder-color":At,"--n-placeholder-color-disabled":ct,"--n-icon-size":pt,"--n-line-height-textarea":Y,"--n-color-disabled":be,"--n-color-focus":ke,"--n-text-color-disabled":et,"--n-box-shadow-focus":Ht,"--n-loading-color":L2,"--n-caret-color-warning":Pe,"--n-color-focus-warning":xn,"--n-box-shadow-focus-warning":Rn,"--n-border-warning":hn,"--n-border-focus-warning":Ho,"--n-border-hover-warning":Lo,"--n-loading-color-warning":j2,"--n-caret-color-error":Se,"--n-color-focus-error":Vo,"--n-box-shadow-focus-error":jo,"--n-border-error":Wo,"--n-border-focus-error":Uo,"--n-border-hover-error":is,"--n-loading-color-error":V2,"--n-clear-color":z2,"--n-clear-size":D2,"--n-clear-color-hover":O2,"--n-clear-color-pressed":M2,"--n-icon-color":E2,"--n-icon-color-hover":N2,"--n-icon-color-pressed":H2,"--n-icon-color-disabled":_2,"--n-suffix-text-color":A2}}),lt=r?$t("input",o.computed(()=>{const{value:W}=S;return W[0]}),dt,e):void 0;return Object.assign(Object.assign({},je),{wrapperElRef:l,inputElRef:u,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:s,textareaMirrorElRef:d,textareaScrollbarInstRef:h,rtlEnabled:ft,uncontrolledValue:b,mergedValue:w,passwordVisible:U,mergedPlaceholder:D,showPlaceholder1:T,showPlaceholder2:M,mergedFocus:z,isComposing:P,activated:$,showClearButton:A,mergedSize:S,mergedDisabled:C,textDecorationStyle:te,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:_,placeholderStyle:Ye,mergedStatus:x,textAreaScrollContainerWidth:ee,handleTextAreaScroll:X,handleCompositionStart:Ze,handleCompositionEnd:Ke,handleInput:_e,handleInputBlur:$e,handleInputFocus:Be,handleWrapperBlur:Le,handleWrapperFocus:Ve,handleMouseEnter:at,handleMouseLeave:rt,handleMouseDown:Ne,handleChange:ye,handleClick:He,handleClear:J,handlePasswordToggleClick:qe,handlePasswordToggleMousedown:Je,handleWrapperKeydown:Ie,handleWrapperKeyup:xe,handleTextAreaMirrorResize:ot,getTextareaScrollContainer:()=>s.value,mergedTheme:i,cssVars:r?void 0:dt,themeClass:lt==null?void 0:lt.themeClass,onRender:lt==null?void 0:lt.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:r,themeClass:a,type:i,countGraphemes:l,onRender:s}=this,d=this.$slots;return s==null||s(),o.h("div",{ref:"wrapperElRef",class:[`${n}-input`,a,r&&`${n}-input--${r}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},o.h("div",{class:`${n}-input-wrapper`},Ut(d.prefix,c=>c&&o.h("div",{class:`${n}-input__prefix`},c)),i==="textarea"?o.h(Zt,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,u;const{textAreaScrollContainerWidth:f}=this,p={width:this.autosize&&f&&`${f}px`};return o.h(o.Fragment,null,o.h("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(u=this.inputProps)===null||u===void 0?void 0:u.style,p],onBlur:this.handleInputBlur,onFocus:g=>{this.handleInputFocus(g,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?o.h("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,p],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?o.h(Lr,{onResize:this.handleTextAreaMirrorResize},{default:()=>o.h("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):o.h("div",{class:`${n}-input__input`},o.h("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?o.h("div",{class:`${n}-input__placeholder`},o.h("span",null,this.mergedPlaceholder[0])):null,this.autosize?o.h("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Ut(d.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?o.h("div",{class:`${n}-input__suffix`},[Ut(d["clear-icon-placeholder"],u=>(this.clearable||u)&&o.h(Li,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>u,icon:()=>{var f,p;return(p=(f=this.$slots)["clear-icon"])===null||p===void 0?void 0:p.call(f)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?o.h(Qc,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?o.h(nu,null,{default:u=>{var f;const{renderCount:p}=this;return p?p(u):(f=d.count)===null||f===void 0?void 0:f.call(d,u)}}):null,this.mergedShowPasswordOn&&this.type==="password"?o.h("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?st(d["password-visible-icon"],()=>[o.h(Et,{clsPrefix:n},{default:()=>o.h(my,null)})]):st(d["password-invisible-icon"],()=>[o.h(Et,{clsPrefix:n},{default:()=>o.h(gy,null)})])):null]):null)),this.pair?o.h("span",{class:`${n}-input__separator`},st(d.separator,()=>[this.separator])):null,this.pair?o.h("div",{class:`${n}-input-wrapper`},o.h("div",{class:`${n}-input__input`},o.h("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?o.h("div",{class:`${n}-input__placeholder`},o.h("span",null,this.mergedPlaceholder[1])):null),Ut(d.suffix,c=>(this.clearable||c)&&o.h("div",{class:`${n}-input__suffix`},[this.clearable&&o.h(Li,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var u;return(u=d["clear-icon"])===null||u===void 0?void 0:u.call(d)},placeholder:()=>{var u;return(u=d["clear-icon-placeholder"])===null||u===void 0?void 0:u.call(d)}}),c]))):null,this.mergedBordered?o.h("div",{class:`${n}-input__border`}):null,this.mergedBordered?o.h("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?o.h(nu,null,{default:c=>{var u;const{renderCount:f}=this;return f?f(c):(u=d.count)===null||u===void 0?void 0:u.call(d,c)}}):null)}});function Ta(e){return e.type==="group"}function ru(e){return e.type==="ignored"}function Zi(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function ou(e,t){return{getIsGroup:Ta,getIgnored:ru,getKey(r){return Ta(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function Vx(e,t,n,r){if(!t)return e;function a(i){if(!Array.isArray(i))return[];const l=[];for(const s of i)if(Ta(s)){const d=a(s[r]);d.length&&l.push(Object.assign({},s,{[r]:d}))}else{if(ru(s))continue;t(n,s)&&l.push(s)}return l}return a(e)}function jx(e,t,n){const r=new Map;return e.forEach(a=>{Ta(a)?a[n].forEach(i=>{r.set(i[t],i)}):r.set(a[t],a)}),r}function Sr(e){return mt(e,[255,255,255,.16])}function Fa(e){return mt(e,[0,0,0,.12])}const Wx="n-button-group",Ux={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 Kx(e){const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:a,borderRadius:i,fontSizeTiny:l,fontSizeSmall:s,fontSizeMedium:d,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:p,primaryColorHover:g,primaryColorPressed:h,borderColor:v,primaryColor:b,baseColor:m,infoColor:w,infoColorHover:k,infoColorPressed:S,successColor:C,successColorHover:x,successColorPressed:y,warningColor:R,warningColorHover:P,warningColorPressed:$,errorColor:N,errorColorHover:D,errorColorPressed:T,fontWeight:M,buttonColor2:z,buttonColor2Hover:A,buttonColor2Pressed:_,fontWeightStrong:U}=e;return Object.assign(Object.assign({},Ux),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:a,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:l,fontSizeSmall:s,fontSizeMedium:d,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:z,colorSecondaryHover:A,colorSecondaryPressed:_,colorTertiary:z,colorTertiaryHover:A,colorTertiaryPressed:_,colorQuaternary:"#0000",colorQuaternaryHover:A,colorQuaternaryPressed:_,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:p,textColorHover:g,textColorPressed:h,textColorFocus:g,textColorDisabled:f,textColorText:f,textColorTextHover:g,textColorTextPressed:h,textColorTextFocus:g,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:g,textColorGhostPressed:h,textColorGhostFocus:g,textColorGhostDisabled:f,border:`1px solid ${v}`,borderHover:`1px solid ${g}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${g}`,borderDisabled:`1px solid ${v}`,rippleColor:b,colorPrimary:b,colorHoverPrimary:g,colorPressedPrimary:h,colorFocusPrimary:g,colorDisabledPrimary:b,textColorPrimary:m,textColorHoverPrimary:m,textColorPressedPrimary:m,textColorFocusPrimary:m,textColorDisabledPrimary:m,textColorTextPrimary:b,textColorTextHoverPrimary:g,textColorTextPressedPrimary:h,textColorTextFocusPrimary:g,textColorTextDisabledPrimary:f,textColorGhostPrimary:b,textColorGhostHoverPrimary:g,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:g,textColorGhostDisabledPrimary:b,borderPrimary:`1px solid ${b}`,borderHoverPrimary:`1px solid ${g}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${g}`,borderDisabledPrimary:`1px solid ${b}`,rippleColorPrimary:b,colorInfo:w,colorHoverInfo:k,colorPressedInfo:S,colorFocusInfo:k,colorDisabledInfo:w,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:w,textColorTextHoverInfo:k,textColorTextPressedInfo:S,textColorTextFocusInfo:k,textColorTextDisabledInfo:f,textColorGhostInfo:w,textColorGhostHoverInfo:k,textColorGhostPressedInfo:S,textColorGhostFocusInfo:k,textColorGhostDisabledInfo:w,borderInfo:`1px solid ${w}`,borderHoverInfo:`1px solid ${k}`,borderPressedInfo:`1px solid ${S}`,borderFocusInfo:`1px solid ${k}`,borderDisabledInfo:`1px solid ${w}`,rippleColorInfo:w,colorSuccess:C,colorHoverSuccess:x,colorPressedSuccess:y,colorFocusSuccess:x,colorDisabledSuccess:C,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:C,textColorTextHoverSuccess:x,textColorTextPressedSuccess:y,textColorTextFocusSuccess:x,textColorTextDisabledSuccess:f,textColorGhostSuccess:C,textColorGhostHoverSuccess:x,textColorGhostPressedSuccess:y,textColorGhostFocusSuccess:x,textColorGhostDisabledSuccess:C,borderSuccess:`1px solid ${C}`,borderHoverSuccess:`1px solid ${x}`,borderPressedSuccess:`1px solid ${y}`,borderFocusSuccess:`1px solid ${x}`,borderDisabledSuccess:`1px solid ${C}`,rippleColorSuccess:C,colorWarning:R,colorHoverWarning:P,colorPressedWarning:$,colorFocusWarning:P,colorDisabledWarning:R,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:R,textColorTextHoverWarning:P,textColorTextPressedWarning:$,textColorTextFocusWarning:P,textColorTextDisabledWarning:f,textColorGhostWarning:R,textColorGhostHoverWarning:P,textColorGhostPressedWarning:$,textColorGhostFocusWarning:P,textColorGhostDisabledWarning:R,borderWarning:`1px solid ${R}`,borderHoverWarning:`1px solid ${P}`,borderPressedWarning:`1px solid ${$}`,borderFocusWarning:`1px solid ${P}`,borderDisabledWarning:`1px solid ${R}`,rippleColorWarning:R,colorError:N,colorHoverError:D,colorPressedError:T,colorFocusError:D,colorDisabledError:N,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:N,textColorTextHoverError:D,textColorTextPressedError:T,textColorTextFocusError:D,textColorTextDisabledError:f,textColorGhostError:N,textColorGhostHoverError:D,textColorGhostPressedError:T,textColorGhostFocusError:D,textColorGhostDisabledError:N,borderError:`1px solid ${N}`,borderHoverError:`1px solid ${D}`,borderPressedError:`1px solid ${T}`,borderFocusError:`1px solid ${D}`,borderDisabledError:`1px solid ${N}`,rippleColorError:N,waveOpacity:"0.6",fontWeight:M,fontWeightStrong:U})}const $a={name:"Button",common:Ot,self:Kx},Yx=E([O("button",`
1006
1006
  margin: 0;
1007
1007
  font-weight: var(--n-font-weight);
1008
1008
  line-height: 1;
@@ -2671,4 +2671,4 @@ ${t}
2671
2671
 
2672
2672
  `,N+="."+$+" { "+u(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+P,"animation-name: "+P])+` }
2673
2673
  `,N+="@-webkit-keyframes "+P+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
2674
- `,N+="@keyframes "+P+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",R(N)}}function g(C){C.className+=" "+d+"_animation_active"}function h(C,x,y){if(C.addEventListener)C.addEventListener(x,y);else if(C.attachEvent)C.attachEvent("on"+x,y);else return n.error("[scroll] Don't know how to add event listeners.")}function v(C,x,y){if(C.removeEventListener)C.removeEventListener(x,y);else if(C.detachEvent)C.detachEvent("on"+x,y);else return n.error("[scroll] Don't know how to remove event listeners.")}function b(C){return a(C).container.childNodes[0].childNodes[0].childNodes[0]}function m(C){return a(C).container.childNodes[0].childNodes[0].childNodes[1]}function w(C,x){var y=a(C).listeners;if(!y.push)throw new Error("Cannot add listener to an element that is not detectable.");a(C).listeners.push(x)}function k(C,x,y){y||(y=x,x=C,C=null),C=C||{};function R(){if(C.debug){var Z=Array.prototype.slice.call(arguments);if(Z.unshift(i.get(x),"Scroll: "),n.log.apply)n.log.apply(null,Z);else for(var ce=0;ce<Z.length;ce++)n.log(Z[ce])}}function P(Z){function ce(he){var De=he.getRootNode&&he.getRootNode().contains(he);return he===he.ownerDocument.body||he.ownerDocument.body.contains(he)||De}return!ce(Z)||window.getComputedStyle(Z)===null}function $(Z){var ce=a(Z).container.childNodes[0],he=window.getComputedStyle(ce);return!he.width||he.width.indexOf("px")===-1}function N(){var Z=window.getComputedStyle(x),ce={};return ce.position=Z.position,ce.width=x.offsetWidth,ce.height=x.offsetHeight,ce.top=Z.top,ce.right=Z.right,ce.bottom=Z.bottom,ce.left=Z.left,ce.widthCSS=Z.width,ce.heightCSS=Z.height,ce}function D(){var Z=N();a(x).startSize={width:Z.width,height:Z.height},R("Element start size",a(x).startSize)}function T(){a(x).listeners=[]}function M(){if(R("storeStyle invoked."),!a(x)){R("Aborting because element has been uninstalled");return}var Z=N();a(x).style=Z}function z(Z,ce,he){a(Z).lastWidth=ce,a(Z).lastHeight=he}function A(Z){return b(Z).childNodes[0]}function _(){return 2*l.width+1}function U(){return 2*l.height+1}function te(Z){return Z+10+_()}function ee(Z){return Z+10+U()}function Q(Z){return Z*2+_()}function H(Z){return Z*2+U()}function B(Z,ce,he){var De=b(Z),Ee=m(Z),Qe=te(ce),Ze=ee(he),Ke=Q(ce),_e=H(he);De.scrollLeft=Qe,De.scrollTop=Ze,Ee.scrollLeft=Ke,Ee.scrollTop=_e}function q(){var Z=a(x).container;if(!Z){Z=document.createElement("div"),Z.className=d,Z.style.cssText=u(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),a(x).container=Z,g(Z),x.appendChild(Z);var ce=function(){a(x).onRendered&&a(x).onRendered()};h(Z,"animationstart",ce),a(x).onAnimationStart=ce}return Z}function ne(){function Z(){var Ne=a(x).style;if(Ne.position==="static"){x.style.setProperty("position","relative",C.important?"important":"");var at=function(rt,qe,Je,xe){function Ie(j){return j.replace(/[^-\d\.]/g,"")}var F=Je[xe];F!=="auto"&&Ie(F)!=="0"&&(rt.warn("An element that is positioned static has style."+xe+"="+F+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+xe+" will be set to 0. Element: ",qe),qe.style[xe]=0)};at(n,x,Ne,"top"),at(n,x,Ne,"right"),at(n,x,Ne,"bottom"),at(n,x,Ne,"left")}}function ce(Ne,at,rt,qe){return Ne=Ne?Ne+"px":"0",at=at?at+"px":"0",rt=rt?rt+"px":"0",qe=qe?qe+"px":"0",["left: "+Ne,"top: "+at,"right: "+qe,"bottom: "+rt]}if(R("Injecting elements"),!a(x)){R("Aborting because element has been uninstalled");return}Z();var he=a(x).container;he||(he=q());var De=l.width,Ee=l.height,Qe=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),Ze=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(ce(-(1+De),-(1+Ee),-Ee,-De))),Ke=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),_e=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),Re=u(["position: absolute","left: 0","top: 0"]),$e=u(["position: absolute","width: 200%","height: 200%"]),Be=document.createElement("div"),Le=document.createElement("div"),Ve=document.createElement("div"),ue=document.createElement("div"),ye=document.createElement("div"),He=document.createElement("div");Be.dir="ltr",Be.style.cssText=Qe,Be.className=d,Le.className=d,Le.style.cssText=Ze,Ve.style.cssText=Ke,ue.style.cssText=Re,ye.style.cssText=_e,He.style.cssText=$e,Ve.appendChild(ue),ye.appendChild(He),Le.appendChild(Ve),Le.appendChild(ye),Be.appendChild(Le),he.appendChild(Be);function J(){var Ne=a(x);Ne&&Ne.onExpand?Ne.onExpand():R("Aborting expand scroll handler: element has been uninstalled")}function Ae(){var Ne=a(x);Ne&&Ne.onShrink?Ne.onShrink():R("Aborting shrink scroll handler: element has been uninstalled")}h(Ve,"scroll",J),h(ye,"scroll",Ae),a(x).onExpandScroll=J,a(x).onShrinkScroll=Ae}function ae(){function Z(Ke,_e,Re){var $e=A(Ke),Be=te(_e),Le=ee(Re);$e.style.setProperty("width",Be+"px",C.important?"important":""),$e.style.setProperty("height",Le+"px",C.important?"important":"")}function ce(Ke){var _e=x.offsetWidth,Re=x.offsetHeight,$e=_e!==a(x).lastWidth||Re!==a(x).lastHeight;R("Storing current size",_e,Re),z(x,_e,Re),r.add(0,function(){if($e){if(!a(x)){R("Aborting because element has been uninstalled");return}if(!he()){R("Aborting because element container has not been initialized");return}if(C.debug){var Le=x.offsetWidth,Ve=x.offsetHeight;(Le!==_e||Ve!==Re)&&n.warn(i.get(x),"Scroll: Size changed before updating detector elements.")}Z(x,_e,Re)}}),r.add(1,function(){if(!a(x)){R("Aborting because element has been uninstalled");return}if(!he()){R("Aborting because element container has not been initialized");return}B(x,_e,Re)}),$e&&Ke&&r.add(2,function(){if(!a(x)){R("Aborting because element has been uninstalled");return}if(!he()){R("Aborting because element container has not been initialized");return}Ke()})}function he(){return!!a(x).container}function De(){function Ke(){return a(x).lastNotifiedWidth===void 0}R("notifyListenersIfNeeded invoked");var _e=a(x);if(Ke()&&_e.lastWidth===_e.startSize.width&&_e.lastHeight===_e.startSize.height)return R("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(_e.lastWidth===_e.lastNotifiedWidth&&_e.lastHeight===_e.lastNotifiedHeight)return R("Not notifying: Size already notified");R("Current size not notified, notifying..."),_e.lastNotifiedWidth=_e.lastWidth,_e.lastNotifiedHeight=_e.lastHeight,e(a(x).listeners,function(Re){Re(x)})}function Ee(){if(R("startanimation triggered."),$(x)){R("Ignoring since element is still unrendered...");return}R("Element rendered.");var Ke=b(x),_e=m(x);(Ke.scrollLeft===0||Ke.scrollTop===0||_e.scrollLeft===0||_e.scrollTop===0)&&(R("Scrollbars out of sync. Updating detector elements..."),ce(De))}function Qe(){if(R("Scroll detected."),$(x)){R("Scroll event fired while unrendered. Ignoring...");return}ce(De)}if(R("registerListenersAndPositionElements invoked."),!a(x)){R("Aborting because element has been uninstalled");return}a(x).onRendered=Ee,a(x).onExpand=Qe,a(x).onShrink=Qe;var Ze=a(x).style;Z(x,Ze.width,Ze.height)}function le(){if(R("finalizeDomMutation invoked."),!a(x)){R("Aborting because element has been uninstalled");return}var Z=a(x).style;z(x,Z.width,Z.height),B(x,Z.width,Z.height)}function ve(){y(x)}function G(){R("Installing..."),T(),D(),r.add(0,M),r.add(1,ne),r.add(2,ae),r.add(3,le),r.add(4,ve)}R("Making detectable..."),P(x)?(R("Element is detached"),q(),R("Waiting until element is attached..."),a(x).onRendered=function(){R("Element is now attached"),G()}):G()}function S(C){var x=a(C);x&&(x.onExpandScroll&&v(b(C),"scroll",x.onExpandScroll),x.onShrinkScroll&&v(m(C),"scroll",x.onShrinkScroll),x.onAnimationStart&&v(x.container,"animationstart",x.onAnimationStart),x.container&&C.removeChild(x.container))}return{makeDetectable:k,addListener:w,uninstall:S,initDocument:c}},os}var as,hh;function v2(){if(hh)return as;hh=1;var e=eh().forEach,t=s2(),n=d2(),r=c2(),a=u2(),i=f2(),l=lh(),s=p2(),d=m2(),c=g2(),u=b2();function f(v){return Array.isArray(v)||v.length!==void 0}function p(v){if(Array.isArray(v))return v;var b=[];return e(v,function(m){b.push(m)}),b}function g(v){return v&&v.nodeType===1}as=function(v){v=v||{};var b;if(v.idHandler)b={get:function(_){return v.idHandler.get(_,!0)},set:v.idHandler.set};else{var m=r(),w=a({idGenerator:m,stateHandler:d});b=w}var k=v.reporter;if(!k){var S=k===!1;k=i(S)}var C=h(v,"batchProcessor",s({reporter:k})),x={};x.callOnAdd=!!h(v,"callOnAdd",!0),x.debug=!!h(v,"debug",!1);var y=n(b),R=t({stateHandler:d}),P,$=h(v,"strategy","object"),N=h(v,"important",!1),D={reporter:k,batchProcessor:C,stateHandler:d,idHandler:b,important:N};if($==="scroll"&&(l.isLegacyOpera()?(k.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),$="object"):l.isIE(9)&&(k.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),$="object")),$==="scroll")P=u(D);else if($==="object")P=c(D);else throw new Error("Invalid strategy name: "+$);var T={};function M(_,U,te){function ee(ae){var le=y.get(ae);e(le,function(G){G(ae)})}function Q(ae,le,ve){y.add(le,ve),ae&&ve(le)}if(te||(te=U,U=_,_={}),!U)throw new Error("At least one element required.");if(!te)throw new Error("Listener required.");if(g(U))U=[U];else if(f(U))U=p(U);else return k.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var H=0,B=h(_,"callOnAdd",x.callOnAdd),q=h(_,"onReady",function(){}),ne=h(_,"debug",x.debug);e(U,function(le){d.getState(le)||(d.initState(le),b.set(le));var ve=b.get(le);if(ne&&k.log("Attaching listener to element",ve,le),!R.isDetectable(le)){if(ne&&k.log(ve,"Not detectable."),R.isBusy(le)){ne&&k.log(ve,"System busy making it detectable"),Q(B,le,te),T[ve]=T[ve]||[],T[ve].push(function(){H++,H===U.length&&q()});return}return ne&&k.log(ve,"Making detectable..."),R.markBusy(le,!0),P.makeDetectable({debug:ne,important:N},le,function(Z){if(ne&&k.log(ve,"onElementDetectable"),d.getState(Z)){R.markAsDetectable(Z),R.markBusy(Z,!1),P.addListener(Z,ee),Q(B,Z,te);var ce=d.getState(Z);if(ce&&ce.startSize){var he=Z.offsetWidth,De=Z.offsetHeight;(ce.startSize.width!==he||ce.startSize.height!==De)&&ee(Z)}T[ve]&&e(T[ve],function(Ee){Ee()})}else ne&&k.log(ve,"Element uninstalled before being detectable.");delete T[ve],H++,H===U.length&&q()})}ne&&k.log(ve,"Already detecable, adding listener."),Q(B,le,te),H++}),H===U.length&&q()}function z(_){if(!_)return k.error("At least one element is required.");if(g(_))_=[_];else if(f(_))_=p(_);else return k.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e(_,function(U){y.removeAllListeners(U),P.uninstall(U),d.cleanState(U)})}function A(_){P.initDocument&&P.initDocument(_)}return{listenTo:M,removeListener:y.removeListener,removeAllListeners:y.removeAllListeners,uninstall:z,initDocument:A}};function h(v,b,m){var w=v[b];return w==null&&m!==void 0?m:w}return as}var y2=v2();const ph=l2(y2),x2={key:0,class:"settingsBtn"};function w2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const C2=o.defineComponent({__name:"BaseTable",props:{...sf.props,size:{type:String,default:"small"},actionColumn:{type:Object,default:null},singleLine:{type:Boolean,default:!1},remote:{type:Boolean,default:!0},scrollHeight:{type:Number,default:200},virtualScroll:{type:Boolean,default:!1},columnsSetting:{type:Boolean,default:!0},settingOption:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.useSlots(),r=o.computed(()=>Object.keys(n)),a=ph(),i=o.ref(null),l=o.ref(null),s=o.ref(h()),d=o.ref(p()),c=o.ref(t.scrollHeight),u=o.ref(null);function f(){let w=t.scrollHeight;if(l.value){const k=l.value,S=l.value.querySelector(".n-data-table-thead"),C=l.value.querySelector(".n-data-table__pagination");w=k.offsetHeight-S.offsetHeight-(C?C.offsetHeight+12:0)-2}c.value=w}function p(){const w=s.value;let k=t.virtualScroll?0:200;return w.forEach(S=>{S.width&&(k+=parseInt(S.width))}),k}function g(w){s.value=h(w),d.value=p()}function h(w){let k=w?En(w):En(t.columns)||[];return t.actionColumn&&(k=[...k,En(t.actionColumn)]),k=k.filter(S=>S.checked!==!1),k.forEach(S=>{if(S.title&&typeof S.title=="string"&&S.titleTooltip){let C=S.title;S.title=()=>o.createVNode("div",{class:"cell-title-hasTooltip"},[o.createVNode("div",null,[C]),o.createVNode(_a,{trigger:"hover"},{default:()=>o.createVNode("span",{innerHTML:S.titleTooltip},null),trigger:()=>o.createVNode(Tr,{size:"15"},{default:()=>[o.createVNode(Qf,null,null)]})})])}else if(S.title&&typeof S.title=="string"){const C=S.title;S.title=()=>o.createVNode(Oo,null,w2(C)?C:{default:()=>[C]})}!S.render&&!S.slot&&(S.render=C=>{let x=C[S.key];return C[S.key]&&S.width&&(x=o.createVNode(Oo,null,{default:()=>[C[S.key]]})),x}),S.slot&&(S.render=(C,x)=>r.value.includes(S.slot)?n[S.slot]({row:C,index:x}):C[S.key]||"")}),k}const v=(w,k)=>({onClick:()=>{t.rowKey?t.rowKey instanceof Function?u.value=t.rowKey(w):u.value=w[t.rowKey]:u.value=k}}),b=(w,k)=>t.rowKey?t.rowKey instanceof Function?u.value===t.rowKey(w)?"selected":"":u.value===w[t.rowKey]?"selected":"":u.value===k?"selected":"",m=()=>{i.value.open(En(t.columns))};return o.nextTick(()=>{f(),a.listenTo(l.value,w=>{f()})}),o.onMounted(async()=>{}),o.onUnmounted(()=>{l.value&&(console.log("BaseTable销毁监听事件"),a.uninstall(l.value))}),o.provide("getColumns",()=>En(t.columns)),(w,k)=>(o.openBlock(),o.createElementBlock("div",{class:"hcPackage-baseTable",style:{height:"100%"},ref_key:"baseTableRef",ref:l},[t.columnsSetting?(o.openBlock(),o.createElementBlock("div",x2,[o.createVNode(o.unref(_a),{trigger:"hover"},{trigger:o.withCtx(()=>[o.createElementVNode("span",{onClick:m},[o.createVNode(o.unref(Tr),{onClick:m},{default:o.withCtx(()=>[o.createVNode(o.unref(LR))]),_:1})])]),default:o.withCtx(()=>[k[0]||(k[0]=o.createTextVNode(" 列设置 "))]),_:1})])):o.createCommentVNode("",!0),o.createVNode(o.unref(sf),o.mergeProps(t,{remote:t.remote,"single-line":t.singleLine,columns:s.value,"scroll-x":d.value,"row-props":t.rowProps?t.rowProps:v,"row-class-name":t.rowClassName?t.rowClassName:b,"virtual-scroll":t.virtualScroll,"max-height":c.value}),null,16,["remote","single-line","columns","scroll-x","row-props","row-class-name","virtual-scroll","max-height"]),o.createVNode(Zf,o.mergeProps({ref_key:"columnDrawSettingRef",ref:i,onConfirm:g},t.settingOption),null,16)],512))}}),k2={class:"label-has-tips"},S2=["innerHTML"],R2={class:"btns-box"},P2=o.defineComponent({__name:"BaseForm",props:{...Df.props,formData:{type:Object,default:()=>({})},inline:{type:Boolean,default:!0},labelPlacement:{type:String,default:"left"},getlineNumWidth:{type:Number,default:290},cellMinWidth:{type:Number,default:200},showFeedback:{type:Boolean,default:!1},schemas:{type:Array,default:()=>[]}},emits:["submit","reset","error"],setup(e,{expose:t,emit:n}){const r=e,a={NInput:bn,NSelect:Du,InputTree:Xf,NDatePicker:lS},i=n,l=o.ref(!1),s=o.ref(null),d=o.ref(null),c=ph(),u=o.ref(3),f=o.computed(()=>r.schemas.length>=u.value);function p(w){const k=Math.floor(w/r.getlineNumWidth);u.value=k,l.value||(r.schemas.forEach((S,C)=>{C<=k-2&&(S.show=!0)}),l.value=!0)}const g=(w,k)=>w.component(w,k),h=async()=>{try{await d.value.validate(),i("submit",r.formData)}catch(w){w&&w.length&&w.length>=u.value&&(b.value||m()),i("error",w)}},v=()=>{d.value.restoreValidation();for(let w in r.formData)r.formData[w]=null;i("reset")},b=o.ref(!1),m=()=>{b.value?r.schemas.forEach((w,k)=>{k<=u.value-2?w.show=!0:w.show=!1}):r.schemas.forEach(w=>{w.show=!0}),b.value=!b.value};return o.nextTick(()=>{c.listenTo(s.value,w=>{p(w.offsetWidth)})}),o.onMounted(async()=>{}),o.onUnmounted(()=>{s.value&&(console.log("BaseForm销毁监听事件"),c.uninstall(s.value))}),t({submitForm:h,resetForm:v,triggerExpand:m}),(w,k)=>{const S=o.resolveComponent("n-icon");return o.openBlock(),o.createElementBlock("div",{class:"hcPackage-baseForm",ref_key:"baseFormRef",ref:s},[o.createVNode(o.unref(Df),o.mergeProps({ref_key:"formRef",ref:d},r,{model:r.formData,inline:r.inline,"label-placement":r.labelPlacement,showFeedback:r.showFeedback}),{default:o.withCtx(()=>[o.createElementVNode("div",{class:"form-layout",style:o.normalizeStyle({display:"grid",gridTemplateColumns:`repeat(${u.value}, minmax(${r.cellMinWidth}px, 1fr))`,gap:"10px"})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.schemas,(C,x)=>o.withDirectives((o.openBlock(),o.createBlock(o.unref(Lf),{key:x,label:C.label,path:C.field,"require-mark-placement":"left"},o.createSlots({default:o.withCtx(()=>[C.slot?o.renderSlot(w.$slots,C.slot,{key:0,model:r.formData,field:C.field,value:r.formData[C.field]}):typeof C.component=="function"?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(g(C,r.formData)),{key:1,value:r.formData[C.field],"onUpdate:value":y=>r.formData[C.field]=y},null,40,["value","onUpdate:value"])):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a[C.component]),o.mergeProps({key:C.field,style:{width:"100%"},value:r.formData[C.field],"onUpdate:value":y=>r.formData[C.field]=y,"formatted-value":r.formData[C.field],"onUpdate:formattedValue":y=>r.formData[C.field]=y,ref_for:!0},C.componentProps),null,16,["value","onUpdate:value","formatted-value","onUpdate:formattedValue"]))]),_:2},[C.labelMessage?{name:"label",fn:o.withCtx(()=>[o.createElementVNode("div",k2,[o.createElementVNode("span",null,o.toDisplayString(C.label),1),o.createVNode(o.unref(_a),{trigger:"hover"},{trigger:o.withCtx(()=>[o.createVNode(S,{size:15},{default:o.withCtx(()=>[o.createVNode(o.unref(Qf))]),_:1})]),default:o.withCtx(()=>[o.createElementVNode("span",{innerHTML:C.labelMessage},null,8,S2)]),_:2},1024)])]),key:"0"}:void 0]),1032,["label","path"])),[[o.vShow,C.show]])),128)),o.createVNode(o.unref(Lf),{class:"last-form-item",label:"",style:o.normalizeStyle({gridColumn:`${u.value} / ${u.value+1}`,gridRow:"1/ 2"})},{default:o.withCtx(()=>[o.createElementVNode("div",R2,[o.createVNode(o.unref(Ct),{type:"primary",onClick:h},{default:o.withCtx(()=>k[0]||(k[0]=[o.createTextVNode("查询")])),_:1}),o.createVNode(o.unref(Ct),{onClick:v},{default:o.withCtx(()=>k[1]||(k[1]=[o.createTextVNode("重置")])),_:1}),f.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"btn-expand",onClick:m},[o.createElementVNode("span",null,o.toDisplayString(b.value?"收起":"展开"),1),b.value?(o.openBlock(),o.createBlock(S,{key:1,size:20},{default:o.withCtx(()=>[o.createVNode(o.unref(MR))]),_:1})):(o.openBlock(),o.createBlock(S,{key:0,size:20},{default:o.withCtx(()=>[o.createVNode(o.unref(qf))]),_:1}))])):o.createCommentVNode("",!0)])]),_:1},8,["style"])],4)]),_:3},16,["model","inline","label-placement","showFeedback"])],512)}}});class T2{constructor(){Me(this,"pageNo","current");Me(this,"pageSize","size");Me(this,"records","records");Me(this,"pages","pages");Me(this,"total","total")}}function F2(e={},t,n,r){const a=r||new T2,{pageNo:i,pageSize:l,records:s,pages:d,total:c}=a,u=o.ref({[i]:1,[l]:20}),f=o.ref({...e}),p=o.ref([]),g=o.ref(!1),h=async(m=!1)=>{m&&(u.value[i]=1);let w={pageParams:{...u.value},formData:{...f.value}};n&&(w=await n(w));for(let S in w.formData)!w.formData[S]&&w.formData[S]!==0&&delete w.formData[S];g.value=!0;const k=await t(w).finally(()=>{g.value=!1});k&&k[s]?(p.value=k[s],v.itemCount=Number(k[c]),v.pageCount=Number(k[d])):p.value=k||[]},v=o.reactive({pageSlot:6,pageSizes:[10,20,30,50,100],pageSize:20,prefix:()=>`共${v.itemCount}条`,showQuickJumper:!0,showSizePicker:!0,page:1,pageCount:1,itemCount:0,updateSize:m=>{u.value[i]=1,v.page=1,u.value[l]=m,v.pageSize=m,h()},updatePage:m=>{u.value[i]=m,v.page=m,h()},updateSorter:m=>{m&&(m.order?f.value.orders={column:m.sorter.columnKey||m.columnKey,asc:m.order==="ascend"?!0:m.order==="descend"?!1:""}:delete f.value.orders,h(!0))}});return{pageParams:u,formData:f,paginations:v,reset:m=>{Object.keys(f.value).forEach(w=>{f.value[w]=null}),u.value={[i]:1,[l]:20},f.value={...f.value,...e},m&&h()},tableData:p,fetchData:h,fetchLoading:g}}vt.BaseForm=P2,vt.BaseTable=C2,vt.ColumnsDrawSetting=Zf,vt.InputTree=Xf,vt.usePagination=F2,Object.defineProperty(vt,Symbol.toStringTag,{value:"Module"})});
2674
+ `,N+="@keyframes "+P+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",R(N)}}function g(C){C.className+=" "+d+"_animation_active"}function h(C,x,y){if(C.addEventListener)C.addEventListener(x,y);else if(C.attachEvent)C.attachEvent("on"+x,y);else return n.error("[scroll] Don't know how to add event listeners.")}function v(C,x,y){if(C.removeEventListener)C.removeEventListener(x,y);else if(C.detachEvent)C.detachEvent("on"+x,y);else return n.error("[scroll] Don't know how to remove event listeners.")}function b(C){return a(C).container.childNodes[0].childNodes[0].childNodes[0]}function m(C){return a(C).container.childNodes[0].childNodes[0].childNodes[1]}function w(C,x){var y=a(C).listeners;if(!y.push)throw new Error("Cannot add listener to an element that is not detectable.");a(C).listeners.push(x)}function k(C,x,y){y||(y=x,x=C,C=null),C=C||{};function R(){if(C.debug){var Z=Array.prototype.slice.call(arguments);if(Z.unshift(i.get(x),"Scroll: "),n.log.apply)n.log.apply(null,Z);else for(var ce=0;ce<Z.length;ce++)n.log(Z[ce])}}function P(Z){function ce(he){var De=he.getRootNode&&he.getRootNode().contains(he);return he===he.ownerDocument.body||he.ownerDocument.body.contains(he)||De}return!ce(Z)||window.getComputedStyle(Z)===null}function $(Z){var ce=a(Z).container.childNodes[0],he=window.getComputedStyle(ce);return!he.width||he.width.indexOf("px")===-1}function N(){var Z=window.getComputedStyle(x),ce={};return ce.position=Z.position,ce.width=x.offsetWidth,ce.height=x.offsetHeight,ce.top=Z.top,ce.right=Z.right,ce.bottom=Z.bottom,ce.left=Z.left,ce.widthCSS=Z.width,ce.heightCSS=Z.height,ce}function D(){var Z=N();a(x).startSize={width:Z.width,height:Z.height},R("Element start size",a(x).startSize)}function T(){a(x).listeners=[]}function M(){if(R("storeStyle invoked."),!a(x)){R("Aborting because element has been uninstalled");return}var Z=N();a(x).style=Z}function z(Z,ce,he){a(Z).lastWidth=ce,a(Z).lastHeight=he}function A(Z){return b(Z).childNodes[0]}function _(){return 2*l.width+1}function U(){return 2*l.height+1}function te(Z){return Z+10+_()}function ee(Z){return Z+10+U()}function Q(Z){return Z*2+_()}function H(Z){return Z*2+U()}function B(Z,ce,he){var De=b(Z),Ee=m(Z),Qe=te(ce),Ze=ee(he),Ke=Q(ce),_e=H(he);De.scrollLeft=Qe,De.scrollTop=Ze,Ee.scrollLeft=Ke,Ee.scrollTop=_e}function q(){var Z=a(x).container;if(!Z){Z=document.createElement("div"),Z.className=d,Z.style.cssText=u(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),a(x).container=Z,g(Z),x.appendChild(Z);var ce=function(){a(x).onRendered&&a(x).onRendered()};h(Z,"animationstart",ce),a(x).onAnimationStart=ce}return Z}function ne(){function Z(){var Ne=a(x).style;if(Ne.position==="static"){x.style.setProperty("position","relative",C.important?"important":"");var at=function(rt,qe,Je,xe){function Ie(j){return j.replace(/[^-\d\.]/g,"")}var F=Je[xe];F!=="auto"&&Ie(F)!=="0"&&(rt.warn("An element that is positioned static has style."+xe+"="+F+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+xe+" will be set to 0. Element: ",qe),qe.style[xe]=0)};at(n,x,Ne,"top"),at(n,x,Ne,"right"),at(n,x,Ne,"bottom"),at(n,x,Ne,"left")}}function ce(Ne,at,rt,qe){return Ne=Ne?Ne+"px":"0",at=at?at+"px":"0",rt=rt?rt+"px":"0",qe=qe?qe+"px":"0",["left: "+Ne,"top: "+at,"right: "+qe,"bottom: "+rt]}if(R("Injecting elements"),!a(x)){R("Aborting because element has been uninstalled");return}Z();var he=a(x).container;he||(he=q());var De=l.width,Ee=l.height,Qe=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),Ze=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(ce(-(1+De),-(1+Ee),-Ee,-De))),Ke=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),_e=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),Re=u(["position: absolute","left: 0","top: 0"]),$e=u(["position: absolute","width: 200%","height: 200%"]),Be=document.createElement("div"),Le=document.createElement("div"),Ve=document.createElement("div"),ue=document.createElement("div"),ye=document.createElement("div"),He=document.createElement("div");Be.dir="ltr",Be.style.cssText=Qe,Be.className=d,Le.className=d,Le.style.cssText=Ze,Ve.style.cssText=Ke,ue.style.cssText=Re,ye.style.cssText=_e,He.style.cssText=$e,Ve.appendChild(ue),ye.appendChild(He),Le.appendChild(Ve),Le.appendChild(ye),Be.appendChild(Le),he.appendChild(Be);function J(){var Ne=a(x);Ne&&Ne.onExpand?Ne.onExpand():R("Aborting expand scroll handler: element has been uninstalled")}function Ae(){var Ne=a(x);Ne&&Ne.onShrink?Ne.onShrink():R("Aborting shrink scroll handler: element has been uninstalled")}h(Ve,"scroll",J),h(ye,"scroll",Ae),a(x).onExpandScroll=J,a(x).onShrinkScroll=Ae}function ae(){function Z(Ke,_e,Re){var $e=A(Ke),Be=te(_e),Le=ee(Re);$e.style.setProperty("width",Be+"px",C.important?"important":""),$e.style.setProperty("height",Le+"px",C.important?"important":"")}function ce(Ke){var _e=x.offsetWidth,Re=x.offsetHeight,$e=_e!==a(x).lastWidth||Re!==a(x).lastHeight;R("Storing current size",_e,Re),z(x,_e,Re),r.add(0,function(){if($e){if(!a(x)){R("Aborting because element has been uninstalled");return}if(!he()){R("Aborting because element container has not been initialized");return}if(C.debug){var Le=x.offsetWidth,Ve=x.offsetHeight;(Le!==_e||Ve!==Re)&&n.warn(i.get(x),"Scroll: Size changed before updating detector elements.")}Z(x,_e,Re)}}),r.add(1,function(){if(!a(x)){R("Aborting because element has been uninstalled");return}if(!he()){R("Aborting because element container has not been initialized");return}B(x,_e,Re)}),$e&&Ke&&r.add(2,function(){if(!a(x)){R("Aborting because element has been uninstalled");return}if(!he()){R("Aborting because element container has not been initialized");return}Ke()})}function he(){return!!a(x).container}function De(){function Ke(){return a(x).lastNotifiedWidth===void 0}R("notifyListenersIfNeeded invoked");var _e=a(x);if(Ke()&&_e.lastWidth===_e.startSize.width&&_e.lastHeight===_e.startSize.height)return R("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(_e.lastWidth===_e.lastNotifiedWidth&&_e.lastHeight===_e.lastNotifiedHeight)return R("Not notifying: Size already notified");R("Current size not notified, notifying..."),_e.lastNotifiedWidth=_e.lastWidth,_e.lastNotifiedHeight=_e.lastHeight,e(a(x).listeners,function(Re){Re(x)})}function Ee(){if(R("startanimation triggered."),$(x)){R("Ignoring since element is still unrendered...");return}R("Element rendered.");var Ke=b(x),_e=m(x);(Ke.scrollLeft===0||Ke.scrollTop===0||_e.scrollLeft===0||_e.scrollTop===0)&&(R("Scrollbars out of sync. Updating detector elements..."),ce(De))}function Qe(){if(R("Scroll detected."),$(x)){R("Scroll event fired while unrendered. Ignoring...");return}ce(De)}if(R("registerListenersAndPositionElements invoked."),!a(x)){R("Aborting because element has been uninstalled");return}a(x).onRendered=Ee,a(x).onExpand=Qe,a(x).onShrink=Qe;var Ze=a(x).style;Z(x,Ze.width,Ze.height)}function le(){if(R("finalizeDomMutation invoked."),!a(x)){R("Aborting because element has been uninstalled");return}var Z=a(x).style;z(x,Z.width,Z.height),B(x,Z.width,Z.height)}function ve(){y(x)}function G(){R("Installing..."),T(),D(),r.add(0,M),r.add(1,ne),r.add(2,ae),r.add(3,le),r.add(4,ve)}R("Making detectable..."),P(x)?(R("Element is detached"),q(),R("Waiting until element is attached..."),a(x).onRendered=function(){R("Element is now attached"),G()}):G()}function S(C){var x=a(C);x&&(x.onExpandScroll&&v(b(C),"scroll",x.onExpandScroll),x.onShrinkScroll&&v(m(C),"scroll",x.onShrinkScroll),x.onAnimationStart&&v(x.container,"animationstart",x.onAnimationStart),x.container&&C.removeChild(x.container))}return{makeDetectable:k,addListener:w,uninstall:S,initDocument:c}},os}var as,hh;function v2(){if(hh)return as;hh=1;var e=eh().forEach,t=s2(),n=d2(),r=c2(),a=u2(),i=f2(),l=lh(),s=p2(),d=m2(),c=g2(),u=b2();function f(v){return Array.isArray(v)||v.length!==void 0}function p(v){if(Array.isArray(v))return v;var b=[];return e(v,function(m){b.push(m)}),b}function g(v){return v&&v.nodeType===1}as=function(v){v=v||{};var b;if(v.idHandler)b={get:function(_){return v.idHandler.get(_,!0)},set:v.idHandler.set};else{var m=r(),w=a({idGenerator:m,stateHandler:d});b=w}var k=v.reporter;if(!k){var S=k===!1;k=i(S)}var C=h(v,"batchProcessor",s({reporter:k})),x={};x.callOnAdd=!!h(v,"callOnAdd",!0),x.debug=!!h(v,"debug",!1);var y=n(b),R=t({stateHandler:d}),P,$=h(v,"strategy","object"),N=h(v,"important",!1),D={reporter:k,batchProcessor:C,stateHandler:d,idHandler:b,important:N};if($==="scroll"&&(l.isLegacyOpera()?(k.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),$="object"):l.isIE(9)&&(k.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),$="object")),$==="scroll")P=u(D);else if($==="object")P=c(D);else throw new Error("Invalid strategy name: "+$);var T={};function M(_,U,te){function ee(ae){var le=y.get(ae);e(le,function(G){G(ae)})}function Q(ae,le,ve){y.add(le,ve),ae&&ve(le)}if(te||(te=U,U=_,_={}),!U)throw new Error("At least one element required.");if(!te)throw new Error("Listener required.");if(g(U))U=[U];else if(f(U))U=p(U);else return k.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var H=0,B=h(_,"callOnAdd",x.callOnAdd),q=h(_,"onReady",function(){}),ne=h(_,"debug",x.debug);e(U,function(le){d.getState(le)||(d.initState(le),b.set(le));var ve=b.get(le);if(ne&&k.log("Attaching listener to element",ve,le),!R.isDetectable(le)){if(ne&&k.log(ve,"Not detectable."),R.isBusy(le)){ne&&k.log(ve,"System busy making it detectable"),Q(B,le,te),T[ve]=T[ve]||[],T[ve].push(function(){H++,H===U.length&&q()});return}return ne&&k.log(ve,"Making detectable..."),R.markBusy(le,!0),P.makeDetectable({debug:ne,important:N},le,function(Z){if(ne&&k.log(ve,"onElementDetectable"),d.getState(Z)){R.markAsDetectable(Z),R.markBusy(Z,!1),P.addListener(Z,ee),Q(B,Z,te);var ce=d.getState(Z);if(ce&&ce.startSize){var he=Z.offsetWidth,De=Z.offsetHeight;(ce.startSize.width!==he||ce.startSize.height!==De)&&ee(Z)}T[ve]&&e(T[ve],function(Ee){Ee()})}else ne&&k.log(ve,"Element uninstalled before being detectable.");delete T[ve],H++,H===U.length&&q()})}ne&&k.log(ve,"Already detecable, adding listener."),Q(B,le,te),H++}),H===U.length&&q()}function z(_){if(!_)return k.error("At least one element is required.");if(g(_))_=[_];else if(f(_))_=p(_);else return k.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e(_,function(U){y.removeAllListeners(U),P.uninstall(U),d.cleanState(U)})}function A(_){P.initDocument&&P.initDocument(_)}return{listenTo:M,removeListener:y.removeListener,removeAllListeners:y.removeAllListeners,uninstall:z,initDocument:A}};function h(v,b,m){var w=v[b];return w==null&&m!==void 0?m:w}return as}var y2=v2();const ph=l2(y2),x2={key:0,class:"settingsBtn"};function w2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const C2=o.defineComponent({__name:"BaseTable",props:{...sf.props,size:{type:String,default:"small"},actionColumn:{type:Object,default:null},singleLine:{type:Boolean,default:!1},remote:{type:Boolean,default:!0},scrollHeight:{type:Number,default:200},virtualScroll:{type:Boolean,default:!1},columnsSetting:{type:Boolean,default:!0},settingOption:{type:Object,default:()=>({})}},setup(e){const t=e,n=o.useSlots(),r=o.computed(()=>Object.keys(n)),a=ph(),i=o.ref(null),l=o.ref(null),s=o.ref(h()),d=o.ref(p()),c=o.ref(t.scrollHeight),u=o.ref(null);function f(){let w=t.scrollHeight;if(l.value){const k=l.value,S=l.value.querySelector(".n-data-table-thead"),C=l.value.querySelector(".n-data-table__pagination");w=k.offsetHeight-S.offsetHeight-(C?C.offsetHeight+12:0)-2}c.value=w}function p(){const w=s.value;let k=t.virtualScroll?0:200;return w.forEach(S=>{S.width&&(k+=parseInt(S.width))}),k}function g(w){s.value=h(w),d.value=p()}function h(w){let k=w?En(w):En(t.columns)||[];return t.actionColumn&&(k=[...k,En(t.actionColumn)]),k=k.filter(S=>S.checked!==!1),k.forEach(S=>{if(S.title&&typeof S.title=="string"&&S.titleTooltip){let C=S.title;S.title=()=>o.createVNode("div",{class:"cell-title-hasTooltip"},[o.createVNode("div",null,[C]),o.createVNode(_a,{trigger:"hover"},{default:()=>o.createVNode("span",{innerHTML:S.titleTooltip},null),trigger:()=>o.createVNode(Tr,{size:"15"},{default:()=>[o.createVNode(Qf,null,null)]})})])}else if(S.title&&typeof S.title=="string"){const C=S.title;S.title=()=>o.createVNode(Oo,null,w2(C)?C:{default:()=>[C]})}!S.render&&!S.slot&&(S.render=C=>{let x=C[S.key];return C[S.key]&&S.width&&(x=o.createVNode(Oo,null,{default:()=>[C[S.key]]})),x}),S.slot&&(S.render=(C,x)=>r.value.includes(S.slot)?n[S.slot]({row:C,index:x}):C[S.key]||"")}),k}const v=(w,k)=>({onClick:()=>{t.rowKey?t.rowKey instanceof Function?u.value=t.rowKey(w):u.value=w[t.rowKey]:u.value=k}}),b=(w,k)=>t.rowKey?t.rowKey instanceof Function?u.value===t.rowKey(w)?"selected":"":u.value===w[t.rowKey]?"selected":"":u.value===k?"selected":"",m=()=>{i.value.open(En(t.columns))};return o.nextTick(()=>{f(),a.listenTo(l.value,w=>{f()})}),o.onMounted(async()=>{}),o.onUnmounted(()=>{l.value&&(console.log("BaseTable销毁监听事件"),a.uninstall(l.value))}),o.provide("getColumns",()=>En(t.columns)),(w,k)=>(o.openBlock(),o.createElementBlock("div",{class:"hcPackage-baseTable",style:{height:"100%"},ref_key:"baseTableRef",ref:l},[t.columnsSetting?(o.openBlock(),o.createElementBlock("div",x2,[o.createVNode(o.unref(_a),{trigger:"hover"},{trigger:o.withCtx(()=>[o.createElementVNode("span",{onClick:m},[o.createVNode(o.unref(Tr),{onClick:m},{default:o.withCtx(()=>[o.createVNode(o.unref(LR))]),_:1})])]),default:o.withCtx(()=>[k[0]||(k[0]=o.createTextVNode(" 列设置 "))]),_:1})])):o.createCommentVNode("",!0),o.createVNode(o.unref(sf),o.mergeProps(t,{remote:t.remote,"single-line":t.singleLine,columns:s.value,"scroll-x":d.value,"row-props":t.rowProps?t.rowProps:v,"row-class-name":t.rowClassName?t.rowClassName:b,"virtual-scroll":t.virtualScroll,"max-height":c.value}),null,16,["remote","single-line","columns","scroll-x","row-props","row-class-name","virtual-scroll","max-height"]),o.createVNode(Zf,o.mergeProps({ref_key:"columnDrawSettingRef",ref:i,onConfirm:g},t.settingOption),null,16)],512))}}),k2={class:"label-has-tips"},S2=["innerHTML"],R2={class:"btns-box"},P2={style:{"font-size":"12px"}},T2=o.defineComponent({__name:"BaseForm",props:{...Df.props,formData:{type:Object,default:()=>({})},inline:{type:Boolean,default:!0},labelPlacement:{type:String,default:"left"},getlineNumWidth:{type:Number,default:290},cellMinWidth:{type:Number,default:200},showFeedback:{type:Boolean,default:!1},schemas:{type:Array,default:()=>[]}},emits:["submit","reset","error"],setup(e,{expose:t,emit:n}){const r=e,a={NInput:bn,NSelect:Du,InputTree:Xf,NDatePicker:lS},i=n,l=o.ref(!1),s=o.ref(null),d=o.ref(null),c=ph(),u=o.ref(3),f=o.computed(()=>r.schemas.length>=u.value);function p(w){const k=Math.floor(w/r.getlineNumWidth);u.value=k,l.value||(r.schemas.forEach((S,C)=>{C<=k-2&&(S.show=!0)}),l.value=!0)}const g=(w,k)=>w.component(w,k),h=async()=>{try{await d.value.validate(),i("submit",r.formData)}catch(w){w&&w.length&&w.length>=u.value&&(b.value||m()),i("error",w)}},v=()=>{d.value.restoreValidation();for(let w in r.formData)r.formData[w]=null;i("reset")},b=o.ref(!1),m=()=>{b.value?r.schemas.forEach((w,k)=>{k<=u.value-2?w.show=!0:w.show=!1}):r.schemas.forEach(w=>{w.show=!0}),b.value=!b.value};return o.nextTick(()=>{c.listenTo(s.value,w=>{p(w.offsetWidth)})}),o.onMounted(async()=>{}),o.onUnmounted(()=>{s.value&&(console.log("BaseForm销毁监听事件"),c.uninstall(s.value))}),t({submitForm:h,resetForm:v,triggerExpand:m}),(w,k)=>{const S=o.resolveComponent("n-icon");return o.openBlock(),o.createElementBlock("div",{class:"hcPackage-baseForm",ref_key:"baseFormRef",ref:s},[o.createVNode(o.unref(Df),o.mergeProps({ref_key:"formRef",ref:d},r,{model:r.formData,inline:r.inline,"label-placement":r.labelPlacement,showFeedback:r.showFeedback}),{default:o.withCtx(()=>[o.createElementVNode("div",{class:"form-layout",style:o.normalizeStyle({display:"grid",gridTemplateColumns:`repeat(${u.value}, minmax(${r.cellMinWidth}px, 1fr))`,gap:"10px"})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.schemas,(C,x)=>o.withDirectives((o.openBlock(),o.createBlock(o.unref(Lf),{key:x,label:C.label,path:C.field,"require-mark-placement":"left"},o.createSlots({default:o.withCtx(()=>[C.slot?o.renderSlot(w.$slots,C.slot,{key:0,model:r.formData,field:C.field,value:r.formData[C.field]}):typeof C.component=="function"?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(g(C,r.formData)),{key:1,value:r.formData[C.field],"onUpdate:value":y=>r.formData[C.field]=y},null,40,["value","onUpdate:value"])):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a[C.component]),o.mergeProps({key:C.field,style:{width:"100%"},value:r.formData[C.field],"onUpdate:value":y=>r.formData[C.field]=y,"formatted-value":r.formData[C.field],"onUpdate:formattedValue":y=>r.formData[C.field]=y,ref_for:!0},C.componentProps),null,16,["value","onUpdate:value","formatted-value","onUpdate:formattedValue"]))]),_:2},[C.labelMessage?{name:"label",fn:o.withCtx(()=>[o.createElementVNode("div",k2,[o.createElementVNode("span",null,o.toDisplayString(C.label),1),o.createVNode(o.unref(_a),{trigger:"hover"},{trigger:o.withCtx(()=>[o.createVNode(S,{size:15},{default:o.withCtx(()=>[o.createVNode(o.unref(Qf))]),_:1})]),default:o.withCtx(()=>[o.createElementVNode("span",{innerHTML:C.labelMessage},null,8,S2)]),_:2},1024)])]),key:"0"}:void 0]),1032,["label","path"])),[[o.vShow,C.show]])),128)),o.createVNode(o.unref(Lf),{class:"last-form-item",label:"",style:o.normalizeStyle({gridColumn:`${u.value} / ${u.value+1}`,gridRow:"1/ 2"})},{default:o.withCtx(()=>[o.createElementVNode("div",R2,[o.createVNode(o.unref(Ct),{type:"primary",onClick:h},{default:o.withCtx(()=>k[0]||(k[0]=[o.createTextVNode("查询")])),_:1}),o.createVNode(o.unref(Ct),{onClick:v},{default:o.withCtx(()=>k[1]||(k[1]=[o.createTextVNode("重置")])),_:1}),f.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"btn-expand",onClick:m},[o.createElementVNode("span",P2,o.toDisplayString(b.value?"收起":"展开"),1),b.value?(o.openBlock(),o.createBlock(S,{key:1,size:20},{default:o.withCtx(()=>[o.createVNode(o.unref(MR))]),_:1})):(o.openBlock(),o.createBlock(S,{key:0,size:20},{default:o.withCtx(()=>[o.createVNode(o.unref(qf))]),_:1}))])):o.createCommentVNode("",!0)])]),_:1},8,["style"])],4)]),_:3},16,["model","inline","label-placement","showFeedback"])],512)}}});class F2{constructor(){Me(this,"pageNo","current");Me(this,"pageSize","size");Me(this,"records","records");Me(this,"pages","pages");Me(this,"total","total")}}function $2(e={},t,n,r){const a=r||new F2,{pageNo:i,pageSize:l,records:s,pages:d,total:c}=a,u=o.ref({[i]:1,[l]:20}),f=o.ref({...e}),p=o.ref([]),g=o.ref(!1),h=async(m=!1)=>{m&&(u.value[i]=1);let w={pageParams:{...u.value},formData:{...f.value}};n&&(w=await n(w));for(let S in w.formData)!w.formData[S]&&w.formData[S]!==0&&delete w.formData[S];g.value=!0;const k=await t(w).finally(()=>{g.value=!1});k&&k[s]?(p.value=k[s],v.itemCount=Number(k[c]),v.pageCount=Number(k[d])):p.value=k||[]},v=o.reactive({pageSlot:6,pageSizes:[10,20,30,50,100],pageSize:20,prefix:()=>`共${v.itemCount}条`,showQuickJumper:!0,showSizePicker:!0,page:1,pageCount:1,itemCount:0,updateSize:m=>{u.value[i]=1,v.page=1,u.value[l]=m,v.pageSize=m,h()},updatePage:m=>{u.value[i]=m,v.page=m,h()},updateSorter:m=>{m&&(m.order?f.value.orders={column:m.sorter.columnKey||m.columnKey,asc:m.order==="ascend"?!0:m.order==="descend"?!1:""}:delete f.value.orders,h(!0))}});return{pageParams:u,formData:f,paginations:v,reset:m=>{Object.keys(f.value).forEach(w=>{f.value[w]=null}),u.value={[i]:1,[l]:20},f.value={...f.value,...e},m&&h()},tableData:p,fetchData:h,fetchLoading:g}}vt.BaseForm=T2,vt.BaseTable=C2,vt.ColumnsDrawSetting=Zf,vt.InputTree=Xf,vt.usePagination=$2,Object.defineProperty(vt,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcui-package",
3
- "version": "1.4.9",
3
+ "version": "1.5.0",
4
4
  "main": "./dist/hcui-package.umd.js",
5
5
  "module": "./dist/hcui-package.es.js",
6
6
  "style": "./dist/hcui-package.css",