k5web/assets/index.c6a389a9.js
2024-05-24 22:39:15 +08:00

296 lines
160 KiB
JavaScript

import{e as na,b as tt,l as Pn,i as xn,c as _t,I as _n,_ as za,d as nn,C as Ha}from"./dep-f6f516d9.c729faf9.js";import{c as W,_ as ve,f as nt,A as Wa,v as Ka,u as se,b as dt,p as ra,B as Ua,o as pn,C as Tn,i as Bt,m as Ga,d as Ya,D as Xa,q as qa,s as Ja,L as aa,h as At,j as Za}from"./index.3c6542a6.js";import{d as oe,c as x,g as Ft,aK as st,bM as la,f as X,r as In,w as he,o as rt,t as Oe,n as mt,bN as ia,aI as j,bD as Qa,aU as It,bC as el,i as yt,p as qt,bs as oa,bn as tl,bo as nl,bB as Ne,bx as rl,h as ut,b as rn,a as al}from"./arco.f43727df.js";import{u as Ve,r as Be,_ as Fe,a as Lt,c as ll,C as il,o as ol}from"./dep-281dbb92.b7bdc3eb.js";import{B as Mt,a as ua,u as ul}from"./index.d796ce09.js";import{E as Me,N as kn,t as De,Z as cl,as as sl,w as kt,s as vl,G as Ke,F as Ue,x as Le,B as zt,y as we,am as fl,ac as ca,aj as dl,ao as pl,a2 as Ut,C as sa,ak as hl}from"./index.28b8c38d.js";function Rn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Vn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Rn(Object(n),!0).forEach(function(r){Fe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var gl={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13 4v7h7v2h-7v7h-2v-7H4v-2h7V4h2z"}}]},bl=oe({name:"AddIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,r=x(()=>t.size),{className:a,style:l}=Ve(r),o=x(()=>["t-icon","t-icon-add",a.value]),i=x(()=>Vn(Vn({},l.value),n.style)),u=x(()=>({class:o.value,style:i.value,onClick:s=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:s})}}));return()=>Be(gl,u.value)}});const ml=bl;function Bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Fn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bn(Object(n),!0).forEach(function(r){Fe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var yl={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.5 8.09l-5.5 5.5-5.5-5.5L5.09 9.5 12 16.41l6.91-6.91-1.41-1.41z"}}]},Cl=oe({name:"ChevronDownIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,r=x(()=>t.size),{className:a,style:l}=Ve(r),o=x(()=>["t-icon","t-icon-chevron-down",a.value]),i=x(()=>Fn(Fn({},l.value),n.style)),u=x(()=>({class:o.value,style:i.value,onClick:s=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:s})}}));return()=>Be(yl,u.value)}});const va=Cl;function Ln(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function zn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ln(Object(n),!0).forEach(function(r){Fe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ol={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M18.41 7.5l-4.5 4.5 4.5 4.5L17 17.91 11.09 12 17 6.09l1.41 1.41zm-6.5 0L7.41 12l4.5 4.5-1.41 1.41L4.59 12l5.91-5.91 1.41 1.41z"}}]},Sl=oe({name:"ChevronLeftDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,r=x(()=>t.size),{className:a,style:l}=Ve(r),o=x(()=>["t-icon","t-icon-chevron-left-double",a.value]),i=x(()=>zn(zn({},l.value),n.style)),u=x(()=>({class:o.value,style:i.value,onClick:s=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:s})}}));return()=>Be(Ol,u.value)}});const wl=Sl;function Hn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Wn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hn(Object(n),!0).forEach(function(r){Fe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Pl={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M15.91 17.5l-5.5-5.5 5.5-5.5-1.41-1.41L7.59 12l6.91 6.91 1.41-1.41z"}}]},xl=oe({name:"ChevronLeftIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,r=x(()=>t.size),{className:a,style:l}=Ve(r),o=x(()=>["t-icon","t-icon-chevron-left",a.value]),i=x(()=>Wn(Wn({},l.value),n.style)),u=x(()=>({class:o.value,style:i.value,onClick:s=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:s})}}));return()=>Be(Pl,u.value)}});const fa=xl;function Kn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Un(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kn(Object(n),!0).forEach(function(r){Fe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var _l={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.59 16.5l4.5-4.5-4.5-4.5L7 6.09 12.91 12 7 17.91 5.59 16.5zm6.5 0l4.5-4.5-4.5-4.5 1.41-1.41L19.41 12l-5.91 5.91-1.41-1.41z"}}]},Il=oe({name:"ChevronRightDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,r=x(()=>t.size),{className:a,style:l}=Ve(r),o=x(()=>["t-icon","t-icon-chevron-right-double",a.value]),i=x(()=>Un(Un({},l.value),n.style)),u=x(()=>({class:o.value,style:i.value,onClick:s=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:s})}}));return()=>Be(_l,u.value)}});const kl=Il;function Gn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Yn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gn(Object(n),!0).forEach(function(r){Fe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var jl={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.09 17.5l5.5-5.5-5.5-5.5L9.5 5.09 16.41 12 9.5 18.91 8.09 17.5z"}}]},Nl=oe({name:"ChevronRightIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,r=x(()=>t.size),{className:a,style:l}=Ve(r),o=x(()=>["t-icon","t-icon-chevron-right",a.value]),i=x(()=>Yn(Yn({},l.value),n.style)),u=x(()=>({class:o.value,style:i.value,onClick:s=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:s})}}));return()=>Be(jl,u.value)}});const da=Nl;function Xn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function qn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xn(Object(n),!0).forEach(function(r){Fe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var El={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.5 15.91l-5.5-5.5-5.5 5.5-1.41-1.41L12 7.59l6.91 6.91-1.41 1.41z"}}]},Al=oe({name:"ChevronUpIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,r=x(()=>t.size),{className:a,style:l}=Ve(r),o=x(()=>["t-icon","t-icon-chevron-up",a.value]),i=x(()=>qn(qn({},l.value),n.style)),u=x(()=>({class:o.value,style:i.value,onClick:s=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:s})}}));return()=>Be(El,u.value)}});const pa=Al;function Jn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Zn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jn(Object(n),!0).forEach(function(r){Fe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ml={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3 10.5h3v3H3v-3zm7.5 0h3v3h-3v-3zm7.5 0h3v3h-3v-3z"}}]},$l=oe({name:"EllipsisIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,r=x(()=>t.size),{className:a,style:l}=Ve(r),o=x(()=>["t-icon","t-icon-ellipsis",a.value]),i=x(()=>Zn(Zn({},l.value),n.style)),u=x(()=>({class:o.value,style:i.value,onClick:s=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:s})}}));return()=>Be(Ml,u.value)}});const Dl=$l;function Qn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function er(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qn(Object(n),!0).forEach(function(r){Fe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Tl={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.5 5v14h-2V5h2zm9.16 1.75L12.41 12l5.25 5.25-1.41 1.41L9.59 12l6.66-6.66 1.41 1.41z"}}]},Rl=oe({name:"PageFirstIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,r=x(()=>t.size),{className:a,style:l}=Ve(r),o=x(()=>["t-icon","t-icon-page-first",a.value]),i=x(()=>er(er({},l.value),n.style)),u=x(()=>({class:o.value,style:i.value,onClick:s=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:s})}}));return()=>Be(Tl,u.value)}});const Vl=Rl;function tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function nr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tr(Object(n),!0).forEach(function(r){Fe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Bl={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.5 5v14h-2V5h2zm-9.75.34L14.41 12l-6.66 6.66-1.41-1.41L11.59 12 6.34 6.75l1.41-1.41z"}}]},Fl=oe({name:"PageLastIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,r=x(()=>t.size),{className:a,style:l}=Ve(r),o=x(()=>["t-icon","t-icon-page-last",a.value]),i=x(()=>nr(nr({},l.value),n.style)),u=x(()=>({class:o.value,style:i.value,onClick:s=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:s})}}));return()=>Be(Bl,u.value)}});const Ll=Fl;function rr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function ar(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rr(Object(n),!0).forEach(function(r){Fe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var zl={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4 11h16v2H4v-2z"}}]},Hl=oe({name:"RemoveIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,r=x(()=>t.size),{className:a,style:l}=Ve(r),o=x(()=>["t-icon","t-icon-remove",a.value]),i=x(()=>ar(ar({},l.value),n.style)),u=x(()=>({class:o.value,style:i.value,onClick:s=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:s})}}));return()=>Be(zl,u.value)}});const Wl=Hl;function lr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function ir(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lr(Object(n),!0).forEach(function(r){Fe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Kl={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 6a6 6 0 100 12 6 6 0 000-12zm-8 6a8 8 0 1116 0 8 8 0 01-16 0z"}}]},Ul=oe({name:"RoundIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,r=x(()=>t.size),{className:a,style:l}=Ve(r),o=x(()=>["t-icon","t-icon-round",a.value]),i=x(()=>ir(ir({},l.value),n.style)),u=x(()=>({class:o.value,style:i.value,onClick:s=>{var c;return(c=t.onClick)===null||c===void 0?void 0:c.call(t,{e:s})}}));return()=>Be(Kl,u.value)}});const Gl=Ul;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ha(){var t=Ft();return function(e,n){var r,a;n||(n=t.slots);var l=((r=n)===null||r===void 0||(a=r.default)===null||a===void 0?void 0:a.call(r))||[],o=[],i=function u(s){if(!!Me(s))return s.forEach(function(c){if(c.children&&Me(c.children)){if(c.type!==st)return;u(c.children)}else o.push(c)}),o};return i(l).filter(function(u){var s;return(s=u.type.name)===null||s===void 0?void 0:s.endsWith(e)})}}function Vs(){var t=Ft();return function(){var e,n=t.slots,r=(n==null||(e=n.default)===null||e===void 0?void 0:e.call(n))||[];return r.filter(function(a){return kn(a.type)==="symbol"&&!a.children?!1:a.type!==la}).map(function(a){return a.children&&Me(a.children)&&a.type===st?a.children:a}).flat()}}var Pe="top",Te="bottom",Re="right",xe="left",jn="auto",Ht=[Pe,Te,Re,xe],Ct="start",Tt="end",Yl="clippingParents",ga="viewport",jt="popper",Xl="reference",or=Ht.reduce(function(t,e){return t.concat([e+"-"+Ct,e+"-"+Tt])},[]),ba=[].concat(Ht,[jn]).reduce(function(t,e){return t.concat([e,e+"-"+Ct,e+"-"+Tt])},[]),ql="beforeRead",Jl="read",Zl="afterRead",Ql="beforeMain",ei="main",ti="afterMain",ni="beforeWrite",ri="write",ai="afterWrite",li=[ql,Jl,Zl,Ql,ei,ti,ni,ri,ai];function Xe(t){return t?(t.nodeName||"").toLowerCase():null}function Ee(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function vt(t){var e=Ee(t).Element;return t instanceof e||t instanceof Element}function $e(t){var e=Ee(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Nn(t){if(typeof ShadowRoot>"u")return!1;var e=Ee(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ii(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},a=e.attributes[n]||{},l=e.elements[n];!$e(l)||!Xe(l)||(Object.assign(l.style,r),Object.keys(a).forEach(function(o){var i=a[o];i===!1?l.removeAttribute(o):l.setAttribute(o,i===!0?"":i)}))})}function oi(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var a=e.elements[r],l=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),i=o.reduce(function(u,s){return u[s]="",u},{});!$e(a)||!Xe(a)||(Object.assign(a.style,i),Object.keys(l).forEach(function(u){a.removeAttribute(u)}))})}}const ui={name:"applyStyles",enabled:!0,phase:"write",fn:ii,effect:oi,requires:["computeStyles"]};function Ye(t){return t.split("-")[0]}var ct=Math.max,Jt=Math.min,Ot=Math.round;function hn(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ma(){return!/^((?!chrome|android).)*safari/i.test(hn())}function St(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),a=1,l=1;e&&$e(t)&&(a=t.offsetWidth>0&&Ot(r.width)/t.offsetWidth||1,l=t.offsetHeight>0&&Ot(r.height)/t.offsetHeight||1);var o=vt(t)?Ee(t):window,i=o.visualViewport,u=!ma()&&n,s=(r.left+(u&&i?i.offsetLeft:0))/a,c=(r.top+(u&&i?i.offsetTop:0))/l,d=r.width/a,f=r.height/l;return{width:d,height:f,top:c,right:s+d,bottom:c+f,left:s,x:s,y:c}}function En(t){var e=St(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function ya(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Nn(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function et(t){return Ee(t).getComputedStyle(t)}function ci(t){return["table","td","th"].indexOf(Xe(t))>=0}function at(t){return((vt(t)?t.ownerDocument:t.document)||window.document).documentElement}function an(t){return Xe(t)==="html"?t:t.assignedSlot||t.parentNode||(Nn(t)?t.host:null)||at(t)}function ur(t){return!$e(t)||et(t).position==="fixed"?null:t.offsetParent}function si(t){var e=/firefox/i.test(hn()),n=/Trident/i.test(hn());if(n&&$e(t)){var r=et(t);if(r.position==="fixed")return null}var a=an(t);for(Nn(a)&&(a=a.host);$e(a)&&["html","body"].indexOf(Xe(a))<0;){var l=et(a);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||e&&l.willChange==="filter"||e&&l.filter&&l.filter!=="none")return a;a=a.parentNode}return null}function Wt(t){for(var e=Ee(t),n=ur(t);n&&ci(n)&&et(n).position==="static";)n=ur(n);return n&&(Xe(n)==="html"||Xe(n)==="body"&&et(n).position==="static")?e:n||si(t)||e}function An(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function $t(t,e,n){return ct(t,Jt(e,n))}function vi(t,e,n){var r=$t(t,e,n);return r>n?n:r}function Ca(){return{top:0,right:0,bottom:0,left:0}}function Oa(t){return Object.assign({},Ca(),t)}function Sa(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var fi=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Oa(typeof e!="number"?e:Sa(e,Ht))};function di(t){var e,n=t.state,r=t.name,a=t.options,l=n.elements.arrow,o=n.modifiersData.popperOffsets,i=Ye(n.placement),u=An(i),s=[xe,Re].indexOf(i)>=0,c=s?"height":"width";if(!(!l||!o)){var d=fi(a.padding,n),f=En(l),v=u==="y"?Pe:xe,g=u==="y"?Te:Re,h=n.rects.reference[c]+n.rects.reference[u]-o[u]-n.rects.popper[c],p=o[u]-n.rects.reference[u],m=Wt(l),b=m?u==="y"?m.clientHeight||0:m.clientWidth||0:0,O=h/2-p/2,y=d[v],_=b-f[c]-d[g],C=b/2-f[c]/2+O,P=$t(y,C,_),w=u;n.modifiersData[r]=(e={},e[w]=P,e.centerOffset=P-C,e)}}function pi(t){var e=t.state,n=t.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||!ya(e.elements.popper,a)||(e.elements.arrow=a))}const hi={name:"arrow",enabled:!0,phase:"main",fn:di,effect:pi,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wt(t){return t.split("-")[1]}var gi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bi(t,e){var n=t.x,r=t.y,a=e.devicePixelRatio||1;return{x:Ot(n*a)/a||0,y:Ot(r*a)/a||0}}function cr(t){var e,n=t.popper,r=t.popperRect,a=t.placement,l=t.variation,o=t.offsets,i=t.position,u=t.gpuAcceleration,s=t.adaptive,c=t.roundOffsets,d=t.isFixed,f=o.x,v=f===void 0?0:f,g=o.y,h=g===void 0?0:g,p=typeof c=="function"?c({x:v,y:h}):{x:v,y:h};v=p.x,h=p.y;var m=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),O=xe,y=Pe,_=window;if(s){var C=Wt(n),P="clientHeight",w="clientWidth";if(C===Ee(n)&&(C=at(n),et(C).position!=="static"&&i==="absolute"&&(P="scrollHeight",w="scrollWidth")),C=C,a===Pe||(a===xe||a===Re)&&l===Tt){y=Te;var S=d&&C===_&&_.visualViewport?_.visualViewport.height:C[P];h-=S-r.height,h*=u?1:-1}if(a===xe||(a===Pe||a===Te)&&l===Tt){O=Re;var I=d&&C===_&&_.visualViewport?_.visualViewport.width:C[w];v-=I-r.width,v*=u?1:-1}}var k=Object.assign({position:i},s&&gi),E=c===!0?bi({x:v,y:h},Ee(n)):{x:v,y:h};if(v=E.x,h=E.y,u){var M;return Object.assign({},k,(M={},M[y]=b?"0":"",M[O]=m?"0":"",M.transform=(_.devicePixelRatio||1)<=1?"translate("+v+"px, "+h+"px)":"translate3d("+v+"px, "+h+"px, 0)",M))}return Object.assign({},k,(e={},e[y]=b?h+"px":"",e[O]=m?v+"px":"",e.transform="",e))}function mi(t){var e=t.state,n=t.options,r=n.gpuAcceleration,a=r===void 0?!0:r,l=n.adaptive,o=l===void 0?!0:l,i=n.roundOffsets,u=i===void 0?!0:i,s={placement:Ye(e.placement),variation:wt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,cr(Object.assign({},s,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,cr(Object.assign({},s,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const yi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mi,data:{}};var Gt={passive:!0};function Ci(t){var e=t.state,n=t.instance,r=t.options,a=r.scroll,l=a===void 0?!0:a,o=r.resize,i=o===void 0?!0:o,u=Ee(e.elements.popper),s=[].concat(e.scrollParents.reference,e.scrollParents.popper);return l&&s.forEach(function(c){c.addEventListener("scroll",n.update,Gt)}),i&&u.addEventListener("resize",n.update,Gt),function(){l&&s.forEach(function(c){c.removeEventListener("scroll",n.update,Gt)}),i&&u.removeEventListener("resize",n.update,Gt)}}const Oi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ci,data:{}};var Si={left:"right",right:"left",bottom:"top",top:"bottom"};function Xt(t){return t.replace(/left|right|bottom|top/g,function(e){return Si[e]})}var wi={start:"end",end:"start"};function sr(t){return t.replace(/start|end/g,function(e){return wi[e]})}function Mn(t){var e=Ee(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function $n(t){return St(at(t)).left+Mn(t).scrollLeft}function Pi(t,e){var n=Ee(t),r=at(t),a=n.visualViewport,l=r.clientWidth,o=r.clientHeight,i=0,u=0;if(a){l=a.width,o=a.height;var s=ma();(s||!s&&e==="fixed")&&(i=a.offsetLeft,u=a.offsetTop)}return{width:l,height:o,x:i+$n(t),y:u}}function xi(t){var e,n=at(t),r=Mn(t),a=(e=t.ownerDocument)==null?void 0:e.body,l=ct(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=ct(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-r.scrollLeft+$n(t),u=-r.scrollTop;return et(a||n).direction==="rtl"&&(i+=ct(n.clientWidth,a?a.clientWidth:0)-l),{width:l,height:o,x:i,y:u}}function Dn(t){var e=et(t),n=e.overflow,r=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function wa(t){return["html","body","#document"].indexOf(Xe(t))>=0?t.ownerDocument.body:$e(t)&&Dn(t)?t:wa(an(t))}function Dt(t,e){var n;e===void 0&&(e=[]);var r=wa(t),a=r===((n=t.ownerDocument)==null?void 0:n.body),l=Ee(r),o=a?[l].concat(l.visualViewport||[],Dn(r)?r:[]):r,i=e.concat(o);return a?i:i.concat(Dt(an(o)))}function gn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function _i(t,e){var n=St(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function vr(t,e,n){return e===ga?gn(Pi(t,n)):vt(e)?_i(e,n):gn(xi(at(t)))}function Ii(t){var e=Dt(an(t)),n=["absolute","fixed"].indexOf(et(t).position)>=0,r=n&&$e(t)?Wt(t):t;return vt(r)?e.filter(function(a){return vt(a)&&ya(a,r)&&Xe(a)!=="body"}):[]}function ki(t,e,n,r){var a=e==="clippingParents"?Ii(t):[].concat(e),l=[].concat(a,[n]),o=l[0],i=l.reduce(function(u,s){var c=vr(t,s,r);return u.top=ct(c.top,u.top),u.right=Jt(c.right,u.right),u.bottom=Jt(c.bottom,u.bottom),u.left=ct(c.left,u.left),u},vr(t,o,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Pa(t){var e=t.reference,n=t.element,r=t.placement,a=r?Ye(r):null,l=r?wt(r):null,o=e.x+e.width/2-n.width/2,i=e.y+e.height/2-n.height/2,u;switch(a){case Pe:u={x:o,y:e.y-n.height};break;case Te:u={x:o,y:e.y+e.height};break;case Re:u={x:e.x+e.width,y:i};break;case xe:u={x:e.x-n.width,y:i};break;default:u={x:e.x,y:e.y}}var s=a?An(a):null;if(s!=null){var c=s==="y"?"height":"width";switch(l){case Ct:u[s]=u[s]-(e[c]/2-n[c]/2);break;case Tt:u[s]=u[s]+(e[c]/2-n[c]/2);break}}return u}function Rt(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=r===void 0?t.placement:r,l=n.strategy,o=l===void 0?t.strategy:l,i=n.boundary,u=i===void 0?Yl:i,s=n.rootBoundary,c=s===void 0?ga:s,d=n.elementContext,f=d===void 0?jt:d,v=n.altBoundary,g=v===void 0?!1:v,h=n.padding,p=h===void 0?0:h,m=Oa(typeof p!="number"?p:Sa(p,Ht)),b=f===jt?Xl:jt,O=t.rects.popper,y=t.elements[g?b:f],_=ki(vt(y)?y:y.contextElement||at(t.elements.popper),u,c,o),C=St(t.elements.reference),P=Pa({reference:C,element:O,strategy:"absolute",placement:a}),w=gn(Object.assign({},O,P)),S=f===jt?w:C,I={top:_.top-S.top+m.top,bottom:S.bottom-_.bottom+m.bottom,left:_.left-S.left+m.left,right:S.right-_.right+m.right},k=t.modifiersData.offset;if(f===jt&&k){var E=k[a];Object.keys(I).forEach(function(M){var D=[Re,Te].indexOf(M)>=0?1:-1,N=[Pe,Te].indexOf(M)>=0?"y":"x";I[M]+=E[N]*D})}return I}function ji(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=n.boundary,l=n.rootBoundary,o=n.padding,i=n.flipVariations,u=n.allowedAutoPlacements,s=u===void 0?ba:u,c=wt(r),d=c?i?or:or.filter(function(g){return wt(g)===c}):Ht,f=d.filter(function(g){return s.indexOf(g)>=0});f.length===0&&(f=d);var v=f.reduce(function(g,h){return g[h]=Rt(t,{placement:h,boundary:a,rootBoundary:l,padding:o})[Ye(h)],g},{});return Object.keys(v).sort(function(g,h){return v[g]-v[h]})}function Ni(t){if(Ye(t)===jn)return[];var e=Xt(t);return[sr(t),e,sr(e)]}function Ei(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var a=n.mainAxis,l=a===void 0?!0:a,o=n.altAxis,i=o===void 0?!0:o,u=n.fallbackPlacements,s=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,v=n.flipVariations,g=v===void 0?!0:v,h=n.allowedAutoPlacements,p=e.options.placement,m=Ye(p),b=m===p,O=u||(b||!g?[Xt(p)]:Ni(p)),y=[p].concat(O).reduce(function(V,z){return V.concat(Ye(z)===jn?ji(e,{placement:z,boundary:c,rootBoundary:d,padding:s,flipVariations:g,allowedAutoPlacements:h}):z)},[]),_=e.rects.reference,C=e.rects.popper,P=new Map,w=!0,S=y[0],I=0;I<y.length;I++){var k=y[I],E=Ye(k),M=wt(k)===Ct,D=[Pe,Te].indexOf(E)>=0,N=D?"width":"height",A=Rt(e,{placement:k,boundary:c,rootBoundary:d,altBoundary:f,padding:s}),T=D?M?Re:xe:M?Te:Pe;_[N]>C[N]&&(T=Xt(T));var G=Xt(T),q=[];if(l&&q.push(A[E]<=0),i&&q.push(A[T]<=0,A[G]<=0),q.every(function(V){return V})){S=k,w=!1;break}P.set(k,q)}if(w)for(var J=g?3:1,H=function(z){var Q=y.find(function($){var K=P.get($);if(K)return K.slice(0,z).every(function(Z){return Z})});if(Q)return S=Q,"break"},F=J;F>0;F--){var R=H(F);if(R==="break")break}e.placement!==S&&(e.modifiersData[r]._skip=!0,e.placement=S,e.reset=!0)}}const Ai={name:"flip",enabled:!0,phase:"main",fn:Ei,requiresIfExists:["offset"],data:{_skip:!1}};function fr(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function dr(t){return[Pe,Re,Te,xe].some(function(e){return t[e]>=0})}function Mi(t){var e=t.state,n=t.name,r=e.rects.reference,a=e.rects.popper,l=e.modifiersData.preventOverflow,o=Rt(e,{elementContext:"reference"}),i=Rt(e,{altBoundary:!0}),u=fr(o,r),s=fr(i,a,l),c=dr(u),d=dr(s);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const $i={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Mi};function Di(t,e,n){var r=Ye(t),a=[xe,Pe].indexOf(r)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=l[0],i=l[1];return o=o||0,i=(i||0)*a,[xe,Re].indexOf(r)>=0?{x:i,y:o}:{x:o,y:i}}function Ti(t){var e=t.state,n=t.options,r=t.name,a=n.offset,l=a===void 0?[0,0]:a,o=ba.reduce(function(c,d){return c[d]=Di(d,e.rects,l),c},{}),i=o[e.placement],u=i.x,s=i.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=s),e.modifiersData[r]=o}const Ri={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ti};function Vi(t){var e=t.state,n=t.name;e.modifiersData[n]=Pa({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Bi={name:"popperOffsets",enabled:!0,phase:"read",fn:Vi,data:{}};function Fi(t){return t==="x"?"y":"x"}function Li(t){var e=t.state,n=t.options,r=t.name,a=n.mainAxis,l=a===void 0?!0:a,o=n.altAxis,i=o===void 0?!1:o,u=n.boundary,s=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,v=f===void 0?!0:f,g=n.tetherOffset,h=g===void 0?0:g,p=Rt(e,{boundary:u,rootBoundary:s,padding:d,altBoundary:c}),m=Ye(e.placement),b=wt(e.placement),O=!b,y=An(m),_=Fi(y),C=e.modifiersData.popperOffsets,P=e.rects.reference,w=e.rects.popper,S=typeof h=="function"?h(Object.assign({},e.rects,{placement:e.placement})):h,I=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,E={x:0,y:0};if(!!C){if(l){var M,D=y==="y"?Pe:xe,N=y==="y"?Te:Re,A=y==="y"?"height":"width",T=C[y],G=T+p[D],q=T-p[N],J=v?-w[A]/2:0,H=b===Ct?P[A]:w[A],F=b===Ct?-w[A]:-P[A],R=e.elements.arrow,V=v&&R?En(R):{width:0,height:0},z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ca(),Q=z[D],$=z[N],K=$t(0,P[A],V[A]),Z=O?P[A]/2-J-K-Q-I.mainAxis:H-K-Q-I.mainAxis,ee=O?-P[A]/2+J+K+$+I.mainAxis:F+K+$+I.mainAxis,ae=e.elements.arrow&&Wt(e.elements.arrow),fe=ae?y==="y"?ae.clientTop||0:ae.clientLeft||0:0,ie=(M=k==null?void 0:k[y])!=null?M:0,ne=T+Z-ie-fe,te=T+ee-ie,be=$t(v?Jt(G,ne):G,T,v?ct(q,te):q);C[y]=be,E[y]=be-T}if(i){var pe,le=y==="x"?Pe:xe,qe=y==="x"?Te:Re,me=C[_],Je=_==="y"?"height":"width",pt=me+p[le],ht=me-p[qe],lt=[Pe,xe].indexOf(m)!==-1,ce=(pe=k==null?void 0:k[_])!=null?pe:0,ue=lt?pt:me-P[Je]-w[Je]-ce+I.altAxis,L=lt?me+P[Je]+w[Je]-ce-I.altAxis:ht,B=v&&lt?vi(ue,me,L):$t(v?ue:pt,me,v?L:ht);C[_]=B,E[_]=B-me}e.modifiersData[r]=E}}const zi={name:"preventOverflow",enabled:!0,phase:"main",fn:Li,requiresIfExists:["offset"]};function Hi(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Wi(t){return t===Ee(t)||!$e(t)?Mn(t):Hi(t)}function Ki(t){var e=t.getBoundingClientRect(),n=Ot(e.width)/t.offsetWidth||1,r=Ot(e.height)/t.offsetHeight||1;return n!==1||r!==1}function Ui(t,e,n){n===void 0&&(n=!1);var r=$e(e),a=$e(e)&&Ki(e),l=at(e),o=St(t,a,n),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Xe(e)!=="body"||Dn(l))&&(i=Wi(e)),$e(e)?(u=St(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):l&&(u.x=$n(l))),{x:o.left+i.scrollLeft-u.x,y:o.top+i.scrollTop-u.y,width:o.width,height:o.height}}function Gi(t){var e=new Map,n=new Set,r=[];t.forEach(function(l){e.set(l.name,l)});function a(l){n.add(l.name);var o=[].concat(l.requires||[],l.requiresIfExists||[]);o.forEach(function(i){if(!n.has(i)){var u=e.get(i);u&&a(u)}}),r.push(l)}return t.forEach(function(l){n.has(l.name)||a(l)}),r}function Yi(t){var e=Gi(t);return li.reduce(function(n,r){return n.concat(e.filter(function(a){return a.phase===r}))},[])}function Xi(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function qi(t){var e=t.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var pr={placement:"bottom",modifiers:[],strategy:"absolute"};function hr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Ji(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,a=e.defaultOptions,l=a===void 0?pr:a;return function(i,u,s){s===void 0&&(s=l);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},pr,l),modifiersData:{},elements:{reference:i,popper:u},attributes:{},styles:{}},d=[],f=!1,v={state:c,setOptions:function(m){var b=typeof m=="function"?m(c.options):m;h(),c.options=Object.assign({},l,c.options,b),c.scrollParents={reference:vt(i)?Dt(i):i.contextElement?Dt(i.contextElement):[],popper:Dt(u)};var O=Yi(qi([].concat(r,c.options.modifiers)));return c.orderedModifiers=O.filter(function(y){return y.enabled}),g(),v.update()},forceUpdate:function(){if(!f){var m=c.elements,b=m.reference,O=m.popper;if(!!hr(b,O)){c.rects={reference:Ui(b,Wt(O),c.options.strategy==="fixed"),popper:En(O)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(I){return c.modifiersData[I.name]=Object.assign({},I.data)});for(var y=0;y<c.orderedModifiers.length;y++){if(c.reset===!0){c.reset=!1,y=-1;continue}var _=c.orderedModifiers[y],C=_.fn,P=_.options,w=P===void 0?{}:P,S=_.name;typeof C=="function"&&(c=C({state:c,options:w,name:S,instance:v})||c)}}}},update:Xi(function(){return new Promise(function(p){v.forceUpdate(),p(c)})}),destroy:function(){h(),f=!0}};if(!hr(i,u))return v;v.setOptions(s).then(function(p){!f&&s.onFirstUpdate&&s.onFirstUpdate(p)});function g(){c.orderedModifiers.forEach(function(p){var m=p.name,b=p.options,O=b===void 0?{}:b,y=p.effect;if(typeof y=="function"){var _=y({state:c,name:m,instance:v,options:O}),C=function(){};d.push(_||C)}})}function h(){d.forEach(function(p){return p()}),d=[]}return v}}var Zi=[Oi,Bi,yi,ui,Ri,Ai,zi,hi,$i],Qi=Ji({defaultModifiers:Zi});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var eo=/\s/;function to(t){for(var e=t.length;e--&&eo.test(t.charAt(e)););return e}var no=to,ro=no,ao=/^\s+/;function lo(t){return t&&t.slice(0,ro(t)+1).replace(ao,"")}var io=lo,oo=io,gr=De,uo=cl,br=0/0,co=/^[-+]0x[0-9a-f]+$/i,so=/^0b[01]+$/i,vo=/^0o[0-7]+$/i,fo=parseInt;function po(t){if(typeof t=="number")return t;if(uo(t))return br;if(gr(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=gr(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=oo(t);var n=so.test(t);return n||vo.test(t)?fo(t.slice(2),n?2:8):co.test(t)?br:+t}var ho=po;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var go=sl,bo=function(){return go.Date.now()},mo=bo,yo=De,un=mo,mr=ho,Co="Expected a function",Oo=Math.max,So=Math.min;function wo(t,e,n){var r,a,l,o,i,u,s=0,c=!1,d=!1,f=!0;if(typeof t!="function")throw new TypeError(Co);e=mr(e)||0,yo(n)&&(c=!!n.leading,d="maxWait"in n,l=d?Oo(mr(n.maxWait)||0,e):l,f="trailing"in n?!!n.trailing:f);function v(C){var P=r,w=a;return r=a=void 0,s=C,o=t.apply(w,P),o}function g(C){return s=C,i=setTimeout(m,e),c?v(C):o}function h(C){var P=C-u,w=C-s,S=e-P;return d?So(S,l-w):S}function p(C){var P=C-u,w=C-s;return u===void 0||P>=e||P<0||d&&w>=l}function m(){var C=un();if(p(C))return b(C);i=setTimeout(m,h(C))}function b(C){return i=void 0,f&&r?v(C):(r=a=void 0,o)}function O(){i!==void 0&&clearTimeout(i),s=0,r=u=a=i=void 0}function y(){return i===void 0?o:b(un())}function _(){var C=un(),P=p(C);if(r=arguments,a=this,u=C,P){if(i===void 0)return g(u);if(d)return clearTimeout(i),i=setTimeout(m,e),v(u)}return i===void 0&&(i=setTimeout(m,e)),o}return _.cancel=O,_.flush=y,_}var xa=wo;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Po(){var t=kt(),e=t.classPrefix,n={small:"".concat(e.value,"-size-s"),medium:"".concat(e.value,"-size-m"),large:"".concat(e.value,"-size-l"),default:"",xs:"".concat(e.value,"-size-xs"),xl:"".concat(e.value,"-size-xl"),block:"".concat(e.value,"-size-full-width")},r={loading:"".concat(e.value,"-is-loading"),loadMore:"".concat(e.value,"-is-load-more"),disabled:"".concat(e.value,"-is-disabled"),focused:"".concat(e.value,"-is-focused"),success:"".concat(e.value,"-is-success"),error:"".concat(e.value,"-is-error"),warning:"".concat(e.value,"-is-warning"),selected:"".concat(e.value,"-is-selected"),active:"".concat(e.value,"-is-active"),checked:"".concat(e.value,"-is-checked"),current:"".concat(e.value,"-is-current"),hidden:"".concat(e.value,"-is-hidden"),visible:"".concat(e.value,"-is-visible"),expanded:"".concat(e.value,"-is-expanded"),indeterminate:"".concat(e.value,"-is-indeterminate")};return{classPrefix:e,sizeClassNames:n,statusClassNames:r,classNames:{size:n,status:r}}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Pt(t,e,n,r){var a=Ft(),l=a.emit,o=a.vnode,i=X(),u=o.props||{},s=Object.prototype.hasOwnProperty.call(u,r)||Object.prototype.hasOwnProperty.call(u,vl(r));return s?[t,function(c){l("update:".concat(r),c);for(var d=arguments.length,f=new Array(d>1?d-1:0),v=1;v<d;v++)f[v-1]=arguments[v];n==null||n.apply(void 0,[c].concat(f))}]:(i.value=e,[i,function(c){i.value=c;for(var d=arguments.length,f=new Array(d>1?d-1:0),v=1;v<d;v++)f[v-1]=arguments[v];n==null||n.apply(void 0,[c].concat(f))}])}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function yr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Cr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var xo=function(e){var n=e.data,r=e.container,a=e.fixedHeight,l=a===void 0?!1:a,o=e.lineHeight,i=o===void 0?30:o,u=e.bufferSize,s=u===void 0?20:u,c=e.threshold,d=c===void 0?100:c,f=In({visibleData:[],cachedHeight:[],cachedScrollY:[]}),v=x(function(){return n.value.length>d}),g=X(0),h=new Map,p=0,m=0,b=0,O=0,y=0,_=0,C=function(){n.value.forEach(function(A,T){A.$index=T,l&&(f.cachedScrollY[T]=T*i)}),l||(f.cachedScrollY[n.value.length-1]=void 0)};C();var P=x(function(){var N=f.cachedHeight,A=N.length;if(A){var T=N.reduce(function(q,J){return q+J||i},0);if(N.length===n.value.length)return T;var G=T/N.length;return T+(n.value.length-N.length)*G}return v.value?n.value.length*i:0}),w=x(function(){var N=f.visibleData,A=N[0];return A?N.length===1?0:f.cachedScrollY[A.$index]:0}),S=function(){_=Math.min(y+p+s*2,n.value.length),f.visibleData=n.value.slice(y,_)},I=function(){var A,T=h.get(b);if(!!T){var G=T==null||(A=T.getBoundingClientRect())===null||A===void 0?void 0:A.height;f.cachedScrollY[b]=r.value.scrollTop-O,f.cachedHeight[b]=G;for(var q=b+1;q<=((J=f.visibleData[f.visibleData.length-1])===null||J===void 0?void 0:J.$index);q++){var J,H=h.get(q),F=(H==null?void 0:H.getBoundingClientRect())||{},R=F.height;f.cachedHeight[q]=R;var V=f.cachedScrollY[q-1]+f.cachedHeight[q-1];f.cachedScrollY.splice(q,1,V)}for(var z=b-1;z>=((Q=f.visibleData[0])===null||Q===void 0?void 0:Q.$index);z--){var Q,$=h.get(z),K=($==null?void 0:$.getBoundingClientRect())||{},Z=K.height;f.cachedHeight[z]=Z;var ee=f.cachedScrollY[z+1]-f.cachedHeight[z];f.cachedScrollY.splice(z,1,ee)}if(f.cachedScrollY[0]>0){for(var ae=f.cachedScrollY[0],fe=Math.min(_,n.value.length),ie=0;ie<fe;ie++)f.cachedScrollY.splice(ie,1,f.cachedScrollY[ie]-ae);var ne=f.cachedScrollY[b-1]?f.cachedScrollY[b-1]+O:O;r.value.scrollTop=ne,m=ne}if(f.cachedScrollY[y]<0){var te=f.cachedHeight.slice(0,Math.max(0,b)).reduce(function(be,pe){return be+pe},0)+O;r.value.scrollTop=te,m=te,te===0&&(b=0,O=0)}mt(function(){var be=r.value,pe=be.scrollTop,le=be.scrollHeight,qe=be.clientHeight;if(pe+qe===le)for(var me=_-1;me>=y;me--)me===_-1?f.cachedScrollY.splice(me,1,le.value-f.cachedHeight[me]):f.cachedScrollY.splice(me,1,f.cachedScrollY[me+1]-f.cachedHeight[me])})}},k=function(){if(!!v.value){var A=r.value.scrollTop,T=A-m;m=A,T+=O;var G=b;if(!!T){if(T>=0){for(;G<n.value.length&&T>(f.cachedHeight[G]||i);)f.cachedHeight[G]||(f.cachedHeight[G]=i),T-=f.cachedHeight[G],G++;G>=n.value.length?(b=n.value.length-1,O=0):(b=G,O=T);var q=r.value,J=q.clientHeight,H=q.scrollHeight;A+J===H&&(b=n.value.length-p+1),y<=b-s&&(y=Math.min(n.value.length-p,b-s),y<0&&(y=0))}else{for(;T<0;)G--,f.cachedHeight[G]||(f.cachedHeight[G]=i),T+=f.cachedHeight[G];G<0?(b=0,O=0):(b=G,O=T),I(),y>b-s&&(y=Math.max(0,b-s))}S()}}};!l&&he(g,I,{flush:"post"});var E=function(){!v.value||g.value++};he(n,function(){C(),f.visibleData=[],f.cachedScrollY=[],f.cachedHeight=[],m=0,b=0,O=0,y=0,h.clear(),n.value.length<=d?f.visibleData=n.value:S(),r.value&&(r.value.scrollTop=0)});var M=!1,D=function(){M&&(p=Math.ceil(r.value.offsetHeight/i),S())};return rt(function(){if(!(!window||!window.IntersectionObserver)){var N=new window.IntersectionObserver(function(A){var T=A[0];(T.isIntersecting||T.intersectionRatio)&&(M=!0,v.value&&D(),N.unobserve(r.value))});r.value&&N.observe(r.value)}}),Cr(Cr({trs:h,scrollHeight:P},Oe(f)),{},{translateY:w,handleScroll:k,handleRowMounted:E,refreshContainer:D,fixedHeight:l,calculateScrollY:I})};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var _a={attach:{type:[String,Function],default:"body"},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:[Number,Array]},destroyOnClose:Boolean,disabled:Boolean,hideEmptyPopup:Boolean,overlayClassName:{type:[String,Object,Array]},overlayInnerClassName:{type:[String,Object,Array]},overlayInnerStyle:{type:[Boolean,Object,Function]},overlayStyle:{type:[Boolean,Object,Function]},placement:{type:String,default:"top"},popperOptions:{type:Object},showArrow:Boolean,trigger:{type:String,default:"hover",validator:function(e){return e?["hover","click","focus","mousedown","context-menu"].includes(e):!0}},triggerElement:{type:[String,Function]},visible:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultVisible:Boolean,zIndex:{type:Number},onOverlayClick:Function,onScroll:Function,onScrollToBottom:Function,onVisibleChange:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function _o(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!It(t)}function Ia(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=[];return t.forEach(function(n){Me(n)?e.push.apply(e,nt(n)):n.type===st?e.push.apply(e,nt(Ia(n.children))):e.push(n)}),e.filter(function(n){return!(n&&(n.type===la||n.type===st&&n.children.length===0||n.type===ia&&n.children.trim()===""))})}function Io(t,e){return!t&&!e?!1:!!(!t||!e||["width","height","x","y"].some(function(n){return t[n]!==e[n]}))}function ka(t){var e=Ft(),n=X();return rt(function(){n.value=t(e)}),el(function(){var r=t(e);n.value!==r&&(n.value=r)}),n}var ko=oe({name:"TPopupTrigger",props:{forwardRef:Function},emits:["resize"],setup:function(e,n){var r=n.emit,a=n.slots,l=ka(function(i){var u=i.parent.vnode;return u.el.nextElementSibling}),o=X();return he(l,function(){var i;(i=e.forwardRef)===null||i===void 0||i.call(e,l.value)}),na(l,function(i){var u=ve(i,1),s=u[0].contentRect;o.value=s}),he(o,function(i,u){Io(i,u)&&r("resize")}),function(){var i,u,s=Ia((i=a.default)===null||i===void 0?void 0:i.call(a));return s.length>1||((u=s[0])===null||u===void 0?void 0:u.type)===ia?j("span",null,[s]):s[0]}}}),jo=oe({name:"TPopupContent",emits:["resize"],setup:function(e,n){var r=n.emit,a=n.slots,l=ka(function(o){return o.vnode.el.children[0]});return na(l,function(){r("resize")}),function(){return j("div",{style:"position: absolute; top: 0px; left: 0px; width: 100%"},[a.default()])}}}),No=oe({name:"TPopupContainer",inheritAttrs:!1,props:{parent:Object,visible:Boolean,attach:_a.attach,forwardRef:Function},emits:["resize","contentMounted"],setup:function(e,n){var r=n.emit,a=n.attrs,l=n.slots,o=n.expose,i=X(),u=X(!1);function s(){r("resize")}return rt(function(){requestAnimationFrame(function(){u.value=e.visible})}),he(function(){return e.visible},function(c){c&&(u.value=e.visible)}),o({unmountContent:function(){u.value=!1}}),function(){var c,d=function(){return Wa()||Ka(e.attach,i.value)};return j(st,null,[j(ko,{class:a.class,forwardRef:function(v){e.forwardRef(v),i.value=v},onResize:s},_o(c=l.default())?c:{default:function(){return[c]}}),u.value&&j(Qa,{disabled:!d(),to:d()},{default:function(){return[j(jo,{onResize:s,onVnodeMounted:function(){return r("contentMounted")}},{default:function(){return[l.content&&l.content()]}})]}})])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Or(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function cn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Or(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Eo(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!It(t)}var ja="data-td-popup",bn="data-td-popup-parent";function sn(t,e){var n=[],r=[bn,ja];if(!t)return n;return e&&r.unshift(r.pop()),a(t),n;function a(l){var o=document.querySelectorAll("[".concat(r[0],'="').concat(l,'"]'));o.forEach(function(i){n.push(i);var u=i.getAttribute(r[1]);u&&u!==l&&a(u)})}}var Sr=Symbol();function Ao(t){return t.replace(/-(left|top)$/,"-start").replace(/-(right|bottom)$/,"-end")}function Mo(t){var e=[];return{add:function(r,a){!r||(ra(t.value,r,a),e.push(function(){pn(t.value,r,a)}))},clean:function(){e.forEach(function(r){return r==null?void 0:r()}),e.length=0}}}var $o=oe({name:"TPopup",props:cn(cn({},_a),{},{expandAnimation:{type:Boolean}}),setup:function(e,n){var r,a=n.expose,l=Oe(e),o=l.visible,i=l.modelValue,u=tt(o,i,e.defaultVisible,e.onVisibleChange,"visible"),s=ve(u,2),c=s[0],d=s[1],f=Le(),v=zt(),g,h,p,m=X(null),b=X(null),O=X(null),y=X(null),_=X(!1),C=typeof process<"u"&&(r={})!==null&&r!==void 0&&r.TEST?"":Date.now().toString(36),P=yt(Sr,void 0);qt(Sr,{id:C,assertMouseLeave:F});var w=se("popup"),S=dt(),I=S.STATUS,k=x(function(){var $,K,Z=e.trigger!=="hover"?[0,0]:[].concat(($=e.delay)!==null&&$!==void 0?$:[250,150]);return{show:Z[0],hide:(K=Z[1])!==null&&K!==void 0?K:Z[0]}}),E=Mo(m);he(function(){return[e.trigger,m.value]},function(){!m.value||(E.clean(),E.add({hover:"mouseenter",focus:"focusin","context-menu":"contextmenu",click:"click"}[e.trigger],function($){if(!e.disabled){if($.type==="contextmenu"&&$.preventDefault(),($.type==="click"||$.type==="contextmenu")&&c.value){G($);return}T($)}}),E.add({hover:"mouseleave",focus:"focusout"}[e.trigger],G))}),he(function(){return[e.overlayStyle,e.overlayInnerStyle,b.value]},function(){D(),N()}),he(function(){return e.placement},function(){A(),N()}),he(function(){return c.value},function($){if($){ra(document,"mousedown",H,!0),e.trigger==="focus"&&Ua(m.value,"keydown",function(K){var Z,ee=typeof process<"u"&&(Z={})!==null&&Z!==void 0&&Z.TEST?"27":"Escape";K.code===ee&&G(K)});return}pn(document,"mousedown",H,!0)}),oa(function(){A(),q(),pn(document,"mousedown",H,!0)}),a({update:N,getOverlay:function(){return b.value},getOverlayState:function(){return{hover:_.value}},close:function(){return G()}});function M(){var $=e.overlayStyle;if(!(!m.value||!b.value)){if(Ke($))return $(m.value,b.value);if(De($))return $}}function D(){var $=e.overlayInnerStyle;!m.value||!b.value||(Ke($)?Tn(b.value,$(m.value,b.value)):De($)&&Tn(b.value,$))}function N(){if(!(!O.value||!c.value)){if(g){if(m.value.getRootNode()instanceof ShadowRoot)g.state.elements.reference=m.value,g.update();else{for(var $=m.value.getBoundingClientRect(),K=m.value;K&&K!==document.body;)K=K.parentElement;var Z=K!==document.body||$.width===0&&$.height===0;Z?d(!1,{trigger:J({type:"mouseenter"})}):(g.state.elements.reference=m.value,g.update())}return}g=Qi(m.value,O.value,cn({placement:Ao(e.placement),onFirstUpdate:function(){mt(N)}},e.popperOptions))}}function A(){if(g){var $;($=g)===null||$===void 0||$.destroy(),g=null}if(e.destroyOnClose){var K;(K=y.value)===null||K===void 0||K.unmountContent()}}function T($){q(),h=setTimeout(function(){d(!0,{trigger:J($)})},k.value.show)}function G($){q(),p=setTimeout(function(){d(!1,{trigger:J($),e:$})},k.value.hide)}function q(){clearTimeout(h),clearTimeout(p)}function J($){switch($==null?void 0:$.type){case"mouseenter":return"trigger-element-hover";case"mouseleave":return"trigger-element-hover";case"focusin":return"trigger-element-focus";case"focusout":return"trigger-element-blur";case"click":return"trigger-element-click";case"context-menu":case"keydown":return"keydown-esc";case"mousedown":return"document";default:return"trigger-element-close"}}function H($){var K,Z;if(!((K=O.value)!==null&&K!==void 0&&K.contains($.target))&&!((Z=m.value)!==null&&Z!==void 0&&Z.contains($.target))){var ee=sn(C).find(function(ae){return ae.contains($.target)});ee&&sn(ee.getAttribute(bn),!0).some(function(ae){return ae===O.value})||G($)}}function F($){if(_.value=!1,!(e.trigger!=="hover"||m.value.contains($.target))){var K=sn(C).some(function(Z){var ee=Z.getBoundingClientRect();return $.x>ee.x&&$.x<ee.x+ee.width&&$.y>ee.y&&$.y<ee.y+ee.height});K||(G($),P==null||P.assertMouseLeave($))}}function R(){_.value=!0,c.value&&e.trigger==="hover"&&q()}function V($){var K;(K=e.onOverlayClick)===null||K===void 0||K.call(e,{e:$})}var z=yt("updateScrollTop",void 0);function Q($){var K,Z=$.target,ee=Z.scrollTop,ae=Z.clientHeight,fe=Z.scrollHeight,ie=xa(function(ne){var te;return(te=e.onScrollToBottom)===null||te===void 0?void 0:te.call(e,{e:ne})},100);ae+Math.floor(ee)===fe&&ie($),(K=e.onScroll)===null||K===void 0||K.call(e,{e:$})}return he(function(){return[c.value,b.value]},function(){c.value&&b.value&&z&&(z==null||z(b.value))}),function(){var $=f("content"),K=e.hideEmptyPopup&&["",void 0,null].includes($),Z=c.value||!e.destroyOnClose?tl(j("div",Ne(W(W({},ja,C),bn,P==null?void 0:P.id),{class:[w.value,e.overlayClassName],ref:function(ae){return O.value=ae},style:[{zIndex:e.zIndex},M(),K&&{visibility:"hidden"}],onClick:V,onMouseenter:R,onMouseleave:F}),[j("div",{class:["".concat(w.value,"__content"),W(W(W({},"".concat(w.value,"__content--text"),Ue(e.content)),"".concat(w.value,"__content--arrow"),e.showArrow),I.value.disabled,e.disabled),e.overlayInnerClassName],ref:b,onScroll:Q},[$,e.showArrow&&j("div",{class:"".concat(w.value,"__arrow")},null)])]),[[nl,c.value]]):null;return j(No,{ref:function(ae){return y.value=ae},forwardRef:function(ae){return m.value=ae},onContentMounted:function(){if(c.value){N();var ae=setTimeout(function(){D(),clearTimeout(ae)},60)}},onResize:function(){c.value&&N()},visible:c.value,attach:e.attach},{content:function(){return j(rl,{name:"".concat(w.value,"--animation").concat(e.expandAnimation?"-expand":""),appear:!0,onEnter:N,onAfterLeave:A},Eo(Z)?Z:{default:function(){return[Z]}})},default:function(){return v("default","triggerElement")}})}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Do=we($o);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var To=oe({name:"TFakeArrow",props:{isActive:{type:Boolean},overlayClassName:{type:[String,Object,Array]},overlayStyle:{type:Object||String}},setup:function(e){var n=se("fake-arrow"),r=x(function(){return[n.value,W({},"".concat(n.value,"--active"),e.isActive),e.overlayClassName]});return{classes:r}},render:function(){return j("svg",{class:this.classes,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:this.overlayStyle},[j("path",{d:"M3.75 5.7998L7.99274 10.0425L12.2361 5.79921",stroke:"black","stroke-opacity":"0.9","stroke-width":"1.3"},null)])}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Ro={align:{type:String,validator:function(e){return e?["left","center","right"].includes(e):!0}},allowInputOverLimit:{type:Boolean,default:!0},autoWidth:Boolean,decimalPlaces:{type:Number,default:void 0},disabled:Boolean,format:{type:Function},inputProps:{type:Object},label:{type:[String,Function]},largeNumber:Boolean,max:{type:[String,Number],default:1/0},min:{type:[String,Number],default:-1/0},placeholder:{type:String,default:void 0},readonly:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},status:{type:String,default:"default",validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},step:{type:[String,Number],default:1},suffix:{type:[String,Function]},theme:{type:String,default:"row",validator:function(e){return e?["column","row","normal"].includes(e):!0}},tips:{type:[String,Function]},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onBlur:Function,onChange:Function,onEnter:Function,onFocus:Function,onKeydown:Function,onKeypress:Function,onKeyup:Function,onValidate:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Vt(t){return new Array(t).fill(0).join("")}function Na(t){if(!t)return!0;if(Bt(t))return!Number.isNaN(t);var e=/^[0-9|e|E|-]+\.*[0-9|e|E|-]*$/.test(t);if(!e)return!1;for(var n=0,r=0,a=0,l=0,o=t.length;l<o;l++)if(t[l]==="."&&(a+=1,a>1)||/(e|E)+/.test(t[l])&&(n+=1,n>1)||t[l]==="-"&&(r+=1,r>2))return!1;return!0}function je(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t.indexOf(".")!==-1?(Pn.error("InputNumber","num is not a integer number."),t):!t||t==="0"&&e?"":t==="0"?t:(e?t.replace(/0+$/,""):t.replace(/^0+/,""))||"0"}function vn(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=je(t,n),a=je(e,n),l=r.length>a.length,o=l?r:a,i=l?a:r,u=[],s=[],c=n?0:o.length-i.length,d=n?i.length:o.length,f=d-1;f>=0;f--){var v=f-c,g=Number(o[f])+(Number(i[v])||0)+(s[f]||0);g>=10&&(s[f-1]=1),u.unshift(String(g%10))}return s[-1]&&u.unshift("1"),n?u.concat(o.slice(d,o.length)).join(""):u.join("")}function xt(t,e){var n=t.split("."),r=ve(n,2),a=r[0],l=a===void 0?"0":a,o=r[1],i=o===void 0?"0":o,u=e.split("."),s=ve(u,2),c=s[0],d=c===void 0?"0":c,f=s[1],v=f===void 0?"0":f,g=vn(l,d);if(i==="0"&&v==="0")return g;var h=je(i,!0),p=je(v,!0),m=vn(h,p,!0),b=m.length;return b>h.length&&b>p.length?[je(vn(g,"1")),je(m.slice(1),!0)].filter(function(O){return O}).join("."):[je(g),je(m,!0)].filter(function(O){return O}).join(".")}function Ea(t,e){var n=je(t),r=je(e);if(n.length===r.length){for(var a=0,l=n.length;a<l;a++){if(n[a]>r[a])return 1;if(n[a]<r[a])return-1}return 0}return n.length>r.length?1:-1}function Aa(t,e){for(var n=t&&t!=="0"?t.replace(/0+$/,""):"0",r=e&&e!=="0"?e.replace(/0+$/,""):"0",a=Math.max(n.length,r.length),l=0,o=a;l<o;l++){if((n[l]||0)>(r[l]||0))return 1;if((n[l]||0)<(r[l]||0))return-1}return 0}function mn(t){var e=t.split("e"),n=ve(e,2),r=n[0],a=n[1];if(!a)return t;var l=t.split("."),o=ve(l,2),i=o[0],u=o[1],s=u===void 0?"":u,c=Number(a),d=s.split("e"),f=ve(d,1),v=f[0];if(c>v.length){var g=Vt(c-v.length);return r.replace(/(^0+|\.)/g,"")+g}var h=i.replace(/^0+/,"")+v.slice(0,c),p=v.slice(c);return p?[h,p].join("."):h}function Vo(t,e){var n=mn(t).split("."),r=ve(n,2),a=r[0],l=r[1],o=mn(e).split("."),i=ve(o,2),u=i[0],s=i[1],c=Ea(a.replace("-",""),u.replace("-","")),d=a.includes("-"),f=u.includes("-");return d&&!f?-1:!d&&f?1:d&&f?c===0?0:c>0?-1:1:c===0?Aa(l,s):c}function wr(t){return[-1/0,1/0].includes(Number(t))}function Pr(t){return Number(t)<Number.MAX_SAFE_INTEGER&&Number(t)>Number.MIN_SAFE_INTEGER}function ft(t,e,n){var r=Pr(t)&&Pr(e)&&!n,a=wr(t)||wr(e);return r||a?Number(t)===Number(e)?0:Number(t)>Number(e)?1:-1:Vo(String(t),String(e))}function Nt(t,e,n){if(t===e)return"0";for(var r=n||{},a=r.decimal,l=r.stayZero,o=je(t),i=je(e),u=Ea(o,i)>0,s=u?o:i,c=u?i:o,d=[],f=[],v=a?0:s.length-c.length,g=a?c.length:s.length,h=g-1;h>=0;h--){var p=h-v,m=Number(s[h])-(Number(c[p])||0)-(f[h]||0);m<0&&(f[h-1]=1,m+=10),d.unshift(String(m))}if(a)return d.concat(s.slice(g,s.length)).join("");var b=d.join("");return l||(b=b.replace(/^0+/,"")),je(u?b:"-".concat(b))}function Zt(t,e){if(t===e)return"0";var n=ft(t,e,!0)>0,r=n?t:e,a=n?e:t,l=r.split("."),o=ve(l,2),i=o[0],u=o[1],s=u===void 0?"0":u,c=a.split("."),d=ve(c,2),f=d[0],v=d[1],g=v===void 0?"0":v,h=Nt(i,f);if(s==="0"&&g==="0")return n?h:"-".concat(h);var p="",m=s;s.length<g.length&&(m="".concat(s).concat(Vt(g.length-s.length))),Aa(m,g)>=0?p=Nt(m,g,{decimal:!0}):(s.length<g.length||s==="0"?(p=Nt("1".concat(m),g,{stayZero:!0}),p=Vt(g.length-p.length)+p):p=Nt(s,g,{decimal:!0}),h=Nt(h,"1"));var b=p?[h,p].join("."):h;return n?b:"-".concat(b)}function Bo(t,e){var n=t[0]==="-",r=e[0]==="-";if(n&&!r){var a=xt(t.slice(1),e);return"-".concat(a)}return n&&r?Zt(e.slice(1),t.slice(1)):!n&&r?xt(t,e.slice(1)):Zt(t,e)}function Fo(t,e){var n=t[0]==="-",r=e[0]==="-";if(n&&!r)return Zt(e,t.slice(1));if(n&&r){var a=xt(e.slice(1),t.slice(1));return"-".concat(a)}return!n&&r?Zt(t,e.slice(1)):xt(t,e)}function yn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!n)return Number(t).toFixed(e);if(!Ue(t))return String(t);var r=t.split("."),a=ve(r,2),l=a[0],o=a[1];if(!o)return e?[t,Vt(e)].join("."):t;if(e===0)return Number(o[0])>=5?xt(l,"1"):l;var i=o.slice(0,e);return o.length<e?i+=Vt(e-o.length):i=Number(o[e])>=5?xt(i,"1"):i,[l,i].join(".")}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Lo(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!t&&t!==0?!0:n&&Ue(t)?ft(t,e,n)<0:t<e}function zo(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!t&&t!==0?!0:n&&Ue(t)?ft(t,e,n)>0:t>e}function Ho(t,e){if(t!==""){var n=e.max,r=e.min,a=e.lastValue,l=e.largeNumber;return Na(t)?l&&(Ue(n)||n===1/0)&&(Ue(r)||r===-1/0)?ft(n,t,l)<0?n:ft(r,t,l)>0?r:t:Math.max(Number(r),Math.min(Number(n),Number(t))):a}}function Qt(t,e){var n,r;if(!t||!e)return(t||0)+(e||0);var a=((n=t.toString().split(".")[1])===null||n===void 0?void 0:n.length)||0,l=((r=e.toString().split(".")[1])===null||r===void 0?void 0:r.length)||0;if(!a&&!l)return t+e;var o=t,i=e,u=Math.abs(a-l),s=Math.pow(10,Math.max(a,l));if(u>0){var c=Math.pow(10,u);a>l?(o=Number(t.toString().replace(".","")),i=Number(e.toString().replace(".",""))*c):(o=Number(t.toString().replace(".",""))*c,i=Number(e.toString().replace(".","")))}else o=Number(t.toString().replace(".","")),i=Number(e.toString().replace(".",""));return(o+i)/s}function en(t,e){var n,r;if(!t||!e)return(t||0)-(e||0);var a=((n=t.toString().split(".")[1])===null||n===void 0?void 0:n.length)||0,l=((r=e.toString().split(".")[1])===null||r===void 0?void 0:r.length)||0,o=Math.pow(10,Math.max(a,l)),i=a>=l?a:l;return Number(((t*o-e*o)/o).toFixed(i))}function Wo(t,e){return t<0&&e>0?en(e,Math.abs(t)):t<0&&e<0?Qt(Math.abs(t),Math.abs(e))*-1:t>0&&e<0?en(t,Math.abs(e)):Qt(t,e)}function Ko(t,e){return t<0&&e>0?Qt(Math.abs(t),e)*-1:t<0&&e<0?en(Math.abs(e),Math.abs(t)):t>0&&e<0?Qt(t,Math.abs(e)):en(t,e)}function Uo(t){var e=t.op,n=t.step,r=t.lastValue,a=t.max,l=t.min,o=t.largeNumber;if(n<=0)return Pn.error("InputNumber","step must be larger than 0."),r;var i=Bt(n)?String(n):n,u;return e==="add"?o&&Ue(r)?u=Fo(String(r),String(i)):u=Wo(Number(r||0),Number(n)):e==="reduce"&&(o&&Ue(r)?u=Bo(String(r),String(i)):u=Ko(Number(r||0),Number(n))),xn(r)&&(u=Ho(u,{max:a,min:l,lastValue:r,largeNumber:o})),o?u:Number(u)}function fn(t){var e=t.largeNumber,n=t.value,r=t.max,a=t.min;if(!xn(e)){e&&Bt(n)&&Pn.warn("InputNumber","largeNumber value must be a string.");var l;return ft(n,r,e)>0?l="exceed-maximum":ft(n,a,e)<0?l="below-minimum":l=void 0,l}}var Go=["-",".","e","E","+"];function Yo(t,e){var n;if(["",null,void 0].includes(t))return!0;if(t.slice(0,2)==="00"||((n=t.match(/\./g))===null||n===void 0?void 0:n.length)>1)return!1;var r=t.slice(1);if(/(\+|-)/.test(r)&&!/e+/i.test(r))return!1;var a=e&&Na(t)||!Number.isNaN(Number(t));return!(!a&&!Go.includes(t.slice(-1))||/e/i.test(t)&&!/\de/i.test(t))}function Xo(t,e){return parseFloat(t)!==e&&!Number.isNaN(Number(t))}function dn(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(["",null,void 0].includes(t)||!/\d+/.test(t))){var n=e.decimalPlaces,r=e.largeNumber,a=e.isToFixed,l=t.replace(/[.|+|\-|e]$/,"");return r&&(l=mn(l)),n!==void 0&&(l=yn(l,n,r)),r||a?l:parseFloat(l)}}function qo(t){var e=/^[-+]?\d{1,3}(,\d{3})*(\.(\d*))?$/;return e.test(t)?t.replace(/,/g,""):t}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Jo(t){var e=Po(),n=e.classPrefix,r=e.sizeClassNames,a=e.statusClassNames,l=Oe(t),o=l.value,i=l.modelValue,u=l.max,s=l.min,c=tt(o,i,t.defaultValue,t.onChange),d=ve(c,2),f=d[0],v=d[1],g=X(),h=X(""),p=_t(),m=X(),b=x(function(){return p.value||!zo(f.value,t.min,t.largeNumber)}),O=x(function(){return p.value||!Lo(f.value,t.max,t.largeNumber)}),y=x(function(){return["".concat(n.value,"-input-number"),r[t.size],W(W(W(W({},a.disabled,p.value),"".concat(n.value,"-is-controls-right"),t.theme==="column"),"".concat(n.value,"-input-number--").concat(t.theme),t.theme),"".concat(n.value,"-input-number--auto-width"),t.autoWidth)]}),_=x(function(){return["".concat(n.value,"-input-number__decrease"),W({},a.disabled,b.value)]}),C=x(function(){return["".concat(n.value,"-input-number__increase"),W({},a.disabled,O.value)]}),P=function(F){var R;if(!F&&F!==0)return"";var V=F||F===0?String(F):"";if(!((R=g.value)!==null&&R!==void 0&&(R=R.inputRef)!==null&&R!==void 0&&R.contains(document.activeElement))){var z=dn(V,{decimalPlaces:t.decimalPlaces,largeNumber:t.largeNumber,isToFixed:!0});V=z||z===0?String(z):"",t.format&&(V=String(t.format(F,{fixedNumber:V})))}return V};he(f,function(H){var F=t.largeNumber,R=t.decimalPlaces,V=[void 0,null].includes(H)?"":String(H);if(!F&&!Number.isNaN(h.value)){parseFloat(h.value)!==H&&(h.value=P(V));var z=Number(yn(V,R,F));R!==void 0&&![void 0,null].includes(H)&&Number(z)!==Number(f.value)&&v(z,{type:"props",e:void 0})}F&&(h.value=P(V),R!==void 0&&yn(V,R,F)!==H&&v(h.value,{type:"props",e:void 0}))},{immediate:!0}),he([f,u,s],function(){var H;if(![void 0,"",null].includes(f.value)){var F=t.max,R=t.min,V=t.largeNumber,z=fn({value:f.value,largeNumber:V,max:F,min:R});m.value=z,(H=t.onValidate)===null||H===void 0||H.call(t,{error:z})}},{immediate:!0});var w=function(F){var R=Uo({op:F,step:t.step,max:t.max,min:t.min,lastValue:f.value,largeNumber:t.largeNumber}),V=t.largeNumber,z=t.max,Q=t.min,$=fn({value:R,largeNumber:V,max:z,min:Q});return{overLimit:$,newValue:R}},S=function(F){if(!(b.value||t.readonly)){var R=w("reduce");R.overLimit&&!t.allowInputOverLimit||v(R.newValue,{type:"reduce",e:F})}},I=function(F){if(!(O.value||t.readonly)){var R=w("add");R.overLimit&&!t.allowInputOverLimit||v(R.newValue,{type:"add",e:F})}},k=function(F,R){var V=R.e,z=qo(F);if(!!Yo(z,t.largeNumber)){if(h.value=z,t.largeNumber){v(z,{type:"input",e:V});return}if(Xo(String(z),Number(f.value))){var Q=z===""?void 0:Number(z);v(Q,{type:"input",e:V})}}},E=function(F,R){var V,z=t.largeNumber,Q=t.max,$=t.min,K=t.decimalPlaces;if(!t.allowInputOverLimit&&f.value!==void 0){var Z=fn({value:f.value,largeNumber:z,max:Q,min:$});if(Z==="below-minimum"){var ee;v($,{type:"blur",e:R.e}),(ee=t.onBlur)===null||ee===void 0||ee.call(t,$,R);return}if(Z==="exceed-maximum"){var ae;v(Q,{type:"blur",e:R.e}),(ae=t.onBlur)===null||ae===void 0||ae.call(t,Q,R);return}}var fe=dn(F,{decimalPlaces:K,largeNumber:z});h.value=P(fe),fe!==f.value&&v(fe,{type:"blur",e:R.e}),(V=t.onBlur)===null||V===void 0||V.call(t,fe,R)},M=function(F,R){var V;h.value=f.value||f.value===0?String(f.value):"",(V=t.onFocus)===null||V===void 0||V.call(t,F,R)},D=function(F,R){var V;if(!p.value){var z=R.e,Q={ArrowUp:I,ArrowDown:S},$=z.code||z.key;Q[$]!==void 0&&Q[$](z),(V=t.onKeydown)===null||V===void 0||V.call(t,F,R)}},N=function(F,R){var V;(V=t.onKeyup)===null||V===void 0||V.call(t,F,R)},A=function(F,R){var V;(V=t.onKeypress)===null||V===void 0||V.call(t,F,R)},T=function(F,R){var V;h.value=P(F);var z=dn(F,{decimalPlaces:t.decimalPlaces,largeNumber:t.largeNumber});z!==F&&String(z)!==F&&v(z,{type:"enter",e:R.e}),(V=t.onEnter)===null||V===void 0||V.call(t,z,R)},G=function(){g.value.focus()},q=function(){g.value.blur()},J={onBlur:E,onFocus:M,onKeydown:D,onKeyup:N,onKeypress:A,onEnter:T,onClick:G};return{classPrefix:n,wrapClasses:y,reduceClasses:_,addClasses:C,tDisabled:p,isError:m,listeners:J,userInput:h,tValue:f,inputRef:g,focus:G,blur:q,handleReduce:S,handleAdd:I,onInnerInputChange:k}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function xr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Zo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Qo=oe({name:"TInputNumber",props:Ro,setup:function(e,n){var r=Le(),a=Lt({AddIcon:ml,RemoveIcon:Wl,ChevronDownIcon:va,ChevronUpIcon:pa}),l=a.AddIcon,o=a.RemoveIcon,i=a.ChevronDownIcon,u=a.ChevronUpIcon,s=Jo(e),c=s.inputRef;return n.expose(Zo({},s)),function(){var d=e.theme==="column"?j(i,{size:e.size},null):j(o,{size:e.size},null),f=e.theme==="column"?j(u,{size:e.size},null):j(l,{size:e.size},null),v=s.isError.value?"error":e.status,g=s.classPrefix.value,h=r("tips");return j("div",{class:s.wrapClasses.value},[e.theme!=="normal"&&j(Mt,{class:s.reduceClasses.value,disabled:s.tDisabled.value,onClick:s.handleReduce,variant:"outline",shape:"square",icon:function(){return d}},null),j(_n,Ne({ref:c,disabled:s.tDisabled.value,readonly:e.readonly,autocomplete:"off",placeholder:e.placeholder,unselectable:e.readonly?"on":"off",autoWidth:e.autoWidth,align:e.align||(e.theme==="row"?"center":void 0),status:v,label:e.label,suffix:e.suffix},s.listeners,e.inputProps,{value:s.userInput.value,onChange:s.onInnerInputChange}),n.slots),e.theme!=="normal"&&j(Mt,{class:s.addClasses.value,disabled:s.tDisabled.value,onClick:s.handleAdd,variant:"outline",shape:"square",icon:function(){return f}},null),h&&j("div",{class:"".concat(g,"-input__tips ").concat(g,"-tips ").concat(g,"-is-").concat(v)},[h])])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var eu=we(Qo);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var tu=Ga,nu=za,ru=Ya;function au(t,e,n){for(var r=-1,a=e.length,l={};++r<a;){var o=e[r],i=tu(t,o);n(i,o)&&nu(l,ru(o,t),i)}return l}var lu=au,iu=lu,ou=Xa;function uu(t,e){return iu(t,e,function(n,r){return ou(t,r)})}var cu=uu,su=cu,vu=ll,fu=vu(function(t,e){return t==null?{}:su(t,e)}),Ma=fu;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function du(t,e,n,r){for(var a=t.length,l=n+(r?1:-1);r?l--:++l<a;)if(e(t[l],l,t))return l;return-1}var pu=du;function hu(t){return t!==t}var gu=hu;function bu(t,e,n){for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}var mu=bu,yu=pu,Cu=gu,Ou=mu;function Su(t,e,n){return e===e?Ou(t,e,n):yu(t,Cu,n)}var wu=Su,Pu=wu;function xu(t,e){var n=t==null?0:t.length;return!!n&&Pu(t,e,0)>-1}var _u=xu;function Iu(t,e,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(e,t[r]))return!0;return!1}var ku=Iu;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ju=qa,Nu=_u,Eu=ku,Au=ca,Mu=dl,_r=Ja,$u=Math.min;function Du(t,e,n){for(var r=n?Eu:Nu,a=t[0].length,l=t.length,o=l,i=Array(l),u=1/0,s=[];o--;){var c=t[o];o&&e&&(c=Au(c,Mu(e))),u=$u(c.length,u),i[o]=!n&&(e||a>=120&&c.length>=120)?new ju(o&&c):void 0}c=t[0];var d=-1,f=i[0];e:for(;++d<a&&s.length<u;){var v=c[d],g=e?e(v):v;if(v=n||v!==0?v:0,!(f?_r(f,g):r(s,g,n))){for(o=l;--o;){var h=i[o];if(!(h?_r(h,g):r(t[o],g,n)))continue e}f&&f.push(g),s.push(v)}}return s}var Tu=Du,Ru=pl;function Vu(t){return Ru(t)?t:[]}var Bu=Vu,Fu=ca,Lu=Tu,zu=fl,Hu=Bu,Wu=zu(function(t){var e=Fu(t,Hu);return e.length&&e[0]===t[0]?Lu(e):[]}),Cn=Wu;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Ku={allowInput:Boolean,autoWidth:Boolean,autofocus:Boolean,borderless:Boolean,clearable:Boolean,collapsedItems:{type:Function},disabled:Boolean,inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number]},keys:{type:Object},label:{type:[String,Function]},loading:Boolean,minCollapsedNum:{type:Number,default:0},multiple:Boolean,panel:{type:[String,Function]},placeholder:{type:String,default:""},popupProps:{type:Object},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:Boolean,readonly:Boolean,reserveKeyword:Boolean,status:{type:String,default:"default",validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tag:{type:[String,Function]},tagInputProps:{type:Object},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:[String,Number,Boolean,Object,Array,Date],default:void 0},valueDisplay:{type:[String,Function]},onBlur:Function,onClear:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onPopupVisibleChange:Function,onTagChange:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Uu=["tips"];function Ir(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Se(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ir(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Gu=["status","clearable","disabled","label","placeholder","readonly","suffix","suffixIcon","onPaste","onMouseenter","onMouseleave"],Yu={label:"label",value:"value",children:"children"};function Xu(t,e){var n=Se(Se({},Yu),e);return De(t)?t[n.label]:t}function qu(t,e,n){var r,a=Oe(t),l=a.value,o=a.keys,i=a.inputValue,u=se(),s=X(t.autofocus),c=X(),d=Pt(i,(r=t.defaultInputValue)!==null&&r!==void 0?r:"",t.onInputChange,"inputValue"),f=ve(d,2),v=f[0],g=f[1],h=Le(),p=_t(),m=x(function(){return Se(Se({},Ma(t,Gu)),{},{disabled:p.value})}),b=function(S){var I,k;S==null||(I=S.e)===null||I===void 0||I.stopPropagation(),(k=t.onClear)===null||k===void 0||k.call(t,S),g("",{trigger:"clear"})},O=function(S,I){t.allowInput&&g(S,Se(Se({},I),{},{trigger:I.trigger||"input"}))},y=function(S){var I,k=h("valueDisplay"),E=S&&t.allowInput?v.value:Xu(l.value,o.value),M=_(k,S),D=Se(Se({},m.value),{},{value:C(k,E,S),label:M.length?function(){return M}:void 0,autoWidth:t.autoWidth,readonly:!t.allowInput||t.readonly,placeholder:P(k),suffixIcon:!p.value&&t.loading?function(){return j(aa,{loading:!0,size:"small"},null)}:t.suffixIcon,showClearIconOnEmpty:Boolean(t.clearable&&(v.value||E)&&!p.value&&!t.readonly)},t.inputProps),N=e.slots;N.tips;var A=nn(N,Uu),T=S?["".concat(u.value,"-input--focused"),"".concat(u.value,"-is-focused"),D==null?void 0:D.inputClass]:D==null?void 0:D.inputClass,G=function(F,R){var V;(V=t.onEnter)===null||V===void 0||V.call(t,l.value,Se(Se({},R),{},{inputValue:F}))},q=function(F,R){var V,z,Q=(V=n.value)===null||V===void 0?void 0:V.getOverlayState();s.value||Q!=null&&Q.hover||(s.value=!0,(z=t.onFocus)===null||z===void 0||z.call(t,l.value,Se(Se({},R),{},{inputValue:F})))},J=function(F,R){var V,z,Q=(V=n.value)===null||V===void 0?void 0:V.getOverlayState();Q!=null&&Q.hover||(s.value=!1,(z=t.onBlur)===null||z===void 0||z.call(t,l.value,Se(Se({},R),{},{inputValue:F})))};return j(_n,Ne({ref:c,style:(I=e.attrs)===null||I===void 0?void 0:I.style},Se({onChange:O,onClear:b,onEnter:G,onFocus:q,onBlur:J},D),{inputClass:T}),A)},_=function(S,I){var k=h("label");if(!k&&!S)return[];if(S){var E,M;if((E=t.valueDisplayOptions)!==null&&E!==void 0&&E.usePlaceholder&&!l.value||(M=t.valueDisplayOptions)!==null&&M!==void 0&&M.useInputDisplay&&I)return[k]}return[k,S]},C=function(S,I,k){if(S){var E,M;if(!((E=t.valueDisplayOptions)!==null&&E!==void 0&&E.useInputDisplay)||(M=t.valueDisplayOptions)!==null&&M!==void 0&&M.useInputDisplay&&!k)return}return I},P=function(S){if(S){var I,k;if(!((I=t.valueDisplayOptions)!==null&&I!==void 0&&I.usePlaceholder)||(k=t.valueDisplayOptions)!==null&&k!==void 0&&k.usePlaceholder&&l.value)return""}return t.placeholder};return{inputRef:c,isSingleFocus:s,commonInputProps:m,singleInputValue:v,onInnerClear:b,renderSelectSingle:y}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Ju={autoWidth:Boolean,clearable:Boolean,collapsedItems:{type:Function},disabled:Boolean,dragSort:Boolean,excessTagsDisplayType:{type:String,default:"break-line",validator:function(e){return e?["scroll","break-line"].includes(e):!0}},inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number],default:""},label:{type:[String,Function]},max:{type:Number},minCollapsedNum:{type:Number,default:0},placeholder:{type:String,default:void 0},prefixIcon:{type:Function},readonly:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},status:{type:String,validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tag:{type:[String,Function]},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},valueDisplay:{type:[String,Function]},onBlur:Function,onChange:Function,onClear:Function,onClick:Function,onDragSort:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onRemove:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Zu(t){var e=X(),n=Oe(t),r=n.excessTagsDisplayType,a=n.readonly,l=n.disabled,o=X(0),i=X(),u=X(),s=X(!1),c=function(_){var C=_.children[0];i.value=C},d=function(){o.value=i.value.scrollWidth-i.value.clientWidth},f=function(_){var C;!Ke((C=i.value)===null||C===void 0?void 0:C.scroll)||i.value.scroll({left:_,behavior:"smooth"})},v=function(){d(),f(o.value),setTimeout(function(){s.value=!0},200)},g=function(){f(0)},h=function(_){var C=_.e;if(!(a.value||l.value)&&!!i.value)if(C.deltaX>0){var P=Math.min(i.value.scrollLeft+120,o.value);f(P)}else{var w=Math.max(i.value.scrollLeft-120,0);f(w)}},p=function(){r.value==="scroll"&&(u.value=setTimeout(function(){v(),clearTimeout(u.value)},100))},m=function(){r.value==="scroll"&&(s.value=!1,f(0),clearTimeout(u.value))},b=function(){var _,C=(_=e.value)===null||_===void 0?void 0:_.$el;!C||c(C)},O=function(){clearTimeout(u.value)};return rt(b),oa(O),{tagInputRef:e,scrollElement:i,scrollDistance:o,scrollTo:f,scrollToRight:v,scrollToLeft:g,updateScrollElement:c,updateScrollDistance:d,onWheel:h,scrollToRightOnEnter:p,scrollToLeftOnLeave:m,isScrollable:s}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function tn(t){return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tn(t)}var Qu=/^\s+/,ec=/\s+$/;function Y(t,e){if(t=t||"",e=e||{},t instanceof Y)return t;if(!(this instanceof Y))return new Y(t,e);var n=tc(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Y.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),n,r,a,l,o,i;return n=e.r/255,r=e.g/255,a=e.b/255,n<=.03928?l=n/12.92:l=Math.pow((n+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*l+.7152*o+.0722*i},setAlpha:function(e){return this._a=$a(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=jr(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=jr(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),a=Math.round(e.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+a+"%)":"hsva("+n+", "+r+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var e=kr(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=kr(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),a=Math.round(e.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+a+"%)":"hsla("+n+", "+r+"%, "+a+"%, "+this._roundA+")"},toHex:function(e){return Nr(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return lc(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ge(this._r,255)*100)+"%",g:Math.round(ge(this._g,255)*100)+"%",b:Math.round(ge(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ge(this._r,255)*100)+"%, "+Math.round(ge(this._g,255)*100)+"%, "+Math.round(ge(this._b,255)*100)+"%)":"rgba("+Math.round(ge(this._r,255)*100)+"%, "+Math.round(ge(this._g,255)*100)+"%, "+Math.round(ge(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:bc[Nr(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var n="#"+Er(this._r,this._g,this._b,this._a),r=n,a=this._gradientType?"GradientType = 1, ":"";if(e){var l=Y(e);r="#"+Er(l._r,l._g,l._b,l._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+n+",endColorstr="+r+")"},toString:function(e){var n=!!e;e=e||this._format;var r=!1,a=this._a<1&&this._a>=0,l=!n&&a&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return l?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Y(this.toString())},_applyModification:function(e,n){var r=e.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(cc,arguments)},brighten:function(){return this._applyModification(sc,arguments)},darken:function(){return this._applyModification(vc,arguments)},desaturate:function(){return this._applyModification(ic,arguments)},saturate:function(){return this._applyModification(oc,arguments)},greyscale:function(){return this._applyModification(uc,arguments)},spin:function(){return this._applyModification(fc,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(hc,arguments)},complement:function(){return this._applyCombination(dc,arguments)},monochromatic:function(){return this._applyCombination(gc,arguments)},splitcomplement:function(){return this._applyCombination(pc,arguments)},triad:function(){return this._applyCombination(Ar,[3])},tetrad:function(){return this._applyCombination(Ar,[4])}};Y.fromRatio=function(t,e){if(tn(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(r==="a"?n[r]=t[r]:n[r]=Et(t[r]));t=n}return Y(t,e)};function tc(t){var e={r:0,g:0,b:0},n=1,r=null,a=null,l=null,o=!1,i=!1;return typeof t=="string"&&(t=Oc(t)),tn(t)=="object"&&(Ze(t.r)&&Ze(t.g)&&Ze(t.b)?(e=nc(t.r,t.g,t.b),o=!0,i=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Ze(t.h)&&Ze(t.s)&&Ze(t.v)?(r=Et(t.s),a=Et(t.v),e=ac(t.h,r,a),o=!0,i="hsv"):Ze(t.h)&&Ze(t.s)&&Ze(t.l)&&(r=Et(t.s),l=Et(t.l),e=rc(t.h,r,l),o=!0,i="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=$a(n),{ok:o,format:t.format||i,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}function nc(t,e,n){return{r:ge(t,255)*255,g:ge(e,255)*255,b:ge(n,255)*255}}function kr(t,e,n){t=ge(t,255),e=ge(e,255),n=ge(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),l,o,i=(r+a)/2;if(r==a)l=o=0;else{var u=r-a;switch(o=i>.5?u/(2-r-a):u/(r+a),r){case t:l=(e-n)/u+(e<n?6:0);break;case e:l=(n-t)/u+2;break;case n:l=(t-e)/u+4;break}l/=6}return{h:l,s:o,l:i}}function rc(t,e,n){var r,a,l;t=ge(t,360),e=ge(e,100),n=ge(n,100);function o(s,c,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?s+(c-s)*6*d:d<1/2?c:d<2/3?s+(c-s)*(2/3-d)*6:s}if(e===0)r=a=l=n;else{var i=n<.5?n*(1+e):n+e-n*e,u=2*n-i;r=o(u,i,t+1/3),a=o(u,i,t),l=o(u,i,t-1/3)}return{r:r*255,g:a*255,b:l*255}}function jr(t,e,n){t=ge(t,255),e=ge(e,255),n=ge(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),l,o,i=r,u=r-a;if(o=r===0?0:u/r,r==a)l=0;else{switch(r){case t:l=(e-n)/u+(e<n?6:0);break;case e:l=(n-t)/u+2;break;case n:l=(t-e)/u+4;break}l/=6}return{h:l,s:o,v:i}}function ac(t,e,n){t=ge(t,360)*6,e=ge(e,100),n=ge(n,100);var r=Math.floor(t),a=t-r,l=n*(1-e),o=n*(1-a*e),i=n*(1-(1-a)*e),u=r%6,s=[n,o,l,l,i,n][u],c=[i,n,n,o,l,l][u],d=[l,l,i,n,n,o][u];return{r:s*255,g:c*255,b:d*255}}function Nr(t,e,n,r){var a=[We(Math.round(t).toString(16)),We(Math.round(e).toString(16)),We(Math.round(n).toString(16))];return r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function lc(t,e,n,r,a){var l=[We(Math.round(t).toString(16)),We(Math.round(e).toString(16)),We(Math.round(n).toString(16)),We(Da(r))];return a&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function Er(t,e,n,r){var a=[We(Da(r)),We(Math.round(t).toString(16)),We(Math.round(e).toString(16)),We(Math.round(n).toString(16))];return a.join("")}Y.equals=function(t,e){return!t||!e?!1:Y(t).toRgbString()==Y(e).toRgbString()};Y.random=function(){return Y.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function ic(t,e){e=e===0?0:e||10;var n=Y(t).toHsl();return n.s-=e/100,n.s=ln(n.s),Y(n)}function oc(t,e){e=e===0?0:e||10;var n=Y(t).toHsl();return n.s+=e/100,n.s=ln(n.s),Y(n)}function uc(t){return Y(t).desaturate(100)}function cc(t,e){e=e===0?0:e||10;var n=Y(t).toHsl();return n.l+=e/100,n.l=ln(n.l),Y(n)}function sc(t,e){e=e===0?0:e||10;var n=Y(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),Y(n)}function vc(t,e){e=e===0?0:e||10;var n=Y(t).toHsl();return n.l-=e/100,n.l=ln(n.l),Y(n)}function fc(t,e){var n=Y(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,Y(n)}function dc(t){var e=Y(t).toHsl();return e.h=(e.h+180)%360,Y(e)}function Ar(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Y(t).toHsl(),r=[Y(t)],a=360/e,l=1;l<e;l++)r.push(Y({h:(n.h+l*a)%360,s:n.s,l:n.l}));return r}function pc(t){var e=Y(t).toHsl(),n=e.h;return[Y(t),Y({h:(n+72)%360,s:e.s,l:e.l}),Y({h:(n+216)%360,s:e.s,l:e.l})]}function hc(t,e,n){e=e||6,n=n||30;var r=Y(t).toHsl(),a=360/n,l=[Y(t)];for(r.h=(r.h-(a*e>>1)+720)%360;--e;)r.h=(r.h+a)%360,l.push(Y(r));return l}function gc(t,e){e=e||6;for(var n=Y(t).toHsv(),r=n.h,a=n.s,l=n.v,o=[],i=1/e;e--;)o.push(Y({h:r,s:a,v:l})),l=(l+i)%1;return o}Y.mix=function(t,e,n){n=n===0?0:n||50;var r=Y(t).toRgb(),a=Y(e).toRgb(),l=n/100,o={r:(a.r-r.r)*l+r.r,g:(a.g-r.g)*l+r.g,b:(a.b-r.b)*l+r.b,a:(a.a-r.a)*l+r.a};return Y(o)};Y.readability=function(t,e){var n=Y(t),r=Y(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Y.isReadable=function(t,e,n){var r=Y.readability(t,e),a,l;switch(l=!1,a=Sc(n),a.level+a.size){case"AAsmall":case"AAAlarge":l=r>=4.5;break;case"AAlarge":l=r>=3;break;case"AAAsmall":l=r>=7;break}return l};Y.mostReadable=function(t,e,n){var r=null,a=0,l,o,i,u;n=n||{},o=n.includeFallbackColors,i=n.level,u=n.size;for(var s=0;s<e.length;s++)l=Y.readability(t,e[s]),l>a&&(a=l,r=Y(e[s]));return Y.isReadable(t,r,{level:i,size:u})||!o?r:(n.includeFallbackColors=!1,Y.mostReadable(t,["#fff","#000"],n))};var On=Y.names={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",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",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",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",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"},bc=Y.hexNames=mc(On);function mc(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function $a(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function ge(t,e){yc(t)&&(t="100%");var n=Cc(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function ln(t){return Math.min(1,Math.max(0,t))}function Ie(t){return parseInt(t,16)}function yc(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function Cc(t){return typeof t=="string"&&t.indexOf("%")!=-1}function We(t){return t.length==1?"0"+t:""+t}function Et(t){return t<=1&&(t=t*100+"%"),t}function Da(t){return Math.round(parseFloat(t)*255).toString(16)}function Mr(t){return Ie(t)/255}var He=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ze(t){return!!He.CSS_UNIT.exec(t)}function Oc(t){t=t.replace(Qu,"").replace(ec,"").toLowerCase();var e=!1;if(On[t])t=On[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=He.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=He.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=He.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=He.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=He.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=He.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=He.hex8.exec(t))?{r:Ie(n[1]),g:Ie(n[2]),b:Ie(n[3]),a:Mr(n[4]),format:e?"name":"hex8"}:(n=He.hex6.exec(t))?{r:Ie(n[1]),g:Ie(n[2]),b:Ie(n[3]),format:e?"name":"hex"}:(n=He.hex4.exec(t))?{r:Ie(n[1]+""+n[1]),g:Ie(n[2]+""+n[2]),b:Ie(n[3]+""+n[3]),a:Mr(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=He.hex3.exec(t))?{r:Ie(n[1]+""+n[1]),g:Ie(n[2]+""+n[2]),b:Ie(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function Sc(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:e,size:n}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var wc={closable:Boolean,color:{type:String,default:""},content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,icon:{type:Function,default:void 0},maxWidth:{type:[String,Number]},shape:{type:String,default:"square",validator:function(e){return e?["square","round","mark"].includes(e):!0}},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},theme:{type:String,default:"default",validator:function(e){return e?["default","primary","warning","danger","success"].includes(e):!0}},variant:{type:String,default:"dark",validator:function(e){return e?["dark","light","outline","light-outline"].includes(e):!0}},onClick:Function,onClose:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function $r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Pc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$r(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ta=oe({name:"TTag",props:wc,setup:function(e){var n=kt("tag"),r=n.globalConfig,a=se("tag"),l=Lt({CloseIcon:il}),o=l.CloseIcon,i=Le(),u=zt(),s=dt(),c=s.SIZE,d=x(function(){return["".concat(a.value),"".concat(a.value,"--").concat(e.theme),"".concat(a.value,"--").concat(e.variant),W(W(W(W({},"".concat(a.value,"--ellipsis"),e.maxWidth),"".concat(a.value,"--close"),e.closable),"".concat(a.value,"--disabled"),e.disabled),c.value[e.size],e.size!=="medium"),e.shape!=="square"&&"".concat(a.value,"--").concat(e.shape)]}),f=x(function(){var p=e.maxWidth,m=v();return e.maxWidth?Pc({maxWidth:isNaN(Number(p))?String(p):"".concat(p,"px")},m):m}),v=function(){var m=e.color,b=e.variant;if(!m)return{};var O=Y(m).getLuminance(),y={color:O>.5?"black":"white"};if((b==="outline"||b==="light-outline")&&(y.borderColor=m),b!=="outline"){var _=function(){var P=Y(m).toRgb(),w=P.r,S=P.g,I=P.b;return"rgba(".concat(w,", ").concat(S,", ").concat(I,", 0.1)")};y.backgroundColor=b==="dark"?m:_()}return b!=="dark"&&(y.color=m),y},g=function(m){var b;e.disabled||(b=e.onClick)===null||b===void 0||b.call(e,{e:m})},h=function(){if(!e.closable)return null;var m="".concat(a.value,"__icon-close");return r.value.closeIcon?ut(r.value.closeIcon(ut),{class:m}):j(o,{onClick:function(O){var y,_=O.e;_.stopPropagation(),(y=e.onClose)===null||y===void 0||y.call(e,{e:_})},class:m},null)};return function(){var p=h(),m=u("default","content"),b=i("icon"),O=Ue(m)?m:"",y=O&&e.maxWidth?O:void 0;return j("div",{class:d.value,style:f.value,onClick:g},[b,e.maxWidth?j("span",{class:W({},"".concat(a.value,"--text"),e.maxWidth),title:y},[m]):m,!e.disabled&&p])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var xc={checked:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultChecked:Boolean,checkedProps:{type:Object},content:{type:[String,Number,Array,Function]},default:{type:[String,Function]},disabled:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},uncheckedProps:{type:Object},value:{type:[String,Number]},onChange:Function,onClick:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Bs=/^ArrowDown$/i,Fs=/^ArrowUp$/i,Ls=/^Escape$/i,_c=/^Space$/i,Ic=/^Enter$/i,zs=/^(Shift|ShiftLeft|ShiftRight)$/i,Hs=/^KeyC$/i,Ws=/^(KeyA|KeyL)$/i,Dr=/^(Enter|Space)$/i;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Rr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function kc(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!It(t)}var Ra=oe({name:"TCheckTag",props:xc,setup:function(e){var n=se("tag"),r=dt(),a=r.SIZE,l=zt(),o=Oe(e),i=o.checked,u=o.modelValue,s=tt(i,u,e.defaultChecked,e.onChange,"checked"),c=ve(s,2),d=c[0],f=c[1],v=x(function(){return["".concat(n.value),"".concat(n.value,"--check"),a.value[e.size],W(W({},"".concat(n.value,"--checked"),d.value),"".concat(n.value,"--disabled"),e.disabled)]}),g=x(function(){var O=Rr({theme:"primary"},e.checkedProps),y=Rr({},e.uncheckedProps);return d.value?O:y}),h=function(y){var _=y.e;if(!e.disabled){var C;(C=e.onClick)===null||C===void 0||C.call(e,{e:_}),f(!d.value,{e:_,value:e.value})}},p=function(y){var _,C=y.code||((_=y.key)===null||_===void 0?void 0:_.trim()),P=_c.test(C)||Ic.test(C);P&&(y.preventDefault(),f(!d.value,{e:y,value:e.value}))},m=function(y){y.currentTarget.addEventListener("keydown",p)},b=function(y){y.currentTarget.removeEventListener("keydown",p)};return function(){var O=l("default","content");return j(Ta,Ne({class:v.value,disabled:e.disabled,tabindex:e.disabled?void 0:"0",onFocus:m,onBlur:b},g.value,{onClick:h}),kc(O)?O:{default:function(){return[O]}})}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var jc={checkedProps:{type:Object},multiple:Boolean,options:{type:Array},uncheckedProps:{type:Object},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},onChange:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Nc(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!It(t)}var Ec=oe({name:"TCheckTagGroup",props:jc,setup:function(e,n){var r=Oe(e),a=r.value,l=r.modelValue,o=r.options,i=se("check-tag-group"),u=x(function(){return[i.value]}),s=tt(a,l,e.defaultValue,e.onChange),c=ve(s,2),d=c[0],f=c[1],v=function(p,m){var b=m.value;if(p)e.multiple?f(d.value.concat(b),{e:m.e,type:"check",value:b}):f([b],{e:m.e,type:"check",value:b});else{var O=[];e.multiple&&(O=d.value.filter(function(y){return y!==b})),f(O,{e:m.e,type:"uncheck",value:b})}},g=function(p){return n.slots.option?n.slots.option(p):n.slots.label?n.slots.label(p):p.label?Ke(p.label)?p.label(ut):p.label:p.content&&Ke(p.content)?p.content(ut):p.default&&Ke(p.default)?p.default(ut):p.value};return function(){return j("div",{class:u.value},[(o.value||[]).map(function(h){var p;return j(Ra,{key:h.value,value:h.value,checkedProps:e.checkedProps,uncheckedProps:e.uncheckedProps,checked:d.value.includes(h.value),onChange:v,disabled:h.disabled,size:h.size,"data-value":h.value},Nc(p=g(h))?p:{default:function(){return[p]}})})])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Vr=we(Ta);we(Ra);we(Ec);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Br(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function bt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Br(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Br(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ac(t){var e=Le(),n=se(),r=Oe(t),a=r.value,l=r.modelValue,o=r.onRemove,i=r.max,u=r.minCollapsedNum,s=r.size,c=r.disabled,d=r.readonly,f=r.tagProps,v=r.getDragProps,g=tt(a,l,t.defaultValue||[],t.onChange),h=ve(g,2),p=h[0],m=h[1],b=X(),O=function(I){var k,E=nt(p.value),M=E.splice(I.index,1),D=ve(M,1),N=D[0];m(E,bt(bt({trigger:"tag-remove"},I),{},{item:N})),(k=o.value)===null||k===void 0||k.call(o,bt(bt({},I),{},{item:N,trigger:"tag-remove",value:E}))},y=function(I){m([],{trigger:"clear",e:I.e})},_=function(I,k){var E,M,D=I?String(I).trim():"",N=i&&((E=p.value)===null||E===void 0?void 0:E.length)>=i.value,A=p.value;!N&&D&&(A=p.value instanceof Array?p.value.concat(String(D)):[D],m(A,{trigger:"enter",index:A.length-1,item:D,e:k.e})),t==null||(M=t.onEnter)===null||M===void 0||M.call(t,A,bt(bt({},k),{},{inputValue:I}))},C=function(I){!p.value||!p.value.length||(b.value=I)},P=function(I,k){var E=k.e;if(!(!p.value||!p.value.length||E.key==="Process")){var M=/(Backspace|NumpadDelete)/i.test(E.code)||/(Backspace|NumpadDelete)/i.test(E.key);if(!I&&M){var D,N=p.value.length-1,A=p.value[N],T="backspace",G=p.value.slice(0,-1);m(G,{e:E,index:N,item:A,trigger:T}),(D=o.value)===null||D===void 0||D.call(o,{e:E,index:N,item:A,trigger:T,value:G})}b.value=I}},w=function(I){var k,E=I.displayNode,M=I.label,D=u.value?p.value.slice(0,u.value):p.value,N=E?[E]:(D==null||(k=D.map)===null||k===void 0?void 0:k.call(D,function(G,q){var J,H=e("tag",{params:{value:G}});return j(Vr,Ne({key:"".concat(G).concat(q),size:s.value,disabled:c.value,onClose:function(R){return O({e:R.e,index:q})},closable:!d.value&&!c.value},(J=v.value)===null||J===void 0?void 0:J.call(v,q,G),f.value),{default:function(){return[H!=null?H:G]}})}))||[];if([null,void 0,""].includes(M)||N.unshift(j("div",{class:"".concat(n.value,"-tag-input__prefix"),key:"label"},[M])),D.length!==(p.value||[]).length){var A=p.value.length-D.length,T=e("collapsedItems",{params:{value:p.value,count:p.value.length-u.value,collapsedTags:p.value.slice(u.value,p.value.length),collapsedSelectedItems:p.value.slice(u.value,p.value.length),onClose:O}});N.push(T!=null?T:j(Vr,{key:"more",size:s.value},{default:function(){return["+",A]}}))}return N};return{tagValue:p,clearAll:y,onClose:O,onInnerEnter:_,onInputBackspaceKeyUp:C,onInputBackspaceKeyDown:P,renderLabel:w}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Mc(t){var e=t.disabled,n=t.readonly,r=t.onMouseenter,a=t.onMouseleave,l=X(!1),o=function(s){n||e||(l.value=!0,r==null||r(s))},i=function(s){n||e||(l.value=!1,a==null||a(s))};return{isHover:l,addHover:o,cancelHover:i}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function $c(t){var e=t.sortOnDraggable,n=t.onDragSort,r=t.onDragOverCheck,a=X(-1),l=X(null),o=X(null),i=In({nodeX:0,nodeWidth:0,mouseX:0}),u=function(g,h,p){if(g.preventDefault(),!(a.value===h||a.value===-1)){var m=g.target;if(!(r!=null&&r.targetClassNameRegExp&&!(r!=null&&r.targetClassNameRegExp.test(m.className)))){if(r!=null&&r.x&&m){if(!i.nodeWidth)return;var b=m.getBoundingClientRect(),O=b.x,y=b.width,_=O+y/2,C=g.clientX-(i.mouseX-i.nodeX),P=C+i.nodeWidth,w=!1;if(C>O&&C<O+y?w=C<_:w=P>_,!w)return}n==null||n({currentIndex:a.value,current:l,target:p,targetIndex:h}),a.value=h}}};if(!e)return{};function s(v,g,h){a.value=g,l.value=h;var p=v.target;if(r&&p){var m=p.getBoundingClientRect(),b=m.x,O=m.width;i.nodeX=b,i.nodeWidth=O,i.mouseX=v.clientX}}function c(){o.value=!0}function d(){o.value,o.value=!1,a.value=-1,l.value=null}function f(v,g){return e?{draggable:!0,onDragstart:function(p){s(p,v,g)},onDragover:function(p){u(p,v,g)},onDrop:function(){c()},onDragend:function(){d()}}:{}}return{onDragStart:s,onDragOver:u,onDrop:c,onDragEnd:d,getDragProps:f,dragging:a.value!==-1}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Fr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function it(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Dc=function(){return{NAME_CLASS:se("tag-input"),CLEAR_CLASS:se("tag-input__suffix-clear"),BREAK_LINE_CLASS:se("tag-input--break-line")}},Tc=oe({name:"TTagInput",props:it({},Ju),setup:function(e){var n=Dc(),r=n.NAME_CLASS,a=n.CLEAR_CLASS,l=n.BREAK_LINE_CLASS,o=Lt({CloseCircleFilledIcon:Ha}),i=o.CloseCircleFilledIcon,u=Oe(e),s=u.inputValue,c=u.inputProps,d=Pt(s,e.defaultInputValue,e.onInputChange,"inputValue"),f=ve(d,2),v=f[0],g=f[1],h=Oe(e),p=h.excessTagsDisplayType,m=h.readonly,b=h.disabled,O=h.clearable,y=h.placeholder,_=Mc({readonly:e.readonly,disabled:e.disabled,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave}),C=_.isHover,P=_.addHover,w=_.cancelHover,S=X(!1),I=kt(),k=I.classPrefix,E=X(!1),M=$c(it(it({},e),{},{sortOnDraggable:e.dragSort,onDragOverCheck:{x:!0,targetClassNameRegExp:new RegExp("^".concat(k.value,"-tag"))}})),D=M.getDragProps,N=Zu(e),A=N.scrollToRight,T=N.onWheel,G=N.scrollToRightOnEnter,q=N.scrollToLeftOnLeave,J=N.tagInputRef,H=N.isScrollable,F=Ac(In(it(it({},Oe(e)),{},{getDragProps:D}))),R=F.tagValue,V=F.onInnerEnter,z=F.onInputBackspaceKeyUp,Q=F.onInputBackspaceKeyDown,$=F.clearAll,K=F.renderLabel,Z=F.onClose,ee=x(function(){var ce=!(Me(R.value)&&R.value.length);return[r.value,W(W(W({},l.value,p.value==="break-line"),"".concat(k.value,"-is-empty"),ce),"".concat(k.value,"-tag-input--with-tag"),!ce)]}),ae=x(function(){var ce;return(ce=R.value)!==null&&ce!==void 0&&ce.length?"":y.value}),fe=x(function(){var ce;return Boolean(!m.value&&!b.value&&O.value&&C.value&&(((ce=R.value)===null||ce===void 0?void 0:ce.length)||v.value))}),ie=function(ue,L){var B,U;(B=L.e)===null||B===void 0||(U=B.preventDefault)===null||U===void 0||U.call(B),g("",{e:L.e,trigger:"enter"}),!S.value&&V(ue,L),mt(function(){A(),S.value=!1})},ne=function(ue,L){var B,U;S.value=!0,(B=c.value)===null||B===void 0||(U=B.onCompositionstart)===null||U===void 0||U.call(B,ue,L)},te=function(ue,L){var B,U;S.value=!1,(B=c.value)===null||B===void 0||(U=B.onCompositionend)===null||U===void 0||U.call(B,ue,L)},be=function(ue){var L;b.value||(E.value=!0,J.value.focus(),(L=e.onClick)===null||L===void 0||L.call(e,ue))},pe=function(ue){var L;$(ue),g("",{e:ue.e,trigger:"clear"}),(L=e.onClear)===null||L===void 0||L.call(e,ue)},le=function(){J.value.focus()},qe=function(){J.value.blur()},me=function(ue){P(ue),G()},Je=function(ue){w(ue),q()},pt=function(ue,L){var B;E.value||(E.value=!0,(B=e.onFocus)===null||B===void 0||B.call(e,R.value,{e:L.e,inputValue:ue}))},ht=function(ue,L){var B;E.value=!1,g("",{e:L.e,trigger:"blur"}),(B=e.onBlur)===null||B===void 0||B.call(e,R.value,{e:L.e,inputValue:ue})},lt=function(ue,L){g(ue,it(it({},L),{},{trigger:"input"}))};return he(function(){return H.value},function(ce){if(e.excessTagsDisplayType==="scroll"){var ue="".concat(k.value,"-input__prefix"),L=J.value.$el.querySelector(".".concat(ue));ce?L.classList.add("".concat(ue,"--scrollable")):L.classList.remove("".concat(ue,"--scrollable"))}}),{CLEAR_CLASS:a,CloseCircleFilledIcon:i,tagValue:R,tInputValue:v,isHover:C,tagInputPlaceholder:ae,showClearIcon:fe,tagInputRef:J,classPrefix:k,isFocused:E,focus:le,blur:qe,setTInputValue:g,onMouseEnter:me,onMouseLeave:Je,onInnerFocus:pt,onInnerBlur:ht,onInnerChange:lt,addHover:P,cancelHover:w,onInputEnter:ie,onInnerEnter:V,onInputBackspaceKeyUp:z,onInputBackspaceKeyDown:Q,renderLabel:K,onWheel:T,scrollToRightOnEnter:G,scrollToLeftOnLeave:q,onClick:be,onClearClick:pe,onClose:Z,onInputCompositionstart:ne,onInputCompositionend:te,classes:ee}},render:function(){var e=this,n,r=this.CloseCircleFilledIcon,a=this.showClearIcon?j(r,{class:this.CLEAR_CLASS,onClick:this.onClearClick},null):Ut(this,"suffixIcon"),l=Ut(this,"prefixIcon"),o="".concat(this.classPrefix,"-tag-input__with-suffix-icon");a&&!this.classes.includes(o)&&this.classes.push(o);var i=Ut(this,"valueDisplay",{params:{value:this.tagValue,onClose:function(f){return e.onClose({index:f})}}}),u=Ut(this,"label",{silent:!0}),s=this.inputProps,c=this.readonly||(s==null?void 0:s.readonly);return j(_n,Ne({ref:"tagInputRef",readonly:c,showInput:!c||!this.tagValue||!((n=this.tagValue)!==null&&n!==void 0&&n.length),value:this.tInputValue,autoWidth:!0,size:this.size,disabled:this.disabled,label:function(){return e.renderLabel({displayNode:i,label:u})},class:this.classes,tips:this.tips,status:this.status,placeholder:this.tagInputPlaceholder,suffix:this.suffix,suffixIcon:function(){return a},prefixIcon:function(){return l},keepWrapperWidth:!this.autoWidth,onWheel:this.onWheel,onChange:this.onInnerChange,onPaste:this.onPaste,onEnter:this.onInputEnter,onKeyup:this.onInputBackspaceKeyUp,onKeydown:this.onInputBackspaceKeyDown,onMouseenter:this.onMouseEnter,onMouseleave:this.onMouseLeave,onFocus:this.onInnerFocus,onBlur:this.onInnerBlur,onClick:this.onClick,onCompositionstart:this.onInputCompositionstart,onCompositionend:this.onInputCompositionend},this.inputProps),{suffix:this.$slots.suffix})}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Rc=we(Tc);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Vc=["tips"];function Lr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function ze(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Lr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Bc={label:"label",key:"key",children:"children"};function Fc(t,e,n){var r=Oe(t),a=r.inputValue,l=se(),o=X(),i=X(t.autofocus),u=Pt(a,t.defaultInputValue,t.onInputChange,"inputValue"),s=ve(u,2),c=s[0],d=s[1],f=_t(),v=x(function(){return ze(ze({},Bc),t.keys)}),g=x(function(){return t.value instanceof Array?t.value.map(function(C){return De(C)?C[v.value.label]:C}):De(t.value)?[t.value[v.value.label]]:[t.value]}),h=x(function(){return!g.value||!g.value.length?t.placeholder:""}),p=function(P,w){var S;if(w.trigger==="tag-remove"){var I;(I=w.e)===null||I===void 0||I.stopPropagation()}(S=t.onTagChange)===null||S===void 0||S.call(t,P,w)},m=function(P,w){w.trigger==="enter"||w.trigger==="blur"||d(P,{trigger:w.trigger,e:w.e})},b=function(P,w){var S,I,k=(S=n.value)===null||S===void 0?void 0:S.getOverlayState();k!=null&&k.hover||(i.value=!1,(I=t.onBlur)===null||I===void 0||I.call(t,t.value,ze(ze({},w),{},{tagInputValue:P})))},O=function(P,w){var S,I,k=(S=n.value)===null||S===void 0?void 0:S.getOverlayState();if(!(i.value||k!=null&&k.hover)){i.value=!0;var E=ze(ze({},w),{},{tagInputValue:P});(I=t.onFocus)===null||I===void 0||I.call(t,t.value,E)}},y=function(P,w){var S,I=ze(ze({},w),{},{tagInputValue:P});(S=t.onEnter)===null||S===void 0||S.call(t,t.value,I)},_=function(P){var w=ze(ze({},P.commonInputProps),{},{tagProps:t.tagProps,label:t.label,autoWidth:t.autoWidth,readonly:t.readonly,placeholder:h.value,minCollapsedNum:t.minCollapsedNum,collapsedItems:t.collapsedItems,tag:t.tag,value:g.value,valueDisplay:t.valueDisplay,inputValue:P.popupVisible&&P.allowInput?c.value:"",inputProps:ze({readonly:!t.allowInput||t.readonly,inputClass:W({},"".concat(l.value,"-input--focused"),P.popupVisible)},t.inputProps),suffixIcon:!f.value&&t.loading?function(){return j(aa,{loading:!0,size:"small"},null)}:t.suffixIcon},t.tagInputProps),S=e.slots;S.tips;var I=nn(S,Vc);return j(Rc,Ne({ref:o},w,{onInputChange:m,onChange:p,onClear:P.onInnerClear,onBlur:b,onEnter:y,onFocus:O}),I)};return{tags:g,tPlaceholder:h,tagInputRef:o,isMultipleFocus:i,multipleInputValue:c,renderSelectMultiple:_}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function zr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Hr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Lc=1e3,zc=0;function Hc(t){var e=Oe(t),n=e.popupProps,r=e.autoWidth,a=X(!1),l=_t(),o=function(d,f){var v=f.scrollHeight>f.offsetHeight?zc:0,g=f.offsetWidth+v>=d.offsetWidth?f.offsetWidth:d.offsetWidth,h={};return n.value&&kn(n.value.overlayInnerStyle)==="object"&&!n.value.overlayInnerStyle.width&&(h=n.value.overlayInnerStyle),Hr({width:"".concat(Math.min(g,Lc),"px")},h)},i=function(d,f){if(!(l.value||t.readonly)){var v=f.trigger==="trigger-element-click"&&t.allowInput?!0:d;if(t.popupVisible!==v){var g;a.value=v,(g=t.onPopupVisibleChange)===null||g===void 0||g.call(t,v,f)}}},u=function(d,f){var v;return Hr({width:"".concat(Math.max(d.offsetWidth,f.offsetWidth),"px")},(v=n.value)===null||v===void 0?void 0:v.overlayInnerStyle)},s=x(function(){var c,d={},f=((c=n.value)===null||c===void 0?void 0:c.overlayInnerStyle)||{};return Ke(f)||De(f)&&f.width?d=f:r.value?d=u:d=o,d});return{tOverlayInnerStyle:s,innerPopupVisible:a,onInnerPopupVisibleChange:i}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Wr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Qe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Wc=function(){return{NAME_CLASS:se("select-input"),BASE_CLASS_BORDERLESS:se("select-input--borderless"),BASE_CLASS_MULTIPLE:se("select-input--multiple"),BASE_CLASS_POPUP_VISIBLE:se("select-input--popup-visible"),BASE_CLASS_EMPTY:se("select-input--empty")}},Kc=oe({name:"TSelectInput",props:Qe(Qe({},Ku),{},{valueDisplayOptions:{type:Object}}),setup:function(e,n){var r=Wc(),a=r.NAME_CLASS,l=r.BASE_CLASS_BORDERLESS,o=r.BASE_CLASS_MULTIPLE,i=r.BASE_CLASS_POPUP_VISIBLE,u=r.BASE_CLASS_EMPTY,s=se(),c=Le(),d=X(),f=X(),v=Oe(e),g=v.multiple,h=v.value,p=v.popupVisible,m=v.borderless,b=Hc(e),O=b.tOverlayInnerStyle,y=b.innerPopupVisible,_=b.onInnerPopupVisibleChange,C=qu(e,n,f),P=C.isSingleFocus,w=C.commonInputProps,S=C.onInnerClear,I=C.renderSelectSingle,k=Fc(e,n,f),E=k.isMultipleFocus,M=k.tagInputRef,D=k.renderSelectMultiple,N=x(function(){return e.multiple?E.value:P.value}),A=x(function(){var q;return["".concat(a.value),W(W(W(W({},o.value,g.value),l.value,m.value),i.value,(q=p.value)!==null&&q!==void 0?q:y.value),u.value,h.value instanceof Array?!h.value.length:!h.value)]}),T=function(J){var H,F=J.code||((H=J.key)===null||H===void 0?void 0:H.trim());if(/(ArrowDown|ArrowUp)/.test(F)&&!p.value){var R,V=Qe(Qe({},n),{},{trigger:"trigger-element-focus"});(R=e.onPopupVisibleChange)===null||R===void 0||R.call(e,!0,V)}};he([N],function(q){var J=ve(q,1),H=J[0];p.value||(H?d.value.addEventListener("keydown",T):d.value.removeEventListener("keydown",T))}),rt(function(){!p.value&&N&&d.value.addEventListener("keydown",T)}),rn(function(){d.value.removeEventListener("keydown",T)});var G=function(J){var H,F;(H=J.e)===null||H===void 0||H.stopPropagation(),!(J.e.target.tabIndex>=0)&&e.multiple&&((F=M.value)===null||F===void 0||F.focus())};return{classPrefix:s,NAME_CLASS:a,innerPopupVisible:y,commonInputProps:w,tOverlayInnerStyle:O,selectInputRef:d,popupRef:f,classes:A,onInnerClear:S,renderTNodeJSX:c,renderSelectSingle:I,renderSelectMultiple:D,onOverlayClick:G,onInnerPopupVisibleChange:_}},render:function(){var e,n,r=this,a={visible:(e=this.popupVisible)!==null&&e!==void 0?e:this.innerPopupVisible},l=j(Do,Ne({ref:"popupRef",trigger:((n=this.popupProps)===null||n===void 0?void 0:n.trigger)||"click",placement:"bottom-left"},a,{content:this.panel,hideEmptyPopup:!0},Qe(Qe({onVisibleChange:this.onInnerPopupVisibleChange,onOverlayClick:this.onOverlayClick},this.popupProps),{},{overlayInnerStyle:this.tOverlayInnerStyle})),Qe({default:function(){return[r.multiple?r.renderSelectMultiple({commonInputProps:r.commonInputProps,onInnerClear:r.onInnerClear,popupVisible:a.visible,allowInput:r.allowInput}):r.renderSelectSingle(a.visible)]}},Qe(Qe({},this.$slots),{},{content:this.$slots.panel}))),o=this.renderTNodeJSX("tips"),i=["".concat(this.classPrefix,"-input__tips"),"".concat(this.classPrefix,"-tips"),"".concat(this.classPrefix,"-is-").concat(this.status)];return j("div",{ref:"selectInputRef",class:this.classes},[l,o&&j("div",{class:i},[o])])}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Uc=we(Kc);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Gc={checkAll:Boolean,content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,label:{type:String,default:""},title:{type:String,default:""},value:{type:[String,Number]}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Yc={checkAll:Boolean,checked:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultChecked:Boolean,default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:{type:[String,Function]},lazyLoad:Boolean,name:{type:String,default:""},readonly:Boolean,value:{type:[String,Number,Boolean]},onChange:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Va=Symbol("CheckboxGroupProvide");/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Xc(t,e,n,r){if(typeof window>"u")return null;if(!window||!window.IntersectionObserver)return n(),null;var a=null;try{a=new window.IntersectionObserver(function(l){var o=l[0];o.isIntersecting&&(n(),a.unobserve(t))},{rootMargin:"0px 0px ".concat(r,"px 0px"),root:e}),a.observe(t)}catch(l){console.error(l),n()}return a}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function qc(t,e){var n=X(),r=X(!0),a=function(){if(!!e.value){r.value=!1;var o=Xc(t.value,null,function(){r.value=!0},0);n.value=o}};return rt(a),he([e,t],a),rn(function(){!e.value||n.value.unobserve(t.value)}),{showCheckbox:r}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Jc(t){var e=function(l){var o=Dr.test(l.key)||Dr.test(l.code);if(o){l.preventDefault();var i=l.currentTarget.querySelector("input"),u=i.disabled;!u&&t(l)}},n=function(l){l.currentTarget.addEventListener("keydown",e)},r=function(l){l.currentTarget.removeEventListener("keydown",e)};return{onCheckboxFocus:n,onCheckboxBlur:r}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Kr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ur(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ba=oe({name:"TCheckbox",props:Ur(Ur({},Yc),{},{needRipple:Boolean,stopLabelTrigger:Boolean,index:Number,data:Object}),setup:function(e){var n=X();e.needRipple&&ua(n);var r=dt(),a=r.STATUS,l=Oe(e),o=l.checked,i=l.modelValue,u=l.lazyLoad,s=tt(o,i,e.defaultChecked,e.onChange,"checked"),c=ve(s,2),d=c[0],f=c[1],v=yt(Va,void 0),g=X();he(function(){return[e.name,v==null?void 0:v.value.name].join("_")},function(){var N=e.name||(v==null?void 0:v.value.name);N&&(g.value=N)},{immediate:!0});var h=X(!1),p=function(){var A=e.value,T=e.checkAll;return T?v==null?void 0:v.value.isCheckAll:v!=null&&v.value?v.value.checkedValues.includes(A):d.value};he(function(){var N;return[d.value,v==null?void 0:v.value.isCheckAll,v==null||(N=v.value.checkedValues)===null||N===void 0?void 0:N.join(",")]},function(){h.value=p()},{immediate:!0});var m=x(function(){return!e.checkAll&&!h.value&&v!==null&&v!==void 0&&v.value.maxExceeded?!0:null}),b=x(function(){return v==null?void 0:v.value.disabled}),O=ul({beforeDisabled:m,afterDisabled:b}),y=X(!1);he(function(){return[e.checkAll,e.indeterminate,v==null?void 0:v.value.indeterminate]},function(){y.value=e.checkAll?v==null?void 0:v.value.indeterminate:e.indeterminate},{immediate:!0});var _=se("checkbox"),C=X({});he([h,O,y],function(){C.value=["".concat(_.value),W(W(W({},a.value.checked,h.value),a.value.disabled,O.value),a.value.indeterminate,y.value)]},{immediate:!0});var P=function(A){if(!e.readonly){var T=!h.value;f(T,{e:A}),v!=null&&v.value.handleCheckboxChange&&v.value.onCheckedChange({checked:T,checkAll:e.checkAll,e:A,option:e})}},w=zt(),S=function(A){e.stopLabelTrigger&&A.preventDefault()},I=qc(n,u),k=I.showCheckbox,E=Jc(P),M=E.onCheckboxFocus,D=E.onCheckboxBlur;return function(){return j("label",{ref:n,class:C.value,tabindex:O.value?void 0:"0",onFocus:M,onBlur:D},[k.value?[j("input",{type:"checkbox",tabindex:"-1",class:"".concat(_.value,"__former"),disabled:O.value,readonly:e.readonly,indeterminate:y.value,name:g.value,value:e.value?e.value:void 0,checked:h.value,onChange:P,key:"input"},null),j("span",{class:"".concat(_.value,"__input"),key:"input-span"},null),j("span",{class:"".concat(_.value,"__label"),key:"label",onClick:S},[w("default","label")])]:null])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Zc={disabled:{type:Boolean,default:void 0},lazyLoad:Boolean,max:{type:Number,default:void 0},name:{type:String,default:""},options:{type:Array},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},onChange:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Qc=oe({name:"TCheckboxGroup",props:Zc,setup:function(e){var n=se("checkbox-group"),r=Le(),a=Array.isArray,l=Oe(e),o=l.value,i=l.modelValue,u=tt(o,i,e.defaultValue,e.onChange),s=ve(u,2),c=s[0],d=s[1],f=X([]),v=x(function(){if(!a(c.value))return 0;var P=f.value.map(function(S){return S.value}),w=Cn(c.value,P);return w.length}),g=x(function(){var P=f.value.filter(function(S){return!S.disabled&&!S.checkAll}).map(function(S){return S.value}),w=Cn(P,c.value);return w.length===P.length}),h=x(function(){return!g.value&&v.value<f.value.length&&v.value!==0}),p=x(function(){return!xn(e.max)&&c.value.length===e.max});al(function(){if(!e.options)return[];f.value=e.options.map(function(P){return De(P)?P:{label:String(P),value:P}})});var m=function(){for(var w=new Set,S=0,I=f.value.length;S<I;S++){var k=f.value[S];if(!k.checkAll&&!k.disabled&&(w.add(k.value),p.value))break}return nt(w)},b=function(w,S){var I=w?m():[];d(I,{e:S.e,type:w?"check":"uncheck",current:void 0,option:void 0})},O=function(w){var S=w.option.value;if(!a(c.value)){console.warn("TDesign CheckboxGroup Warn: `value` must be an array, instead of ".concat(kn(c.value)));return}var I=nt(c.value);if(w.checked)I.push(S);else{var k=I.indexOf(S);I.splice(k,1)}d(I,{e:w.e,current:w.option.value,option:w.option,type:w.checked?"check":"uncheck"})},y=function(w){var S=w.checked,I=w.checkAll,k=w.e;I?b(S,{e:k}):O(w)},_=ha(),C=function(){var w=_("Checkbox"),S=[];return w==null||w.forEach(function(I){var k=I.props;!k||((k["check-all"]===""||k["check-all"]===!0)&&(k.checkAll=!0),S.push(k))}),S};return qt(Va,x(function(){return{name:e.name,isCheckAll:g.value,checkedValues:c.value||[],maxExceeded:p.value,disabled:e.disabled,indeterminate:h.value,handleCheckboxChange:O,onCheckedChange:y}})),function(){var P,w=null;if((P=e.options)!==null&&P!==void 0&&P.length){var S;w=(S=f.value)===null||S===void 0?void 0:S.map(function(k,E){var M;return j(Ba,Ne({key:"".concat(k.value||"").concat(E),lazyLoad:e.lazyLoad},k,{index:E,checked:(M=c.value)===null||M===void 0?void 0:M.includes(k.value),data:k}),null)})}else{var I=r("default");f.value=C(),w=I}return j("div",{class:n.value,role:"group","aria-label":"checkbox-group"},[w])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var es=we(Ba),Ks=we(Qc);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ts(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ns(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(s){throw s},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,o=!1,i;return{s:function(){n=n.call(t)},n:function(){var s=n.next();return l=s.done,s},e:function(s){o=!0,i=s},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(o)throw i}}}}function ns(t,e){if(!!t){if(typeof t=="string")return Gr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gr(t,e)}}function Gr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var on=Symbol("selectProvide"),Sn=function(e,n){var r=n.value.get(e);return(r==null?void 0:r.label)||(e==null?void 0:e.toString())},rs=function(e,n){var r=[],a=ts(e),l;try{for(a.s();!(l=a.n()).done;){var o=l.value,i=Sn(o,n);i&&r.push(i)}}catch(u){a.e(u)}finally{a.f()}return r},Fa=function(e,n){var r=sa(e),a=r.indexOf(n);return a<0?r.push(n):r.splice(a,1),{value:r,isCheck:a<0}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Yr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Xr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function as(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!It(t)}var wn=oe({name:"TOption",props:Xr(Xr({},Gc),{},{createAble:Boolean,multiple:Boolean,index:Number,rowIndex:Number,trs:Map,scrollType:String,isVirtual:Boolean,bufferSize:Number,checkAll:Boolean}),emits:["row-mounted"],setup:function(e,n){var r=yt(on),a=_t(),l=x(function(){return r.value.max!==0&&r.value.max<=r.value.selectValue.length}),o=x(function(){return a.value||e.multiple&&l.value&&!g.value&&!r.value.isCheckAll}),i=zt(),u=se("select"),s=dt(),c=s.STATUS,d=s.SIZE,f=X(),v=X(!1),g=x(function(){return r.value.isCheckAll&&!e.disabled?!0:e.multiple?r.value.selectValue.includes(e.value):r.value.selectValue===e.value}),h=x(function(){return e.checkAll?r.value.indeterminate:!1}),p=x(function(){return["".concat(u.value,"-option"),[d.value[r.value.size]],W(W(W({},c.value.disabled,o.value),c.value.selected,g.value),"".concat(u.value,"-option__hover"),(v.value||r.value.hoverIndex===e.index)&&!o.value)]}),m=x(function(){return e.label||e.value}),b=function(_){if(!(e.disabled||o.value)){if(e.multiple){O(!g.value,{e:_}),_.preventDefault();return}if(e.createAble){var C,P;if((C=(P=r.value).handleCreate)===null||C===void 0||C.call(P,e.value),r.value.multiple){r.value.handleValueChange([].concat(nt(r.value.selectValue),[e.value]),{selectedOptions:r.value.getSelectedOptions(),trigger:"check",e:_});return}}var w=r.value.getSelectedOptions(e.value);r.value.handleValueChange(e.value,{option:w==null?void 0:w[0],selectedOptions:w,trigger:"check",e:_}),r.value.handlePopupVisibleChange(!1,{e:_})}},O=function(_,C){if(e.checkAll){r.value.onCheckAllChange(_);return}var P=Fa(r.value.selectValue,e.value),w=r.value.getSelectedOptions(P.value);r.value.handleValueChange(P.value,{option:w.find(function(S){return S.value===e.value}),selectedOptions:w,trigger:_?"check":"uncheck",e:C.e}),r.value.reserveKeyword||r.value.handlerInputChange("")};return rt(function(){var y=e.trs,_=e.rowIndex,C=e.isVirtual;C&&(y.set(_,f.value),n.emit("row-mounted"))}),rn(function(){if(e.isVirtual){var y=e.trs,_=e.rowIndex;y.delete(_)}}),ua(f),function(){var y=i("default","content")||m.value;return j("li",{ref:f,class:p.value,title:e.title||"".concat(m.value),onMouseenter:function(){return v.value=!0},onMouseleave:function(){return v.value=!1},onClick:b},[r&&e.multiple?j(es,{checked:g.value,disabled:o.value,onChange:O,indeterminate:h.value},as(y)?y:{default:function(){return[y]}}):j("span",null,[y])])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ls={divider:{type:Boolean,default:!0},label:{type:String,default:""}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function qr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function is(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var La=oe({name:"TOptionGroup",props:is({},ls),setup:function(e){var n=yt(on),r=se("select-option-group"),a=dt(),l=a.SIZE,o=Le(),i=x(function(){return[r.value,l.value[n.value.size],W({},"".concat(r.value,"__divider"),e.divider)]});return function(){return j("li",{class:i.value},[j("div",{class:"".concat(r.value,"__header")},[e.label]),o("default")])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ke={autoWidth:Boolean,autofocus:Boolean,borderless:Boolean,clearable:Boolean,collapsedItems:{type:Function},creatable:Boolean,disabled:Boolean,empty:{type:[String,Function]},filter:{type:Function},filterable:Boolean,inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number]},keys:{type:Object},label:{type:[String,Function]},loading:Boolean,loadingText:{type:[String,Function]},max:{type:Number,default:0},minCollapsedNum:{type:Number,default:0},multiple:Boolean,options:{type:Array},panelBottomContent:{type:[String,Function]},panelTopContent:{type:[String,Function]},placeholder:{type:String,default:void 0},popupProps:{type:Object},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:Boolean,prefixIcon:{type:Function},readonly:Boolean,reserveKeyword:Boolean,scroll:{type:Object},selectInputProps:{type:Object},showArrow:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},status:{type:String,default:"default",validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tagInputProps:{type:Object},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:[String,Number,Boolean,Object,Array],default:void 0},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},defaultValue:{type:[String,Number,Boolean,Object,Array],default:void 0},valueDisplay:{type:[String,Function]},valueType:{type:String,default:"value",validator:function(e){return e?["value","object"].includes(e):!0}},onBlur:Function,onChange:Function,onClear:Function,onCreate:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onPopupVisibleChange:Function,onRemove:Function,onSearch:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var os=function(e){var n,r,a,l,o,i=x(function(){var S,I,k;return((S=e.scroll)===null||S===void 0?void 0:S.type)==="virtual"&&((I=e.options.value)===null||I===void 0?void 0:I.length)>(((k=e.scroll)===null||k===void 0?void 0:k.threshold)||100)}),u=((n=e.scroll)===null||n===void 0?void 0:n.type)==="virtual"?xo({container:e.popupContentRef,data:e.options,fixedHeight:((r=e.scroll)===null||r===void 0?void 0:r.isFixedRowHeight)||!1,lineHeight:((a=e.scroll)===null||a===void 0?void 0:a.rowHeight)||28,bufferSize:((l=e.scroll)===null||l===void 0?void 0:l.bufferSize)||20,threshold:((o=e.scroll)===null||o===void 0?void 0:o.threshold)||100}):{},s=u.trs,c=s===void 0?null:s,d=u.visibleData,f=d===void 0?null:d,v=u.handleScroll,g=v===void 0?null:v,h=u.scrollHeight,p=h===void 0?null:h,m=u.translateY,b=m===void 0?null:m,O=u.handleRowMounted,y=O===void 0?null:O,_=-1,C=function(I){if(!!i.value){var k=I.target,E=k.scrollTop;Math.abs(_-E)>5?(g(),_=E):_=-1}};rt(function(){var S;(S=e.popupContentRef.value)===null||S===void 0||S.addEventListener("scroll",C)}),rn(function(){var S;(S=e.popupContentRef.value)===null||S===void 0||S.removeEventListener("scroll",C)});var P=x(function(){return{position:"absolute",width:"1px",height:"1px",transition:"transform 0.2s",transform:"translate(0, ".concat(p.value,"px)"),"-ms-transform":"translate(0, ".concat(p.value,"px)"),"-moz-transform":"translate(0, ".concat(p.value,"px)"),"-webkit-transform":"translate(0, ".concat(p.value,"px)")}}),w=x(function(){return{transform:"translate(0, ".concat(b.value,"px)"),"-ms-transform":"translate(0, ".concat(b.value,"px)"),"-moz-transform":"translate(0, ".concat(b.value,"px)"),"-webkit-transform":"translate(0, ".concat(b.value,"px)")}});return{trs:c,scrollHeight:p,translateY:b,visibleData:f,handleRowMounted:y,isVirtual:i,cursorStyle:P,panelStyle:w}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function us(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!It(t)}var cs=oe({name:"TSelectPanel",props:{inputValue:ke.inputValue,panelTopContent:ke.panelTopContent,panelBottomContent:ke.panelBottomContent,empty:ke.empty,creatable:ke.creatable,loading:ke.loading,loadingText:ke.loadingText,multiple:ke.multiple,filterable:ke.filterable,filter:ke.filter,scroll:ke.scroll,size:ke.size},setup:function(e,n){var r=n.expose,a=se("select"),l=Le(),o=hl(),i=kt("select"),u=i.t,s=i.globalConfig,c=yt(on),d=X(null),f=x(function(){return c.value.popupContentRef.value}),v=x(function(){return e.creatable&&e.filterable&&e.inputValue}),g=x(function(){return c.value.displayOptions}),h=os({scroll:e.scroll,popupContentRef:f,options:g}),p=h.trs,m=h.visibleData,b=h.handleRowMounted,O=h.isVirtual,y=h.panelStyle,_=h.cursorStyle,C=x(function(){return!g.value.length}),P=function(){return j("ul",{class:["".concat(a.value,"__create-option"),"".concat(a.value,"__list")]},[j(wn,{value:e.inputValue,label:"".concat(e.inputValue),createAble:!0,class:"".concat(a.value,"__create-option--special")},null)])},w=function k(E){return j("ul",{class:"".concat(a.value,"__list")},[E.map(function(M,D){var N,A;if(M.group){var T;return j(La,{label:M.group,divider:M.divider},us(T=k(M.children))?T:{default:function(){return[T]}})}return j(wn,Ne(ol(M,"index","$index","className","tagName"),O.value?{rowIndex:M.$index,trs:p,scrollType:(N=e.scroll)===null||N===void 0?void 0:N.type,isVirtual:O.value,bufferSize:(A=e.scroll)===null||A===void 0?void 0:A.bufferSize,key:"".concat(M.$index||"","_").concat(D)}:{key:"".concat(D,"_").concat(M.value)},{index:D,multiple:e.multiple,onRowMounted:b}),M.slots)})])},S=x(function(){return{small:"s",medium:"m",large:"l"}[c.value.size]});r({innerRef:d,visibleData:m,isVirtual:O,displayOptions:g});var I=function(E,M){return j("div",{ref:d,class:["".concat(a.value,"__dropdown-inner"),"".concat(a.value,"__dropdown-inner--size-").concat(S.value)],style:M},[v.value&&P(),e.loading&&o("loadingText",{defaultNode:j("div",{class:"".concat(a.value,"__loading-tips")},[u(s.value.loadingText)])}),!e.loading&&C.value&&!v.value&&o("empty",{defaultNode:j("div",{class:"".concat(a.value,"__empty")},[u(s.value.empty)])}),!C.value&&!e.loading&&w(E)])};return{renderPanel:I,panelStyle:y,cursorStyle:_,isVirtual:O,displayOptions:g,visibleData:m,renderTNodeJSX:l}},render:function(){return this.isVirtual?j(st,null,[this.renderTNodeJSX("panelTopContent"),j("div",null,[j("div",{style:this.cursorStyle},null),this.renderPanel(this.visibleData,this.panelStyle)]),this.renderTNodeJSX("panelBottomContent")]):j(st,null,[this.renderTNodeJSX("panelTopContent"),this.renderPanel(this.displayOptions),this.renderTNodeJSX("panelBottomContent")])}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Yt(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ss(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(s){throw s},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,o=!1,i;return{s:function(){n=n.call(t)},n:function(){var s=n.next();return l=s.done,s},e:function(s){o=!0,i=s},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(o)throw i}}}}function ss(t,e){if(!!t){if(typeof t=="string")return Jr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jr(t,e)}}function Jr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Zr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ae(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zr(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var vs=function(e,n,r){var a=ha(),l=X([]),o=x(function(){var c,d=0,f=((c=e.options)===null||c===void 0?void 0:c.map(function(M){var D=function(A){var T=n.value,G=T.value,q=T.label,J=T.disabled,H=Ae(Ae({},A),{},{index:d,label:At(A,q),value:At(A,G),disabled:At(A,J)});return d++,H};return M.group&&M.children?Ae(Ae({},M),{},{children:M.children.map(function(N){return D(N)})}):D(M)}))||[],v=a("Option"),g=a("OptionGroup");if(Me(g)){var h=Yt(g),p;try{for(h.s();!(p=h.n()).done;){var m,b,O,y=p.value,_=Ae(Ae({group:(m=y.props)===null||m===void 0?void 0:m.label},y.props),{},{children:[]}),C=y.children.default();if(!!(Me(C)&&!!((b=C[0])!==null&&b!==void 0&&b.children))){var P=Yt(C==null||(O=C[0])===null||O===void 0?void 0:O.children),w;try{for(P.s();!(w=P.n()).done;){var S=w.value;_.children.push(Ae(Ae({},S.props),{},{slots:S.children,index:d})),d++}}catch(M){P.e(M)}finally{P.f()}f.push(_)}}}catch(M){h.e(M)}finally{h.f()}}if(Me(v)){var I=Yt(v),k;try{for(I.s();!(k=I.n()).done;){var E=k.value;f.push(Ae(Ae({},E.props),{},{slots:E.children,index:d})),d++}}catch(M){I.e(M)}finally{I.f()}}return f}),i=x(function(){var c=[],d=function f(v){var g=Yt(v),h;try{for(g.s();!(h=g.n()).done;){var p=h.value;p.group?f(p.children):c.push(p)}}catch(m){g.e(m)}finally{g.f()}};return d(o.value),c}),u=x(function(){var c=new Map;return l.value.concat(i.value).forEach(function(d){c.set(d.value,d)}),c}),s=x(function(){if(e.onSearch&&e.filterable||!r.value||!(e.filterable||Ke(e.filter)))return o.value;var c=function(v){var g,h;return Ke(e.filter)?e.filter("".concat(r.value),v):((g=v.label)===null||g===void 0||(h=g.toLowerCase)===null||h===void 0?void 0:h.call(g).indexOf("".concat(r.value).toLowerCase()))>-1},d=[];return o.value.forEach(function(f){f.group&&f.children&&d.push(Ae(Ae({},f),{},{children:f.children.filter(c)})),c(f)&&d.push(f)}),d});return{options:o,optionsMap:u,optionsList:i,optionsCache:l,displayOptions:s}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function fs(t){var e=t.displayOptions,n=t.optionsList,r=t.innerPopupVisible,a=t.setInnerPopupVisible,l=t.selectPanelRef,o=t.isFilterable,i=t.getSelectedOptions,u=t.setInnerValue,s=t.innerValue,c=t.popupContentRef,d=t.multiple,f=t.max,v=X(-1),g=X([]),h=X([]),p=se(),m=function(O){var y,_,C=e.value.length,P=v.value;switch(O.code){case"ArrowUp":O.preventDefault(),v.value===-1?P=0:v.value===0||v.value>e.value.length-1?P=C-1:P--,(y=n.value[P])!==null&&y!==void 0&&y.disabled&&P--,v.value=P;break;case"ArrowDown":O.preventDefault(),v.value===-1||v.value>=C-1?P=0:P++,(_=n.value[P])!==null&&_!==void 0&&_.disabled&&P++,v.value=P;break;case"Enter":if(v.value===-1)break;var w=l.value.isVirtual&&o.value&&h.value.length?h.value:g.value;if(w.length||(w=n.value),!r.value){a(!0,{e:O});break}if(d){var I;if(v.value===-1)return;var k=(I=w[v.value])===null||I===void 0?void 0:I.value;if(!k)return;var E=Fa(s.value,k);if(f>0&&E.value.length>f)return;var M=i(E.value);u(E.value,{option:M.find(function(D){return D.value==k}),selectedOptions:M,trigger:E.isCheck?"check":"uncheck",e:O})}else{var S=i(w[v.value].value);u(w[v.value].value,{option:S==null?void 0:S[0],selectedOptions:i(w[v.value].value),trigger:"check",e:O}),a(!1,{e:O})}break;case"Escape":a(!1,{e:O});break}};return he(r,function(b){b&&(v.value=-1,h.value=[],g.value=[])}),he(v,function(b){var O,y=(O=l.value)===null||O===void 0||(O=O.innerRef)===null||O===void 0?void 0:O.querySelector(".".concat(p.value,"-select-option")).clientHeight,_=y*b;c.value.scrollTo({top:_,behavior:"smooth"})}),{hoverIndex:v,handleKeyDown:m,virtualFilteredOptions:h,filteredOptions:g}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ds=["overlayClassName"];function ps(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=hs(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(s){throw s},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,o=!1,i;return{s:function(){n=n.call(t)},n:function(){var s=n.next();return l=s.done,s},e:function(s){o=!0,i=s},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(o)throw i}}}}function hs(t,e){if(!!t){if(typeof t=="string")return Qr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qr(t,e)}}function Qr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ea(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ge(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ea(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var gs=oe({name:"TSelect",props:Ge(Ge({},ke),{},{valueDisplayOptions:{type:Object}}),setup:function(e,n){var r=n.slots,a=se(),l=_t(),o=Le(),i=se("select"),u=kt("select"),s=u.globalConfig,c=u.t,d=Oe(e),f=d.popupVisible,v=d.inputValue,g=d.modelValue,h=d.value,p=Pt(v,e.defaultInputValue,e.onInputChange,"inputValue"),m=ve(p,2),b=m[0],O=m[1],y=tt(h,g,e.defaultValue,e.onChange),_=ve(y,2),C=_[0],P=_[1],w=X(null),S=X(null),I=x(function(){var L,B,U;return{label:((L=e.keys)===null||L===void 0?void 0:L.label)||"label",value:((B=e.keys)===null||B===void 0?void 0:B.value)||"value",disabled:((U=e.keys)===null||U===void 0?void 0:U.disabled)||"disabled"}}),k=vs(e,I,b),E=k.optionsMap,M=k.optionsList,D=k.optionsCache,N=k.displayOptions,A=x(function(){return C.value===void 0?e.multiple?[]:void 0:e.valueType==="object"?e.multiple?C.value.map(function(L){return L[I.value.value]}):C.value[I.value.value]:C.value}),T=function(B,U){if(e.valueType==="object"){var re=I.value,de=re.value,Ce=re.label,ye=function(gt){if(gt!==void 0){var Kt=E.value.get(gt);return W(W({},de,At(Kt,de)),Ce,At(Kt,Ce))}};B=e.multiple?B.map(function(_e){return ye(_e)}):ye(B)}B!==C.value&&P(B,Ge({selectedOptions:ee(B)},U))},G=Pt(f,!1,function(L,B){var U;(U=e.onPopupVisibleChange)===null||U===void 0||U.call(e,L,B)},"popupVisible"),q=ve(G,2),J=q[0],H=q[1],F=x(function(){var L;return(L=!e.multiple&&J.value&&Sn(A.value,E)||e.placeholder)!==null&&L!==void 0?L:c(s.value.placeholder)}),R=x(function(){return e.multiple?rs(A.value,E):Sn(A.value,E)}),V=x(function(){var L=e.multiple&&Me(A.value)?A.value.map(function(re){var de;return{value:re,label:(de=E.value.get(re))===null||de===void 0?void 0:de.label}}):A.value,B={value:L,onClose:e.multiple?function(re){return Q(re)}:function(){}};if(e.minCollapsedNum&&e.multiple){var U;return Ge(Ge({},B),{},{displayValue:L==null||(U=L.slice)===null||U===void 0?void 0:U.call(L,0,e.minCollapsedNum)})}return B}),z=x(function(){return Boolean(e.filterable||s.value.filterable||Ke(e.filter))}),Q=function(B,U){var re;U&&U.stopPropagation();var de=sa(A.value),Ce=de[B];de.splice(B,1),T(de,{selectedOptions:ee(de),trigger:"tag-remove",e:U}),(re=e.onRemove)===null||re===void 0||re.call(e,{value:Ce,data:E.value.get(Ce),e:U})},$=function(){var B;!b.value||((B=e.onCreate)===null||B===void 0||B.call(e,b.value),O(""))},K=x(function(){var L;return(L=S.value)===null||L===void 0?void 0:L.popupRef.getOverlay()}),Z=x(function(){return M.value.filter(function(L){return!L.disabled&&!L["check-all"]&&!L.checkAll})}),ee=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:A.value;return M.value.filter(function(U){if(!U.checkAll)return Me(B)?B.includes(U.value):B===U.value})},ae=fs({displayOptions:N,optionsList:M,innerPopupVisible:J,setInnerPopupVisible:H,selectPanelRef:w,isFilterable:z,getSelectedOptions:ee,setInnerValue:T,innerValue:A,popupContentRef:K,multiple:e.multiple,max:e.max}),fe=ae.hoverIndex,ie=ae.virtualFilteredOptions,ne=ae.handleKeyDown,te=ae.filteredOptions,be=function(B){if(!!e.multiple){var U=B?Z.value.map(function(re){return re.value}):[];T(U,{selectedOptions:ee(U),trigger:B?"check":"clear"})}},pe=x(function(){var L=Z.value.map(function(U){return U.value}),B=Cn(A.value,L);return B.length}),le=x(function(){return pe.value===Z.value.length}),qe=x(function(){return!le.value&&pe.value!==0}),me=x(function(){return{max:e.max,multiple:e.multiple,hoverIndex:fe.value,selectValue:A.value,reserveKeyword:e.reserveKeyword,handleValueChange:T,handlerInputChange:O,handlePopupVisibleChange:H,handleCreate:$,size:e.size,popupContentRef:K,indeterminate:qe.value,isCheckAll:le.value,onCheckAllChange:be,getSelectedOptions:ee,displayOptions:N.value}});qt(on,me);var Je=function(){!e.multiple&&Me(C.value)&&P(void 0,{selectedOptions:[],trigger:"default"}),e.multiple&&!Me(C.value)&&P([],{selectedOptions:[],trigger:"default"})},pt=xa(function(L,B){var U,re=B.e;(U=e.onSearch)===null||U===void 0||U.call(e,"".concat(L),{e:re})},300),ht=function(B,U){B&&H(!0,{e:U.e}),O(B),pt("".concat(B),{e:U.e}),mt(function(){var re,de;ie.value=(re=w.value)===null||re===void 0?void 0:re.visibleData,te.value=(de=w.value)===null||de===void 0?void 0:de.displayOptions})},lt=function(B,U){H(B,U),B&&U.trigger==="trigger-element-click"&&O("")},ce=function(B){if(e.multiple){var U=[],re=ps(B||[]),de;try{for(re.s();!(de=re.n()).done;){var Ce=de.value,ye=E.value.get(Ce);ye&&U.push(ye)}}catch(gt){re.e(gt)}finally{re.f()}D.value=Array.from(new Set([].concat(U,nt(D.value))))}else{var _e=E.value.get(B);_e&&(D.value=Array.from(new Set([_e].concat(nt(D.value)))))}};he(C,function(L){Je(),mt(function(){ce(L)})},{immediate:!0}),he(function(){return e.multiple},function(){Je()});var ue=function(B){var U;if(!!w.value){var re=(U=w.value)===null||U===void 0||(U=U.innerRef)===null||U===void 0?void 0:U.querySelector(".".concat(a.value,"-is-selected"));mt(function(){if(re&&B){var de=getComputedStyle(re),Ce=de.paddingBottom,ye=getComputedStyle(B),_e=ye.marginBottom,gt=parseInt(Ce,10)+parseInt(_e,10),Kt=re.offsetTop-B.offsetTop-(B.clientHeight-re.clientHeight)+gt;B.scrollTop=Kt}})}};return qt("updateScrollTop",ue),function(){var L=e.popupProps||{},B=L.overlayClassName,U=nn(L,ds);return j("div",{class:"".concat(i.value,"__wrap")},[j(Uc,Ne({autoWidth:e.autoWidth,readonly:e.readonly,borderless:e.borderless,multiple:e.multiple,clearable:e.clearable,loading:e.loading,status:e.status,tips:e.tips,minCollapsedNum:e.minCollapsedNum,autofocus:e.autofocus,suffix:e.suffix,valueDisplayOptions:e.valueDisplayOptions},{ref:S,class:i.value,value:R.value,disabled:l.value,popupVisible:J.value,inputValue:J.value?b.value:"",placeholder:"".concat(F.value),allowInput:z.value,"collapsed-items":e.collapsedItems,inputProps:Ge(Ge({size:e.size,autofocus:e.autofocus},e.inputProps),{},{onkeydown:ne}),tagInputProps:Ge({size:e.size},e.tagInputProps),onTagChange:function(de,Ce){Q(Ce.index)},tagProps:Ge({},e.tagProps),popupProps:Ge({overlayClassName:["".concat(i.value,"__dropdown"),B]},U),label:e.label,prefixIcon:e.prefixIcon,suffix:e.suffix,suffixIcon:function(){return e.suffixIcon||r.suffixIcon?o("suffixIcon"):e.showArrow&&j(To,{overlayClassName:"".concat(i.value,"__right-icon"),isActive:J.value},null)},valueDisplay:function(){return o("valueDisplay",{params:V.value})},onPopupVisibleChange:lt,onInputChange:ht,onClear:function(de){var Ce,ye=de.e;T(e.multiple?[]:void 0,{option:null,selectedOptions:ee(e.multiple?[]:void 0),trigger:"clear",e:ye}),(Ce=e.onClear)===null||Ce===void 0||Ce.call(e,{e:ye})},onEnter:function(de,Ce){var ye,_e=Ce.e;(ye=e.onEnter)===null||ye===void 0||ye.call(e,{inputValue:"".concat(b.value),e:_e,value:A.value}),$()},onBlur:function(de,Ce){var ye,_e=Ce.e;(ye=e.onBlur)===null||ye===void 0||ye.call(e,{e:_e,value:A.value})},onFocus:function(de,Ce){var ye,_e=Ce.e;(ye=e.onFocus)===null||ye===void 0||ye.call(e,{e:_e,value:A.value})}},e.selectInputProps),{label:r.label,prefixIcon:r.prefixIcon,suffix:r.suffix,panel:function(){return j(cs,Ne({ref:w},Ma(e,["size","multiple","empty","loading","loadingText","filterable","creatable","panelTopContent","panelBottomContent","filter","scroll"]),{inputValue:b.value}),r)},collapsedItems:r.collapsedItems})])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var bs=we(gs);we(wn);we(La);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ms={append:{type:[String,Function]},prepend:{type:[String,Function]}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ys=oe({name:"TInputAdornment",inheritAttrs:!1,props:ms,setup:function(e,n){var r=n.slots,a=se("input-adornment"),l=Le(),o=function(u,s,c){var d,f=Ue(c)||Bt(c);return!r[s]&&Ue(c)&&!c?null:(r[s]?r[s](null).length===1&&typeof r[s](null)[0].children=="string"?d=j("span",{class:"".concat(a.value,"__text")},[r[s](null)]):d=r[s](null):Ke(c)?d=c(u):d=f?j("span",{class:"".concat(a.value,"__text")},[c]):c,d&&j("span",{class:"".concat(a.value,"__").concat(s)},[d]))};return function(){var i=o(ut,"prepend",e.prepend),u=o(ut,"append",e.append),s=l("default")||[null],c=[a.value,W(W({},"".concat(a.value,"--prepend"),i),"".concat(a.value,"--append"),u)];return!i&&!u?s[0]:j("div",{class:c},[i,s[0],u])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Cs=we(ys);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Os={current:{type:Number,default:void 0},modelValue:{type:Number,default:void 0},defaultCurrent:{type:Number,default:1},disabled:Boolean,foldedMaxPageBtn:{type:Number,default:5},maxPageBtn:{type:Number,default:10},pageEllipsisMode:{type:String,default:"mid",validator:function(e){return e?["mid","both-ends"].includes(e):!0}},pageSize:{type:Number,default:void 0},defaultPageSize:{type:Number,default:10},pageSizeOptions:{type:Array,default:function(){return[5,10,20,50]}},selectProps:{type:Object},showFirstAndLastPageBtn:Boolean,showJumper:Boolean,showPageNumber:{type:Boolean,default:!0},showPageSize:{type:Boolean,default:!0},showPreviousAndNextBtn:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return e?["small","medium"].includes(e):!0}},theme:{type:String,default:"default",validator:function(e){return e?["default","simple"].includes(e):!0}},total:{type:Number,default:0},totalContent:{type:[Boolean,Function],default:!0},onChange:Function,onCurrentChange:Function,onPageSizeChange:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Ss(t,e,n,r){var a=dt(),l=a.SIZE,o=a.STATUS,i=x(function(){var O=Math.ceil(t.total/n.value);return O>0?O:1}),u=x(function(){return["".concat(r.value),l.value[t.size],W(W({},o.value.disabled,t.disabled),"".concat(r.value,"-ie"),Za()<11)]}),s=x(function(){return["".concat(r.value,"__total")]}),c=x(function(){return["".concat(r.value,"__select")]}),d=x(function(){return["".concat(r.value,"__btn"),"".concat(r.value,"__btn-prev"),W({},o.value.disabled,t.disabled||e.value===1)]}),f=x(function(){return["".concat(r.value,"__btn"),"".concat(r.value,"__btn-next"),W({},o.value.disabled,t.disabled||e.value===i.value)]}),v=x(function(){return["".concat(r.value,"__pager")]}),g=x(function(){return["".concat(r.value,"__number"),"".concat(r.value,"__number--more"),W({},o.value.disabled,t.disabled)]}),h=x(function(){return["".concat(r.value,"__jump")]}),p=x(function(){return["".concat(r.value,"__input")]}),m=x(function(){return["".concat(r.value,"__select")]}),b=function(y){return["".concat(r.value,"__number"),W(W({},o.value.disabled,t.disabled),o.value.current,e.value===y)]};return{pageCount:i,paginationClass:u,totalClass:s,sizerClass:c,preBtnClass:d,nextBtnClass:f,btnWrapClass:v,btnMoreClass:g,jumperClass:h,jumperInputClass:p,simpleClass:m,getButtonClass:b}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ws(t,e,n){var r=X(!1),a=X(!1),l=x(function(){return Math.ceil((t.foldedMaxPageBtn-1)/2)}),o=x(function(){return Math.floor((t.foldedMaxPageBtn-1)/2)}),i=x(function(){return 2+l.value<n.value}),u=x(function(){return e.value-1-o.value>n.value});return{prevMore:r,nextMore:a,curPageLeftCount:l,curPageRightCount:o,isPrevMoreShow:i,isNextMoreShow:u}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Ps=Bt;function xs(t){return Ps(t)&&t!=+t}var _s=xs,Is=["pageCount"],ot=1,ks=oe({name:"TPagination",props:Os,setup:function(e){var n=Ft(),r=n.emit,a=Oe(e),l=a.modelValue,o=a.pageSize,i=a.current,u=Le(),s=tt(i,l,e.defaultCurrent,e.onCurrentChange,"current"),c=ve(s,2),d=c[0],f=c[1],v=Pt(o,e.defaultPageSize,e.onPageSizeChange,"pageSize"),g=ve(v,2),h=g[0],p=g[1],m=kt("pagination"),b=m.t,O=m.globalConfig,y=se("pagination"),_=Lt({PageFirstIcon:Vl,PageLastIcon:Ll,ChevronLeftIcon:fa,ChevronRightIcon:da,ChevronLeftDoubleIcon:wl,ChevronRightDoubleIcon:kl,EllipsisIcon:Dl}),C=_.PageFirstIcon,P=_.PageLastIcon,w=_.ChevronLeftIcon,S=_.ChevronRightIcon,I=_.ChevronLeftDoubleIcon,k=_.ChevronRightDoubleIcon,E=_.EllipsisIcon,M=Ss(e,d,h,y),D=M.pageCount,N=nn(M,Is),A=ws(e,D,d),T=A.prevMore,G=A.isPrevMoreShow,q=A.curPageLeftCount,J=A.nextMore,H=A.isNextMoreShow,F=A.curPageRightCount,R=X(d.value),V=x(function(){return D.value>e.maxPageBtn}),z=x(function(){var fe=e.pageSizeOptions,ie=fe.map(function(ne){return De(ne)?ne:{label:b(O.value.itemsPerPage,{size:ne}),value:Number(ne)}});return ie.sort(function(ne,te){return ne.value-te.value})}),Q=x(function(){return e.pageEllipsisMode==="mid"}),$=x(function(){var fe=[],ie,ne;if(V.value)if(G.value&&H.value)ie=d.value-q.value,ne=d.value+F.value;else{var te=Q.value?2:1,be=Q.value?D.value-1:D.value;G.value?ie=Math.min(d.value-1,D.value-e.foldedMaxPageBtn+1):ie=te,H.value?ne=Math.max(d.value+1,e.foldedMaxPageBtn):ne=be}else ie=1,ne=D.value;for(var pe=ie;pe<=ne;pe++)fe.push(pe);return fe});he(function(){return D.value},function(){d.value>D.value&&(d.value=1)}),he(function(){return d.value},function(fe){return R.value=fe});var K=function(ie,ne){if(!e.disabled){var te=ie;if(ie<ot?te=ot:ie>D.value&&(te=D.value),d.value!==te){var be=d.value,pe={current:te,previous:be,pageSize:h.value};if(ne!==!1){var le;f(te,pe),(le=e.onChange)===null||le===void 0||le.call(e,pe)}else r("update:modelValue",te)}}},Z=function(ie){var ne={prevPage:function(){return K(d.value-1)},nextPage:function(){return K(d.value+1)},prevMorePage:function(){return K(Math.max(2,d.value-e.foldedMaxPageBtn))},nextMorePage:function(){return K(Math.min(d.value+e.foldedMaxPageBtn,D.value-1))}};ne[ie]()},ee=function(ie){var ne;if(!e.disabled){var te=parseInt(ie,10),be=1;te>0&&(be=Math.max(Math.ceil(e.total/te),1));var pe=!1;d.value>be&&(pe=!0);var le={current:pe?be:d.value,previous:d.value,pageSize:te};(ne=e.onChange)===null||ne===void 0||ne.call(e,le),p(te,le),pe&&K(be,!1)}},ae=function(ie){var ne=Math.trunc(+ie);_s(ne)||(R.value=ne,K(ne))};return function(){var fe=e.total,ie=e.pageSizeOptions,ne=e.size,te=e.disabled,be=e.showPageSize;if(D.value<1)return null;var pe=j("div",{class:N.jumperClass.value},[b(O.value.jumpTo),j(Cs,{append:"/ ".concat(D.value," ").concat(b(O.value.page))},{default:function(){return[j(eu,{class:N.jumperInputClass.value,modelValue:R.value,"onUpdate:modelValue":function(me){return R.value=me},onBlur:ae,onEnter:ae,max:D.value,min:ot,size:ne,disabled:te,theme:"normal",placeholder:""},null)]}})]);return j("div",{class:N.paginationClass.value},[u("totalContent",j("div",{class:N.totalClass.value},[b(O.value.total,{total:fe})])),be&&ie.length>0&&j(bs,Ne({size:ne,value:h,disabled:te,class:N.sizerClass.value,autoWidth:!0,onChange:ee,options:z.value},e.selectProps),null),e.showFirstAndLastPageBtn?j("div",{class:N.preBtnClass.value,onClick:function(){return K(1)},disabled:e.disabled||e.current===ot},[j(C,null,null)]):null,e.showPreviousAndNextBtn?j("div",{class:N.preBtnClass.value,onClick:function(){return Z("prevPage")},disabled:te||d.value===ot},[j(w,null,null)]):null,e.showPageNumber&&e.theme==="default"?j("ul",{class:N.btnWrapClass.value},[V.value&&Q.value&&j("li",{class:N.getButtonClass(1),onClick:function(){return K(ot)}},[ot]),V.value&&G.value&&Q.value?j("li",{class:N.btnMoreClass.value,onClick:function(){return Z("prevMorePage")},onMouseOver:function(){return T.value=!0},onMouseOut:function(){return T.value=!1}},[T.value?j(I,null,null):j(E,null,null)]):null,$.value.map(function(le){return j("li",{class:N.getButtonClass(le),key:le,onClick:function(){return K(le)}},[le])}),V.value&&H.value&&Q.value?j("li",{class:N.btnMoreClass.value,onClick:function(){return Z("nextMorePage")},onMouseOver:function(){return J.value=!0},onMouseOut:function(){return J.value=!1}},[J.value?j(k,null,null):j(E,null,null)]):null,V.value&&Q.value?j("li",{class:N.getButtonClass(D.value),onClick:function(){return K(D.value)}},[D.value]):null]):null,e.theme==="simple"&&pe,e.showPreviousAndNextBtn?j("div",{class:N.nextBtnClass.value,onClick:function(){return Z("nextPage")},disabled:te||d.value===D.value},[j(S,null,null)]):null,e.showFirstAndLastPageBtn?j("div",{class:N.nextBtnClass.value,onClick:function(){return K(D.value)},disabled:te||d.value===D.value},[j(P,null,null)]):null,e.theme==="default"&&e.showJumper&&pe])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var js={disabled:{type:[Boolean,Object]},layout:{type:String,default:"horizontal",validator:function(e){return e?["horizontal","vertical"].includes(e):!0}},showCurrent:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},tips:{type:Object},variant:{type:String,default:"text",validator:function(e){return e?["text","outline"].includes(e):!0}},onChange:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ta(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ns(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ta(Object(n),!0).forEach(function(r){W(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Es=oe({name:"TPaginationMini",props:Ns({},js),setup:function(e){var n=se("pagination-mini"),r=Lt({ChevronLeftIcon:fa,RoundIcon:Gl,ChevronRightIcon:da,ChevronUpIcon:pa,ChevronDownIcon:va}),a=r.ChevronLeftIcon,l=r.RoundIcon,o=r.ChevronRightIcon,i=r.ChevronUpIcon,u=r.ChevronDownIcon,s=x(function(){return De(e.tips)?e.tips:e.tips===!0?{prev:"\u4E0A\u4E00\u9875",current:"\u5F53\u524D",next:"\u4E0B\u4E00\u9875"}:{}}),c=x(function(){return De(e.disabled)?e.disabled:e.disabled===!0?{prev:!0,current:!0,next:!0}:{prev:!1,current:!1,next:!1}});return function(){var d=[n.value,W({},"".concat(n.value,"--outline"),e.variant==="outline")];return j("div",{class:d},[j(Mt,{title:s.value.prev,variant:e.variant,size:e.size,shape:"square",onClick:function(v){var g;return(g=e.onChange)===null||g===void 0?void 0:g.call(e,{e:v,trigger:"prev"})},icon:e.layout==="horizontal"?function(){return j(a,null,null)}:function(){return j(i,null,null)},class:"".concat(n.value,"__prev"),disabled:c.value.prev},null),e.showCurrent&&j(Mt,{title:s.value.current,variant:e.variant,size:e.size,shape:"square",onClick:function(v){var g;return(g=e.onChange)===null||g===void 0?void 0:g.call(e,{e:v,trigger:"current"})},icon:function(){return j(l,null,null)},class:"".concat(n.value,"__current"),disabled:c.value.current},null),j(Mt,{title:s.value.next,variant:e.variant,size:e.size,shape:"square",onClick:function(v){var g;return(g=e.onChange)===null||g===void 0?void 0:g.call(e,{e:v,trigger:"next"})},icon:e.layout==="horizontal"?function(){return j(o,null,null)}:function(){return j(u,null,null)},class:"".concat(n.value,"__next"),disabled:c.value.next},null)])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Us=we(ks);we(Es);export{Bs as A,Dr as C,Ls as E,Us as P,_c as S,Vr as T,_u as _,ku as a,Pt as b,Fs as c,xa as d,zs as e,Hs as f,Ws as g,es as h,Cn as i,Ks as j,va as k,Do as l,bs as m,_a as n,Xc as o,Ma as p,Vs as q,yn as r,Qt as s,en as t,Po as u,fa as v,ha as w,ml as x};